isValid property
bool
isValid
A polynomial equation is valid if the coefficient associated to the
variable of highest degree is different from zero. In other words, the
polynomial is valid if a
is different from zero.
A Constant is an exception because a constant value has no variables with a degree.
Implementation
bool get isValid => this is Constant || !coefficients[0].isZero;