@cortex-js/compute-engine 0.35.0 → 0.35.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 (177) hide show
  1. package/dist/compute-engine.esm.js +605 -201
  2. package/dist/compute-engine.min.esm.js +238 -43
  3. package/dist/compute-engine.min.umd.js +238 -43
  4. package/dist/compute-engine.umd.js +605 -201
  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 +1 -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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  50. package/dist/types/compute-engine/boxed-expression/expand.d.ts +1 -1
  51. package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
  52. package/dist/types/compute-engine/boxed-expression/factor.d.ts +1 -1
  53. package/dist/types/compute-engine/boxed-expression/flatten.d.ts +1 -1
  54. package/dist/types/compute-engine/boxed-expression/hold.d.ts +1 -1
  55. package/dist/types/compute-engine/boxed-expression/match.d.ts +1 -1
  56. package/dist/types/compute-engine/boxed-expression/negate.d.ts +1 -1
  57. package/dist/types/compute-engine/boxed-expression/numerics.d.ts +1 -1
  58. package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
  59. package/dist/types/compute-engine/boxed-expression/polynomials.d.ts +1 -1
  60. package/dist/types/compute-engine/boxed-expression/product.d.ts +1 -1
  61. package/dist/types/compute-engine/boxed-expression/rules.d.ts +1 -1
  62. package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
  63. package/dist/types/compute-engine/boxed-expression/sgn.d.ts +1 -1
  64. package/dist/types/compute-engine/boxed-expression/simplify.d.ts +1 -1
  65. package/dist/types/compute-engine/boxed-expression/solve-linear-system.d.ts +1 -1
  66. package/dist/types/compute-engine/boxed-expression/solve.d.ts +1 -1
  67. package/dist/types/compute-engine/boxed-expression/terms.d.ts +1 -1
  68. package/dist/types/compute-engine/boxed-expression/trigonometry.d.ts +1 -1
  69. package/dist/types/compute-engine/boxed-expression/utils.d.ts +1 -1
  70. package/dist/types/compute-engine/boxed-expression/validate.d.ts +1 -1
  71. package/dist/types/compute-engine/collection-utils.d.ts +1 -1
  72. package/dist/types/compute-engine/compilation/base-compiler.d.ts +1 -1
  73. package/dist/types/compute-engine/compilation/glsl-target.d.ts +1 -1
  74. package/dist/types/compute-engine/compilation/interval-glsl-target.d.ts +1 -1
  75. package/dist/types/compute-engine/compilation/interval-javascript-target.d.ts +1 -1
  76. package/dist/types/compute-engine/compilation/javascript-target.d.ts +1 -1
  77. package/dist/types/compute-engine/compilation/types.d.ts +1 -1
  78. package/dist/types/compute-engine/cost-function.d.ts +1 -1
  79. package/dist/types/compute-engine/function-utils.d.ts +1 -1
  80. package/dist/types/compute-engine/global-types.d.ts +1 -1
  81. package/dist/types/compute-engine/index.d.ts +1 -1
  82. package/dist/types/compute-engine/interval/arithmetic.d.ts +1 -1
  83. package/dist/types/compute-engine/interval/comparison.d.ts +9 -9
  84. package/dist/types/compute-engine/interval/elementary.d.ts +14 -14
  85. package/dist/types/compute-engine/interval/index.d.ts +1 -1
  86. package/dist/types/compute-engine/interval/trigonometric.d.ts +17 -17
  87. package/dist/types/compute-engine/interval/types.d.ts +1 -1
  88. package/dist/types/compute-engine/interval/util.d.ts +1 -1
  89. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
  90. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
  91. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
  92. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-complex.d.ts +1 -1
  93. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
  94. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-linear-algebra.d.ts +1 -1
  95. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +1 -1
  96. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
  97. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts +1 -1
  98. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
  99. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-statistics.d.ts +1 -1
  100. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
  101. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
  102. package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
  103. package/dist/types/compute-engine/latex-syntax/parse-symbol.d.ts +1 -1
  104. package/dist/types/compute-engine/latex-syntax/parse.d.ts +1 -1
  105. package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
  106. package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
  107. package/dist/types/compute-engine/latex-syntax/serializer.d.ts +1 -1
  108. package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
  109. package/dist/types/compute-engine/latex-syntax/types.d.ts +1 -1
  110. package/dist/types/compute-engine/latex-syntax/utils.d.ts +1 -1
  111. package/dist/types/compute-engine/library/arithmetic.d.ts +1 -1
  112. package/dist/types/compute-engine/library/calculus.d.ts +1 -1
  113. package/dist/types/compute-engine/library/collections.d.ts +1 -1
  114. package/dist/types/compute-engine/library/combinatorics.d.ts +1 -1
  115. package/dist/types/compute-engine/library/complex.d.ts +1 -1
  116. package/dist/types/compute-engine/library/control-structures.d.ts +1 -1
  117. package/dist/types/compute-engine/library/core.d.ts +1 -1
  118. package/dist/types/compute-engine/library/invisible-operator.d.ts +1 -1
  119. package/dist/types/compute-engine/library/library.d.ts +1 -1
  120. package/dist/types/compute-engine/library/linear-algebra.d.ts +1 -1
  121. package/dist/types/compute-engine/library/logic-analysis.d.ts +1 -1
  122. package/dist/types/compute-engine/library/logic-utils.d.ts +1 -1
  123. package/dist/types/compute-engine/library/logic.d.ts +1 -1
  124. package/dist/types/compute-engine/library/number-theory.d.ts +1 -1
  125. package/dist/types/compute-engine/library/polynomials.d.ts +1 -1
  126. package/dist/types/compute-engine/library/random-expression.d.ts +1 -1
  127. package/dist/types/compute-engine/library/relational-operator.d.ts +1 -1
  128. package/dist/types/compute-engine/library/sets.d.ts +1 -1
  129. package/dist/types/compute-engine/library/statistics.d.ts +1 -1
  130. package/dist/types/compute-engine/library/trigonometry.d.ts +1 -1
  131. package/dist/types/compute-engine/library/utils.d.ts +1 -1
  132. package/dist/types/compute-engine/numeric-value/big-numeric-value.d.ts +1 -1
  133. package/dist/types/compute-engine/numeric-value/exact-numeric-value.d.ts +1 -1
  134. package/dist/types/compute-engine/numeric-value/machine-numeric-value.d.ts +1 -1
  135. package/dist/types/compute-engine/numeric-value/types.d.ts +1 -1
  136. package/dist/types/compute-engine/numerics/bigint.d.ts +1 -1
  137. package/dist/types/compute-engine/numerics/expression.d.ts +1 -1
  138. package/dist/types/compute-engine/numerics/interval.d.ts +1 -1
  139. package/dist/types/compute-engine/numerics/monte-carlo.d.ts +1 -1
  140. package/dist/types/compute-engine/numerics/numeric-bigint.d.ts +1 -1
  141. package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +1 -1
  142. package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
  143. package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
  144. package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
  145. package/dist/types/compute-engine/numerics/rationals.d.ts +1 -1
  146. package/dist/types/compute-engine/numerics/richardson.d.ts +1 -1
  147. package/dist/types/compute-engine/numerics/special-functions.d.ts +1 -1
  148. package/dist/types/compute-engine/numerics/statistics.d.ts +1 -1
  149. package/dist/types/compute-engine/numerics/strings.d.ts +1 -1
  150. package/dist/types/compute-engine/numerics/types.d.ts +1 -1
  151. package/dist/types/compute-engine/oeis.d.ts +1 -1
  152. package/dist/types/compute-engine/sequence.d.ts +1 -1
  153. package/dist/types/compute-engine/symbolic/antiderivative.d.ts +1 -1
  154. package/dist/types/compute-engine/symbolic/derivative.d.ts +1 -1
  155. package/dist/types/compute-engine/symbolic/distribute.d.ts +1 -1
  156. package/dist/types/compute-engine/symbolic/fu-cost.d.ts +1 -1
  157. package/dist/types/compute-engine/symbolic/fu-transforms.d.ts +1 -1
  158. package/dist/types/compute-engine/symbolic/fu.d.ts +1 -1
  159. package/dist/types/compute-engine/symbolic/simplify-abs.d.ts +1 -1
  160. package/dist/types/compute-engine/symbolic/simplify-divide.d.ts +1 -1
  161. package/dist/types/compute-engine/symbolic/simplify-hyperbolic.d.ts +1 -1
  162. package/dist/types/compute-engine/symbolic/simplify-infinity.d.ts +1 -1
  163. package/dist/types/compute-engine/symbolic/simplify-log.d.ts +1 -1
  164. package/dist/types/compute-engine/symbolic/simplify-power.d.ts +1 -1
  165. package/dist/types/compute-engine/symbolic/simplify-product.d.ts +1 -1
  166. package/dist/types/compute-engine/symbolic/simplify-rules.d.ts +1 -1
  167. package/dist/types/compute-engine/symbolic/simplify-sum.d.ts +1 -1
  168. package/dist/types/compute-engine/symbolic/simplify-trig.d.ts +1 -1
  169. package/dist/types/compute-engine/tensor/tensor-fields.d.ts +1 -1
  170. package/dist/types/compute-engine/tensor/tensors.d.ts +1 -1
  171. package/dist/types/compute-engine/types.d.ts +1 -1
  172. package/dist/types/compute-engine.d.ts +1 -1
  173. package/dist/types/math-json/symbols.d.ts +1 -1
  174. package/dist/types/math-json/types.d.ts +1 -1
  175. package/dist/types/math-json/utils.d.ts +1 -1
  176. package/dist/types/math-json.d.ts +2 -2
  177. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  * Comparison and conditional interval operations
