# Intersection of an equation and discrete points.

1. ### maistral

98
How do you calculate the intersection of discrete data points and an equation?

Actually I have two ways already, one is to just take the equation of the discrete points then solve it using a root-finding technique. The other would be substituting the x values of the discretized points to the equation, then comparing the y values of the discretized points and the calculated y values from the equation; they should be close (if not totally similar). While this method seems to work, it isn't... exactly possible in my situation.

Is there any other way to do this?

Last edited: Mar 26, 2014
2. ### sugaralc

1
When I faced this problem, I used the root-finder implemented in programs like Mathematica, matlab, etc. This way is very easy and pragmatic. This is the link for FindRoot coomand in Mathematica. http://reference.wolfram.com/mathematica/ref/FindRoot.html

1 person likes this.