Page 1 of 1

Halp with an e-mail I recieved.

Posted: Sat Apr 15, 2006 5:35 pm
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.

Posted: Sun May 07, 2006 7:50 pm
by Theophage
zoinks!

sorry, my brain just melted...