Post Reply 
Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3)
02-21-2014, 02:28 AM
Post: #19
RE: Linear Interpolation: Given a pair of (x1,y1), (x2,y2) and x3 predict (x3,y3)
I ended up writing this little program:

export int2(xmin,xmax,ymin,ymax,yreal)
BEGIN
local xreal;
xreal:=xmin+((yreal-ymin)/(ymax-ymin))*(xmax-xmin);
return(xreal);
END;

As few keystrokes as it gets I suppose.
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) - DeucesAx - 02-21-2014 02:28 AM



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