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 |
ginac
|
All times are GMT -5. The time now is 12:41 AM. |