I'm trying to find a root of a function that may be immediately before it begins having only imaginary values. (Specifically, it's the intersection of a line and a half-circle.) Obviously neither Brent's nor the bisection method will work; neither will Newton's method. Is there a less-obvious one that will?
+1
A:
is it polynomial function? maybe you can use laguerre method, http://mathworld.wolfram.com/LaguerresMethod.html
aaa
2010-07-21 03:46:46
+4
A:
Rather than trying to solve the equation
f(x) == 0
you could instead try to solve
abs(f(x)) == 0.
For example you could use bisection to find minima. In cases like the one you mention it may even be beneficial to solve
abs(f(x))**2 == 0,
because this way you void some square roots.
Accipitridae
2010-07-21 08:18:01
That's a great suggestion --- especially the last idea. Thanks!
JasonFruit
2010-07-21 12:52:38