Struct rdcl_aoc_helpers::math::polynomial::Polynomial [−][src]
pub struct Polynomial { /* fields omitted */ }
Expand description
A polynomial.
Implementations
The coefficients of the polynomial. The left-most coefficient corresponds with x^n. The right-most with x^0.
The degree of a polynomial. I.e. the highest n such that the coefficient for x^n is not zero.
Find integer values x, such that the polynomial evaluates to 0 for x. These values are sorted from smallest to largest.
Trait Implementations
type Output = Polynomial
type Output = Polynomial
The resulting type after applying the +
operator.
Performs the +
operation. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Output = Polynomial
type Output = Polynomial
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Polynomial
impl Send for Polynomial
impl Sync for Polynomial
impl Unpin for Polynomial
impl UnwindSafe for Polynomial
Blanket Implementations
Mutably borrows from an owned value. Read more