Sage problem - numeric solving trigonometric equation

1.4k Views Asked by At

I am relatively new to Sage. Can someone please help me how to solve:

$$ \tan (x) - x/10 = 0$$ numerically?

1

There are 1 best solutions below

2
On BEST ANSWER

According to Sage docs:

find_root(tan(x)-x/10, a, b)

find a numerical root of this function on the interval $[a,b]$. The numerical method is likely to have problems with discontinuities of $\tan x$, so it is best to pick intervals between $\pi/2+\pi n$. For example,

find_root(tan(x)-x/10, pi/2, pi/2+pi)

returns 3.47614030869725,

find_root(tan(x)-x/10, pi/2+pi, pi/2+2*pi)

returns 6.886235172066371, and so on. You can write a for loop to produce a bunch of those.