//Forward Difference
x=input("Enter value of x as row matrix:")
y=input("Enter value of y as row matrix:")
xg=input("Enter xg at which we want to interpolate:")
n=length(x)
h=x(2)-x(1)
u=(xg-x(1))/h
disp("Forward difference table is:")
for i=1:n-1
disp(diff(y,i))
end
yg=y(1)
p=u
for i=1:n-1
d=diff(y,i)
yg=yg+p*d(1)
p=p*((u-i)/(i+1))
end
disp(yg,"The interpolation by forward difference table is :")
//Outputs
-->exec('D:\Scilab\Scilab without outputs\Forward difference.sce', -1)
Enter value of x as row matrix:[10 20 30 40 50]
Enter value of y as row matrix:[45 65 80 92 100]
Enter xg at which we want to interpolate:17
Forward difference table is:
20. 15. 12. 8.
- 5. - 3. - 4.
2. - 1.
- 3.
The interpolation by forward difference table is :
59.694488
x=input("Enter value of x as row matrix:")
y=input("Enter value of y as row matrix:")
xg=input("Enter xg at which we want to interpolate:")
n=length(x)
h=x(2)-x(1)
u=(xg-x(1))/h
disp("Forward difference table is:")
for i=1:n-1
disp(diff(y,i))
end
yg=y(1)
p=u
for i=1:n-1
d=diff(y,i)
yg=yg+p*d(1)
p=p*((u-i)/(i+1))
end
disp(yg,"The interpolation by forward difference table is :")
//Outputs
-->exec('D:\Scilab\Scilab without outputs\Forward difference.sce', -1)
Enter value of x as row matrix:[10 20 30 40 50]
Enter value of y as row matrix:[45 65 80 92 100]
Enter xg at which we want to interpolate:17
Forward difference table is:
20. 15. 12. 8.
- 5. - 3. - 4.
2. - 1.
- 3.
The interpolation by forward difference table is :
59.694488
thank you sooooo much
ReplyDeleteit was very helpful
assignment chap liya aur kyahi chahiye
Deleteporn
ReplyDeleteGood work
ReplyDeleteGood
ReplyDeleteBhot hard
ReplyDeletejust like my dick after looking at your mother
DeleteYou helped me a lot. Thankyou very much.😘
ReplyDeletedid he give you a blowjob ?
Deletebro do it without using diff operator
ReplyDeletema chuda na
Deletethanks bhai
ReplyDeletethank you:)
ReplyDeletethanks buddy :)
ReplyDeleteabe apna kaam kar
Deleteohhhhhhh yeahhh !
ReplyDeleteStop right there you criminal scum !. Anirban is watching all of you
ReplyDeletestudents of IIIT Kalyani students stop copying from this website or else you will recive Zero marking
ReplyDeleteDont copy today's AL lab assignment from here IIIT Kalyani student's because I am copying this one :) Search another one
ReplyDeleteSee you next year too
Deletebhosdike bacho ki zindagi barbad krna band kr
DeleteSorry mummy maf koribe.
DeleteJoin the theory link
Deletewe called you many times
DeleteNo we will not take any viva now so go sleep
DeleteAttendance link will close in 10 seconds
DeleteI have been coding since very long
DeleteActually I forgot
Deleteaaja tujhe chaand p l chlu
DeleteNo no no no actually that is toh not possible na
Deleteand yash ,pax and ali yaha se mat chapna its a trap
ReplyDeleteNewton backward nhi hora tha kya noobde
ReplyDeletetera baap lgta h kya wo
Deletereal id se aao ghatiya valo player
ReplyDeleteYou peepul this is cheating, I bhill mark you peepul zero
ReplyDeleteImmediate action bhill be taken against all of you
ReplyDeleteI am Soham anonymus is also my insta id meri shaktio ka galat istamaal ho rha hai reg no.601 currently 4th sem aniraban's data science student
ReplyDeleteWHAT IS THIS PLACE??
ReplyDeletemccian aagye code chapnee
ReplyDeletele reena mam,i will not give u marks if u copy from this website
ReplyDeleteDr. Ashish K Badika is an Arthritis Doctor in Indore with have 3 years of advanced training in Rheumatology and Clinical Immunology including 2 years Post Doctoral.
ReplyDelete