From a3ff070088963a06ab34588b64ebace1814fc190 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 24 Oct 2024 10:21:49 +0300 Subject: [PATCH 1/4] deprecated.xml Explain rising to the power of a negative number --- appendices/migration84/deprecated.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appendices/migration84/deprecated.xml b/appendices/migration84/deprecated.xml index b814148a037c..f03a02768aac 100644 --- a/appendices/migration84/deprecated.xml +++ b/appendices/migration84/deprecated.xml @@ -84,8 +84,10 @@ function foo(T1 $a, ?T2 $b, T3 $c) {} Raising a number to the power of a negative number is equivalent to taking the reciprocal of the number raised to the positive opposite of the power. + That is, 10 ^ -2 is the same as 1 / (10 ^ 2). Therefore raising 0 to the power of a negative number - corresponds to dividing by 0. + corresponds to dividing by 0, i.e. 0 ^ -2 is + the same as 1 / (0 ^ 2), or 1 / 0. Thus, this behaviour has been deprecated. From 2de32f079faaca2e2d207c219be9838a0d4fa021 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Thu, 24 Oct 2024 10:25:19 +0300 Subject: [PATCH 2/4] Update deprecated.xml Amend XML syntax errors --- appendices/migration84/deprecated.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appendices/migration84/deprecated.xml b/appendices/migration84/deprecated.xml index f03a02768aac..946bc3abbdd9 100644 --- a/appendices/migration84/deprecated.xml +++ b/appendices/migration84/deprecated.xml @@ -84,10 +84,10 @@ function foo(T1 $a, ?T2 $b, T3 $c) {} Raising a number to the power of a negative number is equivalent to taking the reciprocal of the number raised to the positive opposite of the power. - That is, 10 ^ -2 is the same as 1 / (10 ^ 2). + That is, 10 ^ -2 is the same as 1 / (10 ^ 2). Therefore raising 0 to the power of a negative number corresponds to dividing by 0, i.e. 0 ^ -2 is - the same as 1 / (0 ^ 2), or 1 / 0. + the same as 1 / (0 ^ 2), or 1 / 0. Thus, this behaviour has been deprecated. From 726e85c9c50539b4b477b26ab3b1a5950e995230 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Wed, 30 Oct 2024 01:33:41 +0300 Subject: [PATCH 3/4] deprecated.xml Use the `superscript` for the exponent --- appendices/migration84/deprecated.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/appendices/migration84/deprecated.xml b/appendices/migration84/deprecated.xml index 946bc3abbdd9..d73589a7b197 100644 --- a/appendices/migration84/deprecated.xml +++ b/appendices/migration84/deprecated.xml @@ -84,11 +84,13 @@ function foo(T1 $a, ?T2 $b, T3 $c) {} Raising a number to the power of a negative number is equivalent to taking the reciprocal of the number raised to the positive opposite of the power. - That is, 10 ^ -2 is the same as 1 / (10 ^ 2). + That is, 10-2 is the same as + 1 / (102). Therefore raising 0 to the power of a negative number - corresponds to dividing by 0, i.e. 0 ^ -2 is - the same as 1 / (0 ^ 2), or 1 / 0. - Thus, this behaviour has been deprecated. + corresponds to dividing by 0, i.e. + 0-2 is the same as + 1 / (02), or + 1 / 0. Thus, this behaviour has been deprecated. From 32e04c6080c5f00506b1d5126cf5fe5a00311232 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Wed, 6 Nov 2024 16:51:19 +0300 Subject: [PATCH 4/4] Update appendices/migration84/deprecated.xml Co-authored-by: Christoph M. Becker --- appendices/migration84/deprecated.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appendices/migration84/deprecated.xml b/appendices/migration84/deprecated.xml index d73589a7b197..88bf301bc67f 100644 --- a/appendices/migration84/deprecated.xml +++ b/appendices/migration84/deprecated.xml @@ -90,7 +90,7 @@ function foo(T1 $a, ?T2 $b, T3 $c) {} corresponds to dividing by 0, i.e. 0-2 is the same as 1 / (02), or - 1 / 0. Thus, this behaviour has been deprecated. + 1 / 0. Thus, this behavior has been deprecated.