A polynomial
is represented by the list
-
eval_poly
Implementeval_poly : float -> float list -> float
that evaluates the polynomial (2. argument) for a given$x$ (1. argument). -
derive_poly
Implementderive_poly : float list -> float list
that returns the first derivative of the given polynomial.