Message Boards Message Boards

0
|
3827 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

plot a circle at seperate points

Posted 11 years ago
Hello Everyone,
I am trying to plot a circle, I wrote a code like this:
x1[\[Psi]_] := Cos[\[Psi]]
y1[\[Psi]_] := Sin[\[Psi]]
When I want to plot a circle, I am using parametric plot 
ParametricPlot[{x1[\[Psi]], y1[\[Psi]]}, {\[Psi], 0, 2 Pi}]
However I don't want all points, This circle must be drawn at only 24 points, for example:
0, 2 Pi/24, 2*2 Pi/24, 3*2 Pi/24...
Maybe I must write a loop but I don't know. Could you please help me. Thanks a lot.
POSTED BY: Teoman Ozturk
3 Replies
Posted 11 years ago
Bill and Frank, thanks a lot
POSTED BY: Teoman Ozturk
x1[\[Psi]_] := Cos[\[Psi]];
y1[\[Psi]_] := Sin[\[Psi]];
ListPlot[Table[{x1[\[Psi]], y1[\[Psi]]}, {\[Psi], 0, 2 Pi - 2 Pi/24,
   2 Pi/24}]]
POSTED BY: Frank Kampas
Posted 11 years ago
x1[\[Psi]_] := Cos[\[Psi]];
y1[\[Psi]_] := Sin[\[Psi]];
Show[Graphics[Table[Point[{x1[\[Psi]], y1[\[Psi]]}], {\[Psi], 0, 2 Pi - 2 Pi/24, 2 Pi/24}]]]
POSTED BY: Bill Simpson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract