Skip to main content
POST
Find Root Using Newton's Method

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 or 'custom_poly' for polynomial

Available options:
sin,
cos,
exp,
log,
exp_minus_2,
x2_minus_4,
custom_poly
Example:

"exp_minus_2"

x0
number
required

Initial guess for the root

Example:

1

tol
number
default:1e-12

Convergence tolerance

Example:

1e-12

poly_coeffs
number[]

Polynomial coefficients (only for custom_poly)

Example:

Response

Successful Response

success
boolean
Example:

true

data
object