diff --git a/live/AmLive.csproj b/live/AmLive.csproj
index cb8e9294e4..906ba48932 100644
--- a/live/AmLive.csproj
+++ b/live/AmLive.csproj
@@ -10,7 +10,7 @@
Install for F#
dotnet add package AngouriMath.FSharp
- The current release is 2.9.0, and every 2.x release changes answers that earlier versions
+ The current release is 2.10.0, and every 2.x release changes answers that earlier versions
got wrong. Whichever version you are coming from, read
- BREAKING-CHANGES.md
+ BREAKING-CHANGES.md
first: it lists every input whose result is now different, with the old value and the new one,
- under a heading per release. 2.9.0 is not a drop-in replacement for 2.8.0: small values are kept
- rather than read as 0, two constants are equal only when their difference is zero, and an equation
- in a factorial is answered as a union, so read the list of what to read first under
- 2.9.0 — since 2.8.0 before upgrading. The assembly version is pinned at
+ under a heading per release. 2.10.0 is not a drop-in replacement for 2.9.0: Matrix.Trace
+ is null for a matrix that is not square, a matrix operation beside a written matrix is no
+ longer read as a number, and more polynomials in several variables are factored, so read the list of
+ what to read first under 2.10.0 — since 2.9.0 before upgrading. The assembly version is pinned at
2.0.0.0 for the whole of 2.x.
diff --git a/src/content/whatsnew/index.html b/src/content/whatsnew/index.html index e15660e2c6..bc65fe5015 100644 --- a/src/content/whatsnew/index.html +++ b/src/content/whatsnew/index.html @@ -34,7 +34,59 @@
+ A release about matrices next to names, and answers that come back. Most of what it fixes was found by
+ writing the code a user writes: compiling dot(x * [1, 2], [3, 4]) for a plot, inverting
+ [[a, b], [c, d]] and putting numbers in, taking tanh of a large argument. A name
+ beside a written matrix was read as a number where it could be a matrix, and refused where it could not;
+ a symbolic inverse had no value where an elimination pivot was 0, though the inverse exists there; and
+ tanh(10^8) did not return. Factoring also reaches further in several variables: a polynomial
+ in three or more variables, a repeated factor in more than one, and the square-free part of a larger
+ polynomial.
+
+ Each line below was answered differently by 2.9.0. The factorisation was null; the inverse
+ at a = 0, b = 1, c = 1, d = 0 was NaN; the compilation was refused;
+ tanh(10^8) did not return; the root was -p * V / (-n * R); and the message said
+ only that no variable could be parsed from v0:
+
using AngouriMath.Extensions;
+
+Console.WriteLine(MathS.Polynomials.Factor("x ^ 3 - (y + z) ^ 3", "x"));
+var inverse = "[[a, b], [c, d]] ^ (-1)".ToEntity().Simplify();
+Console.WriteLine(inverse.Substitute("a", 0).Substitute("b", 1).Substitute("c", 1).Substitute("d", 0).Evaled);
+Console.WriteLine("dot(x * [1, 2], [3, 4])".Compile("x").Call(2).Real);
+Console.WriteLine("tanh(10^8)".ToEntity().Evaled);
+Console.WriteLine("p V = n R T".ToEntity().Solve("T"));
+try { Entity.Variable v = "v0"; }
+catch (Exception e) { Console.WriteLine(e.Message); }
+Prints:
+(x - y - z) * (x ^ 2 + x * y + x * z + y ^ 2 + 2 * y * z + z ^ 2)
+[[0, 1], [1, 0]]
+22
+1
+{ p * V / (n * R) }
+Cannot parse an instance of Variable from `v0`: it parses as `v ^ 0`: a digit written against a name is its power, and `v_0` is the variable with that index
+
+ Every input whose result is now different is listed, with both values and why, in
+ BREAKING-CHANGES.md
+ under 2.10.0 — since 2.9.0. Read that before upgrading.
+ It holds 13 entries. The ones to read first: Matrix.Trace is Entity?,
+ null for a matrix that is not square; a singular matrix to a negative power throws
+ InvalidMatrixOperationException, where it threw GenericTensor's
+ InvalidDeterminantException; and, silently, a transpose beside a written matrix is left as
+ written where it was read as a number, a constant beside a compiled matrix of whole numbers is not
+ truncated, and a solved root is printed with one sign where it had two.
+ Assembly version stays 2.0.0.0, and the one change to the public surface is the nullable
+ annotation on Matrix.Trace, so code that compiled against 2.9.0 still compiles; but answers
+ change, so this is not a drop-in replacement for 2.9.0.
+ The full notes are on the 2.10.0 release.
+
A release about answers that hold at every scale. A value below about 1e-50 read as
0 in most of the special functions, the trigonometric functions of a non-real number, the