Skip to main content

cevalpoly

Function cevalpoly 

Source
pub fn cevalpoly(coeffs: &[f64], z: Complex<f64>) -> Complex<f64>
Expand description

Evaluate polynomials

All of the coefficients are stored in reverse order, i.e. if the polynomial is:

$$ u_n x^n + u_{n-1} x^{n-1} + \ldots + u_0 $$

then coeffs[0] = $u_n$, coeffs[1] = $u_{n-1}$, …, coeffs[n] = $u_0$

§Arguments

  • coeffs: Polynomial coefficients in reverse order
  • z: Complex value at which to evaluate the polynomial

§Returns

  • p(z): Value of the polynomial evaluated at z