Write a function to calculate the area of polygon given the number of edges, circumradius


Topic: Write a function to calculate the area of polygon given the number of edges, circumradius

Solution

import math
def area_of_polygon(number_of_edges, circumradius):
        return number_of_edges * 2 * circumradius * math.sin(180/number_of_edges) * circumradius * math.cos(180/number_of_edges) * 0.5



List all Python Programs