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

Function rationalExpr

src/compute-engine/boxed-expression/serialize.ts:677–684  ·  view source on GitHub ↗
(r: Rational)

Source from the content-addressed store, hash-verified

675 return serializeJsonFunction(ce, 'Single', args, options, metadata);
676 if (args.length === 2 && !exclusions.includes('Pair'))
677 return serializeJsonFunction(ce, 'Pair', args, options, metadata);
678 if (args.length === 3 && !exclusions.includes('Triple'))
679 return serializeJsonFunction(ce, 'Triple', args, options, metadata);
680 }
681
682 if (name === 'Function' && args.length > 0) {
683 if (options.inferredAnnotations !== true) {
684 const stripped = withoutInferredAnnotations(args);
685 if (stripped !== args)
686 return serializePrettyJsonFunction(
687 ce,

Callers 2

sqrtExprFunction · 0.70
componentExprFunction · 0.70

Calls 2

isIntegerFunction · 0.90
serializeJsonNumberFunction · 0.85

Tested by

no test coverage detected