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

Function divide

scripts/rubi/wl-parser.ts:394–403  ·  view source on GitHub ↗
(a: Json, b: Json)

Source from the content-addressed store, hash-verified

392}
393
394function divide(a: Json, b: Json): Json {
395 if (
396 typeof a === 'number' &&
397 typeof b === 'number' &&
398 Number.isInteger(a) &&
399 Number.isInteger(b)
400 )
401 return ['Rational', a, b];
402 return ['Divide', a, b];
403}
404
405// ---------------------------------------------------------------------------
406// WL → Compute Engine name mapping

Callers 1

parseExpressionMethod · 0.70

Calls 1

isIntegerMethod · 0.45

Tested by

no test coverage detected