Fixed 0^(0) and 0^(6-6) to return 1

Calc as defined 0^0 as 1.  However in the past, 0 raised to
an expression that evaluted to zero returned 1.  The result
was that 0^0 was different than 0^(6-6) or even 0^(0).
Now, calc will return 1 for 0^(0) and 0^zero when zero == 0.
This commit is contained in:
Landon Curt Noll
2021-02-03 01:44:17 -08:00
parent 41803b878e
commit 2c72570b8d
3 changed files with 13 additions and 3 deletions

View File

@@ -63,6 +63,11 @@ The following are the changes from calc version 2.12.7.1 to date:
and is non-empty, then calc history file will be defined
by the $CALCHISTFILE environment variable.
Calc as defined 0^0 as 1. However in the past, 0 raised to
an expression that evaluted to zero returned 1. The result
was that 0^0 was different than 0^(6-6) or even 0^(0).
Now, calc will return 1 for 0^(0) and 0^zero when zero == 0.
The following are the changes from calc version 2.12.6.10: to 2.12.7.0: