Skip to main content
1-Visitor
July 17, 2019
Solved

Ploting an elliptical curve

  • July 17, 2019
  • 6 replies
  • 12397 views

Hello everyone,

Sorry if it has ever been answered before. I have tried to find the solution but I have not been able to solve it.

I would like to plot an equation (in prime 4.0) with a shape similar to an ellipse.

 

In the end I should get different shapes for different lambda values.

Thank you!

Sergio.

Best answer by -MFra-

Hi,

you could do so:

forStoledano.jpg

a more complete chart is as follows:

forStoledano 1.jpg

6 replies

-MFra-21-Topaz IIAnswer
21-Topaz II
July 17, 2019

Hi,

you could do so:

forStoledano.jpg

a more complete chart is as follows:

forStoledano 1.jpg

25-Diamond I
July 17, 2019

Prime does not support implicit plots, but you could use a contour plot.

You must type multiplication signs between a variable an a parenthesis as otherwise Prime assumes you are typing a function.

B.png

16-Pearl
July 17, 2019

As a follow-on from Werner's, here's a CreateMesh option.  Using high enough mesh density the colors vanish (I assume because mathcad gets confused at the convergence point) but a possible advantage for you.  MF's solution works also but you'll get some gaps on the right end of the ellipse at times.

2019-07-17_12-23-03.png

25-Diamond I
July 17, 2019

@DJF wrote:

As a follow-on from Werner's, here's a CreateMesh option.  Using high enough mesh density the colors vanish (I assume because mathcad gets confused at the convergence point)


Normally the mesh density does not has much effect on the colors but in this case it obviusly has. Funny effect for a mesh size of 80 to 90. Alas, its Prime. Mathcad wasn't perfect in no way but we still had more way to infuence the plot (like number of iso lines, see the pic) but 3D-plots in Prime really suck.

B.png

24-Ruby IV
July 17, 2019

May by this article will be interesting for you

A New Ellipse or Math Porcelain Service

 

24-Ruby IV
July 17, 2019

Solution without animation is not solution!

Labbda.gif

25-Diamond I
July 17, 2019

Who claims that Mathcad can't do implicit plots?

Thanks to Viacheslav N. Mezentsev even Prime can do it 😉

B.png

16-Pearl
July 19, 2019

Can anyone explain how Mathcad is able to plot this implicit (ala Werner via Mezentsev) graph?  The data isn't sequential yet we get a smooth curve plotted.  (I had some crazy thoughts of fitting some b-splines to it, but hit some immediate snags given the format) 

 2019-07-19_9-08-21.png

25-Diamond I
July 19, 2019

Looks like Viacheslav uses 1j instead of NaN to separate the various line segments.  So the "curve" you see consist just of a number of line segments which are not drawn in consecutive order.

Those segments are not in order but as a whole make up for the complete curve (which sometimes sure has some "holes". If you want to apply a fit you would first to have to get rid of the 1j's and sort the various line segments.

I never took the time to make a more intense look into his routine - just was impressed that its possible to do with reasonable speed.

Also impressive is his implicit3D.

Stoledano1-VisitorAuthor
1-Visitor
July 20, 2019

Sorry for asking again.Maybe I didn't learn well...

I need to plot something similar to the last one, but this time (for me ;)) it is more difficult...

 

24-Ruby IV
July 21, 2019

@Stoledano wrote:

Sorry for asking again.Maybe I didn't learn well...

I need to plot something similar to the last one, but this time (for me ;)) it is more difficult…

 

Mayby it will be help:

https://www.mdpi.com/2073-8994/11/2/184