Post Reply 
Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3)
02-16-2014, 02:13 PM
Post: #15
RE: Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3)
(02-16-2014 02:03 AM)Joe Horn Wrote:  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.
I looks good to me :-)
Prompt recovery!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3) - Tugdual - 02-16-2014 02:13 PM



User(s) browsing this thread: 2 Guest(s)