[SciPy-user] root finding
Howey, David A
d.howey at imperial.ac.uk
Tue Aug 9 05:32:53 CDT 2005
I am pondering the best way to do some root finding. I have a function which I give a mass flow value to and it returns a pressure. I need to iterate the mass flow value until a specific pressure is reached. As long as sensible initial guess are chosen, the function produces a pretty smooth curve with a unique root.
Initially I had a rough and ready algorithm which shoved a range of mass flows (in an array) through the function and looked for a zero crossing, and then fine tuned the result a few times. This works, but I'm wondering whether something like Newton-Raphson would be better, although I don't directly know the derivative, so I would be using a numerical approximation (I think this is called the secant method). Does scipy have an implementation of this? Any tips for use?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 3537 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20050809/3e9232ae/attachment-0001.bin
More information about the SciPy-user