Mercurial > hg > octave-nkf
comparison scripts/specfun/realpow.m @ 9141:c1fff751b5a8
Update section 17.1 (Utility Functions) of arith.txi
Split section into "Exponents and Logarithms" and "Utility Functions"
Use Tex in many more of the doc strings for pretty printing in pdf format.
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Mon, 20 Apr 2009 17:16:09 -0700 |
parents | 1bf0ce0930be |
children | 16f53d29049f |
comparison
equal
deleted
inserted
replaced
9140:c309e028185e | 9141:c1fff751b5a8 |
---|---|
16 ## along with Octave; see the file COPYING. If not, see | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | 17 ## <http://www.gnu.org/licenses/>. |
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} realpow (@var{x}, @var{y}) | 20 ## @deftypefn {Function File} {} realpow (@var{x}, @var{y}) |
21 ## Return the element by element power operator. This is equivalent to | 21 ## Compute the real-valued, element-by-element power operator. This is |
22 ## @code{@var{x} .^ @var{y}}, except that if the return value | 22 ## equivalent to @w{@code{@var{x} .^ @var{y}}}, except that @code{realpow} |
23 ## is complex @code{realpow} produces an error. | 23 ## reports an error if any return value is complex. |
24 ## @seealso{reallog, realsqrt} | 24 ## @seealso{reallog, realsqrt} |
25 ## @end deftypefn | 25 ## @end deftypefn |
26 | 26 |
27 function z = realpow (x, y) | 27 function z = realpow (x, y) |
28 if (nargin != 2) | 28 if (nargin != 2) |