UNPKG

12.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.js';
8import { createNode, createArrayNode, createBlockNode, createConstantNode, createObjectNode, createParenthesisNode, createRelationalNode, createChainClass, createReviver, createConditionalNode, createOperatorNode, createRangeNode, createFunctionAssignmentNode, createChain, createAccessorNode, createIndexNode, createAssignmentNode, createSymbolNode, createFunctionNode, createParse, createEvaluate, createHelpClass, createParserClass, createHelp, createCompile, createSimplify, createRationalize, createParser, createDerivative, createApplyTransform, createFilterTransform, createMapTransform, createForEachTransform, createSubsetTransform, createIndexTransform, createConcatTransform, createMaxTransform, createMinTransform, createSumTransform, createColumnTransform, createRangeTransform, createDiffTransform, createRowTransform, createMeanTransform, createVarianceTransform, createStdTransform } from '../factoriesAny.js';
9import { ResultSet, Complex, Range, _false, _null, _true, BigNumber, Matrix, replacer, i, LN10, LOG10E, _NaN, pi, SQRT1_2 // eslint-disable-line camelcase
10, tau, efimovFactor, fineStructure, sackurTetrode, weakMixingAngle, Fraction, e, _Infinity, LOG2E, version, DenseMatrix, phi, typed, isInteger, isNumeric, isPositive, isNaN, equalScalar, number, boolean, complex, splitUnit, unaryPlus, apply, cube, expm1, log10, multiplyScalar, sign, square, bitNot, arg, im, not, filter, forEach, map, erf, format, oct, print, isPrime, acos, acot, acsc, asec, asin, atan, atanh, cosh, coth, csch, sech, sinh, tanh, combinations, pickRandom, randomInt, LN2, clone, hasNumericValue, typeOf, string, fraction, unaryMinus, addScalar, exp, log2, sqrt, conj, getMatrixDataType, mode, bin, acosh, acsch, asinh, cos, csc, sin, combinationsWithRep, random, SQRT2, isNegative, SparseMatrix, matrix, cbrt, gcd, mod, nthRoot, xgcd, bitAnd, bitXor, or, concat, diag, identity, ones, reshape, size, subset, zeros, hex, round, leftShift, rightLogShift, compare, compareText, smaller, larger, unequal, ImmutableDenseMatrix, FibonacciHeap, sparse, acoth, atan2, sec, add, dot, composition, isZero, abs, floor, multiply, dotMultiply, re, flatten, resize, squeeze, to, pow, dotPow, rightArithShift, compareNatural, equalText, largerEq, partitionSelect, Index, asech, tan, setDifference, setIntersect, setMultiplicity, setSize, trace, quantileSeq, gamma, bignumber, lcm, bitOr, kron, transpose, numeric, and, smallerEq, sort, min, cot, setDistinct, setPowerset, index, sum, factorial, permutations, ceil, subtract, cross, range, row, prod, equal, max, setCartesian, setSymDifference, fix, column, diff, ctranspose, deepEqual, setIsSubset, xor, divideScalar, nthRoots, lsolve, lsolveAll, Spa, setUnion, lup, slu, det, distance, stirlingS2, catalan, count, log, dotDivide, usolveAll, hypot, qr, inv, expm, divide, mean, variance, kldivergence, bellNumbers, log1p, Unit, createUnit, eigs, intersect, std, atomicMass, bohrMagneton, boltzmann, conductanceQuantum, deuteronMass, electronMass, faraday, firstRadiation, gravitationConstant, hartreeEnergy, klitzing, magneticConstant, molarMass, molarPlanckConstant, neutronMass, planckCharge, planckLength, planckTemperature, protonMass, reducedPlanckConstant, secondRadiation, stefanBoltzmann, vacuumImpedance, usolve, norm, lusolve, sqrtm, multinomial, avogadro, classicalElectronRadius, electricConstant, fermiCoupling, gravity, loschmidt, molarMassC12, nuclearMagneton, planckMass, quantumOfCirculation, speedOfLight, wienDisplacement, rotationMatrix, median, bohrRadius, elementaryCharge, inverseConductanceQuantum, molarVolume, planckTime, thomsonCrossSection, rotate, mad, coulomb, magneticFluxQuantum, rydberg, unit, gasConstant, planckConstant } from './pureFunctionsAny.generated.js';
11var math = {}; // NOT pure!
12
13var mathWithTransform = {}; // NOT pure!
14
15var classes = {}; // NOT pure!
16
17export var Node = createNode({
18 mathWithTransform
19});
20export var ArrayNode = createArrayNode({
21 Node
22});
23export var BlockNode = createBlockNode({
24 Node,
25 ResultSet
26});
27export var ConstantNode = createConstantNode({
28 Node
29});
30export var ObjectNode = createObjectNode({
31 Node
32});
33export var ParenthesisNode = createParenthesisNode({
34 Node
35});
36export var RelationalNode = createRelationalNode({
37 Node
38});
39export var Chain = createChainClass({
40 math
41});
42export var reviver = createReviver({
43 classes
44});
45export var ConditionalNode = createConditionalNode({
46 Node
47});
48export var OperatorNode = createOperatorNode({
49 Node
50});
51export var RangeNode = createRangeNode({
52 Node
53});
54export var FunctionAssignmentNode = createFunctionAssignmentNode({
55 Node,
56 typed
57});
58export var chain = createChain({
59 Chain,
60 typed
61});
62export var AccessorNode = createAccessorNode({
63 Node,
64 subset
65});
66export var IndexNode = createIndexNode({
67 Node,
68 Range,
69 size
70});
71export var AssignmentNode = createAssignmentNode({
72 matrix,
73 Node,
74 subset
75});
76export var SymbolNode = createSymbolNode({
77 Unit,
78 Node,
79 math
80});
81export var FunctionNode = createFunctionNode({
82 Node,
83 SymbolNode,
84 math
85});
86export var parse = createParse({
87 AccessorNode,
88 ArrayNode,
89 AssignmentNode,
90 BlockNode,
91 ConditionalNode,
92 ConstantNode,
93 FunctionAssignmentNode,
94 FunctionNode,
95 IndexNode,
96 ObjectNode,
97 OperatorNode,
98 ParenthesisNode,
99 RangeNode,
100 RelationalNode,
101 SymbolNode,
102 config,
103 numeric,
104 typed
105});
106export var evaluate = createEvaluate({
107 parse,
108 typed
109});
110export var Help = createHelpClass({
111 parse
112});
113export var Parser = createParserClass({
114 parse
115});
116export var help = createHelp({
117 Help,
118 mathWithTransform,
119 typed
120});
121export var compile = createCompile({
122 parse,
123 typed
124});
125export var simplify = createSimplify({
126 bignumber,
127 fraction,
128 ConstantNode,
129 FunctionNode,
130 OperatorNode,
131 ParenthesisNode,
132 SymbolNode,
133 add,
134 config,
135 divide,
136 equal,
137 isZero,
138 mathWithTransform,
139 multiply,
140 parse,
141 pow,
142 subtract,
143 typed
144});
145export var rationalize = createRationalize({
146 bignumber,
147 fraction,
148 ConstantNode,
149 FunctionNode,
150 OperatorNode,
151 ParenthesisNode,
152 SymbolNode,
153 add,
154 config,
155 divide,
156 equal,
157 isZero,
158 mathWithTransform,
159 multiply,
160 parse,
161 pow,
162 simplify,
163 subtract,
164 typed
165});
166export var parser = createParser({
167 Parser,
168 typed
169});
170export var derivative = createDerivative({
171 ConstantNode,
172 FunctionNode,
173 OperatorNode,
174 ParenthesisNode,
175 SymbolNode,
176 config,
177 equal,
178 isZero,
179 numeric,
180 parse,
181 simplify,
182 typed
183});
184
185_extends(math, {
186 reviver,
187 false: _false,
188 null: _null,
189 true: _true,
190 replacer,
191 i,
192 LN10,
193 LOG10E,
194 NaN: _NaN,
195 pi,
196 SQRT1_2,
197 tau,
198 efimovFactor,
199 fineStructure,
200 sackurTetrode,
201 weakMixingAngle,
202 e,
203 Infinity: _Infinity,
204 LOG2E,
205 'PI': pi,
206 version,
207 'E': e,
208 phi,
209 typed,
210 isInteger,
211 isNumeric,
212 isPositive,
213 isNaN,
214 equalScalar,
215 number,
216 boolean,
217 complex,
218 splitUnit,
219 unaryPlus,
220 apply,
221 cube,
222 expm1,
223 log10,
224 multiplyScalar,
225 sign,
226 square,
227 bitNot,
228 arg,
229 im,
230 not,
231 filter,
232 forEach,
233 map,
234 erf,
235 format,
236 oct,
237 print,
238 isPrime,
239 acos,
240 acot,
241 acsc,
242 asec,
243 asin,
244 atan,
245 atanh,
246 cosh,
247 coth,
248 csch,
249 sech,
250 sinh,
251 tanh,
252 chain,
253 combinations,
254 pickRandom,
255 randomInt,
256 LN2,
257 clone,
258 hasNumericValue,
259 typeOf,
260 string,
261 fraction,
262 unaryMinus,
263 addScalar,
264 exp,
265 log2,
266 sqrt,
267 conj,
268 getMatrixDataType,
269 mode,
270 bin,
271 acosh,
272 acsch,
273 asinh,
274 cos,
275 csc,
276 sin,
277 combinationsWithRep,
278 random,
279 SQRT2,
280 isNegative,
281 matrix,
282 cbrt,
283 gcd,
284 mod,
285 nthRoot,
286 xgcd,
287 bitAnd,
288 bitXor,
289 or,
290 concat,
291 diag,
292 identity,
293 ones,
294 reshape,
295 size,
296 subset,
297 zeros,
298 hex,
299 round,
300 leftShift,
301 rightLogShift,
302 compare,
303 compareText,
304 smaller,
305 larger,
306 unequal,
307 sparse,
308 acoth,
309 atan2,
310 sec,
311 add,
312 dot,
313 composition,
314 isZero,
315 abs,
316 floor,
317 multiply,
318 dotMultiply,
319 re,
320 flatten,
321 resize,
322 squeeze,
323 to,
324 pow,
325 dotPow,
326 rightArithShift,
327 compareNatural,
328 equalText,
329 largerEq,
330 partitionSelect,
331 asech,
332 tan,
333 setDifference,
334 setIntersect,
335 setMultiplicity,
336 setSize,
337 trace,
338 quantileSeq,
339 gamma,
340 bignumber,
341 lcm,
342 bitOr,
343 kron,
344 transpose,
345 numeric,
346 and,
347 smallerEq,
348 sort,
349 min,
350 cot,
351 setDistinct,
352 setPowerset,
353 index,
354 sum,
355 factorial,
356 permutations,
357 ceil,
358 subtract,
359 cross,
360 range,
361 row,
362 prod,
363 equal,
364 max,
365 setCartesian,
366 setSymDifference,
367 fix,
368 column,
369 diff,
370 ctranspose,
371 deepEqual,
372 setIsSubset,
373 xor,
374 divideScalar,
375 nthRoots,
376 lsolve,
377 lsolveAll,
378 setUnion,
379 lup,
380 slu,
381 det,
382 distance,
383 stirlingS2,
384 catalan,
385 count,
386 log,
387 dotDivide,
388 usolveAll,
389 hypot,
390 qr,
391 inv,
392 expm,
393 divide,
394 mean,
395 variance,
396 kldivergence,
397 bellNumbers,
398 log1p,
399 createUnit,
400 eigs,
401 intersect,
402 std,
403 atomicMass,
404 bohrMagneton,
405 boltzmann,
406 conductanceQuantum,
407 deuteronMass,
408 electronMass,
409 faraday,
410 firstRadiation,
411 gravitationConstant,
412 hartreeEnergy,
413 klitzing,
414 magneticConstant,
415 molarMass,
416 molarPlanckConstant,
417 neutronMass,
418 planckCharge,
419 planckLength,
420 planckTemperature,
421 protonMass,
422 reducedPlanckConstant,
423 secondRadiation,
424 stefanBoltzmann,
425 vacuumImpedance,
426 usolve,
427 norm,
428 lusolve,
429 sqrtm,
430 multinomial,
431 avogadro,
432 classicalElectronRadius,
433 electricConstant,
434 fermiCoupling,
435 gravity,
436 loschmidt,
437 molarMassC12,
438 nuclearMagneton,
439 planckMass,
440 quantumOfCirculation,
441 speedOfLight,
442 wienDisplacement,
443 rotationMatrix,
444 median,
445 bohrRadius,
446 elementaryCharge,
447 inverseConductanceQuantum,
448 molarVolume,
449 planckTime,
450 thomsonCrossSection,
451 rotate,
452 parse,
453 evaluate,
454 mad,
455 coulomb,
456 magneticFluxQuantum,
457 rydberg,
458 unit,
459 help,
460 gasConstant,
461 compile,
462 simplify,
463 rationalize,
464 parser,
465 planckConstant,
466 derivative,
467 config
468});
469
470_extends(mathWithTransform, math, {
471 apply: createApplyTransform({
472 isInteger,
473 typed
474 }),
475 filter: createFilterTransform({
476 typed
477 }),
478 map: createMapTransform({
479 typed
480 }),
481 forEach: createForEachTransform({
482 typed
483 }),
484 subset: createSubsetTransform({
485 matrix,
486 typed
487 }),
488 index: createIndexTransform({
489 Index
490 }),
491 concat: createConcatTransform({
492 isInteger,
493 matrix,
494 typed
495 }),
496 max: createMaxTransform({
497 config,
498 larger,
499 numeric,
500 typed
501 }),
502 min: createMinTransform({
503 config,
504 numeric,
505 smaller,
506 typed
507 }),
508 sum: createSumTransform({
509 add,
510 config,
511 numeric,
512 typed
513 }),
514 column: createColumnTransform({
515 Index,
516 matrix,
517 range,
518 typed
519 }),
520 range: createRangeTransform({
521 bignumber,
522 matrix,
523 config,
524 larger,
525 largerEq,
526 smaller,
527 smallerEq,
528 typed
529 }),
530 diff: createDiffTransform({
531 bignumber,
532 matrix,
533 number,
534 subtract,
535 typed
536 }),
537 row: createRowTransform({
538 Index,
539 matrix,
540 range,
541 typed
542 }),
543 mean: createMeanTransform({
544 add,
545 divide,
546 typed
547 }),
548 variance: createVarianceTransform({
549 add,
550 apply,
551 divide,
552 isNaN,
553 multiply,
554 subtract,
555 typed
556 }),
557 std: createStdTransform({
558 sqrt,
559 typed,
560 variance
561 })
562});
563
564_extends(classes, {
565 ResultSet,
566 Complex,
567 Range,
568 Node,
569 ArrayNode,
570 BlockNode,
571 ConstantNode,
572 ObjectNode,
573 ParenthesisNode,
574 RelationalNode,
575 Chain,
576 BigNumber,
577 Matrix,
578 ConditionalNode,
579 OperatorNode,
580 Fraction,
581 RangeNode,
582 DenseMatrix,
583 FunctionAssignmentNode,
584 SparseMatrix,
585 ImmutableDenseMatrix,
586 FibonacciHeap,
587 AccessorNode,
588 IndexNode,
589 Index,
590 AssignmentNode,
591 Spa,
592 Unit,
593 SymbolNode,
594 FunctionNode,
595 Help,
596 Parser
597});
598
599Chain.createProxy(math);
600export { embeddedDocs as docs } from '../expression/embeddedDocs/embeddedDocs.js';
\No newline at end of file