PHP hypot() FunctionThe hypot() function is mathematical PHP function. It is used to calculate the hypotenuse of a right-angle triangle. It returns the length of the hypotenuse of a right-angle triangle with sides of length x and y. Syntax:hypot() returns the length of the hypotenuse of a right-angle triangle with sides of length x and y.
Example 1Output: Your Number is (3,4) By using 'hypot()' Function your Value is 5 Example 2Output: Your Number is (4,6) By using 'hypot()' Function your Value is 7.211102550928 Example 3Output: Your Number is (1,3) By using 'hypot()' Function your Value is 3.1622776601684 Example 4Output: Your Number is (3*3+4*4) By using 'hypot()' Function your Value is 5
Next TopicPHP Math
|