1
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
20 |
|
21 */ |
|
22 |
240
|
23 #ifdef HAVE_CONFIG_H |
1192
|
24 #include <config.h> |
1
|
25 #endif |
|
26 |
2089
|
27 #include <cctype> |
3010
|
28 #include <cfloat> |
1
|
29 |
3156
|
30 #include "lo-specfun.h" |
2889
|
31 #include "lo-mappers.h" |
|
32 |
1352
|
33 #include "defun.h" |
|
34 #include "error.h" |
2970
|
35 #include "ov-mapper.h" |
2955
|
36 #include "variables.h" |
1
|
37 |
2190
|
38 // XXX FIXME XXX -- perhaps this could be avoided by determining |
|
39 // whether the is* functions are actually functions or just macros. |
|
40 |
2889
|
41 static int |
2190
|
42 xisalnum (int c) |
|
43 { |
|
44 return isalnum (c); |
|
45 } |
|
46 |
2889
|
47 static int |
2190
|
48 xisalpha (int c) |
|
49 { |
|
50 return isalpha (c); |
|
51 } |
|
52 |
2889
|
53 static int |
2190
|
54 xisascii (int c) |
|
55 { |
|
56 return isascii (c); |
|
57 } |
|
58 |
2889
|
59 static int |
2190
|
60 xiscntrl (int c) |
|
61 { |
|
62 return iscntrl (c); |
|
63 } |
|
64 |
2889
|
65 static int |
2190
|
66 xisdigit (int c) |
|
67 { |
|
68 return isdigit (c); |
|
69 } |
|
70 |
2889
|
71 static int |
2190
|
72 xisgraph (int c) |
|
73 { |
|
74 return isgraph (c); |
|
75 } |
|
76 |
2889
|
77 static int |
2190
|
78 xislower (int c) |
|
79 { |
|
80 return islower (c); |
|
81 } |
|
82 |
2889
|
83 static int |
2190
|
84 xisprint (int c) |
|
85 { |
|
86 return isprint (c); |
|
87 } |
|
88 |
2889
|
89 static int |
2190
|
90 xispunct (int c) |
|
91 { |
|
92 return ispunct (c); |
|
93 } |
|
94 |
2889
|
95 static int |
2190
|
96 xisspace (int c) |
|
97 { |
|
98 return isspace (c); |
|
99 } |
|
100 |
2889
|
101 static int |
2190
|
102 xisupper (int c) |
|
103 { |
|
104 return isupper (c); |
|
105 } |
|
106 |
2889
|
107 static int |
2190
|
108 xisxdigit (int c) |
|
109 { |
|
110 return isxdigit (c); |
|
111 } |
|
112 |
2889
|
113 static int |
2267
|
114 xtoascii (int c) |
|
115 { |
|
116 return toascii (c); |
|
117 } |
|
118 |
2889
|
119 static int |
2267
|
120 xtolower (int c) |
|
121 { |
|
122 return tolower (c); |
|
123 } |
|
124 |
2889
|
125 static int |
2267
|
126 xtoupper (int c) |
|
127 { |
|
128 return toupper (c); |
|
129 } |
|
130 |
529
|
131 void |
|
132 install_mapper_functions (void) |
|
133 { |
3249
|
134 DEFUN_MAPPER (abs, 0, 0, 0, fabs, abs, 0, 0.0, 0.0, 0, |
3321
|
135 "-*- texinfo -*-\n\ |
|
136 @deftypefn {Mapping Function} {} abs (@var{z})\n\ |
|
137 Compute the magnitude of @var{z}, defined as\n\ |
|
138 @iftex\n\ |
|
139 @tex\n\ |
|
140 $|z| = \\sqrt{x^2 + y^2}$.\n\ |
|
141 @end tex\n\ |
|
142 @end iftex\n\ |
|
143 @ifinfo\n\ |
|
144 |@var{z}| = @code{sqrt (x^2 + y^2)}.\n\ |
|
145 @end ifinfo\n\ |
|
146 \n\ |
|
147 For example,\n\ |
|
148 \n\ |
|
149 @example\n\ |
|
150 @group\n\ |
|
151 abs (3 + 4i)\n\ |
|
152 @result{} 5\n\ |
|
153 @end group\n\ |
|
154 @end example\n\ |
|
155 @end deftypefn"); |
529
|
156 |
3249
|
157 DEFUN_MAPPER (acos, 0, 0, 0, acos, 0, acos, -1.0, 1.0, 1, |
3321
|
158 "-*- texinfo -*-\n\ |
|
159 @deftypefn {Mapping Function} {} acos (@var{X})\n\ |
|
160 acos (X): compute the inverse cosine of X for each element of X\n\ |
|
161 @end deftypefn"); |
529
|
162 |
3249
|
163 DEFUN_MAPPER (acosh, 0, 0, 0, acosh, 0, acosh, 1.0, DBL_MAX, 1, |
3321
|
164 "-*- texinfo -*-\n\ |
|
165 @deftypefn {Mapping Function} {} acosh (@var{X})\n\ |
|
166 acosh (X): compute the inverse hyperbolic cosine of X for each element of X.\n\ |
|
167 @end deftypefn"); |
529
|
168 |
3249
|
169 DEFUN_MAPPER (angle, 0, 0, 0, arg, arg, 0, 0.0, 0.0, 0, |
3322
|
170 "See arg."); |
529
|
171 |
3249
|
172 DEFUN_MAPPER (arg, 0, 0, 0, arg, arg, 0, 0.0, 0.0, 0, |
3321
|
173 "-*- texinfo -*-\n\ |
|
174 @deftypefn {Mapping Function} {} angle (@var{z})\n\ |
|
175 Compute the argument of @var{z}, defined as\n\ |
|
176 @iftex\n\ |
|
177 @tex\n\ |
|
178 $\\theta = \\tan^{-1}(y/x)$.\n\ |
|
179 @end tex\n\ |
|
180 @end iftex\n\ |
|
181 @ifinfo\n\ |
|
182 @var{theta} = @code{atan (@var{y}/@var{x})}.\n\ |
|
183 @end ifinfo\n\ |
|
184 \n\ |
|
185 @noindent\n\ |
|
186 in radians. \n\ |
|
187 \n\ |
|
188 For example,\n\ |
|
189 \n\ |
|
190 @example\n\ |
|
191 @group\n\ |
|
192 arg (3 + 4i)\n\ |
|
193 @result{} 0.92730\n\ |
|
194 @end group\n\ |
|
195 @end example\n\ |
|
196 @end deftypefn"); |
529
|
197 |
3249
|
198 DEFUN_MAPPER (asin, 0, 0, 0, asin, 0, asin, -1.0, 1.0, 1, |
3321
|
199 "-*- texinfo -*-\n\ |
|
200 @deftypefn {Mapping Function} {} asin (@var{X})\n\ |
|
201 asin (X): compute inverse sin (X) for each element of X\n\ |
|
202 @end deftypefn"); |
529
|
203 |
3249
|
204 DEFUN_MAPPER (asinh, 0, 0, 0, asinh, 0, asinh, 0.0, 0.0, 0, |
3321
|
205 "-*- texinfo -*-\n\ |
|
206 @deftypefn {Mapping Function} {} asinh (@var{X})\n\ |
|
207 asinh (X): compute the inverse hyperbolic sin (X) for each element of X\n\ |
|
208 @end deftypefn"); |
529
|
209 |
3249
|
210 DEFUN_MAPPER (atan, 0, 0, 0, atan, 0, atan, 0.0, 0.0, 0, |
3321
|
211 "-*- texinfo -*-\n\ |
|
212 @deftypefn {Mapping Function} {} atan (@var{X})\n\ |
|
213 atan (X): compute the inverse tangent of (X) for each element of X\n\ |
|
214 @end deftypefn"); |
529
|
215 |
3249
|
216 DEFUN_MAPPER (atanh, 0, 0, 0, atanh, 0, atanh, -1.0, 1.0, 1, |
3321
|
217 "-*- texinfo -*-\n\ |
|
218 @deftypefn {Mapping Function} {} atanh (@var{X})\n\ |
|
219 atanh (X): compute the inverse hyperbolic tanget of X for each element of X\n\ |
|
220 @end deftypefn"); |
529
|
221 |
3249
|
222 DEFUN_MAPPER (ceil, 0, 0, 0, ceil, 0, ceil, 0.0, 0.0, 0, |
3321
|
223 "-*- texinfo -*-\n\ |
|
224 @deftypefn {Usage} {} ceil (@var{x})\n\ |
|
225 Return the smallest integer not less than @var{x}. If @var{x} is\n\ |
|
226 complex, return @code{ceil (real (@var{x})) + ceil (imag (@var{x})) * I}.\n\ |
|
227 @end deftypefn"); |
529
|
228 |
3249
|
229 DEFUN_MAPPER (conj, 0, 0, 0, conj, 0, conj, 0.0, 0.0, 0, |
3321
|
230 "-* texinfo -*-\n\ |
|
231 @deftypefn {Mapping Function} {} conj (@var{z})\n\ |
|
232 Return the complex conjugate of @var{z}, defined as\n\ |
|
233 @iftex\n\ |
|
234 @tex\n\ |
|
235 $\\bar{z} = x - iy$.\n\ |
|
236 @end tex\n\ |
|
237 @end iftex\n\ |
|
238 @ifinfo\n\ |
|
239 @code{conj (@var{z})} = @var{x} - @var{i}@var{y}.\n\ |
|
240 @end ifinfo\n\ |
|
241 @end deftypefn\n\ |
|
242 \n\ |
|
243 See also: real, imag"); |
529
|
244 |
3249
|
245 DEFUN_MAPPER (cos, 0, 0, 0, cos, 0, cos, 0.0, 0.0, 0, |
3321
|
246 "-*- texinfo -*-\n\ |
|
247 @deftypefn {Mapping Function} {} cos (@var{X})\n\ |
|
248 cos (X): compute the cosine of X for each element of X\n\ |
|
249 @end deftypefn"); |
529
|
250 |
3249
|
251 DEFUN_MAPPER (cosh, 0, 0, 0, cosh, 0, cosh, 0.0, 0.0, 0, |
3321
|
252 "-*- texinfo -*-\n\ |
|
253 @deftypefn {Mapping Function} {} acosh (@var{X})\n\ |
|
254 acosh (X): compute the inverse hyperbolic cosine of X for each element of X\n\ |
|
255 @end deftypefn"); |
529
|
256 |
3249
|
257 DEFUN_MAPPER (erf, 0, 0, 0, xerf, 0, 0, 0.0, 0.0, 0, |
3321
|
258 "-*- texinfo -*-\n\ |
|
259 @deftypefn {Mapping Function} {} erf (@var{z})\n\ |
|
260 Computes the error function,\n\ |
|
261 @iftex\n\ |
|
262 @tex\n\ |
|
263 $$\n\ |
|
264 {\\rm erf} (z) = {2 \\over \\sqrt{\\pi}}\\int_0^z e^{-t^2} dt\n\ |
|
265 $$\n\ |
|
266 @end tex\n\ |
|
267 @end iftex\n\ |
|
268 @ifinfo\n\ |
|
269 \n\ |
|
270 @smallexample\n\ |
|
271 z\n\ |
|
272 /\n\ |
|
273 erf (z) = (2/sqrt (pi)) | e^(-t^2) dt\n\ |
|
274 /\n\ |
|
275 t=0\n\ |
|
276 @end smallexample\n\ |
|
277 @end ifinfo\n\ |
|
278 @end deftypefn\n\ |
|
279 |
|
280 See also: erfc, erfinv"); |
624
|
281 |
3249
|
282 DEFUN_MAPPER (erfc, 0, 0, 0, xerfc, 0, 0, 0.0, 0.0, 0, |
3321
|
283 "-*- texinfo -*-\n\ |
|
284 @deftypefn {Mapping Function} {} erfc (@var{z})\n\ |
|
285 Computes the complementary error function,\n\ |
|
286 @iftex\n\ |
|
287 @tex\n\ |
|
288 $1 - {\\rm erf} (z)$.\n\ |
|
289 @end tex\n\ |
|
290 @end iftex\n\ |
|
291 @ifinfo\n\ |
|
292 @code{1 - erf (@var{z})}.\n\ |
|
293 @end ifinfo\n\ |
|
294 @end deftypefn\n\ |
|
295 \n\ |
|
296 See also: erf, erfinv"); |
624
|
297 |
3249
|
298 DEFUN_MAPPER (exp, 0, 0, 0, exp, 0, exp, 0.0, 0.0, 0, |
3321
|
299 "-*- texinfo -*-\n\ |
|
300 @deftypefn {Usage} {} exp (@var{x})\n\ |
|
301 Compute the exponential of @var{x}. To compute the matrix exponential,\n\ |
|
302 see @ref{Linear Algebra}.\n\ |
|
303 @end deftypefn"); |
529
|
304 |
3249
|
305 DEFUN_MAPPER (finite, 0, xfinite, xfinite, 0, 0, 0, 0.0, 0.0, 0, |
529
|
306 "finite (X): return 1 for finite elements of X"); |
|
307 |
3249
|
308 DEFUN_MAPPER (fix, 0, 0, 0, fix, 0, fix, 0.0, 0.0, 0, |
3321
|
309 "-*- texinfo -*-\n\ |
|
310 @deftypefn {Usage} {} fix (@var{x})\n\ |
|
311 Truncate @var{x} toward zero. If @var{x} is complex, return\n\ |
|
312 @code{fix (real (@var{x})) + fix (imag (@var{x})) * I}.\n\ |
|
313 @end deftypefn"); |
529
|
314 |
3249
|
315 DEFUN_MAPPER (floor, 0, 0, 0, floor, 0, floor, 0.0, 0.0, 0, |
3321
|
316 "-*- texinfo -*-\n\ |
|
317 @deftypefn {Usage} {} floor (@var{x})\n\ |
|
318 Return the largest integer not greater than @var{x}. If @var{x} is\n\ |
|
319 complex, return @code{floor (real (@var{x})) + floor (imag (@var{x})) * I}.\n\ |
|
320 @end deftypefn"); |
529
|
321 |
3249
|
322 DEFUN_MAPPER (gamma, 0, 0, 0, xgamma, 0, 0, 0.0, 0.0, 0, |
3321
|
323 "-*- texinfo -*-\n\ |
|
324 @deftypefn {Mapping Function} {} gamma (@var{z})\n\ |
|
325 Computes the Gamma function,\n\ |
|
326 @iftex\n\ |
|
327 @tex\n\ |
|
328 $$\n\ |
|
329 \\Gamma (z) = \\int_0^\\infty t^{z-1} e^{-t} dt.\n\ |
|
330 $$\n\ |
|
331 @end tex\n\ |
|
332 @end iftex\n\ |
|
333 @ifinfo\n\ |
|
334 \n\ |
|
335 @example\n\ |
|
336 infinity\n\ |
|
337 /\n\ |
|
338 gamma (z) = | t^(z-1) exp (-t) dt.\n\ |
|
339 /\n\ |
|
340 t=0\n\ |
|
341 @end example\n\ |
|
342 @end ifinfo\n\ |
|
343 @end deftypefn\n\ |
|
344 \n\ |
|
345 See also: gammai, lgamma"); |
624
|
346 |
3249
|
347 DEFUN_MAPPER (imag, 0, 0, 0, imag, imag, 0, 0.0, 0.0, 0, |
3321
|
348 "-*- texinfo -*-\n\ |
|
349 @deftypefn {Mapping Function} {} imag (@var{z})\n\ |
|
350 Return the imaginary part of @var{z} as a real number.\n\ |
|
351 @end deftypefn\n\ |
|
352 \n\ |
|
353 See also: real, conj"); |
2089
|
354 |
3249
|
355 DEFUN_MAPPER (isalnum, xisalnum, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
356 "isalnum (X): "); |
|
357 |
3249
|
358 DEFUN_MAPPER (isalpha, xisalpha, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
359 "isalpha (X): "); |
|
360 |
3249
|
361 DEFUN_MAPPER (isascii, xisascii, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
362 "isascii (X): "); |
|
363 |
3249
|
364 DEFUN_MAPPER (iscntrl, xiscntrl, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
365 "iscntrl (X): "); |
|
366 |
3249
|
367 DEFUN_MAPPER (isdigit, xisdigit, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
368 "isdigit (X): "); |
|
369 |
3249
|
370 DEFUN_MAPPER (isinf, 0, xisinf, xisinf, 0, 0, 0, 0.0, 0.0, 0, |
529
|
371 "isinf (X): return 1 for elements of X infinite"); |
|
372 |
3249
|
373 DEFUN_MAPPER (isgraph, xisgraph, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
374 "isgraph (X): "); |
529
|
375 |
3249
|
376 DEFUN_MAPPER (islower, xislower, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
377 "islower (X): "); |
|
378 |
3249
|
379 DEFUN_MAPPER (isnan, 0, xisnan, xisnan, 0, 0, 0, 0.0, 0.0, 0, |
529
|
380 "isnan (X): return 1 where elements of X are NaNs"); |
624
|
381 |
3249
|
382 DEFUN_MAPPER (isprint, xisprint, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
383 "isprint (X): "); |
|
384 |
3249
|
385 DEFUN_MAPPER (ispunct, xispunct, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
386 "ispunct (X): "); |
|
387 |
3249
|
388 DEFUN_MAPPER (isspace, xisspace, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
389 "isspace (X): "); |
|
390 |
3249
|
391 DEFUN_MAPPER (isupper, xisupper, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
392 "isupper (X): "); |
|
393 |
3249
|
394 DEFUN_MAPPER (isxdigit, xisxdigit, 0, 0, 0, 0, 0, 0.0, 0.0, 0, |
2089
|
395 "isxdigit (X): "); |
|
396 |
3249
|
397 DEFUN_MAPPER (lgamma, 0, 0, 0, xlgamma, 0, 0, 0.0, 0.0, 0, |
3321
|
398 "-*- texinfo -*-\n\ |
|
399 @deftypefn {Mapping Function} {} lgamma (@var{a}, @var{x})\n\ |
|
400 @deftypefnx {Mapping Function} {} gammaln (@var{a}, @var{x})\n\ |
|
401 Return the natural logarithm of the gamma function.\n\ |
|
402 @end deftypefn\n\ |
|
403 \n\ |
|
404 See also: gamma, gammai"); |
529
|
405 |
3249
|
406 DEFUN_MAPPER (log, 0, 0, 0, log, 0, log, 0.0, DBL_MAX, 1, |
3321
|
407 "-*- texinfo -*-\n\ |
|
408 @deftypefn {Mapping Function} {} log (@var{x})\n\ |
|
409 Compute the natural logarithm for each element of @var{x}. To compute the\n\ |
|
410 matrix logarithm, see @ref{Linear Algebra}.\n\ |
|
411 @end deftypefn\n\ |
|
412 \n\ |
|
413 See also: log2, log10, logspace, exp"); |
529
|
414 |
3249
|
415 DEFUN_MAPPER (log10, 0, 0, 0, log10, 0, log10, 0.0, DBL_MAX, 1, |
3321
|
416 "-*- texinfo -*-\n\ |
|
417 @deftypefn {Mapping Function} {} log10 (@var{x})\n\ |
|
418 Compute the base-10 logarithm for each element of @var{x}.\n\ |
|
419 @end deftypefn\n\ |
|
420 \n\ |
|
421 See also: log, log2, logspace, exp"); |
529
|
422 |
3249
|
423 DEFUN_MAPPER (real, 0, 0, 0, real, real, 0, 0.0, 0.0, 0, |
3321
|
424 "-*-texinfo -*-\n\ |
|
425 @deftypefn {Mapping Function} {} real (@var{z})\n\ |
|
426 Return the real part of @var{z}.\n\ |
|
427 @end deftypefn\n\ |
|
428 \n\ |
|
429 See also: imag, conj"); |
529
|
430 |
3249
|
431 DEFUN_MAPPER (round, 0, 0, 0, round, 0, round, 0.0, 0.0, 0, |
3321
|
432 "-*- texinfo -*-\n\ |
|
433 @deftypefn {Mapping Function} {} round (@var{x})\n\ |
|
434 Return the integer nearest to @var{x}. If @var{x} is complex, return\n\ |
|
435 @code{round (real (@var{x})) + round (imag (@var{x})) * I}.\n\ |
|
436 @end deftypefn\n\ |
|
437 \n\ |
|
438 See also: rem"); |
529
|
439 |
3249
|
440 DEFUN_MAPPER (sign, 0, 0, 0, signum, 0, signum, 0.0, 0.0, 0, |
3321
|
441 "-*- texinfo -*-\n\ |
|
442 @deftypefn {Mapping Function} {} sign (@var{x})\n\ |
|
443 Compute the @dfn{signum} function, which is defined as\n\ |
|
444 @iftex\n\ |
|
445 @tex\n\ |
|
446 $$\n\ |
|
447 {\\rm sign} (@var{x}) = \\cases{1,&$x>0$;\\cr 0,&$x=0$;\\cr -1,&$x<0$.\\cr}\n\ |
|
448 $$\n\ |
|
449 @end tex\n\ |
|
450 @end iftex\n\ |
|
451 @ifinfo\n\ |
|
452 \n\ |
|
453 @example\n\ |
|
454 -1, x < 0;\n\ |
|
455 sign (x) = 0, x = 0;\n\ |
|
456 1, x > 0.\n\ |
|
457 @end example\n\ |
|
458 @end ifinfo\n\ |
|
459 \n\ |
|
460 For complex arguments, @code{sign} returns @code{x ./ abs (@var{x})}.\n\ |
|
461 @end deftypefn"); |
529
|
462 |
3249
|
463 DEFUN_MAPPER (sin, 0, 0, 0, sin, 0, sin, 0.0, 0.0, 0, |
3321
|
464 "-*- texinfo -*-\n\ |
|
465 @deftypefn {Mapping Function} {} sin (@var{X})\n\ |
|
466 sin (X): compute the sin of X for each element of X\n\ |
|
467 @end deftypefn"); |
529
|
468 |
3249
|
469 DEFUN_MAPPER (sinh, 0, 0, 0, sinh, 0, sinh, 0.0, 0.0, 0, |
3321
|
470 "-*- texinfo -*-\n\ |
|
471 @deftypefn {Mapping Function} {} sinh (@var{X})\n\ |
|
472 sinh (X): compute the inverse hyperbolic sin of X for each element of X\n\ |
|
473 @end deftypefn"); |
529
|
474 |
3249
|
475 DEFUN_MAPPER (sqrt, 0, 0, 0, sqrt, 0, sqrt, 0.0, DBL_MAX, 1, |
3321
|
476 "-*- texinfo -*-\n\ |
|
477 @deftypefn {Mapping Function} {} sqrt (@var{x})\n\ |
|
478 Compute the square root of @var{x}. If @var{x} is negative, a complex\n\ |
|
479 result is returned. To compute the matrix square root, see\n\ |
|
480 @ref{Linear Algebra}.\n\ |
|
481 @end deftypefn"); |
529
|
482 |
3249
|
483 DEFUN_MAPPER (tan, 0, 0, 0, tan, 0, tan, 0.0, 0.0, 0, |
3321
|
484 "-*- texinfo -*-\n\ |
|
485 @deftypefn {Mapping Function} {} tan (@var{z})\n\ |
|
486 tan (X): compute tanget of X for each element of X\n\ |
|
487 @end deftypefn"); |
529
|
488 |
3249
|
489 DEFUN_MAPPER (tanh, 0, 0, 0, tanh, 0, tanh, 0.0, 0.0, 0, |
3321
|
490 "-*- texinfo -*-\n\ |
|
491 @deftypefn {Mapping Function} {} tanh (@var{X})\n\ |
|
492 tanh (X): compute hyperbolic tangent of X for each element of X\n\ |
|
493 @end deftypefn"); |
1562
|
494 |
3249
|
495 DEFUN_MAPPER (toascii, xtoascii, 0, 0, 0, 0, 0, 0.0, 0.0, 1, |
2267
|
496 "toascii (STRING): return ASCII representation of STRING in a matrix"); |
|
497 |
3249
|
498 DEFUN_MAPPER (tolower, xtolower, 0, 0, 0, 0, 0, 0.0, 0.0, 2, |
2267
|
499 "tolower (STRING): convert upper case characters to lower case in STRING"); |
|
500 |
3249
|
501 DEFUN_MAPPER (toupper, xtoupper, 0, 0, 0, 0, 0, 0.0, 0.0, 2, |
2267
|
502 "toupper (STRING): convert lower case characters to upper case in STRING"); |
|
503 |
1562
|
504 DEFALIAS (gammaln, lgamma); |
3206
|
505 |
|
506 DEFALIAS (isfinite, finite); |
3321
|
507 |
|
508 // Leave the previous new line, mkgendoc needs it! |
529
|
509 } |
|
510 |
1
|
511 /* |
|
512 ;;; Local Variables: *** |
|
513 ;;; mode: C++ *** |
|
514 ;;; End: *** |
|
515 */ |