sym x
f = (x + 1)^3
expand(f)\[x^{3} + 3 x^{2} + 3 x + 1\]
Run ER2 inside Quarto documents

ER2 is Python with mathematics built in: x^2 is a power, 1/3 is exact, sym x declares a symbol, and number theory runs on PARI/GP. This extension makes it a Quarto language: ```{er2} cells execute, and they are highlighted as ER2.
Everything on this site — including the two cells above — was computed by the engine as the page was built.
You also need Quarto 1.9 or newer and ER2 itself; see Get started.
sym, ^^, 5r — with nothing to configure.This is the sibling of PARI-GP-ENGINE, built the same way for a different language.