MathZetta CAS rules playground

Explore the YAML rule engine behind MathZetta CAS. Every simplification and derivative step is a rule you can inspect and edit. Pick a mode, type ordinary math or postfix, and step through which rules match and why. For the full CAS (simplify, factor, solve, and integrate with rendered math steps), visit Inline Math's CAS playground, or install it with npm install @mathzetta/cas. Details on how rules work are in the README.

Mode

Expression postfix, or ordinary math

Operands can be any non-operator token (3, -2, x, theta). Derivatives use u v der, so d/dx of x² is x 2 ^ x der. You can also type regular math like 2x + 3 or x^2 sin(x) and MathZetta will convert it to postfix.

Current

Structure keys

How rules are found. Every rule is filed under a structure key: a shape with its operands blanked out, so _ _ + is "something plus something". Each part of the expression can be read as several shapes (3 4 5 6 - * + is _ _ +, _ _ _ * + and its whole shape), and each shape is looked up. Shapes are only made as deep as the deepest rule (the mode's depth). More in the README.

Applicable rules

    Steps

      Ruleset

      Each rule: its pattern → what it becomes, the key it is filed under, and its tags: fold works the numbers out (3 4 + becomes 7), commutative matches its operands either way round.