Mercurial > hg > octave-terminal
changeset 2550:c5fdf05ee5da
[project @ 1996-11-20 17:28:31 by jwe]
author | jwe |
---|---|
date | Wed, 20 Nov 1996 17:28:31 +0000 |
parents | 6551a8230ded |
children | 65e2cd433c7f |
files | scripts/elfun/log2.m |
diffstat | 1 files changed, 0 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
deleted file mode 100644 --- a/scripts/elfun/log2.m +++ /dev/null @@ -1,32 +0,0 @@ -## Copyright (C) 1996 John W. Eaton -## -## This file is part of Octave. -## -## Octave is free software; you can redistribute it and/or modify it -## under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2, or (at your option) -## any later version. -## -## Octave is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Octave; see the file COPYING. If not, write to the Free -## Software Foundation, 59 Temple Place - Suite 330, Boston, MA -## 02111-1307, USA. - -## log2 (z): compute the logarithm base 2 for each element of z. - -## Author: jwe - -function w = log2 (z) - -if (nargin != 1) - usage ("log2 (z)"); - endif - - w = log(z) / log(2); - -endfunction