Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3)
|
02-16-2014, 02:03 AM
(This post was last modified: 02-16-2014 02:07 AM by Joe Horn.)
Post: #14
|
|||
|
|||
RE: Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3)
This is not a one-keystroke solution, but I think it works. CAS only.
Example: (x,y)1 = (1,5) (x,y)2 = (7,17) (x,y)3 = (10,?) subst(lagrange([1,7],[5,17]),x=3) --> 23, answer. In general: subst(lagrange([x1,x2],[y1,y2]),x=x3) --> y3, where "x" is a literal x. Can somebody sober verify this? Thanx. I'm currently under the influence of Nyquil. <0|ΙΈ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)