Lagrangian Interpolation
|
12-18-2013, 06:04 AM
(This post was last modified: 01-24-2023 12:05 PM by Namir.)
Post: #1
|
|||
|
|||
Lagrangian Interpolation
Langrangian Interpolation of 3 points
Usage A program prompts you to enter 3 points and the interpolated x Enter y1 and the x1 at first prompt Enter y2 and the x2 at second prompt Enter y3 and the x3 at third prompt Enter xint at fourth prompt Note calculator displays 1, 2, 3 at the first, second, and third prompt B program prompts you to enter the interpolated x Program calculates and display the value of the interpolated Y. Algorithm Code: INPUT N, array X(1..N), Y(1..N), and Xint Memory Map R00 = x1 R01 = x2 R02 = X3 R03 = y1 R04 = y2 R05 = y3 R06 = x R07 = y R08 = Product R09 = used A = I for X(I) B = J for X(J) C = I for Y(I) Source Code Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)