Skip to main content
POST
Monte Carlo Integration

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 function (multi-variable for multi-d, scalar for 1-d)

Available options:
rosenbrock,
sphere,
rastrigin,
quadratic,
exp,
sin,
cos
Example:

"sphere"

bounds
number[][]
required

Integration bounds for each dimension [[a1,b1], [a2,b2], ...]

Required array length: 2 elements
Example:
n_samples
integer
default:10000

Number of Monte Carlo samples (more samples = more accurate)

Example:

10000

seed
integer
default:42

Random seed for reproducibility

Example:

42

Response

Successful Response

success
boolean
Example:

true

data
object