Skip to main content
15-Moonstone
September 18, 2020
Solved

Mathcad plotting. Line intersection.

  • September 18, 2020
  • 3 replies
  • 7965 views

Hello!

 

Is there a way to find an intersection point on a graph between 1) 2 lines  and  2) between a line and a marker?

NOTE: We can do this by setting up equations of the lines and thus find & plot the point. I just want to know if there is an alternative in Mathcad. 

Best regards,

Sergey

Best answer by Werner_E

You typed manually 0.252 in the placeholder for that outermost vertical marker.
That would not change automatically. I guess it should have been "Delta.tot(f,F.p) / mm". You can type this in the placeholder (making it unitless by dividing by the desired unit is mandatory) and the plot later still will show the number. The same goes for the other markers.
Are you looking for something like this:

Werner_E_0-1600505174150.png

Prime 6 sheet attached

 

3 replies

25-Diamond I
September 18, 2020

> NOTE: We can do this by setting up equations of the lines

How else would you like to define the lines?

 

For example: If you define both lines just by the coordinates of two points each, you may write a custom function taking the eight coordinate values as input and return the two coordinates of the intersection point.

 

You may want to give a more precise example of what exactly you would like to see - preferably by attaching a worksheet.

 

23-Emerald I
September 18, 2020

If you're asking if putting the cursor on the graph and having Mathcad display the coordinates of the intersection then, no, that won't work.  

Sergey15-MoonstoneAuthor
15-Moonstone
September 18, 2020

Yes, that was my wish. 

If it is so, I need to set up an equation that will find the intersection of the lines/function and then plot it.

 

Thank you.

23-Emerald IV
September 18, 2020

You mean like this?

LucMeekes_0-1600449246469.png

Luc

 

Sergey15-MoonstoneAuthor
15-Moonstone
September 18, 2020

Hello Luc.

 

Yes, it is.

But I am using Mathcad Prime. I would also like to indicate the intersection point on the plot.

I know that it is possible to set up markers. But I have to update them manually any time I change values of the variables. It is inconvenient.

 

Sergey

25-Diamond I
September 18, 2020

The tracing option which you can see in Lucs picture is not available in Prime.
Also that tracing is not automatic in real Mathcad, too - you would have to move the cursor yourself to the position you want.

If you want to automatically highlight the point of intersection, you would have to calculate its coordinates first.

 

Why don't you post a worksheet with an example?