Question: can someone give me a simple example in how to use this code to plot a Lagrange polynomial? thank you! function y=lagrange (x,point, pointy) LAGRANGE

 can someone give me a simple example in how to use

can someone give me a simple example in how to use this code to plot a Lagrange polynomial? thank you!

function y=lagrange (x,point, pointy) LAGRANGE approx a point-defined function using the Lagrange polynomial interpolation LAGRANGE (X, POINTX, POINTY) approx the function definited by the pointa: Pl- (POINTX (1), POINTY (1)), P2- (POINTX (2), POINTY (2))PN (POINTX (N), POTNTY (N)) and calculate it in each elements of x 0nsize (pointx,2): T-ones tn,size (x, 2)) 14 for 1:n if (13) E- end 18- 9 end 20-O; 21-B for i=1:n end C4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!