Mercurial > octave-nkf
comparison libinterp/corefcn/mappers.cc @ 17787:175b392e91fe
Use GNU style coding conventions for code in libinterp/
* libinterp/corefcn/Cell.h, libinterp/corefcn/__contourc__.cc,
libinterp/corefcn/__dispatch__.cc, libinterp/corefcn/__lin_interpn__.cc,
libinterp/corefcn/__pchip_deriv__.cc, libinterp/corefcn/__qp__.cc,
libinterp/corefcn/balance.cc, libinterp/corefcn/besselj.cc,
libinterp/corefcn/betainc.cc, libinterp/corefcn/bitfcns.cc,
libinterp/corefcn/bsxfun.cc, libinterp/corefcn/c-file-ptr-stream.cc,
libinterp/corefcn/c-file-ptr-stream.h, libinterp/corefcn/cellfun.cc,
libinterp/corefcn/colloc.cc, libinterp/corefcn/comment-list.h,
libinterp/corefcn/conv2.cc, libinterp/corefcn/daspk.cc,
libinterp/corefcn/dasrt.cc, libinterp/corefcn/dassl.cc,
libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc,
libinterp/corefcn/defaults.cc, libinterp/corefcn/defaults.in.h,
libinterp/corefcn/defun-int.h, libinterp/corefcn/defun.cc,
libinterp/corefcn/det.cc, libinterp/corefcn/dirfns.cc,
libinterp/corefcn/display.cc, libinterp/corefcn/dlmread.cc,
libinterp/corefcn/dot.cc, libinterp/corefcn/dynamic-ld.cc,
libinterp/corefcn/dynamic-ld.h, libinterp/corefcn/eig.cc,
libinterp/corefcn/ellipj.cc, libinterp/corefcn/error.cc,
libinterp/corefcn/error.h, libinterp/corefcn/event-queue.h,
libinterp/corefcn/fft.cc, libinterp/corefcn/fft2.cc, libinterp/corefcn/fftn.cc,
libinterp/corefcn/file-io.cc, libinterp/corefcn/filter.cc,
libinterp/corefcn/find.cc, libinterp/corefcn/gammainc.cc,
libinterp/corefcn/gcd.cc, libinterp/corefcn/getgrent.cc,
libinterp/corefcn/getpwent.cc, libinterp/corefcn/getrusage.cc,
libinterp/corefcn/givens.cc, libinterp/corefcn/gl-render.cc,
libinterp/corefcn/gl2ps-renderer.cc, libinterp/corefcn/gl2ps-renderer.h,
libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h,
libinterp/corefcn/gripes.cc, libinterp/corefcn/gripes.h,
libinterp/corefcn/help.cc, libinterp/corefcn/hess.cc,
libinterp/corefcn/hex2num.cc, libinterp/corefcn/input.cc,
libinterp/corefcn/input.h, libinterp/corefcn/inv.cc,
libinterp/corefcn/jit-ir.h, libinterp/corefcn/jit-typeinfo.cc,
libinterp/corefcn/jit-typeinfo.h, libinterp/corefcn/jit-util.h,
libinterp/corefcn/kron.cc, libinterp/corefcn/load-path.cc,
libinterp/corefcn/load-path.h, libinterp/corefcn/load-save.cc,
libinterp/corefcn/load-save.h, libinterp/corefcn/lookup.cc,
libinterp/corefcn/ls-ascii-helper.cc, libinterp/corefcn/ls-hdf5.cc,
libinterp/corefcn/ls-hdf5.h, libinterp/corefcn/ls-mat-ascii.cc,
libinterp/corefcn/ls-mat-ascii.h, libinterp/corefcn/ls-mat4.cc,
libinterp/corefcn/ls-mat5.cc, libinterp/corefcn/ls-mat5.h,
libinterp/corefcn/ls-oct-ascii.cc, libinterp/corefcn/lsode.cc,
libinterp/corefcn/lu.cc, libinterp/corefcn/luinc.cc,
libinterp/corefcn/mappers.cc, libinterp/corefcn/matrix_type.cc,
libinterp/corefcn/max.cc, libinterp/corefcn/md5sum.cc,
libinterp/corefcn/mex.cc, libinterp/corefcn/mexproto.h,
libinterp/corefcn/mgorth.cc, libinterp/corefcn/mxarray.in.h,
libinterp/corefcn/nproc.cc, libinterp/corefcn/oct-hist.cc,
libinterp/corefcn/oct-lvalue.h, libinterp/corefcn/oct-map.cc,
libinterp/corefcn/oct-map.h, libinterp/corefcn/oct-obj.h,
libinterp/corefcn/oct-prcstrm.h, libinterp/corefcn/oct-stdstrm.h,
libinterp/corefcn/oct-stream.cc, libinterp/corefcn/oct-stream.h,
libinterp/corefcn/octave-link.cc, libinterp/corefcn/octave-link.h,
libinterp/corefcn/pager.cc, libinterp/corefcn/pinv.cc,
libinterp/corefcn/pr-output.cc, libinterp/corefcn/procstream.h,
libinterp/corefcn/profiler.cc, libinterp/corefcn/pt-jit.cc,
libinterp/corefcn/pt-jit.h, libinterp/corefcn/quad.cc,
libinterp/corefcn/quadcc.cc, libinterp/corefcn/qz.cc,
libinterp/corefcn/rand.cc, libinterp/corefcn/rcond.cc,
libinterp/corefcn/regexp.cc, libinterp/corefcn/schur.cc,
libinterp/corefcn/sighandlers.cc, libinterp/corefcn/sighandlers.h,
libinterp/corefcn/sparse-xdiv.cc, libinterp/corefcn/sparse-xdiv.h,
libinterp/corefcn/sparse-xpow.cc, libinterp/corefcn/sparse.cc,
libinterp/corefcn/spparms.cc, libinterp/corefcn/sqrtm.cc,
libinterp/corefcn/str2double.cc, libinterp/corefcn/strfind.cc,
libinterp/corefcn/strfns.cc, libinterp/corefcn/sub2ind.cc,
libinterp/corefcn/svd.cc, libinterp/corefcn/syl.cc,
libinterp/corefcn/symtab.cc, libinterp/corefcn/symtab.h,
libinterp/corefcn/syscalls.cc, libinterp/corefcn/sysdep.cc,
libinterp/corefcn/sysdep.h, libinterp/corefcn/time.cc,
libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h,
libinterp/corefcn/tril.cc, libinterp/corefcn/txt-eng-ft.cc,
libinterp/corefcn/txt-eng-ft.h, libinterp/corefcn/txt-eng.h,
libinterp/corefcn/typecast.cc, libinterp/corefcn/urlwrite.cc,
libinterp/corefcn/utils.cc, libinterp/corefcn/variables.cc,
libinterp/corefcn/variables.h, libinterp/corefcn/xdiv.cc,
libinterp/corefcn/xdiv.h, libinterp/corefcn/xnorm.h, libinterp/corefcn/xpow.cc,
libinterp/corefcn/xpow.h, libinterp/corefcn/zfstream.cc,
libinterp/corefcn/zfstream.h, libinterp/dldfcn/__delaunayn__.cc,
libinterp/dldfcn/__dsearchn__.cc, libinterp/dldfcn/__eigs__.cc,
libinterp/dldfcn/__fltk_uigetfile__.cc, libinterp/dldfcn/__glpk__.cc,
libinterp/dldfcn/__init_fltk__.cc, libinterp/dldfcn/__init_gnuplot__.cc,
libinterp/dldfcn/__magick_read__.cc, libinterp/dldfcn/__voronoi__.cc,
libinterp/dldfcn/amd.cc, libinterp/dldfcn/ccolamd.cc, libinterp/dldfcn/chol.cc,
libinterp/dldfcn/colamd.cc, libinterp/dldfcn/convhulln.cc,
libinterp/dldfcn/dmperm.cc, libinterp/dldfcn/fftw.cc, libinterp/dldfcn/qr.cc,
libinterp/dldfcn/symbfact.cc, libinterp/dldfcn/symrcm.cc,
libinterp/dldfcn/tsearch.cc, libinterp/octave-value/ov-base-diag.cc,
libinterp/octave-value/ov-base-diag.h, libinterp/octave-value/ov-base-int.cc,
libinterp/octave-value/ov-base-int.h, libinterp/octave-value/ov-base-mat.h,
libinterp/octave-value/ov-base-scalar.cc,
libinterp/octave-value/ov-base-scalar.h,
libinterp/octave-value/ov-base-sparse.cc,
libinterp/octave-value/ov-base-sparse.h, libinterp/octave-value/ov-base.cc,
libinterp/octave-value/ov-base.h, libinterp/octave-value/ov-bool-mat.cc,
libinterp/octave-value/ov-bool-mat.h, libinterp/octave-value/ov-bool-sparse.cc,
libinterp/octave-value/ov-bool-sparse.h, libinterp/octave-value/ov-bool.cc,
libinterp/octave-value/ov-bool.h, libinterp/octave-value/ov-builtin.cc,
libinterp/octave-value/ov-builtin.h, libinterp/octave-value/ov-cell.cc,
libinterp/octave-value/ov-cell.h, libinterp/octave-value/ov-ch-mat.cc,
libinterp/octave-value/ov-ch-mat.h, libinterp/octave-value/ov-class.cc,
libinterp/octave-value/ov-class.h, libinterp/octave-value/ov-colon.h,
libinterp/octave-value/ov-complex.cc, libinterp/octave-value/ov-complex.h,
libinterp/octave-value/ov-cx-diag.cc, libinterp/octave-value/ov-cx-diag.h,
libinterp/octave-value/ov-cx-mat.cc, libinterp/octave-value/ov-cx-mat.h,
libinterp/octave-value/ov-cx-sparse.cc, libinterp/octave-value/ov-cx-sparse.h,
libinterp/octave-value/ov-dld-fcn.h, libinterp/octave-value/ov-fcn-handle.cc,
libinterp/octave-value/ov-fcn-handle.h,
libinterp/octave-value/ov-fcn-inline.cc,
libinterp/octave-value/ov-fcn-inline.h, libinterp/octave-value/ov-fcn.h,
libinterp/octave-value/ov-float.cc, libinterp/octave-value/ov-float.h,
libinterp/octave-value/ov-flt-complex.cc,
libinterp/octave-value/ov-flt-complex.h,
libinterp/octave-value/ov-flt-cx-diag.cc,
libinterp/octave-value/ov-flt-cx-diag.h,
libinterp/octave-value/ov-flt-cx-mat.cc,
libinterp/octave-value/ov-flt-cx-mat.h,
libinterp/octave-value/ov-flt-re-diag.cc,
libinterp/octave-value/ov-flt-re-diag.h,
libinterp/octave-value/ov-flt-re-mat.cc,
libinterp/octave-value/ov-flt-re-mat.h, libinterp/octave-value/ov-int16.cc,
libinterp/octave-value/ov-int32.cc, libinterp/octave-value/ov-int64.cc,
libinterp/octave-value/ov-int8.cc, libinterp/octave-value/ov-intx.h,
libinterp/octave-value/ov-java.cc, libinterp/octave-value/ov-lazy-idx.h,
libinterp/octave-value/ov-mex-fcn.cc, libinterp/octave-value/ov-mex-fcn.h,
libinterp/octave-value/ov-null-mat.cc, libinterp/octave-value/ov-null-mat.h,
libinterp/octave-value/ov-oncleanup.cc, libinterp/octave-value/ov-perm.cc,
libinterp/octave-value/ov-perm.h, libinterp/octave-value/ov-range.cc,
libinterp/octave-value/ov-range.h, libinterp/octave-value/ov-re-diag.cc,
libinterp/octave-value/ov-re-diag.h, libinterp/octave-value/ov-re-mat.cc,
libinterp/octave-value/ov-re-mat.h, libinterp/octave-value/ov-re-sparse.cc,
libinterp/octave-value/ov-re-sparse.h, libinterp/octave-value/ov-scalar.cc,
libinterp/octave-value/ov-scalar.h, libinterp/octave-value/ov-str-mat.cc,
libinterp/octave-value/ov-str-mat.h, libinterp/octave-value/ov-struct.cc,
libinterp/octave-value/ov-struct.h, libinterp/octave-value/ov-type-conv.h,
libinterp/octave-value/ov-typeinfo.cc, libinterp/octave-value/ov-typeinfo.h,
libinterp/octave-value/ov-uint16.cc, libinterp/octave-value/ov-uint32.cc,
libinterp/octave-value/ov-uint64.cc, libinterp/octave-value/ov-uint8.cc,
libinterp/octave-value/ov-usr-fcn.cc, libinterp/octave-value/ov-usr-fcn.h,
libinterp/octave-value/ov.cc, libinterp/octave-value/ov.h, libinterp/octave.cc,
libinterp/operators/op-b-bm.cc, libinterp/operators/op-b-sbm.cc,
libinterp/operators/op-bm-b.cc, libinterp/operators/op-bm-bm.cc,
libinterp/operators/op-cdm-cdm.cc, libinterp/operators/op-chm.cc,
libinterp/operators/op-class.cc, libinterp/operators/op-cm-cm.cc,
libinterp/operators/op-cm-cs.cc, libinterp/operators/op-cm-s.cc,
libinterp/operators/op-cm-scm.cc, libinterp/operators/op-cm-sm.cc,
libinterp/operators/op-cs-cm.cc, libinterp/operators/op-cs-cs.cc,
libinterp/operators/op-cs-scm.cc, libinterp/operators/op-cs-sm.cc,
libinterp/operators/op-dm-dm.cc, libinterp/operators/op-dm-scm.cc,
libinterp/operators/op-double-conv.cc, libinterp/operators/op-fcdm-fcdm.cc,
libinterp/operators/op-fcm-fcm.cc, libinterp/operators/op-fcm-fcs.cc,
libinterp/operators/op-fcm-fm.cc, libinterp/operators/op-fcm-fs.cc,
libinterp/operators/op-fcs-fcm.cc, libinterp/operators/op-fcs-fcs.cc,
libinterp/operators/op-fcs-fm.cc, libinterp/operators/op-fcs-fs.cc,
libinterp/operators/op-fdm-fdm.cc, libinterp/operators/op-float-conv.cc,
libinterp/operators/op-fm-fcm.cc, libinterp/operators/op-fm-fcs.cc,
libinterp/operators/op-fm-fm.cc, libinterp/operators/op-fm-fs.cc,
libinterp/operators/op-fs-fcm.cc, libinterp/operators/op-fs-fcs.cc,
libinterp/operators/op-fs-fm.cc, libinterp/operators/op-fs-fs.cc,
libinterp/operators/op-m-cm.cc, libinterp/operators/op-m-cs.cc,
libinterp/operators/op-m-m.cc, libinterp/operators/op-m-s.cc,
libinterp/operators/op-m-scm.cc, libinterp/operators/op-m-sm.cc,
libinterp/operators/op-pm-scm.cc, libinterp/operators/op-range.cc,
libinterp/operators/op-s-cm.cc, libinterp/operators/op-s-cs.cc,
libinterp/operators/op-s-scm.cc, libinterp/operators/op-sbm-b.cc,
libinterp/operators/op-sbm-bm.cc, libinterp/operators/op-sbm-sbm.cc,
libinterp/operators/op-scm-cm.cc, libinterp/operators/op-scm-cs.cc,
libinterp/operators/op-scm-m.cc, libinterp/operators/op-scm-s.cc,
libinterp/operators/op-scm-scm.cc, libinterp/operators/op-scm-sm.cc,
libinterp/operators/op-sm-cm.cc, libinterp/operators/op-sm-m.cc,
libinterp/operators/op-sm-s.cc, libinterp/operators/op-sm-scm.cc,
libinterp/operators/op-sm-sm.cc, libinterp/operators/op-str-m.cc,
libinterp/operators/op-str-s.cc, libinterp/operators/op-str-str.cc,
libinterp/operators/ops.h, libinterp/parse-tree/lex.h,
libinterp/parse-tree/parse.h, libinterp/parse-tree/pt-arg-list.cc,
libinterp/parse-tree/pt-arg-list.h, libinterp/parse-tree/pt-assign.cc,
libinterp/parse-tree/pt-assign.h, libinterp/parse-tree/pt-binop.cc,
libinterp/parse-tree/pt-binop.h, libinterp/parse-tree/pt-bp.h,
libinterp/parse-tree/pt-cbinop.cc, libinterp/parse-tree/pt-check.cc,
libinterp/parse-tree/pt-colon.cc, libinterp/parse-tree/pt-colon.h,
libinterp/parse-tree/pt-const.cc, libinterp/parse-tree/pt-decl.cc,
libinterp/parse-tree/pt-decl.h, libinterp/parse-tree/pt-eval.cc,
libinterp/parse-tree/pt-except.h, libinterp/parse-tree/pt-exp.h,
libinterp/parse-tree/pt-fcn-handle.cc, libinterp/parse-tree/pt-id.cc,
libinterp/parse-tree/pt-id.h, libinterp/parse-tree/pt-idx.cc,
libinterp/parse-tree/pt-idx.h, libinterp/parse-tree/pt-loop.h,
libinterp/parse-tree/pt-mat.cc, libinterp/parse-tree/pt-misc.cc,
libinterp/parse-tree/pt-misc.h, libinterp/parse-tree/pt-pr-code.cc,
libinterp/parse-tree/pt-select.h, libinterp/parse-tree/pt-stmt.h,
libinterp/parse-tree/token.h, libinterp/version.cc:
Use GNU style coding conventions for code in libinterp/
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Oct 2013 19:51:46 -0700 |
parents | d63878346099 |
children | 1b6db9303933 c6437824681c |
comparison
equal
deleted
inserted
replaced
17786:34d9812a943b | 17787:175b392e91fe |
---|---|
35 #include "defun.h" | 35 #include "defun.h" |
36 #include "error.h" | 36 #include "error.h" |
37 #include "variables.h" | 37 #include "variables.h" |
38 | 38 |
39 DEFUN (abs, args, , | 39 DEFUN (abs, args, , |
40 "-*- texinfo -*-\n\ | 40 "-*- texinfo -*-\n\ |
41 @deftypefn {Mapping Function} {} abs (@var{z})\n\ | 41 @deftypefn {Mapping Function} {} abs (@var{z})\n\ |
42 Compute the magnitude of @var{z}, defined as\n\ | 42 Compute the magnitude of @var{z}, defined as\n\ |
43 @tex\n\ | 43 @tex\n\ |
44 $|z| = \\sqrt{x^2 + y^2}$.\n\ | 44 $|z| = \\sqrt{x^2 + y^2}$.\n\ |
45 @end tex\n\ | 45 @end tex\n\ |
82 %!error abs () | 82 %!error abs () |
83 %!error abs (1, 2) | 83 %!error abs (1, 2) |
84 */ | 84 */ |
85 | 85 |
86 DEFUN (acos, args, , | 86 DEFUN (acos, args, , |
87 "-*- texinfo -*-\n\ | 87 "-*- texinfo -*-\n\ |
88 @deftypefn {Mapping Function} {} acos (@var{x})\n\ | 88 @deftypefn {Mapping Function} {} acos (@var{x})\n\ |
89 Compute the inverse cosine in radians for each element of @var{x}.\n\ | 89 Compute the inverse cosine in radians for each element of @var{x}.\n\ |
90 @seealso{cos, acosd}\n\ | 90 @seealso{cos, acosd}\n\ |
91 @end deftypefn") | 91 @end deftypefn") |
92 { | 92 { |
117 %!error acos () | 117 %!error acos () |
118 %!error acos (1, 2) | 118 %!error acos (1, 2) |
119 */ | 119 */ |
120 | 120 |
121 DEFUN (acosh, args, , | 121 DEFUN (acosh, args, , |
122 "-*- texinfo -*-\n\ | 122 "-*- texinfo -*-\n\ |
123 @deftypefn {Mapping Function} {} acosh (@var{x})\n\ | 123 @deftypefn {Mapping Function} {} acosh (@var{x})\n\ |
124 Compute the inverse hyperbolic cosine for each element of @var{x}.\n\ | 124 Compute the inverse hyperbolic cosine for each element of @var{x}.\n\ |
125 @seealso{cosh}\n\ | 125 @seealso{cosh}\n\ |
126 @end deftypefn") | 126 @end deftypefn") |
127 { | 127 { |
148 %!error acosh () | 148 %!error acosh () |
149 %!error acosh (1, 2) | 149 %!error acosh (1, 2) |
150 */ | 150 */ |
151 | 151 |
152 DEFUN (angle, args, , | 152 DEFUN (angle, args, , |
153 "-*- texinfo -*-\n\ | 153 "-*- texinfo -*-\n\ |
154 @deftypefn {Mapping Function} {} angle (@var{z})\n\ | 154 @deftypefn {Mapping Function} {} angle (@var{z})\n\ |
155 See arg.\n\ | 155 See arg.\n\ |
156 @end deftypefn") | 156 @end deftypefn") |
157 { | 157 { |
158 octave_value retval; | 158 octave_value retval; |
163 | 163 |
164 return retval; | 164 return retval; |
165 } | 165 } |
166 | 166 |
167 DEFUN (arg, args, , | 167 DEFUN (arg, args, , |
168 "-*- texinfo -*-\n\ | 168 "-*- texinfo -*-\n\ |
169 @deftypefn {Mapping Function} {} arg (@var{z})\n\ | 169 @deftypefn {Mapping Function} {} arg (@var{z})\n\ |
170 @deftypefnx {Mapping Function} {} angle (@var{z})\n\ | 170 @deftypefnx {Mapping Function} {} angle (@var{z})\n\ |
171 Compute the argument of @var{z}, defined as,\n\ | 171 Compute the argument of @var{z}, defined as,\n\ |
172 @tex\n\ | 172 @tex\n\ |
173 $\\theta = atan2 (y, x),$\n\ | 173 $\\theta = atan2 (y, x),$\n\ |
218 %!error arg () | 218 %!error arg () |
219 %!error arg (1, 2) | 219 %!error arg (1, 2) |
220 */ | 220 */ |
221 | 221 |
222 DEFUN (asin, args, , | 222 DEFUN (asin, args, , |
223 "-*- texinfo -*-\n\ | 223 "-*- texinfo -*-\n\ |
224 @deftypefn {Mapping Function} {} asin (@var{x})\n\ | 224 @deftypefn {Mapping Function} {} asin (@var{x})\n\ |
225 Compute the inverse sine in radians for each element of @var{x}.\n\ | 225 Compute the inverse sine in radians for each element of @var{x}.\n\ |
226 @seealso{sin, asind}\n\ | 226 @seealso{sin, asind}\n\ |
227 @end deftypefn") | 227 @end deftypefn") |
228 { | 228 { |
246 %!error asin () | 246 %!error asin () |
247 %!error asin (1, 2) | 247 %!error asin (1, 2) |
248 */ | 248 */ |
249 | 249 |
250 DEFUN (asinh, args, , | 250 DEFUN (asinh, args, , |
251 "-*- texinfo -*-\n\ | 251 "-*- texinfo -*-\n\ |
252 @deftypefn {Mapping Function} {} asinh (@var{x})\n\ | 252 @deftypefn {Mapping Function} {} asinh (@var{x})\n\ |
253 Compute the inverse hyperbolic sine for each element of @var{x}.\n\ | 253 Compute the inverse hyperbolic sine for each element of @var{x}.\n\ |
254 @seealso{sinh}\n\ | 254 @seealso{sinh}\n\ |
255 @end deftypefn") | 255 @end deftypefn") |
256 { | 256 { |
277 %!error asinh () | 277 %!error asinh () |
278 %!error asinh (1, 2) | 278 %!error asinh (1, 2) |
279 */ | 279 */ |
280 | 280 |
281 DEFUN (atan, args, , | 281 DEFUN (atan, args, , |
282 "-*- texinfo -*-\n\ | 282 "-*- texinfo -*-\n\ |
283 @deftypefn {Mapping Function} {} atan (@var{x})\n\ | 283 @deftypefn {Mapping Function} {} atan (@var{x})\n\ |
284 Compute the inverse tangent in radians for each element of @var{x}.\n\ | 284 Compute the inverse tangent in radians for each element of @var{x}.\n\ |
285 @seealso{tan, atand}\n\ | 285 @seealso{tan, atand}\n\ |
286 @end deftypefn") | 286 @end deftypefn") |
287 { | 287 { |
312 %!error atan () | 312 %!error atan () |
313 %!error atan (1, 2) | 313 %!error atan (1, 2) |
314 */ | 314 */ |
315 | 315 |
316 DEFUN (atanh, args, , | 316 DEFUN (atanh, args, , |
317 "-*- texinfo -*-\n\ | 317 "-*- texinfo -*-\n\ |
318 @deftypefn {Mapping Function} {} atanh (@var{x})\n\ | 318 @deftypefn {Mapping Function} {} atanh (@var{x})\n\ |
319 Compute the inverse hyperbolic tangent for each element of @var{x}.\n\ | 319 Compute the inverse hyperbolic tangent for each element of @var{x}.\n\ |
320 @seealso{tanh}\n\ | 320 @seealso{tanh}\n\ |
321 @end deftypefn") | 321 @end deftypefn") |
322 { | 322 { |
343 %!error atanh () | 343 %!error atanh () |
344 %!error atanh (1, 2) | 344 %!error atanh (1, 2) |
345 */ | 345 */ |
346 | 346 |
347 DEFUN (cbrt, args, , | 347 DEFUN (cbrt, args, , |
348 "-*- texinfo -*-\n\ | 348 "-*- texinfo -*-\n\ |
349 @deftypefn {Mapping Function} {} cbrt (@var{x})\n\ | 349 @deftypefn {Mapping Function} {} cbrt (@var{x})\n\ |
350 Compute the real cube root of each element of @var{x}.\n\ | 350 Compute the real cube root of each element of @var{x}.\n\ |
351 Unlike @code{@var{x}^(1/3)}, the result will be negative if @var{x} is\n\ | 351 Unlike @code{@var{x}^(1/3)}, the result will be negative if @var{x} is\n\ |
352 negative.\n\ | 352 negative.\n\ |
353 @seealso{nthroot}\n\ | 353 @seealso{nthroot}\n\ |
375 %!error cbrt () | 375 %!error cbrt () |
376 %!error cbrt (1, 2) | 376 %!error cbrt (1, 2) |
377 */ | 377 */ |
378 | 378 |
379 DEFUN (ceil, args, , | 379 DEFUN (ceil, args, , |
380 "-*- texinfo -*-\n\ | 380 "-*- texinfo -*-\n\ |
381 @deftypefn {Mapping Function} {} ceil (@var{x})\n\ | 381 @deftypefn {Mapping Function} {} ceil (@var{x})\n\ |
382 Return the smallest integer not less than @var{x}. This is equivalent to\n\ | 382 Return the smallest integer not less than @var{x}. This is equivalent to\n\ |
383 rounding towards positive infinity. If @var{x} is\n\ | 383 rounding towards positive infinity. If @var{x} is\n\ |
384 complex, return @code{ceil (real (@var{x})) + ceil (imag (@var{x})) * I}.\n\ | 384 complex, return @code{ceil (real (@var{x})) + ceil (imag (@var{x})) * I}.\n\ |
385 \n\ | 385 \n\ |
417 %!error ceil () | 417 %!error ceil () |
418 %!error ceil (1, 2) | 418 %!error ceil (1, 2) |
419 */ | 419 */ |
420 | 420 |
421 DEFUN (conj, args, , | 421 DEFUN (conj, args, , |
422 "-*- texinfo -*-\n\ | 422 "-*- texinfo -*-\n\ |
423 @deftypefn {Mapping Function} {} conj (@var{z})\n\ | 423 @deftypefn {Mapping Function} {} conj (@var{z})\n\ |
424 Return the complex conjugate of @var{z}, defined as\n\ | 424 Return the complex conjugate of @var{z}, defined as\n\ |
425 @tex\n\ | 425 @tex\n\ |
426 $\\bar{z} = x - iy$.\n\ | 426 $\\bar{z} = x - iy$.\n\ |
427 @end tex\n\ | 427 @end tex\n\ |
456 %!error conj () | 456 %!error conj () |
457 %!error conj (1, 2) | 457 %!error conj (1, 2) |
458 */ | 458 */ |
459 | 459 |
460 DEFUN (cos, args, , | 460 DEFUN (cos, args, , |
461 "-*- texinfo -*-\n\ | 461 "-*- texinfo -*-\n\ |
462 @deftypefn {Mapping Function} {} cos (@var{x})\n\ | 462 @deftypefn {Mapping Function} {} cos (@var{x})\n\ |
463 Compute the cosine for each element of @var{x} in radians.\n\ | 463 Compute the cosine for each element of @var{x} in radians.\n\ |
464 @seealso{acos, cosd, cosh}\n\ | 464 @seealso{acos, cosd, cosh}\n\ |
465 @end deftypefn") | 465 @end deftypefn") |
466 { | 466 { |
493 %!error cos () | 493 %!error cos () |
494 %!error cos (1, 2) | 494 %!error cos (1, 2) |
495 */ | 495 */ |
496 | 496 |
497 DEFUN (cosh, args, , | 497 DEFUN (cosh, args, , |
498 "-*- texinfo -*-\n\ | 498 "-*- texinfo -*-\n\ |
499 @deftypefn {Mapping Function} {} cosh (@var{x})\n\ | 499 @deftypefn {Mapping Function} {} cosh (@var{x})\n\ |
500 Compute the hyperbolic cosine for each element of @var{x}.\n\ | 500 Compute the hyperbolic cosine for each element of @var{x}.\n\ |
501 @seealso{acosh, sinh, tanh}\n\ | 501 @seealso{acosh, sinh, tanh}\n\ |
502 @end deftypefn") | 502 @end deftypefn") |
503 { | 503 { |
524 %!error cosh () | 524 %!error cosh () |
525 %!error cosh (1, 2) | 525 %!error cosh (1, 2) |
526 */ | 526 */ |
527 | 527 |
528 DEFUN (erf, args, , | 528 DEFUN (erf, args, , |
529 "-*- texinfo -*-\n\ | 529 "-*- texinfo -*-\n\ |
530 @deftypefn {Mapping Function} {} erf (@var{z})\n\ | 530 @deftypefn {Mapping Function} {} erf (@var{z})\n\ |
531 Compute the error function,\n\ | 531 Compute the error function,\n\ |
532 @tex\n\ | 532 @tex\n\ |
533 $$\n\ | 533 $$\n\ |
534 {\\rm erf} (z) = {2 \\over \\sqrt{\\pi}}\\int_0^z e^{-t^2} dt\n\ | 534 {\\rm erf} (z) = {2 \\over \\sqrt{\\pi}}\\int_0^z e^{-t^2} dt\n\ |
594 %!error erf () | 594 %!error erf () |
595 %!error erf (1, 2) | 595 %!error erf (1, 2) |
596 */ | 596 */ |
597 | 597 |
598 DEFUN (erfinv, args, , | 598 DEFUN (erfinv, args, , |
599 "-*- texinfo -*-\n\ | 599 "-*- texinfo -*-\n\ |
600 @deftypefn {Mapping Function} {} erfinv (@var{x})\n\ | 600 @deftypefn {Mapping Function} {} erfinv (@var{x})\n\ |
601 Compute the inverse error function, i.e., @var{y} such that\n\ | 601 Compute the inverse error function, i.e., @var{y} such that\n\ |
602 \n\ | 602 \n\ |
603 @example\n\ | 603 @example\n\ |
604 erf (@var{y}) == @var{x}\n\ | 604 erf (@var{y}) == @var{x}\n\ |
632 %!error erfinv () | 632 %!error erfinv () |
633 %!error erfinv (1, 2) | 633 %!error erfinv (1, 2) |
634 */ | 634 */ |
635 | 635 |
636 DEFUN (erfcinv, args, , | 636 DEFUN (erfcinv, args, , |
637 "-*- texinfo -*-\n\ | 637 "-*- texinfo -*-\n\ |
638 @deftypefn {Mapping Function} {} erfcinv (@var{x})\n\ | 638 @deftypefn {Mapping Function} {} erfcinv (@var{x})\n\ |
639 Compute the inverse complementary error function, i.e., @var{y} such that\n\ | 639 Compute the inverse complementary error function, i.e., @var{y} such that\n\ |
640 \n\ | 640 \n\ |
641 @example\n\ | 641 @example\n\ |
642 erfc (@var{y}) == @var{x}\n\ | 642 erfc (@var{y}) == @var{x}\n\ |
670 %!error erfcinv () | 670 %!error erfcinv () |
671 %!error erfcinv (1, 2) | 671 %!error erfcinv (1, 2) |
672 */ | 672 */ |
673 | 673 |
674 DEFUN (erfc, args, , | 674 DEFUN (erfc, args, , |
675 "-*- texinfo -*-\n\ | 675 "-*- texinfo -*-\n\ |
676 @deftypefn {Mapping Function} {} erfc (@var{z})\n\ | 676 @deftypefn {Mapping Function} {} erfc (@var{z})\n\ |
677 Compute the complementary error function,\n\ | 677 Compute the complementary error function,\n\ |
678 @tex\n\ | 678 @tex\n\ |
679 $1 - {\\rm erf} (z)$.\n\ | 679 $1 - {\\rm erf} (z)$.\n\ |
680 @end tex\n\ | 680 @end tex\n\ |
701 %!error erfc () | 701 %!error erfc () |
702 %!error erfc (1, 2) | 702 %!error erfc (1, 2) |
703 */ | 703 */ |
704 | 704 |
705 DEFUN (erfcx, args, , | 705 DEFUN (erfcx, args, , |
706 "-*- texinfo -*-\n\ | 706 "-*- texinfo -*-\n\ |
707 @deftypefn {Mapping Function} {} erfcx (@var{z})\n\ | 707 @deftypefn {Mapping Function} {} erfcx (@var{z})\n\ |
708 Compute the scaled complementary error function,\n\ | 708 Compute the scaled complementary error function,\n\ |
709 @tex\n\ | 709 @tex\n\ |
710 $$\n\ | 710 $$\n\ |
711 e^{z^2} {\\rm erfc} (z) \\equiv e^{z^2} (1 - {\\rm erf} (z))\n\ | 711 e^{z^2} {\\rm erfc} (z) \\equiv e^{z^2} (1 - {\\rm erf} (z))\n\ |
744 %!error erfcx () | 744 %!error erfcx () |
745 %!error erfcx (1, 2) | 745 %!error erfcx (1, 2) |
746 */ | 746 */ |
747 | 747 |
748 DEFUN (erfi, args, , | 748 DEFUN (erfi, args, , |
749 "-*- texinfo -*-\n\ | 749 "-*- texinfo -*-\n\ |
750 @deftypefn {Mapping Function} {} erfi (@var{z})\n\ | 750 @deftypefn {Mapping Function} {} erfi (@var{z})\n\ |
751 Compute the imaginary error function,\n\ | 751 Compute the imaginary error function,\n\ |
752 @tex\n\ | 752 @tex\n\ |
753 $$\n\ | 753 $$\n\ |
754 -i {\\rm erf} (iz) \n\ | 754 -i {\\rm erf} (iz) \n\ |
782 %!error erfi () | 782 %!error erfi () |
783 %!error erfi (1, 2) | 783 %!error erfi (1, 2) |
784 */ | 784 */ |
785 | 785 |
786 DEFUN (dawson, args, , | 786 DEFUN (dawson, args, , |
787 "-*- texinfo -*-\n\ | 787 "-*- texinfo -*-\n\ |
788 @deftypefn {Mapping Function} {} dawson (@var{z})\n\ | 788 @deftypefn {Mapping Function} {} dawson (@var{z})\n\ |
789 Compute the Dawson (scaled imaginary error) function,\n\ | 789 Compute the Dawson (scaled imaginary error) function,\n\ |
790 @tex\n\ | 790 @tex\n\ |
791 $$\n\ | 791 $$\n\ |
792 {\\sqrt{\\pi} \\over 2} e^{-z^2} {\\rm erfi} (z) \\equiv -i {\\sqrt{\\pi} \\over 2} e^{-z^2} {\\rm erf} (iz)\n\ | 792 {\\sqrt{\\pi} \\over 2} e^{-z^2} {\\rm erfi} (z) \\equiv -i {\\sqrt{\\pi} \\over 2} e^{-z^2} {\\rm erf} (iz)\n\ |
822 %!error dawson () | 822 %!error dawson () |
823 %!error dawson (1, 2) | 823 %!error dawson (1, 2) |
824 */ | 824 */ |
825 | 825 |
826 DEFUN (exp, args, , | 826 DEFUN (exp, args, , |
827 "-*- texinfo -*-\n\ | 827 "-*- texinfo -*-\n\ |
828 @deftypefn {Mapping Function} {} exp (@var{x})\n\ | 828 @deftypefn {Mapping Function} {} exp (@var{x})\n\ |
829 Compute\n\ | 829 Compute\n\ |
830 @tex\n\ | 830 @tex\n\ |
831 $e^{x}$\n\ | 831 $e^{x}$\n\ |
832 @end tex\n\ | 832 @end tex\n\ |
859 %!error exp () | 859 %!error exp () |
860 %!error exp (1, 2) | 860 %!error exp (1, 2) |
861 */ | 861 */ |
862 | 862 |
863 DEFUN (expm1, args, , | 863 DEFUN (expm1, args, , |
864 "-*- texinfo -*-\n\ | 864 "-*- texinfo -*-\n\ |
865 @deftypefn {Mapping Function} {} expm1 (@var{x})\n\ | 865 @deftypefn {Mapping Function} {} expm1 (@var{x})\n\ |
866 Compute\n\ | 866 Compute\n\ |
867 @tex\n\ | 867 @tex\n\ |
868 $ e^{x} - 1 $\n\ | 868 $ e^{x} - 1 $\n\ |
869 @end tex\n\ | 869 @end tex\n\ |
892 %!error expm1 () | 892 %!error expm1 () |
893 %!error expm1 (1, 2) | 893 %!error expm1 (1, 2) |
894 */ | 894 */ |
895 | 895 |
896 DEFUN (isfinite, args, , | 896 DEFUN (isfinite, args, , |
897 "-*- texinfo -*-\n\ | 897 "-*- texinfo -*-\n\ |
898 @deftypefn {Mapping Function} {} isfinite (@var{x})\n\ | 898 @deftypefn {Mapping Function} {} isfinite (@var{x})\n\ |
899 @deftypefnx {Mapping Function} {} finite (@var{x})\n\ | 899 @deftypefnx {Mapping Function} {} finite (@var{x})\n\ |
900 Return a logical array which is true where the elements of @var{x} are\n\ | 900 Return a logical array which is true where the elements of @var{x} are\n\ |
901 finite values and false where they are not.\n\ | 901 finite values and false where they are not.\n\ |
902 For example:\n\ | 902 For example:\n\ |
931 %!error finite () | 931 %!error finite () |
932 %!error finite (1, 2) | 932 %!error finite (1, 2) |
933 */ | 933 */ |
934 | 934 |
935 DEFUN (fix, args, , | 935 DEFUN (fix, args, , |
936 "-*- texinfo -*-\n\ | 936 "-*- texinfo -*-\n\ |
937 @deftypefn {Mapping Function} {} fix (@var{x})\n\ | 937 @deftypefn {Mapping Function} {} fix (@var{x})\n\ |
938 Truncate fractional portion of @var{x} and return the integer portion. This\n\ | 938 Truncate fractional portion of @var{x} and return the integer portion. This\n\ |
939 is equivalent to rounding towards zero. If @var{x} is complex, return\n\ | 939 is equivalent to rounding towards zero. If @var{x} is complex, return\n\ |
940 @code{fix (real (@var{x})) + fix (imag (@var{x})) * I}.\n\ | 940 @code{fix (real (@var{x})) + fix (imag (@var{x})) * I}.\n\ |
941 \n\ | 941 \n\ |
966 %!error fix () | 966 %!error fix () |
967 %!error fix (1, 2) | 967 %!error fix (1, 2) |
968 */ | 968 */ |
969 | 969 |
970 DEFUN (floor, args, , | 970 DEFUN (floor, args, , |
971 "-*- texinfo -*-\n\ | 971 "-*- texinfo -*-\n\ |
972 @deftypefn {Mapping Function} {} floor (@var{x})\n\ | 972 @deftypefn {Mapping Function} {} floor (@var{x})\n\ |
973 Return the largest integer not greater than @var{x}. This is equivalent to\n\ | 973 Return the largest integer not greater than @var{x}. This is equivalent to\n\ |
974 rounding towards negative infinity. If @var{x} is\n\ | 974 rounding towards negative infinity. If @var{x} is\n\ |
975 complex, return @code{floor (real (@var{x})) + floor (imag (@var{x})) * I}.\n\ | 975 complex, return @code{floor (real (@var{x})) + floor (imag (@var{x})) * I}.\n\ |
976 \n\ | 976 \n\ |
1001 %!error floor () | 1001 %!error floor () |
1002 %!error floor (1, 2) | 1002 %!error floor (1, 2) |
1003 */ | 1003 */ |
1004 | 1004 |
1005 DEFUN (gamma, args, , | 1005 DEFUN (gamma, args, , |
1006 "-*- texinfo -*-\n\ | 1006 "-*- texinfo -*-\n\ |
1007 @deftypefn {Mapping Function} {} gamma (@var{z})\n\ | 1007 @deftypefn {Mapping Function} {} gamma (@var{z})\n\ |
1008 Compute the Gamma function,\n\ | 1008 Compute the Gamma function,\n\ |
1009 @tex\n\ | 1009 @tex\n\ |
1010 $$\n\ | 1010 $$\n\ |
1011 \\Gamma (z) = \\int_0^\\infty t^{z-1} e^{-t} dt.\n\ | 1011 \\Gamma (z) = \\int_0^\\infty t^{z-1} e^{-t} dt.\n\ |
1065 %!error gamma () | 1065 %!error gamma () |
1066 %!error gamma (1, 2) | 1066 %!error gamma (1, 2) |
1067 */ | 1067 */ |
1068 | 1068 |
1069 DEFUN (imag, args, , | 1069 DEFUN (imag, args, , |
1070 "-*- texinfo -*-\n\ | 1070 "-*- texinfo -*-\n\ |
1071 @deftypefn {Mapping Function} {} imag (@var{z})\n\ | 1071 @deftypefn {Mapping Function} {} imag (@var{z})\n\ |
1072 Return the imaginary part of @var{z} as a real number.\n\ | 1072 Return the imaginary part of @var{z} as a real number.\n\ |
1073 @seealso{real, conj}\n\ | 1073 @seealso{real, conj}\n\ |
1074 @end deftypefn") | 1074 @end deftypefn") |
1075 { | 1075 { |
1096 %!error imag () | 1096 %!error imag () |
1097 %!error imag (1, 2) | 1097 %!error imag (1, 2) |
1098 */ | 1098 */ |
1099 | 1099 |
1100 DEFUNX ("isalnum", Fisalnum, args, , | 1100 DEFUNX ("isalnum", Fisalnum, args, , |
1101 "-*- texinfo -*-\n\ | 1101 "-*- texinfo -*-\n\ |
1102 @deftypefn {Mapping Function} {} isalnum (@var{s})\n\ | 1102 @deftypefn {Mapping Function} {} isalnum (@var{s})\n\ |
1103 Return a logical array which is true where the elements of @var{s} are\n\ | 1103 Return a logical array which is true where the elements of @var{s} are\n\ |
1104 letters or digits and false where they are not. This is equivalent to\n\ | 1104 letters or digits and false where they are not. This is equivalent to\n\ |
1105 (@code{isalpha (@var{s}) | isdigit (@var{s})}).\n\ | 1105 (@code{isalpha (@var{s}) | isdigit (@var{s})}).\n\ |
1106 @seealso{isalpha, isdigit, ispunct, isspace, iscntrl}\n\ | 1106 @seealso{isalpha, isdigit, ispunct, isspace, iscntrl}\n\ |
1127 %!error isalnum () | 1127 %!error isalnum () |
1128 %!error isalnum (1, 2) | 1128 %!error isalnum (1, 2) |
1129 */ | 1129 */ |
1130 | 1130 |
1131 DEFUNX ("isalpha", Fisalpha, args, , | 1131 DEFUNX ("isalpha", Fisalpha, args, , |
1132 "-*- texinfo -*-\n\ | 1132 "-*- texinfo -*-\n\ |
1133 @deftypefn {Mapping Function} {} isalpha (@var{s})\n\ | 1133 @deftypefn {Mapping Function} {} isalpha (@var{s})\n\ |
1134 Return a logical array which is true where the elements of @var{s} are\n\ | 1134 Return a logical array which is true where the elements of @var{s} are\n\ |
1135 letters and false where they are not. This is equivalent to\n\ | 1135 letters and false where they are not. This is equivalent to\n\ |
1136 (@code{islower (@var{s}) | isupper (@var{s})}).\n\ | 1136 (@code{islower (@var{s}) | isupper (@var{s})}).\n\ |
1137 @seealso{isdigit, ispunct, isspace, iscntrl, isalnum, islower, isupper}\n\ | 1137 @seealso{isdigit, ispunct, isspace, iscntrl, isalnum, islower, isupper}\n\ |
1157 %!error isalpha () | 1157 %!error isalpha () |
1158 %!error isalpha (1, 2) | 1158 %!error isalpha (1, 2) |
1159 */ | 1159 */ |
1160 | 1160 |
1161 DEFUNX ("isascii", Fisascii, args, , | 1161 DEFUNX ("isascii", Fisascii, args, , |
1162 "-*- texinfo -*-\n\ | 1162 "-*- texinfo -*-\n\ |
1163 @deftypefn {Mapping Function} {} isascii (@var{s})\n\ | 1163 @deftypefn {Mapping Function} {} isascii (@var{s})\n\ |
1164 Return a logical array which is true where the elements of @var{s} are\n\ | 1164 Return a logical array which is true where the elements of @var{s} are\n\ |
1165 ASCII characters (in the range 0 to 127 decimal) and false where they are\n\ | 1165 ASCII characters (in the range 0 to 127 decimal) and false where they are\n\ |
1166 not.\n\ | 1166 not.\n\ |
1167 @end deftypefn") | 1167 @end deftypefn") |
1184 %!error isascii () | 1184 %!error isascii () |
1185 %!error isascii (1, 2) | 1185 %!error isascii (1, 2) |
1186 */ | 1186 */ |
1187 | 1187 |
1188 DEFUNX ("iscntrl", Fiscntrl, args, , | 1188 DEFUNX ("iscntrl", Fiscntrl, args, , |
1189 "-*- texinfo -*-\n\ | 1189 "-*- texinfo -*-\n\ |
1190 @deftypefn {Mapping Function} {} iscntrl (@var{s})\n\ | 1190 @deftypefn {Mapping Function} {} iscntrl (@var{s})\n\ |
1191 Return a logical array which is true where the elements of @var{s} are\n\ | 1191 Return a logical array which is true where the elements of @var{s} are\n\ |
1192 control characters and false where they are not.\n\ | 1192 control characters and false where they are not.\n\ |
1193 @seealso{ispunct, isspace, isalpha, isdigit}\n\ | 1193 @seealso{ispunct, isspace, isalpha, isdigit}\n\ |
1194 @end deftypefn") | 1194 @end deftypefn") |
1213 %!error iscntrl () | 1213 %!error iscntrl () |
1214 %!error iscntrl (1, 2) | 1214 %!error iscntrl (1, 2) |
1215 */ | 1215 */ |
1216 | 1216 |
1217 DEFUNX ("isdigit", Fisdigit, args, , | 1217 DEFUNX ("isdigit", Fisdigit, args, , |
1218 "-*- texinfo -*-\n\ | 1218 "-*- texinfo -*-\n\ |
1219 @deftypefn {Mapping Function} {} isdigit (@var{s})\n\ | 1219 @deftypefn {Mapping Function} {} isdigit (@var{s})\n\ |
1220 Return a logical array which is true where the elements of @var{s} are\n\ | 1220 Return a logical array which is true where the elements of @var{s} are\n\ |
1221 decimal digits (0-9) and false where they are not.\n\ | 1221 decimal digits (0-9) and false where they are not.\n\ |
1222 @seealso{isxdigit, isalpha, isletter, ispunct, isspace, iscntrl}\n\ | 1222 @seealso{isxdigit, isalpha, isletter, ispunct, isspace, iscntrl}\n\ |
1223 @end deftypefn") | 1223 @end deftypefn") |
1241 %!error isdigit () | 1241 %!error isdigit () |
1242 %!error isdigit (1, 2) | 1242 %!error isdigit (1, 2) |
1243 */ | 1243 */ |
1244 | 1244 |
1245 DEFUN (isinf, args, , | 1245 DEFUN (isinf, args, , |
1246 "-*- texinfo -*-\n\ | 1246 "-*- texinfo -*-\n\ |
1247 @deftypefn {Mapping Function} {} isinf (@var{x})\n\ | 1247 @deftypefn {Mapping Function} {} isinf (@var{x})\n\ |
1248 Return a logical array which is true where the elements of @var{x} are\n\ | 1248 Return a logical array which is true where the elements of @var{x} are\n\ |
1249 are infinite and false where they are not.\n\ | 1249 are infinite and false where they are not.\n\ |
1250 For example:\n\ | 1250 For example:\n\ |
1251 \n\ | 1251 \n\ |
1283 %!error isinf () | 1283 %!error isinf () |
1284 %!error isinf (1, 2) | 1284 %!error isinf (1, 2) |
1285 */ | 1285 */ |
1286 | 1286 |
1287 DEFUNX ("isgraph", Fisgraph, args, , | 1287 DEFUNX ("isgraph", Fisgraph, args, , |
1288 "-*- texinfo -*-\n\ | 1288 "-*- texinfo -*-\n\ |
1289 @deftypefn {Mapping Function} {} isgraph (@var{s})\n\ | 1289 @deftypefn {Mapping Function} {} isgraph (@var{s})\n\ |
1290 Return a logical array which is true where the elements of @var{s} are\n\ | 1290 Return a logical array which is true where the elements of @var{s} are\n\ |
1291 printable characters (but not the space character) and false where they are\n\ | 1291 printable characters (but not the space character) and false where they are\n\ |
1292 not.\n\ | 1292 not.\n\ |
1293 @seealso{isprint}\n\ | 1293 @seealso{isprint}\n\ |
1312 %!error isgraph () | 1312 %!error isgraph () |
1313 %!error isgraph (1, 2) | 1313 %!error isgraph (1, 2) |
1314 */ | 1314 */ |
1315 | 1315 |
1316 DEFUNX ("islower", Fislower, args, , | 1316 DEFUNX ("islower", Fislower, args, , |
1317 "-*- texinfo -*-\n\ | 1317 "-*- texinfo -*-\n\ |
1318 @deftypefn {Mapping Function} {} islower (@var{s})\n\ | 1318 @deftypefn {Mapping Function} {} islower (@var{s})\n\ |
1319 Return a logical array which is true where the elements of @var{s} are\n\ | 1319 Return a logical array which is true where the elements of @var{s} are\n\ |
1320 lowercase letters and false where they are not.\n\ | 1320 lowercase letters and false where they are not.\n\ |
1321 @seealso{isupper, isalpha, isletter, isalnum}\n\ | 1321 @seealso{isupper, isalpha, isletter, isalnum}\n\ |
1322 @end deftypefn") | 1322 @end deftypefn") |
1340 %!error islower () | 1340 %!error islower () |
1341 %!error islower (1, 2) | 1341 %!error islower (1, 2) |
1342 */ | 1342 */ |
1343 | 1343 |
1344 DEFUN (isna, args, , | 1344 DEFUN (isna, args, , |
1345 "-*- texinfo -*-\n\ | 1345 "-*- texinfo -*-\n\ |
1346 @deftypefn {Mapping Function} {} isna (@var{x})\n\ | 1346 @deftypefn {Mapping Function} {} isna (@var{x})\n\ |
1347 Return a logical array which is true where the elements of @var{x} are\n\ | 1347 Return a logical array which is true where the elements of @var{x} are\n\ |
1348 NA (missing) values and false where they are not.\n\ | 1348 NA (missing) values and false where they are not.\n\ |
1349 For example:\n\ | 1349 For example:\n\ |
1350 \n\ | 1350 \n\ |
1382 %!error isna () | 1382 %!error isna () |
1383 %!error isna (1, 2) | 1383 %!error isna (1, 2) |
1384 */ | 1384 */ |
1385 | 1385 |
1386 DEFUN (isnan, args, , | 1386 DEFUN (isnan, args, , |
1387 "-*- texinfo -*-\n\ | 1387 "-*- texinfo -*-\n\ |
1388 @deftypefn {Mapping Function} {} isnan (@var{x})\n\ | 1388 @deftypefn {Mapping Function} {} isnan (@var{x})\n\ |
1389 Return a logical array which is true where the elements of @var{x} are\n\ | 1389 Return a logical array which is true where the elements of @var{x} are\n\ |
1390 NaN values and false where they are not.\n\ | 1390 NaN values and false where they are not.\n\ |
1391 NA values are also considered NaN values. For example:\n\ | 1391 NA values are also considered NaN values. For example:\n\ |
1392 \n\ | 1392 \n\ |
1424 %!error isnan () | 1424 %!error isnan () |
1425 %!error isnan (1, 2) | 1425 %!error isnan (1, 2) |
1426 */ | 1426 */ |
1427 | 1427 |
1428 DEFUNX ("isprint", Fisprint, args, , | 1428 DEFUNX ("isprint", Fisprint, args, , |
1429 "-*- texinfo -*-\n\ | 1429 "-*- texinfo -*-\n\ |
1430 @deftypefn {Mapping Function} {} isprint (@var{s})\n\ | 1430 @deftypefn {Mapping Function} {} isprint (@var{s})\n\ |
1431 Return a logical array which is true where the elements of @var{s} are\n\ | 1431 Return a logical array which is true where the elements of @var{s} are\n\ |
1432 printable characters (including the space character) and false where they\n\ | 1432 printable characters (including the space character) and false where they\n\ |
1433 are not.\n\ | 1433 are not.\n\ |
1434 @seealso{isgraph}\n\ | 1434 @seealso{isgraph}\n\ |
1453 %!error isprint () | 1453 %!error isprint () |
1454 %!error isprint (1, 2) | 1454 %!error isprint (1, 2) |
1455 */ | 1455 */ |
1456 | 1456 |
1457 DEFUNX ("ispunct", Fispunct, args, , | 1457 DEFUNX ("ispunct", Fispunct, args, , |
1458 "-*- texinfo -*-\n\ | 1458 "-*- texinfo -*-\n\ |
1459 @deftypefn {Mapping Function} {} ispunct (@var{s})\n\ | 1459 @deftypefn {Mapping Function} {} ispunct (@var{s})\n\ |
1460 Return a logical array which is true where the elements of @var{s} are\n\ | 1460 Return a logical array which is true where the elements of @var{s} are\n\ |
1461 punctuation characters and false where they are not.\n\ | 1461 punctuation characters and false where they are not.\n\ |
1462 @seealso{isalpha, isdigit, isspace, iscntrl}\n\ | 1462 @seealso{isalpha, isdigit, isspace, iscntrl}\n\ |
1463 @end deftypefn") | 1463 @end deftypefn") |
1484 %!error ispunct () | 1484 %!error ispunct () |
1485 %!error ispunct (1, 2) | 1485 %!error ispunct (1, 2) |
1486 */ | 1486 */ |
1487 | 1487 |
1488 DEFUNX ("isspace", Fisspace, args, , | 1488 DEFUNX ("isspace", Fisspace, args, , |
1489 "-*- texinfo -*-\n\ | 1489 "-*- texinfo -*-\n\ |
1490 @deftypefn {Mapping Function} {} isspace (@var{s})\n\ | 1490 @deftypefn {Mapping Function} {} isspace (@var{s})\n\ |
1491 Return a logical array which is true where the elements of @var{s} are\n\ | 1491 Return a logical array which is true where the elements of @var{s} are\n\ |
1492 whitespace characters (space, formfeed, newline, carriage return, tab, and\n\ | 1492 whitespace characters (space, formfeed, newline, carriage return, tab, and\n\ |
1493 vertical tab) and false where they are not.\n\ | 1493 vertical tab) and false where they are not.\n\ |
1494 @seealso{iscntrl, ispunct, isalpha, isdigit}\n\ | 1494 @seealso{iscntrl, ispunct, isalpha, isdigit}\n\ |
1513 %!error isspace () | 1513 %!error isspace () |
1514 %!error isspace (1, 2) | 1514 %!error isspace (1, 2) |
1515 */ | 1515 */ |
1516 | 1516 |
1517 DEFUNX ("isupper", Fisupper, args, , | 1517 DEFUNX ("isupper", Fisupper, args, , |
1518 "-*- texinfo -*-\n\ | 1518 "-*- texinfo -*-\n\ |
1519 @deftypefn {Mapping Function} {} isupper (@var{s})\n\ | 1519 @deftypefn {Mapping Function} {} isupper (@var{s})\n\ |
1520 Return a logical array which is true where the elements of @var{s} are\n\ | 1520 Return a logical array which is true where the elements of @var{s} are\n\ |
1521 uppercase letters and false where they are not.\n\ | 1521 uppercase letters and false where they are not.\n\ |
1522 @seealso{islower, isalpha, isletter, isalnum}\n\ | 1522 @seealso{islower, isalpha, isletter, isalnum}\n\ |
1523 @end deftypefn") | 1523 @end deftypefn") |
1541 %!error isupper () | 1541 %!error isupper () |
1542 %!error isupper (1, 2) | 1542 %!error isupper (1, 2) |
1543 */ | 1543 */ |
1544 | 1544 |
1545 DEFUNX ("isxdigit", Fisxdigit, args, , | 1545 DEFUNX ("isxdigit", Fisxdigit, args, , |
1546 "-*- texinfo -*-\n\ | 1546 "-*- texinfo -*-\n\ |
1547 @deftypefn {Mapping Function} {} isxdigit (@var{s})\n\ | 1547 @deftypefn {Mapping Function} {} isxdigit (@var{s})\n\ |
1548 Return a logical array which is true where the elements of @var{s} are\n\ | 1548 Return a logical array which is true where the elements of @var{s} are\n\ |
1549 hexadecimal digits (0-9 and @nospell{a-fA-F}).\n\ | 1549 hexadecimal digits (0-9 and @nospell{a-fA-F}).\n\ |
1550 @seealso{isdigit}\n\ | 1550 @seealso{isdigit}\n\ |
1551 @end deftypefn") | 1551 @end deftypefn") |
1571 %!error isxdigit () | 1571 %!error isxdigit () |
1572 %!error isxdigit (1, 2) | 1572 %!error isxdigit (1, 2) |
1573 */ | 1573 */ |
1574 | 1574 |
1575 DEFUN (lgamma, args, , | 1575 DEFUN (lgamma, args, , |
1576 "-*- texinfo -*-\n\ | 1576 "-*- texinfo -*-\n\ |
1577 @deftypefn {Mapping Function} {} lgamma (@var{x})\n\ | 1577 @deftypefn {Mapping Function} {} lgamma (@var{x})\n\ |
1578 @deftypefnx {Mapping Function} {} gammaln (@var{x})\n\ | 1578 @deftypefnx {Mapping Function} {} gammaln (@var{x})\n\ |
1579 Return the natural logarithm of the gamma function of @var{x}.\n\ | 1579 Return the natural logarithm of the gamma function of @var{x}.\n\ |
1580 @seealso{gamma, gammainc}\n\ | 1580 @seealso{gamma, gammainc}\n\ |
1581 @end deftypefn") | 1581 @end deftypefn") |
1617 %!error lgamma () | 1617 %!error lgamma () |
1618 %!error lgamma (1,2) | 1618 %!error lgamma (1,2) |
1619 */ | 1619 */ |
1620 | 1620 |
1621 DEFUN (log, args, , | 1621 DEFUN (log, args, , |
1622 "-*- texinfo -*-\n\ | 1622 "-*- texinfo -*-\n\ |
1623 @deftypefn {Mapping Function} {} log (@var{x})\n\ | 1623 @deftypefn {Mapping Function} {} log (@var{x})\n\ |
1624 Compute the natural logarithm,\n\ | 1624 Compute the natural logarithm,\n\ |
1625 @tex\n\ | 1625 @tex\n\ |
1626 $\\ln{(x)},$\n\ | 1626 $\\ln{(x)},$\n\ |
1627 @end tex\n\ | 1627 @end tex\n\ |
1652 %!error log () | 1652 %!error log () |
1653 %!error log (1, 2) | 1653 %!error log (1, 2) |
1654 */ | 1654 */ |
1655 | 1655 |
1656 DEFUN (log10, args, , | 1656 DEFUN (log10, args, , |
1657 "-*- texinfo -*-\n\ | 1657 "-*- texinfo -*-\n\ |
1658 @deftypefn {Mapping Function} {} log10 (@var{x})\n\ | 1658 @deftypefn {Mapping Function} {} log10 (@var{x})\n\ |
1659 Compute the base-10 logarithm of each element of @var{x}.\n\ | 1659 Compute the base-10 logarithm of each element of @var{x}.\n\ |
1660 @seealso{log, log2, logspace, exp}\n\ | 1660 @seealso{log, log2, logspace, exp}\n\ |
1661 @end deftypefn") | 1661 @end deftypefn") |
1662 { | 1662 { |
1676 %!error log10 () | 1676 %!error log10 () |
1677 %!error log10 (1, 2) | 1677 %!error log10 (1, 2) |
1678 */ | 1678 */ |
1679 | 1679 |
1680 DEFUN (log1p, args, , | 1680 DEFUN (log1p, args, , |
1681 "-*- texinfo -*-\n\ | 1681 "-*- texinfo -*-\n\ |
1682 @deftypefn {Mapping Function} {} log1p (@var{x})\n\ | 1682 @deftypefn {Mapping Function} {} log1p (@var{x})\n\ |
1683 Compute\n\ | 1683 Compute\n\ |
1684 @tex\n\ | 1684 @tex\n\ |
1685 $\\ln{(1 + x)}$\n\ | 1685 $\\ln{(1 + x)}$\n\ |
1686 @end tex\n\ | 1686 @end tex\n\ |
1707 %!error log1p () | 1707 %!error log1p () |
1708 %!error log1p (1, 2) | 1708 %!error log1p (1, 2) |
1709 */ | 1709 */ |
1710 | 1710 |
1711 DEFUN (real, args, , | 1711 DEFUN (real, args, , |
1712 "-*- texinfo -*-\n\ | 1712 "-*- texinfo -*-\n\ |
1713 @deftypefn {Mapping Function} {} real (@var{z})\n\ | 1713 @deftypefn {Mapping Function} {} real (@var{z})\n\ |
1714 Return the real part of @var{z}.\n\ | 1714 Return the real part of @var{z}.\n\ |
1715 @seealso{imag, conj}\n\ | 1715 @seealso{imag, conj}\n\ |
1716 @end deftypefn") | 1716 @end deftypefn") |
1717 { | 1717 { |
1738 %!error real () | 1738 %!error real () |
1739 %!error real (1, 2) | 1739 %!error real (1, 2) |
1740 */ | 1740 */ |
1741 | 1741 |
1742 DEFUN (round, args, , | 1742 DEFUN (round, args, , |
1743 "-*- texinfo -*-\n\ | 1743 "-*- texinfo -*-\n\ |
1744 @deftypefn {Mapping Function} {} round (@var{x})\n\ | 1744 @deftypefn {Mapping Function} {} round (@var{x})\n\ |
1745 Return the integer nearest to @var{x}. If @var{x} is complex, return\n\ | 1745 Return the integer nearest to @var{x}. If @var{x} is complex, return\n\ |
1746 @code{round (real (@var{x})) + round (imag (@var{x})) * I}. If there\n\ | 1746 @code{round (real (@var{x})) + round (imag (@var{x})) * I}. If there\n\ |
1747 are two nearest integers, return the one further away from zero.\n\ | 1747 are two nearest integers, return the one further away from zero.\n\ |
1748 \n\ | 1748 \n\ |
1784 %!error round () | 1784 %!error round () |
1785 %!error round (1, 2) | 1785 %!error round (1, 2) |
1786 */ | 1786 */ |
1787 | 1787 |
1788 DEFUN (roundb, args, , | 1788 DEFUN (roundb, args, , |
1789 "-*- texinfo -*-\n\ | 1789 "-*- texinfo -*-\n\ |
1790 @deftypefn {Mapping Function} {} roundb (@var{x})\n\ | 1790 @deftypefn {Mapping Function} {} roundb (@var{x})\n\ |
1791 Return the integer nearest to @var{x}. If there are two nearest\n\ | 1791 Return the integer nearest to @var{x}. If there are two nearest\n\ |
1792 integers, return the even one (banker's rounding). If @var{x} is complex,\n\ | 1792 integers, return the even one (banker's rounding). If @var{x} is complex,\n\ |
1793 return @code{roundb (real (@var{x})) + roundb (imag (@var{x})) * I}.\n\ | 1793 return @code{roundb (real (@var{x})) + roundb (imag (@var{x})) * I}.\n\ |
1794 @seealso{round}\n\ | 1794 @seealso{round}\n\ |
1825 %!error roundb () | 1825 %!error roundb () |
1826 %!error roundb (1, 2) | 1826 %!error roundb (1, 2) |
1827 */ | 1827 */ |
1828 | 1828 |
1829 DEFUN (sign, args, , | 1829 DEFUN (sign, args, , |
1830 "-*- texinfo -*-\n\ | 1830 "-*- texinfo -*-\n\ |
1831 @deftypefn {Mapping Function} {} sign (@var{x})\n\ | 1831 @deftypefn {Mapping Function} {} sign (@var{x})\n\ |
1832 Compute the @dfn{signum} function, which is defined as\n\ | 1832 Compute the @dfn{signum} function, which is defined as\n\ |
1833 @tex\n\ | 1833 @tex\n\ |
1834 $$\n\ | 1834 $$\n\ |
1835 {\\rm sign} (@var{x}) = \\cases{1,&$x>0$;\\cr 0,&$x=0$;\\cr -1,&$x<0$.\\cr}\n\ | 1835 {\\rm sign} (@var{x}) = \\cases{1,&$x>0$;\\cr 0,&$x=0$;\\cr -1,&$x<0$.\\cr}\n\ |
1879 %!error sign () | 1879 %!error sign () |
1880 %!error sign (1, 2) | 1880 %!error sign (1, 2) |
1881 */ | 1881 */ |
1882 | 1882 |
1883 DEFUNX ("signbit", Fsignbit, args, , | 1883 DEFUNX ("signbit", Fsignbit, args, , |
1884 "-*- texinfo -*-\n\ | 1884 "-*- texinfo -*-\n\ |
1885 @deftypefn {Mapping Function} {} signbit (@var{x})\n\ | 1885 @deftypefn {Mapping Function} {} signbit (@var{x})\n\ |
1886 Return logical true if the value of @var{x} has its sign bit set.\n\ | 1886 Return logical true if the value of @var{x} has its sign bit set.\n\ |
1887 Otherwise return logical false. This behavior is consistent with the other\n\ | 1887 Otherwise return logical false. This behavior is consistent with the other\n\ |
1888 logical functions. See@ref{Logical Values}. The behavior differs from the\n\ | 1888 logical functions. See@ref{Logical Values}. The behavior differs from the\n\ |
1889 C language function which returns non-zero if the sign bit is set.\n\ | 1889 C language function which returns non-zero if the sign bit is set.\n\ |
1893 but @code{signbit (-0.0)} will return a nonzero value.\n\ | 1893 but @code{signbit (-0.0)} will return a nonzero value.\n\ |
1894 @seealso{sign}\n\ | 1894 @seealso{sign}\n\ |
1895 @end deftypefn") | 1895 @end deftypefn") |
1896 { | 1896 { |
1897 octave_value retval; | 1897 octave_value retval; |
1898 if (args.length () == 1) { | 1898 if (args.length () == 1) |
1899 retval = args(0).xsignbit (); | 1899 { |
1900 retval = (retval != 0); } | 1900 retval = args(0).xsignbit (); |
1901 retval = (retval != 0); | |
1902 } | |
1901 else | 1903 else |
1902 print_usage (); | 1904 print_usage (); |
1903 | 1905 |
1904 return retval; | 1906 return retval; |
1905 } | 1907 } |
1918 %!error sign () | 1920 %!error sign () |
1919 %!error sign (1, 2) | 1921 %!error sign (1, 2) |
1920 */ | 1922 */ |
1921 | 1923 |
1922 DEFUN (sin, args, , | 1924 DEFUN (sin, args, , |
1923 "-*- texinfo -*-\n\ | 1925 "-*- texinfo -*-\n\ |
1924 @deftypefn {Mapping Function} {} sin (@var{x})\n\ | 1926 @deftypefn {Mapping Function} {} sin (@var{x})\n\ |
1925 Compute the sine for each element of @var{x} in radians.\n\ | 1927 Compute the sine for each element of @var{x} in radians.\n\ |
1926 @seealso{asin, sind, sinh}\n\ | 1928 @seealso{asin, sind, sinh}\n\ |
1927 @end deftypefn") | 1929 @end deftypefn") |
1928 { | 1930 { |
1953 %!error sin () | 1955 %!error sin () |
1954 %!error sin (1, 2) | 1956 %!error sin (1, 2) |
1955 */ | 1957 */ |
1956 | 1958 |
1957 DEFUN (sinh, args, , | 1959 DEFUN (sinh, args, , |
1958 "-*- texinfo -*-\n\ | 1960 "-*- texinfo -*-\n\ |
1959 @deftypefn {Mapping Function} {} sinh (@var{x})\n\ | 1961 @deftypefn {Mapping Function} {} sinh (@var{x})\n\ |
1960 Compute the hyperbolic sine for each element of @var{x}.\n\ | 1962 Compute the hyperbolic sine for each element of @var{x}.\n\ |
1961 @seealso{asinh, cosh, tanh}\n\ | 1963 @seealso{asinh, cosh, tanh}\n\ |
1962 @end deftypefn") | 1964 @end deftypefn") |
1963 { | 1965 { |
1984 %!error sinh () | 1986 %!error sinh () |
1985 %!error sinh (1, 2) | 1987 %!error sinh (1, 2) |
1986 */ | 1988 */ |
1987 | 1989 |
1988 DEFUN (sqrt, args, , | 1990 DEFUN (sqrt, args, , |
1989 "-*- texinfo -*-\n\ | 1991 "-*- texinfo -*-\n\ |
1990 @deftypefn {Mapping Function} {} sqrt (@var{x})\n\ | 1992 @deftypefn {Mapping Function} {} sqrt (@var{x})\n\ |
1991 Compute the square root of each element of @var{x}. If @var{x} is negative,\n\ | 1993 Compute the square root of each element of @var{x}. If @var{x} is negative,\n\ |
1992 a complex result is returned. To compute the matrix square root, see\n\ | 1994 a complex result is returned. To compute the matrix square root, see\n\ |
1993 @ref{Linear Algebra}.\n\ | 1995 @ref{Linear Algebra}.\n\ |
1994 @seealso{realsqrt, nthroot}\n\ | 1996 @seealso{realsqrt, nthroot}\n\ |
2017 %!error sqrt () | 2019 %!error sqrt () |
2018 %!error sqrt (1, 2) | 2020 %!error sqrt (1, 2) |
2019 */ | 2021 */ |
2020 | 2022 |
2021 DEFUN (tan, args, , | 2023 DEFUN (tan, args, , |
2022 "-*- texinfo -*-\n\ | 2024 "-*- texinfo -*-\n\ |
2023 @deftypefn {Mapping Function} {} tan (@var{z})\n\ | 2025 @deftypefn {Mapping Function} {} tan (@var{z})\n\ |
2024 Compute the tangent for each element of @var{x} in radians.\n\ | 2026 Compute the tangent for each element of @var{x} in radians.\n\ |
2025 @seealso{atan, tand, tanh}\n\ | 2027 @seealso{atan, tand, tanh}\n\ |
2026 @end deftypefn") | 2028 @end deftypefn") |
2027 { | 2029 { |
2052 %!error tan () | 2054 %!error tan () |
2053 %!error tan (1, 2) | 2055 %!error tan (1, 2) |
2054 */ | 2056 */ |
2055 | 2057 |
2056 DEFUN (tanh, args, , | 2058 DEFUN (tanh, args, , |
2057 "-*- texinfo -*-\n\ | 2059 "-*- texinfo -*-\n\ |
2058 @deftypefn {Mapping Function} {} tanh (@var{x})\n\ | 2060 @deftypefn {Mapping Function} {} tanh (@var{x})\n\ |
2059 Compute hyperbolic tangent for each element of @var{x}.\n\ | 2061 Compute hyperbolic tangent for each element of @var{x}.\n\ |
2060 @seealso{atanh, sinh, cosh}\n\ | 2062 @seealso{atanh, sinh, cosh}\n\ |
2061 @end deftypefn") | 2063 @end deftypefn") |
2062 { | 2064 { |
2083 %!error tanh () | 2085 %!error tanh () |
2084 %!error tanh (1, 2) | 2086 %!error tanh (1, 2) |
2085 */ | 2087 */ |
2086 | 2088 |
2087 DEFUNX ("toascii", Ftoascii, args, , | 2089 DEFUNX ("toascii", Ftoascii, args, , |
2088 "-*- texinfo -*-\n\ | 2090 "-*- texinfo -*-\n\ |
2089 @deftypefn {Mapping Function} {} toascii (@var{s})\n\ | 2091 @deftypefn {Mapping Function} {} toascii (@var{s})\n\ |
2090 Return ASCII representation of @var{s} in a matrix. For example:\n\ | 2092 Return ASCII representation of @var{s} in a matrix. For example:\n\ |
2091 \n\ | 2093 \n\ |
2092 @example\n\ | 2094 @example\n\ |
2093 @group\n\ | 2095 @group\n\ |
2119 %!error toascii () | 2121 %!error toascii () |
2120 %!error toascii (1, 2) | 2122 %!error toascii (1, 2) |
2121 */ | 2123 */ |
2122 | 2124 |
2123 DEFUNX ("tolower", Ftolower, args, , | 2125 DEFUNX ("tolower", Ftolower, args, , |
2124 "-*- texinfo -*-\n\ | 2126 "-*- texinfo -*-\n\ |
2125 @deftypefn {Mapping Function} {} tolower (@var{s})\n\ | 2127 @deftypefn {Mapping Function} {} tolower (@var{s})\n\ |
2126 @deftypefnx {Mapping Function} {} lower (@var{s})\n\ | 2128 @deftypefnx {Mapping Function} {} lower (@var{s})\n\ |
2127 Return a copy of the string or cell string @var{s}, with each uppercase\n\ | 2129 Return a copy of the string or cell string @var{s}, with each uppercase\n\ |
2128 character replaced by the corresponding lowercase one; non-alphabetic\n\ | 2130 character replaced by the corresponding lowercase one; non-alphabetic\n\ |
2129 characters are left unchanged. For example:\n\ | 2131 characters are left unchanged. For example:\n\ |
2170 %!error <Invalid call to tolower> tolower () | 2172 %!error <Invalid call to tolower> tolower () |
2171 %!error tolower (1, 2) | 2173 %!error tolower (1, 2) |
2172 */ | 2174 */ |
2173 | 2175 |
2174 DEFUNX ("toupper", Ftoupper, args, , | 2176 DEFUNX ("toupper", Ftoupper, args, , |
2175 "-*- texinfo -*-\n\ | 2177 "-*- texinfo -*-\n\ |
2176 @deftypefn {Mapping Function} {} toupper (@var{s})\n\ | 2178 @deftypefn {Mapping Function} {} toupper (@var{s})\n\ |
2177 @deftypefnx {Mapping Function} {} upper (@var{s})\n\ | 2179 @deftypefnx {Mapping Function} {} upper (@var{s})\n\ |
2178 Return a copy of the string or cell string @var{s}, with each lowercase\n\ | 2180 Return a copy of the string or cell string @var{s}, with each lowercase\n\ |
2179 character replaced by the corresponding uppercase one; non-alphabetic\n\ | 2181 character replaced by the corresponding uppercase one; non-alphabetic\n\ |
2180 characters are left unchanged. For example:\n\ | 2182 characters are left unchanged. For example:\n\ |