Skip to main content
8-Gravel
October 16, 2025
Solved

Manipulating Data Based on Intersection Points between Curves

  • October 16, 2025
  • 1 reply
  • 320 views

I would like some help to develop a loop in Mathcad that returns x-axis offset distances between intersection points of two curves based on the y-values of the respective curves. 
The attached Mathcad Prime 11 file contains the details and a fuller explanation of this request for assistance.
Note, this is a follow-on from an earlier post titled "Mathcad Intersections and Discretized MatrixData". A link to this earlier discussion has been included at the top of the attached file for convenience.

Best answer by Werner_E

I understand the for y=24mm the result should be 160mm and for y=8mm it should be 0mm.

 

What*s the result for y=20 mm? Should it be 0mm or 10mm? According to the results of 

Werner_E_0-1760656538823.png

I asseum it should be 100 mm.

 

What's the result for y=30 mm?  According to

Werner_E_1-1760656598433.png

it should be 250 mm.

 

What, if for different input values A,B there are three or more shaded areas? It would mean that the output should again be a row vector with more than one value.

 

Here is a solution which follows the above assumptions:

Werner_E_3-1760658842069.png

 

 

 

 

 

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
October 17, 2025

I understand the for y=24mm the result should be 160mm and for y=8mm it should be 0mm.

 

What*s the result for y=20 mm? Should it be 0mm or 10mm? According to the results of 

Werner_E_0-1760656538823.png

I asseum it should be 100 mm.

 

What's the result for y=30 mm?  According to

Werner_E_1-1760656598433.png

it should be 250 mm.

 

What, if for different input values A,B there are three or more shaded areas? It would mean that the output should again be a row vector with more than one value.

 

Here is a solution which follows the above assumptions:

Werner_E_3-1760658842069.png

 

 

 

 

 

 

 

8-Gravel
October 17, 2025

Thank you. 

Your assumptions were correct regarding the desired outputs.

Much appreciated.