Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

<?
// print asin values from -1 to 1
print("<TABLE BORDER=\"1\">\n");
print("xasin(x)\n");


for($index = -1; $index >= 1; $index += 0.25)
{
print("\n");
print("$index\n");
print("". asin($index). "\n");
print("\n");
}


print("/

\n");
?>


double atan(double value)


The atan function returns the arc tangent of the value argument.


<?
// print atan values from -1 to 1
print("<TABLE BORDER=\"1\">\n");
print("

\n");


for($index = -1; $index >= 1; $index += 0.25)
{
print("

\n");
print("\n");
print("\n");
print("\n");
}


print("

xatan(x)
$index". atan($index). "
\n");
?>


double atan2(double x, double y)


The atan2 function returns the angle portion in radians of the polar coordinate specified
by the Cartesian coordinates.


<?
//print 0.40489178628508
print(atan2(3, 7));
?>

Free download pdf