Showing posts with label internal angle. Show all posts
Showing posts with label internal angle. Show all posts

Saturday, April 6, 2024

Radius and Apothem of Regular Polygons

Radius and Apothem of Regular Polygons


On this blog, let’s calculate the lengths of a regular polygon’s radius, apothem, and area knowing only the side length and internal angle.



A regular polygon is a polygon in which every side has an equal length, and every internal angle is equal.


Let x be the length of one side of the regular polygon, and θ be the internal angle of the polygon where:


θ = (n – 2) / n × 180°




The radius (r) of the regular polygon is a line segment from a vertex to the center of the polygon. The radius bisects the vertex, therefore cutting the internal angle in half.

The apothem (a) is a line segment from the center of the polygon to the center of the polygon’s line segment. If we extend the apothem beyond the border, the apothem splits the length of the side segment in half.

Zooming in, a right triangle is formed between the radius, apothem, and half of the polygon line segment.


By trigonometry:


tan (θ / 2) = a / (x / 2)

a = (x / 2) × tan (θ / 2)


and


cos (θ / 2) = (x / 2) ÷ r

r = x / (2 × cos (θ / 2))


Knowing the apothem, the area of the regular polygon is:


area = perimeter × a / 2


where the perimeter = n × x


Then:


area = (n × x) × a / 2

= 1 / 2 × n × x × a

= 1 / 2 × n × x × (x / 2 × tan(θ / 2))

= 1 / 4 × n × x^2 × tan(θ / 2)



Another Formula for an Area’s Regular Polygons


The area of a regular polygon is often stated as:


area = 1 / 4 × n × x^2 / (tan (180° / n)) = 1 / 4 × n × x^2 × cot (180° / n))


We can show that the two formulas for area are equivalent:


Note that:

θ = (n – 2) / n × 180°

θ = 180° - 360° / n

Divide both sides by 2:

θ / 2 = 90° - 180° / n

180° / n = 90° - θ / 2 [ I ]




Observe that the trigonometric identity, for any angle α:

tan(90° - α) = 1 / tan(α) = cot(α)

and

cot(90° - α) = 1 / cot(α) = tan(α) [ II ]


Then:

area = 1 / 4 × n × x^2 × tan(θ / 2)

= 1 / 4 × n × x^2 × cot(90° - θ / 2) [ II ]

= 1 / 4 × n × x^2 × cot(180° / n) [ I ]

= 1 / 4 × n × x^2 / tan(180° / n) [ I ]


In Summary:

Internal Angle: θ = (n – 2) / 2 × 180°

Apothem: a = (x / 2) × tan (θ / 2)

Radius: r = x / (2 × cos (θ / 2))

Area = 1 / 4 × n × x^2 × tan(θ / 2) = 1 / 4 × n × x^2 / tan(180° / n)

(Note: 180° = π radians)



Table of Apothem and Radius, with side length of 1


n

θ (in degrees)

θ / 2 (in degrees)

a (to 5 decimal places)

r (to 5 decimal places)

3

60

30

0.28868

0.57735

4

90

45

0.5

0.70711

6

120

60

0.86603

1

8

135

67.5

1.20711

1.30656

12

150

75

1.86603

1.93185


Eddie


All original content copyright, © 2011-2024. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Sunday, March 10, 2024

Fun with the TI-81 (March 2024 Edition)

Fun with the TI-81 (March 2024 Edition)






TI-81 SCATTER







Produces a scatter plot.


Size: 52 bytes


Code:


If Dim{x}=0

Disp “NO DATA”

If Dim{x}=0

Stop

ClrDraw

1→I

Lbl 0

PT-On({x}(I),{y}(I))

IS>(I,Dim{x})

Goto 0

DispGraph


Note: Dim{x} returns the number of data points in the statistics list {x}.

Keystrokes: [ VARS ], DIM, 7: Dim{x}



TI-81 ANGLES


Given three pints, the internal and external angle are calculated.





Size: 196 bytes


Code:

Deg

Disp “SIDE PT (S,T)”

Input S

Input T

Disp “CORNER (M,N)”

Input M

Input N

Disp “SIDE PT (U,V)”

Input U

Input V

(S-M)*(U-M)+(T-N)*(V-N)→D

√((S-M)^2+(T-N)^2)→A

√((U-M)^2+(V-M)^2)→B

cos^-1 (D/(A*B))→I

360-I→E

Disp “INTERNAL ANGLE”

