@cortex-js/compute-engine 0.54.1 → 0.55.2

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.
Files changed (258) hide show
  1. package/dist/compile.esm.js +24564 -0
  2. package/dist/compile.min.esm.js +941 -0
  3. package/dist/compile.min.umd.cjs +943 -0
  4. package/dist/compile.umd.cjs +24589 -0
  5. package/dist/compute-engine.esm.js +55471 -56045
  6. package/dist/compute-engine.min.esm.js +90 -99
  7. package/dist/compute-engine.min.umd.cjs +90 -99
  8. package/dist/compute-engine.umd.cjs +55472 -56046
  9. package/dist/core.esm.js +67696 -0
  10. package/dist/core.min.esm.js +1010 -0
  11. package/dist/core.min.umd.cjs +1012 -0
  12. package/dist/core.umd.cjs +67721 -0
  13. package/dist/interval.esm.js +13439 -0
  14. package/dist/interval.min.esm.js +18 -0
  15. package/dist/interval.min.umd.cjs +20 -0
  16. package/dist/interval.umd.cjs +13464 -0
  17. package/dist/latex-syntax.esm.js +15158 -0
  18. package/dist/latex-syntax.min.esm.js +7 -0
  19. package/dist/latex-syntax.min.umd.cjs +9 -0
  20. package/dist/latex-syntax.umd.cjs +15183 -0
  21. package/dist/math-json.esm.js +2 -2
  22. package/dist/math-json.min.esm.js +2 -2
  23. package/dist/math-json.min.umd.cjs +2 -2
  24. package/dist/math-json.umd.cjs +2 -2
  25. package/dist/numerics.esm.js +8618 -0
  26. package/dist/numerics.min.esm.js +5 -0
  27. package/dist/numerics.min.umd.cjs +7 -0
  28. package/dist/numerics.umd.cjs +8643 -0
  29. package/dist/types/big-decimal/big-decimal.d.ts +191 -0
  30. package/dist/types/big-decimal/index.d.ts +2 -0
  31. package/dist/types/big-decimal/transcendentals.d.ts +56 -0
  32. package/dist/types/big-decimal/utils.d.ts +86 -0
  33. package/dist/types/common/ansi-codes.d.ts +1 -1
  34. package/dist/types/common/configuration-change.d.ts +1 -1
  35. package/dist/types/common/fuzzy-string-match.d.ts +1 -1
  36. package/dist/types/common/grapheme-splitter.d.ts +1 -1
  37. package/dist/types/common/interruptible.d.ts +1 -1
  38. package/dist/types/common/one-of.d.ts +1 -1
  39. package/dist/types/common/signals.d.ts +1 -1
  40. package/dist/types/common/type/ast-nodes.d.ts +1 -1
  41. package/dist/types/common/type/boxed-type.d.ts +1 -1
  42. package/dist/types/common/type/lexer.d.ts +1 -1
  43. package/dist/types/common/type/parse.d.ts +1 -1
  44. package/dist/types/common/type/parser.d.ts +1 -1
  45. package/dist/types/common/type/primitive.d.ts +1 -1
  46. package/dist/types/common/type/reduce.d.ts +1 -1
  47. package/dist/types/common/type/serialize.d.ts +1 -1
  48. package/dist/types/common/type/subtype.d.ts +1 -1
  49. package/dist/types/common/type/type-builder.d.ts +1 -1
  50. package/dist/types/common/type/types.d.ts +1 -1
  51. package/dist/types/common/type/utils.d.ts +1 -1
  52. package/dist/types/common/utils.d.ts +1 -1
  53. package/dist/types/compile.d.ts +10 -0
  54. package/dist/types/compute-engine/assume.d.ts +1 -1
  55. package/dist/types/compute-engine/boxed-expression/abstract-boxed-expression.d.ts +45 -6
  56. package/dist/types/compute-engine/boxed-expression/apply.d.ts +4 -4
  57. package/dist/types/compute-engine/boxed-expression/arithmetic-add.d.ts +1 -1
  58. package/dist/types/compute-engine/boxed-expression/arithmetic-mul-div.d.ts +1 -1
  59. package/dist/types/compute-engine/boxed-expression/arithmetic-power.d.ts +1 -1
  60. package/dist/types/compute-engine/boxed-expression/ascii-math.d.ts +1 -1
  61. package/dist/types/compute-engine/boxed-expression/box.d.ts +2 -2
  62. package/dist/types/compute-engine/boxed-expression/boxed-dictionary.d.ts +1 -1
  63. package/dist/types/compute-engine/boxed-expression/boxed-function.d.ts +1 -1
  64. package/dist/types/compute-engine/boxed-expression/boxed-number.d.ts +5 -5
  65. package/dist/types/compute-engine/boxed-expression/boxed-operator-definition.d.ts +1 -1
  66. package/dist/types/compute-engine/boxed-expression/boxed-patterns.d.ts +1 -1
  67. package/dist/types/compute-engine/boxed-expression/boxed-string.d.ts +1 -1
  68. package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +1 -1
  69. package/dist/types/compute-engine/boxed-expression/boxed-tensor.d.ts +1 -1
  70. package/dist/types/compute-engine/boxed-expression/boxed-value-definition.d.ts +1 -1
  71. package/dist/types/compute-engine/boxed-expression/cache.d.ts +1 -1
  72. package/dist/types/compute-engine/boxed-expression/canonical-utils.d.ts +1 -1
  73. package/dist/types/compute-engine/boxed-expression/canonical.d.ts +1 -1
  74. package/dist/types/compute-engine/boxed-expression/compare.d.ts +1 -1
  75. package/dist/types/compute-engine/boxed-expression/constants.d.ts +1 -1
  76. package/dist/types/compute-engine/boxed-expression/expand.d.ts +1 -1
  77. package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
  78. package/dist/types/compute-engine/boxed-expression/factor.d.ts +1 -1
  79. package/dist/types/compute-engine/boxed-expression/flatten.d.ts +1 -1
  80. package/dist/types/compute-engine/boxed-expression/hold.d.ts +1 -1
  81. package/dist/types/compute-engine/boxed-expression/inequality-bounds.d.ts +1 -1
  82. package/dist/types/compute-engine/boxed-expression/init-lazy-refs.d.ts +1 -1
  83. package/dist/types/compute-engine/boxed-expression/invisible-operator.d.ts +1 -1
  84. package/dist/types/compute-engine/boxed-expression/match.d.ts +1 -1
  85. package/dist/types/compute-engine/boxed-expression/negate.d.ts +1 -1
  86. package/dist/types/compute-engine/boxed-expression/numerics.d.ts +4 -4
  87. package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
  88. package/dist/types/compute-engine/boxed-expression/pattern-utils.d.ts +1 -1
  89. package/dist/types/compute-engine/boxed-expression/polynomial-degree.d.ts +1 -1
  90. package/dist/types/compute-engine/boxed-expression/polynomials.d.ts +1 -1
  91. package/dist/types/compute-engine/boxed-expression/predicates.d.ts +1 -1
  92. package/dist/types/compute-engine/boxed-expression/rules.d.ts +1 -1
  93. package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
  94. package/dist/types/compute-engine/boxed-expression/sgn.d.ts +1 -1
  95. package/dist/types/compute-engine/boxed-expression/simplify.d.ts +1 -1
  96. package/dist/types/compute-engine/boxed-expression/solve-linear-system.d.ts +1 -1
  97. package/dist/types/compute-engine/boxed-expression/solve.d.ts +1 -1
  98. package/dist/types/compute-engine/boxed-expression/stochastic-equal.d.ts +1 -1
  99. package/dist/types/compute-engine/boxed-expression/trigonometry.d.ts +1 -1
  100. package/dist/types/compute-engine/boxed-expression/type-guards.d.ts +1 -13
  101. package/dist/types/compute-engine/boxed-expression/utils.d.ts +1 -1
  102. package/dist/types/compute-engine/boxed-expression/validate.d.ts +1 -1
  103. package/dist/types/compute-engine/collection-utils.d.ts +3 -3
  104. package/dist/types/compute-engine/compilation/base-compiler.d.ts +1 -1
  105. package/dist/types/compute-engine/compilation/compile-expression.d.ts +1 -1
  106. package/dist/types/compute-engine/compilation/glsl-target.d.ts +1 -1
  107. package/dist/types/compute-engine/compilation/gpu-target.d.ts +1 -1
  108. package/dist/types/compute-engine/compilation/interval-javascript-target.d.ts +1 -1
  109. package/dist/types/compute-engine/compilation/javascript-target.d.ts +1 -1
  110. package/dist/types/compute-engine/compilation/python-target.d.ts +1 -1
  111. package/dist/types/compute-engine/compilation/types.d.ts +1 -1
  112. package/dist/types/compute-engine/compilation/wgsl-target.d.ts +1 -1
  113. package/dist/types/compute-engine/cost-function.d.ts +1 -1
  114. package/dist/types/compute-engine/engine-assumptions.d.ts +1 -1
  115. package/dist/types/compute-engine/engine-cache.d.ts +1 -1
  116. package/dist/types/compute-engine/engine-common-symbols.d.ts +1 -1
  117. package/dist/types/compute-engine/engine-compilation-targets.d.ts +1 -1
  118. package/dist/types/compute-engine/engine-configuration-lifecycle.d.ts +1 -1
  119. package/dist/types/compute-engine/engine-declarations.d.ts +1 -1
  120. package/dist/types/compute-engine/engine-expression-entrypoints.d.ts +4 -4
  121. package/dist/types/compute-engine/engine-extension-contracts.d.ts +1 -1
  122. package/dist/types/compute-engine/engine-library-bootstrap.d.ts +1 -4
  123. package/dist/types/compute-engine/engine-numeric-configuration.d.ts +11 -15
  124. package/dist/types/compute-engine/engine-runtime-state.d.ts +1 -1
  125. package/dist/types/compute-engine/engine-scope.d.ts +1 -1
  126. package/dist/types/compute-engine/engine-sequences.d.ts +1 -1
  127. package/dist/types/compute-engine/engine-simplification-rules.d.ts +1 -1
  128. package/dist/types/compute-engine/engine-startup-coordinator.d.ts +1 -1
  129. package/dist/types/compute-engine/engine-type-resolver.d.ts +1 -1
  130. package/dist/types/compute-engine/engine-validation-entrypoints.d.ts +2 -2
  131. package/dist/types/compute-engine/free-functions.d.ts +14 -14
  132. package/dist/types/compute-engine/function-utils.d.ts +1 -1
  133. package/dist/types/compute-engine/global-types.d.ts +1 -1
  134. package/dist/types/compute-engine/index.d.ts +55 -154
  135. package/dist/types/compute-engine/interval/arithmetic.d.ts +1 -1
  136. package/dist/types/compute-engine/interval/comparison.d.ts +1 -1
  137. package/dist/types/compute-engine/interval/elementary.d.ts +1 -1
  138. package/dist/types/compute-engine/interval/index.d.ts +1 -1
  139. package/dist/types/compute-engine/interval/trigonometric.d.ts +1 -1
  140. package/dist/types/compute-engine/interval/types.d.ts +1 -1
  141. package/dist/types/compute-engine/interval/util.d.ts +1 -1
  142. package/dist/types/compute-engine/latex-syntax/dictionary/default-dictionary.d.ts +37 -0
  143. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
  144. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
  145. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
  146. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-complex.d.ts +1 -1
  147. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
  148. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-linear-algebra.d.ts +1 -1
  149. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +3 -1
  150. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
  151. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts +1 -1
  152. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
  153. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-statistics.d.ts +1 -1
  154. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
  155. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
  156. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-units.d.ts +1 -1
  157. package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
  158. package/dist/types/compute-engine/latex-syntax/dictionary/indexed-types.d.ts +1 -1
  159. package/dist/types/compute-engine/latex-syntax/latex-syntax.d.ts +113 -0
  160. package/dist/types/compute-engine/latex-syntax/parse-number.d.ts +1 -1
  161. package/dist/types/compute-engine/latex-syntax/parse-symbol.d.ts +1 -1
  162. package/dist/types/compute-engine/latex-syntax/parse.d.ts +11 -1
  163. package/dist/types/compute-engine/latex-syntax/serialize-dms.d.ts +1 -1
  164. package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
  165. package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
  166. package/dist/types/compute-engine/latex-syntax/serializer.d.ts +1 -1
  167. package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
  168. package/dist/types/compute-engine/latex-syntax/types.d.ts +8 -8
  169. package/dist/types/compute-engine/latex-syntax/utils.d.ts +1 -1
  170. package/dist/types/compute-engine/library/arithmetic.d.ts +1 -1
  171. package/dist/types/compute-engine/library/calculus.d.ts +1 -1
  172. package/dist/types/compute-engine/library/collections.d.ts +1 -1
  173. package/dist/types/compute-engine/library/colors.d.ts +1 -1
  174. package/dist/types/compute-engine/library/combinatorics.d.ts +1 -1
  175. package/dist/types/compute-engine/library/complex.d.ts +1 -1
  176. package/dist/types/compute-engine/library/control-structures.d.ts +1 -1
  177. package/dist/types/compute-engine/library/core.d.ts +1 -1
  178. package/dist/types/compute-engine/library/fractals.d.ts +1 -1
  179. package/dist/types/compute-engine/library/library.d.ts +3 -3
  180. package/dist/types/compute-engine/library/linear-algebra.d.ts +1 -1
  181. package/dist/types/compute-engine/library/logic-analysis.d.ts +1 -1
  182. package/dist/types/compute-engine/library/logic.d.ts +1 -1
  183. package/dist/types/compute-engine/library/number-theory.d.ts +1 -1
  184. package/dist/types/compute-engine/library/polynomials.d.ts +1 -1
  185. package/dist/types/compute-engine/library/quantity-arithmetic.d.ts +1 -1
  186. package/dist/types/compute-engine/library/random-expression.d.ts +1 -1
  187. package/dist/types/compute-engine/library/relational-operator.d.ts +1 -1
  188. package/dist/types/compute-engine/library/sets.d.ts +1 -1
  189. package/dist/types/compute-engine/library/statistics.d.ts +1 -1
  190. package/dist/types/compute-engine/library/trigonometry.d.ts +1 -1
  191. package/dist/types/compute-engine/library/type-handlers.d.ts +1 -1
  192. package/dist/types/compute-engine/library/unit-data.d.ts +1 -1
  193. package/dist/types/compute-engine/library/units.d.ts +1 -1
  194. package/dist/types/compute-engine/library/utils.d.ts +1 -1
  195. package/dist/types/compute-engine/numeric-value/big-numeric-value.d.ts +24 -9
  196. package/dist/types/compute-engine/numeric-value/exact-numeric-value.d.ts +6 -7
  197. package/dist/types/compute-engine/numeric-value/machine-numeric-value.d.ts +7 -8
  198. package/dist/types/compute-engine/numeric-value/types.d.ts +8 -8
  199. package/dist/types/compute-engine/numerics/bigint.d.ts +2 -2
  200. package/dist/types/compute-engine/numerics/expression.d.ts +1 -1
  201. package/dist/types/compute-engine/numerics/interval.d.ts +1 -1
  202. package/dist/types/compute-engine/numerics/linear-algebra.d.ts +4 -0
  203. package/dist/types/compute-engine/numerics/monte-carlo.d.ts +1 -1
  204. package/dist/types/compute-engine/numerics/numeric-bigint.d.ts +1 -1
  205. package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +4 -4
  206. package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
  207. package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
  208. package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
  209. package/dist/types/compute-engine/numerics/rationals.d.ts +1 -1
  210. package/dist/types/compute-engine/numerics/richardson.d.ts +1 -1
  211. package/dist/types/compute-engine/numerics/special-functions.d.ts +27 -1
  212. package/dist/types/compute-engine/numerics/statistics.d.ts +12 -12
  213. package/dist/types/compute-engine/numerics/strings.d.ts +1 -1
  214. package/dist/types/compute-engine/numerics/types.d.ts +2 -15
  215. package/dist/types/compute-engine/numerics/unit-data.d.ts +1 -1
  216. package/dist/types/compute-engine/oeis.d.ts +1 -1
  217. package/dist/types/compute-engine/sequence.d.ts +1 -1
  218. package/dist/types/compute-engine/symbolic/antiderivative.d.ts +1 -1
  219. package/dist/types/compute-engine/symbolic/derivative.d.ts +1 -1
  220. package/dist/types/compute-engine/symbolic/distribute.d.ts +1 -1
  221. package/dist/types/compute-engine/symbolic/fu-cost.d.ts +1 -1
  222. package/dist/types/compute-engine/symbolic/fu-transforms.d.ts +1 -1
  223. package/dist/types/compute-engine/symbolic/fu.d.ts +1 -1
  224. package/dist/types/compute-engine/symbolic/logic-utils.d.ts +1 -1
  225. package/dist/types/compute-engine/symbolic/simplify-abs.d.ts +1 -1
  226. package/dist/types/compute-engine/symbolic/simplify-divide.d.ts +1 -1
  227. package/dist/types/compute-engine/symbolic/simplify-factorial.d.ts +1 -1
  228. package/dist/types/compute-engine/symbolic/simplify-hyperbolic.d.ts +1 -1
  229. package/dist/types/compute-engine/symbolic/simplify-infinity.d.ts +1 -1
  230. package/dist/types/compute-engine/symbolic/simplify-log.d.ts +1 -1
  231. package/dist/types/compute-engine/symbolic/simplify-logic.d.ts +1 -1
  232. package/dist/types/compute-engine/symbolic/simplify-power.d.ts +1 -1
  233. package/dist/types/compute-engine/symbolic/simplify-product.d.ts +1 -1
  234. package/dist/types/compute-engine/symbolic/simplify-rules.d.ts +1 -1
  235. package/dist/types/compute-engine/symbolic/simplify-sum.d.ts +1 -1
  236. package/dist/types/compute-engine/symbolic/simplify-trig.d.ts +1 -1
  237. package/dist/types/compute-engine/tensor/tensor-fields.d.ts +1 -1
  238. package/dist/types/compute-engine/tensor/tensors.d.ts +1 -1
  239. package/dist/types/compute-engine/types-definitions.d.ts +2 -4
  240. package/dist/types/compute-engine/types-engine.d.ts +40 -39
  241. package/dist/types/compute-engine/types-evaluation.d.ts +1 -1
  242. package/dist/types/compute-engine/types-expression.d.ts +49 -30
  243. package/dist/types/compute-engine/types-kernel-evaluation.d.ts +1 -1
  244. package/dist/types/compute-engine/types-kernel-serialization.d.ts +14 -5
  245. package/dist/types/compute-engine/types-serialization.d.ts +1 -1
  246. package/dist/types/compute-engine/types.d.ts +1 -1
  247. package/dist/types/compute-engine.d.ts +6 -3
  248. package/dist/types/core.d.ts +11 -0
  249. package/dist/types/interval.d.ts +8 -0
  250. package/dist/types/latex-syntax.d.ts +14 -0
  251. package/dist/types/math-json/symbols.d.ts +1 -1
  252. package/dist/types/math-json/types.d.ts +1 -1
  253. package/dist/types/math-json/utils.d.ts +1 -1
  254. package/dist/types/math-json.d.ts +2 -2
  255. package/dist/types/numerics.d.ts +23 -0
  256. package/package.json +31 -1
  257. package/dist/types/compute-engine/engine-latex-dictionary-state.d.ts +0 -13
  258. package/dist/types/compute-engine/engine-parse-entrypoint.d.ts +0 -7
@@ -1,15 +1,19 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
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
- import type { CompilationResult } from './compilation/types';
6
- /** @internal Called by index.ts to register the ComputeEngine class,
7
- * avoiding a circular dependency (index.ts re-exports this file). */
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): Expression;
11
- export declare function box(expr: ExpressionInput): Expression;
12
- export declare function simplify(expr: LatexString | ExpressionInput): Expression;
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
- }): CompilationResult<T>;
33
+ }): ReturnType<typeof compileExpr>;
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  import type { BoxedDefinition, Expression, IComputeEngine as ComputeEngine, Scope } from './global-types';
3
3
  /***
4
4
  * ### THEORY OF OPERATIONS
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
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.54.1 */
2
- import { Decimal } from 'decimal.js';
1
+ /* 0.55.2 */
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 { LatexDictionaryEntry, LatexString, LibraryCategory } from './latex-syntax/types';
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, box, simplify, evaluate, N, declare, assign, expand, expandAll, factor, solve, compile, getDefaultEngine, } from './free-functions';
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.parse()` and `ce.box()`.
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.parse("e^{i\\pi}");
53
- * console.log(expr.N().latex);
50
+ * let expr = ce.expr(["Power", "ExponentialE", ["Multiply", "ImaginaryUnit", "Pi"]]);
51
+ * console.log(expr.N().toString());
54
52
  * // ➔ "-1"
55
53
  *
56
- * expr = ce.box(["Expand", ["Power", ["Add", "a", "b"], 2]]);
57
- * console.log(expr.evaluate().latex);
58
- * // ➔ "a^2 + 2ab + b^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
- * Register a custom compilation target.
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
- * Remove a registered compilation target.
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: Decimal): Decimal | 0;
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: Decimal.Value | bigint): Decimal;
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 | Decimal | Complex, b?: number | Decimal): Complex;
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.box(name)` instead
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.box(["Error",...])`.
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.box(["Tuple", ...])`
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 | Decimal | Complex | Rational, options?: {
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
  *
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Basic interval arithmetic operations
3
3
  *
4
4
  * @module interval/arithmetic
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Comparison and conditional interval operations
3
3
  *
4
4
  * @module interval/comparison
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Elementary interval functions (sqrt, pow, exp, ln, abs, floor, ceil, min, max, mod)
3
3
  *
4
4
  * @module interval/elementary
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Interval arithmetic library for reliable function evaluation
3
3
  *
4
4
  * This module provides interval versions of mathematical operations
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Trigonometric interval functions
3
3
  *
4
4
  * @module interval/trigonometric
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Interval arithmetic types for reliable function evaluation
3
3
  *
4
4
  * @module interval/types
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Utility functions for interval arithmetic
3
3
  *
4
4
  * @module interval/util
@@ -0,0 +1,37 @@
1
+ /* 0.55.2 */
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.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_ALGEBRA: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_ARITHMETIC: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_CALCULUS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_COMPLEX: LatexDictionary;
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_CORE: LatexDictionary;
3
3
  export declare const DELIMITERS_SHORTHAND: {
4
4
  '(': string;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_LINEAR_ALGEBRA: LatexDictionary;
@@ -1,2 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
+ import type { MathJsonExpression } from '../../../math-json';
2
3
  export declare const DEFINITIONS_LOGIC: LatexDictionary;
4
+ export declare function parseQuantifier(kind: 'NotForAll' | 'NotExists' | 'ForAll' | 'Exists' | 'ExistsUnique'): (parser: Parser, terminator: Readonly<Terminator>) => MathJsonExpression | null;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_OTHERS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_INEQUALITIES: LatexDictionaryEntry[];
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_SETS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_STATISTICS: LatexDictionary;
@@ -1,3 +1,3 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const SYMBOLS: [string, string, number][];
3
3
  export declare const DEFINITIONS_SYMBOLS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  export declare const DEFINITIONS_TRIGONOMETRY: LatexDictionary;
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * LaTeX dictionary entries for parsing and serializing physical quantities
3
3
  * with units.
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
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';
@@ -1,4 +1,4 @@
1
- /* 0.54.1 */
1
+ /* 0.55.2 */
2
2
  * Type definitions for the indexed LaTeX dictionary.
3
3
  *
4
4
  * These are separated from definitions.ts to break a circular dependency: