This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/cas/check/pion_loop

The pion-loop function's derivative by lib/cas

posts/2026-09-25-the-pion-loop-function-by-computer-algebra.viv built the two-pion loop function , , as an expression tape of 11 entries and differentiated it into a tape of 36, because nothing on the tape is shared or simplified. Here the same function is read into lib/cas from its formula, cas_diff differentiates it, and both are held to that post's references: a 30-digit Feynman-parameter integral for and mpmath's derivative of it for (posts/refs/the-pion-loop-function-by-computer-algebra.py), the same numbers to the same tolerances.

Three more routes to the derivative at 200 MeV agree with the CAS's: the differentiate phrase (forward mode), the same phrase using the symbolic derivative, and grad (reverse mode, lang/viv/src/grad.rs) of a def that computes . grad.rs and cas_diff take the derivatives of sqrt and log from one table.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 22–86