Lagrangian Interpolation
|
03-14-2019, 05:56 PM
Post: #16
|
|||
|
|||
RE: Lagrangian Interpolation
(03-14-2019 03:55 PM)PedroLeiva Wrote: This means that when the function is a straight line I have to use this and when it is a curve the Lagrangian method? You could enter a dummy point (e.g. 0 ENTER) as third point. Just make sure that the x-value is different from the other 2 points. And then clear register 5: CLx STO 5 If you evaluate now the polynomial of the previous example at \(x=2\) you get: 2 R/S 13.1667 Or then you can just shorten the existing program to: Code: 01: 01 : 1 HTH Thomas PS: You could also use the mid-point of the first two points as a third point. This would lead to a "natural" way to make the entry in register 5 equal to 0. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)