Regular Polygonal Prism

Calculate a right prism with a regular n-sided base. The side count must be an integer of at least 3.

Inputs

Formula
A = ns²/(4 tan(π/n)); P = ns; V = Ah; lateral S = Ph; total S = Ph+2A
  • n — integer number of regular polygon sides (at least 3)
  • s,h — base side length and prism height