Codex and I whipped this up based on the paper: https://github.com/timschmidt/emlmath
No guarantee of correctness at this point.