Mercurial > hg > octave-nkf
comparison scripts/specfun/pow2.m @ 6046:34f96dd5441b
[project @ 2006-10-10 16:10:25 by jwe]
author | jwe |
---|---|
date | Tue, 10 Oct 2006 16:10:31 +0000 |
parents | 2618a0750ae6 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
6045:421d8a903df7 | 6046:34f96dd5441b |
---|---|
50 if (nargin == 1) | 50 if (nargin == 1) |
51 y = 2 .^ f; | 51 y = 2 .^ f; |
52 elseif (nargin == 2) | 52 elseif (nargin == 2) |
53 y = f .* (2 .^ e); | 53 y = f .* (2 .^ e); |
54 else | 54 else |
55 usage ("y = pow2 (f, e)"); | 55 print_usage (); |
56 endif | 56 endif |
57 | 57 |
58 endfunction | 58 endfunction |