Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ functions
Functions
5,294 in github.com/cortex-js/compute-engine
⨍
Functions
5,294
◇
Types & classes
304
↓ 2 callers
Function
part
(e: Expression)
src/compute-engine/compilation/javascript-target.ts:154
↓ 2 callers
Function
partOf
(term: Expression)
src/compute-engine/assume.ts:1022
↓ 2 callers
Function
patternComplexity
Compute a complexity score for a pattern operand. Simpler patterns (bare * wildcards) get lower scores and are preferred as identity terms.
src/compute-engine/boxed-expression/match.ts:1327
↓ 2 callers
Function
pct
(x: number)
scripts/fungrim/report.ts:114
↓ 2 callers
Method
peekChar
(offset: number)
src/common/json5.ts:312
↓ 2 callers
Function
pellFamilyMembersInBox
* Applies the family-generation rule documented on `PellResult`: every class * rep times unit^t for `t` in `[-tRange, tRange]`, plus the global negat
test/compute-engine/diophantine.test.ts:406
↓ 2 callers
Function
pellMul
`(x1,y1)·(x2,y2)` in `ℤ[√D]`.
test/compute-engine/diophantine.test.ts:367
↓ 2 callers
Function
permutations
(arr: T[])
test/compute-engine/comparison-assumptions-regressions.test.ts:13
↓ 2 callers
Function
pickBy
(...preds: ((f: Expression) => boolean)[])
src/compute-engine/rubi/rubi-utils.ts:1445
↓ 2 callers
Function
pointfloat
( s: string, i: number )
src/math-json/parse-sympy.ts:181
↓ 2 callers
Function
polyDiv
(args: Json[], ctx: Ctx)
src/compute-engine/rubi/rubi-utils.ts:4452
↓ 2 callers
Method
popScope
* Remove the most recent scope from the scope stack.
src/compute-engine/index.ts:1269
↓ 2 callers
Method
popSymbolTable
()
src/compute-engine/latex-syntax/types.ts:878
↓ 2 callers
Function
powIntC
( ce: ComputeEngine, base: Coeffs, k: number, W: number )
src/compute-engine/symbolic/series.ts:134
↓ 2 callers
Function
powRatScalar
(x: number, numer: number, e: number)
test/compute-engine/interval-glsl-eval.ts:138
↓ 2 callers
Method
power
(other: Tensor<DT> | DataTypeMap[DT])
src/compute-engine/types-expression.ts:355
↓ 2 callers
Function
predicateFromArg
* Normalize a predicate argument that may be a string. * * `assume()` and `verify()` accept a predicate as a `BoxedExpression`, a * MathJSON expres
src/compute-engine/engine-assumptions.ts:46
↓ 2 callers
Function
printTable
(title: string, rows: Row[])
benchmarks/big-decimal/kernel-base2-experiment.ts:415
↓ 2 callers
Function
processTerm
(term: Expression)
src/compute-engine/boxed-expression/polynomials.ts:240
↓ 2 callers
Function
prod
(m: Expression)
test/compute-engine/linear-algebra.test.ts:611
↓ 2 callers
Function
ps
(x: number, n: number)
test/compute-engine/compile-interval-glsl.test.ts:134
↓ 2 callers
Function
psc
(x: number, n: number)
test/compute-engine/interval-glsl-eval.ts:80
↓ 2 callers
Function
push
(t: Readonly<Type>)
src/common/type/subtype.ts:977
↓ 2 callers
Function
pushPartBound
( part: 're' | 'im' | 'abs' | 'arg', v: string, raw: MathJSON, openOp: 'gt' | 'lt', closed
scripts/fungrim/compile-rules.ts:304
↓ 2 callers
Function
qrDecomposition
* QR decomposition using Gram-Schmidt process
src/compute-engine/library/linear-algebra.ts:2104
↓ 2 callers
Function
quadraticQX
Rubi QuadraticQ (scalar case): PolyQ[u,x,2] and not a pure c·x²
src/compute-engine/rubi/rubi-utils.ts:1035
↓ 2 callers
Function
quartiles
(values: Iterable<number>)
src/compute-engine/numerics/statistics.ts:267
↓ 2 callers
Function
randomExpressionWithHead
( operator: MathJsonSymbol, level: number )
src/compute-engine/library/random-expression.ts:7
↓ 2 callers
Function
rank
* Return the "rank", the order in which the expression should be * sorted.
src/compute-engine/boxed-expression/order.ts:206
↓ 2 callers
Function
rank
(p: Pat)
src/compute-engine/rubi/match.ts:193
↓ 2 callers
Function
rank
(f: string)
src/compute-engine/fungrim/loader.ts:578
↓ 2 callers
Function
ratio
(n: C, d: C)
scripts/rubi/benchmark.ts:364
↓ 2 callers
Function
rationalAsFloat
(x: Rational)
src/compute-engine/numerics/rationals.ts:54
↓ 2 callers
Function
rationalExponent
If `e` is a rational constant, return it as `[numerator, denominator]` * (denominator > 0); otherwise `null`.
src/compute-engine/boxed-expression/solve.ts:1450
↓ 2 callers
Function
rationalExpr
(r: Rational)
src/compute-engine/numeric-value/exact-numeric-value.ts:1490
↓ 2 callers
Function
rationalFnQ
(u: Expression, x: string)
src/compute-engine/rubi/rubi-utils.ts:2144
↓ 2 callers
Function
rationalGcd
(lhs: Rational, rhs: Rational)
src/compute-engine/numerics/rationals.ts:208
↓ 2 callers
Function
rationalStr
(r: Rational)
src/compute-engine/numeric-value/exact-numeric-value.ts:1457
↓ 2 callers
Function
rationalize
(x: number)
src/compute-engine/numerics/rationals.ts:265
↓ 2 callers
Function
rawUnnormalized
* Construct a BigDecimal WITHOUT normalizing (trailing zeros not stripped). * The result may violate the normalized-uniqueness invariant, so it must
src/big-decimal/big-decimal.ts:1412
↓ 2 callers
Function
reOf
(r: any)
benchmarks/audit/wester.ts:72
↓ 2 callers
Function
readBracedText
* Read the content of a `{...}` group as raw text, reconstructing the * string character by character from individual tokens. * * Handles nested br
src/compute-engine/latex-syntax/dictionary/definitions-units.ts:63
↓ 2 callers
Function
readBracedUnit
* Read a braced group as raw text, resolve it as a unit, and restore the * parser on failure. Shared by siunitx handlers.
src/compute-engine/latex-syntax/dictionary/definitions-units.ts:319
↓ 2 callers
Method
readNumber
()
src/common/type/lexer.ts:181
↓ 2 callers
Function
realOf
(b: any)
benchmarks/audit/solve.ts:58
↓ 2 callers
Function
realRatPow
* Real value of `x^(p/q)` for an odd denominator `q` (so the root is real for * every real `x`), following the interpreter's real convention: * -
src/compute-engine/interval/elementary.ts:242
↓ 2 callers
Function
real_numeric_roots
Evalf an iterable of SymPy roots → sorted unique real numeric strings.
benchmarks/audit/gen_solve.py:163
↓ 2 callers
Function
real_roots
Real roots of a polynomial (highest degree first), as decimal strings. Used to bake an independent reference root set for `solve` cases — the
benchmarks/gen_cases.py:37
↓ 2 callers
Function
reciprocalOfExpr
`1/subExpr` as a Laurent value. Detects the denominator's valuation `m`; for * a pole (`m > 0`) it re-expands the denominator to order `W + 2m` so th
src/compute-engine/symbolic/series.ts:847
↓ 2 callers
Function
recurse
( f: (x: number) => number, a: number, b: number, fa: number, fm: number, fb: number, whole: num
src/compute-engine/numerics/oscillatory-quadrature.ts:162
↓ 2 callers
Function
recursiveSerialize
(x: unknown)
test/jest-config.ts:133
↓ 2 callers
Function
reduce
(x: bigint)
src/compute-engine/library/relational-operator.ts:137
↓ 2 callers
Function
reduceCollection
( collection: Expression, fn: (acc: T, next: Expression) => T | null, initial: T )
src/compute-engine/library/collections.ts:3080
↓ 2 callers
Function
reduceCollection
Generator-based reducer over a finite collection. Yields between * iterations so callers can wrap it with `run`/`runAsync` for timeout * and cancell
src/compute-engine/library/arithmetic.ts:2650
↓ 2 callers
Function
reduceModMonicQuadratic
* Reduce a polynomial (ascending coefficients) modulo the monic quadratic * x² + b·x + c, returning [C, B] for the remainder C + B·x. Horner in the
src/compute-engine/symbolic/antiderivative.ts:2000
↓ 2 callers
Function
reduceRat
Reduce a fraction to lowest terms with a positive denominator.
src/compute-engine/library/number-theory.ts:1340
↓ 2 callers
Function
refactorProductFactors
* Recursively factor each operand of a product. Used to fully factor the * result of a single difference-of-squares split, whose halves may themselve
src/compute-engine/boxed-expression/factor.ts:628
↓ 2 callers
Function
remainder
( a: Interval | IntervalResult, b: Interval | IntervalResult )
src/compute-engine/interval/elementary.ts:660
↓ 2 callers
Function
renderCode
(spans: CodeSpan[], theme = DEFAULT_THEME)
src/common/syntax-highlighter.ts:337
↓ 2 callers
Function
renderReference
Turn a reference (URL or citation string) into a markdown link.
scripts/fungrim/gen-reference-doc.ts:252
↓ 2 callers
Function
reshapeWithCycling
* Reshape a flat array of elements into the target shape, * cycling through elements if the target needs more elements than available. * (APL-style
src/compute-engine/library/linear-algebra.ts:2530
↓ 2 callers
Function
resolveUnitText
* Check whether a raw text string from `\mathrm{...}` or `\text{...}` * represents a known unit (simple or compound). * * Returns a MathJSON unit e
src/compute-engine/latex-syntax/dictionary/definitions-units.ts:143
↓ 2 callers
Function
restoreBodyScopeParams
Restore param bindings removed by hideBodyScopeParams.
src/compute-engine/function-utils.ts:354
↓ 2 callers
Function
revlex
(expr: Expression)
src/compute-engine/boxed-expression/polynomial-degree.ts:96
↓ 2 callers
Function
rewrite
(node: Expression)
src/compute-engine/boxed-expression/solve.ts:1530
↓ 2 callers
Function
rgbAnsi
(color: string)
src/common/ansi-codes.ts:136
↓ 2 callers
Function
root
(x: number)
src/compute-engine/interval/elementary.ts:306
↓ 2 callers
Function
roundDiv
(a: bigint, b: bigint)
benchmarks/big-decimal/kernel-base2-experiment.ts:290
↓ 2 callers
Function
roundHalfAway
(x: number)
test/compute-engine/interval-glsl-eval.ts:211
↓ 2 callers
Function
roundMagnitudeToward
* Round a magnitude `mant · 10^exp` (mant ≥ 0) to `prec` significant digits. * `inexact` flags a nonzero discarded tail below mant's last digit. `up`
src/big-decimal/big-decimal.ts:1425
↓ 2 callers
Function
rref
* Compute RREF and return the pivot columns.
src/compute-engine/library/linear-algebra.ts:2347
↓ 2 callers
Function
run
(c, p)
benchmarks/big-decimal/bignum-compare.py:46
↓ 2 callers
Function
runCE
Run one engine on one case and grade it.
benchmarks/audit/solve.ts:74
↓ 2 callers
Function
runLoop
( body: Expression, elements: ReadonlyArray<Expression>, ce: ComputeEngine )
src/compute-engine/library/control-structures.ts:316
↓ 2 callers
Function
runOn
(engine: any, c: Case)
benchmarks/audit/wester.ts:239
↓ 2 callers
Function
runSignGrid
()
test/compute-engine/exactness-regressions.test.ts:257
↓ 2 callers
Function
safe
(f: () => any)
test/compute-engine/nightly/comparison-matrix.test.ts:113
↓ 2 callers
Function
sameArgument
( lhs: Expression | undefined, rhs: Expression | undefined )
src/compute-engine/symbolic/differential-equations.ts:600
↓ 2 callers
Function
sample
(expr_, pts, vars_=("x",))
benchmarks/audit/run_sympy.py:60
↓ 2 callers
Function
samplePalette
Sample a palette at position t in [0,1], returning an Oklch expression.
src/compute-engine/library/colors.ts:83
↓ 2 callers
Function
sanitizeLatex
* Given a string of presumed (but possibly invalid) LaTeX, return a * LaTeX string with all the special characters escaped.
src/compute-engine/latex-syntax/dictionary/definitions-core.ts:2362
↓ 2 callers
Function
sanitizeLimitOperand
( expr: MathJsonExpression | null | undefined )
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:2417
↓ 2 callers
Function
satisfiesInequalities
Check whether a solution record satisfies all inequality constraints. * Substitutes the solution into each inequality and evaluates.
src/compute-engine/boxed-expression/boxed-function.ts:1642
↓ 2 callers
Method
saveState
()
src/common/type/lexer.ts:65
↓ 2 callers
Function
scalarMultiple
(a: number[], b: number[])
benchmarks/audit/wester.ts:390
↓ 2 callers
Function
scaleC
(ce: ComputeEngine, k: Expression, a: Coeffs)
src/compute-engine/symbolic/series.ts:110
↓ 2 callers
Method
scaleInt
Multiply every coefficient by an integer scalar.
src/compute-engine/boxed-expression/multivariate-poly.ts:119
↓ 2 callers
Function
sciNorm
(str)
benchmarks/report.mjs:71
↓ 2 callers
Function
sec
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:153
↓ 2 callers
Function
secondOrderConstantCoefficientBasisFromCoefficients
( equation: Expression, coefficients: Map<number, Expression>, dependentName: string, independentName:
src/compute-engine/symbolic/differential-equations.ts:1047
↓ 2 callers
Function
sequence
( cs: (string | Combinator)[], f: (...results: Result[]) => IR )
src/point-free-parser/core-combinators.ts:226
↓ 2 callers
Function
serializeBigOp
(command: string)
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:2475
↓ 2 callers
Function
serializeExpression
(expr: Expression)
src/math-json/serialize-sympy.ts:71
↓ 2 callers
Function
serializeGeometryAccent
Serialize a geometry accent head, e.g. `Arc(A,B,C)` → `\widehat{ABC}`.
src/compute-engine/latex-syntax/dictionary/definitions-other.ts:151
↓ 2 callers
Function
serializeGeometryMark
Serialize a geometry mark head back to its prefix command, e.g. * `Angle(A,B,C)` → `\angle ABC`. Point labels are concatenated (matching the * par
src/compute-engine/latex-syntax/dictionary/definitions-other.ts:123
↓ 2 callers
Function
serializeIntegral
(command: string)
src/compute-engine/latex-syntax/dictionary/definitions-calculus.ts:308
↓ 2 callers
Function
serializeRepeatingDecimals
( s: string, options: Readonly<JsonSerializationOptions> )
src/compute-engine/boxed-expression/serialize.ts:567
↓ 2 callers
Function
serializeSubtract
Attempt to transform an expression a+b as a subtraction b-a. Return null * if could not. * * The caller should have checked that 'Subtract' is not
src/compute-engine/boxed-expression/serialize.ts:80
↓ 2 callers
Function
seriesArgs
Build and evaluate a `Series` expression.
test/compute-engine/series.test.ts:15
↓ 2 callers
Function
seriesTermDegree
* The degree of `expr` as a (possibly Laurent, i.e. negative-exponent) power * of `variable` — e.g. `1/x` and `x^{-1}` are both degree `-1`. Returns
src/compute-engine/latex-syntax/dictionary/definitions-arithmetic.ts:201
← previous
next →
2,301–2,400 of 5,294, ranked by callers