pub struct Polynomial { /* private fields */ }

Implementations

Creates a new polynomial from a vector of monomials

Creates a new polynomial from a vector of (f64, u64) tuples representing monomials

Returns the value of the polynomial at a particular point

returns the derivative of the polynomial

Uses the Newton-Raphson method to approximate the solution to the polynomial with a certain starting guess and a certain number of iterations.

Uses the Newton-Raphson method until the answer shows no significant change. Can lead to an error if the functino has no solution among the reals or the starting guess leads to a division by zero somewhere.

Creates a polynomial from a string representing the polynomial

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.