home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-bin
/
lib
/
octave
/
1.1.1
/
m
/
elfun
/
log2.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-10-12
|
182 b
|
11 lines
function w = log2 (z)
# log2 (z): compute the logarithm base 2 for each element of z.
if (nargin != 1)
usage ("log2 (z)");
endif
w = log(z) / log(2);
endfunction