feat:node-modules
This commit is contained in:
22
node_modules/mathjs/lib/esm/plain/bignumber/arithmetic.js
generated
vendored
Normal file
22
node_modules/mathjs/lib/esm/plain/bignumber/arithmetic.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var signature1 = 'BigNumber';
|
||||
var signature2 = 'BigNumber, BigNumber';
|
||||
export function absBigNumber(a) {
|
||||
return a.abs();
|
||||
}
|
||||
absBigNumber.signature = signature1;
|
||||
export function addBigNumber(a, b) {
|
||||
return a.add(b);
|
||||
}
|
||||
addBigNumber.signature = signature2;
|
||||
export function subtractBigNumber(a, b) {
|
||||
return a.sub(b);
|
||||
}
|
||||
subtractBigNumber.signature = signature2;
|
||||
export function multiplyBigNumber(a, b) {
|
||||
return a.mul(b);
|
||||
}
|
||||
multiplyBigNumber.signature = signature2;
|
||||
export function divideBigNumber(a, b) {
|
||||
return a.div(b);
|
||||
}
|
||||
divideBigNumber.signature = signature2;
|
||||
9
node_modules/mathjs/lib/esm/plain/bignumber/index.js
generated
vendored
Normal file
9
node_modules/mathjs/lib/esm/plain/bignumber/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import Decimal from 'decimal.js';
|
||||
export * from './arithmetic.js';
|
||||
|
||||
// TODO: this is ugly. Instead, be able to pass your own isBigNumber function to typed?
|
||||
var BigNumber = Decimal.clone();
|
||||
BigNumber.prototype.isBigNumber = true;
|
||||
export function bignumber(x) {
|
||||
return new BigNumber(x);
|
||||
}
|
||||
Reference in New Issue
Block a user