mathjs 9.5.2 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HISTORY.md +43 -1
- package/NOTICE +1 -1
- package/README.md +10 -2
- package/bin/cli.js +1 -1
- package/docs/expressions/syntax.md +1 -1
- package/docs/reference/constants.md +1 -1
- package/docs/reference/functions/invmod.md +41 -0
- package/docs/reference/functions.md +1 -0
- package/examples/expressions.js +1 -1
- package/lib/browser/math.js +7 -7
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/constants.js +1 -1
- package/lib/cjs/core/function/config.js +1 -1
- package/lib/cjs/core/function/import.js +2 -1
- package/lib/cjs/entry/dependenciesAny/dependenciesIntersect.generated.js +6 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesInvmod.generated.js +41 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js +15 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +15 -0
- package/lib/cjs/entry/dependenciesAny.generated.js +1002 -994
- package/lib/cjs/entry/dependenciesNumber/dependenciesRationalize.generated.js +15 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +15 -0
- package/lib/cjs/entry/dependenciesNumber.generated.js +581 -581
- package/lib/cjs/entry/impureFunctionsAny.generated.js +325 -313
- package/lib/cjs/entry/impureFunctionsNumber.generated.js +233 -222
- package/lib/cjs/entry/mainAny.js +8 -8
- package/lib/cjs/entry/mainNumber.js +8 -8
- package/lib/cjs/entry/pureFunctionsAny.generated.js +1111 -1097
- package/lib/cjs/entry/pureFunctionsNumber.generated.js +375 -375
- package/lib/cjs/entry/typeChecks.js +12 -12
- package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +6 -1
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/invmod.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +1 -1
- package/lib/cjs/expression/operators.js +1 -1
- package/lib/cjs/factoriesAny.js +668 -660
- package/lib/cjs/factoriesNumber.js +268 -237
- package/lib/cjs/function/algebra/rationalize.js +18 -4
- package/lib/cjs/function/algebra/simplify/simplifyConstant.js +223 -29
- package/lib/cjs/function/algebra/simplify/simplifyCore.js +34 -6
- package/lib/cjs/function/algebra/simplify.js +73 -22
- package/lib/cjs/function/arithmetic/invmod.js +73 -0
- package/lib/cjs/function/arithmetic/round.js +2 -2
- package/lib/cjs/function/geometry/intersect.js +12 -13
- package/lib/cjs/function/probability/gamma.js +28 -30
- package/lib/cjs/header.js +3 -3
- package/lib/cjs/plain/bignumber/arithmetic.js +2 -2
- package/lib/cjs/plain/number/arithmetic.js +10 -10
- package/lib/cjs/plain/number/constants.js +1 -1
- package/lib/cjs/plain/number/logical.js +1 -1
- package/lib/cjs/plain/number/probability.js +2 -1
- package/lib/cjs/plain/number/trigonometry.js +1 -1
- package/lib/cjs/plain/number/utils.js +1 -1
- package/lib/cjs/type/matrix/SparseMatrix.js +19 -15
- package/lib/cjs/type/unit/Unit.js +2 -2
- package/lib/cjs/type/unit/physicalConstants.js +1 -1
- package/lib/cjs/utils/array.js +14 -14
- package/lib/cjs/utils/bignumber/bitwise.js +1 -1
- package/lib/cjs/utils/customs.js +5 -5
- package/lib/cjs/utils/factory.js +3 -3
- package/lib/cjs/utils/function.js +1 -1
- package/lib/cjs/utils/is.js +23 -23
- package/lib/cjs/utils/latex.js +2 -1
- package/lib/cjs/utils/map.js +3 -3
- package/lib/cjs/utils/noop.js +1 -1
- package/lib/cjs/utils/number.js +11 -7
- package/lib/cjs/utils/object.js +8 -8
- package/lib/cjs/utils/snapshot.js +3 -3
- package/lib/cjs/utils/string.js +2 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/core/function/import.js +2 -1
- package/lib/esm/entry/dependenciesAny/dependenciesIntersect.generated.js +4 -0
- package/lib/esm/entry/dependenciesAny/dependenciesInvmod.generated.js +24 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRationalize.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny.generated.js +271 -270
- package/lib/esm/entry/dependenciesNumber/dependenciesRationalize.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber.generated.js +163 -163
- package/lib/esm/entry/impureFunctionsAny.generated.js +312 -301
- package/lib/esm/entry/impureFunctionsNumber.generated.js +221 -211
- package/lib/esm/entry/pureFunctionsAny.generated.js +827 -814
- package/lib/esm/entry/pureFunctionsNumber.generated.js +234 -234
- package/lib/esm/expression/embeddedDocs/embeddedDocs.js +4 -1
- package/lib/esm/expression/embeddedDocs/function/arithmetic/invmod.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +1 -1
- package/lib/esm/factoriesAny.js +1 -0
- package/lib/esm/function/algebra/rationalize.js +18 -4
- package/lib/esm/function/algebra/simplify/simplifyConstant.js +197 -29
- package/lib/esm/function/algebra/simplify/simplifyCore.js +35 -7
- package/lib/esm/function/algebra/simplify.js +73 -22
- package/lib/esm/function/arithmetic/invmod.js +57 -0
- package/lib/esm/function/arithmetic/round.js +2 -2
- package/lib/esm/function/geometry/intersect.js +12 -12
- package/lib/esm/function/probability/gamma.js +28 -30
- package/lib/esm/header.js +1 -1
- package/lib/esm/type/matrix/SparseMatrix.js +19 -15
- package/lib/esm/type/unit/Unit.js +2 -2
- package/lib/esm/utils/number.js +1 -1
- package/lib/esm/utils/snapshot.js +2 -2
- package/lib/esm/version.js +1 -1
- package/package.json +18 -17
- package/types/index.d.ts +250 -71
|
@@ -5,9 +5,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
* DON'T MAKE CHANGES HERE
|
|
6
6
|
*/
|
|
7
7
|
import { config } from './configReadonly.js';
|
|
8
|
-
import { createChainClass, createChain, createNode,
|
|
9
|
-
import {
|
|
10
|
-
tau,
|
|
8
|
+
import { createChainClass, createReviver, createChain, createNode, createObjectNode, createRangeNode, createRelationalNode, createSymbolNode, createAccessorNode, createAssignmentNode, createConditionalNode, createFunctionNode, createIndexNode, createOperatorNode, createConstantNode, createFunctionAssignmentNode, createParenthesisNode, createBlockNode, createArrayNode, createParse, createSimplify, createCompile, createEvaluate, createHelpClass, createParserClass, createDerivative, createRationalize, createHelp, createParser, createApplyTransform, createFilterTransform, createForEachTransform, createMapTransform, createMeanTransform, createSubsetTransform, createStdTransform, createSumTransform, createMaxTransform, createMinTransform, createRangeTransform, createVarianceTransform } from '../factoriesNumber.js';
|
|
9
|
+
import { e, _false, index, _Infinity, LN10, LOG10E, matrix, _NaN, _null, phi, Range, replacer, SQRT1_2, // eslint-disable-line camelcase
|
|
10
|
+
subset, tau, typed, unaryPlus, version, xor, abs, acos, acot, acsc, add, and, asec, asin, atan, atanh, bitAnd, bitOr, boolean, cbrt, combinations, compare, compareText, cos, cot, csc, cube, divide, equalScalar, erf, exp, filter, fix, forEach, format, gamma, isInteger, isNegative, isPositive, isZero, LOG2E, largerEq, leftShift, log10, log2, map, mean, mod, multiply, not, number, or, pi, pow, random, rightArithShift, round, sec, sign, sin, size, smallerEq, square, string, subtract, tanh, typeOf, unequal, xgcd, acoth, addScalar, asech, bitNot, ceil, combinationsWithRep, cosh, csch, divideScalar, equalText, expm1, isNumeric, LN2, lcm, log1p, multiplyScalar, nthRoot, pickRandom, randomInt, ResultSet, SQRT2, sinh, sqrt, tan, unaryMinus, acosh, apply, asinh, bitXor, catalan, compareNatural, equal, factorial, hasNumericValue, isNaN, larger, mode, norm, partitionSelect, print, quantileSeq, rightLogShift, smaller, stirlingS2, _true, variance, acsch, atan2, composition, deepEqual, floor, hypot, log, median, multinomial, permutations, range, sech, std, clone, coth, gcd, isPrime, numeric, prod, bellNumbers, mad, sum, max, min } from './pureFunctionsNumber.generated.js';
|
|
11
11
|
var math = {}; // NOT pure!
|
|
12
12
|
|
|
13
13
|
var mathWithTransform = {}; // NOT pure!
|
|
@@ -17,6 +17,9 @@ var classes = {}; // NOT pure!
|
|
|
17
17
|
export var Chain = createChainClass({
|
|
18
18
|
math
|
|
19
19
|
});
|
|
20
|
+
export var reviver = createReviver({
|
|
21
|
+
classes
|
|
22
|
+
});
|
|
20
23
|
export var chain = createChain({
|
|
21
24
|
Chain,
|
|
22
25
|
typed
|
|
@@ -24,35 +27,15 @@ export var chain = createChain({
|
|
|
24
27
|
export var Node = createNode({
|
|
25
28
|
mathWithTransform
|
|
26
29
|
});
|
|
27
|
-
export var ArrayNode = createArrayNode({
|
|
28
|
-
Node
|
|
29
|
-
});
|
|
30
|
-
export var ConditionalNode = createConditionalNode({
|
|
31
|
-
Node
|
|
32
|
-
});
|
|
33
|
-
export var FunctionAssignmentNode = createFunctionAssignmentNode({
|
|
34
|
-
Node,
|
|
35
|
-
typed
|
|
36
|
-
});
|
|
37
30
|
export var ObjectNode = createObjectNode({
|
|
38
31
|
Node
|
|
39
32
|
});
|
|
40
|
-
export var
|
|
33
|
+
export var RangeNode = createRangeNode({
|
|
41
34
|
Node
|
|
42
35
|
});
|
|
43
36
|
export var RelationalNode = createRelationalNode({
|
|
44
37
|
Node
|
|
45
38
|
});
|
|
46
|
-
export var reviver = createReviver({
|
|
47
|
-
classes
|
|
48
|
-
});
|
|
49
|
-
export var BlockNode = createBlockNode({
|
|
50
|
-
Node,
|
|
51
|
-
ResultSet
|
|
52
|
-
});
|
|
53
|
-
export var OperatorNode = createOperatorNode({
|
|
54
|
-
Node
|
|
55
|
-
});
|
|
56
39
|
export var SymbolNode = createSymbolNode({
|
|
57
40
|
Node,
|
|
58
41
|
math
|
|
@@ -61,17 +44,14 @@ export var AccessorNode = createAccessorNode({
|
|
|
61
44
|
Node,
|
|
62
45
|
subset
|
|
63
46
|
});
|
|
64
|
-
export var ConstantNode = createConstantNode({
|
|
65
|
-
Node
|
|
66
|
-
});
|
|
67
|
-
export var RangeNode = createRangeNode({
|
|
68
|
-
Node
|
|
69
|
-
});
|
|
70
47
|
export var AssignmentNode = createAssignmentNode({
|
|
71
48
|
matrix,
|
|
72
49
|
Node,
|
|
73
50
|
subset
|
|
74
51
|
});
|
|
52
|
+
export var ConditionalNode = createConditionalNode({
|
|
53
|
+
Node
|
|
54
|
+
});
|
|
75
55
|
export var FunctionNode = createFunctionNode({
|
|
76
56
|
Node,
|
|
77
57
|
SymbolNode,
|
|
@@ -82,6 +62,26 @@ export var IndexNode = createIndexNode({
|
|
|
82
62
|
Range,
|
|
83
63
|
size
|
|
84
64
|
});
|
|
65
|
+
export var OperatorNode = createOperatorNode({
|
|
66
|
+
Node
|
|
67
|
+
});
|
|
68
|
+
export var ConstantNode = createConstantNode({
|
|
69
|
+
Node
|
|
70
|
+
});
|
|
71
|
+
export var FunctionAssignmentNode = createFunctionAssignmentNode({
|
|
72
|
+
Node,
|
|
73
|
+
typed
|
|
74
|
+
});
|
|
75
|
+
export var ParenthesisNode = createParenthesisNode({
|
|
76
|
+
Node
|
|
77
|
+
});
|
|
78
|
+
export var BlockNode = createBlockNode({
|
|
79
|
+
Node,
|
|
80
|
+
ResultSet
|
|
81
|
+
});
|
|
82
|
+
export var ArrayNode = createArrayNode({
|
|
83
|
+
Node
|
|
84
|
+
});
|
|
85
85
|
export var parse = createParse({
|
|
86
86
|
AccessorNode,
|
|
87
87
|
ArrayNode,
|
|
@@ -102,16 +102,13 @@ export var parse = createParse({
|
|
|
102
102
|
numeric,
|
|
103
103
|
typed
|
|
104
104
|
});
|
|
105
|
-
export var evaluate = createEvaluate({
|
|
106
|
-
parse,
|
|
107
|
-
typed
|
|
108
|
-
});
|
|
109
|
-
export var Help = createHelpClass({
|
|
110
|
-
parse
|
|
111
|
-
});
|
|
112
105
|
export var simplify = createSimplify({
|
|
106
|
+
AccessorNode,
|
|
107
|
+
ArrayNode,
|
|
113
108
|
ConstantNode,
|
|
114
109
|
FunctionNode,
|
|
110
|
+
IndexNode,
|
|
111
|
+
ObjectNode,
|
|
115
112
|
OperatorNode,
|
|
116
113
|
ParenthesisNode,
|
|
117
114
|
SymbolNode,
|
|
@@ -121,39 +118,23 @@ export var simplify = createSimplify({
|
|
|
121
118
|
equal,
|
|
122
119
|
isZero,
|
|
123
120
|
mathWithTransform,
|
|
121
|
+
matrix,
|
|
124
122
|
multiply,
|
|
125
123
|
parse,
|
|
126
124
|
pow,
|
|
127
125
|
subtract,
|
|
128
126
|
typed
|
|
129
127
|
});
|
|
130
|
-
export var
|
|
131
|
-
ConstantNode,
|
|
132
|
-
FunctionNode,
|
|
133
|
-
OperatorNode,
|
|
134
|
-
ParenthesisNode,
|
|
135
|
-
SymbolNode,
|
|
136
|
-
add,
|
|
137
|
-
config,
|
|
138
|
-
divide,
|
|
139
|
-
equal,
|
|
140
|
-
isZero,
|
|
141
|
-
mathWithTransform,
|
|
142
|
-
multiply,
|
|
128
|
+
export var compile = createCompile({
|
|
143
129
|
parse,
|
|
144
|
-
pow,
|
|
145
|
-
simplify,
|
|
146
|
-
subtract,
|
|
147
130
|
typed
|
|
148
131
|
});
|
|
149
|
-
export var
|
|
132
|
+
export var evaluate = createEvaluate({
|
|
150
133
|
parse,
|
|
151
134
|
typed
|
|
152
135
|
});
|
|
153
|
-
export var
|
|
154
|
-
|
|
155
|
-
mathWithTransform,
|
|
156
|
-
typed
|
|
136
|
+
export var Help = createHelpClass({
|
|
137
|
+
parse
|
|
157
138
|
});
|
|
158
139
|
export var Parser = createParserClass({
|
|
159
140
|
evaluate
|
|
@@ -172,190 +153,235 @@ export var derivative = createDerivative({
|
|
|
172
153
|
simplify,
|
|
173
154
|
typed
|
|
174
155
|
});
|
|
156
|
+
export var rationalize = createRationalize({
|
|
157
|
+
AccessorNode,
|
|
158
|
+
ArrayNode,
|
|
159
|
+
ConstantNode,
|
|
160
|
+
FunctionNode,
|
|
161
|
+
IndexNode,
|
|
162
|
+
ObjectNode,
|
|
163
|
+
OperatorNode,
|
|
164
|
+
ParenthesisNode,
|
|
165
|
+
SymbolNode,
|
|
166
|
+
add,
|
|
167
|
+
config,
|
|
168
|
+
divide,
|
|
169
|
+
equal,
|
|
170
|
+
isZero,
|
|
171
|
+
mathWithTransform,
|
|
172
|
+
matrix,
|
|
173
|
+
multiply,
|
|
174
|
+
parse,
|
|
175
|
+
pow,
|
|
176
|
+
simplify,
|
|
177
|
+
subtract,
|
|
178
|
+
typed
|
|
179
|
+
});
|
|
180
|
+
export var help = createHelp({
|
|
181
|
+
Help,
|
|
182
|
+
mathWithTransform,
|
|
183
|
+
typed
|
|
184
|
+
});
|
|
175
185
|
export var parser = createParser({
|
|
176
186
|
Parser,
|
|
177
187
|
typed
|
|
178
188
|
});
|
|
179
189
|
|
|
180
190
|
_extends(math, {
|
|
181
|
-
typed,
|
|
182
|
-
chain,
|
|
183
|
-
nthRoot,
|
|
184
191
|
e,
|
|
185
192
|
false: _false,
|
|
193
|
+
index,
|
|
194
|
+
Infinity: _Infinity,
|
|
186
195
|
LN10,
|
|
187
196
|
LOG10E,
|
|
197
|
+
matrix,
|
|
188
198
|
NaN: _NaN,
|
|
199
|
+
null: _null,
|
|
189
200
|
phi,
|
|
201
|
+
replacer,
|
|
202
|
+
reviver,
|
|
190
203
|
SQRT1_2,
|
|
204
|
+
subset,
|
|
191
205
|
tau,
|
|
206
|
+
typed,
|
|
207
|
+
unaryPlus,
|
|
208
|
+
'E': e,
|
|
192
209
|
version,
|
|
193
|
-
string,
|
|
194
|
-
filter,
|
|
195
|
-
map,
|
|
196
|
-
combinationsWithRep,
|
|
197
|
-
pickRandom,
|
|
198
|
-
randomInt,
|
|
199
|
-
compare,
|
|
200
|
-
compareText,
|
|
201
|
-
smaller,
|
|
202
|
-
larger,
|
|
203
|
-
erf,
|
|
204
|
-
format,
|
|
205
|
-
clone,
|
|
206
|
-
typeOf,
|
|
207
|
-
reviver,
|
|
208
|
-
unaryMinus,
|
|
209
|
-
abs,
|
|
210
|
-
cbrt,
|
|
211
|
-
cube,
|
|
212
|
-
expm1,
|
|
213
|
-
floor,
|
|
214
|
-
lcm,
|
|
215
|
-
log2,
|
|
216
|
-
multiplyScalar,
|
|
217
|
-
sign,
|
|
218
|
-
square,
|
|
219
|
-
xgcd,
|
|
220
|
-
pow,
|
|
221
|
-
log1p,
|
|
222
|
-
norm,
|
|
223
|
-
bitAnd,
|
|
224
|
-
bitOr,
|
|
225
|
-
leftShift,
|
|
226
|
-
rightLogShift,
|
|
227
|
-
not,
|
|
228
210
|
xor,
|
|
229
|
-
|
|
230
|
-
combinations,
|
|
211
|
+
abs,
|
|
231
212
|
acos,
|
|
232
213
|
acot,
|
|
233
214
|
acsc,
|
|
215
|
+
add,
|
|
216
|
+
and,
|
|
234
217
|
asec,
|
|
235
218
|
asin,
|
|
236
219
|
atan,
|
|
237
220
|
atanh,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
221
|
+
bitAnd,
|
|
222
|
+
bitOr,
|
|
223
|
+
boolean,
|
|
224
|
+
cbrt,
|
|
225
|
+
chain,
|
|
226
|
+
combinations,
|
|
227
|
+
compare,
|
|
228
|
+
compareText,
|
|
229
|
+
cos,
|
|
230
|
+
cot,
|
|
231
|
+
csc,
|
|
232
|
+
cube,
|
|
233
|
+
divide,
|
|
234
|
+
equalScalar,
|
|
235
|
+
erf,
|
|
236
|
+
exp,
|
|
237
|
+
filter,
|
|
238
|
+
fix,
|
|
239
|
+
forEach,
|
|
240
|
+
format,
|
|
241
|
+
gamma,
|
|
244
242
|
isInteger,
|
|
243
|
+
isNegative,
|
|
245
244
|
isPositive,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
245
|
+
isZero,
|
|
246
|
+
LOG2E,
|
|
247
|
+
largerEq,
|
|
248
|
+
leftShift,
|
|
249
|
+
log10,
|
|
250
|
+
log2,
|
|
251
|
+
map,
|
|
252
|
+
mean,
|
|
253
|
+
mod,
|
|
254
|
+
multiply,
|
|
255
|
+
not,
|
|
252
256
|
number,
|
|
253
|
-
|
|
254
|
-
|
|
257
|
+
or,
|
|
258
|
+
pi,
|
|
259
|
+
pow,
|
|
255
260
|
random,
|
|
256
|
-
|
|
261
|
+
rightArithShift,
|
|
262
|
+
round,
|
|
263
|
+
sec,
|
|
264
|
+
sign,
|
|
265
|
+
sin,
|
|
266
|
+
size,
|
|
257
267
|
smallerEq,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
268
|
+
square,
|
|
269
|
+
string,
|
|
270
|
+
subtract,
|
|
271
|
+
tanh,
|
|
272
|
+
typeOf,
|
|
273
|
+
unequal,
|
|
274
|
+
xgcd,
|
|
275
|
+
acoth,
|
|
262
276
|
addScalar,
|
|
263
|
-
|
|
264
|
-
gcd,
|
|
265
|
-
mod,
|
|
266
|
-
sqrt,
|
|
267
|
-
divideScalar,
|
|
268
|
-
add,
|
|
277
|
+
asech,
|
|
269
278
|
bitNot,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
279
|
+
ceil,
|
|
280
|
+
combinationsWithRep,
|
|
281
|
+
cosh,
|
|
282
|
+
csch,
|
|
283
|
+
divideScalar,
|
|
284
|
+
equalText,
|
|
285
|
+
expm1,
|
|
286
|
+
isNumeric,
|
|
287
|
+
LN2,
|
|
288
|
+
lcm,
|
|
289
|
+
log1p,
|
|
290
|
+
multiplyScalar,
|
|
291
|
+
nthRoot,
|
|
292
|
+
pickRandom,
|
|
293
|
+
randomInt,
|
|
294
|
+
SQRT2,
|
|
295
|
+
sinh,
|
|
296
|
+
sqrt,
|
|
297
|
+
tan,
|
|
298
|
+
unaryMinus,
|
|
273
299
|
acosh,
|
|
274
|
-
|
|
300
|
+
apply,
|
|
275
301
|
asinh,
|
|
276
|
-
cos,
|
|
277
|
-
csc,
|
|
278
|
-
sin,
|
|
279
|
-
isZero,
|
|
280
|
-
hypot,
|
|
281
|
-
Infinity: _Infinity,
|
|
282
|
-
pi,
|
|
283
|
-
true: _true,
|
|
284
|
-
forEach,
|
|
285
|
-
partitionSelect,
|
|
286
|
-
equalScalar,
|
|
287
|
-
equalText,
|
|
288
|
-
unequal,
|
|
289
|
-
hasNumericValue,
|
|
290
|
-
unaryPlus,
|
|
291
|
-
fix,
|
|
292
|
-
multiply,
|
|
293
|
-
log,
|
|
294
302
|
bitXor,
|
|
295
|
-
index,
|
|
296
|
-
acoth,
|
|
297
|
-
atan2,
|
|
298
|
-
sec,
|
|
299
|
-
isNegative,
|
|
300
303
|
catalan,
|
|
301
|
-
|
|
302
|
-
boolean,
|
|
304
|
+
compareNatural,
|
|
303
305
|
equal,
|
|
304
|
-
deepEqual,
|
|
305
|
-
quantileSeq,
|
|
306
|
-
numeric,
|
|
307
|
-
log10,
|
|
308
|
-
divide,
|
|
309
|
-
gamma,
|
|
310
|
-
cot,
|
|
311
|
-
composition,
|
|
312
306
|
factorial,
|
|
313
|
-
|
|
307
|
+
hasNumericValue,
|
|
308
|
+
isNaN,
|
|
309
|
+
larger,
|
|
314
310
|
mode,
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
norm,
|
|
312
|
+
partitionSelect,
|
|
313
|
+
print,
|
|
314
|
+
quantileSeq,
|
|
315
|
+
rightLogShift,
|
|
316
|
+
smaller,
|
|
317
|
+
stirlingS2,
|
|
318
|
+
true: _true,
|
|
319
|
+
variance,
|
|
320
|
+
acsch,
|
|
321
|
+
atan2,
|
|
322
|
+
composition,
|
|
323
|
+
deepEqual,
|
|
324
|
+
floor,
|
|
325
|
+
hypot,
|
|
326
|
+
log,
|
|
317
327
|
median,
|
|
318
|
-
ceil,
|
|
319
|
-
and,
|
|
320
|
-
tan,
|
|
321
|
-
'PI': pi,
|
|
322
|
-
parse,
|
|
323
|
-
evaluate,
|
|
324
328
|
multinomial,
|
|
329
|
+
permutations,
|
|
330
|
+
range,
|
|
331
|
+
sech,
|
|
332
|
+
std,
|
|
333
|
+
'PI': pi,
|
|
334
|
+
clone,
|
|
335
|
+
coth,
|
|
336
|
+
gcd,
|
|
337
|
+
isPrime,
|
|
338
|
+
numeric,
|
|
325
339
|
prod,
|
|
326
|
-
|
|
327
|
-
|
|
340
|
+
bellNumbers,
|
|
341
|
+
mad,
|
|
342
|
+
sum,
|
|
343
|
+
max,
|
|
344
|
+
parse,
|
|
328
345
|
simplify,
|
|
329
|
-
rationalize,
|
|
330
346
|
compile,
|
|
331
|
-
|
|
332
|
-
mad,
|
|
333
|
-
help,
|
|
334
|
-
stirlingS2,
|
|
335
|
-
min,
|
|
336
|
-
asech,
|
|
347
|
+
evaluate,
|
|
337
348
|
derivative,
|
|
349
|
+
min,
|
|
350
|
+
rationalize,
|
|
351
|
+
help,
|
|
338
352
|
parser,
|
|
339
|
-
variance,
|
|
340
|
-
bellNumbers,
|
|
341
|
-
std,
|
|
342
|
-
range,
|
|
343
353
|
config
|
|
344
354
|
});
|
|
345
355
|
|
|
346
356
|
_extends(mathWithTransform, math, {
|
|
357
|
+
apply: createApplyTransform({
|
|
358
|
+
isInteger,
|
|
359
|
+
typed
|
|
360
|
+
}),
|
|
347
361
|
filter: createFilterTransform({
|
|
348
362
|
typed
|
|
349
363
|
}),
|
|
364
|
+
forEach: createForEachTransform({
|
|
365
|
+
typed
|
|
366
|
+
}),
|
|
350
367
|
map: createMapTransform({
|
|
351
368
|
typed
|
|
352
369
|
}),
|
|
353
|
-
|
|
370
|
+
mean: createMeanTransform({
|
|
371
|
+
add,
|
|
372
|
+
divide,
|
|
354
373
|
typed
|
|
355
374
|
}),
|
|
356
375
|
subset: createSubsetTransform({}),
|
|
357
|
-
|
|
358
|
-
|
|
376
|
+
std: createStdTransform({
|
|
377
|
+
sqrt,
|
|
378
|
+
typed,
|
|
379
|
+
variance
|
|
380
|
+
}),
|
|
381
|
+
sum: createSumTransform({
|
|
382
|
+
add,
|
|
383
|
+
config,
|
|
384
|
+
numeric,
|
|
359
385
|
typed
|
|
360
386
|
}),
|
|
361
387
|
max: createMaxTransform({
|
|
@@ -370,17 +396,6 @@ _extends(mathWithTransform, math, {
|
|
|
370
396
|
smaller,
|
|
371
397
|
typed
|
|
372
398
|
}),
|
|
373
|
-
sum: createSumTransform({
|
|
374
|
-
add,
|
|
375
|
-
config,
|
|
376
|
-
numeric,
|
|
377
|
-
typed
|
|
378
|
-
}),
|
|
379
|
-
mean: createMeanTransform({
|
|
380
|
-
add,
|
|
381
|
-
divide,
|
|
382
|
-
typed
|
|
383
|
-
}),
|
|
384
399
|
range: createRangeTransform({
|
|
385
400
|
matrix,
|
|
386
401
|
config,
|
|
@@ -398,34 +413,29 @@ _extends(mathWithTransform, math, {
|
|
|
398
413
|
multiply,
|
|
399
414
|
subtract,
|
|
400
415
|
typed
|
|
401
|
-
}),
|
|
402
|
-
std: createStdTransform({
|
|
403
|
-
sqrt,
|
|
404
|
-
typed,
|
|
405
|
-
variance
|
|
406
416
|
})
|
|
407
417
|
});
|
|
408
418
|
|
|
409
419
|
_extends(classes, {
|
|
410
|
-
Range,
|
|
411
420
|
Chain,
|
|
421
|
+
Range,
|
|
412
422
|
Node,
|
|
413
|
-
ArrayNode,
|
|
414
|
-
ConditionalNode,
|
|
415
|
-
FunctionAssignmentNode,
|
|
416
423
|
ObjectNode,
|
|
417
|
-
|
|
424
|
+
RangeNode,
|
|
418
425
|
RelationalNode,
|
|
419
|
-
ResultSet,
|
|
420
|
-
BlockNode,
|
|
421
|
-
OperatorNode,
|
|
422
426
|
SymbolNode,
|
|
423
427
|
AccessorNode,
|
|
424
|
-
ConstantNode,
|
|
425
|
-
RangeNode,
|
|
426
428
|
AssignmentNode,
|
|
429
|
+
ConditionalNode,
|
|
427
430
|
FunctionNode,
|
|
428
431
|
IndexNode,
|
|
432
|
+
OperatorNode,
|
|
433
|
+
ResultSet,
|
|
434
|
+
ConstantNode,
|
|
435
|
+
FunctionAssignmentNode,
|
|
436
|
+
ParenthesisNode,
|
|
437
|
+
BlockNode,
|
|
438
|
+
ArrayNode,
|
|
429
439
|
Help,
|
|
430
440
|
Parser
|
|
431
441
|
});
|