@@ -42,6 +42,21 @@ A not-equal written `<>` is read as `not (a = b)`, and printed that way.
4242
4343## Unreleased — since 2.6.0
4444
45+ ### A limit at the jump of a step function is not answered by substitution
46+
47+ **Silent: a limit of an expression built on `floor`, `ceil`, `round` or `sgn`, where the step's argument arrives on one
48+ of its jumps, is left unevaluated, where it was answered by substituting the destination.** That value is the limit only
49+ where the expression is continuous, and at a jump the value differs on the two sides. `floor(x) - 1` is -2 all the way in
50+ from the left of 0, but substitution answered -1, and it answered the two-sided limit, which does not exist, with -1 too.
51+ A bare `floor(x)` or `sgn(x)` was already declined there. Away from a jump, nothing changes
52+ ([#2266](https://github.com/asc-community/AngouriMath/issues/2266)).
53+
54+ | Input | Was (2.6.0) | Now |
55+ |---|---|---|
56+ | `"limitleft(floor(x) - 1, x, 0)".ToEntity().Simplify()` | `-1` | `limitleft(floor(x) - 1, x, 0)` |
57+ | `"limit(floor(x) + x, x, 1)".ToEntity().Simplify()` | `2` | `limit(floor(x) + x, x, 1)` |
58+ | `"limitleft(-sgn(x), x, 0)".ToEntity().Simplify()` | `0` | `limitleft(-sgn(x), x, 0)` |
59+
4560### An equation through a negative whole power is not answered with no roots
4661
4762**Silent: an empty answer becomes the roots.** Inverting `x^n = v` for a negative whole `n` multiplied by the roots
@@ -207,6 +222,18 @@ and `Simplify` passed that on as `not x = 0`, though at `x = 0` the input is `-y
207222| `"sgn(NaN)".ToEntity().Evaled` | `1` | `NaN` |
208223| `"sgn(-1 provided false)".ToEntity().Evaled` | `1` | `NaN` |
209224
225+ ### A negation of a signed term is printed in brackets
226+
227+ **Silent: `-(-2/3)` prints as `-(-2/3)`, where it printed as `--2/3`.** A negation prints as a bare `-` in front of what
228+ it negates, and a negative integer was bracketed by its priority, but a negative rational, a negation, and `+oo` were
229+ not. `--5/4` reads back as `-(-5) / 4`, which has the same value as a different expression, and is easy to misread
230+ ([#2264](https://github.com/asc-community/AngouriMath/issues/2264)).
231+
232+ | Input | Was (2.6.0) | Now |
233+ |---|---|---|
234+ | `"sinh(-5/4)".ToEntity().ToString()` | `(e ^ (-5/4) - e ^ (--5/4)) / 2` | `(e ^ (-5/4) - e ^ (-(-5/4))) / 2` |
235+ | `new Entity.Mulf(-1, new Entity.Mulf(-1, x)).ToString()` | `--x` | `-(-x)` |
236+
210237### A matrix is divided, raised to a power and compared as a matrix
211238
212239**Silent: wrong answers about matrices become right, or stay written.** Where an operation had no answer of its own
@@ -239,6 +266,18 @@ except where shown.
239266| `([[1, 2], [2, 4]] ^ (-1)).Evaled` | throws `InvalidDeterminantException` | `[[1, 2], [2, 4]] ^ (-1)` |
240267| `([[1, 2], [2, 4]] ^ (-1)).Simplify()` | throws `InvalidDeterminantException` | `1 / [[1, 2], [2, 4]]` |
241268
269+ ### A 1x1 matrix has a rank and row echelon forms
270+
271+ **Not silent: what threw now answers.** For a 1x1 matrix, `Rank`, `RowEchelonForm` and `ReducedRowEchelonForm` threw
272+ `InvalidCastException`, and so did `MathS.Matrices.PointwiseMultiplication` of two 1x1 matrices. A 1x1 matrix simplifies
273+ to its entry, and these cast the simplified matrix back where the product already wrapped it
274+ ([#2269](https://github.com/asc-community/AngouriMath/issues/2269)).
275+
276+ | Input | Was (2.6.0) | Now |
277+ |---|---|---|
278+ | `MathS.Matrix(new Entity[,] { { 2 } }).Rank` | throws `InvalidCastException` | `1` |
279+ | `MathS.Matrix(new Entity[,] { { 2 } }).ReducedRowEchelonForm` | throws `InvalidCastException` | `[1]` |
280+
242281### A sum of fractions that is a constant over one denominator simplifies to it
243282
244283**Silent: an identity in fractions reaches its value, and conditions are written shorter.** `Simplify` gathered
@@ -657,6 +696,20 @@ reals, to `1` and `0` ([#2195](https://github.com/asc-community/AngouriMath/issu
657696| `"arg(x)".ToEntity().Compile("x").Call(-2)` | throws `UncompilableNodeException`, `arg` being a variable | `pi` |
658697| `"conj(x)".ToEntity().Compile<Complex, Complex>("x")(3 + 4i)` | throws `UncompilableNodeException`, `conj` being a variable | `3 - 4i` |
659698
699+ ### A logarithm to base 0 has no value
700+
701+ **Silent: `log(0, x)` is `NaN`, where it was `0` for a positive `x`.** Evaluation and both compilers took it as
702+ `ln(x) / ln(0)`, which is `ln(x) / (-oo)`, and came out with 0. But 0 is not a base, since no power of it is anything
703+ but 0, and `log`'s own condition already excluded it. A base that is small but not 0 keeps its logarithm.
704+ `log(b, 1)`, simplified to 0 for every base but 1, now excludes the base 0 as well
705+ ([#2255](https://github.com/asc-community/AngouriMath/issues/2255)).
706+
707+ | Input | Was (2.6.0) | Now |
708+ |---|---|---|
709+ | `"log(0, 2)".ToEntity().Evaled` | `0` | `NaN` |
710+ | `"log(x, 2)".ToEntity().Compile("x").Call(0)` | `(-0, -0)` | `(NaN, 0)` |
711+ | `"log(x, 1)".ToEntity().Simplify()` | `0 provided not x = 1` | `0 provided not x = 0 and not x = 1` |
712+
660713### `re` and `im` are the real and the imaginary part
661714
662715**Not silent: `re(…)` and `im(…)`, and `real(…)` and `imag(…)`, are now the real and the imaginary part, where they were
@@ -671,6 +724,19 @@ Both are real, `im(3 + 4i)` being `4`, real-linear, and turned by the conjugate
671724| `"im(3 + 4i)".ToEntity().Simplify()` | `(3 + 4i) * im` | `4` |
672725| `"re * x".ToEntity()` | `re * x` | `re * x` |
673726
727+ ### The factorial and the gamma function are defined off the real line
728+
729+ **Silent: the condition a simplified factorial carries is `x in ZZ implies x >= 0`, where it was `x in RR and (x >= 0
730+ or not x in ZZ)`.** A factorial, and the gamma function with it, has poles at the negative integers and nowhere else.
731+ Its condition also asked for a real argument, though `i!` is `0.498 - 0.155i`. So `x!/x!` simplified to an answer with
732+ no value at `i`, where it is 1 ([#2256](https://github.com/asc-community/AngouriMath/issues/2256)).
733+
734+ | Input | Was (2.6.0) | Now |
735+ |---|---|---|
736+ | `"x!/x!".ToEntity().Simplify()` | `1 provided x in RR and (x >= 0 or not x in ZZ)` | `1 provided x in ZZ implies x >= 0` |
737+ | `"x! = 0".ToEntity().Simplify()` | `False provided x in RR and (x >= 0 or not x in ZZ)` | `False provided x in ZZ implies x >= 0` |
738+ | `"x!".ToEntity().DomainCondition` | `x in RR and (x >= 0 or not x in ZZ)` | `x in ZZ implies x >= 0` |
739+
674740### A number's conjugate is made under the setting in force
675741
676742**Silent: `Complex.Conjugate` is made under the downcasting setting of the caller, where the first caller's setting was
@@ -681,6 +747,18 @@ conjugate as `0 - 1i`, in decimals, on the one instance that every `i` is, in ev
681747|---|---|---|
682748| `Complex.ImaginaryOne.Conjugate`, after `(1 / Complex.ImaginaryOne).Evaled` with `DowncastingEnabled` off | `0 - 1i` | `-i` |
683749
750+ ### `max` and `min` are defined where their arguments are real
751+
752+ **Silent: `max(x, x)` and `min(x, x)` simplify to `x provided x in RR`, where they were `x`.** The complex numbers are
753+ not ordered, and both nodes are read over the reals, so `max(i, i)` has no value. Their condition said they were
754+ defined everywhere, and `max(x, x)` simplified to `x`, which has a value at `i`. A comparison of two real arguments is
755+ unchanged ([#2256](https://github.com/asc-community/AngouriMath/issues/2256)).
756+
757+ | Input | Was (2.6.0) | Now |
758+ |---|---|---|
759+ | `"max(x, x)".ToEntity().Simplify()` | `x` | `x provided x in RR` |
760+ | `"max(x, 2)".ToEntity().DomainCondition` | `True` | `x in RR` |
761+
684762### `conjugate`, `conj` and `arg` are functions
685763
686764**Not silent: these names followed by a bracket are now the complex conjugate and the principal argument, where they
@@ -714,6 +792,17 @@ real roots, so those are now the kinks, and each piece is solved exactly
714792| `"x^2/abs(1-x^2) = x".Solve("x")` | `{ 0, 0.618…, 1.618…, 1.618… + 1.7E-9i, … }` | `{ 0, (-1 + sqrt(5)) / 2, (1 + sqrt(5)) / 2 }` |
715793| `"abs(x^2 - 4) = 3*x".Solve("x")` | `{ 1, 4, 4.0000000000000062… + 1.6E-7i }` | `{ 1, 4 }` |
716794
795+ ### A piecewise's condition under a reading asks only the case it takes
796+
797+ **Silent: `DomainConditionIn` of a `piecewise` is where the case it takes is defined, as `DomainCondition` already
798+ reads it (#1817), where it asked every case to be defined.** `piecewise(sqrt(x) provided x > 0, 1)` is 1 at `-4`, and its
799+ condition over the reals failed there. The library asks for this condition under the ambient reading, so the change
800+ reaches whatever consults it there ([#2256](https://github.com/asc-community/AngouriMath/issues/2256)).
801+
802+ | Input | Was (2.6.0) | Now |
803+ |---|---|---|
804+ | `"piecewise(sqrt(x) provided x > 0, 1)".ToEntity().DomainConditionIn(Domain.Real)` | `x >= 0 and x in RR` | `x > 0 and x >= 0 or not x > 0 or not x in RR` |
805+
717806### A system with more or fewer equations than unknowns is solved or declined
718807
719808**Not silent: what was an exception is an answer or `null`.** `EquationSystem.Solve` threw
0 commit comments