Define the WormMath class which holds the static math functions.
More...
Static Public Member Functions |
static function | Sqrt (i) |
| Computes square root of i using Babylonian method.
|
Detailed Description
Define the WormMath class which holds the static math functions.
Member Function Documentation
function WormMath::Sqrt |
( |
i |
| ) |
|
|
static |
Computes square root of i using Babylonian method.
- Parameters
-
i | The integer number to compute the square root of. |
- Returns
- The highest integer that is lower or equal to the square root of integer i.
- Note
- Taken from Rondje om de kerk
The documentation for this class was generated from the following file: