monogate — EML operator library · arXiv:2603.21852
npm install monogate # JavaScript / TypeScript pip install monogate # Python
import { eml, evalTree, countNodes } from "monogate";
// Build an EML tree
const tree = eml(1, eml(1, 1)); // eml(1, eml(1,1))
// Evaluate at a point
const result = evalTree(tree, { x: 1.0 });
// Count nodes
const n = countNodes(tree); // integerfrom monogate import eml, eval_tree, count_nodes # Build a tree tree = eml(1, eml(1, 1)) # Evaluate result = eval_tree(tree, x=1.0) # Count nodes n = count_nodes(tree)