Skip to content
Prev 264729 / 398502 Next

finding the intersection of two vectors

On 07/07/11 08:43, Data Analytics Corp. wrote:
There will actually be two pairs of points, one pair on the price curve 
and one
pair on the demand curve, so that the intersection of the two curves 
lies between
the respective pair on each curve.  Without an algebraic expression for 
the curves,
that's all you can say.  The following function joins the respective 
pairs of points
by straight lines and finds the point of intersection of the two lines.  
This is probably
pretty similar to the point you'd get by eye-balling the data.

     cheers,

         Rolf Turner