# HG changeset patch # User Rik # Date 1295042715 28800 # Node ID 34bb8d38f19f01ab446f90e76e4f0bc57762aeb5 # Parent f976dd63129c328706af83d542d2cf74b76de65f Add undocumented function cbrt to documentation. diff -r f976dd63129c -r 34bb8d38f19f doc/ChangeLog --- a/doc/ChangeLog Fri Jan 14 15:54:30 2011 -0500 +++ b/doc/ChangeLog Fri Jan 14 14:05:15 2011 -0800 @@ -1,3 +1,7 @@ +2011-01-14 Rik + + * interpreter/arith.txi: Add undocumented cbrt to documentation. + 2011-01-14 Rik * interpreter/arith.txi: Add undocumented erfcx to documentation. diff -r f976dd63129c -r 34bb8d38f19f doc/interpreter/arith.txi --- a/doc/interpreter/arith.txi Fri Jan 14 15:54:30 2011 -0500 +++ b/doc/interpreter/arith.txi Fri Jan 14 14:05:15 2011 -0800 @@ -52,25 +52,27 @@ @DOCSTRING(log) +@DOCSTRING(reallog) + @DOCSTRING(log1p) @DOCSTRING(log10) @DOCSTRING(log2) -@DOCSTRING(nextpow2) - -@DOCSTRING(nthroot) - @DOCSTRING(pow2) -@DOCSTRING(reallog) +@DOCSTRING(nextpow2) @DOCSTRING(realpow) +@DOCSTRING(sqrt) + @DOCSTRING(realsqrt) -@DOCSTRING(sqrt) +@DOCSTRING(cbrt) + +@DOCSTRING(nthroot) @node Complex Arithmetic @section Complex Arithmetic diff -r f976dd63129c -r 34bb8d38f19f scripts/ChangeLog --- a/scripts/ChangeLog Fri Jan 14 15:54:30 2011 -0500 +++ b/scripts/ChangeLog Fri Jan 14 14:05:15 2011 -0800 @@ -1,3 +1,7 @@ +2011-01-14 Rik + + * specfun/nthroot.m: Add Seealso references to docstring. + 2011-01-14 Rik * miscellaneous/module.mk: Remove texas_lotto.m from build system. diff -r f976dd63129c -r 34bb8d38f19f scripts/specfun/nthroot.m --- a/scripts/specfun/nthroot.m Fri Jan 14 15:54:30 2011 -0500 +++ b/scripts/specfun/nthroot.m Fri Jan 14 14:05:15 2011 -0800 @@ -37,7 +37,7 @@ ## ## @var{n} must be a scalar. If @var{n} is not an even integer and @var{X} has ## negative entries, an error is produced. -## +## @seealso{realsqrt, sqrt, cbrt} ## @end deftypefn function y = nthroot (x, n) diff -r f976dd63129c -r 34bb8d38f19f src/ChangeLog --- a/src/ChangeLog Fri Jan 14 15:54:30 2011 -0500 +++ b/src/ChangeLog Fri Jan 14 14:05:15 2011 -0800 @@ -1,3 +1,8 @@ +2011-01-14 Rik + + * src/mappers.cc: Add Seealso links between sqrt, cbrt, nthroot + functions. + 2011-01-14 John W. Eaton * dirfns.cc (Ffnmatch): Use DEFUNX until gnulib's fnmatch is C++ diff -r f976dd63129c -r 34bb8d38f19f src/mappers.cc --- a/src/mappers.cc Fri Jan 14 15:54:30 2011 -0500 +++ b/src/mappers.cc Fri Jan 14 14:05:15 2011 -0800 @@ -354,8 +354,10 @@ DEFUN (cbrt, args, , "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} cbrt (@var{x})\n\ -Return the real cube root of @var{x}. Unlike @code{@var{x}^(1/3)},\n\ -the result will be negative if @var{x} is negative.\n\ +Compute the real cube root of each element of @var{x}.\n\ +Unlike @code{@var{x}^(1/3)}, the result will be negative if @var{x} is\n\ +negative.\n\ +@seealso{nthroot}\n\ @end deftypefn") { octave_value retval; @@ -1652,7 +1654,7 @@ Compute the square root of each element of @var{x}. If @var{x} is negative,\n\ a complex result is returned. To compute the matrix square root, see\n\ @ref{Linear Algebra}.\n\ -@seealso{realsqrt}\n\ +@seealso{realsqrt, nthroot}\n\ @end deftypefn") { octave_value retval;