Skip to main content
1-Visitor
April 1, 2013
Solved

plotting a circle with triangle

  • April 1, 2013
  • 13 replies
  • 5530 views

Hello, i am studying master program at mechanical engineering. I am trying plot a circle using 3 points of a triangle. Circle must be plot inside triangle. How can i do?

Best answer by Werner_E

There is nothing wrong other than a bad choice of triangle. You can see by watching radius and x-coordinates that you have a very tiny circle which is relatively near to the z-axis. So the range for x and y is very small compared to that of z which goes from 0 to approx 200. As you have let Mathcad chose the scaling (autoscale for each axis is on) Mathcad squeezes the plot in the space which is available. That means that your spring looks like the profile square would be a line segment. I have chosen the range manually for x and y and zoomed in so you see that all is OK.

spiral4.png

Here is a neater looking triangle (based on the old file)

spiral3.png

13 replies

Werner_E
25-Diamond I
April 1, 2013

Emre HAs wrote:

Hello, i am studying master program at mechanical engineering. I am trying plot a circle using 3 points of a triangle. Circle must be plot inside triangle. How can i do?

If your goal is mainly the plotting part or numerical solution you would rather resort to a dynamical geometry program as e.g. the free and excellent GeoGebra which combines geometry and algebra in a nice way.

Nevertheless in Mathcad you can plot single points and connect them to draw a triangle. You cannot graph implicit functions, so you would not be able to draw a full circle if the equation is given in the form (x-m)^2+(y-n)^2=r^2. You would have to use a parameter form or plot upper and lower half using two explicit functions. (http://communities.ptc.com/message/195194#195194)

First of all you would have to solve for center and radius of the circle when three points are given. This is what Mathcad is better at than plotting geometric primitives.

BTW, its always better to attach a worksheet to show what you have tried so far. We see that way which version you use and may better realize what your problem is. Furthermore that way we don't get the feeling that we are supposed to do ALL the work 😉

1-Visitor
April 1, 2013

İ am using mathcad 15. I suppose not express myself This is my second homework. I have done the first. I am sending my first homework and second homework

Werner_E
25-Diamond I
April 1, 2013

No need to crosspost so many times!

From your attachments I don't see where you would need a circle given by three points.

I guess you rather need your profile U, which is a triangle now, to be a circle (which usually means a polygon with 16 or 24 corners). So you would need a small routine wich generates that matrix U.