note 18165 modified in function.hypot by ronabop
| From: | ronabop@php.net | Date: | Tue, 16 Apr 2002 04:45:24 +0000 |
| Subject: | note 18165 modified in function.hypot by ronabop | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29416@lists.php.net to get a copy of this message | ||
Alternate for the above:
<?php
function hypot2(float num1, float num2)
{
return sqrt(num1*num1 + num2*num2);
}
?>
--was--
why hypot when you can just:
<?php
function hypot2(float num1, float num2)
{
return sqrt(num1*num1 + num2*num2);
}
?>
I WANT MY MOMMY I FORGOT HOW TO USE ECHO AND PRINT!!!! WAHHHH
http://www.php.net/manual/en/function.hypot.php