Skip to main content
4-Participant
September 12, 2015
Solved

How to plot the two equations

  • September 12, 2015
  • 2 replies
  • 2538 views

Hi,

I want to plot the 2 equations in mathcad,

The two equations are,

2x^2+3y^2=59 (circle)

4y=x+8 (straight line)

these examples are used in Find command in mathcad.

I attached my code below.

Best answer by Werner_E

I want to plot the 2 equations in mathcad,

The problem is that Mathcad unfortunately is not able to plot implicit function. So you have to provide explicit functions or turn the equation into a parametric representation.

2x^2+3y^2=59 (circle)

Thats definitely not a circle but an ellipse!

these examples are used in Find command in mathcad.

Find uses an numeric algorithm an will only give you just one solution (depending on the guess values). Sometimes you have luck and the symbolic solve command will give you all solutions.

Here is a variation using just the symbolics (be aware that Mathcad's symbolic abilities are rather limited).

As you can see the ellipse is drawn as two plots (upper and lower half) and I have used a rather dense range variable x_ for plotting to avoid bigger gaps at the joints.

For plotting ellipses its much better to use a parametric representation which I guess cannot be found automatically but of course is well known for an ellipse.

Regards, Werner

2 replies

19-Tanzanite
September 12, 2015

See attached.

Alan

Werner_E25-Diamond IAnswer
25-Diamond I
September 12, 2015

I want to plot the 2 equations in mathcad,

The problem is that Mathcad unfortunately is not able to plot implicit function. So you have to provide explicit functions or turn the equation into a parametric representation.

2x^2+3y^2=59 (circle)

Thats definitely not a circle but an ellipse!

these examples are used in Find command in mathcad.

Find uses an numeric algorithm an will only give you just one solution (depending on the guess values). Sometimes you have luck and the symbolic solve command will give you all solutions.

Here is a variation using just the symbolics (be aware that Mathcad's symbolic abilities are rather limited).

As you can see the ellipse is drawn as two plots (upper and lower half) and I have used a rather dense range variable x_ for plotting to avoid bigger gaps at the joints.

For plotting ellipses its much better to use a parametric representation which I guess cannot be found automatically but of course is well known for an ellipse.

Regards, Werner