Macaulay2 Engine
Loading...
Searching...
No Matches

◆ is_one()

bool DPoly::is_one ( int level,
const TowerPolynomial f )
static

Definition at line 595 of file dpoly.cpp.

596{
597 if (f == nullptr) return false;
598 if (f->deg != 0) return false;
599 if (level == 0)
600 return 1 == f->arr.ints[0];
601 else
602 return is_one(level - 1, f->arr.polys[0]);
603}
static bool is_one(int level, const TowerPolynomial f)
Definition dpoly.cpp:595

References is_one().

Referenced by division_in_place(), elem_text_out(), index_of_var(), invert(), is_one(), and mult_by_coeff_n().