UNPKG

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