From 66b868d604c159b93a12671529c7ae69c701bdfb Mon Sep 17 00:00:00 2001
From: Rafael Vuijk Install for F#
dotnet add package AngouriMath.FSharp
- The current release is 2.8.0, and every 2.x release changes answers that earlier versions
+ The current release is 2.9.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.8.0 is not a drop-in replacement for 2.7.0: a solver's answer can now
- be an indexed union, and some names read differently, so read the list of what to read first under
- 2.8.0 — since 2.7.0 before upgrading. The assembly version is pinned at
+ 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
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 73ee1eb978..e15660e2c6 100644 --- a/src/content/whatsnew/index.html +++ b/src/content/whatsnew/index.html @@ -34,7 +34,66 @@
+ 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
+ modulus of a decimal and a decimal literal. Two constants were equal when they differed by less than
+ 1e-16. And the solvers judged a root, a residual or a coefficient against a fixed
+ 1e-16 or 1e-7 rather than against the equation's own size. Each of these is now
+ decided by the size of what it is about. The solver also answers more equations exactly: an exponential
+ equal to a line, by the Lambert W function; a sum of arctangents; an equation between two inverse
+ trigonometric functions; a polynomial with non-real coefficients; and an equation in a factorial, by its
+ whole roots and the equation for the rest.
+
+ Each line below was answered differently by 2.8.0. Multiplying sin(x) = x by
+ 10^12 left it one root, 0, where it has nine; x^2 - 10^(-8) x = 0
+ lost its root 10^(-8); sinh(10^(-60)) was 0; two different small
+ constants were equal; x + x! = x^3 was thirteen decimals, short of a real root; and
+ e^x = x + 2 was decimals from Newton's method:
+
using AngouriMath.Extensions;
+
+var scaled = (Set.FiniteSet)"(sin(x) - x) * 10^12 = 0".ToEntity().Solve("x");
+var plain = (Set.FiniteSet)"sin(x) - x = 0".ToEntity().Solve("x");
+Console.WriteLine($"{scaled.Count} roots, and {plain.Count} without the factor");
+Console.WriteLine("x^2 - 10^(-8) x = 0".ToEntity().Solve("x"));
+Console.WriteLine("sinh(10^(-60)) * 10^60".ToEntity().Evaled);
+Console.WriteLine("10^(-20) = 2 * 10^(-20)".ToEntity().Evaled);
+Console.WriteLine("x + x! = x^3".ToEntity().Solve("x"));
+Console.WriteLine("e^x = x + 2".ToEntity().Solve("x"));
+Prints:
+9 roots, and 9 without the factor
+{ 0, 1/100000000 }
+1
+False
+{ 5 } \/ { x : x + x! = x ^ 3 and not x = 5 }
+union({ -lambertw(n, (-1) / e ^ 2) + -2 }, n in ZZ)
+
+ x + x! = x^3 has infinitely many real roots, two between some pairs of the poles at the
+ negative whole numbers, so no finite set is its answer. Its one whole root is found exactly, by a search
+ that ends with a proof that no larger whole number is a root, and the rest are left as the equation.
+
+ Every input whose result is now different is listed, with both values and why, in
+ BREAKING-CHANGES.md
+ under 2.9.0 — since 2.8.0. Read that before upgrading.
+ It holds 42 entries, and almost all of them are silent: the call still succeeds and returns something
+ else. The ones to read first: an equation in a factorial or gamma is answered as a union with
+ a set builder, where it was a FiniteSet; MathS.Parse and
+ Entity.TryParse return a refused call where they threw, and norm(v) and
+ beta(x) with one argument throw, where they parsed as products; and, silently, two constants
+ are equal only when their difference is zero, a small value is the value rather than 0, and
+ arcosh and arsech take their principal values.
+ Assembly version stays 2.0.0.0, and the public surface is the same as 2.8.0's, so code that
+ compiled against 2.8.0 still compiles; but answers change, so this is not a drop-in replacement for 2.8.0.
+ The full notes are on the 2.9.0 release.
+
A release about answers that are complete and answers that do not depend on where they were asked. Over the complex numbers an equation with infinitely many roots is now answered with all of them, as a