Skip to content
On this page

Embed

Display a standalone math equation.

Create

php
$block = EquationBlock::create("
    |x| = \\begin{cases}
    x, &\\quad x \geq 0 \\\\
    -x, &\\quad x < 0
    \\end{cases}
");

Change equation

php
$block = EquationBlock::create("a^2 + b^2 = c^2");
$newEquation = Equation::create("E = m * c^2");
$block = $block->changeEquation($newEquation);

Released under the MIT License.