Calculating Complex Equations...
Posted on 2003-11-07
I am developing a mathematical application that involves the storage and process of equations of cubic and quartet order. I am storing the data in an MSDE database. The equation is stored in the database in the following format, (all equations are structured this way at the moment);
3.5604e-3*x(3) + 4.5394e-2*x(2) + 2.9238e+1*x(1) + 2223
The x(3) is interperated as x cubed, x(2) x squared.
The UI extracts this equation and has to break it into its atomic parts substituting x with a user input and calculating it accordingly.
Can anyone advise me on a more efficient storage format of the equations and a technique to break the equation into its constituent parts for ease of calculation.
kind regards Imran Farooq