Run ❯
Get your
own
website
×
Change Orientation
from scipy.optimize import root from math import cos def eqn(x): return x + cos(x) myroot = root(eqn, 0) print(myroot.x)
[-0.73908513]