Solve this equation with fixed point iteration

后端 未结 2 1868
北海茫月
北海茫月 2021-02-14 17:16

How can I solve this equation

x3 + x - 1 = 0

using fixed point iteration?

Is there any fixed-point iteration

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 17:44

    Try the SymPy library. Here's a relevant example:

    >>> solve(x**3 + 2*x**2 + 4*x + 8, x)
    [-2*I, 2*I, -2]
    

    I'm not sure which algorithm SymPy uses to solve the equation, though.

提交回复
热议问题