umt 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.markdownlint.json +4 -1
- package/README.md +11 -4
- package/lib/.clang-format +200 -0
- package/lib/1.s +259 -0
- package/lib/Makefile +5 -0
- package/lib/index.cpp +10 -0
- package/lib/index.s +238 -0
- package/module/Array/arraysJoin.d.ts +1 -2
- package/module/Array/arraysJoin.js +2 -1
- package/module/Array/getArraysCommon.d.ts +6 -0
- package/module/Array/getArraysCommon.js +25 -0
- package/module/Array/getArraysDiff.d.ts +1 -2
- package/module/Array/getArraysDiff.js +15 -7
- package/module/Array/index.d.ts +16 -5
- package/module/Array/index.js +54 -11
- package/module/Array/quickSort.d.ts +1 -2
- package/module/Array/quickSort.js +4 -3
- package/module/Array/sum.d.ts +1 -0
- package/module/Array/sum.js +8 -0
- package/module/Compiler/core.d.ts +5 -0
- package/module/Compiler/core.js +19 -0
- package/module/Compiler/token.d.ts +10 -0
- package/module/Compiler/token.js +120 -0
- package/module/Date/index.d.ts +7 -1
- package/module/Date/index.js +26 -5
- package/module/Date/now.d.ts +5 -2
- package/module/Date/now.js +10 -3
- package/module/Math/addition.d.ts +2 -2
- package/module/Math/addition.js +8 -9
- package/module/Math/average.d.ts +2 -2
- package/module/Math/average.js +3 -1
- package/module/Math/calculator/core.d.ts +1 -5
- package/module/Math/calculator/core.js +76 -55
- package/module/Math/calculator/exchange.d.ts +1 -5
- package/module/Math/calculator/exchange.js +16 -12
- package/module/Math/calculator/index.d.ts +2 -5
- package/module/Math/calculator/index.js +13 -8
- package/module/Math/calculator/literalExpression.d.ts +2 -2
- package/module/Math/calculator/literalExpression.js +20 -13
- package/module/Math/degToRad.d.ts +2 -2
- package/module/Math/degToRad.js +3 -1
- package/module/Math/deviationValue.d.ts +8 -0
- package/module/Math/deviationValue.js +14 -0
- package/module/Math/division.d.ts +7 -2
- package/module/Math/division.js +20 -9
- package/module/Math/factorial.d.ts +2 -2
- package/module/Math/factorial.js +10 -4
- package/module/Math/factorize.d.ts +2 -2
- package/module/Math/factorize.js +3 -1
- package/module/Math/gcd.d.ts +2 -2
- package/module/Math/gcd.js +6 -7
- package/module/Math/getDecimalLength.d.ts +2 -2
- package/module/Math/getDecimalLength.js +3 -1
- package/module/Math/index.d.ts +94 -33
- package/module/Math/index.js +278 -67
- package/module/Math/isDouble.d.ts +3 -2
- package/module/Math/isDouble.js +4 -1
- package/module/Math/isNumber.d.ts +3 -3
- package/module/Math/isNumber.js +4 -2
- package/module/Math/isPrimeNumber.d.ts +2 -2
- package/module/Math/isPrimeNumber.js +5 -6
- package/module/Math/lcm.d.ts +2 -2
- package/module/Math/lcm.js +7 -8
- package/module/Math/mathConverter.d.ts +5 -0
- package/module/Math/mathConverter.js +48 -0
- package/module/Math/mathSeparator.d.ts +5 -0
- package/module/Math/mathSeparator.js +21 -0
- package/module/Math/max.d.ts +1 -2
- package/module/Math/max.js +3 -2
- package/module/Math/min.d.ts +1 -2
- package/module/Math/min.js +3 -2
- package/module/Math/multiples.d.ts +1 -2
- package/module/Math/multiples.js +2 -1
- package/module/Math/multiplication.d.ts +1 -2
- package/module/Math/multiplication.js +4 -6
- package/module/Math/nCr.d.ts +1 -2
- package/module/Math/nCr.js +4 -6
- package/module/Math/nHr.d.ts +1 -2
- package/module/Math/nHr.js +4 -6
- package/module/Math/nPr.d.ts +1 -2
- package/module/Math/nPr.js +2 -1
- package/module/Math/primeFactorization.d.ts +1 -2
- package/module/Math/primeFactorization.js +2 -1
- package/module/Math/quotient.d.ts +1 -2
- package/module/Math/quotient.js +2 -1
- package/module/Math/radToDeg.d.ts +1 -2
- package/module/Math/radToDeg.js +2 -1
- package/module/Math/random.d.ts +3 -2
- package/module/Math/random.js +5 -2
- package/module/Math/reduce.d.ts +1 -2
- package/module/Math/reduce.js +5 -7
- package/module/Math/repeatedTrial.d.ts +2 -2
- package/module/Math/repeatedTrial.js +7 -8
- package/module/Math/roundOff.d.ts +7 -0
- package/module/Math/roundOff.js +14 -0
- package/module/Math/softmax.d.ts +5 -0
- package/module/Math/softmax.js +40 -0
- package/module/Math/standardDeviation.d.ts +1 -2
- package/module/Math/standardDeviation.js +5 -7
- package/module/Math/subtract.d.ts +1 -2
- package/module/Math/subtract.js +9 -9
- package/module/Math/toBinary.d.ts +5 -2
- package/module/Math/toBinary.js +4 -4
- package/module/Math/toCelsius.d.ts +1 -2
- package/module/Math/toCelsius.js +4 -6
- package/module/Math/toKelvin.d.ts +1 -2
- package/module/Math/toKelvin.js +4 -6
- package/module/Math/valueSwap.d.ts +2 -2
- package/module/Math/valueSwap.js +3 -1
- package/module/Simple/Date/index.d.ts +5 -0
- package/module/Simple/Date/index.js +27 -0
- package/module/Simple/Date/now.d.ts +1 -0
- package/module/Simple/Date/now.js +17 -0
- package/module/Simple/Math/dayOfWeek.d.ts +6 -0
- package/module/Simple/Math/dayOfWeek.js +31 -0
- package/module/Simple/Math/deviationValue.d.ts +5 -0
- package/module/Simple/Math/deviationValue.js +14 -0
- package/module/Simple/Math/index.d.ts +10 -0
- package/module/Simple/Math/index.js +33 -0
- package/module/Simple/Tool/birthday.d.ts +9 -0
- package/module/Simple/Tool/birthday.js +26 -0
- package/module/Simple/Tool/index.d.ts +5 -0
- package/module/Simple/Tool/index.js +27 -0
- package/module/Simple/index.d.ts +11 -0
- package/module/Simple/index.js +40 -0
- package/module/Tool/birthday.d.ts +8 -2
- package/module/Tool/birthday.js +15 -10
- package/module/Tool/dayOfWeek.d.ts +5 -6
- package/module/Tool/dayOfWeek.js +12 -2
- package/module/Tool/index.d.ts +18 -3
- package/module/Tool/index.js +58 -9
- package/module/Tool/isBrowser.d.ts +1 -0
- package/module/Tool/isBrowser.js +4 -0
- package/module/Tool/isNode.d.ts +1 -0
- package/module/Tool/isNode.js +4 -0
- package/module/Tool/isNodeWebkit.d.ts +1 -0
- package/module/Tool/isNodeWebkit.js +6 -0
- package/module/Tool/pipeFunction.d.ts +1 -2
- package/module/Tool/pipeFunction.js +3 -2
- package/module/index.d.ts +10 -11
- package/module/index.js +49 -33
- package/module/tsconfig.tsbuildinfo +1 -1
- package/module/types/int.d.ts +4 -0
- package/module/{Math/value.js → types/int.js} +0 -2
- package/module/types/logicType.d.ts +8 -0
- package/module/types/logicType.js +2 -0
- package/module/types/monType.d.ts +4 -0
- package/module/types/monType.js +2 -0
- package/package.json +18 -18
- package/.env +0 -1
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/node.js.yml +0 -30
- package/module/Array/getArraysIntersect.d.ts +0 -7
- package/module/Array/getArraysIntersect.js +0 -15
- package/module/Math/euclideanAlgorithm.d.ts +0 -8
- package/module/Math/euclideanAlgorithm.js +0 -31
- package/module/Math/value.d.ts +0 -2
- package/sider.yml +0 -60
- package/test.js +0 -5
package/module/Math/gcd.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
exports.gcd = void 0;
|
|
4
|
+
const valueSwap_1 = require("./valueSwap");
|
|
7
5
|
/**
|
|
8
6
|
* 自然数の最大公約数
|
|
9
7
|
* @param {number} x
|
|
10
8
|
* @param {number} y
|
|
11
9
|
* @param {number} ...z
|
|
10
|
+
* @returns number
|
|
12
11
|
*/
|
|
13
12
|
const gcd = (x, y, ...z) => {
|
|
14
13
|
if (x === 0 || y === 0)
|
|
15
14
|
return 0;
|
|
16
|
-
[x, y] = (0, valueSwap_1.
|
|
15
|
+
[x, y] = (0, valueSwap_1.valueSwap)(x, y);
|
|
17
16
|
/* ユークリッドの互除法 */
|
|
18
17
|
let r = y % x;
|
|
19
18
|
while (r !== 0) {
|
|
@@ -23,9 +22,9 @@ const gcd = (x, y, ...z) => {
|
|
|
23
22
|
}
|
|
24
23
|
if (z.length > 0) {
|
|
25
24
|
for (let i = 0; i < z.length; i++) {
|
|
26
|
-
x = gcd(x, z[i]);
|
|
25
|
+
x = (0, exports.gcd)(x, z[i]);
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
return x;
|
|
30
29
|
};
|
|
31
|
-
exports.
|
|
30
|
+
exports.gcd = gcd;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDecimalLength = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* 小数点以下の桁数
|
|
5
6
|
* @param {number} value
|
|
7
|
+
* @returns number
|
|
6
8
|
*/
|
|
7
9
|
const getDecimalLength = (value) => {
|
|
8
10
|
let x = (value + '').split('.')[1];
|
|
@@ -11,4 +13,4 @@ const getDecimalLength = (value) => {
|
|
|
11
13
|
}
|
|
12
14
|
return 0;
|
|
13
15
|
};
|
|
14
|
-
exports.
|
|
16
|
+
exports.getDecimalLength = getDecimalLength;
|
package/module/Math/index.d.ts
CHANGED
|
@@ -1,33 +1,94 @@
|
|
|
1
|
-
import addition from './addition';
|
|
2
|
-
import average from './average';
|
|
3
|
-
import calculator from './calculator';
|
|
4
|
-
import degToRad from './degToRad';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import factorial from './factorial';
|
|
8
|
-
import factorize from './factorize';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
|
|
1
|
+
import { addition } from './addition';
|
|
2
|
+
import { average } from './average';
|
|
3
|
+
import { calculator } from './calculator';
|
|
4
|
+
import { degToRad } from './degToRad';
|
|
5
|
+
import { deviationValue } from './deviationValue';
|
|
6
|
+
import { division } from './division';
|
|
7
|
+
import { factorial } from './factorial';
|
|
8
|
+
import { factorize } from './factorize';
|
|
9
|
+
import { gcd } from './gcd';
|
|
10
|
+
import { getDecimalLength } from './getDecimalLength';
|
|
11
|
+
import { isDouble } from './isDouble';
|
|
12
|
+
import { isNumber } from './isNumber';
|
|
13
|
+
import { isPrimeNumber } from './isPrimeNumber';
|
|
14
|
+
import { lcm } from './lcm';
|
|
15
|
+
import { mathConverter } from './mathConverter';
|
|
16
|
+
import { mathSeparator } from './mathSeparator';
|
|
17
|
+
import { max } from './max';
|
|
18
|
+
import { min } from './min';
|
|
19
|
+
import { multiples } from './multiples';
|
|
20
|
+
import { multiplication } from './multiplication';
|
|
21
|
+
import { nCr } from './nCr';
|
|
22
|
+
import { nHr } from './nHr';
|
|
23
|
+
import { nPr } from './nPr';
|
|
24
|
+
import { primeFactorization } from './primeFactorization';
|
|
25
|
+
import { quotient } from './quotient';
|
|
26
|
+
import { radToDeg } from './radToDeg';
|
|
27
|
+
import { random } from './random';
|
|
28
|
+
import { reduce } from './reduce';
|
|
29
|
+
import { repeatedTrial } from './repeatedTrial';
|
|
30
|
+
import { roundOf } from './roundOff';
|
|
31
|
+
import { softmax } from './softmax';
|
|
32
|
+
import { standardDeviation } from './standardDeviation';
|
|
33
|
+
import { subtract } from './subtract';
|
|
34
|
+
import { toBinary } from './toBinary';
|
|
35
|
+
import { toCelsius } from './toCelsius';
|
|
36
|
+
import { toKelvin } from './toKelvin';
|
|
37
|
+
import { valueSwap } from './valueSwap';
|
|
38
|
+
export { addition, average, calculator, degToRad, deviationValue, division, factorial, factorize, gcd, getDecimalLength, isDouble, isNumber, isPrimeNumber, lcm, mathConverter, mathSeparator, max, min, multiples, multiplication, nCr, nHr, nPr, primeFactorization, quotient, radToDeg, random, reduce, repeatedTrial, roundOf, softmax, standardDeviation, subtract, toBinary, toCelsius, toKelvin, valueSwap, };
|
|
39
|
+
export declare class UMTMathClass {
|
|
40
|
+
#private;
|
|
41
|
+
constructor();
|
|
42
|
+
get addition(): (x: number, y: number) => number;
|
|
43
|
+
get average(): (numbers: number[]) => number;
|
|
44
|
+
get calculator(): <T extends object>(x: string, ex?: T | undefined) => string;
|
|
45
|
+
get degToRad(): (x: number) => number;
|
|
46
|
+
get deviationValue(): (value: number, averageValue: number, standardDeviationValue: number) => number;
|
|
47
|
+
get division(): import("./division").DIVISION;
|
|
48
|
+
get factorial(): (x: number) => number;
|
|
49
|
+
get factorize(): (n: number) => number[];
|
|
50
|
+
get gcd(): (x: number, y: number, ...z: number[]) => number;
|
|
51
|
+
get getDecimalLength(): (value: number) => number;
|
|
52
|
+
get isDouble(): (x: any, loose?: boolean) => boolean;
|
|
53
|
+
get isNumber(): (x: any, loose?: boolean) => boolean;
|
|
54
|
+
get isPrimeNumber(): (n: number) => boolean;
|
|
55
|
+
get lcm(): (x: number, y: number) => number;
|
|
56
|
+
get mathConverter(): (x: string) => string;
|
|
57
|
+
get mathSeparator(): (number: string | number) => number[];
|
|
58
|
+
get max(): (...num: number[]) => number;
|
|
59
|
+
get min(): (...num: number[]) => number;
|
|
60
|
+
get multiples(): (x: number, n: number) => number[];
|
|
61
|
+
get multiplication(): (x: number, y: number) => number;
|
|
62
|
+
get nCr(): (n: number, r: number) => number;
|
|
63
|
+
get nHr(): (n: number, r: number) => number;
|
|
64
|
+
get nPr(): (n: number, r: number) => number;
|
|
65
|
+
get primeFactorization(): (x: number) => {
|
|
66
|
+
number: number;
|
|
67
|
+
count: number;
|
|
68
|
+
}[];
|
|
69
|
+
get quotient(): (x: number, y: number) => number[];
|
|
70
|
+
get radToDeg(): (x: number) => number;
|
|
71
|
+
get random(): (num: number, min?: number) => number;
|
|
72
|
+
get reduce(): (x: number, y: number) => {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
gcd?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
gcd: number;
|
|
80
|
+
};
|
|
81
|
+
get repeatedTrial(): (n: number, r: number, p: {
|
|
82
|
+
x: number;
|
|
83
|
+
y: number;
|
|
84
|
+
}) => number[];
|
|
85
|
+
get roundOf(): (num: number, precision: number) => number;
|
|
86
|
+
get softmax(): (x: number[]) => number[];
|
|
87
|
+
get standardDeviation(): (values: number[]) => number;
|
|
88
|
+
get subtract(): (x: number, y: number) => number;
|
|
89
|
+
get toBinary(): import("./toBinary").TOBINARY;
|
|
90
|
+
get toCelsius(): (kelvin: number) => number;
|
|
91
|
+
get toKelvin(): (celsius: number) => number;
|
|
92
|
+
get valueSwap(): (x: number, y: number) => number[];
|
|
93
|
+
}
|
|
94
|
+
export declare const UMT_Math: UMTMathClass;
|
package/module/Math/index.js
CHANGED
|
@@ -1,70 +1,281 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
4
7
|
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _UMTMathClass_Localaddition, _UMTMathClass_Localaverage, _UMTMathClass_Localcalculator, _UMTMathClass_LocaldegToRad, _UMTMathClass_LocaldeviationValue, _UMTMathClass_Localdivision, _UMTMathClass_Localfactorial, _UMTMathClass_Localfactorize, _UMTMathClass_Localgcd, _UMTMathClass_LocalgetDecimalLength, _UMTMathClass_LocalisDouble, _UMTMathClass_LocalisNumber, _UMTMathClass_LocalisPrimeNumber, _UMTMathClass_Locallcm, _UMTMathClass_LocalmathConverter, _UMTMathClass_LocalmathSeparator, _UMTMathClass_Localmax, _UMTMathClass_Localmin, _UMTMathClass_Localmultiples, _UMTMathClass_Localmultiplication, _UMTMathClass_LocalnCr, _UMTMathClass_LocalnHr, _UMTMathClass_LocalnPr, _UMTMathClass_LocalprimeFactorization, _UMTMathClass_Localquotient, _UMTMathClass_LocalradToDeg, _UMTMathClass_Localrandom, _UMTMathClass_Localreduce, _UMTMathClass_LocalrepeatedTrial, _UMTMathClass_LocalroundOf, _UMTMathClass_Localsoftmax, _UMTMathClass_LocalstandardDeviation, _UMTMathClass_Localsubtract, _UMTMathClass_LocaltoBinary, _UMTMathClass_LocaltoCelsius, _UMTMathClass_LocaltoKelvin, _UMTMathClass_LocalvalueSwap;
|
|
5
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const addition_1 =
|
|
8
|
-
exports
|
|
9
|
-
const average_1 =
|
|
10
|
-
exports
|
|
11
|
-
const calculator_1 =
|
|
12
|
-
exports
|
|
13
|
-
const degToRad_1 =
|
|
14
|
-
exports
|
|
15
|
-
const
|
|
16
|
-
exports
|
|
17
|
-
const
|
|
18
|
-
exports
|
|
19
|
-
const factorial_1 =
|
|
20
|
-
exports
|
|
21
|
-
const factorize_1 =
|
|
22
|
-
exports
|
|
23
|
-
const
|
|
24
|
-
exports
|
|
25
|
-
const
|
|
26
|
-
exports
|
|
27
|
-
const
|
|
28
|
-
exports
|
|
29
|
-
const
|
|
30
|
-
exports
|
|
31
|
-
const
|
|
32
|
-
exports
|
|
33
|
-
const
|
|
34
|
-
exports
|
|
35
|
-
const
|
|
36
|
-
exports
|
|
37
|
-
const
|
|
38
|
-
exports
|
|
39
|
-
const
|
|
40
|
-
exports
|
|
41
|
-
const
|
|
42
|
-
exports
|
|
43
|
-
const
|
|
44
|
-
exports
|
|
45
|
-
const
|
|
46
|
-
exports
|
|
47
|
-
const
|
|
48
|
-
exports
|
|
49
|
-
const
|
|
50
|
-
exports
|
|
51
|
-
const
|
|
52
|
-
exports
|
|
53
|
-
const
|
|
54
|
-
exports
|
|
55
|
-
const
|
|
56
|
-
exports
|
|
57
|
-
const
|
|
58
|
-
exports
|
|
59
|
-
const
|
|
60
|
-
exports
|
|
61
|
-
const
|
|
62
|
-
exports
|
|
63
|
-
const
|
|
64
|
-
exports
|
|
65
|
-
const
|
|
66
|
-
exports
|
|
67
|
-
const
|
|
68
|
-
exports
|
|
69
|
-
const
|
|
70
|
-
exports
|
|
15
|
+
exports.UMT_Math = exports.UMTMathClass = exports.valueSwap = exports.toKelvin = exports.toCelsius = exports.toBinary = exports.subtract = exports.standardDeviation = exports.softmax = exports.roundOf = exports.repeatedTrial = exports.reduce = exports.random = exports.radToDeg = exports.quotient = exports.primeFactorization = exports.nPr = exports.nHr = exports.nCr = exports.multiplication = exports.multiples = exports.min = exports.max = exports.mathSeparator = exports.mathConverter = exports.lcm = exports.isPrimeNumber = exports.isNumber = exports.isDouble = exports.getDecimalLength = exports.gcd = exports.factorize = exports.factorial = exports.division = exports.deviationValue = exports.degToRad = exports.calculator = exports.average = exports.addition = void 0;
|
|
16
|
+
const addition_1 = require("./addition");
|
|
17
|
+
Object.defineProperty(exports, "addition", { enumerable: true, get: function () { return addition_1.addition; } });
|
|
18
|
+
const average_1 = require("./average");
|
|
19
|
+
Object.defineProperty(exports, "average", { enumerable: true, get: function () { return average_1.average; } });
|
|
20
|
+
const calculator_1 = require("./calculator");
|
|
21
|
+
Object.defineProperty(exports, "calculator", { enumerable: true, get: function () { return calculator_1.calculator; } });
|
|
22
|
+
const degToRad_1 = require("./degToRad");
|
|
23
|
+
Object.defineProperty(exports, "degToRad", { enumerable: true, get: function () { return degToRad_1.degToRad; } });
|
|
24
|
+
const deviationValue_1 = require("./deviationValue");
|
|
25
|
+
Object.defineProperty(exports, "deviationValue", { enumerable: true, get: function () { return deviationValue_1.deviationValue; } });
|
|
26
|
+
const division_1 = require("./division");
|
|
27
|
+
Object.defineProperty(exports, "division", { enumerable: true, get: function () { return division_1.division; } });
|
|
28
|
+
const factorial_1 = require("./factorial");
|
|
29
|
+
Object.defineProperty(exports, "factorial", { enumerable: true, get: function () { return factorial_1.factorial; } });
|
|
30
|
+
const factorize_1 = require("./factorize");
|
|
31
|
+
Object.defineProperty(exports, "factorize", { enumerable: true, get: function () { return factorize_1.factorize; } });
|
|
32
|
+
const gcd_1 = require("./gcd");
|
|
33
|
+
Object.defineProperty(exports, "gcd", { enumerable: true, get: function () { return gcd_1.gcd; } });
|
|
34
|
+
const getDecimalLength_1 = require("./getDecimalLength");
|
|
35
|
+
Object.defineProperty(exports, "getDecimalLength", { enumerable: true, get: function () { return getDecimalLength_1.getDecimalLength; } });
|
|
36
|
+
const isDouble_1 = require("./isDouble");
|
|
37
|
+
Object.defineProperty(exports, "isDouble", { enumerable: true, get: function () { return isDouble_1.isDouble; } });
|
|
38
|
+
const isNumber_1 = require("./isNumber");
|
|
39
|
+
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return isNumber_1.isNumber; } });
|
|
40
|
+
const isPrimeNumber_1 = require("./isPrimeNumber");
|
|
41
|
+
Object.defineProperty(exports, "isPrimeNumber", { enumerable: true, get: function () { return isPrimeNumber_1.isPrimeNumber; } });
|
|
42
|
+
const lcm_1 = require("./lcm");
|
|
43
|
+
Object.defineProperty(exports, "lcm", { enumerable: true, get: function () { return lcm_1.lcm; } });
|
|
44
|
+
const mathConverter_1 = require("./mathConverter");
|
|
45
|
+
Object.defineProperty(exports, "mathConverter", { enumerable: true, get: function () { return mathConverter_1.mathConverter; } });
|
|
46
|
+
const mathSeparator_1 = require("./mathSeparator");
|
|
47
|
+
Object.defineProperty(exports, "mathSeparator", { enumerable: true, get: function () { return mathSeparator_1.mathSeparator; } });
|
|
48
|
+
const max_1 = require("./max");
|
|
49
|
+
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } });
|
|
50
|
+
const min_1 = require("./min");
|
|
51
|
+
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } });
|
|
52
|
+
const multiples_1 = require("./multiples");
|
|
53
|
+
Object.defineProperty(exports, "multiples", { enumerable: true, get: function () { return multiples_1.multiples; } });
|
|
54
|
+
const multiplication_1 = require("./multiplication");
|
|
55
|
+
Object.defineProperty(exports, "multiplication", { enumerable: true, get: function () { return multiplication_1.multiplication; } });
|
|
56
|
+
const nCr_1 = require("./nCr");
|
|
57
|
+
Object.defineProperty(exports, "nCr", { enumerable: true, get: function () { return nCr_1.nCr; } });
|
|
58
|
+
const nHr_1 = require("./nHr");
|
|
59
|
+
Object.defineProperty(exports, "nHr", { enumerable: true, get: function () { return nHr_1.nHr; } });
|
|
60
|
+
const nPr_1 = require("./nPr");
|
|
61
|
+
Object.defineProperty(exports, "nPr", { enumerable: true, get: function () { return nPr_1.nPr; } });
|
|
62
|
+
const primeFactorization_1 = require("./primeFactorization");
|
|
63
|
+
Object.defineProperty(exports, "primeFactorization", { enumerable: true, get: function () { return primeFactorization_1.primeFactorization; } });
|
|
64
|
+
const quotient_1 = require("./quotient");
|
|
65
|
+
Object.defineProperty(exports, "quotient", { enumerable: true, get: function () { return quotient_1.quotient; } });
|
|
66
|
+
const radToDeg_1 = require("./radToDeg");
|
|
67
|
+
Object.defineProperty(exports, "radToDeg", { enumerable: true, get: function () { return radToDeg_1.radToDeg; } });
|
|
68
|
+
const random_1 = require("./random");
|
|
69
|
+
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return random_1.random; } });
|
|
70
|
+
const reduce_1 = require("./reduce");
|
|
71
|
+
Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return reduce_1.reduce; } });
|
|
72
|
+
const repeatedTrial_1 = require("./repeatedTrial");
|
|
73
|
+
Object.defineProperty(exports, "repeatedTrial", { enumerable: true, get: function () { return repeatedTrial_1.repeatedTrial; } });
|
|
74
|
+
const roundOff_1 = require("./roundOff");
|
|
75
|
+
Object.defineProperty(exports, "roundOf", { enumerable: true, get: function () { return roundOff_1.roundOf; } });
|
|
76
|
+
const softmax_1 = require("./softmax");
|
|
77
|
+
Object.defineProperty(exports, "softmax", { enumerable: true, get: function () { return softmax_1.softmax; } });
|
|
78
|
+
const standardDeviation_1 = require("./standardDeviation");
|
|
79
|
+
Object.defineProperty(exports, "standardDeviation", { enumerable: true, get: function () { return standardDeviation_1.standardDeviation; } });
|
|
80
|
+
const subtract_1 = require("./subtract");
|
|
81
|
+
Object.defineProperty(exports, "subtract", { enumerable: true, get: function () { return subtract_1.subtract; } });
|
|
82
|
+
const toBinary_1 = require("./toBinary");
|
|
83
|
+
Object.defineProperty(exports, "toBinary", { enumerable: true, get: function () { return toBinary_1.toBinary; } });
|
|
84
|
+
const toCelsius_1 = require("./toCelsius");
|
|
85
|
+
Object.defineProperty(exports, "toCelsius", { enumerable: true, get: function () { return toCelsius_1.toCelsius; } });
|
|
86
|
+
const toKelvin_1 = require("./toKelvin");
|
|
87
|
+
Object.defineProperty(exports, "toKelvin", { enumerable: true, get: function () { return toKelvin_1.toKelvin; } });
|
|
88
|
+
const valueSwap_1 = require("./valueSwap");
|
|
89
|
+
Object.defineProperty(exports, "valueSwap", { enumerable: true, get: function () { return valueSwap_1.valueSwap; } });
|
|
90
|
+
class UMTMathClass {
|
|
91
|
+
constructor() {
|
|
92
|
+
_UMTMathClass_Localaddition.set(this, void 0);
|
|
93
|
+
_UMTMathClass_Localaverage.set(this, void 0);
|
|
94
|
+
_UMTMathClass_Localcalculator.set(this, void 0);
|
|
95
|
+
_UMTMathClass_LocaldegToRad.set(this, void 0);
|
|
96
|
+
_UMTMathClass_LocaldeviationValue.set(this, void 0);
|
|
97
|
+
_UMTMathClass_Localdivision.set(this, void 0);
|
|
98
|
+
_UMTMathClass_Localfactorial.set(this, void 0);
|
|
99
|
+
_UMTMathClass_Localfactorize.set(this, void 0);
|
|
100
|
+
_UMTMathClass_Localgcd.set(this, void 0);
|
|
101
|
+
_UMTMathClass_LocalgetDecimalLength.set(this, void 0);
|
|
102
|
+
_UMTMathClass_LocalisDouble.set(this, void 0);
|
|
103
|
+
_UMTMathClass_LocalisNumber.set(this, void 0);
|
|
104
|
+
_UMTMathClass_LocalisPrimeNumber.set(this, void 0);
|
|
105
|
+
_UMTMathClass_Locallcm.set(this, void 0);
|
|
106
|
+
_UMTMathClass_LocalmathConverter.set(this, void 0);
|
|
107
|
+
_UMTMathClass_LocalmathSeparator.set(this, void 0);
|
|
108
|
+
_UMTMathClass_Localmax.set(this, void 0);
|
|
109
|
+
_UMTMathClass_Localmin.set(this, void 0);
|
|
110
|
+
_UMTMathClass_Localmultiples.set(this, void 0);
|
|
111
|
+
_UMTMathClass_Localmultiplication.set(this, void 0);
|
|
112
|
+
_UMTMathClass_LocalnCr.set(this, void 0);
|
|
113
|
+
_UMTMathClass_LocalnHr.set(this, void 0);
|
|
114
|
+
_UMTMathClass_LocalnPr.set(this, void 0);
|
|
115
|
+
_UMTMathClass_LocalprimeFactorization.set(this, void 0);
|
|
116
|
+
_UMTMathClass_Localquotient.set(this, void 0);
|
|
117
|
+
_UMTMathClass_LocalradToDeg.set(this, void 0);
|
|
118
|
+
_UMTMathClass_Localrandom.set(this, void 0);
|
|
119
|
+
_UMTMathClass_Localreduce.set(this, void 0);
|
|
120
|
+
_UMTMathClass_LocalrepeatedTrial.set(this, void 0);
|
|
121
|
+
_UMTMathClass_LocalroundOf.set(this, void 0);
|
|
122
|
+
_UMTMathClass_Localsoftmax.set(this, void 0);
|
|
123
|
+
_UMTMathClass_LocalstandardDeviation.set(this, void 0);
|
|
124
|
+
_UMTMathClass_Localsubtract.set(this, void 0);
|
|
125
|
+
_UMTMathClass_LocaltoBinary.set(this, void 0);
|
|
126
|
+
_UMTMathClass_LocaltoCelsius.set(this, void 0);
|
|
127
|
+
_UMTMathClass_LocaltoKelvin.set(this, void 0);
|
|
128
|
+
_UMTMathClass_LocalvalueSwap.set(this, void 0);
|
|
129
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localaddition, addition_1.addition, "f");
|
|
130
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localaverage, average_1.average, "f");
|
|
131
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localcalculator, calculator_1.calculator, "f");
|
|
132
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocaldegToRad, degToRad_1.degToRad, "f");
|
|
133
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocaldeviationValue, deviationValue_1.deviationValue, "f");
|
|
134
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localdivision, division_1.division, "f");
|
|
135
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localfactorial, factorial_1.factorial, "f");
|
|
136
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localfactorize, factorize_1.factorize, "f");
|
|
137
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localgcd, gcd_1.gcd, "f");
|
|
138
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalgetDecimalLength, getDecimalLength_1.getDecimalLength, "f");
|
|
139
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalisDouble, isDouble_1.isDouble, "f");
|
|
140
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalisNumber, isNumber_1.isNumber, "f");
|
|
141
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalisPrimeNumber, isPrimeNumber_1.isPrimeNumber, "f");
|
|
142
|
+
__classPrivateFieldSet(this, _UMTMathClass_Locallcm, lcm_1.lcm, "f");
|
|
143
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalmathConverter, mathConverter_1.mathConverter, "f");
|
|
144
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalmathSeparator, mathSeparator_1.mathSeparator, "f");
|
|
145
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localmax, max_1.max, "f");
|
|
146
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localmin, min_1.min, "f");
|
|
147
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localmultiples, multiples_1.multiples, "f");
|
|
148
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localmultiplication, multiplication_1.multiplication, "f");
|
|
149
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalnCr, nCr_1.nCr, "f");
|
|
150
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalnHr, nHr_1.nHr, "f");
|
|
151
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalnPr, nPr_1.nPr, "f");
|
|
152
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalprimeFactorization, primeFactorization_1.primeFactorization, "f");
|
|
153
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localquotient, quotient_1.quotient, "f");
|
|
154
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalradToDeg, radToDeg_1.radToDeg, "f");
|
|
155
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localrandom, random_1.random, "f");
|
|
156
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localreduce, reduce_1.reduce, "f");
|
|
157
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalrepeatedTrial, repeatedTrial_1.repeatedTrial, "f");
|
|
158
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalroundOf, roundOff_1.roundOf, "f");
|
|
159
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localsoftmax, softmax_1.softmax, "f");
|
|
160
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalstandardDeviation, standardDeviation_1.standardDeviation, "f");
|
|
161
|
+
__classPrivateFieldSet(this, _UMTMathClass_Localsubtract, subtract_1.subtract, "f");
|
|
162
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocaltoBinary, toBinary_1.toBinary, "f");
|
|
163
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocaltoCelsius, toCelsius_1.toCelsius, "f");
|
|
164
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocaltoKelvin, toKelvin_1.toKelvin, "f");
|
|
165
|
+
__classPrivateFieldSet(this, _UMTMathClass_LocalvalueSwap, valueSwap_1.valueSwap, "f");
|
|
166
|
+
}
|
|
167
|
+
get addition() {
|
|
168
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localaddition, "f");
|
|
169
|
+
}
|
|
170
|
+
get average() {
|
|
171
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localaverage, "f");
|
|
172
|
+
}
|
|
173
|
+
get calculator() {
|
|
174
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localcalculator, "f");
|
|
175
|
+
}
|
|
176
|
+
get degToRad() {
|
|
177
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocaldegToRad, "f");
|
|
178
|
+
}
|
|
179
|
+
get deviationValue() {
|
|
180
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocaldeviationValue, "f");
|
|
181
|
+
}
|
|
182
|
+
get division() {
|
|
183
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localdivision, "f");
|
|
184
|
+
}
|
|
185
|
+
get factorial() {
|
|
186
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localfactorial, "f");
|
|
187
|
+
}
|
|
188
|
+
get factorize() {
|
|
189
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localfactorize, "f");
|
|
190
|
+
}
|
|
191
|
+
get gcd() {
|
|
192
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localgcd, "f");
|
|
193
|
+
}
|
|
194
|
+
get getDecimalLength() {
|
|
195
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalgetDecimalLength, "f");
|
|
196
|
+
}
|
|
197
|
+
get isDouble() {
|
|
198
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalisDouble, "f");
|
|
199
|
+
}
|
|
200
|
+
get isNumber() {
|
|
201
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalisNumber, "f");
|
|
202
|
+
}
|
|
203
|
+
get isPrimeNumber() {
|
|
204
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalisPrimeNumber, "f");
|
|
205
|
+
}
|
|
206
|
+
get lcm() {
|
|
207
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Locallcm, "f");
|
|
208
|
+
}
|
|
209
|
+
get mathConverter() {
|
|
210
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalmathConverter, "f");
|
|
211
|
+
}
|
|
212
|
+
get mathSeparator() {
|
|
213
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalmathSeparator, "f");
|
|
214
|
+
}
|
|
215
|
+
get max() {
|
|
216
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localmax, "f");
|
|
217
|
+
}
|
|
218
|
+
get min() {
|
|
219
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localmin, "f");
|
|
220
|
+
}
|
|
221
|
+
get multiples() {
|
|
222
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localmultiples, "f");
|
|
223
|
+
}
|
|
224
|
+
get multiplication() {
|
|
225
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localmultiplication, "f");
|
|
226
|
+
}
|
|
227
|
+
get nCr() {
|
|
228
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalnCr, "f");
|
|
229
|
+
}
|
|
230
|
+
get nHr() {
|
|
231
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalnHr, "f");
|
|
232
|
+
}
|
|
233
|
+
get nPr() {
|
|
234
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalnPr, "f");
|
|
235
|
+
}
|
|
236
|
+
get primeFactorization() {
|
|
237
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalprimeFactorization, "f");
|
|
238
|
+
}
|
|
239
|
+
get quotient() {
|
|
240
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localquotient, "f");
|
|
241
|
+
}
|
|
242
|
+
get radToDeg() {
|
|
243
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalradToDeg, "f");
|
|
244
|
+
}
|
|
245
|
+
get random() {
|
|
246
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localrandom, "f");
|
|
247
|
+
}
|
|
248
|
+
get reduce() {
|
|
249
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localreduce, "f");
|
|
250
|
+
}
|
|
251
|
+
get repeatedTrial() {
|
|
252
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalrepeatedTrial, "f");
|
|
253
|
+
}
|
|
254
|
+
get roundOf() {
|
|
255
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalroundOf, "f");
|
|
256
|
+
}
|
|
257
|
+
get softmax() {
|
|
258
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localsoftmax, "f");
|
|
259
|
+
}
|
|
260
|
+
get standardDeviation() {
|
|
261
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalstandardDeviation, "f");
|
|
262
|
+
}
|
|
263
|
+
get subtract() {
|
|
264
|
+
return __classPrivateFieldGet(this, _UMTMathClass_Localsubtract, "f");
|
|
265
|
+
}
|
|
266
|
+
get toBinary() {
|
|
267
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocaltoBinary, "f");
|
|
268
|
+
}
|
|
269
|
+
get toCelsius() {
|
|
270
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocaltoCelsius, "f");
|
|
271
|
+
}
|
|
272
|
+
get toKelvin() {
|
|
273
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocaltoKelvin, "f");
|
|
274
|
+
}
|
|
275
|
+
get valueSwap() {
|
|
276
|
+
return __classPrivateFieldGet(this, _UMTMathClass_LocalvalueSwap, "f");
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
exports.UMTMathClass = UMTMathClass;
|
|
280
|
+
_UMTMathClass_Localaddition = new WeakMap(), _UMTMathClass_Localaverage = new WeakMap(), _UMTMathClass_Localcalculator = new WeakMap(), _UMTMathClass_LocaldegToRad = new WeakMap(), _UMTMathClass_LocaldeviationValue = new WeakMap(), _UMTMathClass_Localdivision = new WeakMap(), _UMTMathClass_Localfactorial = new WeakMap(), _UMTMathClass_Localfactorize = new WeakMap(), _UMTMathClass_Localgcd = new WeakMap(), _UMTMathClass_LocalgetDecimalLength = new WeakMap(), _UMTMathClass_LocalisDouble = new WeakMap(), _UMTMathClass_LocalisNumber = new WeakMap(), _UMTMathClass_LocalisPrimeNumber = new WeakMap(), _UMTMathClass_Locallcm = new WeakMap(), _UMTMathClass_LocalmathConverter = new WeakMap(), _UMTMathClass_LocalmathSeparator = new WeakMap(), _UMTMathClass_Localmax = new WeakMap(), _UMTMathClass_Localmin = new WeakMap(), _UMTMathClass_Localmultiples = new WeakMap(), _UMTMathClass_Localmultiplication = new WeakMap(), _UMTMathClass_LocalnCr = new WeakMap(), _UMTMathClass_LocalnHr = new WeakMap(), _UMTMathClass_LocalnPr = new WeakMap(), _UMTMathClass_LocalprimeFactorization = new WeakMap(), _UMTMathClass_Localquotient = new WeakMap(), _UMTMathClass_LocalradToDeg = new WeakMap(), _UMTMathClass_Localrandom = new WeakMap(), _UMTMathClass_Localreduce = new WeakMap(), _UMTMathClass_LocalrepeatedTrial = new WeakMap(), _UMTMathClass_LocalroundOf = new WeakMap(), _UMTMathClass_Localsoftmax = new WeakMap(), _UMTMathClass_LocalstandardDeviation = new WeakMap(), _UMTMathClass_Localsubtract = new WeakMap(), _UMTMathClass_LocaltoBinary = new WeakMap(), _UMTMathClass_LocaltoCelsius = new WeakMap(), _UMTMathClass_LocaltoKelvin = new WeakMap(), _UMTMathClass_LocalvalueSwap = new WeakMap();
|
|
281
|
+
exports.UMT_Math = new UMTMathClass();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 小数点を含むかどうか
|
|
3
3
|
* @param {any} x
|
|
4
|
+
* @param {boolean} [isStrict=true] - 文字列も対象にするかどうか
|
|
5
|
+
* @returns boolean
|
|
4
6
|
*/
|
|
5
|
-
declare const isDouble: (x: any, loose?: boolean) => boolean;
|
|
6
|
-
export default isDouble;
|
|
7
|
+
export declare const isDouble: (x: any, loose?: boolean) => boolean;
|
package/module/Math/isDouble.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDouble = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* 小数点を含むかどうか
|
|
5
6
|
* @param {any} x
|
|
7
|
+
* @param {boolean} [isStrict=true] - 文字列も対象にするかどうか
|
|
8
|
+
* @returns boolean
|
|
6
9
|
*/
|
|
7
10
|
const isDouble = (x, loose = true) => {
|
|
8
11
|
if (loose) {
|
|
@@ -15,4 +18,4 @@ const isDouble = (x, loose = true) => {
|
|
|
15
18
|
return (x !== null && typeof x !== 'boolean' && Number.isFinite(x));
|
|
16
19
|
}
|
|
17
20
|
};
|
|
18
|
-
exports.
|
|
21
|
+
exports.isDouble = isDouble;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 数字かどうか
|
|
3
3
|
* @param {any} x
|
|
4
|
-
* @param {boolean} loose
|
|
4
|
+
* @param {boolean} loose 文字列も対象にするかどうか
|
|
5
|
+
* @returns boolean
|
|
5
6
|
*/
|
|
6
|
-
declare const isNumber: (x: any, loose?: boolean) => boolean;
|
|
7
|
-
export default isNumber;
|
|
7
|
+
export declare const isNumber: (x: any, loose?: boolean) => boolean;
|
package/module/Math/isNumber.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isNumber = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* 数字かどうか
|
|
5
6
|
* @param {any} x
|
|
6
|
-
* @param {boolean} loose
|
|
7
|
+
* @param {boolean} loose 文字列も対象にするかどうか
|
|
8
|
+
* @returns boolean
|
|
7
9
|
*/
|
|
8
10
|
const isNumber = (x, loose = true) => {
|
|
9
11
|
return x !== null && typeof x !== 'boolean' && loose
|
|
10
12
|
? isFinite(x)
|
|
11
13
|
: Number.isFinite(x);
|
|
12
14
|
};
|
|
13
|
-
exports.
|
|
15
|
+
exports.isNumber = isNumber;
|