poly_eval Function

public function poly_eval(p, n, x) result(v)

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

Arguments

Type IntentOptional AttributesName
real(kind=pfqp), intent(in) :: p(0:n)
integer, intent(in), value:: n
real(kind=pfqp), intent(in) :: x

Return Value real(kind=pfqp)


Contents

None