Low-level functions for evaluating and manipulating polynomials.
Examples
The vector of coefficients for the polynomial f(x, y) = 3 x y + x^2 is
[0, 3, 0, 1, 0, 0].
With eval() we can evaluate this polynomial:
use nutils_poly;
let coeffs = ;
assert_eq!; // f(1, 0) = 1
assert_eq!; // f(1, 1) = 4
assert_eq!; // f(2, 3) = 22
PartialDerivPlan::apply() computes the coefficients for the partial
derivative of a polynomial to one of the variables. The partial derivative
of f to x, the first variable, is ∂_x f(x, y) = 3 y + 2 x
(coefficients: [3, 2, 0]):
use PartialDerivPlan;
let coeffs = ;
let pd = new.unwrap;
assert_eq!;
# Ok::
Further reading
See the crate documentation for a detailed description.
This crate is part of the Nutils project.