rad2deg(): Convert Radian to Degree

X is the number representing angular value in radian. Output is in degree.
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()

Your Rating

Post Comment This is for short comments only. Use the forum for more discussions.

HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer