Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

** Community Tip** - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question.
X

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Dec 03, 2020
08:34 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
08:34 AM

I can`t plot an ellipse in Mathcad

I do not know what I do wrong in sample. I can't plot graphs.

Labels:

15 REPLIES 15

Dec 03, 2020
08:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
08:51 AM

k.x:=??

Dec 03, 2020
09:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
09:40 AM

@ptc-3682623 wrote:

I do not know what I do wrong in sample. I can't plot graphs.

How can you expect a plot without providing any values??

Here is a simple fix by providing the necessary values via a global assignment. What did you mean with the second argument 0.1 you wrote for the functions y1,y2?

You may also consider turning all your variables in functions of the five input parameters. It may be necessary to uses the "assume" statement in the symbolic evaluations to tell Mathcad which parameters are real, positive, greater than the other, etc. The symbolic results may be quite too large for Mathcad being willing to display. Not sure if you really need symbolic results anyway.

Mathcad15 worksheet attached

Dec 03, 2020
09:42 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
09:42 AM

Not allowed to edit the post I just made, so the remark here in a follow up.

If the goal is just to plot the ellipse, a parametric representation might be more appropriate:

(The absolute values aren't strictly necessary)

Dec 03, 2020
02:39 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
02:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
02:51 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
03:33 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
03:33 PM

I may be blind but as far as I can see your three answers don't take into account the questioner's file and his question about it? They were just triggered by the subject "plot an ellipse", right? 🙂

As far as your plotting of implicit functions concerns I strongly would suggest to use Viacheslav N. Mezentsev's function "implicitplot2d" - it usually gives a better result much faster.

See her the use for your example of an ellipse and a hyperbola:

P.S.: Of course you don't need implicit plots at all for conic sections (ellipse, hyperbola, parabola) as you always can find a parametric representation to plot it directly.

Dec 03, 2020
04:07 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 03, 2020
04:07 PM

Afterthought

Here is what I was talking about when I wrote that you can always find a parametric representation for a quadric (conic section):

Mathcad 15 worksheet attached

Dec 04, 2020
12:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 04, 2020
12:40 AM

OK! But!

1. We MUST use units in this problem. It is modern standard!

2. KISS - Keep it simple, stupid!

3. Can you solve with Мезенцев tools this problem?

Dec 04, 2020
07:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 04, 2020
07:26 AM

@ValeryOchkov wrote:

OK! But!

1. We MUST use units in this problem.

Sure not. What we have to do is respond to the questioner's specific question and answer it as best as possible. Otherwise this forum would be relatively meaningless IMHO.

Jan 27, 2021
11:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 27, 2021
11:10 AM

@ValeryOchkov wrote:

OK! But!

3. Can you solve with Мезенцев tools this problem?

You can do it like this

Dec 04, 2020
07:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 04, 2020
09:01 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 04, 2020
09:01 AM

@ptc-3682623 wrote:

The same problem. Sample in attachment.

No, its not the same problem! The entries on the abscissa and the ordinate must correspond. If there are less entries on the abscissa, the existing ones are matched with those on the ordinate and the rest of the ordinate entries are matched with the last entry on the abscissa.

You should also change the number format, otherwise you would see just zeros at the ordinate. Alternatively it might be better to multiply the values by 10^9 tp represent nm instead of m. You know you can work with units in Mathcad from the start? Its a valuable feature you sure should try.

Dec 07, 2020
02:29 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 07, 2020
02:29 PM

Now is something wrong too. If I put more points I got error like in sample. We need put more points like in sample4. It will be 6 more points like in sample4.

Dec 07, 2020
06:11 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Dec 07, 2020
06:11 PM

The error message says it all. The total number in one plot region is limited to 500000 in Mathcad (the help states erroneously 150000 which was the limit in earlier versions of Mathcad) .

So you must reduce the number of values in the various range variables you are using for plotting.

I just had a look at the range xx.10.9.5% which you defined. This range variable has 40386 values and so the two plots which use this range consist of nearly 81000 points. Some other ranges you use seem to have even more values and so the twelve plots you try to show in this last regions exceed the total limit of half a million points.

So change the 10^-6 in the definition of your ranges to a larger value - 10^-5 will do, 10^-4 will be even better and will also speed up editing and scrolling your sheet.

If you don't like the gaps in the ellipses at the left and right ends, you'll have to plot the ellipses uses their parameter representation as I had shown a while ago in a previous answer.