Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Ben
Posts:
6
From:
Netherlands
Registered:
2/18/10


Shifting data
Posted:
Feb 18, 2010 9:02 AM


Hello,
I want to start two graph's at the same yvalue (trig) independent of there corresponding xvalue so I can compare those graph's. So I've made a function which calculates the xvalue of this yvalue by interpolation. This gives me the exact xvalue of the point of intersection.
In a next step I want to plot both graphs with the intersection point in both graphs at the same xvalue. For this step I would like to shift the data from this (nonexisting) interpolated intersect xpoint.
The problem is that this intersect xvalue is between to measurement points and the question is whether and how it is possible to shift the data over the xaxis to a certain point.
For example: Working with array G. The intersect point is between data point A(0.2, 1) and data point B(0.8, 2) The intersect point has coordinates (1.333,0.4)
I want to shift array G in such a way that intersect point (y=0.4) will have a x=0.



