integral Function

public pure function integral(f, x) result(y)

Returns the integral of f with respect to x using integrated Taylor expansion f: array of f values x: array of x values returns: the integral of f with respect to x

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: f(:)
real(kind=real64), intent(in) :: x(:)

Return Value real(kind=real64)