Skip to main content
POST
Stratified Sampling 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 scalar function to integrate

Available options:
exp,
log,
sin,
cos,
sqrt,
x2,
x3
Example:

"x2"

a
number
required

Lower integration bound

Example:

0

b
number
required

Upper integration bound

Example:

2

n_strata
integer
default:10

Number of strata to divide the interval into

Example:

10

samples_per_stratum
integer
default:100

Number of samples per stratum

Example:

100

seed
integer
default:42

Random seed for reproducibility

Example:

42

Response

Successful Response

success
boolean
Example:

true

data
object