rad2deg(X);
<?Php echo rad2deg(0); // Output is 0 echo "<br>"; echo rad2deg(PI()); // Output 180 echo "<br>"; echo rad2deg(PI()/2); // Output is 90 echo "<br>"; echo rad2deg(PI()/3); // Output is 60 ?>
Math Constant PI()
Plotting of SIN & COS curves by using PHP GD function with deg2rad()
Post your comments , suggestion , error , requirements etc here .