Interpolating Between Lines: Techniques for Finding Y-Values on a Graph

In summary, the conversation discusses the problem of interpolation between lines on a graph and the difficulty of finding relevant information online. The speaker is seeking help with this issue and provides an example of wanting to find the value of 0.86 on a curve between 0.8 and 0.9. Possible approaches to solving this problem include finding a formula to approximate the relationship between curve label and position, or creating a 2-D graph of y versus level curves and finding the desired y-value from there. It is noted that the curve spacing is too great for simple linear interpolation.
  • #1
musk
15
0
Hi there.
I have a problem regarding interpolation between lines. I have to say that I have never done it before and I can't find relevant info on the internet, so I am asking for your help. the graph in question can be found here:

http://s9.postimage.org/kmj94nexb/physicsforum.png


I do not have any other info other than the X and Y value that I calculate beforehand. When I insert them on the diagram I get a point and if it falls on one of the curves already on the graph, then it's all OK, I read the value of the curve and can proceed with my calculations. Otherwise, I have to interpolate somehow, so the only info I would have is that point I get from the intersection of X and Y, which has to be part of the new (interpolated) curve.

For example I have curves 0,8 and 0,9 and I want to get 0,86. I also have to take into consideration the fact that Y is expressed as log.

I hope I explained it well enough...thank you.
 
Physics news on Phys.org
  • #2
I'm not quite sure which way you're trying to use the graph. Are you trying to find the curve label from x and y, or an x value given a curve and y? Or maybe you want to do all three ways?
Whichever, looks to me that the awkward part is the very nonlinear relationship between curve label and curve position. You will need to find a formula that approximates this. I would turn the dataset around so that I have one curve corresponding to each vertical grating line on your graph, with the y values being the curve labels on your graph. Then run some sort of curve fitting to see if I could find a formula.
 
  • #3
What you have is essentially a 2-D representation of a 3-D surface.
One way to approach you problem is to read values of y for constant x at each of the level curves on your original graph. Then, you can draw a graph of y versus the values of the level curves. Enter this second graph with the value of the level curve desired (the 0.86 value from your OP) and determine the y value you desire.
 
  • #4
SteamKing said:
What you have is essentially a 2-D representation of a 3-D surface.
One way to approach you problem is to read values of y for constant x at each of the level curves on your original graph. Then, you can draw a graph of y versus the values of the level curves. Enter this second graph with the value of the level curve desired (the 0.86 value from your OP) and determine the y value you desire.
As I said, the behaviour as a function of curve label is highly nonlinear. I would say the curve spacing is too great for a simple linear interpolation.
 
  • #5
Once you have a curve at constant x, then you can evaluate which method would work best to find the y-value for a particular level surface value.
 

FAQ: Interpolating Between Lines: Techniques for Finding Y-Values on a Graph

What is interpolation between lines?

Interpolation between lines is a method used to estimate values between two known data points. It involves using mathematical techniques to calculate a value that falls between two existing data points on a line.

Why is interpolation between lines important in science?

Interpolation between lines is important in science because it allows researchers to estimate values for data points that have not been directly measured. This can help fill in gaps in data and provide a more complete understanding of a phenomenon.

What are some common interpolation methods?

Some common interpolation methods include linear interpolation, polynomial interpolation, and cubic spline interpolation. These methods use different mathematical techniques to estimate values between data points.

What are the potential limitations of interpolation between lines?

Interpolation between lines can be limited by the quality and quantity of the data points being used. If the data points are not evenly spaced or there are large gaps between them, the estimated values may not be accurate. Additionally, the choice of interpolation method can also affect the accuracy of the estimates.

How can interpolation between lines be used in scientific research?

Interpolation between lines can be used in various ways in scientific research, such as predicting future data points, creating smooth curves from scattered data, and filling in missing data points. It can also be used to analyze trends and patterns in data and make more accurate predictions or conclusions.

Back
Top