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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Cassini ovals Plot

ValeryOchkov
24-Ruby IV

Cassini ovals Plot

Do you know more nice way to plot

Cassini oval - Wikipedia

And not one haft - full. Prime 6 in attach.

7-Cassini-Set.png

17 REPLIES 17

One possible way

 

Werner_E_1-1641089472128.png

 

Of course you could also consider using uni's implicitplot2D function 😉

 

Thanks, but it's better this way. And the function implicitplot2D will not help here. This is the Leo Tolstoy oval - a special case of the Cassini oval. See Ovale de Cassini (mathcurve.com)

Cassini-Scan.png

And in Prime, the Ovals turn out to be somehow lopsided. Why?

Cassini-Scan-Paint.png


@ValeryOchkov wrote:

And in Prime, the Ovals turn out to be somehow lopsided. Why?


Probably because you did not scale both axis the same.

Werner_E_0-1641119500009.png

BTW, the side lengths of the outer rectangle are a*sqrt 5 and a*sqrt 3, so its easy to draw and can help to scale the axis correctly.

 

Yes! We need a tool for same scale on the XY-plot. We have it in Mathcad 11 (?) bot now not. I know why! And You?


@ValeryOchkov wrote:

Yes! We need a tool for same scale on the XY-plot. We have it in Mathcad 11 (?) bot now not. I know why! And You?


Not only MC11, the option "Equals Scale" is still there in MC15.
But it only works if you do not set axis limits and rely on AutoGrid. This option was not really as useful as it could have been and often produces some unexpected effects if you resize the plot region.
Therefore I guess it was not used that often - at least I very seldom relied on it.

You think we need that kind of option in Prime and you ask why we do not have such an option in Prime - really, honestly?

Serious improvements and "development" of Prime - these are two things that simply never went together right from the start - unfortunately! Prime was developed with real Mathcad already available as a basis for the math behind the scenes since 2009 (?). Thirteen years of development and look what we have now with P6 and P7. Its a shame!

 

One company has been creating the program for 13 years.
The company has finally presented its program to users.
Users said - the Lord God created the World in 7 days, and you made your program in 13 years!
The company responded like this: Look at this World and look at our program.


@ValeryOchkov wrote:

Thanks, but it's better this way.

Sorry, but the opposite is true. This is surely the worst way to plot a Cassini oval (which was what you asked for!). One only chooses this way of representation by means of just a set of unconnected dots only if one is either unable to set up an equation or one does not manage to plot the implicit equation. In case of the Cassini Oval you have an equation and can also (see my answer) specify a parametric representation. The use of the relatively simple polar representation of the curve equation would certainly also be possible.

 


And the function implicitplot2D will not help here.

Why do you thinks so???

Of course you can use this function from Viacheslav N. Mezentsev.

I still  think that using an equation like the parameter representation in my sheet is the better choice anyway, but Viacheslav's function sure is far better and also faster than testing every point in a 1000 x 1000 grid.

I gave it a try and it worked. I had to get rid of the (here unnecessary unit) because otherwise Prime would choke on the unitless imaginary units which Viacheslav uses to separate the line segments. If you really need the units here, you could change his function and add an appropriate unit to the separators - similar to what I did in my first answer by adding the units to the NaN's.

Werner_E_1-1641122700274.png

 

 


@ValeryOchkov wrote:

KISS principle - Wikipedia


Exactly, thats my point. Stubbornly grazing through all grid points is not in the sense of KISS IMHO.

I settled on the following.

7-Cassini-Scan.png

As they say here in Russia, it is not aesthetically pleasing, but cheap, reliable and practical.

Это же неэстетично!..Зато дёшево, надёжно и практично! - YouTube

Oh yes, brute force also has its own charm 😉

And provisional solutions that emerged quickly from the ground are usually those that last forever. "Never change a running system" applies here, too.

Polar Plot!

Polar-Tolstoy.png


@Werner_E wrote:

@ValeryOchkov wrote:

KISS principle - Wikipedia


Exactly, thats my point. Stubbornly grazing through all grid points is not in the sense of KISS IMHO.


One more thanks to V. Mezentsev program. See one Roots portrait

8-Portret.png

SMath

5-Cassini.png

6-Cassini3.png

Top Tags