Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions BREAKING-CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,45 @@ before v3, which decides exact comparisons exactly (#1019 §10). Two decimals th
| `sqrt(5)^1000 = 5^500` | `False` | stays written |
| `sqrt(2) < sqrt(2) + 10^(-150)` | `False` | stays written |

### A value past the exponent range is not taken for 0, an infinity or NaN

**Silent: wrong answers become right ones, or stay written.** A constant expression whose value is past the decimals'
exponent range evaluates to `+oo`, or flushes to `0`. `Simplify` took those values as exact whenever a function, a
quotient or a comparison held such a part: `e^400000 / e^399999` evaluated as `+oo / +oo` and became `NaN`, and
`1 / e^400000` and `sin(e^(-400000))` became `0`. A part counts as finite when it is written with exact numbers and
constants using sums, products, quotients by parts that cannot be 0, powers, the factorial off its poles, sine,
cosine and erf. A value that rests on such a part is no longer taken from the decimals, and the rest of `Simplify`
decides it or leaves it written. An equality with such a side is not decided by the decimals either.
`(n - 1/2)!` is written out as a rational times `sqrt(pi)` only up to `2 n = 50000`. Past that it stays a factorial,
since it used to take a second or more to write out. A quotient of two factorials of rationals a whole number below
20 apart is the product of the terms that do not cancel
([#2753](https://github.com/asc-community/AngouriMath/issues/2753)).

| | Was (2.10.0) | Now |
|---|---|---|
| `"exp(400000) * exp(-399999)".Simplify()` | `NaN` | `e` |
| `"e^400000 / e^399999".Simplify()` | `NaN` | `e` |
| `"gamma(300000.5) / gamma(299999.5)".Simplify()` | `NaN` | `599999/2` |
| `"exp(-400000)".Simplify()` | `0` | `1 / e ^ 400000` |
| `"1 / (e^400000 + 1)".Simplify()` | `0` | `1 / (1 + e ^ 400000)` |
| `"exp(-250000) * 10^100000".Simplify()` | `0` | `1000…000 / e ^ 250000` |
| `"abs(e^(-400000))".Simplify()` | `0` | `1 / e ^ 400000` |
| `"sin(e^(-400000))".Simplify()` | `0` | `sin(1 / e ^ 400000)` |
| `"arcsin(e^(-400000))".Simplify()` | `0` | `arccsc(e ^ 400000)` |
| `"sin(e^400000)".Simplify()` | `NaN` | `sin(e ^ 400000)` |
| `"e^(-400000) = 0".Simplify()` | `True` | `False` |
| `"e^400000 = e^400001".Simplify()` | `True` | `e ^ 400000 = e ^ 400001` |
| `"gamma(100001/2)".Simplify()` | `+oo` | `(99999/2)!` |
| `"cos(e^(-400000))".Simplify()` | `1`, which is not its value | `cos(1 / e ^ 400000)` |
| `"floor(-e^(-400000))".Simplify()` | `0` | `-1` |
| `"ceil(e^(-400000))".Simplify()` | `0` | `1` |
| `"(-e^(-400000)) mod 1".Simplify()` | `0` | `1 - 1 / e ^ 400000` |

`floor`, `ceil`, `round` and `mod 1` of such a value are read from its sign and a bound its parts prove: a power of a
base above 1 to a negative exponent, or a bounded constant over such a power, lies strictly between -1 and 1. So
`floor(e^(-400000))` is `0` as before, but no longer because the value flushed to 0. The
sign of such a value is decided by its parts too, so `sgn(e^400000)` is `1` as before.

### A square system is answered exactly whichever order its equations are in

**Not silent: a decimal answer is now exact, and a refused system has an answer.** The eliminator took the last
Expand Down
Loading