<?php
float atan ( float $num )
where,
$num = The argument to process in radians
?>
<table width="100%" border="1" cellspacing="5" cellpadding="5">
<tr><td colspan="4">atan($num)</td></tr>
<tr><td>DEGREES ( ° )<td>RADIANS ( rd )</td><td>OPERATION</td><td>RESULT</td></tr>
<?php
// setlocale(LC_ALL, 'es_ES', 'es-ES');
$pi = M_PI;
$pi_arr01 = [ '-2Л' => -2*$pi , '-3Л/2' => -3*$pi/2,
'-Л' => -1*$pi, '-Л/2' => -1*$pi/2,
'-Л/4' => -1*$pi/4, '0' => 0, 'Л/4' => $pi/4,
'Л/2' => $pi/2, 'Л' => $pi,
'3Л/2' => 3*$pi/2, '2Л' => 2*$pi ];
foreach($pi_arr01 as $val_a => $val)
{
echo '<td>' . rad2deg($val) . '</td>';
echo '<td>' . $val_a . '</td>';
echo '<td>atan( ' . tan($val) . ' )</td>';
echo '<td>' . atan(tan($val)) . '<br><br>' . rad2deg(tan(atan($val))) . '°</td></tr>';
}
?>
<td colspan="4">ed48</td></tr></table>