How to generate a square of a given area or given perimeter?

transcendentalwork shared this question 6 years ago
Answered

I've set up a .ggb that generates a circle of whatever area you specify with a slider.

I think I've done this correctly.


https://ggbm.at/569703


Next I want to add a square of the same area, also determined by the slider.

When I tried to do this it did not scale correctly but I'm not sure why.


Finally, I would like to add a square with the same perimeter as the circle, still controlled by the area slider so that the whole construction scales together.


Reference image


Can anyone advise on how to construct this?

Thank you!

Comments (3)

photo
1

I think like this:


poly1 = Polygon[Sequence[center + (sqrt(2) sqrt(area) / 2; (n 90)° + 45°), n, 1, 4]]


Raymond

photo
1

Hi,


an other way...(without angle)


.

https://ggbm.at/569705

photo
1

Thank you both!

And wow Patrick Clément, that is spot-on, color coded and everything! You are too kind.

I will study how you constructed this.

Cheers

© 2021 International GeoGebra Institute