shamrock.external.coala.utils_polynomials.phi_pol#
- shamrock.external.coala.utils_polynomials.phi_pol(pol_coeffs, x)#
Evaluate polynomial sum_{i=0}^{k} a_i x^i by Horner’s method
Parameters#
- pol_coeffs1D array (dim = k+1), type -> float
coefficients of polynomial of order k sort from low to high orders
- xscalar, type -> float
value to evaluate the polynomial
Returns#
- resultscalar, type -> float
evaluation of polynomial of order k at x