polynomial#

swordfish.function.polynomial()#

Apply the polynomial coefficient vector coeffs on each element of X. Return a vector of the same length as X.

Parameters:
  • X (Constant) – A scalar/vector.

  • coeffs (Constant) – A vector indicating the coefficients of a polynomial.