cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

X Y plots on MathCAD 15.0

ptc-5491680
1-Visitor

X Y plots on MathCAD 15.0

Hi,

Can someone explain how to plot the graphs of

y=x^4

and y^2= 24x

on the same plot to enable me to work out the enclosed area between the two curves.

Thanks in advance

Matt

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:ptc-5491680)

A variable which has been assigned a value can't be used for a quickplot.

See the attached file for some solutions.

View solution in original post

16 REPLIES 16

If noone guessed I'm using MathCAD 15.0 programme

Not sure we could have guessed from your original post

Mike

Something like thjis?

Mike

How do you get that but I get this?!

I'm obviously missing something here!!

And I need the second equation to be y(sqrd)

y^2 = 24x

Have a look at the attached.

It seems you put a decimal after the y2 definition. Make sure you start the brackets immediately after the variable.

Werner_E
25-Diamond I
(To:ptc-5491680)

Something like the attached, guess.

Unfortunately Mathcad still does not plot implicit functions, so you have to reformulate it either explicit to x or to y.

@Mike: I think you misinterpreted the second function

05.02.png

Good point Werner,

I didn't want to change the formula as I wanted to show him how to graph it. Superb work by the way.

Werner,

I have just been working on your sheet as one of my weak points with Mathcad is the symbolic solvers.

Did you use the first row of numbers in the matrix because they relate to the x-axis?

as one of my weak points with Mathcad is the symbolic solvers.

Maybe because the symbolic solver is one of the weak points of Mathcad 😉

Did you use the first row of numbers in the matrix because they relate to the x-axis?

No and yes 😉

No, I used the first colum (for the integration interval) and

yes, I did that because the first column represents the abscissa values.

solve results one solution per row, wheras Find one solution per column.

I have not yet found a way to limit the results of the symbolic evaluated Find() to the two real ones.

Werner Exinger wrote:

as one of my weak points with Mathcad is the symbolic solvers.

Maybe because the symbolic solver is one of the weak points of Mathcad 😉

Maybe I have been lazy over the years and failed to find a requirement for it. However, this is a great example and one for collection.

Werner Exinger wrote:

as one of my weak points with Mathcad is the symbolic solvers.

Maybe because the symbolic solver is one of the weak points of Mathcad 😉

Did you use the first row of numbers in the matrix because they relate to the x-axis?

No and yes 😉

No, I used the first colum (for the integration interval) and

yes, I did that because the first column represents the abscissa values.

Sorry I did mean column.

Cheers for the explanation.

Thanks for your help.

I have got down to plotting the graphs but still am not having any luck.

Can anyone help to solve my problem?! I just need those graphs to be plotted on the same axis

Cheers

Werner_E
25-Diamond I
(To:ptc-5491680)

A variable which has been assigned a value can't be used for a quickplot.

See the attached file for some solutions.

lturek
12-Amethyst
(To:Werner_E)

How did you do the shading/hatching of the area between the two curves in your post above?

Werner_E
25-Diamond I
(To:lturek)

Leopold Turek wrote:

How did you do the shading/hatching of the area between the two curves in your post above?

When you click in the plot you see that I plotted every function twice. The first two plots are formatted as plot type "error" (open the plot format menu and see yourself). Usally this will draw a vertical double-T line between appropriate points and its a quick and dirty way to get some kind of shading. I plotted these first two functions using a range variable, so only the range between the points of intersection is shaded. This range variable is named x. (note the dot after the x - just like you wanted to type and index. This variable looks like a normal x if you dont click on it). Experiment with the range variable, change the 0.01 to 0.1 and you will see the vertical lines. BTW, its important to plot the shading before the actual curves, otherwise the "shading" will cover (at least partially) the curves.

If you search for "hatching" here in the forum you will find other ways of doing it, but all would require more or less complicated user defined functions. The most versatile routine is the one of Prof. Birkeland here http://communities.ptc.com/docs/DOC-3380

Werner_E
25-Diamond I
(To:lturek)

Here is another thread that might be of interest to you http://communities.ptc.com/message/205924#205924

lturek
12-Amethyst
(To:Werner_E)

Thank for the link. Truly interesting and valuable information!

Announcements

Top Tags