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
↓ 3,943 callers
Method
expr
( expr: NumericValue | ExpressionInput, options?: { form?: FormOption; scope?: Scope;
src/compute-engine/types-engine.ts:219
↓ 2,943 callers
Method
parse
( name: string, parser: Parser | string, url?: string )
src/point-free-parser/parsers.ts:65
↓ 2,720 callers
Method
evaluate
* Return the value of the canonical form of this expression. * * A pure expression always returns the same value (provided that it * remains
src/compute-engine/types-expression.ts:1800
↓ 2,043 callers
Method
toString
* Return an ASCIIMath representation of the expression. This string is * suitable to be output to the console for debugging, for example. * *
src/compute-engine/types-expression.ts:628
↓ 1,389 callers
Function
isFunction
( expr: Expression | null | undefined, operator?: string )
src/compute-engine/boxed-expression/type-guards.ts:47
↓ 1,315 callers
Method
mul
Multiplication
src/compute-engine/types-expression.ts:1122
↓ 1,283 callers
Method
isSame
Fast exact structural/symbolic equality check. * * Returns `true` if the expression is structurally identical to `rhs`. * For symbols with va
src/compute-engine/types-expression.ts:1387
↓ 1,210 callers
Method
number
( value: | number | bigint | string | NumericValue | MathJsonNumberObject
src/compute-engine/types-engine.ts:322
↓ 1,194 callers
Method
map
* Recursively replace all the subexpressions in the expression as indicated. * * To remove a subexpression, return an empty `["Sequence"]` expre
src/compute-engine/types-expression.ts:1313
↓ 953 callers
Method
box
@deprecated Use `expr()` instead.
src/compute-engine/types-engine.ts:228
↓ 916 callers
Method
function
( name: string, ops: ReadonlyArray<ExpressionInput>, options?: { metadata?: Metadata;
src/compute-engine/types-engine.ts:261
↓ 832 callers
Method
N
Return a numeric approximation of the canonical form of this expression. * * Any necessary calculations, including on decimal numbers (non-integ
src/compute-engine/types-expression.ts:1825
↓ 797 callers
Method
abs
Absolute value
src/compute-engine/types-expression.ts:1116
↓ 794 callers
Method
log
Logarithm with specified base.
src/big-decimal/transcendentals.ts:36
↓ 783 callers
Method
_fn
* This is a primitive to create a boxed function. * * In general, consider using `ce.expr()` or `ce.function()` or * `canonicalXXX()` instead
src/compute-engine/types-engine.ts:285
↓ 727 callers
Method
add
(other: Tensor<DT> | DataTypeMap[DT])
src/compute-engine/types-expression.ts:351
↓ 715 callers
Method
div
Division
src/compute-engine/types-expression.ts:1124
↓ 709 callers
Function
compile
( expr: Expression, options: CompilationOptions<Expression> = {} )
src/compute-engine/compilation/gpu-target.ts:3383
↓ 616 callers
Method
simplify
* Return a simpler form of this expression. * * A series of rewriting rules are applied repeatedly, until no more rules * apply. * * Th
src/compute-engine/types-expression.ts:1682
↓ 608 callers
Method
sub
Subtraction
src/compute-engine/types-expression.ts:1120
↓ 505 callers
Function
compile
( expr: Expression, options?: CompileExpressionOptions<T> )
src/compute-engine/compilation/compile-expression.ts:59
↓ 493 callers
Method
has
* True if the expression includes a symbol `v` or a function operator `v`. * * :::info[Note] * Applicable to canonical and non-canonical expr
src/compute-engine/types-expression.ts:1364
↓ 467 callers
Method
slice
(index: number)
src/compute-engine/types-expression.ts:332
↓ 458 callers
Method
compile
Compile an expression to this language
src/compute-engine/compilation/types.ts:162
↓ 441 callers
Function
checkSimplify
* Helper: parse input, simplify, check semantic equality with expected. * On failure, reports LaTeX for readability.
test/compute-engine/simplify.test.ts:11
↓ 435 callers
Method
declare
(symbols: { [id: MathJsonSymbol]: Type | TypeString | Partial<SymbolDefinition>; })
src/compute-engine/types-engine.ts:484
↓ 429 callers
Method
pow
Power
src/compute-engine/types-expression.ts:1126
↓ 406 callers
Function
checkSimplify
* Helper: parse input, simplify, check semantic equality with expected. * On failure, reports LaTeX for readability.
test/compute-engine/simplify-noskip.test.ts:11
↓ 388 callers
Function
isNumber
( expr: Expression | null | undefined )
src/compute-engine/boxed-expression/type-guards.ts:30
↓ 387 callers
Method
get
If this is a keyed collection (map, record, tuple), return the value of * the corresponding key. * * If `key` is a `Expression`, it should be
src/compute-engine/types-expression.ts:2136
↓ 378 callers
Method
symbol
( sym: string, options?: { canonical?: CanonicalOptions; metadata?: Metadata } )
src/compute-engine/types-engine.ts:335
↓ 365 callers
Method
neg
Negate (additive inverse)
src/compute-engine/types-expression.ts:1112
↓ 344 callers
Function
isSymbol
( expr: Expression | null | undefined, name?: string )
src/compute-engine/boxed-expression/type-guards.ts:36
↓ 335 callers
Function
sym
(expr: Expression | null | undefined)
src/compute-engine/boxed-expression/type-guards.ts:105
↓ 300 callers
Function
operand
( expr: MathJsonExpression | null, n: 1 | 2 | 3 )
src/math-json/utils.ts:160
↓ 287 callers
Method
subs
* Replace all the symbols in the expression as indicated. * * Note the same effect can be achieved with `this.replace()`, but * using `this.s
src/compute-engine/types-expression.ts:1291
↓ 271 callers
Method
replace
* Transform the expression by applying one or more replacement rules: * * - If the expression matches the `match` pattern and the `condition`
src/compute-engine/types-expression.ts:1352
↓ 266 callers
Method
assume
(predicate: Expression | string)
src/compute-engine/types-engine.ts:502
↓ 255 callers
Method
isInteger
()
src/compute-engine/boxed-expression/boxed-symbol.ts:666
↓ 249 callers
Method
error
* Return an error expression with the specified code and arguments. * * The returned `Error` expression includes `sourceOffsets` metadata with
src/compute-engine/latex-syntax/types.ts:925
↓ 243 callers
Method
isFinite
()
src/compute-engine/boxed-expression/boxed-symbol.ts:618
↓ 233 callers
Function
latex
(expr: Expression | undefined | null)
test/utils.ts:243
↓ 232 callers
Method
match
If the next token matches the target advance and return true. Otherwise * return false
src/compute-engine/latex-syntax/types.ts:951
↓ 228 callers
Method
matches
(t: BoxedType)
src/compute-engine/types-kernel-evaluation.ts:26
↓ 226 callers
Method
assign
(ids: { [id: MathJsonSymbol]: AssignValue })
src/compute-engine/types-engine.ts:475
↓ 212 callers
Function
check
(latex: string, variants?: Array<ExprVariant>)
test/utils.ts:239
↓ 208 callers
Method
pushScope
(scope?: Scope, name?: string)
src/compute-engine/types-engine.ts:376
↓ 205 callers
Method
serialize
( expr: import('../math-json/types').MathJsonExpression, options?: Record<string, unknown> )
src/compute-engine/types-engine.ts:71
↓ 204 callers
Method
popScope
()
src/compute-engine/types-engine.ts:377
↓ 199 callers
Method
exp
Exponential: e^this.
src/big-decimal/transcendentals.ts:32
↓ 199 callers
Method
solve
* If this is an equation, solve the equation for the variables in vars. * Otherwise, solve the equation `this = 0` for the variables in vars. *
src/compute-engine/types-expression.ts:1851
↓ 193 callers
Method
set
(expr: Expr, value: U)
src/compute-engine/types-kernel-evaluation.ts:41
↓ 186 callers
Function
validCortex
(s: string)
test/utils.ts:331
↓ 183 callers
Method
sqrt
Square root
src/compute-engine/types-expression.ts:1130
↓ 182 callers
Method
toFixed
* Format with a fixed number of decimal places. * * Rounds to the specified number of digits after the decimal point * using round-half-to-ev
src/big-decimal/big-decimal.ts:1155
↓ 180 callers
Method
_numericValue
@internal
src/compute-engine/types-engine.ts:181
↓ 179 callers
Function
check
(s: string | Expression)
test/compute-engine/ascii-math.test.ts:6
↓ 178 callers
Function
operator
( expr: MathJsonExpression | null | undefined )
src/math-json/utils.ts:134
↓ 178 callers
Function
simplify
(latex: string)
test/utils.ts:120
↓ 165 callers
Function
parseType
( s: TypeString | Type | undefined, typeResolver?: TypeResolver )
src/common/type/parse.ts:43
↓ 162 callers
Function
isSubtype
( lhs: Type | TypeString, rhs: Type | TypeString )
src/common/type/subtype.ts:345
↓ 158 callers
Function
expectApprox
( expr: any, expected: number, tolerance = 1e-10 )
test/compute-engine/special-functions.test.ts:9
↓ 158 callers
Method
sin
Sine. Returns NaN for NaN/Infinity inputs.
src/big-decimal/transcendentals.ts:38
↓ 152 callers
Function
evaluate
(expr: string)
test/compute-engine/calculus.test.ts:3
↓ 149 callers
Method
isZero
(x: T)
src/compute-engine/types-expression.ts:286
↓ 149 callers
Method
valueOf
* * Return a JavaScript primitive value for the expression, based on * `Object.valueOf()`. * * This method is intended to make it easier t
src/compute-engine/types-expression.ts:598
↓ 147 callers
Method
isNaN
True when this value represents NaN.
src/big-decimal/big-decimal.ts:202
↓ 141 callers
Method
has
(name: string)
src/point-free-parser/parsers.ts:70
↓ 132 callers
Method
eq
* Returns true if this value equals other. * NaN === NaN → false (standard NaN semantics).
src/big-decimal/big-decimal.ts:346
↓ 132 callers
Method
verify
(query: Expression | string)
src/compute-engine/types-engine.ts:629
↓ 130 callers
Function
checkJson
( inExpr: ExpressionInput | null, variants?: Array<ExprVariant> )
test/utils.ts:151
↓ 128 callers
Method
isFinite
True when the exponent is finite (not NaN, not +/-Infinity).
src/big-decimal/big-decimal.ts:214
↓ 127 callers
Function
serializeCortex
( expr: MathJsonExpression, options?: FormattingOptions & { fancySymbols?: boolean; } )
src/cortex/serialize-cortex.ts:67
↓ 126 callers
Function
match
( pattern: ExpressionInput, expr: Expression | MathJsonExpression, options?: PatternMatchOptions )
test/compute-engine/patterns.test.ts:14
↓ 123 callers
Function
build
(json: Json, ctx: Ctx)
src/compute-engine/rubi/rubi-utils.ts:52
↓ 123 callers
Function
fn
(h: string, a: Expression[])
src/compute-engine/library/distributions.ts:273
↓ 122 callers
Function
box
(expr: any)
test/compute-engine/logic.test.ts:3
↓ 122 callers
Method
contains
* If this is a collection, return true if the `rhs` expression is in the * collection. * * Return `undefined` if the membership cannot be det
src/compute-engine/types-expression.ts:2083
↓ 122 callers
Method
toNumber
Convert to a JavaScript number. May lose precision for large values.
src/big-decimal/big-decimal.ts:1077
↓ 120 callers
Method
at
(...indices: number[])
src/compute-engine/types-expression.ts:325
↓ 120 callers
Method
lt
Returns true if this value is strictly less than other.
src/big-decimal/big-decimal.ts:372
↓ 119 callers
Method
sqrt
Square root. Returns NaN for negative values.
src/big-decimal/transcendentals.ts:28
↓ 115 callers
Method
cos
Cosine. Returns NaN for NaN/Infinity inputs.
src/big-decimal/transcendentals.ts:40
↓ 115 callers
Method
keys
()
src/compute-engine/types-expression.ts:2278
↓ 114 callers
Method
isComplexValued
* Determine at compile time whether an expression produces a complex value. * * Uses the expression's declared type (from operator signatures) w
src/compute-engine/compilation/base-compiler.ts:1106
↓ 113 callers
Function
expr
(s: string)
test/compute-engine/solve.test.ts:3
↓ 113 callers
Method
toPrecision
* Round to n significant digits, returning a new BigDecimal. * Uses round-half-to-even for tie-breaking. * If the value already has n or fewer s
src/big-decimal/big-decimal.ts:1239
↓ 111 callers
Method
toLatex
* Return a LaTeX representation of this expression with custom * serialization options. * * Numeric values are rounded to `ce.precision` sign
src/compute-engine/types-expression.ts:704
↓ 110 callers
Method
isNaN
()
src/compute-engine/numeric-value/big-numeric-value.ts:149
↓ 110 callers
Function
w
(s = '')
benchmarks/report.mjs:343
↓ 109 callers
Method
is
* Smart equality check: structural first, then numeric evaluation fallback. * Symmetric: `a.is(b)` always equals `b.is(a)`. * * First tries a
src/compute-engine/types-expression.ts:1419
↓ 109 callers
Method
isEqual
Mathematical equality (strong equality), that is the value * of this expression and the value of `other` are numerically equal. * * Both expr
src/compute-engine/types-expression.ts:2015
↓ 107 callers
Method
each
* If this is a collection, return an iterator over the elements of the * collection. * * ```js * const expr = ce.parse('[1, 2, 3, 4]');
src/compute-engine/types-expression.ts:2074
↓ 106 callers
Function
operands
( expr: MathJsonExpression | null | undefined )
src/math-json/utils.ts:150
↓ 105 callers
Function
evalStr
(expr: any[])
test/compute-engine/number-theory.test.ts:220
↓ 104 callers
Method
ln
Natural logarithm. Returns NaN for negative values, -Infinity for zero.
src/big-decimal/transcendentals.ts:34
↓ 102 callers
Function
ok
(value: Interval)
src/compute-engine/interval/util.ts:14
↓ 101 callers
Function
print
()
src/compute-engine/numeric-value/types.ts:177
↓ 93 callers
Function
joinLatex
(segments: Iterable<string>)
src/compute-engine/latex-syntax/tokenizer.ts:429
↓ 92 callers
Function
isEquivalent
(a: string | Expression, b: string)
test/compute-engine/benchmarks/grudnitski.test.ts:5
next →
1–100 of 5,294, ranked by callers