foreng_numeric_calculus Module


Uses


Contents


Functions

public function calc_derivative(func, x_0, dx) result(dydx)

Arguments

Type IntentOptional AttributesName
real(kind=real64), external:: func

Ptr to an external function

real(kind=real64), intent(in) :: x_0

Value at which to calculate the derivative

real(kind=real64), optional :: dx

Optional step size. If not present, defaults to

Return Value real(kind=real64)

at