Recursive command to plot diagonals with different lengths

slicing1 shared this question 1 year ago
Needs Answer

The att'd sheet (coming from GG repo) draws all diagonals of a regular polygon, while my goal is to find recursively only the ones having different lengths, as specified in the screenshot. Help needs, thx in advance!

Comments (2)

photo
1

redefine Diagonals with Diagonals = Sequence[Segment[Vertex[poly, 1], Vertex[poly, j]], j, 2, floor(n / 2) + 1]

saludos

photo
1

Wow! It works with odd sides, too! 11 in att'd figure. Thanks a lot.

© 2018 International GeoGebra Institute