MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / NToJson

Function NToJson

test/compute-engine/smoke.test.ts:34–37  ·  view source on GitHub ↗
(latex: string)

Source from the content-addressed store, hash-verified

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

Callers 1

smoke.test.tsFile · 0.85

Calls 3

toMathJsonMethod · 0.65
NMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected