HP Forums

Full Version: (50g) Regular Polygon: Internal Angle and Area
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Regular Polygon: Internal Angle and Area: RPOLYG

Link to the original blog entry: http://edspi31415.blogspot.com/2015/03/r...s-and.html

Input:
2: s: side length
1: n: number of sides


Program:
<< DEG DUP INV 360 * NEG 180 + UNROT 4 / SWAP SQ * SWAP DUP UNROT 2 / TAN * >>

Output:
2: Interior Angle
1: Area
Reference URL's