LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2004, 12:50 PM   #1
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
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

Last edited by Chrax; 09-15-2004 at 04:19 PM.
 
Old 09-17-2004, 08:31 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
ginac
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yay. Rod Beauvex LinuxQuestions.org Member Intro 1 05-05-2004 04:48 PM
Yay Me!!! Franklin General 5 08-25-2003 10:34 PM
Shel scripting: variables pointing to variables and case Dark_Helmet Programming 5 06-08-2003 11:07 AM
Yay ! phoeniXflame Slackware 1 02-13-2003 06:47 PM
yay for me fatpig Linux - General 4 02-08-2003 07:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration