跳转到内容

This page is also in English.

Read it in English

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

Léela en español

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

日本語で読む

数值求根(Numerical root finding,find_root)

从起始值出发,用数值方法求一个根。

怎么写

find_root(equation, x = a)

equation
一个方程,或在根处取零的表达式。接受一个方程或一个表达式。
x = a
变量以及从哪里开始。接受被赋值的变量。

示例

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

    在求解器中,find_root(cos(x) = x, x = 1) 的结果是 [x -> 0.7390851332151607]。

    在求解器中打开

示例中用到的函数

  • cos

    以弧度表示的角度的余弦。