when type solve(x^1.55/1500-0.344x+1060=0,x) the answer comes only x=79600 when it should have x=3745 too.what do i have to do to get all answer from the equation.
Why Answer From Solve Equation Exit Only One Answer(when It Should Hav
Started by
tamm
, Oct 04 2005 08:46 AM
2 replies to this topic
#1
Posted 04 October 2005 - 08:46 AM
#2
Posted 04 October 2005 - 06:16 PM
This subject has been discussed some months ago, so I will not repeat it here. In short: you are asking for something much more difficult than you think. Locating and computing all the roots of a function is not an easy task. There is a method to do this, but it needs "heavy" mathematics even to understand how it works. But if you want to solve the problem, use LuaNumAn. It's a Numerical Analysis package written by me. You will need the CPLua Add-In to run it. Go to the CPLua project for details.when type solve(x^1.55/1500-0.344x+1060=0,x) the answer comes only x=79600 when it should have x=3745 too.what do i have to do to get all answer from the equation.
Welcome to the CPLua world!
#3
Posted 06 October 2005 - 08:57 AM
Here are two screenshots, showing the solution of tamm's problem using LuaNumAn:
(the fist screenshot shows the console window after executing a simple CPLua program that uses LuaNumAn, and the second is a graph of the function together with its roots, as computed by the program). The graph is generated by LuaNumAn plotting functions.
The computation time for locating and computing all the roots of tamm's function within the interval [0,100000] is less than one second (you press "Run", and you get the roots almost instantly)
(the fist screenshot shows the console window after executing a simple CPLua program that uses LuaNumAn, and the second is a graph of the function together with its roots, as computed by the program). The graph is generated by LuaNumAn plotting functions.
The computation time for locating and computing all the roots of tamm's function within the interval [0,100000] is less than one second (you press "Run", and you get the roots almost instantly)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users