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

Function isLiteralRational

src/compute-engine/rubi/rubi-utils.ts:467–469  ·  view source on GitHub ↗
(e: Expression)

Source from the content-addressed store, hash-verified

465 if (cached !== undefined) return cached;
466 const t0 = Date.now();
467 let r: Expression;
468 try {
469 r = e.simplify();
470 } catch {
471 // Deadline exceeded (CancellationError): fall back to the
472 // unsimplified expression — same fail-closed behavior as the leaf cap.

Callers 7

ratPartsFunction · 0.85
sumSimplerAuxQFunction · 0.85
rubi-utils.tsFile · 0.85
fracPowerFactorQFunction · 0.85
niceSqrtAuxFunction · 0.85
simplerSqrtQFunction · 0.85
algebraicFnQFunction · 0.85

Calls 1

isNumberFunction · 0.90

Tested by

no test coverage detected