(15C) Regular Polygons
|
03-23-2017, 02:53 AM
(This post was last modified: 03-23-2017 03:08 AM by Eddie W. Shore.)
Post: #1
|
|||
|
|||
(15C) Regular Polygons
Inputs (Store values before running the program):
R0: n, number of sides R1: s, length of each side Outputs: R2: θ, Internal Angle R3: A, Area R4: P, Perimeter Formulas Used (Degrees Mode Used): Internal Angle: θ = 180° - 360°/n Area: A = (s^2 * n)/(4 * tan (180°/n)) Perimeter: P = s * n Code:
Example: R0 = n = 5, R1 = s = 4. Output: θ = 108°, A ≈ 27.5276, P = 20 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)