diff doc/interpreter/expr.txi @ 30326:2ba4758654ca

deprecate ** and .** operators (bug #60882) * lex.h, lex.ll (base_lexer::warn_deprecated_operator): New function. (CMD_OR_DEPRECATED_OP): New macro. (".**", "**"): Use it. * basics.txi, expr.txi, vectorize.txi: Eliminate descriptions of the '**' and '.**' operators from the manual.
author John W. Eaton <jwe@octave.org>
date Mon, 22 Nov 2021 16:22:54 -0500
parents bb0ca2753bc2
children 256fad4ac653
line wrap: on
line diff
--- a/doc/interpreter/expr.txi	Mon Nov 22 15:41:42 2021 -0500
+++ b/doc/interpreter/expr.txi	Mon Nov 22 16:22:54 2021 -0500
@@ -747,8 +747,6 @@
 by each corresponding element of @var{x}.
 
 @item  @var{x} ^ @var{y}
-@itemx @var{x} ** @var{y}
-@opindex **
 @opindex ^
 Power operator.  If @var{x} and @var{y} are both scalars, this operator
 returns @var{x} raised to the power @var{y}.  If @var{x} is a scalar and
@@ -761,8 +759,6 @@
 The implementation of this operator needs to be improved.
 
 @item  @var{x} .^ @var{y}
-@itemx @var{x} .** @var{y}
-@opindex .**
 @opindex .^
 Element-by-element power operator.  If both operands are matrices, the
 number of rows and columns must both agree, or they must be
@@ -836,7 +832,6 @@
 @opindex \
 @DOCSTRING(mldivide)
 
-@opindex **
 @opindex ^
 @DOCSTRING(mpower)
 
@@ -849,7 +844,6 @@
 @opindex +
 @DOCSTRING(plus)
 
-@opindex .**
 @opindex .^
 @DOCSTRING(power)
 
@@ -1535,7 +1529,7 @@
 These operators group right to left.
 
 @item transpose and exponentiation
-@samp{'} @samp{.'} @samp{^} @samp{**} @samp{.^} @samp{.**}
+@samp{'} @samp{.'} @samp{^} @samp{.^}
 
 @item unary plus, unary minus, prefix increment, prefix decrement, and logical "not"
 @samp{+} @samp{-} @samp{++}  @samp{--} @samp{~} @samp{!}