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

Prime 8.0 How can I plot a circle

Snowshoe_Bob
7-Bedrock

Prime 8.0 How can I plot a circle

How can I plot a circle in the X-Y plane, only knowing the radius and location of the circle center?

I have Mathcad Prime 8.0.

 

ACCEPTED SOLUTION

Accepted Solutions
Cornel
19-Tanzanite
(To:Snowshoe_Bob)

27 REPLIES 27
Cornel
19-Tanzanite
(To:Snowshoe_Bob)

Cornel_0-1692719451684.png

Cornel_1-1692719458795.png

Cornel_2-1692719465660.png

Cornel_3-1692719472590.png

Cornel_4-1692719478907.png

 

Thank you!  That was easy.

One more request.  Is there a way to modify the above where there is a circle intercept at (0,0) ?

 

Thanks for your help.


@Snowshoe_Bob wrote:

One more request.  Is there a way to modify the above where there is a circle intercept at (0,0) ?

 

Thanks for your help.


I am not sure what you mean. If you know the center of the circle and if you demand that (0,0) should be a point of the circles circumference, you sure are able to calculate the circle radius and so can use the very same approach which was shown to you.

 

Here is a circle function I often use when I have to draw a circle.

Werner_E_0-1692743277078.png

You may use it to draw partial circles

Werner_E_1-1692743336170.png

to draw regular polygons

Werner_E_2-1692743422286.png

or to play around and create mandala like pics

Werner_E_3-1692743489156.png

 

Prime 9 worksheet attached

 

 

Sorry.... I was not clear.  I mean that one point on the circle will be at (0,0) with a center in Quadrant 1 at a point (x,y).

Yes, I had already suspected that and therefore suggested calculating the radius (as the distance between the two points, with Pythagoras, r= sqrt(x^2+y^2)) and then using the method already suggested or the function I posted to draw the circle.

Thank you!  I will try to plug in your equations.  I have Prime 8.0 so I could not use it directly.

 

This this bit of programming [NaN NaN} ?  Looks like the first trial bombed.  I am a novice at programming.  See attached.

Snowshoe_Bob_0-1692748250231.png

 

ttokoro
20-Turquoise
(To:Snowshoe_Bob)

[NaN NaN] makes pen off for the plot line.

Thanks!!

Hope this helps:

Werner_E_4-1692764495077.png

 

BTW, you sure can use 400 points to make the circle but you would be surprised that even much less points make up a quite good representation of a circle as well.

Werner_E_1-1692763963604.png

 

Thank you!  It works!

 

Bob

Werner,

Update:  If I resolve the point as a radius, then compare that radius to the radius of the circle, the problem is solved I believe.

 

In relationship the above math, is there a boolean or math routine to determine if a X-Y point is inside or outside the circle?  Can suggest a tack to take to solve this problem?

 


@Snowshoe_Bob wrote:

Werner,

Update:  If I resolve the point as a radius, then compare that radius to the radius of the circle, the problem is solved I believe.


Which problem?

 


In relationship the above math, is there a boolean or math routine to determine if a X-Y point is inside or outside the circle?  Can suggest a tack to take to solve this problem?

Not sure what the problem is!?  A point is inside the circle if its distance from the circle center is less than the circle radius.

You may use a test function like this:

Werner_E_0-1692901704669.png

 

Playing around ...

Werner_E_2-1692902269875.png

 

Worksheet in Prime 6 format attached

 

 

I like what you did...  I would have handled it a bit more rudimentary.   But your solution is best.

 

Thanks!

LucMeekes
23-Emerald III
(To:Werner_E)

For those limited to express, here is a set of functions to draw shapes:

LucMeekes_0-1692798653965.png

And you can stack the result to create complex shapes, such as the CE mark:

LucMeekes_1-1692799012903.png

Success!
Luc

Thanks!

This looks very handy!

ttokoro
20-Turquoise
(To:Snowshoe_Bob)

image.pngimage.pngimage.png

image.pngimage.png

Werner_E
25-Diamond I
(To:ttokoro)

Nice, but why only circles parallel to the xy-plane?

Werner_E_0-1692976277449.png

Werner_E_2-1692978579387.png Werner_E_1-1692977385407.png

 

 

Werner_E
25-Diamond I
(To:Werner_E)

Playing around with the inscribed circles of the surfaces of a dodecahedron

Werner_E_0-1692981992183.png

 

Nice!  Thank you.  Will work for future programming..

Very cool!  Thank you

ttokoro
20-Turquoise
(To:Werner_E)

Thanks show us not x-y plane plot. I try it.

image.pngimage.pngimage.png

Werner_E
25-Diamond I
(To:ttokoro)

Werner_E_0-1693055712448.png

 

ttokoro
20-Turquoise
(To:Werner_E)

Good eye!image.png

Thank You!

Announcements

Top Tags