Skip to main content
POST
Compute Numerical Gradient

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://api.fincept.in/auth/register

Body

application/json
func_name
enum<string>
required

Built-in multi-variable function name

Available options:
rosenbrock,
sphere,
rastrigin,
quadratic
Example:

"rosenbrock"

x
number[]
required

Point at which to evaluate the gradient (vector of coordinates)

Example:
h
number
default:1e-7

Step size for finite difference

Example:

1e-7

method
enum<string>
default:forward

Finite difference method

Available options:
forward,
central
Example:

"forward"

Response

Successful Response

success
boolean
Example:

true

data
object