changeset 29971:2af7339fa6d1

maint: Merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 16 Aug 2021 14:58:26 +0200
parents 7a4f16bff8fd (current diff) 106aa8480569 (diff)
children febddcd0f227
files libinterp/corefcn/mappers.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/mappers.cc	Sun Aug 15 16:57:52 2021 -0400
+++ b/libinterp/corefcn/mappers.cc	Mon Aug 16 14:58:26 2021 +0200
@@ -476,10 +476,12 @@
 DEFUN (cbrt, args, ,
        doc: /* -*- texinfo -*-
 @deftypefn {} {} cbrt (@var{x})
-Compute the real cube root of each element of @var{x}.
+Compute the real-valued cube root of each element of @var{x}.
 
 Unlike @code{@var{x}^(1/3)}, the result will be negative if @var{x} is
 negative.
+
+If any element of @var{x} is complex, @code{cbrt} aborts with an error.
 @seealso{nthroot}
 @end deftypefn */)
 {