num_dual.second_derivative

num_dual.second_derivative(f, x)

Calculate the second derivative of a scalar, univariate function.

Parameters

fcallable

A scalar, univariate function.

xfloat

The value at which the derivative is evaluated.

Returns

function value, first derivative, and second derivative