Javascript and php-Solving system of equations with one unknown variable
I'开发者_StackOverflowm looking for a javascript or php-script that is able to solve a system of equations with one unknown variable x. The equation can be of any kind, i.e. linear, quadratic, cubic etc. e.g. 10-2*x = 25*x or 12*sin(x³) = ln(x²) or e^x² = x^5
I hope I've explained you well enough what I'm looking for. Do you think that such scripts exist or are there maybe other possibilities to calculate such equations?
Thanks in advance.
Cheers,
enne
There is no way to solve any equation automatically. Even if you need to get only numerical solution.
Of course, there are several well known methods to get approximate results. But each of them imposes some restrictions to the equation.
Here is a simple script that implements Newtons method.
精彩评论