impureFunctionsAny.generated.js 13 KB

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