RootFinder

Find Roots

Security Level 1 (Enabled)
SindByte tool execution flow: voice command, AI parse, execute, validate, result

Description

Numerically finds the roots (zeros) of functions. Supports several algorithms: Newton-Raphson, bisection, secant method. Ideal for nonlinear equations that cannot be solved analytically.

JSON Parameters

{
  "function": "x^2 - 4",
  "method": "newton",
  "initialGuess": 1.5,
  "tolerance": 1e-7,
  "maxIterations": 100
}
ParameterTypeRequiredDescription
functionStringYesThe function as a formula (f(x) = 0)
methodStringNonewton, bisection, secant (default: newton)
initialGuessNumberYesStarting value for the search
intervalArrayFor bisection[a, b] interval with a sign change
toleranceNumberNoAccuracy (default: 1e-7)
maxIterationsNumberNoMaximum iterations (default: 100)

Example Usage

API call:

POST /api/v1/tools/rootfinder
Content-Type: application/json

{
  "function": "x^2 - 4",
  "method": "newton",
  "initialGuess": 1.5
}

Examples

Quadratic equation:

{
  "function": "x^2 - 4",
  "method": "newton",
  "initialGuess": 3
}

Trigonometric:

{
  "function": "sin(x) - 0.5",
  "method": "bisection",
  "interval": [0, 2]
}

Cubic:

{
  "function": "x^3 - 2*x^2 - 5",
  "method": "secant",
  "initialGuess": 2
}

Return Values

{
  "root": 2.0,
  "iterations": 5,
  "converged": true,
  "finalError": 4.8e-9,
  "methodUsed": "newton",
  "success": true
}
FieldTypeDescription
rootNumberRoot found
iterationsNumberNumber of iterations
convergedBooleanConvergence reached
finalErrorNumberFinal error
methodUsedStringAlgorithm used
successBooleanTrue if successful

Related Tools

Why This Tool Stands Out

Perfect for:

Time Savings

No measured time-saving or performance figures are available here. Results depend on the task and environment.

Ready to Get Started?

Find roots numerically and efficiently.

Download Now
Back to MathTools