Lagrangian Interpolation
|
03-09-2019, 07:08 PM
Post: #14
|
|||
|
|||
RE: Lagrangian Interpolation
(03-13-2015 05:33 AM)bshoring Wrote: It also looks like it will work on an HP-25 as well as the HP-67. This program just fits in the 49 steps available for the HP-25: Code: 01: 01 : 1 Definition of the Polynomial Example: Find a quadratic polynomial given these 3 points: \(P_1(-5, 12)\), \(P_2(1, 13)\) and \(P_3(2, 11)\) CLEAR PRGM R/S 1.0000 12 ENTER -5 R/S 2.0000 13 ENTER 1 R/S 3.0000 11 ENTER 2 R/S These are the coefficients of the Newton polynomial: R3: 12.000000 R4: 0.166667 R5: -0.309524 This leads to the formula: \(f(x) = 12 + (x+5)(\frac{1}{6} - (x-1)\frac{13}{42})\) Interpolation of the Polynomial Example: Evaluate the polynomial at \(x=0.5\). 0.5 R/S 13.7679 Hint: You can just enter new values and hit R/S to evaluate the polynomial. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)