horner Interface

public interface horner

Apply Horner rule to evaluate a polynomial


Contents


Functions

public function horner(coeffs, x) result(res)

Arguments

Type IntentOptional AttributesName
real(kind=psb_dpk_), intent(in), dimension (:):: coeffs

Coefficient of the polynomial

real(kind=psb_dpk_), intent(in) :: x

Where to evaluate

Return Value real(kind=psb_dpk_)

Result