MCPcopy Create free account

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

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

↓ 1 callersFunctionextractIntervalLimits
* Extract index, lower, and upper from a Limits expression. * Returns the raw Expression nodes so they can be compiled.
src/compute-engine/compilation/interval-javascript-target.ts:301
↓ 1 callersFunctionextractLinearCoefficients
* Extract linear coefficients from an equation for given variables. * Returns null if the equation is not linear in the variables. * * For equation
src/compute-engine/boxed-expression/solve-linear-system.ts:166
↓ 1 callersFunctionextractLinearConstraint
* Extract a linear constraint from an inequality expression. * Normalizes to form: a*x + b*y + c <= 0 (or < 0)
src/compute-engine/boxed-expression/solve-linear-system.ts:1162
↓ 1 callersFunctionextractLinks
(html)
benchmarks/wester/extract.mjs:32
↓ 1 callersFunctionextractMonomialContent
* Pull a common monomial factor xᵏ out of a polynomial: x³+x² → x²·(x+1), * 3x⁴+2x³ → x³·(3x+2). The cofactor is recursively factored. Returns null
src/compute-engine/boxed-expression/factor.ts:669
↓ 1 callersFunctionextractMultiplier
* Helper to extract a numeric multiplier from an expression. * Returns [numericValue, coeffExpr, baseArg] where: * - numericValue: the numeric value
src/compute-engine/symbolic/fu-transforms.ts:1930
↓ 1 callersFunctionextractProductEquation
* Extract product equation of the form xy = p. * Returns the product value p, or null if not a product equation.
src/compute-engine/boxed-expression/solve-linear-system.ts:774
↓ 1 callersFunctionextractSquaredTrig
* Extract sin^2 or cos^2 term info from an expression
src/compute-engine/symbolic/fu-transforms.ts:2130
↓ 1 callersFunctionextractSumEquation
* Extract sum equation of the form x + y = s. * Returns the sum value s, or null if not a sum equation.
src/compute-engine/boxed-expression/solve-linear-system.ts:892
↓ 1 callersFunctionextractTanProduct
* Extract the coefficient and tangent arguments from a product term. * Returns [coef, tanArg1, tanArg2] if the term is coef*tan(a)*tan(b)
src/compute-engine/symbolic/fu-transforms.ts:1445
↓ 1 callersFunctionextractXYCoefficient
* Extract coefficient of xy term and constant from an expression.
src/compute-engine/boxed-expression/solve-linear-system.ts:806
↓ 1 callersFunctionfactorByRationalRoots
( expr: Expression, variable: string )
src/compute-engine/boxed-expression/factor.ts:384
↓ 1 callersFunctionfactorInfo
* One factor's contribution: `{ idx, exp }` for a pure power of unknown `idx`, * `{ idx: -1 }` for an unknown-free coefficient factor, or `null` when
src/compute-engine/boxed-expression/diophantine.ts:113
↓ 1 callersFunctionfactorial
(n: number)
src/compute-engine/numerics/bernoulli.ts:32
↓ 1 callersFunctionfactorial
Helper to compute factorial for error messages
src/common/utils.ts:73
↓ 1 callersFunctionfactorial2
(n: number)
src/compute-engine/numerics/numeric.ts:216
↓ 1 callersFunctionfastEval
()
test/compute-engine/performance.test.ts:96
↓ 1 callersFunctionfeaturesOf
(expr: Expression)
src/compute-engine/fungrim/loader.ts:520
↓ 1 callersMethodfencedBlock
( open: string, block: FormattingBlock, close: string )
src/cortex/formatter.ts:482
↓ 1 callersFunctionfib
(n: number)
test/compute-engine/subscript-evaluate.test.ts:38
↓ 1 callersFunctionfillArray
( dims: number[], index: number[], level = 0 )
src/compute-engine/library/collections.ts:2023
↓ 1 callersFunctionfilterRootsByType
Filter solutions by the declared type of the variable. * For example, if the variable is declared as integer, discard non-integer roots.
src/compute-engine/boxed-expression/solve.ts:2631
↓ 1 callersFunctionfilterValuesWithCondition
* EL-3: Filter domain values using a condition expression. * Evaluates the condition for each value and returns only those where the condition is tru
src/compute-engine/library/logic-analysis.ts:38
↓ 1 callersFunctionfindFailingConjunct
(json: Json, ctx: Ctx)
src/compute-engine/rubi/rubi-utils.ts:561
↓ 1 callersFunctionfindLineIntersection
* Find the intersection of two lines given by constraints. * Line 1: a1*x + b1*y + c1 = 0 * Line 2: a2*x + b2*y + c2 = 0
src/compute-engine/boxed-expression/solve-linear-system.ts:1241
↓ 1 callersFunctionfindMatchingBaseCase
* Find matching base case for given indices.
src/compute-engine/sequence.ts:197
↓ 1 callersFunctionfindNumericSeed
( ce: ComputeEngine, e: Entry, guards: ReadonlyArray<GuardSpec>, closures: ReadonlyArray<(sub: Sub) =>
scripts/fungrim/compile-rules.ts:1282
↓ 1 callersFunctionfindPrimeImplicants
( expr: Expression, ce: ComputeEngine )
src/compute-engine/library/logic-analysis.ts:754
↓ 1 callersFunctionfindPrimeImplicates
( expr: Expression, ce: ComputeEngine )
src/compute-engine/library/logic-analysis.ts:810
↓ 1 callersFunctionfindRationalRoots
* Use the rational root theorem to find rational roots of a polynomial. * * Given polynomial a_n*x^n + ... + a_1*x + a_0, the possible rational root
src/compute-engine/boxed-expression/solve.ts:2726
↓ 1 callersFunctionfindSeriesVariable
First non-constant symbol found in `expr` (pre-order), or `null`.
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:179
↓ 1 callersFunctionfindTanAngle
* Try to find angle C (as fraction of pi) such that tan(C) ~ k
src/compute-engine/symbolic/fu-transforms.ts:1429
↓ 1 callersFunctionfiniteBaseType
The *finite* counterpart of a numeric primitive type (the ±∞-admitting * types map to their finite subtype; already-finite types map to themselves).
src/common/type/subtype.ts:224
↓ 1 callersFunctionfires
(decl: string)
test/compute-engine/fungrim-loader.test.ts:1404
↓ 1 callersFunctionfix
(node: Json)
scripts/rubi/extract-rules.ts:146
↓ 1 callersFunctionflattenAnd
(a: MathJSON)
scripts/fungrim/compile-rules.ts:234
↓ 1 callersFunctionflattenComparisonChain
* Flatten a (possibly nested) chain of comparison operators into an ordered * list of `terms` and the `links` (operators) between them, in *reading*
src/compute-engine/library/relational-operator.ts:735
↓ 1 callersFunctionflattenForm
* Apply the "Flatten" form to the expression: * - remove delimiters * - flatten associative functions * * This function is recursive.
src/compute-engine/boxed-expression/canonical.ts:94
↓ 1 callersFunctionflattenInvisibleOperator
( ops: ReadonlyArray<Expression> )
src/compute-engine/boxed-expression/invisible-operator.ts:275
↓ 1 callersFunctionflattenSequence
( xs: ReadonlyArray<Expression> )
src/compute-engine/boxed-expression/flatten.ts:71
↓ 1 callersFunctionflattenUnionMembers
* Recursively flatten nested unions and reduce + structurally de-duplicate the * members. `(a | (b | c))` and `((a | b) | c)` yield the same flat mem
src/common/type/reduce.ts:164
↓ 1 callersFunctionfmt
(z: Complex)
scripts/fungrim/numeric-check.ts:149
↓ 1 callersFunctionfmt
(x)
benchmarks/report_changelog.mjs:236
↓ 1 callersFunctionfmt
(v)
benchmarks/big-decimal/run-ops.mjs:92
↓ 1 callersFunctionfmtSpeedup
(r)
benchmarks/report_changelog.mjs:90
↓ 1 callersFunctionfmtT
(ms)
benchmarks/report.mjs:466
↓ 1 callersFunctionfmtUs
(ms)
benchmarks/report_changelog.mjs:77
↓ 1 callersFunctionfmtUs
(ms?: number)
benchmarks/audit/audit.ts:245
↓ 1 callersFunctionfoldEPowers
Collect same-base exponential factors of a product: E^p·E^q → E^(p+q). CE's * canonical Multiply does not fuse symbolic-exponent powers (it would ch
src/compute-engine/rubi/rubi-utils.ts:3636
↓ 1 callersFunctionfoldExponentialExponents
* Simplify `expr`, additionally collapsing "stuck" exponential products such as * `e^x·e^-x → 1` and `e^-x·e^(2x) → e^x`. The general simplifier comb
src/compute-engine/symbolic/differential-equations.ts:433
↓ 1 callersFunctionfoldIndexPowers
* If every factor is the index or a power of the index with an index-free * exponent, fold the product into a single power x^(Σα). * * Canonicaliza
src/compute-engine/symbolic/antiderivative.ts:213
↓ 1 callersFunctionformOk
(form: string, text: string)
benchmarks/audit/audit.ts:200
↓ 1 callersFunctionformToInternal
(form?: FormOption)
src/compute-engine/boxed-expression/box.ts:111
↓ 1 callersFunctionformatSpeedup
(s: number)
test/big-decimal/comprehensive-benchmark.ts:103
↓ 1 callersFunctionfotAux
(u: Expression, v: FotState, x: string)
src/compute-engine/rubi/rubi-utils.ts:3129
↓ 1 callersFunctionfplnAGM
* AGM logarithm (Sasaki–Kanada): for s large, ln(s) = π / (2·AGM(1, 4/s)). * We pick m so s = (x/2^bits)·2^m is large enough (≥ 2^(bits/2+4)), comput
src/big-decimal/utils.ts:465
↓ 1 callersFunctionfplnDirect
* Direct-log fixed-point natural logarithm (machine-seed + log1p correction). * * ln(v) = y₀ + log1p(v·e^{−y₀} − 1), where y₀ = Math.log(v) is a ~48
src/big-decimal/utils.ts:391
↓ 1 callersFunctionfppi10
(scale: bigint)
benchmarks/big-decimal/kernel-base2-experiment.ts:61
↓ 1 callersFunctionfppi2
(bits: number)
benchmarks/big-decimal/kernel-base2-experiment.ts:171
↓ 1 callersFunctionfraction
(s: string, i: number)
src/math-json/parse-sympy.ts:60
↓ 1 callersMethodfractionStyle
( expr: MathJsonExpression, level: number )
src/compute-engine/latex-syntax/serializer.ts:371
↓ 1 callersFunctionfractionalLinearInnerQ
True if `u` contains a `Power(base, p)` whose base is LINEAR in `x` and * whose exponent `p` is a POSITIVE non-integer literal (`√(c+d·x)`, * `(c+d·
src/compute-engine/rubi/rubi-utils.ts:2338
↓ 1 callersFunctionfresnelS
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:660
↓ 1 callersFunctionfromDense
(d: bigint[], vars: string[], p: bigint)
src/compute-engine/boxed-expression/multivariate-gcd.ts:298
↓ 1 callersFunctionfromNumber
* Construct (significand, exponent) from a JavaScript number. * Handles NaN, +/-Infinity, integers, and floats.
src/big-decimal/big-decimal.ts:1485
↓ 1 callersFunctionfromNumericValue
(ce: ComputeEngine, value: NumericValue)
src/compute-engine/boxed-expression/box.ts:969
↓ 1 callersFunctionfromRoman
(roman: string)
src/compute-engine/numerics/strings.ts:1
↓ 1 callersFunctionfullAnchor
(model)
plugins/grok-theme/index.mjs:1481
↓ 1 callersMethodfunction
( name: string, ops: ReadonlyArray<Expression> | ReadonlyArray<MathJsonExpression>, options?: {
src/compute-engine/index.ts:1752
↓ 1 callersFunctionfunctionName
(expr: Expression)
src/compute-engine/symbolic/differential-equations.ts:27
↓ 1 callersFunctionfunctionOfExponential
(u: Expression, x: string)
src/compute-engine/rubi/rubi-utils.ts:3375
↓ 1 callersMethodfunctionOfExponentialFallback
∫u dx where u is purely a function of a single exponential F^v (v linear in * x) — Rubi rule 2.3#97's substitution, applied (ungated by `$exponFlag
src/compute-engine/rubi/driver.ts:712
↓ 1 callersFunctionfunctionOfExponentialFunction
( u: Expression, x: string )
src/compute-engine/rubi/rubi-utils.ts:3383
↓ 1 callersFunctionfunctionOfExponentialQ
FunctionOfExponentialQ[u,x] — u is a function of F^v with an explicit * exponential present (not merely a hyperbolic).
src/compute-engine/rubi/rubi-utils.ts:3369
↓ 1 callersFunctionfunctionOfExponentialSubstitution
( u: Expression, x: string )
src/compute-engine/rubi/rubi-utils.ts:3404
↓ 1 callersFunctionfunctionOfQ
FunctionOfQ[v, u, x, pure] — restricted to the pure trig-substitution * targets this slice handles; false (decline) otherwise.
src/compute-engine/rubi/rubi-utils.ts:3479
↓ 1 callersFunctionfunctionOfTrig
FunctionOfTrig[u, x]: the common linear trig argument, or the False symbol.
src/compute-engine/rubi/rubi-utils.ts:3166
↓ 1 callersFunctiongaussSolve
* Solve `A x = b` (A square) by Gaussian elimination with partial pivoting, * using boxed arithmetic so exact rational entries yield exact solutions.
src/compute-engine/library/statistics.ts:1154
↓ 1 callersFunctiongauss_pow
(re, im, n)
benchmarks/audit/gen.py:126
↓ 1 callersFunctiongaussianElimination
* Solve Ax = b using Gaussian elimination with partial pivoting. * Returns the solution vector or null if no unique solution exists. * * Uses exact
src/compute-engine/boxed-expression/solve-linear-system.ts:347
↓ 1 callersFunctiongcd
* Greatest common divisor
src/compute-engine/symbolic/fu-transforms.ts:1631
↓ 1 callersFunctiongcd
* Exact Bernoulli numbers and exact values of the Riemann zeta function at * integers, computed with bigint rationals. * * Used by the exact (non-n
src/compute-engine/numerics/bernoulli.ts:16
↓ 1 callersFunctiongcd
(a: BigNum, b: BigNum)
src/compute-engine/numerics/numeric-bignum.ts:4
↓ 1 callersFunctiongcd
( a: Interval | IntervalResult, b: Interval | IntervalResult )
src/compute-engine/interval/elementary.ts:963
↓ 1 callersFunctiongenBinomialMatchQ
(u: Expression, x: string)
src/compute-engine/rubi/rubi-utils.ts:2210
↓ 1 callersFunctiongenTrinomialMatchQ
(u: Expression, x: string)
src/compute-engine/rubi/rubi-utils.ts:2215
↓ 1 callersFunctiongenerateAssignments
( variables: string[], domains: Record<string, Json>, seed: number, maxCandidates: number )
scripts/fungrim/sample.ts:178
↓ 1 callersFunctiongenerateNumbers
* Linear Congruential Generator for deterministic pseudo-random numbers. * Constants from the classic C rand() implementation.
test/compute-engine/performance.test.ts:8
↓ 1 callersFunctiongenerateReferenceDoc
( opts: { check?: boolean } = {} )
scripts/fungrim/gen-reference-doc.ts:348
↓ 1 callersFunctiongenerateTruthTable
( expr: Expression, ce: ComputeEngine )
src/compute-engine/library/logic-analysis.ts:627
↓ 1 callersMethodget
(offset: number)
src/point-free-parser/parsers.ts:98
↓ 1 callersFunctiongetActiveCaches
()
src/compute-engine/rubi/rubi-utils.ts:421
↓ 1 callersFunctiongetExpressionDatatype
(expr: Expression)
src/compute-engine/tensor/tensor-fields.ts:512
↓ 1 callersMethodgetFunctions
()
test/compute-engine/compile-plugin.test.ts:20
↓ 1 callersMethodgetFunctions
()
test/compute-engine/compile-plugin.test.ts:74
↓ 1 callersMethodgetFunctions
()
test/compute-engine/extension-contracts.test.ts:21
↓ 1 callersMethodgetFunctions
()
examples/compile-plugin-architecture.js:66
↓ 1 callersMethodgetFunctions
()
examples/compile-plugin-architecture.js:146
↓ 1 callersFunctiongetIndexAssignment
* Expect an expression of the form ['Equal', index, lower] or * ['Equal', index, ['Range', lower, upper]] *
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:2153
↓ 1 callersFunctiongetIndexes
( sub: MathJsonExpression | null, sup: MathJsonExpression | null )
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:2269
← previousnext →3,001–3,100 of 5,294, ranked by callers