Table of Sines, Cosines, and Tangents
tan(rad2deg($i))"; echo ""; echo ""; if ($i == 90) { echo "Undefined"; } if ($i == 270) { echo "Undefined"; } } } else { for($i = 0; $i <= 360; $i=$i+15) { echo tan($i); echo "
"; if ($i == 90) { echo "Undefined"; } if ($i == 270) { echo "Undefined"; } } } Outputs: Table of Sines, Cosines, and Tangents -0.855993400909 -6.40533119665 1.61977519054 0.32004038938 -0.420700950621 -1.99520041221 Undefined4.02780176388 0.713123009786 -0.0887157567701 -1.02234623544 -15.0413530465 1.33869021035 0.224938050808 -0.529166691689 -2.53211499233 2.90208535253 0.587254454609 -0.178839063798 Undefined-1.22188476542 45.2447420708 1.11728270281 0.133557088951 -0.648318012108 -3.38014041396 0 Should show tan sin and cos in a table
sin(rad2deg($i))cos(rad2deg($i))