@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.
- package/dist/compute-engine.esm.js +605 -201
- package/dist/compute-engine.min.esm.js +238 -43
- package/dist/compute-engine.min.umd.js +238 -43
- package/dist/compute-engine.umd.js +605 -201
- package/dist/math-json.esm.js +2 -2
- package/dist/math-json.min.esm.js +2 -2
- package/dist/math-json.min.umd.js +2 -2
- package/dist/math-json.umd.js +2 -2
- package/dist/types/common/ansi-codes.d.ts +1 -1
- package/dist/types/common/configuration-change.d.ts +1 -1
- package/dist/types/common/fuzzy-string-match.d.ts +1 -1
- package/dist/types/common/grapheme-splitter.d.ts +1 -1
- package/dist/types/common/interruptible.d.ts +1 -1
- package/dist/types/common/one-of.d.ts +1 -1
- package/dist/types/common/signals.d.ts +1 -1
- package/dist/types/common/type/ast-nodes.d.ts +1 -1
- package/dist/types/common/type/boxed-type.d.ts +1 -1
- package/dist/types/common/type/lexer.d.ts +1 -1
- package/dist/types/common/type/parse.d.ts +1 -1
- package/dist/types/common/type/parser.d.ts +1 -1
- package/dist/types/common/type/primitive.d.ts +1 -1
- package/dist/types/common/type/reduce.d.ts +1 -1
- package/dist/types/common/type/serialize.d.ts +1 -1
- package/dist/types/common/type/subtype.d.ts +1 -1
- package/dist/types/common/type/type-builder.d.ts +1 -1
- package/dist/types/common/type/types.d.ts +1 -1
- package/dist/types/common/type/utils.d.ts +1 -1
- package/dist/types/common/utils.d.ts +1 -1
- package/dist/types/compute-engine/assume.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/abstract-boxed-expression.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/apply.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/arithmetic-add.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/arithmetic-mul-div.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/arithmetic-power.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/ascii-math.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/box.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-dictionary.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-function.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-number.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-operator-definition.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-patterns.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-string.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-tensor.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/boxed-value-definition.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/cache.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/canonical-utils.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/canonical.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/compare.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/expand.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/factor.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/flatten.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/hold.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/match.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/negate.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/numerics.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/polynomials.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/product.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/rules.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/sgn.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/simplify.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/solve-linear-system.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/solve.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/terms.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/trigonometry.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/utils.d.ts +1 -1
- package/dist/types/compute-engine/boxed-expression/validate.d.ts +1 -1
- package/dist/types/compute-engine/collection-utils.d.ts +1 -1
- package/dist/types/compute-engine/compilation/base-compiler.d.ts +1 -1
- package/dist/types/compute-engine/compilation/glsl-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/interval-glsl-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/interval-javascript-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/javascript-target.d.ts +1 -1
- package/dist/types/compute-engine/compilation/types.d.ts +1 -1
- package/dist/types/compute-engine/cost-function.d.ts +1 -1
- package/dist/types/compute-engine/function-utils.d.ts +1 -1
- package/dist/types/compute-engine/global-types.d.ts +1 -1
- package/dist/types/compute-engine/index.d.ts +1 -1
- package/dist/types/compute-engine/interval/arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/interval/comparison.d.ts +9 -9
- package/dist/types/compute-engine/interval/elementary.d.ts +14 -14
- package/dist/types/compute-engine/interval/index.d.ts +1 -1
- package/dist/types/compute-engine/interval/trigonometric.d.ts +17 -17
- package/dist/types/compute-engine/interval/types.d.ts +1 -1
- package/dist/types/compute-engine/interval/util.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-complex.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-linear-algebra.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-statistics.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/parse-symbol.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/parse.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/serializer.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/types.d.ts +1 -1
- package/dist/types/compute-engine/latex-syntax/utils.d.ts +1 -1
- package/dist/types/compute-engine/library/arithmetic.d.ts +1 -1
- package/dist/types/compute-engine/library/calculus.d.ts +1 -1
- package/dist/types/compute-engine/library/collections.d.ts +1 -1
- package/dist/types/compute-engine/library/combinatorics.d.ts +1 -1
- package/dist/types/compute-engine/library/complex.d.ts +1 -1
- package/dist/types/compute-engine/library/control-structures.d.ts +1 -1
- package/dist/types/compute-engine/library/core.d.ts +1 -1
- package/dist/types/compute-engine/library/invisible-operator.d.ts +1 -1
- package/dist/types/compute-engine/library/library.d.ts +1 -1
- package/dist/types/compute-engine/library/linear-algebra.d.ts +1 -1
- package/dist/types/compute-engine/library/logic-analysis.d.ts +1 -1
- package/dist/types/compute-engine/library/logic-utils.d.ts +1 -1
- package/dist/types/compute-engine/library/logic.d.ts +1 -1
- package/dist/types/compute-engine/library/number-theory.d.ts +1 -1
- package/dist/types/compute-engine/library/polynomials.d.ts +1 -1
- package/dist/types/compute-engine/library/random-expression.d.ts +1 -1
- package/dist/types/compute-engine/library/relational-operator.d.ts +1 -1
- package/dist/types/compute-engine/library/sets.d.ts +1 -1
- package/dist/types/compute-engine/library/statistics.d.ts +1 -1
- package/dist/types/compute-engine/library/trigonometry.d.ts +1 -1
- package/dist/types/compute-engine/library/utils.d.ts +1 -1
- package/dist/types/compute-engine/numeric-value/big-numeric-value.d.ts +1 -1
- package/dist/types/compute-engine/numeric-value/exact-numeric-value.d.ts +1 -1
- package/dist/types/compute-engine/numeric-value/machine-numeric-value.d.ts +1 -1
- package/dist/types/compute-engine/numeric-value/types.d.ts +1 -1
- package/dist/types/compute-engine/numerics/bigint.d.ts +1 -1
- package/dist/types/compute-engine/numerics/expression.d.ts +1 -1
- package/dist/types/compute-engine/numerics/interval.d.ts +1 -1
- package/dist/types/compute-engine/numerics/monte-carlo.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric-bigint.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
- package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
- package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
- package/dist/types/compute-engine/numerics/rationals.d.ts +1 -1
- package/dist/types/compute-engine/numerics/richardson.d.ts +1 -1
- package/dist/types/compute-engine/numerics/special-functions.d.ts +1 -1
- package/dist/types/compute-engine/numerics/statistics.d.ts +1 -1
- package/dist/types/compute-engine/numerics/strings.d.ts +1 -1
- package/dist/types/compute-engine/numerics/types.d.ts +1 -1
- package/dist/types/compute-engine/oeis.d.ts +1 -1
- package/dist/types/compute-engine/sequence.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/antiderivative.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/derivative.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/distribute.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/fu-cost.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/fu-transforms.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/fu.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-abs.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-divide.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-hyperbolic.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-infinity.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-log.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-power.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-product.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-rules.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-sum.d.ts +1 -1
- package/dist/types/compute-engine/symbolic/simplify-trig.d.ts +1 -1
- package/dist/types/compute-engine/tensor/tensor-fields.d.ts +1 -1
- package/dist/types/compute-engine/tensor/tensors.d.ts +1 -1
- package/dist/types/compute-engine/types.d.ts +1 -1
- package/dist/types/compute-engine.d.ts +1 -1
- package/dist/types/math-json/symbols.d.ts +1 -1
- package/dist/types/math-json/types.d.ts +1 -1
- package/dist/types/math-json/utils.d.ts +1 -1
- package/dist/types/math-json.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 0.35.
|
|
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(
|
|
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.
|
|
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.
|
|
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,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_ALGEBRA: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_ARITHMETIC: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_CALCULUS: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_COMPLEX: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_LINEAR_ALGEBRA: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_LOGIC: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_OTHERS: LatexDictionary;
|
package/dist/types/compute-engine/latex-syntax/dictionary/definitions-relational-operators.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_INEQUALITIES: LatexDictionaryEntry[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_SETS: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_STATISTICS: LatexDictionary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const DEFINITIONS_TRIGONOMETRY: LatexDictionary;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 0.35.
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const CALCULUS_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const COMBINATORICS_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const COMPLEX_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const CONTROL_STRUCTURES_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const CORE_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const LINEAR_ALGEBRA_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const NUMBER_THEORY_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const POLYNOMIALS_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare function randomExpression(level?: number): Expression;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const RELOP_LIBRARY: SymbolDefinitions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const SETS_LIBRARY: SymbolDefinitions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const STATISTICS_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare const TRIGONOMETRY_LIBRARY: SymbolDefinitions[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 0.35.
|
|
1
|
+
/* 0.35.2 */
|
|
2
2
|
export declare function bigint(a: Decimal | number | bigint | string): bigint | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 0.35.
|
|
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;
|