Skip to content

Commit f20fa04

Browse files
mmalferovcmb69
andauthored
deprecated.xml: Explain rising to the power of a negative number (GH-3913)
Co-authored-by: Christoph M. Becker <[email protected]>
1 parent 5c58d39 commit f20fa04

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

appendices/migration84/deprecated.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,13 @@ function foo(T1 $a, ?T2 $b, T3 $c) {}
8484
<simpara>
8585
Raising a number to the power of a negative number is equivalent to taking
8686
the reciprocal of the number raised to the positive opposite of the power.
87+
That is, <literal>10<superscript>-2</superscript></literal> is the same as
88+
<literal>1 / (10<superscript>2</superscript>)</literal>.
8789
Therefore raising <literal>0</literal> to the power of a negative number
88-
corresponds to dividing by <literal>0</literal>.
89-
Thus, this behaviour has been deprecated.
90+
corresponds to dividing by <literal>0</literal>, i.e.
91+
<literal>0<superscript>-2</superscript></literal> is the same as
92+
<literal>1 / (0<superscript>2</superscript>)</literal>, or
93+
<literal>1 / 0</literal>. Thus, this behavior has been deprecated.
9094
</simpara>
9195

9296
<simpara>

0 commit comments

Comments
 (0)