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

Function isDictionary

src/compute-engine/boxed-expression/utils.ts:69–76  ·  view source on GitHub ↗
(expr: unknown)

Source from the content-addressed store, hash-verified

67 ) {
68 // Check if this transcendental simplifies to an exact rational value
69 // (e.g., ln(e) = 1, sin(0) = 0). If so, it's not truly a
70 // "symbolic transcendental" that needs to be preserved.
71 const simplified = expr.simplify();
72 // If the simplified result is exact (integer or rational),
73 // it doesn't need symbolic preservation
74 if (simplified.isRational) {
75 return false;
76 }
77 return true;
78 }
79 // Recursively check sub-expressions

Callers 3

dictionary.test.tsFile · 0.90
core.tsFile · 0.90

Calls 1

matchesMethod · 0.65

Tested by

no test coverage detected