Sphere Calculations

"); echo("Inches..."); } else { echo(">Inches..."); } echo("".$rset."
"); } else { echo(">Centimeters
"); } echo ("
"); ?>
The diameter of the sphere is ". number_format($dia,2)." in.
") ; }elseif($rset) { $cent=inch2cm($dia); echo ("The diameter of the sphere is ". number_format($cent,2)." cm.
") ; }else { echo ("Select Inches or Centimeters.".N2L); } If($rset) { $diaft=in2ft($dia); echo ("The diameter of the sphere is ". number_format($diaft,2)." ft.
") ; $cir=circum($dia); echo("
"); echo ("The circumference of the sphere is ".number_format($cir,2)." in.
"); $curft=in2ft($cir); echo("The circumference of the sphere is ".number_format($curft,2)." ft.
"); $circm=inch2cm($cir); echo ("The circumference of the sphere is " . number_format($circm,2)." cm.
"); echo("
"); $sarea=sphere_area($dia); echo ("The surface area of the sphere is " . number_format($sarea,2)." sq. in.
"); if ($sarea>30) { $areasqft=$sarea/144 ; echo ("The surface area of the sphere is " . number_format($areasqft,3)." sq. ft.
"); } $areasqcm=$sarea*6.4546 ; echo ("The surface area of the sphere is " . number_format($areasqcm,2)." sq. cm.
"); echo("
"); $svol=sphere_vol($dia); echo ("The volume of the sphere is " .number_format($svol,2)." cu. in.
"); if($svol>10) { $volcuft=$svol/1728; echo ("The volume of the sphere is " .number_format($volcuft,3)." cu. ft.
"); } $volcm= $svol*16.3986; echo ("The volume of the sphere is ".number_format($volcm,2)." cu. cm.

"); } } ?>
Calculations Index Circle Calc. Cylinder Calc. Rectangular Calc. Home