MCPcopy Create free account

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

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

↓ 2 callersFunctionsetTrigAbsPad
(v: number)
test/compute-engine/interval-glsl-eval.ts:40
↓ 2 callersFunctionsetify
`collection` → `set` in shell signatures (same rewrite as load.ts).
scripts/fungrim/compile-rules.ts:213
↓ 2 callersFunctionsgn
(n: number)
test/compute-engine/comparison-assumptions-regressions.test.ts:39
↓ 2 callersMethodsgn
()
src/compute-engine/boxed-expression/boxed-function.ts:557
↓ 2 callersFunctionshapeError
(ce: ComputeEngine, name: string)
src/compute-engine/library/statistics.ts:857
↓ 2 callersFunctionshellOnlyNames
(declarations: Declarations)
scripts/fungrim/load.ts:116
↓ 2 callersFunctionshifted
(n: number)
src/compute-engine/symbolic/residue.ts:74
↓ 2 callersFunctionside
(s: MathJSON)
scripts/fungrim/compile-rules.ts:870
↓ 2 callersFunctionsigDigits
* Extract the significant digit string from a numeric string. * Strips sign, decimal point, leading zeros. Preserves trailing zeros.
test/big-decimal/precision-comparison.test.ts:21
↓ 2 callersFunctionsigDigits
First `digits` significant digits of |x| as a string (no sign, no point).
test/big-decimal/elementary-completeness.test.ts:26
↓ 2 callersFunctionsign
(t: Expression)
src/compute-engine/symbolic/limit.ts:958
↓ 2 callersFunctionsign
(n: bigint)
src/compute-engine/numerics/diophantine.ts:50
↓ 2 callersFunctionsignFromBounds
(bounds: IntervalBounds)
src/compute-engine/boxed-expression/constraint-subject.ts:505
↓ 2 callersFunctionsimplifyOperands
( expr: Expression, options?: Partial<SimplifyOptions> )
src/compute-engine/boxed-expression/simplify.ts:258
↓ 2 callersFunctionsimplifyQuantityUnit
* Try to simplify a compound unit to a named derived unit. * E.g. Multiply(N, m) → J, Divide(kg, Multiply(m, Power(s, 2))) → Pa. * If no simplificat
src/compute-engine/library/quantity-arithmetic.ts:242
↓ 2 callersFunctionsinCosProduct
( term: Expression )
src/compute-engine/symbolic/simplify-trig.ts:758
↓ 2 callersFunctionskipLinebreak
(parser: Parser)
src/point-free-parser/whitespace-parsers.ts:50
↓ 2 callersFunctionskipTexDimension
Skip an inline TeX dimension (e.g., `3mu`, `-5pt`, `0.5em`). * Used to consume arguments of `\hskip` and `\kern`. * Each character is a separate t
src/compute-engine/latex-syntax/dictionary/definitions-other.ts:38
↓ 2 callersFunctionskipUntilLinebreak
(parser: Parser)
src/point-free-parser/whitespace-parsers.ts:29
↓ 2 callersFunctionskipWhitespace
(s: string, i: number)
src/math-json/parse-sympy.ts:33
↓ 2 callersFunctionsolutionRhsTerms
(solution: ReturnType<typeof dsolve>)
test/compute-engine/differential-equations.test.ts:512
↓ 2 callersFunctionsolveLinearSystem
( equations: Expression[], variables: string[] )
src/compute-engine/boxed-expression/solve-linear-system.ts:121
↓ 2 callersFunctionsolvePolynomialSystem
( equations: Expression[], variables: string[] )
src/compute-engine/boxed-expression/solve-linear-system.ts:670
↓ 2 callersFunctionsolveTwoSqrtEquationCore
* Core solver for √f = e - sign·√g (after isolating one sqrt)
src/compute-engine/boxed-expression/solve.ts:1139
↓ 2 callersFunctionsolve_real_roots
SymPy's most capable solver (`solve`, which handles LambertW etc.), reduced to real numeric roots. Returns None if it cannot solve.
benchmarks/audit/gen_solve.py:176
↓ 2 callersFunctionsortedIndices
( expr: Expression, fn: Expression | undefined = undefined )
src/compute-engine/library/collections.ts:3116
↓ 2 callersFunctionsoundness
(expr: any)
test/compute-engine/type-soundness.test.ts:62
↓ 2 callersFunctionsoundness
(label: string, expr: any, violations: string[])
test/compute-engine/nightly/type-soundness-grid.test.ts:83
↓ 2 callersFunctionsource
* @param {RegExp | string } re * @returns {string}
src/cortex/highlight-js-mode.js:13
↓ 2 callersMethodsourceOffsets
( startToken: number, endToken: number = this.index )
src/compute-engine/latex-syntax/parse.ts:671
↓ 2 callersFunctionspeedup
(a: number, b: number)
benchmarks/big-decimal/kernel-base2-experiment.ts:340
↓ 2 callersFunctionsplitMonoFactor
split u = scale·x^m·rest where scale and m are x-free and rest is the * single non-monomial x-dependent factor (null when u has no such shape)
src/compute-engine/rubi/rubi-utils.ts:2032
↓ 2 callersFunctionsplitNumericFactor
Rubi NumericFactor/NonnumericFactors split of a term: the leading * rational coefficient and the remaining (non-numeric) factors.
src/compute-engine/rubi/rubi-utils.ts:482
↓ 2 callersFunctionsplitTrigSquareTerm
* Decompose a product term into a single squared-trig factor and its * coefficient: `½·eˣ·sin²(x)` → `{ kind: 'Sin', arg: x, coefficient: ½·eˣ }`. *
src/compute-engine/symbolic/differential-equations.ts:477
↓ 2 callersFunctionsqRaw
(lo: number, hi: number)
test/compute-engine/compile-interval-glsl.test.ts:427
↓ 2 callersMethodsqrt
()
src/compute-engine/boxed-expression/boxed-number.ts:365
↓ 2 callersMethodsqrt
()
src/compute-engine/numeric-value/exact-numeric-value.ts:1011
↓ 2 callersFunctionsqrt1mSq
()
src/compute-engine/boxed-expression/solve.ts:1924
↓ 2 callersFunctionstampAbsTransform
(r: RuleStep | undefined)
src/compute-engine/symbolic/simplify-abs.ts:55
↓ 2 callersFunctionstrip
(expr: Expression)
test/utils.ts:281
↓ 2 callersFunctionstructuralSum
* Build a sum of `terms` without canonicalizing them. Canonical `Add`/`Multiply` * type-checks operands, and an unrecognized higher-order derivative
src/compute-engine/symbolic/differential-equations.ts:129
↓ 2 callersFunctionsubsEval
( expr: Expression, vars: Record<string, number> )
src/compute-engine/boxed-expression/stochastic-equal.ts:68
↓ 2 callersFunctionsubstFor3
SubstFor[v, u, x] — u with the trig subexpression `v` replaced by `x` * (u is a function of v). Returns null when v isn't a handled trig target.
src/compute-engine/rubi/rubi-utils.ts:3537
↓ 2 callersFunctionsubstTrigNode
The substitution target trig node of `v` (the rule passes `trig(arg)/d`); * returns the bare trig node after dropping x-free factors, or null.
src/compute-engine/rubi/rubi-utils.ts:3466
↓ 2 callersFunctionsubstitute
`x_i = base[i] + Σ_j coef[i][j]·params[j]`.
test/compute-engine/diophantine.test.ts:83
↓ 2 callersMethodsum
( values: NumericValue[], factory: NumericValueFactory )
src/compute-engine/numeric-value/exact-numeric-value.ts:1258
↓ 2 callersFunctionsymbolName
(name: string)
src/common/type/serialize.ts:214
↓ 2 callersFunctionsymbolicBound
(b: Expression)
src/compute-engine/library/utils.ts:97
↓ 2 callersFunctiontable
(ops, title)
benchmarks/big-decimal/run-ops.mjs:99
↓ 2 callersFunctiontagged
(table)
benchmarks/report_changelog.mjs:100
↓ 2 callersFunctiontally
(collection: Expression)
src/compute-engine/library/collections.ts:3051
↓ 2 callersFunctiontanOfInverseTrig
* `tan(f(arg))` as an algebraic expression in `arg`, for a real-principal-branch * inverse-trig function `f`; `null` for anything else. Used to clear
src/compute-engine/boxed-expression/solve.ts:1922
↓ 2 callersFunctiontanh
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:374
↓ 2 callersFunctionterm
(sym: string, val: number)
test/compute-engine/latex-syntax/serialize.test.ts:123
↓ 2 callersFunctionterm
(i: number)
test/compute-engine/benchmarks/parse.benchmark.test.ts:65
↓ 2 callersFunctiontermCount
(e: Expression)
src/compute-engine/boxed-expression/polynomials.ts:715
↓ 2 callersFunctiontermHasFactors
( term: ReturnType<typeof dsolve>, predicates: Array<(f: ReturnType<typeof dsolve>) => boolean> )
test/compute-engine/differential-equations.test.ts:517
↓ 2 callersFunctiontermToString
* Convert a QM term to a string for comparison/deduplication.
src/compute-engine/library/logic-analysis.ts:722
↓ 2 callersFunctiontestPoint
(vars: Record<string, number>)
src/compute-engine/boxed-expression/stochastic-equal.ts:83
↓ 2 callersFunctiontightBindingCondition
( p: Parser, terminator?: Readonly<Terminator> )
src/compute-engine/latex-syntax/dictionary/definitions-logic.ts:572
↓ 2 callersFunctiontimeToString
(t: number)
test/utils.ts:355
↓ 2 callersFunctiontoComplex
Normalize a compiled result (number or ComplexResult) to { re, im }.
src/compute-engine/boxed-expression/stochastic-equal.ts:138
↓ 2 callersFunctiontoDense
Dense coefficient array (index = exponent of the single variable), [0,p).
src/compute-engine/boxed-expression/multivariate-gcd.ts:291
↓ 2 callersFunctiontoExplainStep
Map an internal `RuleStep` to a public, labeled `ExplainStep`.
src/compute-engine/boxed-expression/explain.ts:209
↓ 2 callersFunctiontoExpr
(cs: Expression[])
src/compute-engine/rubi/rubi-utils.ts:393
↓ 2 callersFunctiontoNNF
(expr: Expression, ce: ComputeEngine)
src/compute-engine/symbolic/logic-utils.ts:374
↓ 2 callersFunctiontogether
(op: Expression)
src/compute-engine/boxed-expression/factor.ts:29
↓ 2 callersMethodtranspose
(axis1?: number, axis2?: number)
src/compute-engine/types-expression.ts:335
↓ 2 callersFunctiontrigArgMonomialExponent
For a trig argument `arg`: the exponent k if `arg = c + d·xᵏ` (x-free c, one * x-monomial term), else null.
src/compute-engine/rubi/rubi-utils.ts:3795
↓ 2 callersFunctiontrigCost
(expr: Expression)
src/compute-engine/symbolic/fu-cost.ts:67
↓ 2 callersFunctiontrigFuncParity
(name: string)
src/compute-engine/boxed-expression/trigonometry.ts:584
↓ 2 callersFunctiontrigMonoParts
`coef·trig[linear arg]` (or bare `trig[linear arg]`) → `{head, coef, arg}`, * else null. `coef` must be x-free.
src/compute-engine/rubi/rubi-utils.ts:2752
↓ 2 callersFunctiontrigSign
(operator: string, x: Expression)
src/compute-engine/boxed-expression/trigonometry.ts:657
↓ 2 callersFunctiontrigSquare
(x: Expr)
test/compute-engine/differential-equations.test.ts:682
↓ 2 callersFunctiontrigSquare
( x: Expression )
src/compute-engine/symbolic/differential-equations.ts:484
↓ 2 callersFunctiontrimDense
(d: bigint[])
src/compute-engine/boxed-expression/multivariate-gcd.ts:311
↓ 2 callersFunctiontryCyclicExpTrigIntegral
* Try to integrate cyclic e^x * trig patterns directly. * These patterns (e^x * sin(x), e^x * cos(x)) require the "solve for the integral" * techniq
src/compute-engine/symbolic/antiderivative.ts:500
↓ 2 callersFunctiontryDiophantineSolve
( ce: ComputeEngine, eq: Expression, unknowns: string[], domains: ReadonlyArray<Expression | undefined
src/compute-engine/boxed-expression/diophantine.ts:376
↓ 2 callersFunctiontryGetConstantRatio
* Check if expr1 = c * expr2 for some constant c (w.r.t. index). * Returns c if true, null otherwise.
src/compute-engine/symbolic/antiderivative.ts:471
↓ 2 callersFunctiontryInferRangeFromElements
* Detect the inferred-step list-range form: elements ending with * `[..., s0, s1, ..., sk, ContinuationPlaceholder, end]`. * * If the pattern is fo
src/compute-engine/latex-syntax/dictionary/definitions-core.ts:2607
↓ 2 callersFunctiontryIntegrationByParts
( factors: ReadonlyArray<Expression>, index: string, depth: number = 0 )
src/compute-engine/symbolic/antiderivative.ts:109
↓ 2 callersFunctiontryPolyExpTrigIntegral
* ∫ P(x)·eˣ·sin(b·x) dx and ∫ P(x)·eˣ·cos(b·x) dx for a polynomial P and a * constant b ≠ 0 (no additive phase). The antiderivative has the closed fo
src/compute-engine/symbolic/antiderivative.ts:636
↓ 2 callersFunctiontryReversePowerChain
* Reverse power-chain rule: ∫ c·u'(x)·u(x)ⁿ dx = c·u(x)ⁿ⁺¹/(n+1) for a * constant `c` and exponent n ≠ −1 (the n = −1 case is ∫u'/u = ln|u|, handled
src/compute-engine/symbolic/antiderivative.ts:2453
↓ 2 callersFunctiontrySolveLinearFor
* Try to solve an equation for one variable, assuming it's linear in that variable. * Returns the expression for the variable, or null if not linear.
src/compute-engine/boxed-expression/solve-linear-system.ts:1041
↓ 2 callersFunctiontrySymbolicPartialFractions
* ∫ P(x)/Q(x) dx by exact symbolic partial fractions when Q factors over ℚ * into *distinct* linear and irreducible-quadratic factors (a squarefree
src/compute-engine/symbolic/antiderivative.ts:2038
↓ 2 callersFunctiontryUSubstitution
* Try u-substitution: ∫f(g(x))·g'(x) dx = F(g(x)) * where F is the antiderivative of f. * * Returns the result if successful, or null if u-substitu
src/compute-engine/symbolic/antiderivative.ts:274
↓ 2 callersFunctiontwoSum
Exact: a + b = s + e with s = fl(a+b) (Knuth two-sum)
src/compute-engine/numerics/special-functions.ts:2184
↓ 2 callersFunctiontype
Return the type of the value of the expression, without actually * evaluating it
src/compute-engine/boxed-expression/boxed-function.ts:1734
↓ 2 callersFunctionunhold
( expr: MathJsonExpression | null )
src/math-json/utils.ts:178
↓ 2 callersFunctionunitSymbol
(q: QuantityExpr)
src/compute-engine/library/quantity-arithmetic.ts:46
↓ 2 callersFunctionunitToMathrm
* Convert a MathJSON unit expression into a string suitable for the * content of `\mathrm{...}`. * * Examples: * - `'m'` → `'m'` * - `['Divide'
src/compute-engine/latex-syntax/dictionary/definitions-units.ts:243
↓ 2 callersFunctionunivariateGcdModP
(A: MPoly, B: MPoly, p: bigint)
src/compute-engine/boxed-expression/multivariate-gcd.ts:276
↓ 2 callersMethodunregisterCompilationTarget
@internal Remove a registered compilation target.
src/compute-engine/types-engine.ts:314
↓ 2 callersFunctionunwrap
( op: Expression )
src/compute-engine/library/collections.ts:477
↓ 2 callersFunctionunwrapSingleItemList
(expr: MathJsonExpression)
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:771
↓ 2 callersMethodupcast
(dtype: DT)
src/compute-engine/types-expression.ts:334
↓ 2 callersFunctionvalidateSequenceDefinition
( ce: ComputeEngine, name: string, def: SequenceDefinition )
src/compute-engine/sequence.ts:433
↓ 2 callersFunctionvariableSeedTypes
Per-variable type implied by the compiled guards (else inferred).
scripts/fungrim/compile-rules.ts:942
↓ 2 callersFunctionvenvHasNumpy
()
test/compute-engine/compile-python-parity.test.ts:29
↓ 2 callersFunctionvisit
(t: ReadonlyArray<Expression>, axis = 0)
src/compute-engine/boxed-expression/boxed-tensor.ts:494
← previousnext →2,401–2,500 of 5,294, ranked by callers