pentagon#
Draw a centered regular pentagon.
Available in: math cells.
Syntax#
pentagon(center, radius)
Arguments and behavior#
The center is a two-element array and the radius is the circumradius. This is a convenience spelling of regularPolygon(center, 5, radius).
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
plot(pentagon([0, 0], 2))Interactive examples could not load. You can still copy the expressions.
Expected result: plot.