Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.symbolic.independent

Topic: MuPAD verion 4 Problem with Newton Poly Interpolation
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Brad Cooper

Posts: 167
Registered: 12/8/04
MuPAD verion 4 Problem with Newton Poly Interpolation
Posted: Oct 5, 2012 12:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I set up a polynomial in T to perform Newton Interpolation

P := (N,T) -> sum(a[M]*product((T-t[k-1]),k=1..M),M=0..N);

Check is correct for 4 terms

P(3,T)

Get the table of data

t:=table(0=-0.9749279122,1=-0.7818314825,2=-0.4338837391,3=0,4=0.4338837391,5=0.7818314825,6=0.9749279122):

Check the polynomial for 4 terms now

P(3,T)

It is a mess. MuPAD substitutes the whole table each time instead of entries from the table.

I am using a table because the index can start at 0 and the formula then matches the one in the text.

Is there a workaround?

Cheers,
Brad




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.