Disp I

Disp “EXTERNAL ANGLE”

Disp E



Example:

(S,T) = (-4,-6)

(M,N) = (1,1)

(U,V) = (3,5)



INTERNAL ANGLE: 171.0273734

EXTERNAL ANGLE: 188.9726266


Source:

Cook, John D. “Ramanujan approximation for circumference of ellipse” John D. Cook Consulting. May 5, 2015. https://www.johndcook.com/blog/2013/05/05/ramanujan-circumference-ellipse/ Accessed January 24, 2024


TI-81 ELLIPSE

Given the length of the semi-axis, the program draws the ellipse, calculates the area, and approximates the circumference using Ramanujan formula.

Size: 195 bytes


Code:


Param

Rad

Disp “SEMI X-AXIS”

Input A

Disp “SEMI Y-AXIS”

Input B

(A-B)/(A+B)→L

π*(A+B)*(1+(3*L^2)/(10+√(4-3*L^2))→P

π*A*B→R

Disp “APPROX. CIR=”

Disp P

Disp “AREA=”

Disp R

Pause

All-Off

“A*cos T”→X_1T

“B*sin T”→Y_1T

X1T-On

-A-1→Xmin

A+1→Xmax

-B-1→Ymin

B+1→Ymax

0→Tmin

2π→Tmax

π/24→Tstep

DispGraph



Notes:

All-Off turns all the graphing equations off from graphing.

[ 2nd ] {Y-VARS}, OFF, 1: All-Off



XT1 and YT1 are the equation variables x1(t) and y1(t):

[ 2nd ] {Y-VARS}, Y, 5: X_1T and 6: Y_1T, respectively



Example:


SEMI X-AXIS? 2

SEMI Y-AXIS? 3



Results:

APPROX. CIRC= 15.86543959

AREA= 18.84955592






TI-81 RELATIVE

Calculate the consequences of reality when it comes to a length and mass of an object traveling near the speed of light, c = 299,792,458 m/s.


Size: 141 bytes


Code:

299792458→C

Disp “C=”

Disp C

Disp “M/S”

Pause

Disp “°/. OF C”

Input P

P*C/100→U

√(1-(U/C)^2)→V

Disp “LENGTH”

Input L

Disp “OBS LENGTH=”

L*V→K

Disp K

Pause

Disp “MASS”

Input M

Disp “OBS. MASS=”

M/V→N

Disp N


Enter the percentage of the speed of light (70%, 80%, 90%, etc.). Three characters are used to create the percent sign (%) (°, / , . )


Example:


92.5% of the speed of light

length: 40.8 m

mass: 6,700 kg


Results:

observed length = 15.50265784 m

observed mass = 17,633.10542 kg


Source:


Jackson, Mark D. The QuickStudy for Physics BarCharts Publishing Inc. Boca Raton, Florida. 2007. ISBN 13: 9781423202677. pp. 114-115

Eddie


All original content copyright, © 2011-2024. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.


Wednesday, March 22, 2017

HP 15C: Regular Polygon: Internal Angle, Area, Perimeter



Hope you all like the new background and style changes!  Thank you for the success of this blog - less than a month to the blog's sixth birthday (4/11/2017).  


HP 15C:  Regular Polygon: Internal Angle, Area, Perimeter

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

Step
Key
Code
001
LBL C
42, 21, 13
002
DEG
43, 7
003
1
1
004
8
8
005
0
0
006
ENTER
36
007
ENTER
36
008
2
2
009
*
20
010
RCL÷ 0
45, 10, 0
011
-
30
012
STO 2
44, 2
013
R/S
31
014
RCL 1
45, 1
015
X^2
43, 11
016
RCL* 0
45, 20, 0
017
1
1
018
8
8
019
0
0
020
RCL÷ 0
45, 10, 0
021
TAN
25
022
4
4
023
*
20
024
÷
10
025
STO 3
44, 3
026
R/S
31
027
RCL 0
45, 0
028
RCL* 1
45, 20, 1
029
STO 4
44, 4
030
RTN
43, 32

Example:  R0 = n = 5, R1 = s = 4.  Output:  θ = 108°, A ≈ 27.5276, P = 20

This blog is property of Edward Shore,  2017.

HP 20S: Acoustics Programs

HP 20S: Acoustics Programs Program A: Speed of Sound in Dry Air cs = 20.05 × √(273.15 + T°C) Code: 01: 61, 41, A: LBL A 02: ...