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.
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}]]