Message Boards Message Boards

0
|
5278 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

RegularPolygon issue with RPi2

Posted 8 years ago

In running Graphics[RegularPolygon[5]] on a Raspberry Pi 2, I'm getting the message that RegularPolygon is not a primitive or directive... works fine on a Mac or Win Intel as it should. I have a class set of RPi2s and out of 35, maybe 1 or 2 will execute properly. The rest can't seem to identify the RegularPolygon. Thanks.

POSTED BY: joseph.pistone

Try executing:

$Version

it should be 10.2 or higher.

You could also make it yourself with something like (10.1 and higher):

Polygon[AngleVector /@ Subdivide[0, 2 \[Pi], 7]]

or version 1 and higher:

Polygon[Table[{Cos[\[Theta]], Sin[\[Theta]]}, {\[Theta], 0, 2 \[Pi],2 \[Pi]/7}]]
POSTED BY: Sander Huisman
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