diff doc/interpreter/arith.texi @ 2538:6f71af650490

[project @ 1996-11-19 21:41:48 by jwe]
author jwe
date Tue, 19 Nov 1996 21:44:36 +0000
parents 7ee42ff6536a
children 80a42c3fefc9
line wrap: on
line diff
--- a/doc/interpreter/arith.texi
+++ b/doc/interpreter/arith.texi
@@ -115,14 +115,46 @@
 see @ref{Linear Algebra}.
 @end deftypefn
 
-@deftypefn {Mapping Function} {} log2 (@var{x})
-Compute the base-2 logarithm of @var{x}.
+@deftypefn {Mapping Function} {@var{y} =} log2 (@var{x})
+@deftypefnx {Mapping Function} {[@var{f}, @var{e}]} log2 (@var{x})
+Compute the base-2 logarithm of @var{x}.  With two outputs, returns
+@var{f} and @var{e} such that
+@iftex
+@tex
+ $1/2 <= |f| < 1$ and $x = f * 2^e$.
+@end tex
+@end iftex
+@ifinfo
+ 1/2 <= abs(f) < 1 and x = f * 2^e.
+@end ifinfo
 @end deftypefn
 
 @deftypefn {Mapping Function} {} log10 (@var{x})
 Compute the base-10 logarithm of @var{x}.
 @end deftypefn
 
+@deftypefn {Mapping Function} {} pow2 (@var{x})
+@deftypefnx {Mapping Function} {} pow2 (@var{f}, @var{e})
+With one argument, computes
+@iftex
+@tex
+ $2^x$
+@end tex
+@end iftex
+@ifinfo
+ 2 .^ x
+@end ifinfo
+for each element of @var{x}.  With two arguments, returns
+@iftex
+@tex
+ $f 2^e$.
+@end tex
+@end iftex
+@ifinfo
+ f .* (2 .^ e).
+@end ifinfo
+@end deftypefn
+
 @deftypefn {Mapping Function} {} sqrt (@var{x})
 Compute the square root of @var{x}.  To compute the matrix square root,
 see @ref{Linear Algebra}.
@@ -159,6 +191,13 @@
 agree, or if either of the arguments is complex.
 @end deftypefn
 
+@deftypefn {Mapping Function} {} xor (@var{x}, @var{y})
+Return the `exclusive or' of the entries of @var{x} and @var{y}.
+For boolean expressions @var{x} and @var{y},
+@code{xor (@var{x}, @var{y})} is true if and only if either @var{x} or
+@var{y} is true.
+@end deftypefn
+
 @node Complex Arithmetic, Trigonometry, Utility Functions, Arithmetic
 @section Complex Arithmetic
 
@@ -344,6 +383,10 @@
 compatible dimensions.
 @end deftypefn
 
+@deftypefn {Mapping Function} {} bincoeff (@var{n}, @var{k})
+Returns the binomial coefficient of @var{n} and @var{k}.
+@end deftypefn
+
 @deftypefn {Mapping Function} {} erf (@var{z})
 Computes the error function,
 @iftex
@@ -369,10 +412,9 @@
 Computes the complementary error function, @code{1 - erf (@var{z})}.
 @end deftypefn
 
-@c XXX FIXME XXX -- this isn't actually distributed with Octave yet.
-@c
-@c @item erfinv
-@c Computes the inverse of the error function.
+@deftypefn {Mapping Function} {} erfinv (@var{z})
+Computes the inverse of the error function.
+@end deftypefn
 
 @deftypefn {Mapping Function} {} gamma (@var{z})
 Computes the Gamma function,