How should I solve my equations in Perl?
I know binary search is one solution (and perhaps pretty fast for my equations) but I would like to know if there is a ready to use solutions such as math packages or libraries so that I can use them instead of implementing my own solver?
NOTE:
- This is, find
x
for a giveny
. - The functions are strictly increasing
- The equations usually look like:
y = a + b*sqrt(x) + b*x
ory = sqrt(a*(x-b)**2*(x-c)/(x-d))
- Please don't complain that "this is off topic" or "you should ask this in http://math.stackexchange.com". I want to see this problem from the programming point of view, particularly in Perl!