Documentation

monogate — EML operator library · arXiv:2603.21852

Install
npm install monogate      # JavaScript / TypeScript
pip install monogate     # Python
Quickstart — JavaScript
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);  // integer
Quickstart — Python
from 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)
The operator
eml(x, y) = exp(x) − ln(y)
Grammar: S → 1 | eml(S, S)
Principal-branch ln · ln(0) is undefined (throws)
Terminal: constant 1, variable x
Links
GitHub — source codenpm — JavaScript packagePyPI — Python packagearXiv:2603.21852 — Odrzywołek 2026monogate.org — research essays and theorem catalog