Skip to content

AngouriMath Live at /live, and Try it live leads there - #63

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
live-app
Nov 18, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
live-app

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Puts AngouriMath Live on the website at /live, and makes it what "Try online" opens. Part of ASC-Community/AngouriMath#1692.

What it is. The library in the browser as WebAssembly, with no server. It has nine pages (Waves, Representations, Shapes, Calculus, Logic, Regions, Motion, Numbers, Matrices). Each is a formula box, and the library computes every answer on it in a Web Worker. A call that runs too long restarts the worker, so the page never freezes. It references the AngouriMath 2.8.0 package, so it shows a released version.

What changes here:

  • live/: the app's source, moved from Rafael-SOWNet/amlive-source. It is a Microsoft.NET.Sdk.WebAssembly project without Blazor, plain ES modules and one stylesheet, with no Node and no workload. live/README.md says how it is put together.
  • amsite.fsx build publishes it after the generator and copies it to .output/final/live (8.8 MB, the 29 files dotnet.js loads). The .br/.gz copies are dropped, since Pages compresses what it serves. _framework is copied as framework, the name the worker imports by.
  • "Try online" becomes "Try it live", a pill in the site's magenta in the sidebar and in the phone navigation. The home page gets a "Try it live, in your browser" button above Get started.
  • /demo stays, retitled "Try AngouriMath in C#", and opens with a link to the live page. Its .NET Fiddle widgets run AngouriMath 1.3.0-preview.3 and do not show on a phone.
  • AmLive's title leads back to the website.
  • AGENTS.md: the build step, and a release now also raises the package in live/AmLive.csproj.

Checked:

  • Built from a clean worktree as CI does (init, then build) and served locally.
  • In headless Chromium, in real time:
    • Home → Try it live → /live/ loads, and AngouriMath is ready in 0.1 s.
    • Every preset on all nine pages was clicked and read, with no page errors.
    • The title leads back home.
    • Light and dark themes, and phone width.
  • A mathematical review of the outputs:
    • The cubic's roots 2cos 40°, 2cos 80° and −2cos 20°, with its extrema and inflection.
    • The extrema and inflections of x e^(−x²), ln(x)/x and x⁴ − 2x².
    • The Mersenne prime 2^89 − 1 and Cole's factors of 2^67 − 1. The page's claims that the library uses Lucas–Lehmer and Pollard's rho match its source.
    • Project Euler 3's answer, 6857.
    • Ramanujan's constant within 10⁻¹².
  • One claim was not true, and is fixed here. The extrema of sin(x)/x were listed as "6 real values between −50 and 50". They are the roots of tan x = x that a numerical search found, of about thirty. An answer with decimals in it is now captioned "found by a numerical search where there is no closed form, so not necessarily all".

On this machine dotnet publish relinked the native runtime with Emscripten, because the wasm-tools workload is installed. The CI runners have no workload and will use the prebuilt runtime, as the hosted copy's README describes. This PR's build-test on Windows, Linux and macOS is the check of that.

🤖 Generated with Claude Code

AngouriMath Live is the library in the browser as WebAssembly, with no
server: nine pages, each a formula box, whose every answer the library
computes in a Web Worker. Its source moves here as live/, from
Rafael-SOWNet/amlive-source, and `amsite.fsx build` publishes it after
the generator and copies it to .output/final/live: the runtime's files
without their precompressed copies, its _framework folder as framework,
which the worker imports dotnet.js by. It references the AngouriMath
2.8.0 package, so the page shows a released version, and a release
raises it, as AGENTS.md now says.

"Try online" led to /demo, whose samples are .NET Fiddle widgets of
AngouriMath 1.3.0-preview.3 and do not show on a phone. It is now "Try it
live", a button in the site's magenta in the sidebar and in the phone
navigation, and the home page has one beside Get started. /demo stays, as
"Try AngouriMath in C#", and opens with a link to the live page.
AngouriMath Live's title leads back to the website.

A review of every preset on every page found one claim that was not
true: the extrema of sin(x)/x were given as "6 real values between -50
and 50", which are the roots of tan x = x that a numerical search found,
of about thirty. An answer with decimals in it is now captioned as found
by a numerical search, and not necessarily all.

Part of ASC-Community/AngouriMath#1692.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@Rafael-SOWNet
Rafael-SOWNet merged commit d8d042e into master Nov 18, 2026
3 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the live-app branch November 18, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant