Solver complementary, supplementary angle calculator
Algebra
->
Algebra
->
Angles
-> Solver complementary, supplementary angle calculator
Log On
Ad:
Algebrator™
solves your algebra problems and provides step-by-step explanations!
Ad:
Algebra Solved!™
: algebra software solves algebra homework problems with step-by-step help!
Geometry: Angles, complementary, supplementary angles
Solvers
Lessons
Answers archive
Quiz
In Depth
Source code of 'complementary, supplementary angle calculator'
This Solver (complementary, supplementary angle calculator)
was created by by
hummingbird(0)
:
View Source
,
Show
,
Put on YOUR site
About hummingbird
:
==section input The angles is A *[input angle=30] degrees. Find its complementary, supplementary angles and convert angles into radian. ==section solution perl if($angle<0 || $angle>90) { print " Please enter the value between 0 to 90 degrees. in order to get both complementary and supplementary angles together"; } else{ my $angle1=90-$angle; my $angle2=180-$angle; my $c=$angle1*2*3.14159265/360; my $s=$angle2*2*3.14159265/360; print " <A HREF=Complementary_angle.wikipedia>Complementary Angles</A> The sum of complementary angles is 90 degrees. Since one angle is given as $angle degrees, the other angle is {{{90-$angle}}}, or $angle1 degrees. <A HREF=Supplementary_angle.wikipedia>Supplementary Angles</A> The sum of supplementary angles is 180 degrees. Since one angle is given as $angle degrees, the other angle is {{{180-$angle}}}, or $angle2 degrees. 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 Complementary angle: {{{C=$angle*2*pi/360=$c}}} rad Supplementary angle: {{{S=$angle2*2*pi/360=$s}}} rad So, the answer is that the complementary angle is $angle1 degrees or $c rad and corresponding Supplementary angle is $angle2 degrees or $s rad. For more on this topic, See the lessons on <A HREF=http://www.algebra.com/algebra/homework/Angles/Introduction-and-Properties-of-Angles.lesson>Angles and its properties</A> "; } ==section output angle1, ==section check angle=40 angle1=50