Solver internal angle of polygon
Algebra
->
Polygons
-> Solver internal angle of polygon
Log On
Geometry: Polygons
Geometry
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'internal angle of polygon'
This Solver (internal angle of polygon)
was created by by
chillaks(0)
:
View Source
,
Show
,
Put on YOUR site
About chillaks
:
am a freelancer
==section input The interior angle of a regular polygon for sides *[input n=5] is. ==section solution perl if($n<=0) { print " Please enter the value greater than 0 to calculate interior angle of polygon"; } else{ my $angle=(180*($n-2))/$n; my $angle1= $angle*2*3.14159265/360; print " <A HREF=interior-angles-of-polygons.lesson> Interior angle of a Regular Polygon</A> The interior angles of any <A HREF=http://www.algebra.com/algebra/homework/Rectangles/Polygon.wikipedia>Polygon</A> always add up to a constant value, which depends only on the number of sides. For example the interior angles of a pentagon always add up to 540° no matter if it regular or irregular, convex or concave, or what size and shape it is. The sum of the interior angles of a polygon is given by the formula {{{Sum=180*(n-2)}}} where n is the number of sides For a regular polygon, the total described above is spread evenly among all the interior angles, since they all have the same values.Hence all interior angles will be equal. Therefore, {{{Each Interior Angle=((180*(n-2))/n)}}} {{{Each Interior Angle=(180*($n-2))/$n=$angle}}} Conversion of angles from <b><A HREF=Degree_%28angle%29.wikipedia>degrees</A></b> to <b><A HREF=Radian.wikipedia>radian</A></b>: The relation between two units of angle measurement is : 2*{{{pi}}} rad = 360 degrees The Interior angle in Radians, {{{Each Interior Angle=(((180*(n-2))/n)*2*pi/360)}}} {{{Each Interior Angle=((180*($n-2))/$n)*2*pi/360=$angle1}}} Hence, The interior angle of a Polygon is $angle degrees and $angle1 radians. For more on this topic, See the lessons on <A HREF=http://www.algebra.com/algebra/homework/Polygons/Geometry-Area-of-Regular-Polygons.lesson> Geometry Area of Regular Polygon</A> Some more is on <A HREF=http://www.algebra.com/algebra/homework/Polygons/Geometry-Special-Quadrilaterals.lesson>Geometry Special Quadrilaterals</A> "; } ==section output angle, ==section check n=12 angle=150