Mercurial > hg > octave-lyh
comparison scripts/specfun/pow2.m @ 3321:6923abb04e16
[project @ 1999-10-26 18:15:30 by jwe]
author | jwe |
---|---|
date | Tue, 26 Oct 1999 18:15:41 +0000 |
parents | 80b982e7f4b1 |
children | 5e0a0b1cba43 |
comparison
equal
deleted
inserted
replaced
3320:b0b71d14dab9 | 3321:6923abb04e16 |
---|---|
12 ## | 12 ## |
13 ## You should have received a copy of the GNU General Public License | 13 ## You should have received a copy of the GNU General Public License |
14 ## along with this file. If not, write to the Free Software Foundation, | 14 ## along with this file. If not, write to the Free Software Foundation, |
15 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 15 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
16 | 16 |
17 ## usage: y = pow2 (f [, e]) | 17 ## -*- texinfo -*- |
18 ## | 18 ## @deftypefn {Mapping Function} {} pow2 (@var{x}) |
19 ## y = pow2 (x) returns 2 .^ x. | 19 ## @deftypefnx {Mapping Function} {} pow2 (@var{f}, @var{e}) |
20 ## y = pow2 (f, e) returns f .* (2 .^ e). | 20 ## With one argument, computes |
21 ## @iftex | |
22 ## @tex | |
23 ## $2^x$ | |
24 ## @end tex | |
25 ## @end iftex | |
26 ## @ifinfo | |
27 ## 2 .^ x | |
28 ## @end ifinfo | |
29 ## for each element of @var{x}. With two arguments, returns | |
30 ## @iftex | |
31 ## @tex | |
32 ## $f \cdot 2^e$. | |
33 ## @end tex | |
34 ## @end iftex | |
35 ## @ifinfo | |
36 ## f .* (2 .^ e). | |
37 ## @end ifinfo | |
38 ## @end deftypefn | |
39 | |
40 ## See also: nextpow2 | |
21 | 41 |
22 ## Author: AW <Andreas.Weingessel@ci.tuwien.ac.at> | 42 ## Author: AW <Andreas.Weingessel@ci.tuwien.ac.at> |
23 ## Created: 17 October 1994 | 43 ## Created: 17 October 1994 |
24 ## Adapted-By: jwe | 44 ## Adapted-By: jwe |
25 | 45 |