How to resolve the algorithm Pentagram step by step in the Maple programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Pentagram step by step in the Maple programming language
Table of Contents
Problem Statement
A pentagram is a star polygon, consisting of a central pentagon of which each side forms the base of an isosceles triangle. The vertex of each triangle, a point of the star, is 36 degrees.
Draw (or print) a regular pentagram, in any orientation. Use a different color (or token) for stroke and fill, and background. For the fill it should be assumed that all points inside the triangles and the pentagon are inside the pentagram.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Pentagram step by step in the Maple programming language
Source code in the maple programming language
with(geometry):
RegularStarPolygon(middle, 5/2, point(c, 0, 0), 1):
v := [seq(coordinates(i), i in DefinedAs(middle))]:
pentagram := plottools[rotate](plottools[polygon](v), Pi/2):
plots[display](pentagram, colour = yellow, axes = none);
You may also check:How to resolve the algorithm Periodic table step by step in the Wren programming language
You may also check:How to resolve the algorithm Quickselect algorithm step by step in the Mercury programming language
You may also check:How to resolve the algorithm Constrained genericity step by step in the Wren programming language
You may also check:How to resolve the algorithm Population count step by step in the Quackery programming language
You may also check:How to resolve the algorithm Polynomial regression step by step in the MATLAB programming language