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

Function leafCountOf

src/compute-engine/rubi/normal-form.ts:239–244  ·  view source on GitHub ↗
(e: Expression)

Source from the content-addressed store, hash-verified

237}
238
239function leafCountOf(e: Expression): number {
240 if (!e.ops) return 1;
241 let n = 1;
242 for (const op of e.ops) n += leafCountOf(op);
243 return n;
244}
245
246function negate(ce: ComputeEngine, e: Expression): Expression {
247 if (isNumber(e)) return e.neg().evaluate();

Callers 1

powFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected