added factorial module
This commit is contained in:
1 parent
7f2ddb3a86
commit
e12780f413
2836 files changed
+207364
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
## Contributing
|
||||
|
||||
Contributions to the math.js library are very welcome! We can't do this alone. You can contribute in different ways: spread the word, report bugs, come up with ideas and suggestions, and contribute to the code.
|
||||
|
||||
### What can I do?
|
||||
|
||||
Search through the [issues](https://github.com/josdejong/mathjs/issues) looking for bugs that you can help fix, or look at [discussions/ideas](https://github.com/josdejong/mathjs/discussions/categories/ideas) to see if there is an idea for a new feature that that looks interesting to pick up.
|
||||
|
||||
### There are a few preferences regarding code contributions:
|
||||
|
||||
- The code of math.js follows the JavaScript Standard Style as described on https://standardjs.com/, powered by `eslint`. Run `npm run lint` to test, and `npm run format` to automatically adjust your code to the code style.
|
||||
- Make sure you properly unit test your changes.
|
||||
- Before creating a pull request, run the unit tests to make sure they all pass.
|
||||
- Only commit changes done in the source files under `src`, not to the generated builds
|
||||
which are located in the folders `dist` and `lib`.
|
||||
- Send pull requests to the `develop` branch, not the `master` branch.
|
||||
|
||||
### FAQ
|
||||
|
||||
- How to implement a new function? Answer: See the section [Implementing a new function](README.md#implementing-a-new-function) in the README.md.
|
||||
- Where to find more documentation? Answer: best starting point is the project's [README.md](https://github.com/josdejong/mathjs#readme) file.
|
||||
- I'm not sure how/where to start, what now? Answer: feel free to ask when in doubt, just [open an issue](https://github.com/josdejong/mathjs/issues) and discuss your thoughts and questions.
|
||||
|
||||
Thanks!
|
||||
+2960
File diff suppressed because it is too large.
Load diff
+176
@@ -0,0 +1,176 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
math.js
|
||||
https://github.com/josdejong/mathjs
|
||||
|
||||
Copyright (C) 2013-2024 Jos de Jong <wjosdejong@gmail.com>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
+242
@@ -0,0 +1,242 @@
|
||||

|
||||
|
||||
[https://mathjs.org](https://mathjs.org)
|
||||
|
||||
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices. Powerful and easy to use.
|
||||
|
||||
[](https://www.npmjs.com/package/mathjs)
|
||||
[](https://www.npmjs.com/package/mathjs)
|
||||
[](https://github.com/josdejong/mathjs/actions)
|
||||
[](https://github.com/josdejong/mathjs/graphs/commit-activity)
|
||||
[](https://github.com/josdejong/mathjs/blob/master/LICENSE)
|
||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs?ref=badge_shield)
|
||||
[](https://codecov.io/gh/josdejong/mathjs)
|
||||
[](https://github.com/sponsors/josdejong)
|
||||
|
||||
## Features
|
||||
|
||||
- Supports numbers, bignumbers, bigints, complex numbers, fractions, units, strings, arrays, and matrices.
|
||||
- Is compatible with JavaScript's built-in Math library.
|
||||
- Contains a flexible expression parser.
|
||||
- Does symbolic computation.
|
||||
- Comes with a large set of built-in functions and constants.
|
||||
- Can be used as a command line application as well.
|
||||
- Runs on any JavaScript engine.
|
||||
- Is easily extensible.
|
||||
- Open source.
|
||||
|
||||
## Usage
|
||||
|
||||
Math.js can be used in both node.js and in the browser.
|
||||
|
||||
Install math.js using [npm](https://www.npmjs.com/package/mathjs):
|
||||
|
||||
npm install mathjs
|
||||
|
||||
Or download mathjs via one of the CDN's listed on the downloads page:
|
||||
|
||||
[https://mathjs.org/download.html](https://mathjs.org/download.html#download)
|
||||
|
||||
Math.js can be used similar to JavaScript's built-in Math library. Besides that,
|
||||
math.js can evaluate
|
||||
[expressions](https://mathjs.org/docs/expressions/index.html)
|
||||
and supports
|
||||
[chained operations](https://mathjs.org/docs/core/chaining.html).
|
||||
|
||||
```js
|
||||
import {
|
||||
atan2, chain, derivative, e, evaluate, log, pi, pow, round, sqrt
|
||||
} from 'mathjs'
|
||||
|
||||
// functions and constants
|
||||
round(e, 3) // 2.718
|
||||
atan2(3, -3) / pi // 0.75
|
||||
log(10000, 10) // 4
|
||||
sqrt(-4) // 2i
|
||||
pow([[-1, 2], [3, 1]], 2) // [[7, 0], [0, 7]]
|
||||
derivative('x^2 + x', 'x') // 2 * x + 1
|
||||
|
||||
// expressions
|
||||
evaluate('12 / (2.3 + 0.7)') // 4
|
||||
evaluate('12.7 cm to inch') // 5 inch
|
||||
evaluate('sin(45 deg) ^ 2') // 0.5
|
||||
evaluate('9 / 3 + 2i') // 3 + 2i
|
||||
evaluate('det([-1, 2; 3, 1])') // -7
|
||||
|
||||
// chaining
|
||||
chain(3)
|
||||
.add(4)
|
||||
.multiply(2)
|
||||
.done() // 14
|
||||
```
|
||||
|
||||
See the [Getting Started](https://mathjs.org/docs/getting_started.html) for a more detailed tutorial.
|
||||
|
||||
|
||||
## Browser support
|
||||
|
||||
Math.js works on any [ES2020](https://262.ecma-international.org/11.0/) compatible JavaScript engine, including node.js, Chrome, Firefox, Safari, and Edge.
|
||||
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Getting Started](https://mathjs.org/docs/getting_started.html)
|
||||
- [Examples](https://mathjs.org/examples/index.html)
|
||||
- [Overview](https://mathjs.org/docs/index.html)
|
||||
- [History](https://mathjs.org/history.html)
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
First clone the project from github:
|
||||
|
||||
git clone git@github.com:josdejong/mathjs.git
|
||||
cd mathjs
|
||||
|
||||
Install the project dependencies:
|
||||
|
||||
npm install
|
||||
|
||||
Then, the project can be build by executing the build script via npm:
|
||||
|
||||
npm run build
|
||||
|
||||
This will build ESM output, CommonJS output, and the bundle math.js
|
||||
from the source files and put them in the folder lib.
|
||||
|
||||
|
||||
## Develop
|
||||
|
||||
When developing new features for mathjs, it is good to be aware of the following background information.
|
||||
|
||||
### Code
|
||||
|
||||
The code of `mathjs` is written in ES modules, and requires all files to have a real, relative path, meaning the files must have a `*.js` extension. Please configure adding file extensions on auto import in your IDE.
|
||||
|
||||
### Architecture
|
||||
|
||||
What mathjs tries to achieve is to offer an environment where you can do calculations with mixed data types,
|
||||
like multiplying a regular `number` with a `Complex` number or a `BigNumber`, and work with all of those in matrices.
|
||||
Mathjs also allows to add a new data type with little effort.
|
||||
|
||||
The solution that mathjs uses has two main ingredients:
|
||||
|
||||
- **Typed functions**. All functions are created using [`typed-function`](https://github.com/josdejong/typed-function/). This makes it easier to (dynamically) create and extend a single function with new data types, automatically do type conversions on function inputs, etc. So, if you create function multiply for two `number`s, you can extend it with support for multiplying your own data type, say `MyDecimal`. If you define a conversion from `MyDecimal` to `number`, the typed-function will automatically allow you to multiply a `MyDecimal` with a `number`.
|
||||
|
||||
- **Dependency injection**. When we have a function `multiply` with support for `MyDecimal`, thanks to the dependency injection, other functions using `multiply` under the hood, like `prod`, will automatically support `MyDecimal` too. This also works the other way around: if you don't need the heavyweight `multiply` (which supports BigNumbers, matrices, etc), and you just need a plain and simple number support, you can use a lightweight implementation of `multiply` just for numbers, and inject that in `prod` and other functions.
|
||||
|
||||
At the lowest level, mathjs has immutable factory functions which create immutable functions. The core function `math.create(...)` creates a new instance having functions created from all passed factory functions. A mathjs instance is a collection of created functions. It contains a function like `math.import` to allow extending the instance with new functions, which can then be used in the expression parser.
|
||||
|
||||
### Implementing a new function
|
||||
|
||||
A common case is to implement a new function. This involves the following steps:
|
||||
|
||||
- Implement the function in the right category, for example `./src/function/arithmetic/myNewFunction.js`, where you can replace `arithmetic` with the proper category, and `myNewFunction` with the name of the new function. Add the new function to the index files `./src/factoriesAny.js` and possibly `./src/factoriesNumber.js`.
|
||||
- Write documentation on the function in the source code comment of `myNewFunction.js`. This documentation is used to auto generate documentation on the website.
|
||||
- Write embedded documentation for the new function in `./src/expression/embeddedDocs/function/arithmetic/myNewFunction.js`. Add the new documentation to the index file `./src/expression/embeddedDocs/embeddedDocs.js`.
|
||||
- Write unit tests for the function in `./test/unit-tests/function/arithmetic/myNewFunction.test.js`.
|
||||
- Write the necessary TypeScript definitions for the new function in `./types/index.d.ts`, and write tests for it in `./test/typescript-tests/testTypes.ts`. This is described in [./types/EXPLANATION.md](./types/EXPLANATION.md).
|
||||
- Ensure the code style is ok by running `npm run lint` (run `npm run format` to fix the code style automatically).
|
||||
|
||||
|
||||
### Build scripts
|
||||
|
||||
The build script currently generates two types of output:
|
||||
|
||||
- **any**, generate entry points to create full versions of all functions
|
||||
- **number**: generating and entry points to create lightweight functions just supporting `number`
|
||||
|
||||
For each function, an object is generated containing the factory functions of all dependencies of the function. This allows to just load a specific set of functions, and not load or bundle any other functionality. So for example, to just create function `add` you can do `math.create(addDependencies)`.
|
||||
|
||||
|
||||
## Test
|
||||
|
||||
To execute tests for the library, install the project dependencies once:
|
||||
|
||||
npm install
|
||||
|
||||
Then, the tests can be executed:
|
||||
|
||||
npm test
|
||||
|
||||
To test the type definitions:
|
||||
|
||||
npm run test:types
|
||||
|
||||
Additionally, the tests can be run on FireFox using [headless mode](https://developer.mozilla.org/en-US/Firefox/Headless_mode):
|
||||
|
||||
npm run test:browser
|
||||
|
||||
To run the tests remotely on BrowserStack, first set the environment variables `BROWSER_STACK_USERNAME` and `BROWSER_STACK_ACCESS_KEY` with your username and access key and then execute:
|
||||
|
||||
npm run test:browserstack
|
||||
|
||||
You can separately run the code linter, though it is also executed with `npm test`:
|
||||
|
||||
npm run lint
|
||||
|
||||
To automatically fix linting issue, run:
|
||||
|
||||
npm run format
|
||||
|
||||
To test code coverage of the tests:
|
||||
|
||||
npm run coverage
|
||||
|
||||
To see the coverage results, open the generated report in your browser:
|
||||
|
||||
./coverage/lcov-report/index.html
|
||||
|
||||
|
||||
### Continuous integration testing
|
||||
|
||||
Continuous integration tests are run on [Github Actions](https://github.com/josdejong/mathjs/actions) and [BrowserStack](https://www.browserstack.com) every time a commit is pushed to github. Github Actions runs the tests for different versions of node.js, and BrowserStack runs the tests on all major browsers.
|
||||
|
||||
[](https://www.browserstack.com)
|
||||
|
||||
Thanks Github Actions and BrowserStack for the generous free hosting of this open source project!
|
||||
|
||||
## License
|
||||
|
||||
mathjs is published under the Apache 2.0 license:
|
||||
|
||||
```
|
||||
Copyright (C) 2013-2024 Jos de Jong <wjosdejong@gmail.com>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
```
|
||||
|
||||
mathjs contains a JavaScript port of the [CSparse](https://github.com/DrTimothyAldenDavis/SuiteSparse/tree/dev/CSparse/Source) library, published under the LGPL-2.1+ license:
|
||||
|
||||
```
|
||||
CSparse: a Concise Sparse matrix package.
|
||||
Copyright (c) 2006, Timothy A. Davis.
|
||||
http://www.suitesparse.com
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
CSparse is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
CSparse is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this Module; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
```
|
||||
+446
@@ -0,0 +1,446 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* math.js
|
||||
* https://github.com/josdejong/mathjs
|
||||
*
|
||||
* Math.js is an extensive math library for JavaScript and Node.js,
|
||||
* It features real and complex numbers, units, matrices, a large set of
|
||||
* mathematical functions, and a flexible expression parser.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* mathjs [scriptfile(s)] {OPTIONS}
|
||||
*
|
||||
* Options:
|
||||
*
|
||||
* --version, -v Show application version
|
||||
* --help, -h Show this message
|
||||
* --tex Generate LaTeX instead of evaluating
|
||||
* --string Generate string instead of evaluating
|
||||
* --parenthesis= Set the parenthesis option to
|
||||
* either of "keep", "auto" and "all"
|
||||
*
|
||||
* Example usage:
|
||||
* mathjs Open a command prompt
|
||||
* mathjs 1+2 Evaluate expression
|
||||
* mathjs script.txt Run a script file
|
||||
* mathjs script1.txt script2.txt Run two script files
|
||||
* mathjs script.txt > results.txt Run a script file, output to file
|
||||
* cat script.txt | mathjs Run input stream
|
||||
* cat script.txt | mathjs > results.txt Run input stream, output to file
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2024 Jos de Jong <wjosdejong@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { createEmptyMap } = require('../lib/cjs/utils/map.js')
|
||||
let scope = createEmptyMap()
|
||||
|
||||
const PRECISION = 14 // decimals
|
||||
|
||||
/**
|
||||
* "Lazy" load math.js: only require when we actually start using it.
|
||||
* This ensures the cli application looks like it loads instantly.
|
||||
* When requesting help or version number, math.js isn't even loaded.
|
||||
* @return {{ evalute: function, parse: function, math: Object }}
|
||||
*/
|
||||
function getMath () {
|
||||
const { create, all } = require('../lib/browser/math.js')
|
||||
|
||||
const math = create(all)
|
||||
const parse = math.parse
|
||||
const evaluate = math.evaluate
|
||||
|
||||
// See https://mathjs.org/docs/expressions/security.html#less-vulnerable-expression-parser
|
||||
math.import({
|
||||
'import': function () { throw new Error('Function import is disabled') },
|
||||
'createUnit': function () { throw new Error('Function createUnit is disabled') },
|
||||
'reviver': function () { throw new Error('Function reviver is disabled') }
|
||||
}, { override: true })
|
||||
|
||||
return { math, parse, evaluate }
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to format a value. Regular numbers will be rounded
|
||||
* to 14 digits to prevent round-off errors from showing up.
|
||||
* @param {*} value
|
||||
*/
|
||||
function format (value) {
|
||||
const { math } = getMath()
|
||||
|
||||
return math.format(value, {
|
||||
fn: function (value) {
|
||||
if (typeof value === 'number') {
|
||||
// round numbers
|
||||
return math.format(value, PRECISION)
|
||||
} else {
|
||||
return math.format(value)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* auto complete a text
|
||||
* @param {String} text
|
||||
* @return {[Array, String]} completions
|
||||
*/
|
||||
function completer (text) {
|
||||
const { math } = getMath()
|
||||
let matches = []
|
||||
let keyword
|
||||
const m = /[a-zA-Z_0-9]+$/.exec(text)
|
||||
if (m) {
|
||||
keyword = m[0]
|
||||
|
||||
// scope variables
|
||||
for (const def in scope.keys()) {
|
||||
if (def.indexOf(keyword) === 0) {
|
||||
matches.push(def)
|
||||
}
|
||||
}
|
||||
|
||||
// commandline keywords
|
||||
['exit', 'quit', 'clear'].forEach(function (cmd) {
|
||||
if (cmd.indexOf(keyword) === 0) {
|
||||
matches.push(cmd)
|
||||
}
|
||||
})
|
||||
|
||||
// math functions and constants
|
||||
const ignore = ['expr', 'type']
|
||||
for (const func in math.expression.mathWithTransform) {
|
||||
if (hasOwnProperty(math.expression.mathWithTransform, func)) {
|
||||
if (func.indexOf(keyword) === 0 && !ignore.includes(func)) {
|
||||
matches.push(func)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// units
|
||||
const Unit = math.Unit
|
||||
for (const name in Unit.UNITS) {
|
||||
if (hasOwnProperty(Unit.UNITS, name)) {
|
||||
if (name.indexOf(keyword) === 0) {
|
||||
matches.push(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const name in Unit.PREFIXES) {
|
||||
if (hasOwnProperty(Unit.PREFIXES, name)) {
|
||||
const prefixes = Unit.PREFIXES[name]
|
||||
for (const prefix in prefixes) {
|
||||
if (hasOwnProperty(prefixes, prefix)) {
|
||||
if (prefix.indexOf(keyword) === 0) {
|
||||
matches.push(prefix)
|
||||
} else if (keyword.indexOf(prefix) === 0) {
|
||||
const unitKeyword = keyword.substring(prefix.length)
|
||||
for (const n in Unit.UNITS) {
|
||||
if (hasOwnProperty(Unit.UNITS, n)) {
|
||||
if (n.indexOf(unitKeyword) === 0 &&
|
||||
Unit.isValuelessUnit(prefix + n)) {
|
||||
matches.push(prefix + n)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// remove duplicates
|
||||
matches = matches.filter(function (elem, pos, arr) {
|
||||
return arr.indexOf(elem) === pos
|
||||
})
|
||||
}
|
||||
|
||||
return [matches, keyword]
|
||||
}
|
||||
|
||||
/**
|
||||
* Run stream, read and evaluate input and stream that to output.
|
||||
* Text lines read from the input are evaluated, and the results are send to
|
||||
* the output.
|
||||
* @param input Input stream
|
||||
* @param output Output stream
|
||||
* @param mode Output mode
|
||||
* @param parenthesis Parenthesis option
|
||||
*/
|
||||
function runStream (input, output, mode, parenthesis) {
|
||||
const readline = require('readline')
|
||||
const rl = readline.createInterface({
|
||||
input: input || process.stdin,
|
||||
output: output || process.stdout,
|
||||
completer: completer
|
||||
})
|
||||
|
||||
if (rl.output.isTTY) {
|
||||
rl.setPrompt('> ')
|
||||
rl.prompt()
|
||||
}
|
||||
|
||||
// load math.js now, right *after* loading the prompt.
|
||||
const { math, parse } = getMath()
|
||||
|
||||
// TODO: automatic insertion of 'ans' before operators like +, -, *, /
|
||||
|
||||
rl.on('line', function (line) {
|
||||
const expr = line.trim()
|
||||
|
||||
switch (expr.toLowerCase()) {
|
||||
case 'quit':
|
||||
case 'exit':
|
||||
// exit application
|
||||
rl.close()
|
||||
break
|
||||
case 'clear':
|
||||
// clear memory
|
||||
scope = createEmptyMap()
|
||||
console.log('memory cleared')
|
||||
|
||||
// get next input
|
||||
if (rl.output.isTTY) {
|
||||
rl.prompt()
|
||||
}
|
||||
break
|
||||
default:
|
||||
if (!expr) {
|
||||
break
|
||||
}
|
||||
switch (mode) {
|
||||
case 'evaluate':
|
||||
// evaluate expression
|
||||
try {
|
||||
let node = parse(expr)
|
||||
let res = node.evaluate(scope)
|
||||
|
||||
if (math.isResultSet(res)) {
|
||||
// we can have 0 or 1 results in the ResultSet, as the CLI
|
||||
// does not allow multiple expressions separated by a return
|
||||
res = res.entries[0]
|
||||
node = node.blocks
|
||||
.filter(function (entry) { return entry.visible })
|
||||
.map(function (entry) { return entry.node })[0]
|
||||
}
|
||||
|
||||
if (node) {
|
||||
if (math.isAssignmentNode(node)) {
|
||||
const name = findSymbolName(node)
|
||||
if (name !== null) {
|
||||
const value = scope.get(name)
|
||||
scope.set('ans', value)
|
||||
console.log(name + ' = ' + format(value))
|
||||
} else {
|
||||
scope.set('ans', res)
|
||||
console.log(format(res))
|
||||
}
|
||||
} else if (math.isHelp(res)) {
|
||||
console.log(res.toString())
|
||||
} else {
|
||||
scope.set('ans', res)
|
||||
console.log(format(res))
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err.toString())
|
||||
}
|
||||
break
|
||||
|
||||
case 'string':
|
||||
try {
|
||||
const string = math.parse(expr).toString({ parenthesis: parenthesis })
|
||||
console.log(string)
|
||||
} catch (err) {
|
||||
console.log(err.toString())
|
||||
}
|
||||
break
|
||||
|
||||
case 'tex':
|
||||
try {
|
||||
const tex = math.parse(expr).toTex({ parenthesis: parenthesis })
|
||||
console.log(tex)
|
||||
} catch (err) {
|
||||
console.log(err.toString())
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// get next input
|
||||
if (rl.output.isTTY) {
|
||||
rl.prompt()
|
||||
}
|
||||
})
|
||||
|
||||
rl.on('close', function () {
|
||||
console.log()
|
||||
process.exit(0)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the symbol name of an AssignmentNode. Recurses into the chain of
|
||||
* objects to the root object.
|
||||
* @param {AssignmentNode} node
|
||||
* @return {string | null} Returns the name when found, else returns null.
|
||||
*/
|
||||
function findSymbolName (node) {
|
||||
const { math } = getMath()
|
||||
let n = node
|
||||
|
||||
while (n) {
|
||||
if (math.isSymbolNode(n)) {
|
||||
return n.name
|
||||
}
|
||||
n = n.object
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* Output application version number.
|
||||
* Version number is read version from package.json.
|
||||
*/
|
||||
function outputVersion () {
|
||||
fs.readFile(path.join(__dirname, '/../package.json'), function (err, data) {
|
||||
if (err) {
|
||||
console.log(err.toString())
|
||||
} else {
|
||||
const pkg = JSON.parse(data)
|
||||
const version = pkg && pkg.version ? pkg.version : 'unknown'
|
||||
console.log(version)
|
||||
}
|
||||
process.exit(0)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Output a help message
|
||||
*/
|
||||
function outputHelp () {
|
||||
console.log('math.js')
|
||||
console.log('https://mathjs.org')
|
||||
console.log()
|
||||
console.log('Math.js is an extensive math library for JavaScript and Node.js. It features ')
|
||||
console.log('real and complex numbers, units, matrices, a large set of mathematical')
|
||||
console.log('functions, and a flexible expression parser.')
|
||||
console.log()
|
||||
console.log('Usage:')
|
||||
console.log(' mathjs [scriptfile(s)|expression] {OPTIONS}')
|
||||
console.log()
|
||||
console.log('Options:')
|
||||
console.log(' --version, -v Show application version')
|
||||
console.log(' --help, -h Show this message')
|
||||
console.log(' --tex Generate LaTeX instead of evaluating')
|
||||
console.log(' --string Generate string instead of evaluating')
|
||||
console.log(' --parenthesis= Set the parenthesis option to')
|
||||
console.log(' either of "keep", "auto" and "all"')
|
||||
console.log()
|
||||
console.log('Example usage:')
|
||||
console.log(' mathjs Open a command prompt')
|
||||
console.log(' mathjs 1+2 Evaluate expression')
|
||||
console.log(' mathjs script.txt Run a script file')
|
||||
console.log(' mathjs script.txt script2.txt Run two script files')
|
||||
console.log(' mathjs script.txt > results.txt Run a script file, output to file')
|
||||
console.log(' cat script.txt | mathjs Run input stream')
|
||||
console.log(' cat script.txt | mathjs > results.txt Run input stream, output to file')
|
||||
console.log()
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
/**
|
||||
* Process input and output, based on the command line arguments
|
||||
*/
|
||||
const scripts = [] // queue of scripts that need to be processed
|
||||
let mode = 'evaluate' // one of 'evaluate', 'tex' or 'string'
|
||||
let parenthesis = 'keep'
|
||||
let version = false
|
||||
let help = false
|
||||
|
||||
process.argv.forEach(function (arg, index) {
|
||||
if (index < 2) {
|
||||
return
|
||||
}
|
||||
|
||||
switch (arg) {
|
||||
case '-v':
|
||||
case '--version':
|
||||
version = true
|
||||
break
|
||||
|
||||
case '-h':
|
||||
case '--help':
|
||||
help = true
|
||||
break
|
||||
|
||||
case '--tex':
|
||||
mode = 'tex'
|
||||
break
|
||||
|
||||
case '--string':
|
||||
mode = 'string'
|
||||
break
|
||||
|
||||
case '--parenthesis=keep':
|
||||
parenthesis = 'keep'
|
||||
break
|
||||
|
||||
case '--parenthesis=auto':
|
||||
parenthesis = 'auto'
|
||||
break
|
||||
|
||||
case '--parenthesis=all':
|
||||
parenthesis = 'all'
|
||||
break
|
||||
|
||||
// TODO: implement configuration via command line arguments
|
||||
|
||||
default:
|
||||
scripts.push(arg)
|
||||
}
|
||||
})
|
||||
|
||||
if (version) {
|
||||
outputVersion()
|
||||
} else if (help) {
|
||||
outputHelp()
|
||||
} else if (scripts.length === 0) {
|
||||
// run a stream, can be user input or pipe input
|
||||
runStream(process.stdin, process.stdout, mode, parenthesis)
|
||||
} else {
|
||||
fs.stat(scripts[0], function (err) {
|
||||
if (err) {
|
||||
const { evaluate } = getMath()
|
||||
console.log(evaluate(scripts.join(' ')).toString())
|
||||
} else {
|
||||
// work through the queue of scripts
|
||||
scripts.forEach(function (arg) {
|
||||
// run a script file
|
||||
runStream(fs.createReadStream(arg), process.stdout, mode, parenthesis)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// helper function to safely check whether an object as a property
|
||||
// copy from the function in object.js which is ES6
|
||||
function hasOwnProperty (object, property) {
|
||||
return object && Object.hasOwnProperty.call(object, property)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/*
|
||||
* This simply preloads mathjs and drops you into a REPL to
|
||||
* help interactive debugging.
|
||||
**/
|
||||
global.math = require('../lib/browser/math.js')
|
||||
const repl = require('repl')
|
||||
|
||||
repl.start({ useGlobal: true })
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see math.js.LICENSE.txt */
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.math=t():e.math=t()}(this,(()=>(()=>{var e={5716:function(e,t){var r;!function(){"use strict";var n=Math.cosh||function(e){return Math.abs(e)<1e-9?1-e:.5*(Math.exp(e)+Math.exp(-e))},i=Math.sinh||function(e){return Math.abs(e)<1e-9?e:.5*(Math.exp(e)-Math.exp(-e))},o=function(){throw SyntaxError("Invalid Param")};function a(e,t){var r=Math.abs(e),n=Math.abs(t);return 0===e?Math.log(n):0===t?Math.log(r):r<3e3&&n<3e3?.5*Math.log(e*e+t*t):(e/=2,t/=2,.5*Math.log(e*e+t*t)+Math.LN2)}function s(e,t){if(!(this instanceof s))return new s(e,t);var r=function(e,t){var r={re:0,im:0};if(null==e)r.re=r.im=0;else if(void 0!==t)r.re=e,r.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)r.re=e.re,r.im=e.im;else if("abs"in e&&"arg"in e){if(!Number.isFinite(e.abs)&&Number.isFinite(e.arg))return s.INFINITY;r.re=e.abs*Math.cos(e.arg),r.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!Number.isFinite(e.r)&&Number.isFinite(e.phi))return s.INFINITY;r.re=e.r*Math.cos(e.phi),r.im=e.r*Math.sin(e.phi)}else 2===e.length?(r.re=e[0],r.im=e[1]):o();break;case"string":r.im=r.re=0;var n=e.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),i=1,a=0;null===n&&o();for(var u=0;u<n.length;u++){var c=n[u];" "===c||"\t"===c||"\n"===c||("+"===c?i++:"-"===c?a++:"i"===c||"I"===c?(i+a===0&&o()," "===n[u+1]||isNaN(n[u+1])?r.im+=parseFloat((a%2?"-":"")+"1"):(r.im+=parseFloat((a%2?"-":"")+n[u+1]),u++),i=a=0):((i+a===0||isNaN(c))&&o(),"i"===n[u+1]||"I"===n[u+1]?(r.im+=parseFloat((a%2?"-":"")+c),u++):r.re+=parseFloat((a%2?"-":"")+c),i=a=0))}i+a>0&&o();break;case"number":r.im=0,r.re=e;break;default:o()}return isNaN(r.re)||isNaN(r.im),r}(e,t);this.re=r.re,this.im=r.im}s.prototype={re:0,im:0,sign:function(){var e=this.abs();return new s(this.re/e,this.im/e)},add:function(e,t){var r=new s(e,t);return this.isInfinite()&&r.isInfinite()?s.NAN:this.isInfinite()||r.isInfinite()?s.INFINITY:new s(this.re+r.re,this.im+r.im)},sub:function(e,t){var r=new s(e,t);return this.isInfinite()&&r.isInfinite()?s.NAN:this.isInfinite()||r.isInfinite()?s.INFINITY:new s(this.re-r.re,this.im-r.im)},mul:function(e,t){var r=new s(e,t);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?s.NAN:this.isInfinite()||r.isInfinite()?s.INFINITY:0===r.im&&0===this.im?new s(this.re*r.re,0):new s(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(e,t){var r=new s(e,t);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return s.NAN;if(this.isInfinite()||r.isZero())return s.INFINITY;if(this.isZero()||r.isInfinite())return s.ZERO;e=this.re,t=this.im;var n,i,o=r.re,a=r.im;return 0===a?new s(e/o,t/o):Math.abs(o)<Math.abs(a)?new s((e*(i=o/a)+t)/(n=o*i+a),(t*i-e)/n):new s((e+t*(i=a/o))/(n=a*i+o),(t-e*i)/n)},pow:function(e,t){var r=new s(e,t);if(e=this.re,t=this.im,r.isZero())return s.ONE;if(0===r.im){if(0===t&&e>0)return new s(Math.pow(e,r.re),0);if(0===e)switch((r.re%4+4)%4){case 0:return new s(Math.pow(t,r.re),0);case 1:return new s(0,Math.pow(t,r.re));case 2:return new s(-Math.pow(t,r.re),0);case 3:return new s(0,-Math.pow(t,r.re))}}if(0===e&&0===t&&r.re>0&&r.im>=0)return s.ZERO;var n=Math.atan2(t,e),i=a(e,t);return e=Math.exp(r.re*i-r.im*n),t=r.im*i+r.re*n,new s(e*Math.cos(t),e*Math.sin(t))},sqrt:function(){var e,t,r=this.re,n=this.im,i=this.abs();if(r>=0){if(0===n)return new s(Math.sqrt(r),0);e=.5*Math.sqrt(2*(i+r))}else e=Math.abs(n)/Math.sqrt(2*(i-r));return t=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new s(e,n<0?-t:t)},exp:function(){var e=Math.exp(this.re);return this.im,new s(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){var e=this.re,t=this.im;return new s(Math.expm1(e)*Math.cos(t)+function(e){var t=Math.PI/4;if(-t>e||e>t)return Math.cos(e)-1;var r=e*e;return r*(r*(r*(r*(r*(r*(r*(r/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(t),Math.exp(e)*Math.sin(t))},log:function(){var e=this.re,t=this.im;return new s(a(e,t),Math.atan2(t,e))},abs:function(){return e=this.re,t=this.im,r=Math.abs(e),n=Math.abs(t),r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(r<n?(r=n,n=e/t):n=t/e,r*Math.sqrt(1+n*n));var e,t,r,n},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var e=this.re,t=this.im;return new s(Math.sin(e)*n(t),Math.cos(e)*i(t))},cos:function(){var e=this.re,t=this.im;return new s(Math.cos(e)*n(t),-Math.sin(e)*i(t))},tan:function(){var e=2*this.re,t=2*this.im,r=Math.cos(e)+n(t);return new s(Math.sin(e)/r,i(t)/r)},cot:function(){var e=2*this.re,t=2*this.im,r=Math.cos(e)-n(t);return new s(-Math.sin(e)/r,i(t)/r)},sec:function(){var e=this.re,t=this.im,r=.5*n(2*t)+.5*Math.cos(2*e);return new s(Math.cos(e)*n(t)/r,Math.sin(e)*i(t)/r)},csc:function(){var e=this.re,t=this.im,r=.5*n(2*t)-.5*Math.cos(2*e);return new s(Math.sin(e)*n(t)/r,-Math.cos(e)*i(t)/r)},asin:function(){var e=this.re,t=this.im,r=new s(t*t-e*e+1,-2*e*t).sqrLine truncated
|
||||
//# sourceMappingURL=math.js.map
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
/*!
|
||||
* decimal.js v10.4.3
|
||||
* An arbitrary-precision Decimal type for JavaScript.
|
||||
* https://github.com/MikeMcl/decimal.js
|
||||
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||
* MIT Licence
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license Complex.js v2.1.1 12/05/2020
|
||||
*
|
||||
* Copyright (c) 2020, Robert Eisele (robert@xarg.org)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
**/
|
||||
|
||||
/**
|
||||
* @license Fraction.js v4.3.7 31/08/2023
|
||||
* https://www.xarg.org/2014/03/rational-numbers-in-javascript/
|
||||
*
|
||||
* Copyright (c) 2023, Robert Eisele (robert@raw.org)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
**/
|
||||
|
||||
/**
|
||||
* math.js
|
||||
* https://github.com/josdejong/mathjs
|
||||
*
|
||||
* Math.js is an extensive math library for JavaScript and Node.js,
|
||||
* It features real and complex numbers, units, matrices, a large set of
|
||||
* mathematical functions, and a flexible expression parser.
|
||||
*
|
||||
* @version 13.2.0
|
||||
* @date 2024-10-02
|
||||
*
|
||||
* @license
|
||||
* Copyright (C) 2013-2024 Jos de Jong <wjosdejong@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"math.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAc,KAAID,IAElBD,EAAW,KAAIC,GAChB,CATD,CASGK,MAAM,IACT,gCCVA,OAmCA,WAEE,aAEA,IAAIC,EAAOC,KAAKD,MAAQ,SAASE,GAC/B,OAAOD,KAAKE,IAAID,GAAK,KAAO,EAAIA,EAAmC,IAA9BD,KAAKG,IAAIF,GAAKD,KAAKG,KAAKF,GAC/D,EAEIG,EAAOJ,KAAKI,MAAQ,SAASH,GAC/B,OAAOD,KAAKE,IAAID,GAAK,KAAOA,EAAmC,IAA9BD,KAAKG,IAAIF,GAAKD,KAAKG,KAAKF,GAC3D,EA+DII,EAAc,WAChB,MAAMC,YAAY,gBACpB,EASA,SAASC,EAASC,EAAGC,GAEnB,IAAIC,EAAKV,KAAKE,IAAIM,GACdG,EAAKX,KAAKE,IAAIO,GAElB,OAAU,IAAND,EACKR,KAAKY,IAAID,GAGR,IAANF,EACKT,KAAKY,IAAIF,GAGdA,EAAK,KAAQC,EAAK,IACa,GAA1BX,KAAKY,IAAIJ,EAAIA,EAAIC,EAAIA,IAmC7BD,GAAQ,EACRC,GAAQ,EAEF,GAAMT,KAAKY,IAAIJ,EAAIA,EAAIC,EAAIA,GAAKT,KAAKa,IAC9C,CAwHA,SAASC,EAAQN,EAAGC,GAElB,KAAMX,gBAAgBgB,GACpB,OAAO,IAAIA,EAAQN,EAAGC,GAGxB,IAAIM,EA5HM,SAASP,EAAGC,GAEtB,IAAIM,EAAI,CAAE,GAAM,EAAG,GAAM,GAEzB,GAAIP,QACFO,EAAM,GACNA,EAAM,GAAI,OACL,QAAUC,IAANP,EACTM,EAAM,GAAIP,EACVO,EAAM,GAAIN,OAEV,cAAeD,GAEb,IAAK,SAEH,GAAI,OAAQA,GAAK,OAAQA,EACvBO,EAAM,GAAIP,EAAM,GAChBO,EAAM,GAAIP,EAAM,QACX,GAAI,QAASA,GAAK,QAASA,EAAG,CACnC,IAAKS,OAAOC,SAASV,EAAO,MAAMS,OAAOC,SAASV,EAAO,KACvD,OAAOM,EAAkB,SAE3BC,EAAM,GAAIP,EAAO,IAAIR,KAAKmB,IAAIX,EAAO,KACrCO,EAAM,GAAIP,EAAO,IAAIR,KAAKoB,IAAIZ,EAAO,IACvC,MAAO,GAAI,MAAOA,GAAK,QAASA,EAAG,CACjC,IAAKS,OAAOC,SAASV,EAAK,IAAMS,OAAOC,SAASV,EAAO,KACrD,OAAOM,EAAkB,SAE3BC,EAAM,GAAIP,EAAK,EAAIR,KAAKmB,IAAIX,EAAO,KACnCO,EAAM,GAAIP,EAAK,EAAIR,KAAKoB,IAAIZ,EAAO,IACrC,MAAwB,IAAbA,EAAEa,QACXN,EAAM,GAAIP,EAAE,GACZO,EAAM,GAAIP,EAAE,IAEZH,IAEF,MAEF,IAAK,SAEHU,EAAM,GACNA,EAAM,GAAI,EAEV,IAAIO,EAASd,EAAEe,MAAM,yCACjBC,EAAO,EACPC,EAAQ,EAEG,OAAXH,GACFjB,IAGF,IAAK,IAAIqB,EAAI,EAAGA,EAAIJ,EAAOD,OAAQK,IAAK,CAEtC,IAAIC,EAAIL,EAAOI,GAEL,MAANC,GAAmB,OAANA,GAAoB,OAANA,IAEd,MAANA,EACTH,IACe,MAANG,EACTF,IACe,MAANE,GAAmB,MAANA,GAElBH,EAAOC,IAAU,GACnBpB,IAGoB,MAAlBiB,EAAOI,EAAI,IAAeE,MAAMN,EAAOI,EAAI,IAI7CX,EAAM,IAAKc,YAAYJ,EAAQ,EAAI,IAAM,IAAM,MAH/CV,EAAM,IAAKc,YAAYJ,EAAQ,EAAI,IAAM,IAAMH,EAAOI,EAAI,IAC1DA,KAIFF,EAAOC,EAAQ,KAIXD,EAAOC,IAAU,GAAKG,MAAMD,KAC9BtB,IAGoB,MAAlBiB,EAAOI,EAAI,IAAgC,MAAlBJ,EAAOI,EAAI,IACtCX,EAAM,IAAKc,YAAYJ,EAAQ,EAAI,IAAM,IAAME,GAC/CD,KAEAX,EAAM,IAAKc,YAAYJ,EAAQ,EAAI,IAAM,IAAME,GAEjDH,EAAOC,EAAQ,GAEnB,CAGID,EAAOC,EAAQ,GACjBpB,IAEF,MAEF,IAAK,SACHU,EAAM,GAAI,EACVA,EAAM,GAAIP,EACV,MAEF,QACEH,IAQN,OALIuB,MAAMb,EAAM,KAAMa,MAAMb,EAAM,IAK3BA,CACT,CAYUe,CAAMtB,EAAGC,GAEjBX,KAAS,GAAIiB,EAAM,GACnBjB,KAAS,GAAIiB,EAAM,EACrB,CAEAD,EAAQiB,UAAY,CAElB,GAAM,EACN,GAAM,EAON,KAAQ,WAEN,IAAI7B,EAAMJ,KAAU,MAEpB,OAAO,IAAIgB,EACThB,KAAS,GAAII,EACbJ,KAAS,GAAII,EACjB,EAOA,IAAO,SAASM,EAAGC,GAEjB,IAAIM,EAAI,IAAID,EAAQN,EAAGC,GAGvB,OAAIX,KAAiB,cAAOiB,EAAc,aACjCD,EAAa,IAIlBhB,KAAiB,cAAOiB,EAAc,aACjCD,EAAkB,SAGpB,IAAIA,EACThB,KAAS,GAAIiB,EAAM,GACnBjB,KAAS,GAAIiB,EAAM,GACvB,EAOA,IAAO,SAASP,EAAGC,GAEjB,IAAIM,EAAI,IAAID,EAAQN,EAAGC,GAGvB,OAAIX,KAAiB,cAAOiB,EAAc,aACjCD,EAAa,IAIlBhB,KAAiB,cAAOiB,EAAc,aACjCD,EAAkB,SAGpB,IAAIA,EACThB,KAAS,GAAIiB,EAAM,GACnBjB,KAAS,GAAIiB,EAAM,GACvB,EAOA,IAAO,SAASP,EAAGC,GAEjB,IAAIM,EAAI,IAAID,EAAQN,EAAGC,GAGvB,OAAKX,KAAiB,cAAOiB,EAAU,UAASjB,KAAa,UAAOiB,EAAc,aACzED,EAAa,IAIlBhB,KAAiB,cAAOiB,EAAc,aACjCD,EAAkB,SAIX,IAAZC,EAAM,IAA0B,IAAfjB,KAAS,GACrB,IAAIgB,EAAQhB,KAAS,GAAIiB,EAAM,GAAG,GAGpC,IAAID,EACThB,KAAS,GAAIiB,EAAM,GAAIjB,KAAS,GAAIiB,EAAM,GAC1CjB,KAAS,GAAIiB,EAAM,GAAIjB,KAAS,GAAIiB,EAAM,GAC9C,EAOA,IAAO,SAASP,EAAGC,GAEjB,IAAIM,EAAI,IAAID,EAAQN,EAAGC,GAGvB,GAAKX,KAAa,UAAOiB,EAAU,UAASjB,KAAiB,cAAOiB,EAAc,aAChF,OAAOD,EAAa,IAItB,GAAIhB,KAAiB,cAAOiB,EAAU,SACpC,OAAOD,EAAkB,SAI3B,GAAIhB,KAAa,UAAOiB,EAAc,aACpC,OAAOD,EAAc,KAGvBN,EAAIV,KAAS,GACbW,EAAIX,KAAS,GAEb,IAEIkC,EAAG/B,EAFH0B,EAAIZ,EAAM,GACVkB,EAAIlB,EAAM,GAGd,OAAI,IAAMkB,EAED,IAAInB,EAAQN,EAAImB,EAAGlB,EAAIkB,GAG5B3B,KAAKE,IAAIyB,GAAK3B,KAAKE,IAAI+B,GAKlB,IAAInB,GACRN,GAJHP,EAAI0B,EAAIM,GAIGxB,IAHXuB,EAAIL,EAAI1B,EAAIgC,IAITxB,EAAIR,EAAIO,GAAKwB,GAOT,IAAIlB,GACRN,EAAIC,GAJPR,EAAIgC,EAAIN,KACRK,EAAIC,EAAIhC,EAAI0B,IAITlB,EAAID,EAAIP,GAAK+B,EAEpB,EAOA,IAAO,SAASxB,EAAGC,GAEjB,IAAIM,EAAI,IAAID,EAAQN,EAAGC,GAKvB,GAHAD,EAAIV,KAAS,GACbW,EAAIX,KAAS,GAETiB,EAAU,SACZ,OAAOD,EAAa,IAItB,GAAgB,IAAZC,EAAM,GAAS,CAEjB,GAAU,IAANN,GAAWD,EAAI,EAEjB,OAAO,IAAIM,EAAQd,KAAKkC,IAAI1B,EAAGO,EAAM,IAAI,GAEpC,GAAU,IAANP,EAET,QAASO,EAAM,GAAI,EAAI,GAAK,GAC1B,KAAK,EACH,OAAO,IAAID,EAAQd,KAAKkC,IAAIzB,EAAGM,EAAM,IAAI,GAC3C,KAAK,EACH,OAAO,IAAID,EAAQ,EAAGd,KAAKkC,IAAIzB,EAAGM,EAAM,KAC1C,KAAK,EACH,OAAO,IAAID,GAASd,KAAKkC,IAAIzB,EAAGM,EAAM,IAAI,GAC5C,KAAK,EACH,OAAO,IAAID,EAAQ,GAAId,KAAKkC,IAAIzB,EAAGM,EAAM,KAGjD,CAqBA,GAAU,IAANP,GAAiB,IAANC,GAAWM,EAAM,GAAI,GAAKA,EAAM,IAAK,EAClD,OAAOD,EAAc,KAGvB,IAAIqB,EAAMnC,KAAKoC,MAAM3B,EAAGD,GACpB6B,EAAM9B,EAASC,EAAGC,GAItB,OAFAD,EAAIR,KAAKG,IAAIY,EAAM,GAAIsB,EAAMtB,EAAM,GAAIoB,GACvC1B,EAAIM,EAAM,GAAIsB,EAAMtB,EAAM,GAAIoB,EACvB,IAAIrB,EACTN,EAAIR,KAAKmB,IAAIV,GACbD,EAAIR,KAAKoB,IAAIX,GACjB,EAOA,KAAQ,WAEN,IAII6B,EAAIC,EAJJ/B,EAAIV,KAAS,GACbW,EAAIX,KAAS,GACb0C,EAAI1C,KAAU,MAIlB,GAAIU,GAAK,EAAG,CAEV,GAAU,IAANC,EACF,OAAO,IAAIK,EALine truncated
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createVersion = exports.createUppercasePi = exports.createUppercaseE = exports.createTrue = exports.createTau = exports.createSQRT2 = exports.createSQRT1_2 = exports.createPi = exports.createPhi = exports.createNull = exports.createNaN = exports.createLOG2E = exports.createLOG10E = exports.createLN2 = exports.createLN10 = exports.createInfinity = exports.createI = exports.createFalse = exports.createE = void 0;
|
||||
var _factory = require("./utils/factory.js");
|
||||
var _version = require("./version.js");
|
||||
var _constants = require("./utils/bignumber/constants.js");
|
||||
var _index = require("./plain/number/index.js");
|
||||
const createTrue = exports.createTrue = /* #__PURE__ */(0, _factory.factory)('true', [], () => true);
|
||||
const createFalse = exports.createFalse = /* #__PURE__ */(0, _factory.factory)('false', [], () => false);
|
||||
const createNull = exports.createNull = /* #__PURE__ */(0, _factory.factory)('null', [], () => null);
|
||||
const createInfinity = exports.createInfinity = /* #__PURE__ */recreateFactory('Infinity', ['config', '?BigNumber'], _ref => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref;
|
||||
return config.number === 'BigNumber' ? new BigNumber(Infinity) : Infinity;
|
||||
});
|
||||
const createNaN = exports.createNaN = /* #__PURE__ */recreateFactory('NaN', ['config', '?BigNumber'], _ref2 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref2;
|
||||
return config.number === 'BigNumber' ? new BigNumber(NaN) : NaN;
|
||||
});
|
||||
const createPi = exports.createPi = /* #__PURE__ */recreateFactory('pi', ['config', '?BigNumber'], _ref3 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref3;
|
||||
return config.number === 'BigNumber' ? (0, _constants.createBigNumberPi)(BigNumber) : _index.pi;
|
||||
});
|
||||
const createTau = exports.createTau = /* #__PURE__ */recreateFactory('tau', ['config', '?BigNumber'], _ref4 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref4;
|
||||
return config.number === 'BigNumber' ? (0, _constants.createBigNumberTau)(BigNumber) : _index.tau;
|
||||
});
|
||||
const createE = exports.createE = /* #__PURE__ */recreateFactory('e', ['config', '?BigNumber'], _ref5 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref5;
|
||||
return config.number === 'BigNumber' ? (0, _constants.createBigNumberE)(BigNumber) : _index.e;
|
||||
});
|
||||
|
||||
// golden ratio, (1+sqrt(5))/2
|
||||
const createPhi = exports.createPhi = /* #__PURE__ */recreateFactory('phi', ['config', '?BigNumber'], _ref6 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref6;
|
||||
return config.number === 'BigNumber' ? (0, _constants.createBigNumberPhi)(BigNumber) : _index.phi;
|
||||
});
|
||||
const createLN2 = exports.createLN2 = /* #__PURE__ */recreateFactory('LN2', ['config', '?BigNumber'], _ref7 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref7;
|
||||
return config.number === 'BigNumber' ? new BigNumber(2).ln() : Math.LN2;
|
||||
});
|
||||
const createLN10 = exports.createLN10 = /* #__PURE__ */recreateFactory('LN10', ['config', '?BigNumber'], _ref8 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref8;
|
||||
return config.number === 'BigNumber' ? new BigNumber(10).ln() : Math.LN10;
|
||||
});
|
||||
const createLOG2E = exports.createLOG2E = /* #__PURE__ */recreateFactory('LOG2E', ['config', '?BigNumber'], _ref9 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref9;
|
||||
return config.number === 'BigNumber' ? new BigNumber(1).div(new BigNumber(2).ln()) : Math.LOG2E;
|
||||
});
|
||||
const createLOG10E = exports.createLOG10E = /* #__PURE__ */recreateFactory('LOG10E', ['config', '?BigNumber'], _ref10 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref10;
|
||||
return config.number === 'BigNumber' ? new BigNumber(1).div(new BigNumber(10).ln()) : Math.LOG10E;
|
||||
});
|
||||
const createSQRT1_2 = exports.createSQRT1_2 = /* #__PURE__ */recreateFactory(
|
||||
// eslint-disable-line camelcase
|
||||
'SQRT1_2', ['config', '?BigNumber'], _ref11 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref11;
|
||||
return config.number === 'BigNumber' ? new BigNumber('0.5').sqrt() : Math.SQRT1_2;
|
||||
});
|
||||
const createSQRT2 = exports.createSQRT2 = /* #__PURE__ */recreateFactory('SQRT2', ['config', '?BigNumber'], _ref12 => {
|
||||
let {
|
||||
config,
|
||||
BigNumber
|
||||
} = _ref12;
|
||||
return config.number === 'BigNumber' ? new BigNumber(2).sqrt() : Math.SQRT2;
|
||||
});
|
||||
const createI = exports.createI = /* #__PURE__ */recreateFactory('i', ['Complex'], _ref13 => {
|
||||
let {
|
||||
Complex
|
||||
} = _ref13;
|
||||
return Complex.I;
|
||||
});
|
||||
|
||||
// for backward compatibility with v5
|
||||
const createUppercasePi = exports.createUppercasePi = /* #__PURE__ */(0, _factory.factory)('PI', ['pi'], _ref14 => {
|
||||
let {
|
||||
pi
|
||||
} = _ref14;
|
||||
return pi;
|
||||
});
|
||||
const createUppercaseE = exports.createUppercaseE = /* #__PURE__ */(0, _factory.factory)('E', ['e'], _ref15 => {
|
||||
let {
|
||||
e
|
||||
} = _ref15;
|
||||
return e;
|
||||
});
|
||||
const createVersion = exports.createVersion = /* #__PURE__ */(0, _factory.factory)('version', [], () => _version.version);
|
||||
|
||||
// helper function to create a factory with a flag recreateOnConfigChange
|
||||
// idea: allow passing optional properties to be attached to the factory function as 4th argument?
|
||||
function recreateFactory(name, dependencies, create) {
|
||||
return (0, _factory.factory)(name, dependencies, create, {
|
||||
recreateOnConfigChange: true
|
||||
});
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.DEFAULT_CONFIG = void 0;
|
||||
const DEFAULT_CONFIG = exports.DEFAULT_CONFIG = {
|
||||
// minimum relative difference between two compared values,
|
||||
// used by all comparison functions
|
||||
relTol: 1e-12,
|
||||
// minimum absolute difference between two compared values,
|
||||
// used by all comparison functions
|
||||
absTol: 1e-15,
|
||||
// type of default matrix output. Choose 'matrix' (default) or 'array'
|
||||
matrix: 'Matrix',
|
||||
// type of default number output. Choose 'number' (default) 'BigNumber', 'bigint', or 'Fraction'
|
||||
number: 'number',
|
||||
// type of fallback used for config { number: 'bigint' } when a value cannot be represented
|
||||
// in the configured numeric type. Choose 'number' (default) or 'BigNumber'.
|
||||
numberFallback: 'number',
|
||||
// number of significant digits in BigNumbers
|
||||
precision: 64,
|
||||
// predictable output type of functions. When true, output type depends only
|
||||
// on the input types. When false (default), output type can vary depending
|
||||
// on input values. For example `math.sqrt(-4)` returns `complex('2i')` when
|
||||
// predictable is false, and returns `NaN` when true.
|
||||
predictable: false,
|
||||
// random seed for seeded pseudo random number generation
|
||||
// null = randomly seed
|
||||
randomSeed: null
|
||||
};
|
||||
+213
@@ -0,0 +1,213 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.create = create;
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
var _typedFunction = _interopRequireDefault(require("typed-function"));
|
||||
var _ArgumentsError = require("../error/ArgumentsError.js");
|
||||
var _DimensionError = require("../error/DimensionError.js");
|
||||
var _IndexError = require("../error/IndexError.js");
|
||||
var _factory = require("../utils/factory.js");
|
||||
var _is = require("../utils/is.js");
|
||||
var _object = require("../utils/object.js");
|
||||
var emitter = _interopRequireWildcard(require("./../utils/emitter.js"));
|
||||
var _config = require("./config.js");
|
||||
var _config2 = require("./function/config.js");
|
||||
var _import = require("./function/import.js");
|
||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||||
/**
|
||||
* Create a mathjs instance from given factory functions and optionally config
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* const mathjs1 = create({ createAdd, createMultiply, ...})
|
||||
* const config = { number: 'BigNumber' }
|
||||
* const mathjs2 = create(all, config)
|
||||
*
|
||||
* @param {Object} [factories] An object with factory functions
|
||||
* The object can contain nested objects,
|
||||
* all nested objects will be flattened.
|
||||
* @param {Object} [config] Available options:
|
||||
* {number} relTol
|
||||
* Minimum relative difference between two
|
||||
* compared values, used by all comparison functions.
|
||||
* {number} absTol
|
||||
* Minimum absolute difference between two
|
||||
* compared values, used by all comparison functions.
|
||||
* {string} matrix
|
||||
* A string 'Matrix' (default) or 'Array'.
|
||||
* {string} number
|
||||
* A string 'number' (default), 'BigNumber', or 'Fraction'
|
||||
* {number} precision
|
||||
* The number of significant digits for BigNumbers.
|
||||
* Not applicable for Numbers.
|
||||
* {boolean} predictable
|
||||
* Predictable output type of functions. When true,
|
||||
* output type depends only on the input types. When
|
||||
* false (default), output type can vary depending
|
||||
* on input values. For example `math.sqrt(-4)`
|
||||
* returns `complex('2i')` when predictable is false, and
|
||||
* returns `NaN` when true.
|
||||
* {string} randomSeed
|
||||
* Random seed for seeded pseudo random number generator.
|
||||
* Set to null to randomly seed.
|
||||
* @returns {Object} Returns a bare-bone math.js instance containing
|
||||
* functions:
|
||||
* - `import` to add new functions
|
||||
* - `config` to change configuration
|
||||
* - `on`, `off`, `once`, `emit` for events
|
||||
*/
|
||||
function create(factories, config) {
|
||||
const configInternal = (0, _extends2.default)({}, _config.DEFAULT_CONFIG, config);
|
||||
|
||||
// simple test for ES5 support
|
||||
if (typeof Object.create !== 'function') {
|
||||
throw new Error('ES5 not supported by this JavaScript engine. ' + 'Please load the es5-shim and es5-sham library for compatibility.');
|
||||
}
|
||||
|
||||
// create the mathjs instance
|
||||
const math = emitter.mixin({
|
||||
// only here for backward compatibility for legacy factory functions
|
||||
isNumber: _is.isNumber,
|
||||
isComplex: _is.isComplex,
|
||||
isBigNumber: _is.isBigNumber,
|
||||
isBigInt: _is.isBigInt,
|
||||
isFraction: _is.isFraction,
|
||||
isUnit: _is.isUnit,
|
||||
isString: _is.isString,
|
||||
isArray: _is.isArray,
|
||||
isMatrix: _is.isMatrix,
|
||||
isCollection: _is.isCollection,
|
||||
isDenseMatrix: _is.isDenseMatrix,
|
||||
isSparseMatrix: _is.isSparseMatrix,
|
||||
isRange: _is.isRange,
|
||||
isIndex: _is.isIndex,
|
||||
isBoolean: _is.isBoolean,
|
||||
isResultSet: _is.isResultSet,
|
||||
isHelp: _is.isHelp,
|
||||
isFunction: _is.isFunction,
|
||||
isDate: _is.isDate,
|
||||
isRegExp: _is.isRegExp,
|
||||
isObject: _is.isObject,
|
||||
isMap: _is.isMap,
|
||||
isPartitionedMap: _is.isPartitionedMap,
|
||||
isObjectWrappingMap: _is.isObjectWrappingMap,
|
||||
isNull: _is.isNull,
|
||||
isUndefined: _is.isUndefined,
|
||||
isAccessorNode: _is.isAccessorNode,
|
||||
isArrayNode: _is.isArrayNode,
|
||||
isAssignmentNode: _is.isAssignmentNode,
|
||||
isBlockNode: _is.isBlockNode,
|
||||
isConditionalNode: _is.isConditionalNode,
|
||||
isConstantNode: _is.isConstantNode,
|
||||
isFunctionAssignmentNode: _is.isFunctionAssignmentNode,
|
||||
isFunctionNode: _is.isFunctionNode,
|
||||
isIndexNode: _is.isIndexNode,
|
||||
isNode: _is.isNode,
|
||||
isObjectNode: _is.isObjectNode,
|
||||
isOperatorNode: _is.isOperatorNode,
|
||||
isParenthesisNode: _is.isParenthesisNode,
|
||||
isRangeNode: _is.isRangeNode,
|
||||
isRelationalNode: _is.isRelationalNode,
|
||||
isSymbolNode: _is.isSymbolNode,
|
||||
isChain: _is.isChain
|
||||
});
|
||||
|
||||
// load config function and apply provided config
|
||||
math.config = (0, _config2.configFactory)(configInternal, math.emit);
|
||||
math.expression = {
|
||||
transform: {},
|
||||
mathWithTransform: {
|
||||
config: math.config
|
||||
}
|
||||
};
|
||||
|
||||
// cached factories and instances used by function load
|
||||
const legacyFactories = [];
|
||||
const legacyInstances = [];
|
||||
|
||||
/**
|
||||
* Load a function or data type from a factory.
|
||||
* If the function or data type already exists, the existing instance is
|
||||
* returned.
|
||||
* @param {Function} factory
|
||||
* @returns {*}
|
||||
*/
|
||||
function load(factory) {
|
||||
if ((0, _factory.isFactory)(factory)) {
|
||||
return factory(math);
|
||||
}
|
||||
const firstProperty = factory[Object.keys(factory)[0]];
|
||||
if ((0, _factory.isFactory)(firstProperty)) {
|
||||
return firstProperty(math);
|
||||
}
|
||||
if (!(0, _object.isLegacyFactory)(factory)) {
|
||||
console.warn('Factory object with properties `type`, `name`, and `factory` expected', factory);
|
||||
throw new Error('Factory object with properties `type`, `name`, and `factory` expected');
|
||||
}
|
||||
const index = legacyFactories.indexOf(factory);
|
||||
let instance;
|
||||
if (index === -1) {
|
||||
// doesn't yet exist
|
||||
if (factory.math === true) {
|
||||
// pass with math namespace
|
||||
instance = factory.factory(math.type, configInternal, load, math.typed, math);
|
||||
} else {
|
||||
instance = factory.factory(math.type, configInternal, load, math.typed);
|
||||
}
|
||||
|
||||
// append to the cache
|
||||
legacyFactories.push(factory);
|
||||
legacyInstances.push(instance);
|
||||
} else {
|
||||
// already existing function, return the cached instance
|
||||
instance = legacyInstances[index];
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
const importedFactories = {};
|
||||
|
||||
// load the import function
|
||||
function lazyTyped() {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
return math.typed.apply(math.typed, args);
|
||||
}
|
||||
lazyTyped.isTypedFunction = _typedFunction.default.isTypedFunction;
|
||||
const internalImport = (0, _import.importFactory)(lazyTyped, load, math, importedFactories);
|
||||
math.import = internalImport;
|
||||
|
||||
// listen for changes in config, import all functions again when changed
|
||||
// TODO: move this listener into the import function?
|
||||
math.on('config', () => {
|
||||
Object.values(importedFactories).forEach(factory => {
|
||||
if (factory && factory.meta && factory.meta.recreateOnConfigChange) {
|
||||
// FIXME: only re-create when the current instance is the same as was initially created
|
||||
// FIXME: delete the functions/constants before importing them again?
|
||||
internalImport(factory, {
|
||||
override: true
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// the create function exposed on the mathjs instance is bound to
|
||||
// the factory functions passed before
|
||||
math.create = create.bind(null, factories);
|
||||
|
||||
// export factory function
|
||||
math.factory = _factory.factory;
|
||||
|
||||
// import the factory functions like createAdd as an array instead of object,
|
||||
// else they will get a different naming (`createAdd` instead of `add`).
|
||||
math.import(Object.values((0, _object.deepFlatten)(factories)));
|
||||
math.ArgumentsError = _ArgumentsError.ArgumentsError;
|
||||
math.DimensionError = _DimensionError.DimensionError;
|
||||
math.IndexError = _IndexError.IndexError;
|
||||
return math;
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.NUMBER_OPTIONS = exports.MATRIX_OPTIONS = void 0;
|
||||
exports.configFactory = configFactory;
|
||||
var _object = require("../../utils/object.js");
|
||||
var _config2 = require("../config.js");
|
||||
const MATRIX_OPTIONS = exports.MATRIX_OPTIONS = ['Matrix', 'Array']; // valid values for option matrix
|
||||
const NUMBER_OPTIONS = exports.NUMBER_OPTIONS = ['number', 'BigNumber', 'Fraction']; // valid values for option number
|
||||
|
||||
function configFactory(config, emit) {
|
||||
/**
|
||||
* Set configuration options for math.js, and get current options.
|
||||
* Will emit a 'config' event, with arguments (curr, prev, changes).
|
||||
*
|
||||
* This function is only available on a mathjs instance created using `create`.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
* math.config(config: Object): Object
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
*
|
||||
* import { create, all } from 'mathjs'
|
||||
*
|
||||
* // create a mathjs instance
|
||||
* const math = create(all)
|
||||
*
|
||||
* math.config().number // outputs 'number'
|
||||
* math.evaluate('0.4') // outputs number 0.4
|
||||
* math.config({number: 'Fraction'})
|
||||
* math.evaluate('0.4') // outputs Fraction 2/5
|
||||
*
|
||||
* @param {Object} [options] Available options:
|
||||
* {number} relTol
|
||||
* Minimum relative difference between two
|
||||
* compared values, used by all comparison functions.
|
||||
* {number} absTol
|
||||
* Minimum absolute difference between two
|
||||
* compared values, used by all comparison functions.
|
||||
* {string} matrix
|
||||
* A string 'Matrix' (default) or 'Array'.
|
||||
* {string} number
|
||||
* A string 'number' (default), 'BigNumber', 'bigint', or 'Fraction'
|
||||
* {number} precision
|
||||
* The number of significant digits for BigNumbers.
|
||||
* Not applicable for Numbers.
|
||||
* {string} parenthesis
|
||||
* How to display parentheses in LaTeX and string
|
||||
* output.
|
||||
* {string} randomSeed
|
||||
* Random seed for seeded pseudo random number generator.
|
||||
* Set to null to randomly seed.
|
||||
* @return {Object} Returns the current configuration
|
||||
*/
|
||||
function _config(options) {
|
||||
if (options) {
|
||||
if (options.epsilon !== undefined) {
|
||||
// this if is only for backwards compatibility, it can be removed in the future.
|
||||
console.warn('Warning: The configuration option "epsilon" is deprecated. Use "relTol" and "absTol" instead.');
|
||||
const optionsFix = (0, _object.clone)(options);
|
||||
optionsFix.relTol = options.epsilon;
|
||||
optionsFix.absTol = options.epsilon * 1e-3;
|
||||
delete optionsFix.epsilon;
|
||||
return _config(optionsFix);
|
||||
}
|
||||
const prev = (0, _object.clone)(config);
|
||||
|
||||
// validate some of the options
|
||||
validateOption(options, 'matrix', MATRIX_OPTIONS);
|
||||
validateOption(options, 'number', NUMBER_OPTIONS);
|
||||
|
||||
// merge options
|
||||
(0, _object.deepExtend)(config, options);
|
||||
const curr = (0, _object.clone)(config);
|
||||
const changes = (0, _object.clone)(options);
|
||||
|
||||
// emit 'config' event
|
||||
emit('config', curr, prev, changes);
|
||||
return curr;
|
||||
} else {
|
||||
return (0, _object.clone)(config);
|
||||
}
|
||||
}
|
||||
|
||||
// attach the valid options to the function so they can be extended
|
||||
_config.MATRIX_OPTIONS = MATRIX_OPTIONS;
|
||||
_config.NUMBER_OPTIONS = NUMBER_OPTIONS;
|
||||
|
||||
// attach the config properties as readonly properties to the config function
|
||||
Object.keys(_config2.DEFAULT_CONFIG).forEach(key => {
|
||||
Object.defineProperty(_config, key, {
|
||||
get: () => config[key],
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
});
|
||||
return _config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate an option
|
||||
* @param {Object} options Object with options
|
||||
* @param {string} name Name of the option to validate
|
||||
* @param {Array.<string>} values Array with valid values for this option
|
||||
*/
|
||||
function validateOption(options, name, values) {
|
||||
if (options[name] !== undefined && !values.includes(options[name])) {
|
||||
// unknown value
|
||||
console.warn('Warning: Unknown value "' + options[name] + '" for configuration option "' + name + '". ' + 'Available options: ' + values.map(value => JSON.stringify(value)).join(', ') + '.');
|
||||
}
|
||||
}
|
||||
+331
@@ -0,0 +1,331 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.importFactory = importFactory;
|
||||
var _is = require("../../utils/is.js");
|
||||
var _factory = require("../../utils/factory.js");
|
||||
var _object = require("../../utils/object.js");
|
||||
var _ArgumentsError = require("../../error/ArgumentsError.js");
|
||||
function importFactory(typed, load, math, importedFactories) {
|
||||
/**
|
||||
* Import functions from an object or a module.
|
||||
*
|
||||
* This function is only available on a mathjs instance created using `create`.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
* math.import(functions)
|
||||
* math.import(functions, options)
|
||||
*
|
||||
* Where:
|
||||
*
|
||||
* - `functions: Object`
|
||||
* An object with functions or factories to be imported.
|
||||
* - `options: Object` An object with import options. Available options:
|
||||
* - `override: boolean`
|
||||
* If true, existing functions will be overwritten. False by default.
|
||||
* - `silent: boolean`
|
||||
* If true, the function will not throw errors on duplicates or invalid
|
||||
* types. False by default.
|
||||
* - `wrap: boolean`
|
||||
* If true, the functions will be wrapped in a wrapper function
|
||||
* which converts data types like Matrix to primitive data types like Array.
|
||||
* The wrapper is needed when extending math.js with libraries which do not
|
||||
* support these data type. False by default.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* import { create, all } from 'mathjs'
|
||||
* import * as numbers from 'numbers'
|
||||
*
|
||||
* // create a mathjs instance
|
||||
* const math = create(all)
|
||||
*
|
||||
* // define new functions and variables
|
||||
* math.import({
|
||||
* myvalue: 42,
|
||||
* hello: function (name) {
|
||||
* return 'hello, ' + name + '!'
|
||||
* }
|
||||
* })
|
||||
*
|
||||
* // use the imported function and variable
|
||||
* math.myvalue * 2 // 84
|
||||
* math.hello('user') // 'hello, user!'
|
||||
*
|
||||
* // import the npm module 'numbers'
|
||||
* // (must be installed first with `npm install numbers`)
|
||||
* math.import(numbers, {wrap: true})
|
||||
*
|
||||
* math.fibonacci(7) // returns 13
|
||||
*
|
||||
* @param {Object | Array} functions Object with functions to be imported.
|
||||
* @param {Object} [options] Import options.
|
||||
*/
|
||||
function mathImport(functions, options) {
|
||||
const num = arguments.length;
|
||||
if (num !== 1 && num !== 2) {
|
||||
throw new _ArgumentsError.ArgumentsError('import', num, 1, 2);
|
||||
}
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
function flattenImports(flatValues, value, name) {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach(item => flattenImports(flatValues, item));
|
||||
} else if (typeof value === 'object') {
|
||||
for (const name in value) {
|
||||
if ((0, _object.hasOwnProperty)(value, name)) {
|
||||
flattenImports(flatValues, value[name], name);
|
||||
}
|
||||
}
|
||||
} else if ((0, _factory.isFactory)(value) || name !== undefined) {
|
||||
const flatName = (0, _factory.isFactory)(value) ? isTransformFunctionFactory(value) ? value.fn + '.transform' // TODO: this is ugly
|
||||
: value.fn : name;
|
||||
|
||||
// we allow importing the same function twice if it points to the same implementation
|
||||
if ((0, _object.hasOwnProperty)(flatValues, flatName) && flatValues[flatName] !== value && !options.silent) {
|
||||
throw new Error('Cannot import "' + flatName + '" twice');
|
||||
}
|
||||
flatValues[flatName] = value;
|
||||
} else {
|
||||
if (!options.silent) {
|
||||
throw new TypeError('Factory, Object, or Array expected');
|
||||
}
|
||||
}
|
||||
}
|
||||
const flatValues = {};
|
||||
flattenImports(flatValues, functions);
|
||||
for (const name in flatValues) {
|
||||
if ((0, _object.hasOwnProperty)(flatValues, name)) {
|
||||
// console.log('import', name)
|
||||
const value = flatValues[name];
|
||||
if ((0, _factory.isFactory)(value)) {
|
||||
// we ignore name here and enforce the name of the factory
|
||||
// maybe at some point we do want to allow overriding it
|
||||
// in that case we can implement an option overrideFactoryNames: true
|
||||
_importFactory(value, options);
|
||||
} else if (isSupportedType(value)) {
|
||||
_import(name, value, options);
|
||||
} else {
|
||||
if (!options.silent) {
|
||||
throw new TypeError('Factory, Object, or Array expected');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a property to the math namespace
|
||||
* @param {string} name
|
||||
* @param {*} value
|
||||
* @param {Object} options See import for a description of the options
|
||||
* @private
|
||||
*/
|
||||
function _import(name, value, options) {
|
||||
// TODO: refactor this function, it's to complicated and contains duplicate code
|
||||
if (options.wrap && typeof value === 'function') {
|
||||
// create a wrapper around the function
|
||||
value = _wrap(value);
|
||||
}
|
||||
|
||||
// turn a plain function with a typed-function signature into a typed-function
|
||||
if (hasTypedFunctionSignature(value)) {
|
||||
value = typed(name, {
|
||||
[value.signature]: value
|
||||
});
|
||||
}
|
||||
if (typed.isTypedFunction(math[name]) && typed.isTypedFunction(value)) {
|
||||
if (options.override) {
|
||||
// give the typed function the right name
|
||||
value = typed(name, value.signatures);
|
||||
} else {
|
||||
// merge the existing and typed function
|
||||
value = typed(math[name], value);
|
||||
}
|
||||
math[name] = value;
|
||||
delete importedFactories[name];
|
||||
_importTransform(name, value);
|
||||
math.emit('import', name, function resolver() {
|
||||
return value;
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (math[name] === undefined || options.override) {
|
||||
math[name] = value;
|
||||
delete importedFactories[name];
|
||||
_importTransform(name, value);
|
||||
math.emit('import', name, function resolver() {
|
||||
return value;
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!options.silent) {
|
||||
throw new Error('Cannot import "' + name + '": already exists');
|
||||
}
|
||||
}
|
||||
function _importTransform(name, value) {
|
||||
if (value && typeof value.transform === 'function') {
|
||||
math.expression.transform[name] = value.transform;
|
||||
if (allowedInExpressions(name)) {
|
||||
math.expression.mathWithTransform[name] = value.transform;
|
||||
}
|
||||
} else {
|
||||
// remove existing transform
|
||||
delete math.expression.transform[name];
|
||||
if (allowedInExpressions(name)) {
|
||||
math.expression.mathWithTransform[name] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
function _deleteTransform(name) {
|
||||
delete math.expression.transform[name];
|
||||
if (allowedInExpressions(name)) {
|
||||
math.expression.mathWithTransform[name] = math[name];
|
||||
} else {
|
||||
delete math.expression.mathWithTransform[name];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a wrapper a round an function which converts the arguments
|
||||
* to their primitive values (like convert a Matrix to Array)
|
||||
* @param {Function} fn
|
||||
* @return {Function} Returns the wrapped function
|
||||
* @private
|
||||
*/
|
||||
function _wrap(fn) {
|
||||
const wrapper = function wrapper() {
|
||||
const args = [];
|
||||
for (let i = 0, len = arguments.length; i < len; i++) {
|
||||
const arg = arguments[i];
|
||||
args[i] = arg && arg.valueOf();
|
||||
}
|
||||
return fn.apply(math, args);
|
||||
};
|
||||
if (fn.transform) {
|
||||
wrapper.transform = fn.transform;
|
||||
}
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Import an instance of a factory into math.js
|
||||
* @param {function(scope: object)} factory
|
||||
* @param {Object} options See import for a description of the options
|
||||
* @param {string} [name=factory.name] Optional custom name
|
||||
* @private
|
||||
*/
|
||||
function _importFactory(factory, options) {
|
||||
let name = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : factory.fn;
|
||||
if (name.includes('.')) {
|
||||
throw new Error('Factory name should not contain a nested path. ' + 'Name: ' + JSON.stringify(name));
|
||||
}
|
||||
const namespace = isTransformFunctionFactory(factory) ? math.expression.transform : math;
|
||||
const existingTransform = name in math.expression.transform;
|
||||
const existing = (0, _object.hasOwnProperty)(namespace, name) ? namespace[name] : undefined;
|
||||
const resolver = function () {
|
||||
// collect all dependencies, handle finding both functions and classes and other special cases
|
||||
const dependencies = {};
|
||||
factory.dependencies.map(_factory.stripOptionalNotation).forEach(dependency => {
|
||||
if (dependency.includes('.')) {
|
||||
throw new Error('Factory dependency should not contain a nested path. ' + 'Name: ' + JSON.stringify(dependency));
|
||||
}
|
||||
if (dependency === 'math') {
|
||||
dependencies.math = math;
|
||||
} else if (dependency === 'mathWithTransform') {
|
||||
dependencies.mathWithTransform = math.expression.mathWithTransform;
|
||||
} else if (dependency === 'classes') {
|
||||
// special case for json reviver
|
||||
dependencies.classes = math;
|
||||
} else {
|
||||
dependencies[dependency] = math[dependency];
|
||||
}
|
||||
});
|
||||
const instance = /* #__PURE__ */factory(dependencies);
|
||||
if (instance && typeof instance.transform === 'function') {
|
||||
throw new Error('Transforms cannot be attached to factory functions. ' + 'Please create a separate function for it with export const path = "expression.transform"');
|
||||
}
|
||||
if (existing === undefined || options.override) {
|
||||
return instance;
|
||||
}
|
||||
if (typed.isTypedFunction(existing) && typed.isTypedFunction(instance)) {
|
||||
// merge the existing and new typed function
|
||||
return typed(existing, instance);
|
||||
}
|
||||
if (options.silent) {
|
||||
// keep existing, ignore imported function
|
||||
return existing;
|
||||
} else {
|
||||
throw new Error('Cannot import "' + name + '": already exists');
|
||||
}
|
||||
};
|
||||
|
||||
// TODO: add unit test with non-lazy factory
|
||||
if (!factory.meta || factory.meta.lazy !== false) {
|
||||
(0, _object.lazy)(namespace, name, resolver);
|
||||
|
||||
// FIXME: remove the `if (existing &&` condition again. Can we make sure subset is loaded before subset.transform? (Name collision, and no dependencies between the two)
|
||||
if (existing && existingTransform) {
|
||||
_deleteTransform(name);
|
||||
} else {
|
||||
if (isTransformFunctionFactory(factory) || factoryAllowedInExpressions(factory)) {
|
||||
(0, _object.lazy)(math.expression.mathWithTransform, name, () => namespace[name]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
namespace[name] = resolver();
|
||||
|
||||
// FIXME: remove the `if (existing &&` condition again. Can we make sure subset is loaded before subset.transform? (Name collision, and no dependencies between the two)
|
||||
if (existing && existingTransform) {
|
||||
_deleteTransform(name);
|
||||
} else {
|
||||
if (isTransformFunctionFactory(factory) || factoryAllowedInExpressions(factory)) {
|
||||
(0, _object.lazy)(math.expression.mathWithTransform, name, () => namespace[name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: improve factories, store a list with imports instead which can be re-played
|
||||
importedFactories[name] = factory;
|
||||
math.emit('import', name, resolver);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether given object is a type which can be imported
|
||||
* @param {Function | number | string | boolean | null | Unit | Complex} object
|
||||
* @return {boolean}
|
||||
* @private
|
||||
*/
|
||||
function isSupportedType(object) {
|
||||
return typeof object === 'function' || typeof object === 'number' || typeof object === 'string' || typeof object === 'boolean' || object === null || (0, _is.isUnit)(object) || (0, _is.isComplex)(object) || (0, _is.isBigNumber)(object) || (0, _is.isFraction)(object) || (0, _is.isMatrix)(object) || Array.isArray(object);
|
||||
}
|
||||
function hasTypedFunctionSignature(fn) {
|
||||
return typeof fn === 'function' && typeof fn.signature === 'string';
|
||||
}
|
||||
function allowedInExpressions(name) {
|
||||
return !(0, _object.hasOwnProperty)(unsafe, name);
|
||||
}
|
||||
function factoryAllowedInExpressions(factory) {
|
||||
return !factory.fn.includes('.') &&
|
||||
// FIXME: make checking on path redundant, check on meta data instead
|
||||
!(0, _object.hasOwnProperty)(unsafe, factory.fn) && (!factory.meta || !factory.meta.isClass);
|
||||
}
|
||||
function isTransformFunctionFactory(factory) {
|
||||
return factory !== undefined && factory.meta !== undefined && factory.meta.isTransformFunction === true || false;
|
||||
}
|
||||
|
||||
// namespaces and functions not available in the parser for safety reasons
|
||||
const unsafe = {
|
||||
expression: true,
|
||||
type: true,
|
||||
docs: true,
|
||||
error: true,
|
||||
json: true,
|
||||
chain: true // chain method not supported. Note that there is a unit chain too.
|
||||
};
|
||||
return mathImport;
|
||||
}
|
||||
+461
@@ -0,0 +1,461 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createTyped = void 0;
|
||||
var _typedFunction = _interopRequireDefault(require("typed-function"));
|
||||
var _factory = require("../../utils/factory.js");
|
||||
var _is = require("../../utils/is.js");
|
||||
var _number = require("../../utils/number.js");
|
||||
/**
|
||||
* Create a typed-function which checks the types of the arguments and
|
||||
* can match them against multiple provided signatures. The typed-function
|
||||
* automatically converts inputs in order to find a matching signature.
|
||||
* Typed functions throw informative errors in case of wrong input arguments.
|
||||
*
|
||||
* See the library [typed-function](https://github.com/josdejong/typed-function)
|
||||
* for detailed documentation.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
* math.typed(name, signatures) : function
|
||||
* math.typed(signatures) : function
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // create a typed function with multiple types per argument (type union)
|
||||
* const fn2 = typed({
|
||||
* 'number | boolean': function (b) {
|
||||
* return 'b is a number or boolean'
|
||||
* },
|
||||
* 'string, number | boolean': function (a, b) {
|
||||
* return 'a is a string, b is a number or boolean'
|
||||
* }
|
||||
* })
|
||||
*
|
||||
* // create a typed function with an any type argument
|
||||
* const log = typed({
|
||||
* 'string, any': function (event, data) {
|
||||
* console.log('event: ' + event + ', data: ' + JSON.stringify(data))
|
||||
* }
|
||||
* })
|
||||
*
|
||||
* @param {string} [name] Optional name for the typed-function
|
||||
* @param {Object<string, function>} signatures Object with one or multiple function signatures
|
||||
* @returns {function} The created typed-function.
|
||||
*/
|
||||
|
||||
// returns a new instance of typed-function
|
||||
let _createTyped = function () {
|
||||
// initially, return the original instance of typed-function
|
||||
// consecutively, return a new instance from typed.create.
|
||||
_createTyped = _typedFunction.default.create;
|
||||
return _typedFunction.default;
|
||||
};
|
||||
const dependencies = ['?BigNumber', '?Complex', '?DenseMatrix', '?Fraction'];
|
||||
|
||||
/**
|
||||
* Factory function for creating a new typed instance
|
||||
* @param {Object} dependencies Object with data types like Complex and BigNumber
|
||||
* @returns {Function}
|
||||
*/
|
||||
const createTyped = exports.createTyped = /* #__PURE__ */(0, _factory.factory)('typed', dependencies, function createTyped(_ref) {
|
||||
let {
|
||||
BigNumber,
|
||||
Complex,
|
||||
DenseMatrix,
|
||||
Fraction
|
||||
} = _ref;
|
||||
// TODO: typed-function must be able to silently ignore signatures with unknown data types
|
||||
|
||||
// get a new instance of typed-function
|
||||
const typed = _createTyped();
|
||||
|
||||
// define all types. The order of the types determines in which order function
|
||||
// arguments are type-checked (so for performance it's important to put the
|
||||
// most used types first).
|
||||
typed.clear();
|
||||
typed.addTypes([{
|
||||
name: 'number',
|
||||
test: _is.isNumber
|
||||
}, {
|
||||
name: 'Complex',
|
||||
test: _is.isComplex
|
||||
}, {
|
||||
name: 'BigNumber',
|
||||
test: _is.isBigNumber
|
||||
}, {
|
||||
name: 'bigint',
|
||||
test: _is.isBigInt
|
||||
}, {
|
||||
name: 'Fraction',
|
||||
test: _is.isFraction
|
||||
}, {
|
||||
name: 'Unit',
|
||||
test: _is.isUnit
|
||||
},
|
||||
// The following type matches a valid variable name, i.e., an alphanumeric
|
||||
// string starting with an alphabetic character. It is used (at least)
|
||||
// in the definition of the derivative() function, as the argument telling
|
||||
// what to differentiate over must (currently) be a variable.
|
||||
// TODO: deprecate the identifier type (it's not used anymore, see https://github.com/josdejong/mathjs/issues/3253)
|
||||
{
|
||||
name: 'identifier',
|
||||
test: s => _is.isString && /^[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{1031F}\u{1032D}-\u{10340}\u{10342}-\u{10349}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{10400}-\u{1049D}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{Line truncated
|
||||
}, {
|
||||
name: 'string',
|
||||
test: _is.isString
|
||||
}, {
|
||||
name: 'Chain',
|
||||
test: _is.isChain
|
||||
}, {
|
||||
name: 'Array',
|
||||
test: _is.isArray
|
||||
}, {
|
||||
name: 'Matrix',
|
||||
test: _is.isMatrix
|
||||
}, {
|
||||
name: 'DenseMatrix',
|
||||
test: _is.isDenseMatrix
|
||||
}, {
|
||||
name: 'SparseMatrix',
|
||||
test: _is.isSparseMatrix
|
||||
}, {
|
||||
name: 'Range',
|
||||
test: _is.isRange
|
||||
}, {
|
||||
name: 'Index',
|
||||
test: _is.isIndex
|
||||
}, {
|
||||
name: 'boolean',
|
||||
test: _is.isBoolean
|
||||
}, {
|
||||
name: 'ResultSet',
|
||||
test: _is.isResultSet
|
||||
}, {
|
||||
name: 'Help',
|
||||
test: _is.isHelp
|
||||
}, {
|
||||
name: 'function',
|
||||
test: _is.isFunction
|
||||
}, {
|
||||
name: 'Date',
|
||||
test: _is.isDate
|
||||
}, {
|
||||
name: 'RegExp',
|
||||
test: _is.isRegExp
|
||||
}, {
|
||||
name: 'null',
|
||||
test: _is.isNull
|
||||
}, {
|
||||
name: 'undefined',
|
||||
test: _is.isUndefined
|
||||
}, {
|
||||
name: 'AccessorNode',
|
||||
test: _is.isAccessorNode
|
||||
}, {
|
||||
name: 'ArrayNode',
|
||||
test: _is.isArrayNode
|
||||
}, {
|
||||
name: 'AssignmentNode',
|
||||
test: _is.isAssignmentNode
|
||||
}, {
|
||||
name: 'BlockNode',
|
||||
test: _is.isBlockNode
|
||||
}, {
|
||||
name: 'ConditionalNode',
|
||||
test: _is.isConditionalNode
|
||||
}, {
|
||||
name: 'ConstantNode',
|
||||
test: _is.isConstantNode
|
||||
}, {
|
||||
name: 'FunctionNode',
|
||||
test: _is.isFunctionNode
|
||||
}, {
|
||||
name: 'FunctionAssignmentNode',
|
||||
test: _is.isFunctionAssignmentNode
|
||||
}, {
|
||||
name: 'IndexNode',
|
||||
test: _is.isIndexNode
|
||||
}, {
|
||||
name: 'Node',
|
||||
test: _is.isNode
|
||||
}, {
|
||||
name: 'ObjectNode',
|
||||
test: _is.isObjectNode
|
||||
}, {
|
||||
name: 'OperatorNode',
|
||||
test: _is.isOperatorNode
|
||||
}, {
|
||||
name: 'ParenthesisNode',
|
||||
test: _is.isParenthesisNode
|
||||
}, {
|
||||
name: 'RangeNode',
|
||||
test: _is.isRangeNode
|
||||
}, {
|
||||
name: 'RelationalNode',
|
||||
test: _is.isRelationalNode
|
||||
}, {
|
||||
name: 'SymbolNode',
|
||||
test: _is.isSymbolNode
|
||||
}, {
|
||||
name: 'Map',
|
||||
test: _is.isMap
|
||||
}, {
|
||||
name: 'Object',
|
||||
test: _is.isObject
|
||||
} // order 'Object' last, it matches on other classes too
|
||||
]);
|
||||
typed.addConversions([{
|
||||
from: 'number',
|
||||
to: 'BigNumber',
|
||||
convert: function (x) {
|
||||
if (!BigNumber) {
|
||||
throwNoBignumber(x);
|
||||
}
|
||||
|
||||
// note: conversion from number to BigNumber can fail if x has >15 digits
|
||||
if ((0, _number.digits)(x) > 15) {
|
||||
throw new TypeError('Cannot implicitly convert a number with >15 significant digits to BigNumber ' + '(value: ' + x + '). ' + 'Use function bignumber(x) to convert to BigNumber.');
|
||||
}
|
||||
return new BigNumber(x);
|
||||
}
|
||||
}, {
|
||||
from: 'number',
|
||||
to: 'Complex',
|
||||
convert: function (x) {
|
||||
if (!Complex) {
|
||||
throwNoComplex(x);
|
||||
}
|
||||
return new Complex(x, 0);
|
||||
}
|
||||
}, {
|
||||
from: 'BigNumber',
|
||||
to: 'Complex',
|
||||
convert: function (x) {
|
||||
if (!Complex) {
|
||||
throwNoComplex(x);
|
||||
}
|
||||
return new Complex(x.toNumber(), 0);
|
||||
}
|
||||
}, {
|
||||
from: 'bigint',
|
||||
to: 'number',
|
||||
convert: function (x) {
|
||||
if (x > Number.MAX_SAFE_INTEGER) {
|
||||
throw new TypeError('Cannot implicitly convert bigint to number: ' + 'value exceeds the max safe integer value (value: ' + x + ')');
|
||||
}
|
||||
return Number(x);
|
||||
}
|
||||
}, {
|
||||
from: 'bigint',
|
||||
to: 'BigNumber',
|
||||
convert: function (x) {
|
||||
if (!BigNumber) {
|
||||
throwNoBignumber(x);
|
||||
}
|
||||
return new BigNumber(x.toString());
|
||||
}
|
||||
}, {
|
||||
from: 'bigint',
|
||||
to: 'Fraction',
|
||||
convert: function (x) {
|
||||
if (!Fraction) {
|
||||
throwNoFraction(x);
|
||||
}
|
||||
return new Fraction(x.toString());
|
||||
}
|
||||
}, {
|
||||
from: 'Fraction',
|
||||
to: 'BigNumber',
|
||||
convert: function (x) {
|
||||
throw new TypeError('Cannot implicitly convert a Fraction to BigNumber or vice versa. ' + 'Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.');
|
||||
}
|
||||
}, {
|
||||
from: 'Fraction',
|
||||
to: 'Complex',
|
||||
convert: function (x) {
|
||||
if (!Complex) {
|
||||
throwNoComplex(x);
|
||||
}
|
||||
return new Complex(x.valueOf(), 0);
|
||||
}
|
||||
}, {
|
||||
from: 'number',
|
||||
to: 'Fraction',
|
||||
convert: function (x) {
|
||||
if (!Fraction) {
|
||||
throwNoFraction(x);
|
||||
}
|
||||
const f = new Fraction(x);
|
||||
if (f.valueOf() !== x) {
|
||||
throw new TypeError('Cannot implicitly convert a number to a Fraction when there will be a loss of precision ' + '(value: ' + x + '). ' + 'Use function fraction(x) to convert to Fraction.');
|
||||
}
|
||||
return f;
|
||||
}
|
||||
}, {
|
||||
// FIXME: add conversion from Fraction to number, for example for `sqrt(fraction(1,3))`
|
||||
// from: 'Fraction',
|
||||
// to: 'number',
|
||||
// convert: function (x) {
|
||||
// return x.valueOf()
|
||||
// }
|
||||
// }, {
|
||||
from: 'string',
|
||||
to: 'number',
|
||||
convert: function (x) {
|
||||
const n = Number(x);
|
||||
if (isNaN(n)) {
|
||||
throw new Error('Cannot convert "' + x + '" to a number');
|
||||
}
|
||||
return n;
|
||||
}
|
||||
}, {
|
||||
from: 'string',
|
||||
to: 'BigNumber',
|
||||
convert: function (x) {
|
||||
if (!BigNumber) {
|
||||
throwNoBignumber(x);
|
||||
}
|
||||
try {
|
||||
return new BigNumber(x);
|
||||
} catch (err) {
|
||||
throw new Error('Cannot convert "' + x + '" to BigNumber');
|
||||
}
|
||||
}
|
||||
}, {
|
||||
from: 'string',
|
||||
to: 'bigint',
|
||||
convert: function (x) {
|
||||
try {
|
||||
return BigInt(x);
|
||||
} catch (err) {
|
||||
throw new Error('Cannot convert "' + x + '" to BigInt');
|
||||
}
|
||||
}
|
||||
}, {
|
||||
from: 'string',
|
||||
to: 'Fraction',
|
||||
convert: function (x) {
|
||||
if (!Fraction) {
|
||||
throwNoFraction(x);
|
||||
}
|
||||
try {
|
||||
return new Fraction(x);
|
||||
} catch (err) {
|
||||
throw new Error('Cannot convert "' + x + '" to Fraction');
|
||||
}
|
||||
}
|
||||
}, {
|
||||
from: 'string',
|
||||
to: 'Complex',
|
||||
convert: function (x) {
|
||||
if (!Complex) {
|
||||
throwNoComplex(x);
|
||||
}
|
||||
try {
|
||||
return new Complex(x);
|
||||
} catch (err) {
|
||||
throw new Error('Cannot convert "' + x + '" to Complex');
|
||||
}
|
||||
}
|
||||
}, {
|
||||
from: 'boolean',
|
||||
to: 'number',
|
||||
convert: function (x) {
|
||||
return +x;
|
||||
}
|
||||
}, {
|
||||
from: 'boolean',
|
||||
to: 'BigNumber',
|
||||
convert: function (x) {
|
||||
if (!BigNumber) {
|
||||
throwNoBignumber(x);
|
||||
}
|
||||
return new BigNumber(+x);
|
||||
}
|
||||
}, {
|
||||
from: 'boolean',
|
||||
to: 'bigint',
|
||||
convert: function (x) {
|
||||
return BigInt(+x);
|
||||
}
|
||||
}, {
|
||||
from: 'boolean',
|
||||
to: 'Fraction',
|
||||
convert: function (x) {
|
||||
if (!Fraction) {
|
||||
throwNoFraction(x);
|
||||
}
|
||||
return new Fraction(+x);
|
||||
}
|
||||
}, {
|
||||
from: 'boolean',
|
||||
to: 'string',
|
||||
convert: function (x) {
|
||||
return String(x);
|
||||
}
|
||||
}, {
|
||||
from: 'Array',
|
||||
to: 'Matrix',
|
||||
convert: function (array) {
|
||||
if (!DenseMatrix) {
|
||||
throwNoMatrix();
|
||||
}
|
||||
return new DenseMatrix(array);
|
||||
}
|
||||
}, {
|
||||
from: 'Matrix',
|
||||
to: 'Array',
|
||||
convert: function (matrix) {
|
||||
return matrix.valueOf();
|
||||
}
|
||||
}]);
|
||||
|
||||
// Provide a suggestion on how to call a function elementwise
|
||||
// This was added primarily as guidance for the v10 -> v11 transition,
|
||||
// and could potentially be removed in the future if it no longer seems
|
||||
// to be helpful.
|
||||
typed.onMismatch = (name, args, signatures) => {
|
||||
const usualError = typed.createError(name, args, signatures);
|
||||
if (['wrongType', 'mismatch'].includes(usualError.data.category) && args.length === 1 && (0, _is.isCollection)(args[0]) &&
|
||||
// check if the function can be unary:
|
||||
signatures.some(sig => !sig.params.includes(','))) {
|
||||
const err = new TypeError(`Function '${name}' doesn't apply to matrices. To call it ` + `elementwise on a matrix 'M', try 'map(M, ${name})'.`);
|
||||
err.data = usualError.data;
|
||||
throw err;
|
||||
}
|
||||
throw usualError;
|
||||
};
|
||||
|
||||
// Provide a suggestion on how to call a function elementwise
|
||||
// This was added primarily as guidance for the v10 -> v11 transition,
|
||||
// and could potentially be removed in the future if it no longer seems
|
||||
// to be helpful.
|
||||
typed.onMismatch = (name, args, signatures) => {
|
||||
const usualError = typed.createError(name, args, signatures);
|
||||
if (['wrongType', 'mismatch'].includes(usualError.data.category) && args.length === 1 && (0, _is.isCollection)(args[0]) &&
|
||||
// check if the function can be unary:
|
||||
signatures.some(sig => !sig.params.includes(','))) {
|
||||
const err = new TypeError(`Function '${name}' doesn't apply to matrices. To call it ` + `elementwise on a matrix 'M', try 'map(M, ${name})'.`);
|
||||
err.data = usualError.data;
|
||||
throw err;
|
||||
}
|
||||
throw usualError;
|
||||
};
|
||||
return typed;
|
||||
});
|
||||
function throwNoBignumber(x) {
|
||||
throw new Error(`Cannot convert value ${x} into a BigNumber: no class 'BigNumber' provided`);
|
||||
}
|
||||
function throwNoComplex(x) {
|
||||
throw new Error(`Cannot convert value ${x} into a Complex number: no class 'Complex' provided`);
|
||||
}
|
||||
function throwNoMatrix() {
|
||||
throw new Error('Cannot convert array into a Matrix: no class \'DenseMatrix\' provided');
|
||||
}
|
||||
function throwNoFraction(x) {
|
||||
throw new Error(`Cannot convert value ${x} into a Fraction, no class 'Fraction' provided.`);
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var all = _interopRequireWildcard(require("./factoriesAny.js"));
|
||||
var _create = require("./core/create.js");
|
||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||||
var _default = exports.default = (0, _create.create)(all);
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.all = void 0;
|
||||
var allFactories = _interopRequireWildcard(require("../factoriesAny.js"));
|
||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||||
// creating all factories here in a separate file is needed to get tree-shaking working
|
||||
|
||||
const all = exports.all = allFactories;
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.all = void 0;
|
||||
var allFactories = _interopRequireWildcard(require("../factoriesNumber.js"));
|
||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
||||
// creating all factories here in a separate file is needed to get tree-shaking working
|
||||
|
||||
const all = exports.all = allFactories;
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.config = void 0;
|
||||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
||||
var _config = require("../core/config.js");
|
||||
var _config2 = require("../core/function/config.js");
|
||||
// create a read-only version of config
|
||||
const config = function (options) {
|
||||
if (options) {
|
||||
throw new Error('The global config is readonly. \n' + 'Please create a mathjs instance if you want to change the default configuration. \n' + 'Example:\n' + '\n' + ' import { create, all } from \'mathjs\';\n' + ' const mathjs = create(all);\n' + ' mathjs.config({ number: \'BigNumber\' });\n');
|
||||
}
|
||||
return Object.freeze(_config.DEFAULT_CONFIG);
|
||||
};
|
||||
exports.config = config;
|
||||
(0, _extends2.default)(config, _config.DEFAULT_CONFIG, {
|
||||
MATRIX_OPTIONS: _config2.MATRIX_OPTIONS,
|
||||
NUMBER_OPTIONS: _config2.NUMBER_OPTIONS
|
||||
});
|
||||
Generated
Vendored
+2546
File diff suppressed because it is too large.
Load diff
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.absDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const absDependencies = exports.absDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAbs: _factoriesAny.createAbs
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.AccessorNodeDependencies = void 0;
|
||||
var _dependenciesNodeGenerated = require("./dependenciesNode.generated.js");
|
||||
var _dependenciesSubsetGenerated = require("./dependenciesSubset.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const AccessorNodeDependencies = exports.AccessorNodeDependencies = {
|
||||
NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,
|
||||
subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,
|
||||
createAccessorNode: _factoriesAny.createAccessorNode
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcos.generated.js
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.acosDependencies = void 0;
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const acosDependencies = exports.acosDependencies = {
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAcos: _factoriesAny.createAcos
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.acoshDependencies = void 0;
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const acoshDependencies = exports.acoshDependencies = {
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAcosh: _factoriesAny.createAcosh
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcot.generated.js
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.acotDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const acotDependencies = exports.acotDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAcot: _factoriesAny.createAcot
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.acothDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const acothDependencies = exports.acothDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAcoth: _factoriesAny.createAcoth
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcsc.generated.js
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.acscDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const acscDependencies = exports.acscDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAcsc: _factoriesAny.createAcsc
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.acschDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const acschDependencies = exports.acschDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAcsch: _factoriesAny.createAcsch
|
||||
};
|
||||
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.addDependencies = void 0;
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesSparseMatrixClassGenerated = require("./dependenciesSparseMatrixClass.generated.js");
|
||||
var _dependenciesAddScalarGenerated = require("./dependenciesAddScalar.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const addDependencies = exports.addDependencies = {
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,
|
||||
addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAdd: _factoriesAny.createAdd
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.addScalarDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const addScalarDependencies = exports.addScalarDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAddScalar: _factoriesAny.createAddScalar
|
||||
};
|
||||
Generated
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.andDependencies = void 0;
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesNotGenerated = require("./dependenciesNot.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _dependenciesZerosGenerated = require("./dependenciesZeros.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const andDependencies = exports.andDependencies = {
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
notDependencies: _dependenciesNotGenerated.notDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,
|
||||
createAnd: _factoriesAny.createAnd
|
||||
};
|
||||
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.andTransformDependencies = void 0;
|
||||
var _dependenciesAddGenerated = require("./dependenciesAdd.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesNotGenerated = require("./dependenciesNot.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _dependenciesZerosGenerated = require("./dependenciesZeros.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const andTransformDependencies = exports.andTransformDependencies = {
|
||||
addDependencies: _dependenciesAddGenerated.addDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
notDependencies: _dependenciesNotGenerated.notDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,
|
||||
createAndTransform: _factoriesAny.createAndTransform
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.applyDependencies = void 0;
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const applyDependencies = exports.applyDependencies = {
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createApply: _factoriesAny.createApply
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.applyTransformDependencies = void 0;
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const applyTransformDependencies = exports.applyTransformDependencies = {
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createApplyTransform: _factoriesAny.createApplyTransform
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.argDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const argDependencies = exports.argDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createArg: _factoriesAny.createArg
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ArrayNodeDependencies = void 0;
|
||||
var _dependenciesNodeGenerated = require("./dependenciesNode.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const ArrayNodeDependencies = exports.ArrayNodeDependencies = {
|
||||
NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,
|
||||
createArrayNode: _factoriesAny.createArrayNode
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAsec.generated.js
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.asecDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const asecDependencies = exports.asecDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAsec: _factoriesAny.createAsec
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.asechDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const asechDependencies = exports.asechDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAsech: _factoriesAny.createAsech
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAsin.generated.js
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.asinDependencies = void 0;
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const asinDependencies = exports.asinDependencies = {
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAsin: _factoriesAny.createAsin
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.asinhDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const asinhDependencies = exports.asinhDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAsinh: _factoriesAny.createAsinh
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.AssignmentNodeDependencies = void 0;
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesNodeGenerated = require("./dependenciesNode.generated.js");
|
||||
var _dependenciesSubsetGenerated = require("./dependenciesSubset.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const AssignmentNodeDependencies = exports.AssignmentNodeDependencies = {
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,
|
||||
subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,
|
||||
createAssignmentNode: _factoriesAny.createAssignmentNode
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAtan.generated.js
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.atanDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const atanDependencies = exports.atanDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAtan: _factoriesAny.createAtan
|
||||
};
|
||||
Generated
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.atan2Dependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const atan2Dependencies = exports.atan2Dependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAtan2: _factoriesAny.createAtan2
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.atanhDependencies = void 0;
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const atanhDependencies = exports.atanhDependencies = {
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createAtanh: _factoriesAny.createAtanh
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.atomicMassDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const atomicMassDependencies = exports.atomicMassDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createAtomicMass: _factoriesAny.createAtomicMass
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.avogadroDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const avogadroDependencies = exports.avogadroDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createAvogadro: _factoriesAny.createAvogadro
|
||||
};
|
||||
Generated
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bellNumbersDependencies = void 0;
|
||||
var _dependenciesAddScalarGenerated = require("./dependenciesAddScalar.generated.js");
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesIsNegativeGenerated = require("./dependenciesIsNegative.generated.js");
|
||||
var _dependenciesStirlingS2Generated = require("./dependenciesStirlingS2.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bellNumbersDependencies = exports.bellNumbersDependencies = {
|
||||
addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,
|
||||
stirlingS2Dependencies: _dependenciesStirlingS2Generated.stirlingS2Dependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBellNumbers: _factoriesAny.createBellNumbers
|
||||
};
|
||||
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.BigNumberDependencies = void 0;
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const BigNumberDependencies = exports.BigNumberDependencies = {
|
||||
createBigNumberClass: _factoriesAny.createBigNumberClass
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bigintDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bigintDependencies = exports.bigintDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBigint: _factoriesAny.createBigint
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bignumberDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bignumberDependencies = exports.bignumberDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBignumber: _factoriesAny.createBignumber
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.binDependencies = void 0;
|
||||
var _dependenciesFormatGenerated = require("./dependenciesFormat.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const binDependencies = exports.binDependencies = {
|
||||
formatDependencies: _dependenciesFormatGenerated.formatDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBin: _factoriesAny.createBin
|
||||
};
|
||||
Generated
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bitAndDependencies = void 0;
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bitAndDependencies = exports.bitAndDependencies = {
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBitAnd: _factoriesAny.createBitAnd
|
||||
};
|
||||
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bitAndTransformDependencies = void 0;
|
||||
var _dependenciesAddGenerated = require("./dependenciesAdd.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesNotGenerated = require("./dependenciesNot.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _dependenciesZerosGenerated = require("./dependenciesZeros.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bitAndTransformDependencies = exports.bitAndTransformDependencies = {
|
||||
addDependencies: _dependenciesAddGenerated.addDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
notDependencies: _dependenciesNotGenerated.notDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,
|
||||
createBitAndTransform: _factoriesAny.createBitAndTransform
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bitNotDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bitNotDependencies = exports.bitNotDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBitNot: _factoriesAny.createBitNot
|
||||
};
|
||||
Generated
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bitOrDependencies = void 0;
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bitOrDependencies = exports.bitOrDependencies = {
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBitOr: _factoriesAny.createBitOr
|
||||
};
|
||||
Generated
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bitOrTransformDependencies = void 0;
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bitOrTransformDependencies = exports.bitOrTransformDependencies = {
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBitOrTransform: _factoriesAny.createBitOrTransform
|
||||
};
|
||||
Generated
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bitXorDependencies = void 0;
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bitXorDependencies = exports.bitXorDependencies = {
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBitXor: _factoriesAny.createBitXor
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.BlockNodeDependencies = void 0;
|
||||
var _dependenciesNodeGenerated = require("./dependenciesNode.generated.js");
|
||||
var _dependenciesResultSetGenerated = require("./dependenciesResultSet.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const BlockNodeDependencies = exports.BlockNodeDependencies = {
|
||||
NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,
|
||||
ResultSetDependencies: _dependenciesResultSetGenerated.ResultSetDependencies,
|
||||
createBlockNode: _factoriesAny.createBlockNode
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bohrMagnetonDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bohrMagnetonDependencies = exports.bohrMagnetonDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createBohrMagneton: _factoriesAny.createBohrMagneton
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.bohrRadiusDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const bohrRadiusDependencies = exports.bohrRadiusDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createBohrRadius: _factoriesAny.createBohrRadius
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.boltzmannDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const boltzmannDependencies = exports.boltzmannDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createBoltzmann: _factoriesAny.createBoltzmann
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.booleanDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const booleanDependencies = exports.booleanDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createBoolean: _factoriesAny.createBoolean
|
||||
};
|
||||
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.catalanDependencies = void 0;
|
||||
var _dependenciesAddScalarGenerated = require("./dependenciesAddScalar.generated.js");
|
||||
var _dependenciesCombinationsGenerated = require("./dependenciesCombinations.generated.js");
|
||||
var _dependenciesDivideScalarGenerated = require("./dependenciesDivideScalar.generated.js");
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesIsNegativeGenerated = require("./dependenciesIsNegative.generated.js");
|
||||
var _dependenciesMultiplyScalarGenerated = require("./dependenciesMultiplyScalar.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const catalanDependencies = exports.catalanDependencies = {
|
||||
addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,
|
||||
combinationsDependencies: _dependenciesCombinationsGenerated.combinationsDependencies,
|
||||
divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,
|
||||
multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCatalan: _factoriesAny.createCatalan
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCbrt.generated.js
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cbrtDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesFractionClassGenerated = require("./dependenciesFractionClass.generated.js");
|
||||
var _dependenciesIsNegativeGenerated = require("./dependenciesIsNegative.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _dependenciesUnaryMinusGenerated = require("./dependenciesUnaryMinus.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cbrtDependencies = exports.cbrtDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,
|
||||
isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,
|
||||
createCbrt: _factoriesAny.createCbrt
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCeil.generated.js
Generated
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ceilDependencies = void 0;
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesRoundGenerated = require("./dependenciesRound.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _dependenciesZerosGenerated = require("./dependenciesZeros.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const ceilDependencies = exports.ceilDependencies = {
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
roundDependencies: _dependenciesRoundGenerated.roundDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,
|
||||
createCeil: _factoriesAny.createCeil
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.chainDependencies = void 0;
|
||||
var _dependenciesChainClassGenerated = require("./dependenciesChainClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const chainDependencies = exports.chainDependencies = {
|
||||
ChainDependencies: _dependenciesChainClassGenerated.ChainDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createChain: _factoriesAny.createChain
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ChainDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const ChainDependencies = exports.ChainDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createChainClass: _factoriesAny.createChainClass
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.classicalElectronRadiusDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const classicalElectronRadiusDependencies = exports.classicalElectronRadiusDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createClassicalElectronRadius: _factoriesAny.createClassicalElectronRadius
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cloneDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cloneDependencies = exports.cloneDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createClone: _factoriesAny.createClone
|
||||
};
|
||||
Generated
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.columnDependencies = void 0;
|
||||
var _dependenciesIndexClassGenerated = require("./dependenciesIndexClass.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesRangeGenerated = require("./dependenciesRange.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const columnDependencies = exports.columnDependencies = {
|
||||
IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
rangeDependencies: _dependenciesRangeGenerated.rangeDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createColumn: _factoriesAny.createColumn
|
||||
};
|
||||
Generated
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.columnTransformDependencies = void 0;
|
||||
var _dependenciesIndexClassGenerated = require("./dependenciesIndexClass.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesRangeGenerated = require("./dependenciesRange.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const columnTransformDependencies = exports.columnTransformDependencies = {
|
||||
IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
rangeDependencies: _dependenciesRangeGenerated.rangeDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createColumnTransform: _factoriesAny.createColumnTransform
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.combinationsDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const combinationsDependencies = exports.combinationsDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCombinations: _factoriesAny.createCombinations
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.combinationsWithRepDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const combinationsWithRepDependencies = exports.combinationsWithRepDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCombinationsWithRep: _factoriesAny.createCombinationsWithRep
|
||||
};
|
||||
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.compareDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesDenseMatrixClassGenerated = require("./dependenciesDenseMatrixClass.generated.js");
|
||||
var _dependenciesFractionClassGenerated = require("./dependenciesFractionClass.generated.js");
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesEqualScalarGenerated = require("./dependenciesEqualScalar.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const compareDependencies = exports.compareDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,
|
||||
FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCompare: _factoriesAny.createCompare
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.compareNaturalDependencies = void 0;
|
||||
var _dependenciesCompareGenerated = require("./dependenciesCompare.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const compareNaturalDependencies = exports.compareNaturalDependencies = {
|
||||
compareDependencies: _dependenciesCompareGenerated.compareDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCompareNatural: _factoriesAny.createCompareNatural
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.compareTextDependencies = void 0;
|
||||
var _dependenciesConcatGenerated = require("./dependenciesConcat.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const compareTextDependencies = exports.compareTextDependencies = {
|
||||
concatDependencies: _dependenciesConcatGenerated.concatDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCompareText: _factoriesAny.createCompareText
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.compileDependencies = void 0;
|
||||
var _dependenciesParseGenerated = require("./dependenciesParse.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const compileDependencies = exports.compileDependencies = {
|
||||
parseDependencies: _dependenciesParseGenerated.parseDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCompile: _factoriesAny.createCompile
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.complexDependencies = void 0;
|
||||
var _dependenciesComplexClassGenerated = require("./dependenciesComplexClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const complexDependencies = exports.complexDependencies = {
|
||||
ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createComplex: _factoriesAny.createComplex
|
||||
};
|
||||
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ComplexDependencies = void 0;
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const ComplexDependencies = exports.ComplexDependencies = {
|
||||
createComplexClass: _factoriesAny.createComplexClass
|
||||
};
|
||||
Generated
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.compositionDependencies = void 0;
|
||||
var _dependenciesAddScalarGenerated = require("./dependenciesAddScalar.generated.js");
|
||||
var _dependenciesCombinationsGenerated = require("./dependenciesCombinations.generated.js");
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesIsNegativeGenerated = require("./dependenciesIsNegative.generated.js");
|
||||
var _dependenciesIsPositiveGenerated = require("./dependenciesIsPositive.generated.js");
|
||||
var _dependenciesLargerGenerated = require("./dependenciesLarger.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const compositionDependencies = exports.compositionDependencies = {
|
||||
addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,
|
||||
combinationsDependencies: _dependenciesCombinationsGenerated.combinationsDependencies,
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,
|
||||
isPositiveDependencies: _dependenciesIsPositiveGenerated.isPositiveDependencies,
|
||||
largerDependencies: _dependenciesLargerGenerated.largerDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createComposition: _factoriesAny.createComposition
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.concatDependencies = void 0;
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const concatDependencies = exports.concatDependencies = {
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createConcat: _factoriesAny.createConcat
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.concatTransformDependencies = void 0;
|
||||
var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const concatTransformDependencies = exports.concatTransformDependencies = {
|
||||
isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createConcatTransform: _factoriesAny.createConcatTransform
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ConditionalNodeDependencies = void 0;
|
||||
var _dependenciesNodeGenerated = require("./dependenciesNode.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const ConditionalNodeDependencies = exports.ConditionalNodeDependencies = {
|
||||
NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,
|
||||
createConditionalNode: _factoriesAny.createConditionalNode
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.conductanceQuantumDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const conductanceQuantumDependencies = exports.conductanceQuantumDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createConductanceQuantum: _factoriesAny.createConductanceQuantum
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConj.generated.js
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.conjDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const conjDependencies = exports.conjDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createConj: _factoriesAny.createConj
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ConstantNodeDependencies = void 0;
|
||||
var _dependenciesNodeGenerated = require("./dependenciesNode.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const ConstantNodeDependencies = exports.ConstantNodeDependencies = {
|
||||
NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,
|
||||
createConstantNode: _factoriesAny.createConstantNode
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCorr.generated.js
Generated
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.corrDependencies = void 0;
|
||||
var _dependenciesAddGenerated = require("./dependenciesAdd.generated.js");
|
||||
var _dependenciesDivideGenerated = require("./dependenciesDivide.generated.js");
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesMeanGenerated = require("./dependenciesMean.generated.js");
|
||||
var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
|
||||
var _dependenciesPowGenerated = require("./dependenciesPow.generated.js");
|
||||
var _dependenciesSqrtGenerated = require("./dependenciesSqrt.generated.js");
|
||||
var _dependenciesSubtractGenerated = require("./dependenciesSubtract.generated.js");
|
||||
var _dependenciesSumGenerated = require("./dependenciesSum.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const corrDependencies = exports.corrDependencies = {
|
||||
addDependencies: _dependenciesAddGenerated.addDependencies,
|
||||
divideDependencies: _dependenciesDivideGenerated.divideDependencies,
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
meanDependencies: _dependenciesMeanGenerated.meanDependencies,
|
||||
multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
|
||||
powDependencies: _dependenciesPowGenerated.powDependencies,
|
||||
sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,
|
||||
subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,
|
||||
sumDependencies: _dependenciesSumGenerated.sumDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCorr: _factoriesAny.createCorr
|
||||
};
|
||||
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cosDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cosDependencies = exports.cosDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCos: _factoriesAny.createCos
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCosh.generated.js
Generated
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.coshDependencies = void 0;
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const coshDependencies = exports.coshDependencies = {
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCosh: _factoriesAny.createCosh
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cotDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cotDependencies = exports.cotDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCot: _factoriesAny.createCot
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCoth.generated.js
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cothDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cothDependencies = exports.cothDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCoth: _factoriesAny.createCoth
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.coulombDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const coulombDependencies = exports.coulombDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
createCoulomb: _factoriesAny.createCoulomb
|
||||
};
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.countDependencies = void 0;
|
||||
var _dependenciesProdGenerated = require("./dependenciesProd.generated.js");
|
||||
var _dependenciesSizeGenerated = require("./dependenciesSize.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const countDependencies = exports.countDependencies = {
|
||||
prodDependencies: _dependenciesProdGenerated.prodDependencies,
|
||||
sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCount: _factoriesAny.createCount
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createUnitDependencies = void 0;
|
||||
var _dependenciesUnitClassGenerated = require("./dependenciesUnitClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const createUnitDependencies = exports.createUnitDependencies = {
|
||||
UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCreateUnit: _factoriesAny.createCreateUnit
|
||||
};
|
||||
Generated
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.crossDependencies = void 0;
|
||||
var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
|
||||
var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
|
||||
var _dependenciesSubtractGenerated = require("./dependenciesSubtract.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const crossDependencies = exports.crossDependencies = {
|
||||
matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
|
||||
multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
|
||||
subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCross: _factoriesAny.createCross
|
||||
};
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cscDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cscDependencies = exports.cscDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCsc: _factoriesAny.createCsc
|
||||
};
|
||||
24_10_22_faktorialis/node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCsch.generated.js
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.cschDependencies = void 0;
|
||||
var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
|
||||
var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
|
||||
var _factoriesAny = require("../../factoriesAny.js");
|
||||
/**
|
||||
* THIS FILE IS AUTO-GENERATED
|
||||
* DON'T MAKE CHANGES HERE
|
||||
*/
|
||||
|
||||
const cschDependencies = exports.cschDependencies = {
|
||||
BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
|
||||
typedDependencies: _dependenciesTypedGenerated.typedDependencies,
|
||||
createCsch: _factoriesAny.createCsch
|
||||
};
|
||||
Loaded 100 of 2836 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user