Re: Interpolate between two curves [message #75601] |
Sun, 27 March 2011 08:16 |
Gray
Messages: 253 Registered: February 2010
|
Senior Member |
|
|
On Mar 26, 9:49 am, Gray <grayliketheco...@gmail.com> wrote:
> On Mar 25, 9:55 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> On Mar 25, 9:27 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>>> Why would you need to loop with interpol?
>
>>> -Jeremy.
>
>> Because it can only handle 1-d data. I think I figured out my answer,
>> though.
>
> To elaborate: since the z-values are linear in y, then the z value
> for any x,y pair should be:
> z = 5 * [y-y_0(x)] / y_5(x)
> So I just calculate my y_0 and y_5 values for all my x's, and then my
> z's fall out.
And of course (after a geometry refresher) it's actually:
z = 5 * [y - y_0(x)] / [y_5(x) - y_0(x)]
|
|
|
Re: Interpolate between two curves [message #75602 is a reply to message #75601] |
Sat, 26 March 2011 06:49  |
Gray
Messages: 253 Registered: February 2010
|
Senior Member |
|
|
On Mar 25, 9:55 pm, Gray <grayliketheco...@gmail.com> wrote:
> On Mar 25, 9:27 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>> Why would you need to loop with interpol?
>
>> -Jeremy.
>
> Because it can only handle 1-d data. I think I figured out my answer,
> though.
To elaborate: since the z-values are linear in y, then the z value
for any x,y pair should be:
z = 5 * [y-y_0(x)] / y_5(x)
So I just calculate my y_0 and y_5 values for all my x's, and then my
z's fall out.
|
|
|
Re: Interpolate between two curves [message #75603 is a reply to message #75602] |
Fri, 25 March 2011 18:55  |
Gray
Messages: 253 Registered: February 2010
|
Senior Member |
|
|
On Mar 25, 9:27 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
> Why would you need to loop with interpol?
>
> -Jeremy.
Because it can only handle 1-d data. I think I figured out my answer,
though.
|
|
|
|