home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------//
-
- // Syntax: log2 ( X )
-
- // Description:
-
- // Returns the base 2 logarithm of X
-
- //-------------------------------------------------------------------//
-
- log2 = function ( X )
- {
- return log (X) ./ log (2);
- };
-