Numerical root finding (find_root)
Find a root numerically, from a starting value.
How to write it
find_root(equation, x = a)
- equation
- An equation, or an expression that is zero at the root. Takes an equation, or an expression.
- x = a
- The variable and where to start. Takes a variable set to a value.
Examples
find_root(cos(x) = x, x = 1)In the solver,
Open in the solverfind_root(cos(x) = x, x = 1)gives[x -> 0.7390851332151607].
Functions its examples use
- cos
Cosine of an angle in radians.
Related functions
- find_instance
A point that meets a condition, or an empty list when there is none.
- least_squares
The least-squares solution of A x = b.
- linear_solve
Solve a linear system A x = b given by its matrix and right-hand side.
- eliminate
Eliminate variables from a system of equations, leaving equations in the others.
- numeric_solve
Solve equations numerically.
- solve_identity
Find the values of the parameters that make an equation true for every value of the variable.