Created
June 21, 2017 09:51
-
-
Save KimihiroTanaka/f894230cd7e595b06f19284a2ad25956 to your computer and use it in GitHub Desktop.
null created by KimihiroTanaka - https://repl.it/IvSK/0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def polysum(n, s): | |
return round((n * s) ** 2 + (0.25 * n * s * s) / (math.tan(math.pi / n)), 4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment