Aims:
sqrt
returns the positive square root of its actual parameter
sqrt(9)
returns 3right_triangle.html
contains this form:
<form action="hypotenuse.php" method="get"> <input type="text" name="c1" /> <input type="text" name="c2" /> <input type="submit" /> </form>
hypotenuse.php
, which calculates the length
of the hypotenuse of the right triangle, where the length of the sides adjacent
to the right-angle are input into the form above
abs($x)
returns the absolute value of $x
abs(3)
returns 3abs(-3)
returns 3pow($x, $y)
returns $x$y
pow(3, 4)
returns 81pow(1000, 1/3)
returns 10sin
, asin
, asinh
,… even hypot
!
(int)
and floor
?
round
function
rgb_convert.php
, so it converts the percentages
to the nearest decimal integer between 0 and 255 inc.