Notebooks · lib/cas/derivs
The derivative table, as the CAS reads it
Generated from lib/cas/rules/derivatives.toml by viv cas derivs; edit the TOML file and run
viv cas derivs > lib/cas/derivs.viv. grad.rs reads the same file
(lang/viv/src/derivs.rs), so the reverse-mode gradient and the CAS's diff
use one derivative for each head.
CAS_DERIV_ADJ[i] is the adjoint of CAS_DERIV_HEAD[i] in g, u and y;
the CAS reads it with g = 1, which is the derivative of head(u) with
respect to u. The test here reads every adjoint; lib/cas/calculus's test
holds each derivative to a central difference at the table's points.
Used with import cas.derivs.
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.