numpy.polynomial.legendre.legval()

numpy.polynomial.legendre.legval

numpy.polynomial.legendre.legval(x, c, tensor=True) [source]

Evaluate a Legendre series at points x.

If c is of length n + 1, this function returns the value:

p(x) = c_0 * L_0(x) + c_1 * L_1(x) + ... + c_n * L_n(x)

The parameter x is converted to an array only if it is a tuple or a list, otherwise it is treated as a scalar. In either case, either x or its elements must support multiplic