Here's a Python function to find the area of a regular polygon inscribed in a circle, given the number of sides and the radius of the circle.
main.py467 chars19 lines
To use the function, simply call it with the number of sides and the radius of the circle as arguments.
main.py124 chars5 lines
gistlibby LogSnag