Skip to content

Commit be009d5

Browse files
Breaking-changes entries for the integrals that say where they hold, and the spellings at risk measured again (#1671)
* Breaking-changes entries for the integrals that say where they hold Two entries for answers #1663, #1667 and #1669 changed, measured on the 2.5.0 tag and on master 94ba5ff: e^atanh(a x) beside a half-integer power of a linear, and a logarithm of e^x named as a linear, both left unevaluated in 2.5.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The spellings at risk, measured again `2 | 6` is divisibility now, which is what it says, so it leaves the section; `{ x | x > 0 }` is still a one-element set, holding a divisibility rather than a disjunction; `a != b` is still `a! = b`. And a not-equal written `<>` prints as `not a = b`, not as `<>`. Measured on 94ba5ff. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 94ba5ff commit be009d5

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,16 @@ and whatever gets decided — is
2727
[#1019](https://github.com/asc-community/AngouriMath/issues/1019). Deliberately not restated here,
2828
so that there is one list rather than two that drift apart.
2929

30-
Measured on `281e0d0c`:
30+
Measured on `94ba5ff6`:
3131

3232
| Written | Reads today as | |
3333
|---|---|---|
34-
| `2 \| 6` | `2 or 6` — a disjunction of two numbers | `\|` is an alias for `or`, and is the one spelling in the grammar that already means something *else* in mathematics: divides, "such that", "given", and the delimiter in `\|x\|` |
35-
| `{ x \| x > 0 }` | `{ x or x > 0 }` — a `FiniteSet` of **one** element, that element a disjunction | ordinary set-builder notation, read as a one-element set |
34+
| `{ x \| x > 0 }` | `{ x divides x > 0 }` — a `FiniteSet` of **one** element, that element a divisibility | ordinary set-builder notation, read as a one-element set: `\|` is divisibility now (see *`\|` is divisibility, and was disjunction* below), and on `281e0d0c` the element was the disjunction `x or x > 0` |
3635
| `a != b` | `a! = b` — the factorial of `a`, equated to `b` | `!=` is not a token, so the lexer takes `!` as the postfix factorial and `=` as equality ([#1225](https://github.com/asc-community/AngouriMath/issues/1225)) |
3736

38-
All three are well-formed, silent, and unrelated to what was written. Until they are settled, write
39-
`or` rather than `|`, `{ x : x > 0 }` for a set builder, and `<>` rather than `!=` — each of which
40-
is the primary spelling anyway and is what the library prints.
37+
Both are well-formed, silent, and unrelated to what was written. Until they are settled, write
38+
`{ x : x > 0 }` for a set builder, which is what the library prints, and `<>` rather than `!=`.
39+
A not-equal written `<>` is read as `not (a = b)`, and printed that way.
4140

4241
---
4342

@@ -993,6 +992,33 @@ answer is still declined, and a route that answers everywhere can. Rubi's 7.3.4
993992
| `"x/((1-a^2*x^2)^(3/2)*atanh(a*x)^2)".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative in `Chi`, `provided 1 - (a x)^2 > 0` |
994993
| `"x*atanh(a*x)^3/(1-a^2*x^2)^(3/2)".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative, `provided 1 - (a x)^2 > 0` |
995994

995+
### `e^atanh(a x)` beside a half-integer power of a linear is integrated where its answer holds
996+
997+
**Improvement, not silent.** `e^atanh(a x) (c - a c x)^p` for a half-integer `p` was left
998+
unevaluated. Past `a x = 1` both factors are imaginary and their product is real, and the answers
999+
the rules give have the other sign there, so each now says where it holds rather than claiming the
1000+
whole line. Rubi's 7.3.6 ([#1655](https://github.com/asc-community/AngouriMath/issues/1655),
1001+
[#1664](https://github.com/asc-community/AngouriMath/issues/1664)).
1002+
1003+
| Input | Was (2.5.0) | Now |
1004+
|---|---|---|
1005+
| `"e^atanh(a*x)*sqrt(c - a*c*x)".Integrate("x")` | `integral(...)` | `2 (c (1 + a x))^(3/2)/(3 a c) provided c - a c x >= 0`, up to the form |
1006+
| `"e^atanh(x)*sqrt(1 - x)".Integrate("x")` | `integral(...)` | `(1 + x)^(3/2)/(3/2) provided (1 + x)/(1 - x) >= 0` |
1007+
| `"e^atanh(x)/sqrt(1 - x)".Integrate("x")` | `integral(...)` | an antiderivative, `provided (1 + x)/(1 - x) >= 0` |
1008+
1009+
### A logarithm of `e^x` named as a linear is asked about where the name is zero
1010+
1011+
**Improvement, not silent.** `1/(x ln(e^x))` was left unevaluated. The integrator names `ln(e^x)`
1012+
as `x + c` and answers the generic case, which divides by `c`; on the real line `ln(e^x)` is `x`,
1013+
so `c` is zero there. The case `c = 0` is now asked as well, and is the answer's first arm. Rubi's
1014+
3.5 and 7.3.7 ([#1666](https://github.com/asc-community/AngouriMath/issues/1666)).
1015+
1016+
| Input | Was (2.5.0) | Now |
1017+
|---|---|---|
1018+
| `"1/(x*ln(e^x))".Integrate("x")` | `integral(...)` | `-1/x` where `ln(e^x) - x = 0`, the generic answer elsewhere |
1019+
| `"cot(x)/ln(e^sin(x))".Integrate("x")` | `integral(...)` | `-1/sin(x)` where `ln(e^sin(x)) - sin(x) = 0`, the generic answer elsewhere |
1020+
| `"1/atanh(tanh(a + b*x))".Integrate("x")` | no answer in 30 s | `ln(2 (a + b x))/b` where the name is zero, the generic answer elsewhere |
1021+
9961022
### A zero imaginary part is on the real axis, whatever its sign
9971023

9981024
**Silent, with the downcasting off.** A decimal's negative zero — `0E-100 * -0.43` is `-0E-102`

0 commit comments

Comments
 (0)