math & physics
udvat at November 30th, 2008 06:50 — #1
For a function, I want to calculate the range where one root exists. For example, f(x) has a root in subrange [a1,b1], another root in subrange[a2,b2] in a total range of [X,Y]. Is any such algorithm available to calculate the ranges?
Thanks in advance.
reedbeta at November 30th, 2008 14:04 — #2
Can you give us any more details about the function? For a completely general function, this sort of thing is not really possible. However if you have a specific class of functions you are interested in (such as polynomials) then it may be possible.
sol_hsa at December 1st, 2008 01:53 — #3
Or how about not posting schoolwork assignments?
udvat at December 1st, 2008 01:55 — #4
Thanks for your reply.
My desired function is 10sin(x)-x=0.
reedbeta at December 1st, 2008 04:28 — #5
Well I'll give you a hint.
You know (or should know) that sin(x) is always between -1 and 1. Given this, you should be able to calculate a range of x values where that function could possibly have roots.
Once you've done that, you can use what you know about where the roots of sin(x) are to estimate how many roots your function could have and ranges where they could be.
udvat at December 1st, 2008 04:28 — #6