UNPKG

11.1 kBJavaScriptView Raw
1function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
3/**
4 * THIS FILE IS AUTO-GENERATED
5 * DON'T MAKE CHANGES HERE
6 */
7import { config } from './configReadonly';
8import { createChainClass, createChain, createNode, createArrayNode, createConditionalNode, createFunctionAssignmentNode, createObjectNode, createParenthesisNode, createRelationalNode, createReviver, createBlockNode, createOperatorNode, createSymbolNode, createAccessorNode, createConstantNode, createRangeNode, createAssignmentNode, createFunctionNode, createIndexNode, createParse, createEvaluate, createHelpClass, createSimplify, createRationalize, createCompile, createHelp, createParserClass, createDerivative, createParser, createFilterTransform, createMapTransform, createForEachTransform, createSubsetTransform, createApplyTransform, createRangeTransform, createMaxTransform, createMinTransform, createSumTransform, createMeanTransform, createVarianceTransform, createStdTransform } from '../factoriesNumber';
9import { typed, Range, nthRoot, e, _false, LN10, LOG10E, _NaN, phi, SQRT1_2 // eslint-disable-line camelcase
10, tau, version, string, filter, map, combinationsWithRep, pickRandom, randomInt, compare, compareText, smaller, larger, erf, format, clone, typeOf, unaryMinus, abs, cbrt, cube, expm1, floor, lcm, log2, multiplyScalar, sign, square, xgcd, pow, log1p, norm, bitAnd, bitOr, leftShift, rightLogShift, not, xor, matrix, combinations, acos, acot, acsc, asec, asin, atan, atanh, cosh, coth, csch, sech, sinh, tanh, isNegative, isZero, ResultSet, round, LN2, _null, SQRT2, number, forEach, size, random, compareNatural, equalText, largerEq, print, isNumeric, isPrime, replacer, addScalar, exp, gcd, mod, sqrt, divideScalar, add, bitNot, rightArithShift, or, subset, acosh, acsch, asinh, cos, csc, sin, isInteger, isNaN, catalan, _Infinity, pi, _true, apply, partitionSelect, equalScalar, smallerEq, unequal, hasNumericValue, unaryPlus, fix, multiply, log, bitXor, index, acoth, atan2, sec, isPositive, hypot, composition, range, equal, mode, quantileSeq, numeric, log10, divide, gamma, cot, LOG2E, factorial, permutations, prod, min, mean, ceil, and, tan, boolean as _boolean, multinomial, max, median, subtract, deepEqual, mad, stirlingS2, variance, std, bellNumbers, asech, sum } from './pureFunctionsNumber.generated';
11var math = {}; // NOT pure!
12
13var mathWithTransform = {}; // NOT pure!
14
15var classes = {}; // NOT pure!
16
17export var Chain = createChainClass({
18 math: math
19});
20export var chain = createChain({
21 Chain: Chain,
22 typed: typed
23});
24export var Node = createNode({
25 mathWithTransform: mathWithTransform
26});
27export var ArrayNode = createArrayNode({
28 Node: Node
29});
30export var ConditionalNode = createConditionalNode({
31 Node: Node
32});
33export var FunctionAssignmentNode = createFunctionAssignmentNode({
34 Node: Node,
35 typed: typed
36});
37export var ObjectNode = createObjectNode({
38 Node: Node
39});
40export var ParenthesisNode = createParenthesisNode({
41 Node: Node
42});
43export var RelationalNode = createRelationalNode({
44 Node: Node
45});
46export var reviver = createReviver({
47 classes: classes
48});
49export var BlockNode = createBlockNode({
50 Node: Node,
51 ResultSet: ResultSet
52});
53export var OperatorNode = createOperatorNode({
54 Node: Node
55});
56export var SymbolNode = createSymbolNode({
57 Node: Node,
58 math: math
59});
60export var AccessorNode = createAccessorNode({
61 Node: Node,
62 subset: subset
63});
64export var ConstantNode = createConstantNode({
65 Node: Node
66});
67export var RangeNode = createRangeNode({
68 Node: Node
69});
70export var AssignmentNode = createAssignmentNode({
71 matrix: matrix,
72 Node: Node,
73 subset: subset
74});
75export var FunctionNode = createFunctionNode({
76 Node: Node,
77 SymbolNode: SymbolNode,
78 math: math
79});
80export var IndexNode = createIndexNode({
81 Node: Node,
82 Range: Range,
83 size: size
84});
85export var parse = createParse({
86 AccessorNode: AccessorNode,
87 ArrayNode: ArrayNode,
88 AssignmentNode: AssignmentNode,
89 BlockNode: BlockNode,
90 ConditionalNode: ConditionalNode,
91 ConstantNode: ConstantNode,
92 FunctionAssignmentNode: FunctionAssignmentNode,
93 FunctionNode: FunctionNode,
94 IndexNode: IndexNode,
95 ObjectNode: ObjectNode,
96 OperatorNode: OperatorNode,
97 ParenthesisNode: ParenthesisNode,
98 RangeNode: RangeNode,
99 RelationalNode: RelationalNode,
100 SymbolNode: SymbolNode,
101 config: config,
102 numeric: numeric,
103 typed: typed
104});
105export var evaluate = createEvaluate({
106 parse: parse,
107 typed: typed
108});
109export var Help = createHelpClass({
110 parse: parse
111});
112export var simplify = createSimplify({
113 ConstantNode: ConstantNode,
114 FunctionNode: FunctionNode,
115 OperatorNode: OperatorNode,
116 ParenthesisNode: ParenthesisNode,
117 SymbolNode: SymbolNode,
118 add: add,
119 config: config,
120 divide: divide,
121 equal: equal,
122 isZero: isZero,
123 mathWithTransform: mathWithTransform,
124 multiply: multiply,
125 parse: parse,
126 pow: pow,
127 subtract: subtract,
128 typed: typed
129});
130export var rationalize = createRationalize({
131 ConstantNode: ConstantNode,
132 FunctionNode: FunctionNode,
133 OperatorNode: OperatorNode,
134 ParenthesisNode: ParenthesisNode,
135 SymbolNode: SymbolNode,
136 add: add,
137 config: config,
138 divide: divide,
139 equal: equal,
140 isZero: isZero,
141 mathWithTransform: mathWithTransform,
142 multiply: multiply,
143 parse: parse,
144 pow: pow,
145 simplify: simplify,
146 subtract: subtract,
147 typed: typed
148});
149export var compile = createCompile({
150 parse: parse,
151 typed: typed
152});
153export var help = createHelp({
154 Help: Help,
155 mathWithTransform: mathWithTransform,
156 typed: typed
157});
158export var Parser = createParserClass({
159 parse: parse
160});
161export var derivative = createDerivative({
162 ConstantNode: ConstantNode,
163 FunctionNode: FunctionNode,
164 OperatorNode: OperatorNode,
165 ParenthesisNode: ParenthesisNode,
166 SymbolNode: SymbolNode,
167 config: config,
168 equal: equal,
169 isZero: isZero,
170 numeric: numeric,
171 parse: parse,
172 simplify: simplify,
173 typed: typed
174});
175export var parser = createParser({
176 Parser: Parser,
177 typed: typed
178});
179
180_extends(math, {
181 typed: typed,
182 chain: chain,
183 nthRoot: nthRoot,
184 e: e,
185 "false": _false,
186 LN10: LN10,
187 LOG10E: LOG10E,
188 NaN: _NaN,
189 phi: phi,
190 SQRT1_2: SQRT1_2,
191 tau: tau,
192 version: version,
193 string: string,
194 filter: filter,
195 map: map,
196 combinationsWithRep: combinationsWithRep,
197 pickRandom: pickRandom,
198 randomInt: randomInt,
199 compare: compare,
200 compareText: compareText,
201 smaller: smaller,
202 larger: larger,
203 erf: erf,
204 format: format,
205 clone: clone,
206 typeOf: typeOf,
207 reviver: reviver,
208 unaryMinus: unaryMinus,
209 abs: abs,
210 cbrt: cbrt,
211 cube: cube,
212 expm1: expm1,
213 floor: floor,
214 lcm: lcm,
215 log2: log2,
216 multiplyScalar: multiplyScalar,
217 sign: sign,
218 square: square,
219 xgcd: xgcd,
220 pow: pow,
221 log1p: log1p,
222 norm: norm,
223 bitAnd: bitAnd,
224 bitOr: bitOr,
225 leftShift: leftShift,
226 rightLogShift: rightLogShift,
227 not: not,
228 xor: xor,
229 matrix: matrix,
230 combinations: combinations,
231 acos: acos,
232 acot: acot,
233 acsc: acsc,
234 asec: asec,
235 asin: asin,
236 atan: atan,
237 atanh: atanh,
238 cosh: cosh,
239 coth: coth,
240 csch: csch,
241 sech: sech,
242 sinh: sinh,
243 tanh: tanh,
244 isNegative: isNegative,
245 isZero: isZero,
246 round: round,
247 'E': e,
248 LN2: LN2,
249 "null": _null,
250 SQRT2: SQRT2,
251 number: number,
252 forEach: forEach,
253 size: size,
254 random: random,
255 compareNatural: compareNatural,
256 equalText: equalText,
257 largerEq: largerEq,
258 print: print,
259 isNumeric: isNumeric,
260 isPrime: isPrime,
261 replacer: replacer,
262 addScalar: addScalar,
263 exp: exp,
264 gcd: gcd,
265 mod: mod,
266 sqrt: sqrt,
267 divideScalar: divideScalar,
268 add: add,
269 bitNot: bitNot,
270 rightArithShift: rightArithShift,
271 or: or,
272 subset: subset,
273 acosh: acosh,
274 acsch: acsch,
275 asinh: asinh,
276 cos: cos,
277 csc: csc,
278 sin: sin,
279 isInteger: isInteger,
280 isNaN: isNaN,
281 catalan: catalan,
282 Infinity: _Infinity,
283 pi: pi,
284 "true": _true,
285 apply: apply,
286 partitionSelect: partitionSelect,
287 equalScalar: equalScalar,
288 smallerEq: smallerEq,
289 unequal: unequal,
290 hasNumericValue: hasNumericValue,
291 unaryPlus: unaryPlus,
292 fix: fix,
293 multiply: multiply,
294 log: log,
295 bitXor: bitXor,
296 index: index,
297 acoth: acoth,
298 atan2: atan2,
299 sec: sec,
300 isPositive: isPositive,
301 hypot: hypot,
302 composition: composition,
303 'PI': pi,
304 range: range,
305 equal: equal,
306 mode: mode,
307 quantileSeq: quantileSeq,
308 numeric: numeric,
309 log10: log10,
310 divide: divide,
311 gamma: gamma,
312 cot: cot,
313 LOG2E: LOG2E,
314 factorial: factorial,
315 permutations: permutations,
316 prod: prod,
317 min: min,
318 mean: mean,
319 ceil: ceil,
320 and: and,
321 tan: tan,
322 "boolean": _boolean,
323 parse: parse,
324 evaluate: evaluate,
325 multinomial: multinomial,
326 max: max,
327 median: median,
328 subtract: subtract,
329 simplify: simplify,
330 rationalize: rationalize,
331 compile: compile,
332 deepEqual: deepEqual,
333 mad: mad,
334 help: help,
335 stirlingS2: stirlingS2,
336 variance: variance,
337 derivative: derivative,
338 parser: parser,
339 std: std,
340 bellNumbers: bellNumbers,
341 asech: asech,
342 sum: sum,
343 config: config
344});
345
346_extends(mathWithTransform, math, {
347 filter: createFilterTransform({
348 typed: typed
349 }),
350 map: createMapTransform({
351 typed: typed
352 }),
353 forEach: createForEachTransform({
354 typed: typed
355 }),
356 subset: createSubsetTransform({
357 matrix: matrix,
358 typed: typed
359 }),
360 apply: createApplyTransform({
361 isInteger: isInteger,
362 typed: typed
363 }),
364 range: createRangeTransform({
365 matrix: matrix,
366 config: config,
367 larger: larger,
368 largerEq: largerEq,
369 smaller: smaller,
370 smallerEq: smallerEq,
371 typed: typed
372 }),
373 max: createMaxTransform({
374 config: config,
375 larger: larger,
376 numeric: numeric,
377 typed: typed
378 }),
379 min: createMinTransform({
380 config: config,
381 numeric: numeric,
382 smaller: smaller,
383 typed: typed
384 }),
385 sum: createSumTransform({
386 add: add,
387 config: config,
388 numeric: numeric,
389 typed: typed
390 }),
391 mean: createMeanTransform({
392 add: add,
393 divide: divide,
394 typed: typed
395 }),
396 variance: createVarianceTransform({
397 add: add,
398 apply: apply,
399 divide: divide,
400 isNaN: isNaN,
401 multiply: multiply,
402 subtract: subtract,
403 typed: typed
404 }),
405 std: createStdTransform({
406 sqrt: sqrt,
407 typed: typed,
408 variance: variance
409 })
410});
411
412_extends(classes, {
413 Range: Range,
414 Chain: Chain,
415 Node: Node,
416 ArrayNode: ArrayNode,
417 ConditionalNode: ConditionalNode,
418 FunctionAssignmentNode: FunctionAssignmentNode,
419 ObjectNode: ObjectNode,
420 ParenthesisNode: ParenthesisNode,
421 RelationalNode: RelationalNode,
422 ResultSet: ResultSet,
423 BlockNode: BlockNode,
424 OperatorNode: OperatorNode,
425 SymbolNode: SymbolNode,
426 AccessorNode: AccessorNode,
427 ConstantNode: ConstantNode,
428 RangeNode: RangeNode,
429 AssignmentNode: AssignmentNode,
430 FunctionNode: FunctionNode,
431 IndexNode: IndexNode,
432 Help: Help,
433 Parser: Parser
434});
435
436Chain.createProxy(math);
437export { embeddedDocs as docs } from '../expression/embeddedDocs/embeddedDocs';
\No newline at end of file