Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import tan
- import math
- math.pi
- def polysum (n, s):
- area = (0.25*n*(s**2))/ (tan(math.pi/n))
- perimeter= n * s
- sum = area + (perimeter**2)
- sum = round(sum, 4)
- return sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement