@cortex-js/compute-engine 0.51.0 → 0.52.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.
Files changed (237) hide show
  1. package/dist/compute-engine.esm.js +8766 -6852
  2. package/dist/compute-engine.min.esm.js +276 -73
  3. package/dist/compute-engine.min.umd.js +277 -74
  4. package/dist/compute-engine.umd.js +8766 -6852
  5. package/dist/math-json.esm.js +2 -2
  6. package/dist/math-json.min.esm.js +2 -2
  7. package/dist/math-json.min.umd.js +2 -2
  8. package/dist/math-json.umd.js +2 -2
  9. package/dist/types/common/ansi-codes.d.ts +1 -1
  10. package/dist/types/common/configuration-change.d.ts +1 -1
  11. package/dist/types/common/fuzzy-string-match.d.ts +1 -1
  12. package/dist/types/common/grapheme-splitter.d.ts +1 -1
  13. package/dist/types/common/interruptible.d.ts +1 -1
  14. package/dist/types/common/one-of.d.ts +1 -1
  15. package/dist/types/common/signals.d.ts +1 -1
  16. package/dist/types/common/type/ast-nodes.d.ts +1 -1
  17. package/dist/types/common/type/boxed-type.d.ts +1 -1
  18. package/dist/types/common/type/lexer.d.ts +1 -1
  19. package/dist/types/common/type/parse.d.ts +1 -1
  20. package/dist/types/common/type/parser.d.ts +1 -1
  21. package/dist/types/common/type/primitive.d.ts +1 -1
  22. package/dist/types/common/type/reduce.d.ts +1 -1
  23. package/dist/types/common/type/serialize.d.ts +1 -1
  24. package/dist/types/common/type/subtype.d.ts +11 -1
  25. package/dist/types/common/type/type-builder.d.ts +1 -1
  26. package/dist/types/common/type/types.d.ts +1 -1
  27. package/dist/types/common/type/utils.d.ts +2 -30
  28. package/dist/types/common/utils.d.ts +1 -1
  29. package/dist/types/compute-engine/assume.d.ts +1 -1
  30. package/dist/types/compute-engine/boxed-expression/abstract-boxed-expression.d.ts +6 -4
  31. package/dist/types/compute-engine/boxed-expression/apply.d.ts +1 -1
  32. package/dist/types/compute-engine/boxed-expression/arithmetic-add.d.ts +1 -1
  33. package/dist/types/compute-engine/boxed-expression/arithmetic-mul-div.d.ts +1 -1
  34. package/dist/types/compute-engine/boxed-expression/arithmetic-power.d.ts +1 -1
  35. package/dist/types/compute-engine/boxed-expression/ascii-math.d.ts +1 -1
  36. package/dist/types/compute-engine/boxed-expression/box.d.ts +1 -1
  37. package/dist/types/compute-engine/boxed-expression/boxed-dictionary.d.ts +1 -1
  38. package/dist/types/compute-engine/boxed-expression/boxed-function.d.ts +1 -1
  39. package/dist/types/compute-engine/boxed-expression/boxed-number.d.ts +3 -2
  40. package/dist/types/compute-engine/boxed-expression/boxed-operator-definition.d.ts +1 -1
  41. package/dist/types/compute-engine/boxed-expression/boxed-patterns.d.ts +1 -1
  42. package/dist/types/compute-engine/boxed-expression/boxed-string.d.ts +1 -1
  43. package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +3 -2
  44. package/dist/types/compute-engine/boxed-expression/boxed-tensor.d.ts +1 -1
  45. package/dist/types/compute-engine/boxed-expression/boxed-value-definition.d.ts +1 -1
  46. package/dist/types/compute-engine/boxed-expression/cache.d.ts +1 -1
  47. package/dist/types/compute-engine/boxed-expression/canonical-utils.d.ts +1 -1
  48. package/dist/types/compute-engine/boxed-expression/canonical.d.ts +1 -1
  49. package/dist/types/compute-engine/boxed-expression/compare.d.ts +4 -3
  50. package/dist/types/compute-engine/boxed-expression/constants.d.ts +1 -1
  51. package/dist/types/compute-engine/boxed-expression/expand.d.ts +1 -1
  52. package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
  53. package/dist/types/compute-engine/boxed-expression/factor.d.ts +1 -1
  54. package/dist/types/compute-engine/boxed-expression/flatten.d.ts +1 -1
  55. package/dist/types/compute-engine/boxed-expression/hold.d.ts +1 -1
  56. package/dist/types/compute-engine/boxed-expression/inequality-bounds.d.ts +1 -1
  57. package/dist/types/compute-engine/boxed-expression/init-lazy-refs.d.ts +1 -1
  58. package/dist/types/compute-engine/boxed-expression/invisible-operator.d.ts +1 -1
  59. package/dist/types/compute-engine/boxed-expression/match.d.ts +1 -1
  60. package/dist/types/compute-engine/boxed-expression/negate.d.ts +1 -1
  61. package/dist/types/compute-engine/boxed-expression/numerics.d.ts +1 -1
  62. package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
  63. package/dist/types/compute-engine/boxed-expression/pattern-utils.d.ts +1 -1
  64. package/dist/types/compute-engine/boxed-expression/polynomial-degree.d.ts +1 -1
  65. package/dist/types/compute-engine/boxed-expression/polynomials.d.ts +1 -1
  66. package/dist/types/compute-engine/boxed-expression/predicates.d.ts +1 -1
  67. package/dist/types/compute-engine/boxed-expression/rules.d.ts +1 -1
  68. package/dist/types/compute-engine/boxed-expression/serialize.d.ts +9 -3
  69. package/dist/types/compute-engine/boxed-expression/sgn.d.ts +1 -1
  70. package/dist/types/compute-engine/boxed-expression/simplify.d.ts +1 -1
  71. package/dist/types/compute-engine/boxed-expression/solve-linear-system.d.ts +1 -1
  72. package/dist/types/compute-engine/boxed-expression/solve.d.ts +1 -1
  73. package/dist/types/compute-engine/boxed-expression/stochastic-equal.d.ts +18 -0
  74. package/dist/types/compute-engine/boxed-expression/trigonometry.d.ts +1 -1
  75. package/dist/types/compute-engine/boxed-expression/type-guards.d.ts +14 -7
  76. package/dist/types/compute-engine/boxed-expression/utils.d.ts +1 -1
  77. package/dist/types/compute-engine/boxed-expression/validate.d.ts +1 -1
  78. package/dist/types/compute-engine/collection-utils.d.ts +1 -1
  79. package/dist/types/compute-engine/compilation/base-compiler.d.ts +26 -1
  80. package/dist/types/compute-engine/compilation/compile-expression.d.ts +10 -4
  81. package/dist/types/compute-engine/compilation/glsl-target.d.ts +1 -1
  82. package/dist/types/compute-engine/compilation/gpu-target.d.ts +1 -1
  83. package/dist/types/compute-engine/compilation/interval-glsl-target.d.ts +2 -2
  84. package/dist/types/compute-engine/compilation/interval-javascript-target.d.ts +19 -2
  85. package/dist/types/compute-engine/compilation/interval-wgsl-target.d.ts +2 -2
  86. package/dist/types/compute-engine/compilation/javascript-target.d.ts +11 -3
  87. package/dist/types/compute-engine/compilation/python-target.d.ts +2 -2
  88. package/dist/types/compute-engine/compilation/types.d.ts +100 -14
  89. package/dist/types/compute-engine/compilation/wgsl-target.d.ts +1 -1
  90. package/dist/types/compute-engine/cost-function.d.ts +1 -1
  91. package/dist/types/compute-engine/engine-assumptions.d.ts +1 -1
  92. package/dist/types/compute-engine/engine-cache.d.ts +1 -1
  93. package/dist/types/compute-engine/engine-common-symbols.d.ts +1 -1
  94. package/dist/types/compute-engine/engine-compilation-targets.d.ts +1 -1
  95. package/dist/types/compute-engine/engine-configuration-lifecycle.d.ts +1 -1
  96. package/dist/types/compute-engine/engine-declarations.d.ts +1 -1
  97. package/dist/types/compute-engine/engine-expression-entrypoints.d.ts +1 -1
  98. package/dist/types/compute-engine/engine-extension-contracts.d.ts +1 -1
  99. package/dist/types/compute-engine/engine-latex-dictionary-state.d.ts +1 -1
  100. package/dist/types/compute-engine/engine-library-bootstrap.d.ts +1 -1
  101. package/dist/types/compute-engine/engine-numeric-configuration.d.ts +1 -1
  102. package/dist/types/compute-engine/engine-parse-entrypoint.d.ts +1 -1
  103. package/dist/types/compute-engine/engine-runtime-state.d.ts +1 -1
  104. package/dist/types/compute-engine/engine-scope.d.ts +1 -1
  105. package/dist/types/compute-engine/engine-sequences.d.ts +1 -1
  106. package/dist/types/compute-engine/engine-simplification-rules.d.ts +1 -1
  107. package/dist/types/compute-engine/engine-startup-coordinator.d.ts +1 -1
  108. package/dist/types/compute-engine/engine-type-resolver.d.ts +1 -1
  109. package/dist/types/compute-engine/engine-validation-entrypoints.d.ts +1 -1
  110. package/dist/types/compute-engine/free-functions.d.ts +10 -2
  111. package/dist/types/compute-engine/function-utils.d.ts +1 -1
  112. package/dist/types/compute-engine/global-types.d.ts +1 -1
  113. package/dist/types/compute-engine/index.d.ts +2 -2
  114. package/dist/types/compute-engine/interval/arithmetic.d.ts +1 -1
  115. package/dist/types/compute-engine/interval/comparison.d.ts +2 -2
  116. package/dist/types/compute-engine/interval/elementary.d.ts +67 -1
  117. package/dist/types/compute-engine/interval/index.d.ts +21 -5
  118. package/dist/types/compute-engine/interval/trigonometric.d.ts +16 -1
  119. package/dist/types/compute-engine/interval/types.d.ts +1 -1
  120. package/dist/types/compute-engine/interval/util.d.ts +1 -1
  121. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
  122. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
  123. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
  124. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-complex.d.ts +1 -1
  125. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
  126. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-linear-algebra.d.ts +1 -1
  127. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +1 -1
  128. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
  129. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts +1 -1
  130. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
  131. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-statistics.d.ts +1 -1
  132. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
  133. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
  134. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-units.d.ts +1 -1
  135. package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
  136. package/dist/types/compute-engine/latex-syntax/dictionary/indexed-types.d.ts +1 -1
  137. package/dist/types/compute-engine/latex-syntax/parse-number.d.ts +1 -1
  138. package/dist/types/compute-engine/latex-syntax/parse-symbol.d.ts +1 -1
  139. package/dist/types/compute-engine/latex-syntax/parse.d.ts +1 -1
  140. package/dist/types/compute-engine/latex-syntax/serialize-dms.d.ts +22 -0
  141. package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
  142. package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
  143. package/dist/types/compute-engine/latex-syntax/serializer.d.ts +2 -2
  144. package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
  145. package/dist/types/compute-engine/latex-syntax/types.d.ts +58 -1
  146. package/dist/types/compute-engine/latex-syntax/utils.d.ts +1 -1
  147. package/dist/types/compute-engine/library/arithmetic.d.ts +1 -1
  148. package/dist/types/compute-engine/library/calculus.d.ts +1 -1
  149. package/dist/types/compute-engine/library/collections.d.ts +1 -1
  150. package/dist/types/compute-engine/library/colors.d.ts +1 -1
  151. package/dist/types/compute-engine/library/combinatorics.d.ts +1 -1
  152. package/dist/types/compute-engine/library/complex.d.ts +1 -1
  153. package/dist/types/compute-engine/library/control-structures.d.ts +1 -1
  154. package/dist/types/compute-engine/library/core.d.ts +1 -1
  155. package/dist/types/compute-engine/library/library.d.ts +1 -1
  156. package/dist/types/compute-engine/library/linear-algebra.d.ts +1 -1
  157. package/dist/types/compute-engine/library/logic-analysis.d.ts +1 -1
  158. package/dist/types/compute-engine/library/logic.d.ts +1 -1
  159. package/dist/types/compute-engine/library/number-theory.d.ts +1 -1
  160. package/dist/types/compute-engine/library/polynomials.d.ts +1 -1
  161. package/dist/types/compute-engine/library/quantity-arithmetic.d.ts +1 -1
  162. package/dist/types/compute-engine/library/random-expression.d.ts +1 -1
  163. package/dist/types/compute-engine/library/relational-operator.d.ts +1 -1
  164. package/dist/types/compute-engine/library/sets.d.ts +1 -1
  165. package/dist/types/compute-engine/library/statistics.d.ts +1 -1
  166. package/dist/types/compute-engine/library/trigonometry.d.ts +1 -1
  167. package/dist/types/compute-engine/library/type-handlers.d.ts +1 -1
  168. package/dist/types/compute-engine/library/unit-data.d.ts +1 -1
  169. package/dist/types/compute-engine/library/units.d.ts +1 -1
  170. package/dist/types/compute-engine/library/utils.d.ts +1 -1
  171. package/dist/types/compute-engine/numeric-value/big-numeric-value.d.ts +1 -1
  172. package/dist/types/compute-engine/numeric-value/exact-numeric-value.d.ts +1 -1
  173. package/dist/types/compute-engine/numeric-value/machine-numeric-value.d.ts +1 -1
  174. package/dist/types/compute-engine/numeric-value/types.d.ts +1 -1
  175. package/dist/types/compute-engine/numerics/bigint.d.ts +1 -1
  176. package/dist/types/compute-engine/numerics/expression.d.ts +1 -1
  177. package/dist/types/compute-engine/numerics/interval.d.ts +1 -1
  178. package/dist/types/compute-engine/numerics/monte-carlo.d.ts +1 -1
  179. package/dist/types/compute-engine/numerics/numeric-bigint.d.ts +1 -1
  180. package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +1 -1
  181. package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
  182. package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
  183. package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
  184. package/dist/types/compute-engine/numerics/rationals.d.ts +1 -1
  185. package/dist/types/compute-engine/numerics/richardson.d.ts +1 -1
  186. package/dist/types/compute-engine/numerics/special-functions.d.ts +15 -1
  187. package/dist/types/compute-engine/numerics/statistics.d.ts +1 -1
  188. package/dist/types/compute-engine/numerics/strings.d.ts +1 -1
  189. package/dist/types/compute-engine/numerics/types.d.ts +1 -1
  190. package/dist/types/compute-engine/numerics/unit-data.d.ts +1 -1
  191. package/dist/types/compute-engine/oeis.d.ts +1 -1
  192. package/dist/types/compute-engine/sequence.d.ts +1 -1
  193. package/dist/types/compute-engine/symbolic/antiderivative.d.ts +1 -1
  194. package/dist/types/compute-engine/symbolic/derivative.d.ts +1 -1
  195. package/dist/types/compute-engine/symbolic/distribute.d.ts +1 -1
  196. package/dist/types/compute-engine/symbolic/fu-cost.d.ts +1 -1
  197. package/dist/types/compute-engine/symbolic/fu-transforms.d.ts +1 -1
  198. package/dist/types/compute-engine/symbolic/fu.d.ts +1 -1
  199. package/dist/types/compute-engine/symbolic/logic-utils.d.ts +1 -1
  200. package/dist/types/compute-engine/symbolic/simplify-abs.d.ts +1 -1
  201. package/dist/types/compute-engine/symbolic/simplify-divide.d.ts +1 -1
  202. package/dist/types/compute-engine/symbolic/simplify-factorial.d.ts +1 -1
  203. package/dist/types/compute-engine/symbolic/simplify-hyperbolic.d.ts +1 -1
  204. package/dist/types/compute-engine/symbolic/simplify-infinity.d.ts +1 -1
  205. package/dist/types/compute-engine/symbolic/simplify-log.d.ts +1 -1
  206. package/dist/types/compute-engine/symbolic/simplify-logic.d.ts +1 -1
  207. package/dist/types/compute-engine/symbolic/simplify-power.d.ts +1 -1
  208. package/dist/types/compute-engine/symbolic/simplify-product.d.ts +1 -1
  209. package/dist/types/compute-engine/symbolic/simplify-rules.d.ts +1 -1
  210. package/dist/types/compute-engine/symbolic/simplify-sum.d.ts +1 -1
  211. package/dist/types/compute-engine/symbolic/simplify-trig.d.ts +1 -1
  212. package/dist/types/compute-engine/tensor/tensor-fields.d.ts +1 -1
  213. package/dist/types/compute-engine/tensor/tensors.d.ts +1 -1
  214. package/dist/types/compute-engine/types-definitions.d.ts +1 -1
  215. package/dist/types/compute-engine/types-engine.d.ts +1 -1
  216. package/dist/types/compute-engine/types-evaluation.d.ts +1 -1
  217. package/dist/types/compute-engine/types-expression.d.ts +47 -16
  218. package/dist/types/compute-engine/types-kernel-evaluation.d.ts +1 -1
  219. package/dist/types/compute-engine/types-kernel-serialization.d.ts +1 -1
  220. package/dist/types/compute-engine/types-serialization.d.ts +1 -1
  221. package/dist/types/compute-engine/types.d.ts +1 -1
  222. package/dist/types/compute-engine.d.ts +4 -3
  223. package/dist/types/math-json/symbols.d.ts +1 -1
  224. package/dist/types/math-json/types.d.ts +1 -1
  225. package/dist/types/math-json/utils.d.ts +1 -1
  226. package/dist/types/math-json.d.ts +2 -2
  227. package/package.json +2 -1
  228. package/dist/types/color/categorical.d.ts +0 -9
  229. package/dist/types/color/contrast.d.ts +0 -16
  230. package/dist/types/color/conversion.d.ts +0 -13
  231. package/dist/types/color/diverging-palettes.d.ts +0 -15
  232. package/dist/types/color/index.d.ts +0 -4
  233. package/dist/types/color/manipulation.d.ts +0 -95
  234. package/dist/types/color/palette.d.ts +0 -38
  235. package/dist/types/color/sequential.d.ts +0 -21
  236. package/dist/types/color/types.d.ts +0 -19
  237. package/dist/types/compute-engine/boxed-expression/product.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  export declare function sgn(expr: Expression): Sign | undefined;
3
3
  /**
4
4
  * Sign `s` is > 0.
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  type InternalSimplifyOptions = SimplifyOptions & {
3
3
  useVariations: boolean;
4
4
  };
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  /**
3
3
  * Solve a system of linear equations.
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  export declare const UNIVARIATE_ROOTS: Rule[];
3
3
  /**
4
4
  * MathJsonExpression is a function of a single variable (`x`) or an Equality
@@ -0,0 +1,18 @@
1
+ /* 0.52.0 */
2
+ type ComplexResult = {
3
+ re: number;
4
+ im: number;
5
+ };
6
+ type CompileFn = (expr: Expression) => {
7
+ run?: ((vars: Record<string, number>) => number | ComplexResult) | undefined;
8
+ };
9
+ /** @internal */
10
+ export declare function _setCompile(fn: CompileFn): void;
11
+ /**
12
+ * Stochastic equality check: evaluate both expressions at random sample points
13
+ * and compare results (both real and imaginary parts). Returns `true` if they
14
+ * agree at all informative points, `false` if they disagree, or `undefined`
15
+ * if no informative points were found.
16
+ */
17
+ export declare function stochasticEqual(a: Expression, b: Expression): boolean | undefined;
18
+ export {};
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  /** Assuming x in an expression in radians, convert to current angular unit. */
3
3
  export declare function radiansToAngle(x: Expression | undefined): Expression | undefined;
4
4
  export declare function evalTrig(name: string, op: Expression | undefined): Expression | undefined;
@@ -1,9 +1,10 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
+ import type { NumericValue } from '../numeric-value/types';
2
3
  /** Preferred guard for runtime expressions. */
3
4
  export declare function isExpression(x: unknown): x is Expression;
4
5
  export declare function isNumber(expr: Expression | null | undefined): expr is Expression & NumberLiteralInterface;
5
- export declare function isSymbol(expr: Expression | null | undefined): expr is Expression & SymbolInterface;
6
- export declare function isFunction(expr: Expression | null | undefined): expr is Expression & FunctionInterface;
6
+ export declare function isSymbol(expr: Expression | null | undefined, name?: string): expr is Expression & SymbolInterface;
7
+ export declare function isFunction(expr: Expression | null | undefined, operator?: string): expr is Expression & FunctionInterface;
7
8
  export declare function isString(expr: Expression | null | undefined): expr is Expression & StringInterface;
8
9
  export declare function isTensor(expr: Expression | null | undefined): expr is Expression & TensorInterface;
9
10
  /** @deprecated Use `isExpression()` instead. */
@@ -11,9 +12,9 @@ export declare function isBoxedExpression(x: unknown): x is Expression;
11
12
  /** @deprecated Use `isNumber()` instead. */
12
13
  export declare function isBoxedNumber(expr: Expression | null | undefined): expr is Expression & NumberLiteralInterface;
13
14
  /** @deprecated Use `isSymbol()` instead. */
14
- export declare function isBoxedSymbol(expr: Expression | null | undefined): expr is Expression & SymbolInterface;
15
+ export declare function isBoxedSymbol(expr: Expression | null | undefined, name?: string): expr is Expression & SymbolInterface;
15
16
  /** @deprecated Use `isFunction()` instead. */
16
- export declare function isBoxedFunction(expr: Expression | null | undefined): expr is Expression & FunctionInterface;
17
+ export declare function isBoxedFunction(expr: Expression | null | undefined, operator?: string): expr is Expression & FunctionInterface;
17
18
  /** @deprecated Use `isString()` instead. */
18
19
  export declare function isBoxedString(expr: Expression | null | undefined): expr is Expression & StringInterface;
19
20
  /** @deprecated Use `isTensor()` instead. */
@@ -21,11 +22,17 @@ export declare function isBoxedTensor(expr: Expression | null | undefined): expr
21
22
  export declare function isDictionary(expr: Expression | null | undefined): expr is Expression & DictionaryInterface;
22
23
  export declare function isCollection(expr: Expression | null | undefined): expr is Expression & CollectionInterface;
23
24
  export declare function isIndexedCollection(expr: Expression | null | undefined): expr is Expression & IndexedCollectionInterface;
25
+ /**
26
+ * Return the numeric value if `expr` is a number literal, otherwise `undefined`.
27
+ *
28
+ * Convenience helper that combines `isNumber()` with `.numericValue` access.
29
+ */
30
+ export declare function numericValue(expr: Expression | null | undefined): number | NumericValue | undefined;
24
31
  /**
25
32
  * Get the symbol name if `expr` is a symbol expression, otherwise `undefined`.
26
33
  *
27
34
  * Convenience helper that combines `isSymbol()` with `.symbol` access
28
- * so callers can write `sym(expr) === 'Pi'` instead of the more verbose
29
- * `isSymbol(expr) && expr.symbol === 'Pi'`.
35
+ * so callers can write `sym(expr) === 'Pi'` instead of
36
+ * `isSymbol(expr, 'Pi')`.
30
37
  */
31
38
  export declare function sym(expr: Expression | null | undefined): string | undefined;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import { Type } from '../../common/type/types';
3
3
  import { NumericValue } from '../numeric-value/types';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { Expression, IComputeEngine as ComputeEngine } from '../global-types';
3
3
  /**
4
4
  * Check that the number of arguments is as expected.
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  /** If a collection has fewer than this many elements, eagerly evaluate it.
3
3
  *
4
4
  * For example, evaluate the Union of two sets with 10 elements each will
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { CompileTarget, TargetSource } from './types';
3
3
  /**
4
4
  * Base compiler class containing language-agnostic compilation logic
@@ -16,6 +16,31 @@ export declare class BaseCompiler {
16
16
  * Compile a block expression
17
17
  */
18
18
  private static compileBlock;
19
+ /**
20
+ * Compile a Loop expression with Element(index, Range(lo, hi)) indexing.
21
+ * Generates: (() => { for (let i = lo; i <= hi; i++) { body } })()
22
+ *
23
+ * The loop counter is always a raw number. For targets that wrap numeric
24
+ * values (e.g. interval-js wraps with `_IA.point()`), references to the
25
+ * loop index inside the body are wrapped via `target.number`.
26
+ */
27
+ private static compileForLoop;
28
+ /**
29
+ * Compile a loop body expression as statements (not wrapped in IIFE).
30
+ * Handles Break, Continue, Return as statements, and If as if-else when
31
+ * branches contain control flow.
32
+ */
33
+ private static compileLoopBody;
34
+ /**
35
+ * Create a target that compiles conditions as plain JS booleans.
36
+ * Used inside `compileLoopBody` so that `if (cond)` gets a real boolean,
37
+ * not an interval result object (which would always be truthy).
38
+ *
39
+ * Overrides comparison and logical operators to use plain JS, and
40
+ * numeric values/variables to use raw numbers (the loop counter is
41
+ * already a plain number).
42
+ */
43
+ private static scalarConditionTarget;
19
44
  /**
20
45
  * Compile loop constructs (Sum/Product)
21
46
  */
@@ -1,8 +1,8 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { Expression, JSSource } from '../global-types';
3
3
  import type { CompileTarget, CompilationResult } from './types';
4
- type CompileExpressionOptions = {
5
- to?: string;
4
+ type CompileExpressionOptions<T extends string = string> = {
5
+ to?: T;
6
6
  target?: CompileTarget<Expression>;
7
7
  operators?: Partial<Record<MathJsonSymbol, [op: string, prec: number]>> | ((op: MathJsonSymbol) => [op: string, prec: number] | undefined);
8
8
  functions?: Record<MathJsonSymbol, JSSource | ((...args: unknown[]) => unknown)>;
@@ -10,6 +10,7 @@ type CompileExpressionOptions = {
10
10
  imports?: unknown[];
11
11
  preamble?: string;
12
12
  fallback?: boolean;
13
+ realOnly?: boolean;
13
14
  };
14
15
  /**
15
16
  * Compile a boxed expression.
@@ -17,9 +18,14 @@ type CompileExpressionOptions = {
17
18
  * Returns a `CompilationResult` with the generated source code and,
18
19
  * for JS-executable targets, a `run` function.
19
20
  *
21
+ * When `realOnly` is true, the return type of `run` is narrowed to `number`.
22
+ *
20
23
  * If the expression cannot be compiled, falls back to interpretation
21
24
  * (success: false, run: applicableN1) unless `options.fallback` is false,
22
25
  * in which case it throws.
23
26
  */
24
- export declare function compile(expr: Expression, options?: CompileExpressionOptions): CompilationResult;
27
+ export declare function compile<T extends string = 'javascript'>(expr: Expression, options: CompileExpressionOptions<T> & {
28
+ realOnly: true;
29
+ }): CompilationResult<T, number>;
30
+ export declare function compile<T extends string = 'javascript'>(expr: Expression, options?: CompileExpressionOptions<T>): CompilationResult<T>;
25
31
  export {};
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { CompiledFunctions } from './types';
3
3
  import { GPUShaderTarget } from './gpu-target';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { CompileTarget, CompiledOperators, CompiledFunctions, LanguageTarget, CompilationOptions, CompilationResult } from './types';
3
3
  /**
4
4
  * GPU shader operators shared by GLSL and WGSL.
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  * GLSL interval arithmetic compilation target
3
3
  *
4
4
  * Compiles mathematical expressions to GLSL code using interval arithmetic
@@ -24,7 +24,7 @@ export declare class IntervalGLSLTarget implements LanguageTarget<Expression> {
24
24
  */
25
25
  getLibrary(): string;
26
26
  createTarget(options?: Partial<CompileTarget<Expression>>): CompileTarget<Expression>;
27
- compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult;
27
+ compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult<'interval-glsl'>;
28
28
  /**
29
29
  * Compile an expression to GLSL interval code string.
30
30
  */
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  * JavaScript interval arithmetic compilation target
3
3
  *
4
4
  * Compiles mathematical expressions to JavaScript code using interval arithmetic
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import type { Expression } from '../global-types';
10
10
  import type { CompileTarget, CompiledOperators, CompiledFunctions, LanguageTarget, CompilationOptions, CompilationResult } from './types';
11
+ import type { Interval, IntervalResult } from '../interval/types';
11
12
  /**
12
13
  * JavaScript function that wraps compiled interval arithmetic code.
13
14
  *
@@ -54,7 +55,20 @@ export declare class ComputeEngineIntervalFunction extends Function {
54
55
  max: typeof import("../interval").max;
55
56
  mod: typeof import("../interval").mod;
56
57
  remainder: typeof import("../interval").remainder;
58
+ heaviside: typeof import("../interval").heaviside;
57
59
  sign: typeof import("../interval").sign;
60
+ gamma: typeof import("../interval").gamma;
61
+ gammaln: typeof import("../interval").gammaln;
62
+ factorial: typeof import("../interval").factorial;
63
+ factorial2: typeof import("../interval").factorial2;
64
+ binomial: typeof import("../interval/elementary").binomial;
65
+ gcd: typeof import("../interval/elementary").gcd;
66
+ lcm: typeof import("../interval/elementary").lcm;
67
+ chop: typeof import("../interval/elementary").chop;
68
+ erf: typeof import("../interval/elementary").erf;
69
+ erfc: typeof import("../interval/elementary").erfc;
70
+ exp2: typeof import("../interval/elementary").exp2;
71
+ hypot: typeof import("../interval/elementary").hypot;
58
72
  sin: typeof import("../interval").sin;
59
73
  cos: typeof import("../interval").cos;
60
74
  tan: typeof import("../interval").tan;
@@ -80,6 +94,9 @@ export declare class ComputeEngineIntervalFunction extends Function {
80
94
  acoth: typeof import("../interval").acoth;
81
95
  acsch: typeof import("../interval").acsch;
82
96
  asech: typeof import("../interval").asech;
97
+ sinc: typeof import("../interval").sinc;
98
+ fresnelS: typeof import("../interval").fresnelS;
99
+ fresnelC: typeof import("../interval").fresnelC;
83
100
  less: typeof import("../interval").less;
84
101
  lessEqual: typeof import("../interval").lessEqual;
85
102
  greater: typeof import("../interval").greater;
@@ -101,5 +118,5 @@ export declare class IntervalJavaScriptTarget implements LanguageTarget<Expressi
101
118
  getOperators(): CompiledOperators;
102
119
  getFunctions(): CompiledFunctions<Expression>;
103
120
  createTarget(options?: Partial<CompileTarget<Expression>>): CompileTarget<Expression>;
104
- compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult;
121
+ compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult<'interval-js', IntervalResult | Interval>;
105
122
  }
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  * WGSL interval arithmetic compilation target
3
3
  *
4
4
  * Compiles mathematical expressions to WGSL code using interval arithmetic
@@ -28,7 +28,7 @@ export declare class IntervalWGSLTarget implements LanguageTarget<Expression> {
28
28
  */
29
29
  getLibrary(): string;
30
30
  createTarget(options?: Partial<CompileTarget<Expression>>): CompileTarget<Expression>;
31
- compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult;
31
+ compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult<'interval-wgsl'>;
32
32
  /**
33
33
  * Compile an expression to WGSL interval code string.
34
34
  */
@@ -1,6 +1,6 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import { chop, factorial, factorial2, gcd, lcm, limit } from '../numerics/numeric';
3
- import { gamma, gammaln, erf, erfc, erfInv, beta, digamma, trigamma, polygamma, zeta, lambertW, besselJ, besselY, besselI, besselK, airyAi, airyBi } from '../numerics/special-functions';
3
+ import { gamma, gammaln, erf, erfc, erfInv, beta, digamma, trigamma, polygamma, zeta, lambertW, besselJ, besselY, besselI, besselK, airyAi, airyBi, fresnelS, fresnelC, sinc } from '../numerics/special-functions';
4
4
  import { choose } from '../boxed-expression/expand';
5
5
  import { interquartileRange, kurtosis, mean, median, mode, populationStandardDeviation, populationVariance, quartiles, skewness, standardDeviation, variance } from '../numerics/statistics';
6
6
  import type { CompileTarget, CompiledOperators, CompiledFunctions, LanguageTarget, CompilationOptions, CompilationResult } from './types';
@@ -23,6 +23,7 @@ export declare class ComputeEngineFunction extends Function {
23
23
  factorial2: typeof factorial2;
24
24
  gamma: typeof gamma;
25
25
  gcd: typeof gcd;
26
+ heaviside: (x: number) => 0 | 1 | 0.5;
26
27
  integrate: (f: any, a: any, b: any) => number;
27
28
  lcm: typeof lcm;
28
29
  lngamma: typeof gammaln;
@@ -53,6 +54,9 @@ export declare class ComputeEngineFunction extends Function {
53
54
  besselK: typeof besselK;
54
55
  airyAi: typeof airyAi;
55
56
  airyBi: typeof airyBi;
57
+ sinc: typeof sinc;
58
+ fresnelS: typeof fresnelS;
59
+ fresnelC: typeof fresnelC;
56
60
  binomial: typeof choose;
57
61
  fibonacci: typeof fibonacci;
58
62
  csin: (z: any) => {
@@ -187,6 +191,7 @@ export declare class ComputeEngineFunctionLiteral extends Function {
187
191
  factorial2: typeof factorial2;
188
192
  gamma: typeof gamma;
189
193
  gcd: typeof gcd;
194
+ heaviside: (x: number) => 0 | 1 | 0.5;
190
195
  integrate: (f: any, a: any, b: any) => number;
191
196
  lcm: typeof lcm;
192
197
  lngamma: typeof gammaln;
@@ -217,6 +222,9 @@ export declare class ComputeEngineFunctionLiteral extends Function {
217
222
  besselK: typeof besselK;
218
223
  airyAi: typeof airyAi;
219
224
  airyBi: typeof airyBi;
225
+ sinc: typeof sinc;
226
+ fresnelS: typeof fresnelS;
227
+ fresnelC: typeof fresnelC;
220
228
  binomial: typeof choose;
221
229
  fibonacci: typeof fibonacci;
222
230
  csin: (z: any) => {
@@ -339,7 +347,7 @@ export declare class JavaScriptTarget implements LanguageTarget<Expression> {
339
347
  getOperators(): CompiledOperators;
340
348
  getFunctions(): CompiledFunctions<Expression>;
341
349
  createTarget(options?: Partial<CompileTarget<Expression>>): CompileTarget<Expression>;
342
- compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult;
350
+ compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult<'javascript'>;
343
351
  }
344
352
  /**
345
353
  * Compute the nth Fibonacci number using iterative doubling.
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { CompileTarget, CompiledOperators, CompiledFunctions, LanguageTarget, CompilationOptions, CompilationResult } from './types';
3
3
  /**
4
4
  * Python/NumPy language target implementation
@@ -24,7 +24,7 @@ export declare class PythonTarget implements LanguageTarget<Expression> {
24
24
  *
25
25
  * Returns Python code as a string. To execute it, use Python runtime.
26
26
  */
27
- compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult;
27
+ compile(expr: Expression, options?: CompilationOptions<Expression>): CompilationResult<'python'>;
28
28
  /**
29
29
  * Compile an expression to Python source code
30
30
  *
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  /**
3
3
  * Source code in the target language
4
4
  */
@@ -57,7 +57,7 @@ export interface LanguageTarget<Expr = unknown> {
57
57
  /** Create a CompileTarget for this language */
58
58
  createTarget(options?: Partial<CompileTarget<Expr>>): CompileTarget<Expr>;
59
59
  /** Compile an expression to this language */
60
- compile(expr: Expr, options?: CompilationOptions<Expr>): CompilationResult;
60
+ compile(expr: Expr, options?: CompilationOptions<Expr>): CompilationResult<string, unknown>;
61
61
  }
62
62
  /**
63
63
  * Options for compilation
@@ -132,13 +132,96 @@ export interface CompilationOptions<Expr = unknown> {
132
132
  imports?: unknown[];
133
133
  /** Additional preamble code */
134
134
  preamble?: string;
135
+ /**
136
+ * When true, complex results (`{ re, im }`) are converted to real numbers:
137
+ * - If the imaginary part is zero, the real part is returned
138
+ * - Otherwise, `NaN` is returned
139
+ *
140
+ * This avoids object allocations for callers that only need real-valued
141
+ * results (e.g., plotting).
142
+ */
143
+ realOnly?: boolean;
144
+ }
145
+ /**
146
+ * Built-in targets that produce an executable `run` function.
147
+ */
148
+ export type ExecutableTarget = 'javascript' | 'interval-js';
149
+ /**
150
+ * Result of a complex number computation: `{ re, im }`.
151
+ */
152
+ export type ComplexResult = {
153
+ re: number;
154
+ im: number;
155
+ };
156
+ /**
157
+ * Runner for compiled expressions — called with a variables object.
158
+ *
159
+ * ```typescript
160
+ * result.run({ x: 0.5, y: 1.0 })
161
+ * ```
162
+ */
163
+ export type ExpressionRunner<R = number | ComplexResult> = (vars: Record<string, number>) => R;
164
+ /**
165
+ * Runner for compiled lambda (`Function`) expressions — called with
166
+ * positional arguments.
167
+ *
168
+ * ```typescript
169
+ * result.run(0.5, 1.0)
170
+ * ```
171
+ */
172
+ export type LambdaRunner<R = number | ComplexResult> = (...args: number[]) => R;
173
+ /**
174
+ * Overloaded callable that accepts both calling conventions.
175
+ *
176
+ * Supports two calling styles:
177
+ * - **Expression**: `run({ x: 0.5 })` — pass a variables object
178
+ * - **Lambda**: `run(0.5, 1.0)` — pass positional arguments
179
+ *
180
+ * Check `calling` on the `CompilationResult` to know which convention
181
+ * the compiled expression actually uses.
182
+ */
183
+ export interface CompiledRunner<R = number | ComplexResult> {
184
+ /** Call with a variables object (for compiled expressions) */
185
+ (vars: Record<string, number>): R;
186
+ /** Call with positional arguments (for compiled lambda expressions) */
187
+ (...args: number[]): R;
135
188
  }
136
189
  /**
137
- * Result of compiling an expression
190
+ * Result of compiling an expression.
191
+ *
192
+ * Two type parameters control the shape:
193
+ * - `T` — the target name. For executable targets (`'javascript'` |
194
+ * `'interval-js'`), `run` and `calling` are guaranteed present.
195
+ * - `R` — the return type of `run`. Defaults to `number | ComplexResult`.
196
+ * Pass `number` when `realOnly: true`.
197
+ *
198
+ * The `calling` field indicates which convention `run` uses:
199
+ * - `'expression'` — call with a vars object: `run({ x: 0.5 })`
200
+ * - `'lambda'` — call with positional args: `run(0.5, 1.0)`
201
+ *
202
+ * @example
203
+ * ```typescript
204
+ * // run is guaranteed, may return complex
205
+ * const js = compile(expr);
206
+ * js.run({ x: 0.5 });
207
+ *
208
+ * // run is guaranteed, returns number only
209
+ * const real = compile(expr, { realOnly: true });
210
+ * real.run({ x: 0.5 }); // number
211
+ *
212
+ * // check calling convention
213
+ * if (result.calling === 'lambda') {
214
+ * result.run(0.5, 1.0);
215
+ * }
216
+ *
217
+ * // no run (source-only target)
218
+ * const py = compile(expr, { to: 'python' });
219
+ * py.code; // string
220
+ * ```
138
221
  */
139
- export interface CompilationResult {
222
+ export type CompilationResult<T extends string = string, R = number | ComplexResult> = {
140
223
  /** Target language name */
141
- target: string;
224
+ target: T;
142
225
  /** Whether compilation succeeded (vs falling back to interpretation) */
143
226
  success: boolean;
144
227
  /** Generated source code */
@@ -154,12 +237,15 @@ export interface CompilationResult {
154
237
  * target's `compileShaderFunction()` method directly.
155
238
  */
156
239
  preamble?: string;
157
- /** Executable function (present for JS-executable targets only) */
158
- run?: (...args: (number | {
159
- re: number;
160
- im: number;
161
- })[]) => number | {
162
- re: number;
163
- im: number;
164
- };
165
- }
240
+ /**
241
+ * How `run` should be called (present only for executable targets).
242
+ * - `'expression'` — call with a vars object: `run({ x: 0.5 })`
243
+ * - `'lambda'` — call with positional args: `run(0.5, 1.0)`
244
+ */
245
+ calling?: 'expression' | 'lambda';
246
+ /** Executable function (present for JS-executable targets only). */
247
+ run?: CompiledRunner<R>;
248
+ } & (T extends ExecutableTarget ? {
249
+ calling: 'expression' | 'lambda';
250
+ run: CompiledRunner<R>;
251
+ } : {});
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { CompiledFunctions } from './types';
3
3
  import { GPUShaderTarget } from './gpu-target';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  /**
3
3
  * The default cost function, used to determine if a new expression is simpler
4
4
  * than the old one.
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { MathJsonSymbol } from '../math-json/types';
3
3
  export declare function ask(ce: IComputeEngine, pattern: Expression): BoxedSubstitution[];
4
4
  export declare function verify(ce: IComputeEngine, query: Expression): boolean | undefined;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  private _entries;
3
3
  getOrBuild<T>(cacheName: string, build: () => T, purge?: (t: T) => T | undefined): T;
4
4
  invalidate(cacheName: string): void;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  export type CommonSymbolTable = {
3
3
  [symbol: string]: null | Expression;
4
4
  };
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { LanguageTarget } from './compilation/types';
3
3
  /**
4
4
  * Internal registry for compilation targets.
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  type ResetHooks = {
3
3
  refreshNumericConstants: () => void;
4
4
  resetCommonSymbols: () => void;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import { BoxedType } from '../common/type/boxed-type';
3
3
  import type { MathJsonSymbol } from '../math-json/types';
4
4
  import type { ValueDefinition, OperatorDefinition, AssignValue, Expression, BoxedDefinition, SymbolDefinition, IComputeEngine, Scope } from './global-types';
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import { Decimal } from 'decimal.js';
3
3
  import type { MathJsonNumberObject, MathJsonSymbol } from '../math-json/types';
4
4
  import { NumericValue } from './numeric-value/types';
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { LanguageTarget, CompilationOptions } from './compilation/types';
3
3
  export declare function assertCompilationTargetName(name: unknown): string;
4
4
  export declare function assertLibraryName(name: unknown): string;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { LatexDictionaryEntry } from './latex-syntax/types';
3
3
  type DefaultDictionaryProvider = () => Readonly<LatexDictionaryEntry[]>;
4
4
  export declare class EngineLatexDictionaryState {
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { LatexDictionaryEntry, LibraryCategory } from './latex-syntax/types';
3
3
  export declare function resolveBootstrapLibraries(libraries?: readonly (string | LibraryDefinition)[]): LibraryDefinition[];
4
4
  export declare function loadLibraryDefinitions(engine: ComputeEngine, libraries: readonly LibraryDefinition[]): void;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { AngularUnit } from './types-definitions';
3
3
  export declare class EngineNumericConfiguration {
4
4
  private _bignum;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { LatexString, ParseLatexOptions } from './latex-syntax/types';
3
3
  import type { FormOption } from './types-serialization';
4
4
  export type ParseEntrypointOptions = Partial<ParseLatexOptions> & {
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  private _timeLimit;
3
3
  private _iterationLimit;
4
4
  private _recursionLimit;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { IComputeEngine, Scope, EvalContext } from './global-types';
3
3
  export declare function pushScope(ce: IComputeEngine, scope?: Scope, name?: string): void;
4
4
  export declare function popScope(ce: IComputeEngine): void;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  export declare function declareSequence(ce: IComputeEngine, name: string, def: SequenceDefinition): IComputeEngine;
3
3
  export declare function getSequenceStatus(ce: IComputeEngine, name: string): SequenceStatus;
4
4
  export declare function getSequence(ce: IComputeEngine, name: string): SequenceInfo | undefined;
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  /**
3
3
  * Internal holder for simplification rules and their cache-staleness marker.
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 0.51.0 */
1
+ /* 0.52.0 */
2
2
  import type { Expression, IComputeEngine as ComputeEngine, LibraryDefinition } from './global-types';
3
3
  export type CommonNumberBindings = {
4
4
  Zero: Expression;