FIND INTERVAL

hi every one i have to write a programme to find the interval for which tan(x)=2x please help me to find algorithem to find interval for this equation or to find any interval for other equations,,
regards... :-)
you want to find out what the range of
closed account (D80DSL3A)
You could try Newtons method for finding the roots of an equation:
http://en.wikipedia.org/wiki/Newton%27s_method

I wrote a program to use it on tan(x) - 2*x = 0 and readily found x = 0, 1.16556, -1.16556 for the roots on the branch of tan(x) for -pi/2 < x < pi/2.
Finding a root on the next branch was a problem though. I found x = 4.60422 only by providing a very close initial guess (4.65). It appears the method diverges there readily.
Topic archived. No new replies allowed.