@cortex-js/compute-engine 0.54.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compile.esm.js +24412 -0
- package/dist/compile.min.esm.js +941 -0
- package/dist/compile.min.umd.cjs +943 -0
- package/dist/compile.umd.cjs +24437 -0
- package/dist/compute-engine.esm.js +54357 -55186
- package/dist/compute-engine.min.esm.js +90 -99
- package/dist/compute-engine.min.umd.cjs +90 -99
- package/dist/compute-engine.umd.cjs +54581 -55410
- package/dist/core.esm.js +67441 -0
- package/dist/core.min.esm.js +1010 -0
- package/dist/core.min.umd.cjs +1012 -0
- package/dist/core.umd.cjs +67466 -0
- package/dist/interval.esm.js +13287 -0
- package/dist/interval.min.esm.js +18 -0
- package/dist/interval.min.umd.cjs +20 -0
- package/dist/interval.umd.cjs +13312 -0
- package/dist/latex-syntax.esm.js +14977 -0
- package/dist/latex-syntax.min.esm.js +7 -0
- package/dist/latex-syntax.min.umd.cjs +9 -0
- package/dist/latex-syntax.umd.cjs +15002 -0
- package/dist/math-json.esm.js +2 -2
- package/dist/math-json.min.esm.js +2 -2
- package/dist/math-json.min.umd.cjs +2 -2
- package/dist/math-json.umd.cjs +2 -2
- package/dist/numerics.esm.js +8618 -0
- package/dist/numerics.min.esm.js +5 -0
- package/dist/numerics.min.umd.cjs +7 -0
- package/dist/numerics.umd.cjs +8643 -0
- package/dist/types/big-decimal/big-decimal.d.ts +191 -0
- package/dist/types/big-decimal/index.d.ts +2 -0
- package/dist/types/big-decimal/transcendentals.d.ts +56 -0
- package/dist/types/big-decimal/utils.d.ts +86 -0
- package/dist/types/common/ansi-codes.d.ts +1 -1
- package/dist/types/common/configuration-change.d.ts +1 -1
- package/dist/types/common/fuzzy-string-match.d.ts +1 -1
- package/dist/types/common/grapheme-splitter.d.ts +1 -1
- package/dist/types/common/interruptible.d.ts +1 -1
- package/dist/types/common/one-of.d.ts +1 -1
- package/dist/types/common/signals.d.ts +1 -1
- package/dist/types/common/type/ast-nodes.d.ts +1 -1
- package/dist/types/common/type/boxed-type.d.ts +1 -1
- package/dist/types/common/type/lexer.d.ts +1 -1
- package/dist/types/common/type/parse.d.ts +1 -1
- package/dist/types/common/type/parser.d.ts +1 -1
- package/dist/types/common/type/primitive.d.ts +1 -1
- package/dist/types/common/type/reduce.d.ts +1 -1
- package/dist/types/common/type/serialize.d.ts +1 -1
- package/dist/types/common/type/subtype.d.ts +1 -1
- package/dist/types/common/type/type-builder.d.ts +1 -1
- package/dist/types/common/type/types.d.ts +1 -1
- package/dist/types/common/type/utils.d.ts +1 -1
- package/dist/types/common/utils.d.ts +1 -1
- package/dist/types/compile.d.ts +10 -0
- package/dist/types/compute-engine/assume.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/abstract-boxed-expression.d.ts +45 -6
- package/dist/types/compute-engine/boxed-expression/apply.d.ts +4 -4
- package/dist/types/compute-engine/boxed-expression/arithmetic-add.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/arithmetic-mul-div.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/arithmetic-power.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/ascii-math.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/box.d.ts +2 -2
- package/dist/types/compute-engine/boxed-expression/boxed-dictionary.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-function.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-number.d.ts +5 -5
- package/dist/types/compute-engine/boxed-expression/boxed-operator-definition.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-patterns.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-string.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-tensor.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-value-definition.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/cache.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/canonical-utils.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/canonical.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/compare.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/constants.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/expand.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/factor.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/flatten.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/hold.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/inequality-bounds.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/init-lazy-refs.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/invisible-operator.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/match.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/negate.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/numerics.d.ts +4 -4
- package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/pattern-utils.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/polynomial-degree.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/polynomials.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/predicates.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/rules.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/sgn.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/simplify.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/solve-linear-system.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/solve.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/stochastic-equal.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/trigonometry.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/type-guards.d.ts +1 -13
- package/dist/types/compute-engine/boxed-expression/utils.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/validate.d.ts +1 -1
- package/dist/types/compute-engine/collection-utils.d.ts +3 -3
- package/dist/types/compute-engine/compilation/base-compiler.d.ts +1 -1
- package/dist/types/compute-engine/compilation/compile-expression.d.ts +1 -1
- package/dist/types/compute-engine/compilation/glsl-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/gpu-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/interval-javascript-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/javascript-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/python-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/types.d.ts +1 -1
- package/dist/types/compute-engine/compilation/wgsl-target.d.ts +1 -1
- package/dist/types/compute-engine/cost-function.d.ts +1 -1
- package/dist/types/compute-engine/engine-assumptions.d.ts +1 -1
- package/dist/types/compute-engine/engine-cache.d.ts +1 -1
- package/dist/types/compute-engine/engine-common-symbols.d.ts +1 -1
- package/dist/types/compute-engine/engine-compilation-targets.d.ts +1 -1
- package/dist/types/compute-engine/engine-configuration-lifecycle.d.ts +1 -1
- package/dist/types/compute-engine/engine-declarations.d.ts +1 -1
- package/dist/types/compute-engine/engine-expression-entrypoints.d.ts +4 -4
- package/dist/types/compute-engine/engine-extension-contracts.d.ts +1 -1
- package/dist/types/compute-engine/engine-library-bootstrap.d.ts +1 -4
- package/dist/types/compute-engine/engine-numeric-configuration.d.ts +11 -15
- package/dist/types/compute-engine/engine-runtime-state.d.ts +1 -1
- package/dist/types/compute-engine/engine-scope.d.ts +1 -1
- package/dist/types/compute-engine/engine-sequences.d.ts +1 -1
- package/dist/types/compute-engine/engine-simplification-rules.d.ts +1 -1
- package/dist/types/compute-engine/engine-startup-coordinator.d.ts +1 -1
- package/dist/types/compute-engine/engine-type-resolver.d.ts +1 -1
- package/dist/types/compute-engine/engine-validation-entrypoints.d.ts +2 -2
- package/dist/types/compute-engine/free-functions.d.ts +14 -14
- package/dist/types/compute-engine/function-utils.d.ts +1 -1
- package/dist/types/compute-engine/global-types.d.ts +1 -1
- package/dist/types/compute-engine/index.d.ts +55 -154
- package/dist/types/compute-engine/interval/arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/interval/comparison.d.ts +1 -1
- package/dist/types/compute-engine/interval/elementary.d.ts +1 -1
- package/dist/types/compute-engine/interval/index.d.ts +1 -1
- package/dist/types/compute-engine/interval/trigonometric.d.ts +1 -1
- package/dist/types/compute-engine/interval/types.d.ts +1 -1
- package/dist/types/compute-engine/interval/util.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/default-dictionary.d.ts +37 -0
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-complex.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-linear-algebra.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-statistics.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-units.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/indexed-types.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/latex-syntax.d.ts +113 -0
- package/dist/types/compute-engine/latex-syntax/parse-number.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/parse-symbol.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/parse.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serialize-dms.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serializer.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/types.d.ts +8 -8
- package/dist/types/compute-engine/latex-syntax/utils.d.ts +1 -1
- package/dist/types/compute-engine/library/arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/library/calculus.d.ts +1 -1
- package/dist/types/compute-engine/library/collections.d.ts +1 -1
- package/dist/types/compute-engine/library/colors.d.ts +1 -1
- package/dist/types/compute-engine/library/combinatorics.d.ts +1 -1
- package/dist/types/compute-engine/library/complex.d.ts +1 -1
- package/dist/types/compute-engine/library/control-structures.d.ts +1 -1
- package/dist/types/compute-engine/library/core.d.ts +1 -1
- package/dist/types/compute-engine/library/fractals.d.ts +1 -1
- package/dist/types/compute-engine/library/library.d.ts +3 -3
- package/dist/types/compute-engine/library/linear-algebra.d.ts +1 -1
- package/dist/types/compute-engine/library/logic-analysis.d.ts +1 -1
- package/dist/types/compute-engine/library/logic.d.ts +1 -1
- package/dist/types/compute-engine/library/number-theory.d.ts +1 -1
- package/dist/types/compute-engine/library/polynomials.d.ts +1 -1
- package/dist/types/compute-engine/library/quantity-arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/library/random-expression.d.ts +1 -1
- package/dist/types/compute-engine/library/relational-operator.d.ts +1 -1
- package/dist/types/compute-engine/library/sets.d.ts +1 -1
- package/dist/types/compute-engine/library/statistics.d.ts +1 -1
- package/dist/types/compute-engine/library/trigonometry.d.ts +1 -1
- package/dist/types/compute-engine/library/type-handlers.d.ts +1 -1
- package/dist/types/compute-engine/library/unit-data.d.ts +1 -1
- package/dist/types/compute-engine/library/units.d.ts +1 -1
- package/dist/types/compute-engine/library/utils.d.ts +1 -1
- package/dist/types/compute-engine/numeric-value/big-numeric-value.d.ts +24 -9
- package/dist/types/compute-engine/numeric-value/exact-numeric-value.d.ts +6 -7
- package/dist/types/compute-engine/numeric-value/machine-numeric-value.d.ts +7 -8
- package/dist/types/compute-engine/numeric-value/types.d.ts +8 -8
- package/dist/types/compute-engine/numerics/bigint.d.ts +2 -2
- package/dist/types/compute-engine/numerics/expression.d.ts +1 -1
- package/dist/types/compute-engine/numerics/interval.d.ts +1 -1
- package/dist/types/compute-engine/numerics/linear-algebra.d.ts +4 -0
- package/dist/types/compute-engine/numerics/monte-carlo.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric-bigint.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +4 -4
- package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
- package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
- package/dist/types/compute-engine/numerics/rationals.d.ts +1 -1
- package/dist/types/compute-engine/numerics/richardson.d.ts +1 -1
- package/dist/types/compute-engine/numerics/special-functions.d.ts +27 -1
- package/dist/types/compute-engine/numerics/statistics.d.ts +12 -12
- package/dist/types/compute-engine/numerics/strings.d.ts +1 -1
- package/dist/types/compute-engine/numerics/types.d.ts +2 -15
- package/dist/types/compute-engine/numerics/unit-data.d.ts +1 -1
- package/dist/types/compute-engine/oeis.d.ts +1 -1
- package/dist/types/compute-engine/sequence.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/antiderivative.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/derivative.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/distribute.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/fu-cost.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/fu-transforms.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/fu.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/logic-utils.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-abs.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-divide.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-factorial.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-hyperbolic.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-infinity.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-log.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-logic.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-power.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-product.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-rules.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-sum.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-trig.d.ts +1 -1
- package/dist/types/compute-engine/tensor/tensor-fields.d.ts +1 -1
- package/dist/types/compute-engine/tensor/tensors.d.ts +1 -1
- package/dist/types/compute-engine/types-definitions.d.ts +2 -4
- package/dist/types/compute-engine/types-engine.d.ts +40 -39
- package/dist/types/compute-engine/types-evaluation.d.ts +1 -1
- package/dist/types/compute-engine/types-expression.d.ts +49 -30
- package/dist/types/compute-engine/types-kernel-evaluation.d.ts +1 -1
- package/dist/types/compute-engine/types-kernel-serialization.d.ts +14 -5
- package/dist/types/compute-engine/types-serialization.d.ts +1 -1
- package/dist/types/compute-engine/types.d.ts +1 -1
- package/dist/types/compute-engine.d.ts +6 -3
- package/dist/types/core.d.ts +11 -0
- package/dist/types/interval.d.ts +8 -0
- package/dist/types/latex-syntax.d.ts +14 -0
- package/dist/types/math-json/symbols.d.ts +1 -1
- package/dist/types/math-json/types.d.ts +1 -1
- package/dist/types/math-json/utils.d.ts +1 -1
- package/dist/types/math-json.d.ts +2 -2
- package/dist/types/numerics.d.ts +23 -0
- package/package.json +33 -3
- package/dist/types/compute-engine/engine-latex-dictionary-state.d.ts +0 -13
- package/dist/types/compute-engine/engine-parse-entrypoint.d.ts +0 -7
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
import type { Type, TypeString } from '../common/type/types';
|
|
3
|
-
import type { LatexString } from './latex-syntax/types';
|
|
3
|
+
import type { LatexString, ParseLatexOptions } from './latex-syntax/types';
|
|
4
4
|
import { compile as compileExpr } from './compilation/compile-expression';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare function _setComputeEngineClass(cls: new () => IComputeEngine): void;
|
|
5
|
+
/** @internal Called by the entry point to register a factory that creates
|
|
6
|
+
* the default engine with LatexSyntax pre-configured. */
|
|
7
|
+
export declare function _setDefaultEngineFactory(factory: () => IComputeEngine): void;
|
|
9
8
|
export declare function getDefaultEngine(): IComputeEngine;
|
|
10
|
-
export declare function parse(latex: LatexString
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export declare function parse(latex: LatexString, options?: Partial<ParseLatexOptions> & {
|
|
10
|
+
form?: FormOption;
|
|
11
|
+
}): Expression;
|
|
12
|
+
export declare function expr(expr: ExpressionInput, options?: {
|
|
13
|
+
form?: FormOption;
|
|
14
|
+
scope?: Scope;
|
|
15
|
+
}): Expression;
|
|
16
|
+
export declare function simplify(expr: LatexString | ExpressionInput, options?: Partial<SimplifyOptions>): Expression;
|
|
13
17
|
export declare function evaluate(expr: LatexString | ExpressionInput): Expression;
|
|
14
18
|
export declare function N(expr: LatexString | ExpressionInput): Expression;
|
|
15
19
|
export declare function declare(id: string, def: Type | TypeString | Partial<SymbolDefinition>): void;
|
|
@@ -24,10 +28,6 @@ export declare function expand(expr: LatexString | ExpressionInput): Expression;
|
|
|
24
28
|
export declare function solve(expr: LatexString | ExpressionInput, vars?: string | Iterable<string> | Expression | Iterable<Expression>): null | ReadonlyArray<Expression> | Record<string, Expression> | Array<Record<string, Expression>>;
|
|
25
29
|
export declare function expandAll(expr: LatexString | ExpressionInput): Expression;
|
|
26
30
|
export declare function factor(expr: LatexString | ExpressionInput): Expression;
|
|
27
|
-
export declare function compile<T extends string = 'javascript'>(expr: LatexString | ExpressionInput, options: Parameters<typeof compileExpr>[1] & {
|
|
28
|
-
to?: T;
|
|
29
|
-
realOnly: true;
|
|
30
|
-
}): CompilationResult<T, number>;
|
|
31
31
|
export declare function compile<T extends string = 'javascript'>(expr: LatexString | ExpressionInput, options?: Parameters<typeof compileExpr>[1] & {
|
|
32
32
|
to?: T;
|
|
33
|
-
}):
|
|
33
|
+
}): ReturnType<typeof compileExpr>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export type * from './types-serialization';
|
|
3
3
|
export type { ValueDefinition, SequenceDefinition, SequenceStatus, SequenceInfo, OEISSequenceInfo, OEISOptions, OperatorDefinition, BaseDefinition, SimplifyOptions, SymbolDefinition, SymbolDefinitions, LibraryDefinition, AngularUnit, Sign, BaseCollectionHandlers, IndexedCollectionHandlers, CollectionHandlers, TaggedValueDefinition, TaggedOperatorDefinition, BoxedDefinition, BoxedBaseDefinition, BoxedValueDefinition, OperatorDefinitionFlags, BoxedOperatorDefinition, } from './types-definitions';
|
|
4
4
|
export type * from './types-evaluation';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/* 0.
|
|
2
|
-
import {
|
|
1
|
+
/* 0.55.0 */
|
|
2
|
+
import { BigDecimal } from '../big-decimal';
|
|
3
3
|
import { Type, TypeResolver, TypeString } from '../common/type/types';
|
|
4
4
|
import { BoxedType } from '../common/type/boxed-type';
|
|
5
5
|
import type { OneOf } from '../common/one-of';
|
|
6
6
|
import type { ConfigurationChangeListener } from '../common/configuration-change';
|
|
7
7
|
import type { MathJsonExpression, MathJsonSymbol, MathJsonNumberObject } from '../math-json/types';
|
|
8
|
-
import type { ValueDefinition, OperatorDefinition, AngularUnit, AssignValue, AssumeResult, Expression, BoxedRule, BoxedRuleSet, BoxedSubstitution, CanonicalOptions, Metadata, Rule, Scope, EvalContext, ExpressionInput, IComputeEngine, BoxedDefinition, SymbolDefinition, SequenceDefinition, SequenceStatus, SequenceInfo, OEISSequenceInfo, OEISOptions, LibraryDefinition } from './global-types';
|
|
9
|
-
import type {
|
|
10
|
-
import { type IndexedLatexDictionary } from './latex-syntax/dictionary/definitions';
|
|
8
|
+
import type { ValueDefinition, OperatorDefinition, AngularUnit, AssignValue, AssumeResult, Expression, BoxedRule, BoxedRuleSet, BoxedSubstitution, CanonicalOptions, Metadata, Rule, Scope, EvalContext, ExpressionInput, IComputeEngine, ILatexSyntax, BoxedDefinition, SymbolDefinition, SequenceDefinition, SequenceStatus, SequenceInfo, OEISSequenceInfo, OEISOptions, LibraryDefinition } from './global-types';
|
|
9
|
+
import type { LibraryCategory, ParseLatexOptions } from './latex-syntax/types';
|
|
11
10
|
import type { BigNum, Rational } from './numerics/types';
|
|
12
11
|
import { ExactNumericValueData, NumericValue, NumericValueData } from './numeric-value/types';
|
|
13
12
|
import type { FormOption } from './types-serialization';
|
|
@@ -15,9 +14,8 @@ import { validatePattern } from './boxed-expression/boxed-patterns';
|
|
|
15
14
|
import './boxed-expression/init-lazy-refs';
|
|
16
15
|
import { factorPerfectSquare, factorDifferenceOfSquares, factorQuadratic, factorPolynomial } from './boxed-expression/factor';
|
|
17
16
|
import './boxed-expression/serialize';
|
|
18
|
-
import { type ParseEntrypointOptions } from './engine-parse-entrypoint';
|
|
19
17
|
export type * from './global-types';
|
|
20
|
-
export { parse,
|
|
18
|
+
export { parse, expr, simplify, evaluate, N, declare, assign, expand, expandAll, factor, solve, compile, getDefaultEngine, } from './free-functions';
|
|
21
19
|
export { validatePattern };
|
|
22
20
|
export { factorPerfectSquare, factorDifferenceOfSquares, factorQuadratic, factorPolynomial, };
|
|
23
21
|
export type { CompileTarget, CompiledOperators, CompiledFunctions, CompilationOptions, CompilationResult, LanguageTarget, TargetSource, CompiledFunction, } from './compilation/types';
|
|
@@ -44,24 +42,28 @@ import { fu as _fu } from './symbolic/fu';
|
|
|
44
42
|
* ce = MathfieldElement.computeEngine
|
|
45
43
|
* ```
|
|
46
44
|
*
|
|
47
|
-
* Use the instance to create boxed expressions with `ce.
|
|
45
|
+
* Use the instance to create boxed expressions with `ce.expr()`.
|
|
48
46
|
*
|
|
49
47
|
* ```js
|
|
50
48
|
* const ce = new ComputeEngine();
|
|
51
49
|
*
|
|
52
|
-
* let expr = ce.
|
|
53
|
-
* console.log(expr.N().
|
|
50
|
+
* let expr = ce.expr(["Power", "ExponentialE", ["Multiply", "ImaginaryUnit", "Pi"]]);
|
|
51
|
+
* console.log(expr.N().toString());
|
|
54
52
|
* // ➔ "-1"
|
|
55
53
|
*
|
|
56
|
-
* expr = ce.
|
|
57
|
-
* console.log(expr.evaluate().
|
|
58
|
-
* // ➔ "a^2 +
|
|
54
|
+
* expr = ce.expr(["Expand", ["Power", ["Add", "a", "b"], 2]]);
|
|
55
|
+
* console.log(expr.evaluate().toString());
|
|
56
|
+
* // ➔ "a^2 + 2ab + b^2"
|
|
59
57
|
* ```
|
|
60
58
|
*
|
|
61
59
|
* @category Compute Engine
|
|
62
60
|
*
|
|
63
61
|
*/
|
|
64
62
|
export declare class ComputeEngine implements IComputeEngine {
|
|
63
|
+
/** @internal Factory for creating LatexSyntax instances. Registered by the
|
|
64
|
+
* full entry point (compute-engine.ts). When set, `new ComputeEngine()`
|
|
65
|
+
* lazily creates a LatexSyntax if none was provided in options. */
|
|
66
|
+
static _latexSyntaxFactory: (() => ILatexSyntax) | null;
|
|
65
67
|
readonly True: Expression;
|
|
66
68
|
readonly False: Expression;
|
|
67
69
|
readonly Pi: Expression;
|
|
@@ -77,17 +79,6 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
77
79
|
readonly PositiveInfinity: Expression;
|
|
78
80
|
readonly NegativeInfinity: Expression;
|
|
79
81
|
readonly ComplexInfinity: Expression;
|
|
80
|
-
/** The symbol separating the whole part of a number from its fractional
|
|
81
|
-
* part in a LaTeX string.
|
|
82
|
-
*
|
|
83
|
-
* Commonly a period (`.`) in English, but a comma (`,`) in many European
|
|
84
|
-
* languages. For the comma, use `"{,}"` so that the spacing is correct.
|
|
85
|
-
*
|
|
86
|
-
* Note that this is a LaTeX string and is used when parsing or serializing
|
|
87
|
-
* LaTeX. MathJSON always uses a period.
|
|
88
|
-
*
|
|
89
|
-
* */
|
|
90
|
-
decimalSeparator: LatexString;
|
|
91
82
|
/** @internal */
|
|
92
83
|
private _numericConfiguration;
|
|
93
84
|
/** @internal */
|
|
@@ -120,20 +111,6 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
120
111
|
get contextStack(): ReadonlyArray<EvalContext>;
|
|
121
112
|
set contextStack(stack: ReadonlyArray<EvalContext>);
|
|
122
113
|
/** @internal */
|
|
123
|
-
get _BIGNUM_NAN(): Decimal;
|
|
124
|
-
/** @internal */
|
|
125
|
-
get _BIGNUM_ZERO(): Decimal;
|
|
126
|
-
/** @internal */
|
|
127
|
-
get _BIGNUM_ONE(): Decimal;
|
|
128
|
-
/** @internal */
|
|
129
|
-
get _BIGNUM_TWO(): Decimal;
|
|
130
|
-
/** @internal */
|
|
131
|
-
get _BIGNUM_HALF(): Decimal;
|
|
132
|
-
/** @internal */
|
|
133
|
-
get _BIGNUM_PI(): Decimal;
|
|
134
|
-
/** @internal */
|
|
135
|
-
get _BIGNUM_NEGATIVE_ONE(): Decimal;
|
|
136
|
-
/** @internal */
|
|
137
114
|
get _typeResolver(): TypeResolver;
|
|
138
115
|
/**
|
|
139
116
|
* Declare a new type in the current scope.
|
|
@@ -173,55 +150,13 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
173
150
|
* A symbol table defines how to evaluate and manipulate symbols.
|
|
174
151
|
*
|
|
175
152
|
*/
|
|
176
|
-
/** @internal */
|
|
177
|
-
private _latexDictionaryState;
|
|
178
153
|
static getStandardLibrary(categories?: LibraryCategory[] | LibraryCategory | 'all'): readonly LibraryDefinition[];
|
|
179
|
-
/**
|
|
180
|
-
* Return a LaTeX dictionary suitable for the specified category, or `"all"`
|
|
181
|
-
* for all categories (`"arithmetic"`, `"algebra"`, etc...).
|
|
182
|
-
*
|
|
183
|
-
* A LaTeX dictionary is needed to translate between LaTeX and MathJSON.
|
|
184
|
-
*
|
|
185
|
-
* Each entry in the dictionary indicate how a LaTeX token (or string of
|
|
186
|
-
* tokens) should be parsed into a MathJSON expression.
|
|
187
|
-
*
|
|
188
|
-
* For example an entry can define that the `\pi` LaTeX token should map to the
|
|
189
|
-
* symbol `"Pi"`, or that the token `-` should map to the function
|
|
190
|
-
* `["Negate",...]` when in a prefix position and to the function
|
|
191
|
-
* `["Subtract", ...]` when in an infix position.
|
|
192
|
-
*
|
|
193
|
-
* Furthermore, the information in each dictionary entry is used to serialize
|
|
194
|
-
* the LaTeX string corresponding to a MathJSON expression.
|
|
195
|
-
*
|
|
196
|
-
* Use with `ce.latexDictionary` to set the dictionary. You can complement
|
|
197
|
-
* it with your own definitions, for example with:
|
|
198
|
-
*
|
|
199
|
-
* ```ts
|
|
200
|
-
* ce.latexDictionary = [
|
|
201
|
-
* ...ce.getLatexDictionary("all"),
|
|
202
|
-
* {
|
|
203
|
-
* kind: "function",
|
|
204
|
-
* symbolTrigger: "concat",
|
|
205
|
-
* parse: "Concatenate"
|
|
206
|
-
* }
|
|
207
|
-
* ];
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
static getLatexDictionary(domain?: LibraryCategory | 'all'): readonly Readonly<LatexDictionaryEntry>[];
|
|
211
154
|
/**
|
|
212
155
|
* Construct a new `ComputeEngine` instance.
|
|
213
156
|
*
|
|
214
157
|
* Symbols tables define functions, constants and variables (in `options.ids`).
|
|
215
158
|
* If no table is provided the MathJSON Standard Library is used (`ComputeEngine.getStandardLibrary()`)
|
|
216
159
|
*
|
|
217
|
-
* The LaTeX syntax dictionary is defined in `options.latexDictionary`.
|
|
218
|
-
*
|
|
219
|
-
* The order of the dictionaries matter: the definitions from the later ones
|
|
220
|
-
* override the definitions from earlier ones. The first dictionary should
|
|
221
|
-
* be the `'core'` dictionary which include basic definitions that are used
|
|
222
|
-
* by later dictionaries.
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
160
|
* @param options.precision Specific how many digits of precision
|
|
226
161
|
* for the numeric calculations. Default is 300.
|
|
227
162
|
*
|
|
@@ -237,12 +172,10 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
237
172
|
libraries?: readonly (string | LibraryDefinition)[];
|
|
238
173
|
precision?: number | 'machine';
|
|
239
174
|
tolerance?: number | 'auto';
|
|
175
|
+
latexSyntax?: ILatexSyntax;
|
|
240
176
|
});
|
|
241
177
|
toJSON(): string;
|
|
242
178
|
[Symbol.toStringTag]: string;
|
|
243
|
-
get latexDictionary(): Readonly<LatexDictionaryEntry[]>;
|
|
244
|
-
set latexDictionary(dic: Readonly<LatexDictionaryEntry[]>);
|
|
245
|
-
get _indexedLatexDictionary(): IndexedLatexDictionary;
|
|
246
179
|
/** After the configuration of the engine has changed, clear the caches
|
|
247
180
|
* so that new values can be recalculated.
|
|
248
181
|
*
|
|
@@ -253,64 +186,16 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
253
186
|
_reset(): void;
|
|
254
187
|
/** @internal */
|
|
255
188
|
listenToConfigurationChange(tracker: ConfigurationChangeListener): () => void;
|
|
256
|
-
/**
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
* This allows you to compile mathematical expressions to different target
|
|
260
|
-
* languages beyond the built-in JavaScript and GLSL targets.
|
|
261
|
-
*
|
|
262
|
-
* @param name - The name of the target (e.g., 'python', 'wgsl', 'matlab')
|
|
263
|
-
* @param target - The LanguageTarget implementation
|
|
264
|
-
*
|
|
265
|
-
* @example
|
|
266
|
-
* ```typescript
|
|
267
|
-
* import { ComputeEngine, GLSLTarget } from '@cortex-js/compute-engine';
|
|
268
|
-
*
|
|
269
|
-
* const ce = new ComputeEngine();
|
|
270
|
-
*
|
|
271
|
-
* // Register a custom target
|
|
272
|
-
* class PythonTarget implements LanguageTarget {
|
|
273
|
-
* // Implementation...
|
|
274
|
-
* }
|
|
275
|
-
*
|
|
276
|
-
* ce.registerCompilationTarget('python', new PythonTarget());
|
|
277
|
-
*
|
|
278
|
-
* // Use the custom target
|
|
279
|
-
* const expr = ce.parse('x^2 + y^2');
|
|
280
|
-
* const code = compile(expr, { to: 'python' });
|
|
281
|
-
* ```
|
|
282
|
-
*
|
|
283
|
-
* Throws if:
|
|
284
|
-
* - `name` is empty or contains whitespace
|
|
285
|
-
* - `target` does not implement the required `LanguageTarget` methods
|
|
286
|
-
*/
|
|
287
|
-
registerCompilationTarget(name: string, target: LanguageTarget<Expression>): void;
|
|
288
|
-
/**
|
|
289
|
-
* Get a registered compilation target by name.
|
|
290
|
-
*
|
|
291
|
-
* @param name - The name of the target (e.g., 'javascript', 'glsl', 'python')
|
|
292
|
-
* @returns The LanguageTarget implementation, or undefined if not found
|
|
293
|
-
*/
|
|
189
|
+
/** @internal Compile a boxed expression. */
|
|
190
|
+
_compile(expr: Expression, options?: Parameters<typeof _compile>[1]): ReturnType<typeof _compile>;
|
|
191
|
+
/** @internal Get a registered compilation target by name. */
|
|
294
192
|
getCompilationTarget(name: string): LanguageTarget<Expression> | undefined;
|
|
295
|
-
/**
|
|
296
|
-
* Return the names of all registered compilation targets.
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* ```typescript
|
|
300
|
-
* const ce = new ComputeEngine();
|
|
301
|
-
* console.log(ce.listCompilationTargets());
|
|
302
|
-
* // → ['javascript', 'glsl', 'wgsl', 'interval-js']
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
193
|
+
/** @internal Return the names of all registered compilation targets. */
|
|
305
194
|
listCompilationTargets(): string[];
|
|
306
|
-
/**
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
* @param name - The name of the target to remove
|
|
310
|
-
*/
|
|
195
|
+
/** @internal Register a compilation target. */
|
|
196
|
+
registerCompilationTarget(name: string, target: LanguageTarget<Expression>): void;
|
|
197
|
+
/** @internal Remove a registered compilation target. */
|
|
311
198
|
unregisterCompilationTarget(name: string): void;
|
|
312
|
-
/** @internal Compile a boxed expression. */
|
|
313
|
-
_compile(expr: Expression, options?: Parameters<typeof _compile>[1]): ReturnType<typeof _compile>;
|
|
314
199
|
get precision(): number;
|
|
315
200
|
/** The precision, or number of significant digits, of numeric
|
|
316
201
|
* calculations.
|
|
@@ -415,7 +300,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
415
300
|
* How close to 0 the number has to be to be considered 0 is determined by {@linkcode tolerance}.
|
|
416
301
|
*/
|
|
417
302
|
chop(n: number): number;
|
|
418
|
-
chop(n:
|
|
303
|
+
chop(n: BigDecimal): BigDecimal | 0;
|
|
419
304
|
chop(n: Complex): Complex | 0;
|
|
420
305
|
/** Create an arbitrary precision number.
|
|
421
306
|
*
|
|
@@ -467,7 +352,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
467
352
|
* - `sign()` (1, 0 or -1)
|
|
468
353
|
*
|
|
469
354
|
*/
|
|
470
|
-
bignum(a:
|
|
355
|
+
bignum(a: string | number | bigint | BigDecimal): BigDecimal;
|
|
471
356
|
/** Create a complex number.
|
|
472
357
|
* The return value is an object with methods to perform arithmetic
|
|
473
358
|
* operations:
|
|
@@ -513,7 +398,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
513
398
|
* - `isZero()`
|
|
514
399
|
* - `sign()` (1, 0 or -1)
|
|
515
400
|
*/
|
|
516
|
-
complex(a: number |
|
|
401
|
+
complex(a: number | BigDecimal | Complex, b?: number | BigDecimal): Complex;
|
|
517
402
|
/**
|
|
518
403
|
*
|
|
519
404
|
* Create a Numeric Value.
|
|
@@ -586,7 +471,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
586
471
|
maxDepth?: number;
|
|
587
472
|
}): void;
|
|
588
473
|
/**
|
|
589
|
-
* Use `ce.
|
|
474
|
+
* Use `ce.expr(name)` instead
|
|
590
475
|
* @internal */
|
|
591
476
|
_getSymbolValue(id: MathJsonSymbol): Expression | undefined;
|
|
592
477
|
/**
|
|
@@ -747,10 +632,35 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
747
632
|
/** Return a boxed expression from a number, string or expression input.
|
|
748
633
|
* Calls `ce.function()`, `ce.number()` or `ce.symbol()` as appropriate.
|
|
749
634
|
*/
|
|
635
|
+
expr(expr: NumericValue | ExpressionInput, options?: {
|
|
636
|
+
form?: FormOption;
|
|
637
|
+
scope?: Scope | undefined;
|
|
638
|
+
}): Expression;
|
|
639
|
+
/** @deprecated Use `expr()` instead. */
|
|
750
640
|
box(expr: NumericValue | ExpressionInput, options?: {
|
|
751
641
|
form?: FormOption;
|
|
752
642
|
scope?: Scope | undefined;
|
|
753
643
|
}): Expression;
|
|
644
|
+
/** @internal LatexSyntax instance for parse/serialize. */
|
|
645
|
+
private _latexSyntax?;
|
|
646
|
+
/** The LatexSyntax instance, lazily created if a factory is registered.
|
|
647
|
+
* `undefined` only when no LatexSyntax was provided and no factory exists. */
|
|
648
|
+
get latexSyntax(): ILatexSyntax | undefined;
|
|
649
|
+
/** @internal Returns the LatexSyntax instance, lazily creating one
|
|
650
|
+
* if a factory is registered. Throws if no LatexSyntax is available. */
|
|
651
|
+
_requireLatexSyntax(): ILatexSyntax;
|
|
652
|
+
/**
|
|
653
|
+
* Parse a LaTeX string and return a boxed expression.
|
|
654
|
+
*
|
|
655
|
+
* Uses the engine's symbol definitions for accurate parsing
|
|
656
|
+
* (e.g., recognizing `f` as a function).
|
|
657
|
+
*/
|
|
658
|
+
parse(latex: string, options?: Partial<ParseLatexOptions> & {
|
|
659
|
+
form?: FormOption;
|
|
660
|
+
}): Expression;
|
|
661
|
+
parse(latex: string | null, options?: Partial<ParseLatexOptions> & {
|
|
662
|
+
form?: FormOption;
|
|
663
|
+
}): Expression | null;
|
|
754
664
|
function(name: string, ops: ReadonlyArray<Expression> | ReadonlyArray<MathJsonExpression>, options?: {
|
|
755
665
|
metadata?: Metadata;
|
|
756
666
|
form?: FormOption;
|
|
@@ -758,7 +668,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
758
668
|
}): Expression;
|
|
759
669
|
/**
|
|
760
670
|
*
|
|
761
|
-
* Shortcut for `this.
|
|
671
|
+
* Shortcut for `this.expr(["Error",...])`.
|
|
762
672
|
*
|
|
763
673
|
* The result is canonical.
|
|
764
674
|
*/
|
|
@@ -768,7 +678,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
768
678
|
* Add a `["Hold"]` wrapper to `expr`.
|
|
769
679
|
*/
|
|
770
680
|
hold(expr: ExpressionInput): Expression;
|
|
771
|
-
/** Shortcut for `this.
|
|
681
|
+
/** Shortcut for `this.expr(["Tuple", ...])`
|
|
772
682
|
*
|
|
773
683
|
* The result is canonical.
|
|
774
684
|
*/
|
|
@@ -785,7 +695,7 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
785
695
|
* This function tries to avoid creating a boxed number if `num` corresponds
|
|
786
696
|
* to a common value for which we have a shared instance (-1, 0, NaN, etc...)
|
|
787
697
|
*/
|
|
788
|
-
number(value: number | bigint | string | NumericValue | MathJsonNumberObject |
|
|
698
|
+
number(value: number | bigint | string | NumericValue | MathJsonNumberObject | BigDecimal | Complex | Rational, options?: {
|
|
789
699
|
metadata: Metadata;
|
|
790
700
|
canonical: CanonicalOptions;
|
|
791
701
|
}): Expression;
|
|
@@ -817,15 +727,6 @@ export declare class ComputeEngine implements IComputeEngine {
|
|
|
817
727
|
canonical?: boolean;
|
|
818
728
|
scope?: Scope;
|
|
819
729
|
}): Expression;
|
|
820
|
-
/**
|
|
821
|
-
* Parse a string of LaTeX and return a corresponding `Expression`.
|
|
822
|
-
*
|
|
823
|
-
* If the `form` option is set to `'canonical'` (the default), the result
|
|
824
|
-
* will be canonical.
|
|
825
|
-
*
|
|
826
|
-
*/
|
|
827
|
-
parse(latex: null, options?: ParseEntrypointOptions): null;
|
|
828
|
-
parse(latex: LatexString, options?: ParseEntrypointOptions): Expression;
|
|
829
730
|
/**
|
|
830
731
|
* Return a list of all the assumptions that match a pattern.
|
|
831
732
|
*
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* 0.55.0 */
|
|
2
|
+
* Default LaTeX dictionary assembly.
|
|
3
|
+
*
|
|
4
|
+
* This file imports all individual domain dictionaries and assembles them
|
|
5
|
+
* into a single `LATEX_DICTIONARY` constant. The dictionaries are
|
|
6
|
+
* independently importable -- they do not depend on the engine's library
|
|
7
|
+
* system.
|
|
8
|
+
*/
|
|
9
|
+
import type { LatexDictionary } from '../types';
|
|
10
|
+
import { DEFINITIONS_CORE } from './definitions-core';
|
|
11
|
+
import { DEFINITIONS_SYMBOLS } from './definitions-symbols';
|
|
12
|
+
import { DEFINITIONS_ALGEBRA } from './definitions-algebra';
|
|
13
|
+
import { DEFINITIONS_LOGIC } from './definitions-logic';
|
|
14
|
+
import { DEFINITIONS_SETS } from './definitions-sets';
|
|
15
|
+
import { DEFINITIONS_INEQUALITIES } from './definitions-relational-operators';
|
|
16
|
+
import { DEFINITIONS_ARITHMETIC } from './definitions-arithmetic';
|
|
17
|
+
import { DEFINITIONS_COMPLEX } from './definitions-complex';
|
|
18
|
+
import { DEFINITIONS_TRIGONOMETRY } from './definitions-trigonometry';
|
|
19
|
+
import { DEFINITIONS_CALCULUS } from './definitions-calculus';
|
|
20
|
+
import { DEFINITIONS_LINEAR_ALGEBRA } from './definitions-linear-algebra';
|
|
21
|
+
import { DEFINITIONS_STATISTICS } from './definitions-statistics';
|
|
22
|
+
import { DEFINITIONS_UNITS } from './definitions-units';
|
|
23
|
+
import { DEFINITIONS_OTHERS } from './definitions-other';
|
|
24
|
+
export { DEFINITIONS_CORE, DEFINITIONS_SYMBOLS, DEFINITIONS_ALGEBRA, DEFINITIONS_LOGIC, DEFINITIONS_SETS, DEFINITIONS_INEQUALITIES, DEFINITIONS_ARITHMETIC, DEFINITIONS_COMPLEX, DEFINITIONS_TRIGONOMETRY, DEFINITIONS_CALCULUS, DEFINITIONS_LINEAR_ALGEBRA, DEFINITIONS_STATISTICS, DEFINITIONS_UNITS, DEFINITIONS_OTHERS, };
|
|
25
|
+
export { DEFINITIONS_CORE as CORE_DICTIONARY, DEFINITIONS_SYMBOLS as SYMBOLS_DICTIONARY, DEFINITIONS_ALGEBRA as ALGEBRA_DICTIONARY, DEFINITIONS_LOGIC as LOGIC_DICTIONARY, DEFINITIONS_SETS as SETS_DICTIONARY, DEFINITIONS_INEQUALITIES as INEQUALITIES_DICTIONARY, DEFINITIONS_ARITHMETIC as ARITHMETIC_DICTIONARY, DEFINITIONS_COMPLEX as COMPLEX_DICTIONARY, DEFINITIONS_TRIGONOMETRY as TRIGONOMETRY_DICTIONARY, DEFINITIONS_CALCULUS as CALCULUS_DICTIONARY, DEFINITIONS_LINEAR_ALGEBRA as LINEAR_ALGEBRA_DICTIONARY, DEFINITIONS_STATISTICS as STATISTICS_DICTIONARY, DEFINITIONS_UNITS as UNITS_DICTIONARY, DEFINITIONS_OTHERS as OTHERS_DICTIONARY, };
|
|
26
|
+
/**
|
|
27
|
+
* LaTeX dictionary entries for physics constants that have LaTeX triggers.
|
|
28
|
+
* These were previously inline in the physics library definition.
|
|
29
|
+
*/
|
|
30
|
+
export declare const DEFINITIONS_PHYSICS: LatexDictionary;
|
|
31
|
+
export { DEFINITIONS_PHYSICS as PHYSICS_DICTIONARY };
|
|
32
|
+
/**
|
|
33
|
+
* The complete default LaTeX dictionary, combining all domain dictionaries.
|
|
34
|
+
*
|
|
35
|
+
* This is used as the default dictionary when no custom dictionary is provided.
|
|
36
|
+
*/
|
|
37
|
+
export declare const LATEX_DICTIONARY: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_ALGEBRA: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_ARITHMETIC: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_CALCULUS: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_COMPLEX: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_LINEAR_ALGEBRA: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_LOGIC: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_OTHERS: LatexDictionary;
|
package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_INEQUALITIES: LatexDictionaryEntry[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_SETS: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_STATISTICS: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
export declare const DEFINITIONS_TRIGONOMETRY: LatexDictionary;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 0.
|
|
1
|
+
/* 0.55.0 */
|
|
2
2
|
import { LatexDictionaryEntry } from '../types';
|
|
3
3
|
export type { CommonEntry, IndexedSymbolEntry, IndexedExpressionEntry, IndexedFunctionEntry, IndexedMatchfixEntry, IndexedInfixEntry, IndexedPrefixEntry, IndexedPostfixEntry, IndexedEnvironmentEntry, IndexedLatexDictionaryEntry, IndexedLatexDictionary, } from './indexed-types';
|
|
4
4
|
import type { IndexedSymbolEntry, IndexedExpressionEntry, IndexedFunctionEntry, IndexedMatchfixEntry, IndexedInfixEntry, IndexedPostfixEntry, IndexedEnvironmentEntry, IndexedLatexDictionaryEntry, IndexedLatexDictionary } from './indexed-types';
|