pimath 0.0.40 → 0.0.43
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/.eslintrc.js +23 -23
- package/dist/pi.js +235 -288
- package/dist/pi.js.map +1 -1
- package/dist/pi.min.js +1 -1
- package/dist/pi.min.js.map +1 -1
- package/docs/assets/highlight.css +78 -78
- package/docs/assets/icons.css +1043 -1043
- package/docs/assets/main.js +52 -52
- package/docs/assets/style.css +1388 -1388
- package/docs/classes/{algebra.Equation.html → Algebra.Equation.html} +25 -25
- package/docs/classes/algebra.Logicalset.html +4 -4
- package/docs/classes/algebra.Monom.html +113 -113
- package/docs/classes/algebra.Polynom.html +29 -29
- package/docs/classes/algebra.Rational.html +3 -3
- package/docs/classes/coefficients.Fraction.html +18 -18
- package/docs/classes/coefficients.Nthroot.html +2 -2
- package/docs/classes/geometry.Circle.html +2 -2
- package/docs/classes/geometry.Line.html +2 -2
- package/docs/classes/geometry.Triangle.html +16 -16
- package/docs/classes/numeric.Numeric.html +13 -13
- package/docs/classes/shutingyard.Shutingyard.html +17 -17
- package/docs/index.html +10 -10
- package/docs/modules/{algebra.html → Algebra.html} +0 -0
- package/docs/modules/{random.html → Random.html} +0 -0
- package/esm/maths/algebra/polynom.d.ts +0 -2
- package/esm/maths/algebra/polynom.js +0 -22
- package/esm/maths/algebra/polynom.js.map +1 -1
- package/esm/maths/algebra/rational.d.ts +6 -6
- package/esm/maths/algebra/rational.js +19 -39
- package/esm/maths/algebra/rational.js.map +1 -1
- package/esm/maths/coefficients/fraction.js +1 -4
- package/esm/maths/coefficients/fraction.js.map +1 -1
- package/esm/maths/geometry/line.js +0 -8
- package/esm/maths/geometry/line.js.map +1 -1
- package/package.json +1 -1
- package/src/maths/algebra/polynom.ts +0 -28
- package/src/maths/algebra/rational.ts +101 -129
- package/src/maths/coefficients/fraction.ts +1 -5
- package/tests/algebra/rationnal.test.ts +0 -44
package/dist/pi.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/******/ (() => { // webpackBootstrap
|
|
2
|
-
/******/ "use strict";
|
|
3
|
-
/******/ var __webpack_modules__ = ({
|
|
4
|
-
|
|
5
|
-
/***/ 607:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
var __webpack_unused_export__;
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 607:
|
|
6
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
var __webpack_unused_export__;
|
|
9
9
|
|
|
10
10
|
__webpack_unused_export__ = ({ value: true });
|
|
11
11
|
exports.l = void 0;
|
|
@@ -52,13 +52,13 @@ exports.l = {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
window.Pi = exports.l;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/***/ }),
|
|
58
|
-
|
|
59
|
-
/***/ 760:
|
|
60
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
61
|
-
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/***/ }),
|
|
58
|
+
|
|
59
|
+
/***/ 760:
|
|
60
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
61
|
+
|
|
62
62
|
|
|
63
63
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
64
64
|
exports.Equation = void 0;
|
|
@@ -753,13 +753,13 @@ class Equation {
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
exports.Equation = Equation;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
/***/ }),
|
|
759
|
-
|
|
760
|
-
/***/ 554:
|
|
761
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
762
|
-
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
/***/ }),
|
|
759
|
+
|
|
760
|
+
/***/ 554:
|
|
761
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
762
|
+
|
|
763
763
|
|
|
764
764
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
765
765
|
exports.LinearSystem = void 0;
|
|
@@ -1020,13 +1020,13 @@ class LinearSystem {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
exports.LinearSystem = LinearSystem;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
/***/ }),
|
|
1026
|
-
|
|
1027
|
-
/***/ 236:
|
|
1028
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1029
|
-
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
/***/ }),
|
|
1026
|
+
|
|
1027
|
+
/***/ 236:
|
|
1028
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1029
|
+
|
|
1030
1030
|
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Polynom module contains everything necessary to handle polynoms.
|
|
@@ -1184,13 +1184,13 @@ class Logicalset {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
exports.Logicalset = Logicalset;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
/***/ }),
|
|
1190
|
-
|
|
1191
|
-
/***/ 937:
|
|
1192
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1193
|
-
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
/***/ }),
|
|
1190
|
+
|
|
1191
|
+
/***/ 937:
|
|
1192
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1193
|
+
|
|
1194
1194
|
|
|
1195
1195
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1196
1196
|
exports.Monom = void 0;
|
|
@@ -2026,13 +2026,13 @@ Monom.xmultiply = (...monoms) => {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
return M;
|
|
2028
2028
|
};
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
/***/ }),
|
|
2032
|
-
|
|
2033
|
-
/***/ 38:
|
|
2034
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2035
|
-
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
/***/ }),
|
|
2032
|
+
|
|
2033
|
+
/***/ 38:
|
|
2034
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2035
|
+
|
|
2036
2036
|
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Polynom module contains everything necessary to handle polynoms.*
|
|
@@ -2736,28 +2736,6 @@ class Polynom {
|
|
|
2736
2736
|
}
|
|
2737
2737
|
return M;
|
|
2738
2738
|
};
|
|
2739
|
-
this.limitToInfinity = (letter) => {
|
|
2740
|
-
const M = this.monomByDegree(undefined, letter), sign = M.coefficient.sign(), degree = M.degree(letter);
|
|
2741
|
-
if (degree.isStrictlyPositive()) {
|
|
2742
|
-
return sign === 1 ? (new fraction_1.Fraction()).infinite() : (new fraction_1.Fraction()).infinite().opposed();
|
|
2743
|
-
}
|
|
2744
|
-
else if (degree.isZero()) {
|
|
2745
|
-
return M.coefficient;
|
|
2746
|
-
}
|
|
2747
|
-
// Any other cases
|
|
2748
|
-
return (new fraction_1.Fraction()).zero();
|
|
2749
|
-
};
|
|
2750
|
-
this.limitToNegativeInfinity = (letter) => {
|
|
2751
|
-
const M = this.monomByDegree(undefined, letter), sign = M.coefficient.sign(), degree = M.degree(letter);
|
|
2752
|
-
if (degree.isStrictlyPositive()) {
|
|
2753
|
-
return sign === -1 ? (new fraction_1.Fraction()).infinite() : (new fraction_1.Fraction()).infinite().opposed();
|
|
2754
|
-
}
|
|
2755
|
-
else if (degree.isZero()) {
|
|
2756
|
-
return M.coefficient;
|
|
2757
|
-
}
|
|
2758
|
-
// Any other cases
|
|
2759
|
-
return (new fraction_1.Fraction()).zero();
|
|
2760
|
-
};
|
|
2761
2739
|
this.genDisplay = (output, forceSign, wrapParentheses) => {
|
|
2762
2740
|
let P = '';
|
|
2763
2741
|
for (const k of this._monoms) {
|
|
@@ -3194,13 +3172,13 @@ Polynom.addToken = (stack, element) => {
|
|
|
3194
3172
|
break;
|
|
3195
3173
|
}
|
|
3196
3174
|
};
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
/***/ }),
|
|
3200
|
-
|
|
3201
|
-
/***/ 107:
|
|
3202
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3203
|
-
|
|
3175
|
+
|
|
3176
|
+
|
|
3177
|
+
/***/ }),
|
|
3178
|
+
|
|
3179
|
+
/***/ 107:
|
|
3180
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3181
|
+
|
|
3204
3182
|
|
|
3205
3183
|
/**
|
|
3206
3184
|
* Rational polynom module contains everything necessary to handle rational polynoms.
|
|
@@ -3260,7 +3238,9 @@ class Rational {
|
|
|
3260
3238
|
return this;
|
|
3261
3239
|
};
|
|
3262
3240
|
this.reduce = () => {
|
|
3241
|
+
console.log(this._numerator.tex);
|
|
3263
3242
|
this._numerator.factorize();
|
|
3243
|
+
console.log(this._numerator.factors.map(x => x.tex));
|
|
3264
3244
|
for (let f of this._numerator.factors) {
|
|
3265
3245
|
this.simplify(f);
|
|
3266
3246
|
}
|
|
@@ -3285,55 +3265,27 @@ class Rational {
|
|
|
3285
3265
|
this.subtract = (R) => {
|
|
3286
3266
|
return this.add(R.clone().opposed());
|
|
3287
3267
|
};
|
|
3288
|
-
this.limits = (value,
|
|
3268
|
+
this.limits = (value, letter) => {
|
|
3289
3269
|
if (value === Infinity || value === -Infinity) {
|
|
3290
|
-
let
|
|
3291
|
-
|
|
3292
|
-
if (
|
|
3293
|
-
return value
|
|
3294
|
-
// return quotient.monomByDegree(undefined, letter).coefficient.sign()===1?(new Fraction()).infinite():(new Fraction()).infinite().opposed()
|
|
3270
|
+
let N = this._numerator.monomByDegree(this._numerator.degree(letter), letter), D = this._denominator.monomByDegree(this._denominator.degree(letter), letter);
|
|
3271
|
+
N.divide(D);
|
|
3272
|
+
if (N.degree(letter).isStrictlyPositive()) {
|
|
3273
|
+
return N.coefficient.sign() * (Math.pow((value > 0 ? 1 : -1), N.degree(letter).value % 2)) === 1 ? Infinity : -Infinity;
|
|
3295
3274
|
}
|
|
3296
|
-
|
|
3297
|
-
return
|
|
3275
|
+
if (N.degree(letter).isZero()) {
|
|
3276
|
+
return N.coefficient;
|
|
3277
|
+
}
|
|
3278
|
+
if (N.degree(letter).isStrictlyPositive()) {
|
|
3279
|
+
return N.coefficient.sign() * (Math.pow(-1, N.degree(letter).value % 2)) === 1 ? 0 : -0;
|
|
3298
3280
|
}
|
|
3299
3281
|
}
|
|
3300
3282
|
else {
|
|
3301
|
-
|
|
3302
|
-
evalValues[letter === undefined ? 'x' : letter] = new fraction_1.Fraction(value);
|
|
3303
|
-
if (offset !== 'above' && offset !== 'below') {
|
|
3304
|
-
theLimit = FR._numerator.evaluate(evalValues)
|
|
3305
|
-
.divide(FR._denominator.evaluate(evalValues));
|
|
3306
|
-
return theLimit.isInfinity() ? theLimit.abs() : theLimit;
|
|
3307
|
-
}
|
|
3308
|
-
else {
|
|
3309
|
-
if (offset === 'above') {
|
|
3310
|
-
evalValuesOffset[letter === undefined ? 'x' : letter] = (new fraction_1.Fraction(value)).add(0.000001);
|
|
3311
|
-
}
|
|
3312
|
-
else if (offset === 'below') {
|
|
3313
|
-
evalValuesOffset[letter === undefined ? 'x' : letter] = (new fraction_1.Fraction(value)).subtract(0.000001);
|
|
3314
|
-
}
|
|
3315
|
-
theLimit = FR._numerator.evaluate(evalValues)
|
|
3316
|
-
.divide(FR._denominator.evaluate(evalValues));
|
|
3317
|
-
theSign = FR._numerator.evaluate(evalValuesOffset)
|
|
3318
|
-
.divide(FR._denominator.evaluate(evalValuesOffset)).sign();
|
|
3319
|
-
if (theLimit.isInfinity()) {
|
|
3320
|
-
return theSign === 1 ? theLimit.abs() : theLimit.abs().opposed();
|
|
3321
|
-
}
|
|
3322
|
-
else {
|
|
3323
|
-
return theLimit;
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3283
|
+
return this._numerator.evaluate({ letter: new fraction_1.Fraction(value) }).divide(this._denominator.evaluate({ letter: new fraction_1.Fraction(value) }));
|
|
3326
3284
|
}
|
|
3327
3285
|
};
|
|
3328
3286
|
this._numerator = numerator ? numerator.clone() : new polynom_1.Polynom();
|
|
3329
3287
|
this._denominator = denominator ? denominator.clone() : new polynom_1.Polynom();
|
|
3330
3288
|
}
|
|
3331
|
-
get numerator() {
|
|
3332
|
-
return this._numerator;
|
|
3333
|
-
}
|
|
3334
|
-
get denominator() {
|
|
3335
|
-
return this._denominator;
|
|
3336
|
-
}
|
|
3337
3289
|
get tex() {
|
|
3338
3290
|
return `\\dfrac{ ${this._numerator.tex} }{ ${this._denominator.tex} }`;
|
|
3339
3291
|
}
|
|
@@ -3342,15 +3294,21 @@ class Rational {
|
|
|
3342
3294
|
this._denominator.factorize();
|
|
3343
3295
|
return `\\dfrac{ ${this._numerator.texFactors} }{ ${this._denominator.texFactors} }`;
|
|
3344
3296
|
}
|
|
3297
|
+
get numerator() {
|
|
3298
|
+
return this._numerator;
|
|
3299
|
+
}
|
|
3300
|
+
get denominator() {
|
|
3301
|
+
return this._denominator;
|
|
3302
|
+
}
|
|
3345
3303
|
}
|
|
3346
3304
|
exports.Rational = Rational;
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
/***/ }),
|
|
3350
|
-
|
|
3351
|
-
/***/ 506:
|
|
3352
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3353
|
-
|
|
3305
|
+
|
|
3306
|
+
|
|
3307
|
+
/***/ }),
|
|
3308
|
+
|
|
3309
|
+
/***/ 506:
|
|
3310
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3311
|
+
|
|
3354
3312
|
|
|
3355
3313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3356
3314
|
exports.Fraction = void 0;
|
|
@@ -3681,7 +3639,7 @@ class Fraction {
|
|
|
3681
3639
|
return isNaN(this._numerator);
|
|
3682
3640
|
};
|
|
3683
3641
|
this.isInfinity = () => {
|
|
3684
|
-
return
|
|
3642
|
+
return this._numerator === Infinity;
|
|
3685
3643
|
};
|
|
3686
3644
|
this.isFinite = () => {
|
|
3687
3645
|
return !this.isInfinity();
|
|
@@ -3752,9 +3710,6 @@ class Fraction {
|
|
|
3752
3710
|
}
|
|
3753
3711
|
// Display getter
|
|
3754
3712
|
get tex() {
|
|
3755
|
-
if (this.isInfinity()) {
|
|
3756
|
-
return `${this.sign() === 1 ? '+' : '-'}\\infty`;
|
|
3757
|
-
}
|
|
3758
3713
|
if (this._denominator === 1) {
|
|
3759
3714
|
return `${this._numerator}`;
|
|
3760
3715
|
}
|
|
@@ -3805,13 +3760,13 @@ Fraction.min = (...fractions) => {
|
|
|
3805
3760
|
}
|
|
3806
3761
|
return M;
|
|
3807
3762
|
};
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
/***/ }),
|
|
3811
|
-
|
|
3812
|
-
/***/ 923:
|
|
3813
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
3814
|
-
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
/***/ }),
|
|
3766
|
+
|
|
3767
|
+
/***/ 923:
|
|
3768
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
3769
|
+
|
|
3815
3770
|
|
|
3816
3771
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3817
3772
|
exports.Nthroot = void 0;
|
|
@@ -3925,13 +3880,13 @@ class Nthroot {
|
|
|
3925
3880
|
}
|
|
3926
3881
|
}
|
|
3927
3882
|
exports.Nthroot = Nthroot;
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
/***/ }),
|
|
3931
|
-
|
|
3932
|
-
/***/ 735:
|
|
3933
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3934
|
-
|
|
3883
|
+
|
|
3884
|
+
|
|
3885
|
+
/***/ }),
|
|
3886
|
+
|
|
3887
|
+
/***/ 735:
|
|
3888
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3889
|
+
|
|
3935
3890
|
|
|
3936
3891
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3937
3892
|
exports.NumExp = void 0;
|
|
@@ -4086,13 +4041,13 @@ class NumExp {
|
|
|
4086
4041
|
}
|
|
4087
4042
|
}
|
|
4088
4043
|
exports.NumExp = NumExp;
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
/***/ }),
|
|
4092
|
-
|
|
4093
|
-
/***/ 75:
|
|
4094
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4095
|
-
|
|
4044
|
+
|
|
4045
|
+
|
|
4046
|
+
/***/ }),
|
|
4047
|
+
|
|
4048
|
+
/***/ 75:
|
|
4049
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4050
|
+
|
|
4096
4051
|
|
|
4097
4052
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4098
4053
|
exports.PolynomExpProduct = exports.PolynomExpFactor = void 0;
|
|
@@ -4338,13 +4293,13 @@ class PolynomExpProduct {
|
|
|
4338
4293
|
}
|
|
4339
4294
|
}
|
|
4340
4295
|
exports.PolynomExpProduct = PolynomExpProduct;
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
/***/ }),
|
|
4344
|
-
|
|
4345
|
-
/***/ 699:
|
|
4346
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4347
|
-
|
|
4296
|
+
|
|
4297
|
+
|
|
4298
|
+
/***/ }),
|
|
4299
|
+
|
|
4300
|
+
/***/ 699:
|
|
4301
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4302
|
+
|
|
4348
4303
|
|
|
4349
4304
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4350
4305
|
exports.Circle = void 0;
|
|
@@ -4651,13 +4606,13 @@ class Circle {
|
|
|
4651
4606
|
}
|
|
4652
4607
|
}
|
|
4653
4608
|
exports.Circle = Circle;
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
/***/ }),
|
|
4657
|
-
|
|
4658
|
-
/***/ 9:
|
|
4659
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4660
|
-
|
|
4609
|
+
|
|
4610
|
+
|
|
4611
|
+
/***/ }),
|
|
4612
|
+
|
|
4613
|
+
/***/ 9:
|
|
4614
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4615
|
+
|
|
4661
4616
|
|
|
4662
4617
|
/**
|
|
4663
4618
|
* This class works for 2d line in a plane.
|
|
@@ -4741,14 +4696,6 @@ class Line {
|
|
|
4741
4696
|
return this.parseByPointAndVector(values[0], values[1]);
|
|
4742
4697
|
}
|
|
4743
4698
|
}
|
|
4744
|
-
else if (values[0] instanceof point_1.Point && values[1] instanceof Line) {
|
|
4745
|
-
if (values[2] === LinePropriety.Parallel || values[2] === null) {
|
|
4746
|
-
return this.parseByPointAndLine(values[0], values[1], LinePropriety.Parallel);
|
|
4747
|
-
}
|
|
4748
|
-
else {
|
|
4749
|
-
return this.parseByPointAndLine(values[0], values[1], LinePropriety.Perpendicular);
|
|
4750
|
-
}
|
|
4751
|
-
}
|
|
4752
4699
|
}
|
|
4753
4700
|
// TODO: Add the ability to create line from a normal vector
|
|
4754
4701
|
console.log('Someting wrong happend while creating the line');
|
|
@@ -5062,13 +5009,13 @@ class Line {
|
|
|
5062
5009
|
exports.Line = Line;
|
|
5063
5010
|
Line.PERPENDICULAR = LinePropriety.Perpendicular;
|
|
5064
5011
|
Line.PARALLEL = LinePropriety.Parallel;
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
/***/ }),
|
|
5068
|
-
|
|
5069
|
-
/***/ 557:
|
|
5070
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5071
|
-
|
|
5012
|
+
|
|
5013
|
+
|
|
5014
|
+
/***/ }),
|
|
5015
|
+
|
|
5016
|
+
/***/ 557:
|
|
5017
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5018
|
+
|
|
5072
5019
|
|
|
5073
5020
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5074
5021
|
exports.Point = void 0;
|
|
@@ -5232,13 +5179,13 @@ Point.pmatrix = (a, b, c) => {
|
|
|
5232
5179
|
return `\\begin{pmatrix} ${a.tex ? a.tex : a} \\\\ ${b.tex ? b.tex : b} \\\\ ${c.tex ? c.tex : c} \\end{pmatrix}`;
|
|
5233
5180
|
}
|
|
5234
5181
|
};
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
/***/ }),
|
|
5238
|
-
|
|
5239
|
-
/***/ 164:
|
|
5240
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5241
|
-
|
|
5182
|
+
|
|
5183
|
+
|
|
5184
|
+
/***/ }),
|
|
5185
|
+
|
|
5186
|
+
/***/ 164:
|
|
5187
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5188
|
+
|
|
5242
5189
|
|
|
5243
5190
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5244
5191
|
exports.Triangle = void 0;
|
|
@@ -5507,13 +5454,13 @@ class Triangle {
|
|
|
5507
5454
|
}
|
|
5508
5455
|
}
|
|
5509
5456
|
exports.Triangle = Triangle;
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
/***/ }),
|
|
5513
|
-
|
|
5514
|
-
/***/ 586:
|
|
5515
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5516
|
-
|
|
5457
|
+
|
|
5458
|
+
|
|
5459
|
+
/***/ }),
|
|
5460
|
+
|
|
5461
|
+
/***/ 586:
|
|
5462
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5463
|
+
|
|
5517
5464
|
|
|
5518
5465
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5519
5466
|
exports.Vector = void 0;
|
|
@@ -5691,13 +5638,13 @@ Vector.scalarProduct = (v1, v2) => {
|
|
|
5691
5638
|
// TODO: Transform to fraction with nthroot.
|
|
5692
5639
|
return v1.x.value * v2.x.value + v1.y.value * v2.y.value;
|
|
5693
5640
|
};
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
/***/ }),
|
|
5697
|
-
|
|
5698
|
-
/***/ 956:
|
|
5699
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5700
|
-
|
|
5641
|
+
|
|
5642
|
+
|
|
5643
|
+
/***/ }),
|
|
5644
|
+
|
|
5645
|
+
/***/ 956:
|
|
5646
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
5647
|
+
|
|
5701
5648
|
|
|
5702
5649
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5703
5650
|
exports.Numeric = void 0;
|
|
@@ -5803,13 +5750,13 @@ class Numeric {
|
|
|
5803
5750
|
}
|
|
5804
5751
|
}
|
|
5805
5752
|
exports.Numeric = Numeric;
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
/***/ }),
|
|
5809
|
-
|
|
5810
|
-
/***/ 330:
|
|
5811
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5812
|
-
|
|
5753
|
+
|
|
5754
|
+
|
|
5755
|
+
/***/ }),
|
|
5756
|
+
|
|
5757
|
+
/***/ 330:
|
|
5758
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5759
|
+
|
|
5813
5760
|
|
|
5814
5761
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5815
5762
|
if (k2 === undefined) k2 = k;
|
|
@@ -5871,13 +5818,13 @@ var Random;
|
|
|
5871
5818
|
}
|
|
5872
5819
|
Random.shuffle = shuffle;
|
|
5873
5820
|
})(Random = exports.Random || (exports.Random = {}));
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
/***/ }),
|
|
5877
|
-
|
|
5878
|
-
/***/ 373:
|
|
5879
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5880
|
-
|
|
5821
|
+
|
|
5822
|
+
|
|
5823
|
+
/***/ }),
|
|
5824
|
+
|
|
5825
|
+
/***/ 373:
|
|
5826
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
5827
|
+
|
|
5881
5828
|
|
|
5882
5829
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5883
5830
|
exports.randomCore = void 0;
|
|
@@ -5899,13 +5846,13 @@ class randomCore {
|
|
|
5899
5846
|
}
|
|
5900
5847
|
}
|
|
5901
5848
|
exports.randomCore = randomCore;
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
/***/ }),
|
|
5905
|
-
|
|
5906
|
-
/***/ 754:
|
|
5907
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5908
|
-
|
|
5849
|
+
|
|
5850
|
+
|
|
5851
|
+
/***/ }),
|
|
5852
|
+
|
|
5853
|
+
/***/ 754:
|
|
5854
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5855
|
+
|
|
5909
5856
|
|
|
5910
5857
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5911
5858
|
exports.rndFraction = void 0;
|
|
@@ -5945,13 +5892,13 @@ class rndFraction extends randomCore_1.randomCore {
|
|
|
5945
5892
|
}
|
|
5946
5893
|
}
|
|
5947
5894
|
exports.rndFraction = rndFraction;
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
/***/ }),
|
|
5951
|
-
|
|
5952
|
-
/***/ 140:
|
|
5953
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
5954
|
-
|
|
5895
|
+
|
|
5896
|
+
|
|
5897
|
+
/***/ }),
|
|
5898
|
+
|
|
5899
|
+
/***/ 140:
|
|
5900
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
5901
|
+
|
|
5955
5902
|
|
|
5956
5903
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5957
5904
|
exports.rndHelpers = void 0;
|
|
@@ -6020,13 +5967,13 @@ class rndHelpers {
|
|
|
6020
5967
|
}
|
|
6021
5968
|
}
|
|
6022
5969
|
exports.rndHelpers = rndHelpers;
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
/***/ }),
|
|
6026
|
-
|
|
6027
|
-
/***/ 793:
|
|
6028
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6029
|
-
|
|
5970
|
+
|
|
5971
|
+
|
|
5972
|
+
/***/ }),
|
|
5973
|
+
|
|
5974
|
+
/***/ 793:
|
|
5975
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5976
|
+
|
|
6030
5977
|
|
|
6031
5978
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6032
5979
|
exports.rndMonom = void 0;
|
|
@@ -6079,13 +6026,13 @@ class rndMonom extends randomCore_1.randomCore {
|
|
|
6079
6026
|
}
|
|
6080
6027
|
}
|
|
6081
6028
|
exports.rndMonom = rndMonom;
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
/***/ }),
|
|
6085
|
-
|
|
6086
|
-
/***/ 22:
|
|
6087
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6088
|
-
|
|
6029
|
+
|
|
6030
|
+
|
|
6031
|
+
/***/ }),
|
|
6032
|
+
|
|
6033
|
+
/***/ 22:
|
|
6034
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6035
|
+
|
|
6089
6036
|
|
|
6090
6037
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6091
6038
|
exports.rndPolynom = void 0;
|
|
@@ -6160,22 +6107,22 @@ class rndPolynom extends randomCore_1.randomCore {
|
|
|
6160
6107
|
}
|
|
6161
6108
|
}
|
|
6162
6109
|
exports.rndPolynom = rndPolynom;
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
/***/ }),
|
|
6166
|
-
|
|
6167
|
-
/***/ 230:
|
|
6168
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6169
|
-
|
|
6110
|
+
|
|
6111
|
+
|
|
6112
|
+
/***/ }),
|
|
6113
|
+
|
|
6114
|
+
/***/ 230:
|
|
6115
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6116
|
+
|
|
6170
6117
|
|
|
6171
6118
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
/***/ }),
|
|
6175
|
-
|
|
6176
|
-
/***/ 505:
|
|
6177
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6178
|
-
|
|
6119
|
+
|
|
6120
|
+
|
|
6121
|
+
/***/ }),
|
|
6122
|
+
|
|
6123
|
+
/***/ 505:
|
|
6124
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6125
|
+
|
|
6179
6126
|
|
|
6180
6127
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6181
6128
|
exports.Shutingyard = exports.ShutingyardMode = exports.ShutingyardType = exports.tokenConstant = void 0;
|
|
@@ -6480,43 +6427,43 @@ class Shutingyard {
|
|
|
6480
6427
|
}
|
|
6481
6428
|
}
|
|
6482
6429
|
exports.Shutingyard = Shutingyard;
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
/***/ })
|
|
6486
|
-
|
|
6487
|
-
/******/ });
|
|
6488
|
-
/************************************************************************/
|
|
6489
|
-
/******/ // The module cache
|
|
6490
|
-
/******/ var __webpack_module_cache__ = {};
|
|
6491
|
-
/******/
|
|
6492
|
-
/******/ // The require function
|
|
6493
|
-
/******/ function __webpack_require__(moduleId) {
|
|
6494
|
-
/******/ // Check if module is in cache
|
|
6495
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
6496
|
-
/******/ if (cachedModule !== undefined) {
|
|
6497
|
-
/******/ return cachedModule.exports;
|
|
6498
|
-
/******/ }
|
|
6499
|
-
/******/ // Create a new module (and put it into the cache)
|
|
6500
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
6501
|
-
/******/ // no module.id needed
|
|
6502
|
-
/******/ // no module.loaded needed
|
|
6503
|
-
/******/ exports: {}
|
|
6504
|
-
/******/ };
|
|
6505
|
-
/******/
|
|
6506
|
-
/******/ // Execute the module function
|
|
6507
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
6508
|
-
/******/
|
|
6509
|
-
/******/ // Return the exports of the module
|
|
6510
|
-
/******/ return module.exports;
|
|
6511
|
-
/******/ }
|
|
6512
|
-
/******/
|
|
6513
|
-
/************************************************************************/
|
|
6514
|
-
/******/
|
|
6515
|
-
/******/ // startup
|
|
6516
|
-
/******/ // Load entry module and return exports
|
|
6517
|
-
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
6518
|
-
/******/ var __webpack_exports__ = __webpack_require__(607);
|
|
6519
|
-
/******/
|
|
6520
|
-
/******/ })()
|
|
6521
|
-
;
|
|
6430
|
+
|
|
6431
|
+
|
|
6432
|
+
/***/ })
|
|
6433
|
+
|
|
6434
|
+
/******/ });
|
|
6435
|
+
/************************************************************************/
|
|
6436
|
+
/******/ // The module cache
|
|
6437
|
+
/******/ var __webpack_module_cache__ = {};
|
|
6438
|
+
/******/
|
|
6439
|
+
/******/ // The require function
|
|
6440
|
+
/******/ function __webpack_require__(moduleId) {
|
|
6441
|
+
/******/ // Check if module is in cache
|
|
6442
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
6443
|
+
/******/ if (cachedModule !== undefined) {
|
|
6444
|
+
/******/ return cachedModule.exports;
|
|
6445
|
+
/******/ }
|
|
6446
|
+
/******/ // Create a new module (and put it into the cache)
|
|
6447
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
6448
|
+
/******/ // no module.id needed
|
|
6449
|
+
/******/ // no module.loaded needed
|
|
6450
|
+
/******/ exports: {}
|
|
6451
|
+
/******/ };
|
|
6452
|
+
/******/
|
|
6453
|
+
/******/ // Execute the module function
|
|
6454
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
6455
|
+
/******/
|
|
6456
|
+
/******/ // Return the exports of the module
|
|
6457
|
+
/******/ return module.exports;
|
|
6458
|
+
/******/ }
|
|
6459
|
+
/******/
|
|
6460
|
+
/************************************************************************/
|
|
6461
|
+
/******/
|
|
6462
|
+
/******/ // startup
|
|
6463
|
+
/******/ // Load entry module and return exports
|
|
6464
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
6465
|
+
/******/ var __webpack_exports__ = __webpack_require__(607);
|
|
6466
|
+
/******/
|
|
6467
|
+
/******/ })()
|
|
6468
|
+
;
|
|
6522
6469
|
//# sourceMappingURL=pi.js.map
|