Polynomial manipulation routines.
A polynomial p
p(x) = a_n x^n + ... + a_2 x^2 + a_1 x + a_0
is stored as a Fortran array p(0:n) according to
p = [ a_0, a_1, ..., a_n ].
Function to evaluate real polynomial
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=pfqp), | intent(in) | :: | p(0:n) | |||
integer, | intent(in), | value | :: | n | ||
real(kind=pfqp), | intent(in) | :: | x |