Is there some sort of functionality built into Mathematica that will let me linearly interpolate between (x, y) pairs of data in an array?
Example: I have the two points (1, 10) and (2, 20), how can I find out what the interpolant at 1.5 would be?
|
Is there some sort of functionality built into Mathematica that will let me linearly interpolate between (x, y) pairs of data in an array? Example: I have the two points (1, 10) and (2, 20), how can I find out what the interpolant at 1.5 would be? |
||||
|
What about using
|
|||
|
|
|
Although not as elegant as halirutan's post, this helps alternatively,
|
|||
|
|
|
Not as elegant as above approaches, but
|
|||
|
|
|
Apparently, it has been missed that
|
|||
|
|
Interpolate[{Lena, Toady}]and it doesn't work – belisarius Mar 5 at 9:19