3
3
  *
4
4
  * @module interval/comparison
@@ -12,19 +12,19 @@ import type { Interval, IntervalResult, BoolInterval } from './types';
12
12
  * - 'false' if a is entirely greater than or equal to b (a.lo >= b.hi)
13
13
  * - 'maybe' if intervals overlap
14
14
  */
15
- export declare function less(a: Interval, b: Interval): BoolInterval;
15
+ export declare function less(a: Interval | IntervalResult, b: Interval | IntervalResult): BoolInterval;
16
16
  /**
17
17
  * Less than or equal comparison for intervals.
18
18
  */
19
- export declare function lessEqual(a: Interval, b: Interval): BoolInterval;
19
+ export declare function lessEqual(a: Interval | IntervalResult, b: Interval | IntervalResult): BoolInterval;
20
20
  /**
21
21
  * Greater than comparison for intervals.
22
22
  */
23
- export declare function greater(a: Interval, b: Interval): BoolInterval;
23
+ export declare function greater(a: Interval | IntervalResult, b: Interval | IntervalResult): BoolInterval;
24
24
  /**
25
25
  * Greater than or equal comparison for intervals.
26
26
  */
27
- export declare function greaterEqual(a: Interval, b: Interval): BoolInterval;
27
+ export declare function greaterEqual(a: Interval | IntervalResult, b: Interval | IntervalResult): BoolInterval;
28
28
  /**
29
29
  * Equality comparison for intervals.
30
30
  *
@@ -33,11 +33,11 @@ export declare function greaterEqual(a: Interval, b: Interval): BoolInterval;
33
33
  * - 'false' if intervals don't overlap
34
34
  * - 'maybe' if intervals overlap
35
35
  */
36
- export declare function equal(a: Interval, b: Interval): BoolInterval;
36
+ export declare function equal(a: Interval | IntervalResult, b: Interval | IntervalResult): BoolInterval;
37
37
  /**
38
38
  * Not equal comparison for intervals.
39
39
  */
40
- export declare function notEqual(a: Interval, b: Interval): BoolInterval;
40
+ export declare function notEqual(a: Interval | IntervalResult, b: Interval | IntervalResult): BoolInterval;
41
41
  /**
42
42
  * Logical AND for boolean intervals.
43
43
  */
@@ -61,10 +61,10 @@ export declare function not(a: BoolInterval): BoolInterval;
61
61
  * @param trueBranch - Function for when condition is true
62
62
  * @param falseBranch - Function for when condition is false
63
63
  */
64
- export declare function piecewise(x: Interval, condition: (x: Interval) => BoolInterval, trueBranch: (x: Interval) => IntervalResult, falseBranch: (x: Interval) => IntervalResult): IntervalResult;
64
+ export declare function piecewise(xOrCond: Interval | IntervalResult | BoolInterval, conditionOrTrue: ((x: Interval) => BoolInterval) | (() => IntervalResult), trueOrFalse: ((x: Interval) => IntervalResult) | (() => IntervalResult), falseBranch?: (x: Interval) => IntervalResult): IntervalResult;
65
65
  /**
66
66
  * Clamp an interval to a range.
67
67
  *
68
68
  * clamp(x, lo, hi) returns x clamped to [lo, hi].
69
69
  */
70
- export declare function clamp(x: Interval, lo: Interval, hi: Interval): IntervalResult;
70
+ export declare function clamp(x: Interval | IntervalResult, lo: Interval | IntervalResult, hi: Interval | IntervalResult): IntervalResult;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  * Elementary interval functions (sqrt, pow, exp, ln, abs, floor, ceil, min, max, mod)
3
3
  *
4
4
  * @module interval/elementary
@@ -26,14 +26,14 @@ export declare function square(x: Interval | IntervalResult): IntervalResult;
26
26
  * - Negative integer: x^(-n) = 1/x^n, singular if base contains 0
27
27
  * - Fractional: requires non-negative base for real result
28
28
  */
29
- export declare function pow(base: Interval, exp: number): IntervalResult;
29
+ export declare function pow(base: Interval | IntervalResult, exp: number): IntervalResult;
30
30
  /**
31
31
  * Interval power where the exponent is also an interval.
32
32
  *
33
33
  * For simplicity, we evaluate at the four corners and take the hull.
34
34
  * This requires base to be positive for real results.
35
35
  */
36
- export declare function powInterval(base: Interval, exp: Interval): IntervalResult;
36
+ export declare function powInterval(base: Interval | IntervalResult, exp: Interval | IntervalResult): IntervalResult;
37
37
  /**
38
38
  * Exponential function (e^x).
39
39
  *
@@ -48,53 +48,53 @@ export declare function exp(x: Interval | IntervalResult): IntervalResult;
48
48
  * - Entirely positive: straightforward monotonic
49
49
  * - Contains/touches zero: partial with -Infinity lower bound
50
50
  */
51
- export declare function ln(x: Interval): IntervalResult;
51
+ export declare function ln(x: Interval | IntervalResult): IntervalResult;
52
52
  /**
53
53
  * Base-10 logarithm.
54
54
  */
55
- export declare function log10(x: Interval): IntervalResult;
55
+ export declare function log10(x: Interval | IntervalResult): IntervalResult;
56
56
  /**
57
57
  * Base-2 logarithm.
58
58
  */
59
- export declare function log2(x: Interval): IntervalResult;
59
+ export declare function log2(x: Interval | IntervalResult): IntervalResult;
60
60
  /**
61
61
  * Absolute value of an interval.
62
62
  */
63
- export declare function abs(x: Interval): IntervalResult;
63
+ export declare function abs(x: Interval | IntervalResult): IntervalResult;
64
64
  /**
65
65
  * Floor function (greatest integer <= x).
66
66
  *
67
67
  * Note: Produces step-function discontinuities when floor(x.lo) != floor(x.hi).
68
68
  */
69
- export declare function floor(x: Interval): IntervalResult;
69
+ export declare function floor(x: Interval | IntervalResult): IntervalResult;
70
70
  /**
71
71
  * Ceiling function (least integer >= x).
72
72
  *
73
73
  * Note: Produces step-function discontinuities when ceil(x.lo) != ceil(x.hi).
74
74
  */
75
- export declare function ceil(x: Interval): IntervalResult;
75
+ export declare function ceil(x: Interval | IntervalResult): IntervalResult;
76
76
  /**
77
77
  * Round to nearest integer.
78
78
  */
79
- export declare function round(x: Interval): IntervalResult;
79
+ export declare function round(x: Interval | IntervalResult): IntervalResult;
80
80
  /**
81
81
  * Minimum of two intervals.
82
82
  */
83
- export declare function min(a: Interval, b: Interval): IntervalResult;
83
+ export declare function min(a: Interval | IntervalResult, b: Interval | IntervalResult): IntervalResult;
84
84
  /**
85
85
  * Maximum of two intervals.
86
86
  */
87
- export declare function max(a: Interval, b: Interval): IntervalResult;
87
+ export declare function max(a: Interval | IntervalResult, b: Interval | IntervalResult): IntervalResult;
88
88
  /**
89
89
  * Modulo (remainder) operation.
90
90
  *
91
91
  * Has discontinuities and is complex with interval divisor.
92
92
  * Conservative approach: if interval spans a period, return [0, |b|).
93
93
  */
94
- export declare function mod(a: Interval, b: Interval): IntervalResult;
94
+ export declare function mod(a: Interval | IntervalResult, b: Interval | IntervalResult): IntervalResult;
95
95
  /**
96
96
  * Sign function.
97
97
  *
98
98
  * Returns -1, 0, or 1 depending on the sign.
99
99
  */
100
- export declare function sign(x: Interval): IntervalResult;
100
+ export declare function sign(x: Interval | IntervalResult): IntervalResult;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.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.35.0 */
1
+ /* 0.35.2 */
2
2
  * Trigonometric interval functions
3
3
  *
4
4
  * @module interval/trigonometric
@@ -9,97 +9,97 @@ import type { Interval, IntervalResult } from './types';
9
9
  *
10
10
  * Sin is bounded [-1, 1] and periodic with extrema at pi/2 + n*pi.
11
11
  */
12
- export declare function sin(x: Interval): IntervalResult;
12
+ export declare function sin(x: Interval | IntervalResult): IntervalResult;
13
13
  /**
14
14
  * Cosine of an interval.
15
15
  *
16
16
  * Cos is bounded [-1, 1] and periodic with extrema at n*pi.
17
17
  */
18
- export declare function cos(x: Interval): IntervalResult;
18
+ export declare function cos(x: Interval | IntervalResult): IntervalResult;
19
19
  /**
20
20
  * Tangent of an interval.
21
21
  *
22
22
  * Has singularities at pi/2 + n*pi. Within a single branch,
23
23
  * tan is monotonically increasing.
24
24
  */
25
- export declare function tan(x: Interval): IntervalResult;
25
+ export declare function tan(x: Interval | IntervalResult): IntervalResult;
26
26
  /**
27
27
  * Cotangent of an interval.
28
28
  *
29
29
  * cot(x) = cos(x)/sin(x), has singularities at n*pi.
30
30
  */
31
- export declare function cot(x: Interval): IntervalResult;
31
+ export declare function cot(x: Interval | IntervalResult): IntervalResult;
32
32
  /**
33
33
  * Secant of an interval.
34
34
  *
35
35
  * sec(x) = 1/cos(x), has singularities at pi/2 + n*pi.
36
36
  */
37
- export declare function sec(x: Interval): IntervalResult;
37
+ export declare function sec(x: Interval | IntervalResult): IntervalResult;
38
38
  /**
39
39
  * Cosecant of an interval.
40
40
  *
41
41
  * csc(x) = 1/sin(x), has singularities at n*pi.
42
42
  */
43
- export declare function csc(x: Interval): IntervalResult;
43
+ export declare function csc(x: Interval | IntervalResult): IntervalResult;
44
44
  /**
45
45
  * Arc sine (inverse sine).
46
46
  *
47
47
  * Domain: [-1, 1], Range: [-pi/2, pi/2]
48
48
  */
49
- export declare function asin(x: Interval): IntervalResult;
49
+ export declare function asin(x: Interval | IntervalResult): IntervalResult;
50
50
  /**
51
51
  * Arc cosine (inverse cosine).
52
52
  *
53
53
  * Domain: [-1, 1], Range: [0, pi]
54
54
  */
55
- export declare function acos(x: Interval): IntervalResult;
55
+ export declare function acos(x: Interval | IntervalResult): IntervalResult;
56
56
  /**
57
57
  * Arc tangent (inverse tangent).
58
58
  *
59
59
  * Domain: all reals, Range: (-pi/2, pi/2)
60
60
  * Monotonically increasing.
61
61
  */
62
- export declare function atan(x: Interval): IntervalResult;
62
+ export declare function atan(x: Interval | IntervalResult): IntervalResult;
63
63
  /**
64
64
  * Two-argument arc tangent.
65
65
  *
66
66
  * atan2(y, x) gives the angle of the point (x, y).
67
67
  * Handles all quadrants correctly.
68
68
  */
69
- export declare function atan2(y: Interval, x: Interval): IntervalResult;
69
+ export declare function atan2(y: Interval | IntervalResult, x: Interval | IntervalResult): IntervalResult;
70
70
  /**
71
71
  * Hyperbolic sine.
72
72
  *
73
73
  * Domain: all reals, monotonically increasing.
74
74
  */
75
- export declare function sinh(x: Interval): IntervalResult;
75
+ export declare function sinh(x: Interval | IntervalResult): IntervalResult;
76
76
  /**
77
77
  * Hyperbolic cosine.
78
78
  *
79
79
  * Domain: all reals, minimum at x=0.
80
80
  */
81
- export declare function cosh(x: Interval): IntervalResult;
81
+ export declare function cosh(x: Interval | IntervalResult): IntervalResult;
82
82
  /**
83
83
  * Hyperbolic tangent.
84
84
  *
85
85
  * Domain: all reals, Range: (-1, 1), monotonically increasing.
86
86
  */
87
- export declare function tanh(x: Interval): IntervalResult;
87
+ export declare function tanh(x: Interval | IntervalResult): IntervalResult;
88
88
  /**
89
89
  * Inverse hyperbolic sine.
90
90
  *
91
91
  * Domain: all reals, monotonically increasing.
92
92
  */
93
- export declare function asinh(x: Interval): IntervalResult;
93
+ export declare function asinh(x: Interval | IntervalResult): IntervalResult;
94
94
  /**
95
95
  * Inverse hyperbolic cosine.
96
96
  *
97
97
  * Domain: [1, +Infinity)
98
98
  */
99
- export declare function acosh(x: Interval): IntervalResult;
99
+ export declare function acosh(x: Interval | IntervalResult): IntervalResult;
100
100
  /**
101
101
  * Inverse hyperbolic tangent.
102
102
  *
103
103
  * Domain: (-1, 1)
104
104
  */
105
- export declare function atanh(x: Interval): IntervalResult;
105
+ export declare function atanh(x: Interval | IntervalResult): IntervalResult;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  * Interval arithmetic types for reliable function evaluation
3
3
  *
4
4
  * @module interval/types
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  * Utility functions for interval arithmetic
3
3
  *
