MCPcopy Create free account

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

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

↓ 3 callersFunctionapproximateDigitCount
* Approximate digit count of `m`'s magnitude in the given `base`, derived * from the cheap bit-length estimate above. Used as a pre-check — before *
src/compute-engine/library/number-theory.ts:39
↓ 3 callersFunctionareCompatibleUnits
(a: string, b: string)
src/compute-engine/numerics/unit-data.ts:320
↓ 3 callersMethodasConstant
Constant value if this is a constant polynomial, else `undefined`.
src/compute-engine/boxed-expression/multivariate-poly.ts:67
↓ 3 callersFunctionasNumber
* Convert a raw tensor storage value to a JS number. * * `tensor.tensor.at()` (AbstractTensor.at) returns raw storage values * whose type depends o
src/compute-engine/library/linear-algebra.ts:2288
↓ 3 callersMethodassign
( arg1: string | { [id: string]: AssignValue }, arg2?: AssignValue )
src/compute-engine/index.ts:1522
↓ 3 callersFunctionassumeInteger
(declared: string)
test/compute-engine/type-soundness-regressions.test.ts:43
↓ 3 callersFunctionatPrecision
Run `fn` at a temporarily raised precision, restoring afterwards.
test/big-decimal/elementary-completeness.test.ts:15
↓ 3 callersFunctionatanh
(x: Interval | IntervalResult)
src/compute-engine/interval/trigonometric.ts:422
↓ 3 callersFunctionbaseEventuallyPositive
( base: Expression, x: string, ce: ComputeEngine )
src/compute-engine/symbolic/limit.ts:914
↓ 3 callersFunctionbasicIndexedCollectionHandlers
()
src/compute-engine/collection-utils.ts:192
↓ 3 callersFunctionbestOf
* Select the expression with the lowest cost from a list of candidates.
src/compute-engine/symbolic/fu.ts:60
↓ 3 callersFunctionbgcd
(a: bigint, b: bigint)
src/compute-engine/boxed-expression/diophantine.ts:70
↓ 3 callersFunctionbigKurtosis
(values: Iterable<BigDecimal>)
src/compute-engine/numerics/statistics.ts:149
↓ 3 callersFunctionbigOp
( expr: Expression, op: string, serialize: AsciiMathSerializer )
src/compute-engine/boxed-expression/ascii-math.ts:425
↓ 3 callersFunctionbigPopulationVariance
( values: Iterable<BigDecimal> )
src/compute-engine/numerics/statistics.ts:83
↓ 3 callersFunctionbigSqrtSeed
* Seed for an integer square root of `n`: a value within a few bits of * sqrt(n). Uses a float64 sqrt directly when `n` fits in a double, else * ext
src/big-decimal/utils.ts:126
↓ 3 callersFunctionbigVariance
(values: Iterable<BigDecimal>)
src/compute-engine/numerics/statistics.ts:55
↓ 3 callersFunctionbigintSign
(n: bigint)
src/big-decimal/utils.ts:191
↓ 3 callersFunctionblcm
(a: bigint, b: bigint)
src/compute-engine/boxed-expression/diophantine.ts:77
↓ 3 callersMethodboundaryError
( msg: string | [string, ...MathJsonExpression[]] )
src/compute-engine/latex-syntax/parse.ts:635
↓ 3 callersFunctionboxDomain
(b: F, extent: number)
test/compute-engine/compile-interval-glsl.test.ts:402
↓ 3 callersFunctionboxFunction
( ce: ComputeEngine, name: MathJsonSymbol, ops: readonly ExpressionInput[], options?: { metadata?:
src/compute-engine/boxed-expression/box.ts:186
↓ 3 callersFunctionboxMachineNumber
* Box a kernel result that is a plain JS double. * * In an engine working above machine precision, a plain-double result means * it was computed at
src/compute-engine/boxed-expression/apply.ts:27
↓ 3 callersFunctionbruteForcePell
( D: bigint, N: bigint, bound: bigint = 1000n )
src/compute-engine/numerics/diophantine.ts:1142
↓ 3 callersFunctionbuild
()
benchmarks/gen_cases.py:286
↓ 3 callersFunctioncancelCommonFactors
( expr: Expression, variable: string )
src/compute-engine/boxed-expression/polynomials.ts:764
↓ 3 callersFunctioncancellationLoss
* Number of leading decimal digits lost to cancellation for an O(1) * fixed-point magnitude `fp / 2^bits` that is much smaller than 1 — i.e. how * m
src/big-decimal/transcendentals.ts:212
↓ 3 callersFunctioncanonicalAngle
( x: Expression | undefined )
src/compute-engine/boxed-expression/utils.ts:185
↓ 3 callersFunctioncarlsonRJ
(x: number, y: number, z: number, p: number)
src/compute-engine/numerics/special-functions.ts:3447
↓ 3 callersFunctioncarlsonRJComplex
( x: Complex, y: Complex, z: Complex, p: Complex )
src/compute-engine/numerics/numeric-complex.ts:390
↓ 3 callersFunctioncasesOf
(cat)
benchmarks/report.mjs:306
↓ 3 callersFunctioncell
(side: any)
benchmarks/audit/audit.ts:278
↓ 3 callersFunctioncheckTypes
( ce: ComputeEngine, args: ReadonlyArray<Expression>, types: Type[] )
src/compute-engine/boxed-expression/validate.ts:274
↓ 3 callersMethodchoice
(...inBlocks: (string | FormattingBlock)[])
src/cortex/formatter.ts:476
↓ 3 callersFunctionclamp
( x: Interval | IntervalResult, lo: Interval | IntervalResult, hi: Interval | IntervalResult )
src/compute-engine/interval/comparison.ts:210
↓ 3 callersFunctionclassify
(c: any, res: any)
benchmarks/audit/audit.ts:207
↓ 3 callersMethodcleanExpansionResult
Clean the exponential-fallback antiderivative: collect like terms via a * bounded simplify (the raw expansion repeats `c·x` once per exponential
src/compute-engine/rubi/driver.ts:752
↓ 3 callersMethodclone
()
src/compute-engine/boxed-expression/multivariate-poly.ts:54
↓ 3 callersFunctionclose
(a: [number, number], b: [number, number])
test/compute-engine/branch-cut-safe.test.ts:27
↓ 3 callersFunctioncodeBlock
(content)
plugins/grok-theme/index.mjs:1416
↓ 3 callersFunctioncoefficientWithoutPowerOfX
( coefficient: Expression, independentName: string, power: number )
src/compute-engine/symbolic/differential-equations.ts:1257
↓ 3 callersFunctioncollect
(x: unknown)
test/compute-engine/fungrim-compile.test.ts:828
↓ 3 callersFunctioncollectDerivativeTerms
( residual: Expression, dependentName: string, independentName: string )
src/compute-engine/symbolic/differential-equations.ts:327
↓ 3 callersFunctioncollectLinearTerms
( residual: Expression, dependentName: string, independentName: string )
src/compute-engine/symbolic/differential-equations.ts:145
↓ 3 callersFunctioncollectSymbols
( expr: Expression, symbols = new Set<string>() )
src/compute-engine/symbolic/differential-equations.ts:227
↓ 3 callersFunctioncollectSymbols
All symbol-position strings appearing in a MathJSON tree.
src/compute-engine/fungrim/loader.ts:85
↓ 3 callersFunctioncollectWildcards
All wildcard symbols (`_…`) appearing in a MathJSON tree.
src/compute-engine/fungrim/loader.ts:75
↓ 3 callersFunctioncolorExprToOklch
* Convert a typed color expression to an `OklchColor`, preserving wide-gamut * components for Oklab/Oklch inputs (no sRGB pinch point). Returns `null
src/compute-engine/library/colors.ts:165
↓ 3 callersFunctioncompileGuards
( assumptions: MathJSON, variables: ReadonlyArray<string> )
scripts/fungrim/compile-rules.ts:279
↓ 3 callersMethodcompileLambda
* Create a lambda function from an expression * * @param expr - The expression to compile * @param parameters - Parameter names
src/compute-engine/compilation/python-target.ts:687
↓ 3 callersFunctioncomplexAt
( expr: BoxedExpression, x: string, value: number | C )
scripts/rubi/benchmark.ts:133
↓ 3 callersFunctioncomponentExpr
( rational: Rational, radical: number )
src/compute-engine/boxed-expression/serialize.ts:692
↓ 3 callersFunctioncomponentToExpression
Serialize one exact component `rational · √radical` to MathJSON (the * shapes historically produced by `ExactNumericValue.toJSON()` for real * value
src/compute-engine/numeric-value/exact-numeric-value.ts:1486
↓ 3 callersFunctioncomponentToString
String form of one exact component `rational · √radical` (the shapes * historically produced by `ExactNumericValue.toString()` for real values).
src/compute-engine/numeric-value/exact-numeric-value.ts:1456
↓ 3 callersFunctioncomputeBernoulliEven
( n: number, deadline?: number )
src/compute-engine/numerics/special-functions.ts:691
↓ 3 callersFunctioncomputeNullSpaceBasis
* Return a basis of the null space of A as row vectors.
src/compute-engine/library/linear-algebra.ts:2407
↓ 3 callersFunctionconditionValue
* Evaluate a condition predicate at a concrete value. Returns `true`/`false` * for a decided boolean, `undefined` when it does not reduce to a boolea
src/compute-engine/boxed-expression/solve-domain.ts:956
↓ 3 callersFunctionconj
(a: Complex, b: Complex)
src/compute-engine/numerics/numeric-complex.ts:404
↓ 3 callersFunctionconstructibleValues
( operator: string, x: Expression | undefined )
src/compute-engine/boxed-expression/trigonometry.ts:682
↓ 3 callersFunctioncontainsSelfReference
( expr: Expression, seqName: string )
src/compute-engine/sequence.ts:652
↓ 3 callersFunctionconvertUnit
( value: number, fromUnit: string, toUnit: string )
src/compute-engine/numerics/unit-data.ts:379
↓ 3 callersFunctioncorrectDigits
Derive the number of correct significant digits from relative error.
test/big-decimal/comprehensive-benchmark.ts:80
↓ 3 callersFunctioncountBy
(xs: ReadonlyArray<T>, key: (x: T) => string)
scripts/fungrim/apply-solve-templates.ts:299
↓ 3 callersFunctioncountVariables
(e: Expression)
src/compute-engine/boxed-expression/solve-linear-system.ts:36
↓ 3 callersFunctioncreateErrorExpression
( engine: ValidationHost, message: string | string[], where?: string )
src/compute-engine/engine-validation-entrypoints.ts:18
↓ 3 callersFunctionddDivD
(a: DD, b: number)
src/compute-engine/numerics/special-functions.ts:2229
↓ 3 callersFunctionddMulD
(a: DD, b: number)
src/compute-engine/numerics/special-functions.ts:2224
↓ 3 callersFunctiondeclareSyntheticHeads
( ce: ComputeEngine, headCount: number = SYNTHETIC_HEAD_COUNT )
test/compute-engine/rule-dispatch-corpus.ts:271
↓ 3 callersFunctiondedupePairsLocal
(pairs: [bigint, bigint][])
test/compute-engine/diophantine.test.ts:379
↓ 3 callersFunctiondeterministicRandom
(seed: number)
src/compute-engine/numerics/random.ts:15
↓ 3 callersFunctiondictEngine
()
test/compute-engine/parser-component-access.test.ts:124
↓ 3 callersFunctiondictionaryFromEntries
( dict: Record<string, MathJsonExpression> )
src/math-json/utils.ts:252
↓ 3 callersFunctiondigamma
(x: number)
src/compute-engine/numerics/special-functions.ts:1428
↓ 3 callersFunctiondigitsCorrect
* Number of correct significant digits of `actual` against the 60-digit * reference `ref` (via the relative error, computed in BigDecimal).
test/compute-engine/internals/special-functions-bignum.test.ts:61
↓ 3 callersFunctiondiv
(num: Expression, denom: number | Expression)
src/compute-engine/boxed-expression/arithmetic-mul-div.ts:890
↓ 3 callersMethoddivExactInteger
Divide every coefficient by `d` exactly (throws if any is not divisible).
src/compute-engine/boxed-expression/multivariate-poly.ts:150
↓ 3 callersFunctiondomainToType
(expr: Expression)
src/compute-engine/boxed-expression/utils.ts:154
↓ 3 callersFunctiondot
* Dot product of two vectors
src/compute-engine/library/linear-algebra.ts:2157
↓ 3 callersFunctiondurandKernerRoots
( coeffs: number[], deadline?: number )
src/compute-engine/numerics/polynomial-roots.ts:12
↓ 3 callersFunctioneither
* Any of the passed expresssions may match * * Creates a huge this | this | that | that match * @param {(RegExp | string)[] } args * @returns {str
src/cortex/highlight-js-mode.js:36
↓ 3 callersFunctionempty
(a: number[])
test/compute-engine/compile-interval-glsl.test.ts:103
↓ 3 callersFunctionentryFields
Read optional union-member fields off an entry without narrowing on `kind`.
src/compute-engine/latex-syntax/dictionary/definitions.ts:78
↓ 3 callersFunctionenumerateInteger2
* Tight enclosure of an integer-valued binary function over the integer grid * spanned by two intervals, by enumerating every grid point. Returns `nu
src/compute-engine/interval/elementary.ts:911
↓ 3 callersFunctionerf
(x: number)
src/compute-engine/numerics/special-functions.ts:415
↓ 3 callersMethoderr
(error: string | Error)
src/common/result.ts:45
↓ 3 callersMethoderrorAtToken
(token: Token, message: string, suggestion?: string)
src/common/type/parser.ts:176
↓ 3 callersFunctionescapeChars
(str)
plugins/grok-theme/index.mjs:1374
↓ 3 callersFunctionevalDeriv
(z: Complex)
src/compute-engine/symbolic/antiderivative.ts:2206
↓ 3 callersFunctionevalVarModP
(a: MPoly, i: number, value: bigint, p: bigint)
src/compute-engine/boxed-expression/multivariate-gcd.ts:397
↓ 3 callersFunctionevaluateStatements
( ce: ComputeEngine, ops: Iterable<Expression> )
src/compute-engine/function-utils.ts:312
↓ 3 callersFunctionexactMean
(ce: ComputeEngine, vals: Expression[])
src/compute-engine/library/statistics.ts:704
↓ 3 callersFunctionexpandProducts
( ce: ComputeEngine, ops: ReadonlyArray<Expression> )
src/compute-engine/boxed-expression/arithmetic-mul-div.ts:1280
↓ 3 callersMethodexpectChar
(expected: string)
src/common/json5.ts:299
↓ 3 callersFunctionexpectNoLinearSolution
(a: bigint[], c: bigint)
test/compute-engine/diophantine.test.ts:235
↓ 3 callersFunctionexplainExpression
( expr: Expression, operation: ExplainOperation = 'simplify', options?: ExplainOptions )
src/compute-engine/boxed-expression/explain.ts:48
↓ 3 callersFunctionexpression
( s: string, i: number )
src/math-json/parse-sympy.ts:355
↓ 3 callersFunctionexpressionError
(latex: string)
test/utils.ts:259
↓ 3 callersFunctionextGcd
* Extended Euclidean algorithm: returns `[g, x, y]` with `a·x + b·y = g`, * where `g = gcd(a, b)` (its sign follows `a`/`b`; callers that need a * n
src/compute-engine/library/number-theory.ts:1153
↓ 3 callersFunctionextendedGcd
( a: bigint, b: bigint )
src/compute-engine/numerics/diophantine.ts:151
↓ 3 callersFunctionextractConstantTerm
* Extract the constant term (terms not containing any of the variables).
src/compute-engine/boxed-expression/solve-linear-system.ts:280
← previousnext →1,401–1,500 of 5,294, ranked by callers