LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Yay symbolic variables! (https://www.linuxquestions.org/questions/programming-9/yay-symbolic-variables-230969/)

Chrax 09-15-2004 12:50 PM

C: Symbolic variable header
 
I'm trying to make a C program that uses the Lagrange Interpolating Polynomial to output a function. Effectively the plan is to take in a dynamic number of data points with domain [0,1,2,...,n], put them into a hash, and run them through Eq. 3 from the above link.

Unfortunately, it will come out in the form (x-m)(x-n)...(x-foo)/(some integer). I need to be able to multiply these together to come out with a meaningful function in the form ax^(foo-n) + ... + N.

So I need to know if anybody's made a symbolic variable header that I could use and where I could get it.

Or, if anybody knows how to do this without symbolic variables, that'd be great too.


Thanks

ToniT 09-17-2004 08:31 PM

ginac


All times are GMT -5. The time now is 12:41 AM.