Solver Calculate area of a sector
Algebra
->
Circles
-> Solver Calculate area of a sector
Log On
Geometry: Circles and their properties
Geometry
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'Calculate area of a sector'
This Solver (Calculate area of a sector)
was created by by
chillaks(0)
:
View Source
,
Show
,
Put on YOUR site
About chillaks
:
am a freelancer
==section input The angle at center of arc is *[input angle=30] degrees and radius of circle is *[input radius=20]. Find the area of sector. ==section solution perl if($angle<0 || $angle>360) { if($radius<0) { print "Enter the value of radius greater than zero and angles between 0 to 360 degrees to calculate area of sector in a circle."; } if($radius>0) { print " Please enter the value between 0 to 360 degrees to calculate area of sector in a circle."; } } elsif ($radius<0) {print "Enter the value of radius greater than zero to calculate area of sector in a circle."; } else { my $c=$angle*2*3.14159265/360; my $area=$angle*3.14159265*$radius*$radius/360; my $area1=$c*$radius*$radius/2; print " <A HREF=Central_angle.wikipedia>Angle at center described by an Arc</A> The angle described by an arc at center is $angle degrees. <A HREF=Geometry-Arcs-and-Chords.lesson>Arc of a circle</A> The Area of Sector is given by formula {{{Area= pi*radius*radius*central angle/360}}} {{{Area = pi*$radius*$radius*$angle/360=$area}}} 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 Area of Sector when angle in radians is, {{{Area=central angle*radius*radius/2}}} {{{Area=$c*$radius*$radius/2=$area1}}} Hence, For a circle of radius $radius Area of sector is $area when it subtends an angle of $angle degrees at center. For more on this topic, See the lessons on <A HREF=http://www.algebra.com/algebra/homework/Circles/Lessons.html>Circles and their properties</A> Some relevant <A HREF=http://www.algebra.com/algebra/homework/Circles/InDepth.html>wikipedia</A> articles for the topic. "; } ==section output area, ==section check angle=100 radius=6 area=31.04159265