MCPcopy Create free account

hub / github.com/cortex-js/compute-engine / functions

Functions5,294 in github.com/cortex-js/compute-engine

↓ 2 callersFunctioncoeffSquaredTrig
( term: Expression )
src/compute-engine/symbolic/simplify-trig.ts:683
↓ 2 callersFunctioncollect
(rule: BoxedRule)
src/compute-engine/boxed-expression/rules.ts:1433
↓ 2 callersFunctioncollect
(u: Expression)
src/compute-engine/rubi/driver.ts:780
↓ 2 callersFunctioncollectErrors
Collect a compact description of every Error subexpression.
scripts/fungrim/box-check.ts:36
↓ 2 callersFunctioncollectNestedDomains
( body: Expression, ce: ComputeEngine )
src/compute-engine/library/logic-analysis.ts:332
↓ 2 callersFunctioncollectWildcards
All wildcard symbols (`_…`) appearing in a MathJSON tree.
test/compute-engine/fungrim-loops.test.ts:69
↓ 2 callersFunctioncollectWildcards
(x: MathJSON, out = new Set<string>())
scripts/fungrim/apply-solve-templates.ts:68
↓ 2 callersFunctioncombine
( start: number, combo: Expression[] )
src/compute-engine/library/combinatorics.ts:321
↓ 2 callersFunctioncompare
(v: Expression, b: Expression)
src/compute-engine/fungrim/loader.ts:246
↓ 2 callersFunctioncompare
( v: Expression, b: Expression )
scripts/fungrim/compile-rules.ts:636
↓ 2 callersFunctioncompareAbsoluteValues
* Compare the absolute values of two BoxedExpressions. * Returns: * 1 if |a| > |b| * 0 if |a| = |b| * -1 if |a| < |b| * undefined if compar
src/compute-engine/boxed-expression/solve-linear-system.ts:584
↓ 2 callersFunctioncompareComponent
* Compare a single component (re or im) of two complex values. * Returns `true` if both finite and within tolerance, `false` if they * disagree, or
src/compute-engine/boxed-expression/stochastic-equal.ts:148
↓ 2 callersFunctioncompareGrowth
* Compare the growth of `a` and `b` as x → +∞. * Returns 1 (a faster), −1 (a slower), 0 (same order), or undefined (unknown). * * Uses a coarse *sy
src/compute-engine/symbolic/limit.ts:510
↓ 2 callersFunctioncompile
(source: { generator?: string; entries: SourceEntry[] })
scripts/fungrim/compile-properties.ts:62
↓ 2 callersFunctioncompileBound
* Compile a bound expression to JavaScript code. * For numeric constants, emits the number directly. * For symbolic expressions, compiles using Math
src/compute-engine/compilation/javascript-target.ts:1940
↓ 2 callersFunctioncompileGPUMatrix
( args: ReadonlyArray<Expression>, compile: (expr: Expression) => string, vecFn: (n: number) => string,
src/compute-engine/compilation/gpu-target.ts:1607
↓ 2 callersFunctioncompileGPUSumProduct
* Compile a Sum or Product expression for GPU targets. * * Two compilation strategies: * - **Unrolled** (constant bounds, range ≤ GPU_UNROLL_LIMIT)
src/compute-engine/compilation/gpu-target.ts:429
↓ 2 callersFunctioncompileIntArg
Compile an expression as a GPU integer argument. * Integer constants emit as plain literals (`200`); other expressions * are wrapped in a cast (`i
src/compute-engine/compilation/gpu-target.ts:403
↓ 2 callersFunctioncompileIntervalBound
* Compile a bound expression to a scalar JavaScript value for use as a loop * counter. For the interval target, bounds must be plain numbers (not int
src/compute-engine/compilation/interval-javascript-target.ts:344
↓ 2 callersFunctioncompileIntervalSumProduct
* Compile Sum or Product for the interval arithmetic target. * * The iteration variable is substituted with `_IA.point(k)` so the * body compiles c
src/compute-engine/compilation/interval-javascript-target.ts:367
↓ 2 callersFunctioncompileJSEquality
* Emit a JavaScript equality test with the engine's numeric tolerance baked in * at compile time. The interpreter treats two numbers as equal when *
src/compute-engine/compilation/javascript-target.ts:139
↓ 2 callersFunctioncompilePythonEquality
* Emit a Python equality test with the engine's numeric tolerance baked in at * compile time. The interpreter compares numbers within `engine.toleran
src/compute-engine/compilation/python-target.ts:39
↓ 2 callersFunctioncompileSection
( ce: ComputeEngine, corpusDir: string )
scripts/rubi/compile.ts:45
↓ 2 callersFunctioncompileSumProduct
* Compile Sum or Product. * * When both bounds are constant integers, small ranges (<=UNROLL_LIMIT terms) * are unrolled into explicit additions/mu
src/compute-engine/compilation/javascript-target.ts:1961
↓ 2 callersFunctioncompileTerm
(innerTarget: CompileTarget<Expression>)
src/compute-engine/compilation/javascript-target.ts:1998
↓ 2 callersMethodcompileToSource
* Compile an expression to Python source code * * Returns the Python code as a string. Honors `options.vars` (per-call * substitution) and fo
src/compute-engine/compilation/python-target.ts:596
↓ 2 callersFunctioncompiledEval
()
test/compute-engine/performance.test.ts:118
↓ 2 callersFunctioncomponentsInSet
Is a (re, im) component pair inside the representable set? * — real, pure-imaginary, or Gaussian rational (both radicals 1).
src/compute-engine/numeric-value/exact-numeric-value.ts:1447
↓ 2 callersFunctioncompute
()
src/big-decimal/transcendentals.ts:1149
↓ 2 callersFunctioncomputeBinning
* Shared binning for `Histogram`/`BinCounts`. Returns the bin edges and the * count in each bin, or `undefined` if the input is not a usable finite
src/compute-engine/library/statistics.ts:67
↓ 2 callersFunctioncomputeEigenvaluesQR
* Compute eigenvalues using QR algorithm (numeric)
src/compute-engine/library/linear-algebra.ts:2040
↓ 2 callersFunctioncomputeValue
(result: Expression)
src/compute-engine/boxed-expression/rules.ts:1194
↓ 2 callersFunctionconditionHolds
* Evaluate a rule-condition predicate and report whether it discharges. * * Rule guards must be *fail-closed*: an unprovable predicate (e.g. `w ≠ 0`
src/compute-engine/boxed-expression/rules.ts:278
↓ 2 callersFunctionconfirm
Substitute integer values and confirm the residual is exactly zero.
src/compute-engine/boxed-expression/diophantine.ts:341
↓ 2 callersFunctionconfirmExact
* Exact confirmation of a candidate: substitute the unknown(s) and evaluate * with the engine (not the compiled float). For an equation, the residual
src/compute-engine/boxed-expression/solve-domain.ts:942
↓ 2 callersMethodconjugate
(x: T)
src/compute-engine/types-expression.ts:299
↓ 2 callersFunctionconsider
(term: Expression)
src/compute-engine/boxed-expression/constraint-subject.ts:272
↓ 2 callersMethodconsumeLine
()
src/common/markdown-block.ts:273
↓ 2 callersFunctioncontainsError
Return true if `expr` is, or contains anywhere, an `Error` node.
src/compute-engine/latex-syntax/parse.ts:3198
↓ 2 callersFunctioncontainsInertSinCos
(u: Expression)
src/compute-engine/rubi/rubi-utils.ts:3889
↓ 2 callersMethodcontext
The current evaluation context
src/compute-engine/index.ts:399
↓ 2 callersFunctioncontrastingColor
( bg: string | number[], fg1?: string | number[], fg2?: string | number[] )
src/compute-engine/compilation/javascript-target.ts:1226
↓ 2 callersFunctionconvertInfiniteSetToLimits
( domainSymbol: string )
src/compute-engine/library/utils.ts:28
↓ 2 callersFunctioncore
(t: Expression)
src/compute-engine/symbolic/limit.ts:959
↓ 2 callersFunctioncorrectCount
(tk)
benchmarks/report.mjs:332
↓ 2 callersFunctioncostFn
(e: Expression)
src/compute-engine/boxed-expression/simplify.ts:146
↓ 2 callersFunctioncostFunction
(expr: Expression)
src/compute-engine/cost-function.ts:74
↓ 2 callersFunctioncot
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:125
↓ 2 callersFunctioncoth
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:498
↓ 2 callersFunctioncountFunctionLeaves
(xs: MathJsonExpression[])
src/math-json/utils.ts:465
↓ 2 callersFunctioncountMinNeeded
(wildcards: Expression[])
src/compute-engine/boxed-expression/match.ts:892
↓ 2 callersFunctioncountTokens
(s: string)
src/compute-engine/latex-syntax/tokenizer.ts:425
↓ 2 callersFunctioncovImpl
( xsI: Iterable<number>, ysI: Iterable<number>, population: boolean )
src/compute-engine/numerics/statistics.ts:304
↓ 2 callersFunctioncreateSequenceHandler
( ce: ComputeEngine, name: string, def: SequenceDefinition )
src/compute-engine/sequence.ts:272
↓ 2 callersFunctioncsc
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:192
↓ 2 callersFunctioncsch
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:513
↓ 2 callersFunctioncurateChain
( initial: Expression, trace: RuleSteps, verbosity: 'default' | 'all' )
src/compute-engine/boxed-expression/explain.ts:148
↓ 2 callersFunctiondF
Richardson-extrapolated central difference F′(x) at a (possibly * complex) point, differencing along the real axis: combines steps h and * h/2 for O
scripts/rubi/benchmark.ts:164
↓ 2 callersFunctionddNeg
(a: DD)
src/compute-engine/numerics/special-functions.ts:2215
↓ 2 callersFunctiondecideComparisonFromBounds
( bounds: IntervalBounds, k: number, query: 'less' | 'lessEqual' | 'greater' | 'greaterEqual' )
src/compute-engine/boxed-expression/constraint-subject.ts:427
↓ 2 callersFunctiondecimalExponentOf
Decimal exponent of a finite non-zero value: |x| ∈ [10^e, 10^(e+1)).
test/big-decimal/transcendentals.test.ts:1107
↓ 2 callersMethoddeclareType
* Declare a new type in the current scope. * * By default, types are nominal. To declare a structural type, set * `alias` to `true`.
src/compute-engine/index.ts:429
↓ 2 callersFunctiondefaultCollectionHandlers
( def: undefined | CollectionHandlers )
src/compute-engine/collection-utils.ts:242
↓ 2 callersFunctiondenoiseComponent
* Snap a numeric root component to a nearby integer when it is within * tolerance, removing Durand–Kerner noise. This turns a double root at * `1 ±
src/compute-engine/symbolic/differential-equations.ts:808
↓ 2 callersFunctionderiveSolveTemplate
( rule: CompiledFungrimRule )
scripts/fungrim/apply-solve-templates.ts:96
↓ 2 callersFunctiondet
Determinant of a square bigint matrix via cofactor expansion (n ≤ 4 here).
test/compute-engine/diophantine.test.ts:101
↓ 2 callersMethoddeterminant
()
src/compute-engine/types-expression.ts:337
↓ 2 callersFunctiondifferentiateApplied
* Differentiate `Apply(Derivative(fn, orders), args)` with respect to `v` by * the multivariate chain rule, bumping the multi-index one slot at a tim
src/compute-engine/symbolic/derivative.ts:321
↓ 2 callersFunctiondiopDNUnit
* The `|N| = 1` solutions of `x² − D·y² = N` for `D > 0` non-square, as * class representatives. Port of the `abs(N) == 1` branch of `diop_DN` * (Sy
src/compute-engine/numerics/diophantine.ts:761
↓ 2 callersFunctiondisagree
(a: any, b: any)
benchmarks/audit/wester.ts:440
↓ 2 callersFunctiondiscreteQuantile
( cdf: (k: number) => number, prob: number, mean: number, stddev: number, kMin: number, kMax: numb
src/compute-engine/numerics/distributions.ts:20
↓ 2 callersFunctiondistToIntegerC
Distance from a complex number to the nearest (real) integer.
src/compute-engine/numerics/numeric-complex.ts:598
↓ 2 callersFunctiondistributeProduct
Distribute a product of factors across any Add operands → a flat sum (or a * single product if no factor is a sum). Factors are taken as-is (already
src/compute-engine/rubi/rubi-utils.ts:3658
↓ 2 callersFunctiondistributionVariance
( ce: ComputeEngine, dist: Expression )
src/compute-engine/library/distributions.ts:585
↓ 2 callersFunctiondivCoeffsByModP
* Divide A (over `vars`) by `c` (over vars[1..]) where `c` divides every * x0-coefficient of A exactly over ℤ_p. Returns the quotient over `vars`.
src/compute-engine/boxed-expression/multivariate-gcd.ts:415
↓ 2 callersFunctiondivides
(g: ReturnType<typeof ce.expr>, s: string, vars: string[])
test/compute-engine/multivariate-gcd.test.ts:67
↓ 2 callersFunctiondivisors
(n: number)
src/compute-engine/boxed-expression/solve.ts:2743
↓ 2 callersFunctiondivisors
(n: number)
src/compute-engine/boxed-expression/factor.ts:402
↓ 2 callersFunctiondivisorsAscending
* The sorted ascending list of positive divisors of `m ≥ 1`. Divisor pairs * `(i, m/i)` are collected by trial division up to √m: the small divisors
src/compute-engine/library/number-theory.ts:1263
↓ 2 callersFunctiondominantTerms
From a list of terms, return those of maximal growth as x → +∞ (ties kept).
src/compute-engine/symbolic/limit.ts:484
↓ 2 callersFunctiondotOverDigit
Check if the next tokens look like a digit with a dot over it (`\overset{.}{d}`).
src/compute-engine/latex-syntax/parse-number.ts:148
↓ 2 callersFunctiondynamicValue
( ce: ComputeEngine, value: | undefined | LatexString | ExpressionInput | ((ce: ComputeEng
src/compute-engine/boxed-expression/boxed-value-definition.ts:244
↓ 2 callersFunctioneisensteinE
(s: number, tau: Complex)
src/compute-engine/numerics/numeric-complex.ts:1045
↓ 2 callersFunctionemitSumProduct
* Emit one indexing-set clause of a Sum/Product, recursing into the remaining * clauses for the innermost body. The "term" accumulated by this clause
src/compute-engine/compilation/javascript-target.ts:1978
↓ 2 callersFunctionemoji
(a, b)
test/utils.ts:401
↓ 2 callersFunctionepsilonAlgorithm
* Wynn's ε-algorithm. Given partial sums `s`, returns the best (highest * even-order) extrapolated limit, or `null` if it can't be formed.
src/compute-engine/numerics/oscillatory-quadrature.ts:216
↓ 2 callersFunctioneqDelta
u − v for binary EqQ/NeQ, or just u for the unary form (compare to 0).
src/compute-engine/rubi/rubi-utils.ts:588
↓ 2 callersFunctioneqRank
(x: Expression)
src/compute-engine/boxed-expression/order.ts:129
↓ 2 callersFunctionerfInvApprox
* Winitzki's approximation for the inverse error function, accurate to * ~2e-3 relative over (-1, 1). Used as the Newton seed for `erfInv()` and * `
src/compute-engine/numerics/special-functions.ts:313
↓ 2 callersFunctionerfc
(x: number)
src/compute-engine/numerics/special-functions.ts:373
↓ 2 callersFunctionescapeInvisibleCharacter
(code: number)
src/cortex/serialize-cortex.ts:415
↓ 2 callersFunctionescapeSymbol
(s: string)
src/cortex/serialize-cortex.ts:454
↓ 2 callersFunctionestimatedFactorialDigits
Rough estimate of the decimal digit count of n!, via lgamma(n+1).
src/compute-engine/library/combinatorics.ts:23
↓ 2 callersMethodevalVar
Substitute `vars[i] = value`, returning a polynomial over the other vars.
src/compute-engine/boxed-expression/multivariate-poly.ts:226
↓ 2 callersFunctionevaluateBinomial
* Shared evaluate logic for `Binomial` and `Choose` — the two names must * agree everywhere both are defined, so both handlers delegate here. * * -
src/compute-engine/library/combinatorics.ts:105
↓ 2 callersFunctionevaluateCovariance
( ce: ComputeEngine, ops: ReadonlyArray<Expression>, numericApproximation: boolean, population: boolea
src/compute-engine/library/statistics.ts:864
↓ 2 callersFunctionevaluateGcdLcm
( ops: ReadonlyArray<Expression>, mode: 'LCM' | 'GCD' )
src/compute-engine/library/arithmetic.ts:2796
↓ 2 callersFunctionevaluateNumericSubexpressions
* Recursively evaluate purely numeric subexpressions without full simplification. * This handles cases like Power(x, Add(1,2)) where Add(1,2) should
src/compute-engine/boxed-expression/simplify.ts:46
↓ 2 callersFunctionexactIntegerPow
* `x^e` for an integer exponent `e` and an EXACT base `x`, computed exactly: * - integer / rational base → exact bigint rational power; * - comple
src/compute-engine/boxed-expression/arithmetic-power.ts:455
↓ 2 callersFunctionexactIntegerValue
* Extract the exact integer value of a `NumericValue`, or `null` if it does * not represent an exact integer. * * This reads the exact underlying r
src/compute-engine/boxed-expression/numerics.ts:64
← previousnext →1,901–2,000 of 5,294, ranked by callers