Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • cos⁡(x)=x⇒x=0.7390851332151607\displaystyle \cos(x) = x \Rightarrow x = 0.7390851332151607
    find_root(cos(x) = x, x = 1)

    In the solver, find_root(cos(x) = x, x = 1) gives [x -> 0.7390851332151607].

    Open in the solver

Functions its examples use

  • cos

    Cosine of an angle in radians.

  • 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.