You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 65e7b65
Browse filesBrowse the repository at this point in the historyBrowse files
A zero imaginary part is on the real axis, whatever its sign
A decimal's negative zero -- 0E-100 * -0.43 is -0E-102 -- is an artefact of the exponent
arithmetic and not a limit from below, but the phase read -pi off its sign the way
Math.Atan2 does. With the downcasting off Complex.Create keeps -1.54 - 0i a Complex, and
a power went through the polar form a hair below the negative axis: (-1.54)^(-1/2) was
+0.80 i with the setting off and -0.80 i with it on. The setting decided a branch, and the
numerical checks in the harnesses, which turn the downcasting off, called a right
antiderivative wrong on the strength of it (Rubi 7.4.2, e^acoth(a x) sqrt(c - c/(a x))/x^2).
Now a number on the negative axis has argument pi for either zero (EDecimal.Sign is 0 for
both), the square root reads its sign from a strictly negative imaginary part, and a
complex base or power with an exactly zero imaginary part takes the real paths of Pow,
where the half-power arithmetic is exact rather than a cosine of pi/2 at a hundred
digits. Nothing changes with the downcasting on.
#1378
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -575,6 +575,25 @@ was ([#718](https://github.com/asc-community/AngouriMath/issues/718)).
575
575
|`"x * sqrt(c - a*c*x) / e^(3 * atanh(a*x))".Integrate("x")`|`integral(…)` — left unevaluated, with `e` evaluated to a hundred digits inside it | an antiderivative in `sqrt(c - a c x)`, `provided c - a * c * x >= 0`|
576
576
|`"1/sqrt(x + x^(3/2))".Integrate("x")`|`integral(1 / sqrt(x + x ^ (3/2)), x)` — left unevaluated |`2 * sqrt(1 + sqrt(x)) / (1/2) + C provided x >= 0`|
577
577
578
+
### A zero imaginary part is on the real axis, whatever its sign
579
+
580
+
**Silent, with the downcasting off.** A decimal's negative zero — `0E-100 * -0.43` is `-0E-102`
581
+
— is an artefact of the exponent arithmetic and not a limit from below, but the phase read
582
+
`-pi` off its sign the way `Math.Atan2` does, and with `DowncastingEnabled` off, where
583
+
`Complex.Create` keeps `-1.54 - 0i` a `Complex`, a power went through the polar form on the
584
+
wrong side of the negative axis: `(-1.54)^(-1/2)` was `+0.80 i` with the setting off and
585
+
`-0.80 i` with it on. The setting decided a branch, and a numerical check that turns it off
586
+
called a right antiderivative wrong. Now a number on the negative axis has argument `pi` for
587
+
either zero, a complex with an exactly zero imaginary part takes the real paths of `Pow`, and
588
+
the square root's sign is read from a strictly negative imaginary part
589
+
([#1378](https://github.com/asc-community/AngouriMath/issues/1378)). Nothing changes with
590
+
the downcasting on.
591
+
592
+
| Input, under `MathS.Settings.DowncastingEnabled.As(false, …)`| Was (2.5.0) | Now |
593
+
|---|---|---|
594
+
|`"(2*1.44*(1/sqrt(-5.286))^2-1)^(-1/2)".ToEntity().Evaled`|`5.5500952471953097…`|`-0.804560841963042…i`, as with the downcasting on |
595
+
|`"((1/sqrt(-5.286))*(2*1.44*(1/sqrt(-5.286))^2-1)^(-1/2))^(-3)".ToEntity().Evaled`|`23.335336258472899…`|`-23.335336258472899…`, as with the downcasting on |
596
+
578
597
### `binomial(n, k)` is a function
579
598
580
599
**Addition, not silent.** The binomial coefficient is a node, `Entity.Binomialf`, spelled
0 commit comments