Halp with an e-mail I recieved.

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Guest
Veteran
Posts: 128
Joined: Sun Aug 14, 2005 8:33 pm
Location: Forest Lake, MN
Contact:

Halp with an e-mail I recieved.

Post by Guest »

I was checkin my email today when I got this:
y(x)=f{s}0(x)y{s}0+f{s}1(x)y{s}1+f{s}2(x)y{s}2+?+f{s}n(x)y{s}n

f{s}i(x)=(x-x{s}0)(x-x{s}1)?(x-x{s}i-1)(x-x{s}i+1)?(x-x{s}n)
------------------------------------------------
(xi-x0)(xi-x1)?(xi-xi-1)(xi-xi+1)?(xi-xn)

for i=0 to n and x is not equal to xi
hi
Am faced with the problem of how to express the above polynommials in QBASIC program to calculate
the interpolation of x, when n and xi are given.Could you please write the code in QBASIC that will excute these polynomial.This is from LAGRAGIAN formula on interpolation ln numerical analysis .
I have done all i can using Array but nothing good came out.please i need your help
The following email was from dskwarload [at] yahoo [dot] com. If someone could help him out, thanks. I have little expirience with such equations in qbasic. Also, some of the characters are subscripted and I cannot transfer them correctly. All subscripted characters(chraracters lowered like the 2 in H20) have an {s} before them added by me.
User avatar
Theophage
Coder
Posts: 44
Joined: Sun May 07, 2006 7:32 pm
Location: Tucson, AZ
Contact:

Post by Theophage »

zoinks!

sorry, my brain just melted...
Daniel "Theophage" Clark
theophage (at) geocities (dot) com

"God used to be my co-pilot, but our plane crashed in the mountains and I had to eat Him..."
Post Reply