(latex: string)
| 32 | } |
| 33 | |
| 34 | function NToJson(latex: string): Expression { |
| 35 | // toMathJson() produces a sugared expression, unlike .json |
| 36 | return engine.parse(latex).N().toMathJson({ fractionalDigits: 'max' }); |
| 37 | } |
| 38 | |
| 39 | function customCanonical(expr) { |
| 40 | if (typeof expr.value === 'number') { |
no test coverage detected