Skip to content
Merged
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
2 changes: 1 addition & 1 deletion live/AmLive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AngouriMath" Version="2.9.0" />
<PackageReference Include="AngouriMath" Version="2.10.0" />
<!-- The library is reached through its own reflection-free API, but it has not been
checked under the trimmer; keep it whole rather than find out in the browser. -->
<TrimmerRootAssembly Include="AngouriMath" />
Expand Down
12 changes: 6 additions & 6 deletions src/content/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ <h4>Install for F#</h4>
<pre><code>dotnet add package AngouriMath.FSharp</code></pre>
</p>
<p>
The current release is <b>2.9.0</b>, and every 2.x release changes answers that earlier versions
The current release is <b>2.10.0</b>, and every 2.x release changes answers that earlier versions
got wrong. Whichever version you are coming from, read
<a href="https://github.com/asc-community/AngouriMath/blob/v2.9.0/BREAKING-CHANGES.md">BREAKING-CHANGES.md</a>
<a href="https://github.com/asc-community/AngouriMath/blob/v2.10.0/BREAKING-CHANGES.md">BREAKING-CHANGES.md</a>
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
<code>2.9.0 — since 2.8.0</code> 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: <code>Matrix.Trace</code>
is <code>null</code> 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 <code>2.10.0 — since 2.9.0</code> before upgrading. The assembly version is pinned at
<code>2.0.0.0</code> for the whole of 2.x.
</p>
<p>
Expand Down
54 changes: 53 additions & 1 deletion src/content/whatsnew/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,59 @@ <h2 class="centered">What's new</h2>

-->

<details open><summary><strong>2.9.0</strong></summary>
<details open><summary><strong>2.10.0</strong></summary>
<p>
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 <code>dot(x * [1, 2], [3, 4])</code> for a plot, inverting
<code>[[a, b], [c, d]]</code> and putting numbers in, taking <code>tanh</code> 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
<code>tanh(10^8)</code> 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.
</p>
<p>
Each line below was answered differently by 2.9.0. The factorisation was <code>null</code>; the inverse
at <code>a = 0, b = 1, c = 1, d = 0</code> was <code>NaN</code>; the compilation was refused;
<code>tanh(10^8)</code> did not return; the root was <code>-p * V / (-n * R)</code>; and the message said
only that no variable could be parsed from <code>v0</code>:
</p>
<!-- amcheck:cs -->
<pre><code>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); }</code></pre>
<p>Prints:</p>
<pre><code class="language-plaintext">(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</code></pre>
<p>
<b>Every input whose result is now different is listed, with both values and why, in
<a href="https://github.com/asc-community/AngouriMath/blob/v2.10.0/BREAKING-CHANGES.md#2100--since-290">BREAKING-CHANGES.md</a>
under <code>2.10.0 — since 2.9.0</code>. Read that before upgrading.</b>
It holds 13 entries. The ones to read first: <code>Matrix.Trace</code> is <code>Entity?</code>,
<code>null</code> for a matrix that is not square; a singular matrix to a negative power throws
<code>InvalidMatrixOperationException</code>, where it threw GenericTensor's
<code>InvalidDeterminantException</code>; 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 <code>2.0.0.0</code>, and the one change to the public surface is the nullable
annotation on <code>Matrix.Trace</code>, 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 <a href="https://github.com/asc-community/AngouriMath/releases/tag/v2.10.0">the 2.10.0 release</a>.
</p>
</details>

<details><summary><strong>2.9.0</strong></summary>
<p>
A release about answers that hold at every scale. A value below about <code>1e-50</code> read as
<code>0</code> in most of the special functions, the trigonometric functions of a non-real number, the
Expand Down
Loading