4
4
  * @module interval/util
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_ALGEBRA: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_ARITHMETIC: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_CALCULUS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_COMPLEX: LatexDictionary;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.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.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_LINEAR_ALGEBRA: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_LOGIC: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_OTHERS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_INEQUALITIES: LatexDictionaryEntry[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_SETS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_STATISTICS: LatexDictionary;
@@ -1,3 +1,3 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const SYMBOLS: [string, string, number][];
3
3
  export declare const DEFINITIONS_SYMBOLS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFINITIONS_TRIGONOMETRY: LatexDictionary;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { Delimiter, EnvironmentParseHandler, ExpressionParseHandler, InfixParseHandler, LatexDictionary, LatexDictionaryEntry, LatexString, LatexToken, LibraryCategory, MatchfixParseHandler, PostfixParseHandler, Precedence, SerializeHandler } from '../types';
3
3
  export type CommonEntry = {
4
4
  /** Note: a name is required if a serialize handler is provided */
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { Parser } from './types';
3
3
  /** For error handling, if we have a symbol prefix, assume
4
4
  * the symbol is invalid (it would have been captured by
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { ParseLatexOptions, LatexToken, Terminator, Parser, SymbolTable } from './types';
3
3
  import type { IndexedLatexDictionary, IndexedLatexDictionaryEntry, IndexedInfixEntry, IndexedPostfixEntry, IndexedPrefixEntry, IndexedSymbolEntry, IndexedExpressionEntry, IndexedFunctionEntry } from './dictionary/definitions';
4
4
  import { BoxedType } from '../../common/type/boxed-type';
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { NumberSerializationFormat } from './types';
3
3
  /**
4
4
  * @param expr - A number, can be represented as a string
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { DelimiterScale } from './types';
3
3
  export declare function getApplyFunctionStyle(_expr: Expression, _level: number): DelimiterScale;
4
4
  export declare function getGroupStyle(_expr: Expression, _level: number): DelimiterScale;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { LatexString, SerializeLatexOptions, DelimiterScale } from './types';
3
3
  import type { IndexedLatexDictionary, IndexedLatexDictionaryEntry } from './dictionary/definitions';
4
4
  export declare class Serializer {
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  * ## Reference
3
3
  * TeX source code:
4
4
  * {@link http://tug.org/texlive/devsrc/Build/source/texk/web2c/tex.web | Tex.web}
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import type { Expression, MathJsonSymbol } from '../../math-json/types';
3
3
  import { BoxedType, TypeString } from '../types';
4
4
  import type { IndexedLatexDictionary, IndexedLatexDictionaryEntry } from './dictionary/definitions';
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function asLatexString(s: unknown): string | null;
3
3
  export declare function isRelationalOperator(name: string | undefined): boolean;
4
4
  export declare function isInequalityOperator(operator: string | undefined): boolean;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export type CanonicalArithmeticOperators = 'Add' | 'Negate' | 'Multiply' | 'Divide' | 'Power' | 'Sqrt' | 'Root' | 'Ln';
3
3
  export declare const ARITHMETIC_LIBRARY: SymbolDefinitions[];
4
4
  export declare function isPrime(expr: BoxedExpression): boolean | undefined;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const CALCULUS_LIBRARY: SymbolDefinitions[];
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const DEFAULT_LINSPACE_COUNT = 50;
3
3
  export declare const COLLECTIONS_LIBRARY: SymbolDefinitions;
4
4
  /**
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const COMBINATORICS_LIBRARY: SymbolDefinitions[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const COMPLEX_LIBRARY: SymbolDefinitions[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const CONTROL_STRUCTURES_LIBRARY: SymbolDefinitions[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const CORE_LIBRARY: SymbolDefinitions[];
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function canonicalInvisibleOperator(ops: ReadonlyArray<BoxedExpression>, { engine: ce }: {
3
3
  engine: ComputeEngine;
4
4
  }): BoxedExpression | null;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import type { SymbolDefinitions, ComputeEngine } from '../global-types';
3
3
  export declare function getStandardLibrary(categories: LibraryCategory[] | LibraryCategory | 'all'): readonly SymbolDefinitions[];
4
4
  export declare const LIBRARIES: {
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const LINEAR_ALGEBRA_LIBRARY: SymbolDefinitions[];
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  /**
3
3
  * Quantifier domain helpers and boolean analysis functions.
4
4
  * Extracted from logic.ts for better code organization.
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function evaluateAnd(args: ReadonlyArray<BoxedExpression>, { engine: ce }: {
3
3
  engine: ComputeEngine;
4
4
  }): BoxedExpression | undefined;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const LOGIC_LIBRARY: SymbolDefinitions;
3
3
  export declare function simplifyLogicFunction(x: BoxedExpression): {
4
4
  value: BoxedExpression;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const NUMBER_THEORY_LIBRARY: SymbolDefinitions[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const POLYNOMIALS_LIBRARY: SymbolDefinitions[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function randomExpression(level?: number): Expression;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const RELOP_LIBRARY: SymbolDefinitions;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const SETS_LIBRARY: SymbolDefinitions;
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const STATISTICS_LIBRARY: SymbolDefinitions[];
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare const TRIGONOMETRY_LIBRARY: SymbolDefinitions[];
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  /**
3
3
  * EL-4: Convert known infinite integer sets to their equivalent Limits bounds.
4
4
  * Returns undefined if the set cannot be converted to a Limits form.
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { BigNumFactory, NumericValue, NumericValueData } from './types';
3
3
  import { ExactNumericValue } from './exact-numeric-value';
4
4
  import { Expression } from '../../math-json/types';
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { Rational, SmallInteger } from '../numerics/types';
3
3
  import { BigNumFactory, ExactNumericValueData, NumericValue, NumericValueFactory } from './types';
4
4
  import { Expression } from '../../math-json/types';
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  import { BigNumFactory, NumericValue, NumericValueData } from './types';
3
3
  import type { Expression } from '../../math-json/types';
4
4
  import type { SmallInteger } from '../numerics/types';
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  *
3
3
  * ## THEORY OF OPERATIONS
4
4
  *
@@ -1,2 +1,2 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function bigint(a: Decimal | number | bigint | string): bigint | null;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function bigintValue(expr: Expression | null | undefined): bigint | null;
3
3
  /** Output a shorthand if possible */
4
4
  export declare function numberToExpression(num: number | bigint, fractionalDigits?: string | number): Expression;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  /** An interval is a continuous set of real numbers */
3
3
  export type Interval = {
4
4
  start: number;
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  estimate: number;
3
3
  error: number;
4
4
  };
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function lcm(a: bigint, b: bigint): bigint;
3
3
  /** Return `[factor, root]` such that
4
4
  * pow(n, 1/exponent) = factor * pow(root, 1/exponent)
@@ -1,4 +1,4 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function gcd(a: BigNum, b: BigNum): BigNum;
3
3
  export declare function lcm(a: BigNum, b: BigNum): BigNum;
4
4
  export declare function factorial2(ce: IBigNum, n: BigNum): BigNum;
@@ -1,3 +1,3 @@
1
- /* 0.35.0 */
1
+ /* 0.35.2 */
2
2
  export declare function gamma(c: Complex): Complex;
3
3
  export declare function gammaln(c: Complex): Complex;