Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

numeric_solve function

Solve equations numerically.

How to write it

numeric_solve(equations, variables)

equations
What to solve; a list of equations is a system. Takes an equation, or a list of equations in brackets.
variables
A variable, or a list of variables such as [x, y]. Takes a variable, or a list of variables.

Examples

  • x3−x−1=0⇒x=1.324717957244746,x=−0.662358978622373−0.5622795120623012i,x=−0.662358978622373+0.5622795120623012i\displaystyle x^{3}-x-1 = 0 \Rightarrow x = 1.324717957244746,\quad x = -0.662358978622373-0.5622795120623012 i,\quad x = -0.662358978622373+0.5622795120623012 i
    numeric_solve(x^3 - x - 1 = 0, x)

    In the solver, numeric_solve(x^3 - x - 1 = 0, x) gives [[x -> 1.324717957244746], [x -> -0.662358978622373 - 0.5622795120623012i], [x -> -0.662358978622373 + 0.5622795120623012i]].

    Open in the solver
  • solve

    Solve equations for one or more unknowns.

  • linear_solve

    Solve a linear system A x = b given by its matrix and right-hand side.

  • solve_all

    Describe the complete solution set of equations and inequalities.

  • solve_identity

    Find the values of the parameters that make an equation true for every value of the variable.

  • least_squares

    The least-squares solution of A x = b.

  • find_root

    Find a root numerically, from a starting value.