Calculate the area of a regular polygon – codegolf.stackexchange.com

Given an integer, n, where 3 <= n < 2^32, calculate the area of a regular n-gon with an apothem of 1; the formula for which is n * tan(π / n). For those that don't know what the apothem is: ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Calculate the area of a regular polygon – codegolf.stackexchange.com"