pimath 0.0.92 → 0.0.93
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/dist/pi.js +300 -297
- package/dist/pi.min.js +1 -1
- package/dist/pi.min.js.map +1 -1
- package/esm/maths/algebra/polynom.d.ts +2 -0
- package/esm/maths/algebra/rational.d.ts +1 -0
- package/esm/maths/algebra/study.d.ts +2 -1
- package/package.json +12 -12
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 = exports.PARTICULAR_SOLUTION = void 0;
|
|
@@ -811,13 +811,13 @@ class Equation {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
exports.Equation = Equation;
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
/***/ }),
|
|
817
|
-
|
|
818
|
-
/***/ 554:
|
|
819
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
820
|
-
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
/***/ }),
|
|
817
|
+
|
|
818
|
+
/***/ 554:
|
|
819
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
820
|
+
|
|
821
821
|
|
|
822
822
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
823
823
|
exports.LinearSystem = void 0;
|
|
@@ -1077,13 +1077,13 @@ class LinearSystem {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
exports.LinearSystem = LinearSystem;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
/***/ }),
|
|
1083
|
-
|
|
1084
|
-
/***/ 236:
|
|
1085
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1086
|
-
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
/***/ }),
|
|
1083
|
+
|
|
1084
|
+
/***/ 236:
|
|
1085
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1086
|
+
|
|
1087
1087
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Polynom module contains everything necessary to handle polynoms.
|
|
@@ -1241,13 +1241,13 @@ class Logicalset {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
exports.Logicalset = Logicalset;
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
/***/ }),
|
|
1247
|
-
|
|
1248
|
-
/***/ 937:
|
|
1249
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1250
|
-
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/***/ }),
|
|
1247
|
+
|
|
1248
|
+
/***/ 937:
|
|
1249
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1250
|
+
|
|
1251
1251
|
|
|
1252
1252
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1253
1253
|
exports.Monom = void 0;
|
|
@@ -2156,13 +2156,13 @@ Monom.xmultiply = (...monoms) => {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
return M;
|
|
2158
2158
|
};
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
/***/ }),
|
|
2162
|
-
|
|
2163
|
-
/***/ 38:
|
|
2164
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2165
|
-
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
/***/ }),
|
|
2162
|
+
|
|
2163
|
+
/***/ 38:
|
|
2164
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2165
|
+
|
|
2166
2166
|
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Polynom module contains everything necessary to handle polynoms.*
|
|
@@ -3360,13 +3360,13 @@ class Polynom {
|
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
exports.Polynom = Polynom;
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
/***/ }),
|
|
3366
|
-
|
|
3367
|
-
/***/ 107:
|
|
3368
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3369
|
-
|
|
3363
|
+
|
|
3364
|
+
|
|
3365
|
+
/***/ }),
|
|
3366
|
+
|
|
3367
|
+
/***/ 107:
|
|
3368
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3369
|
+
|
|
3370
3370
|
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Rational polynom module contains everything necessary to handle rational polynoms.
|
|
@@ -3516,9 +3516,11 @@ class Rational {
|
|
|
3516
3516
|
};
|
|
3517
3517
|
if (numerator instanceof polynom_1.Polynom) {
|
|
3518
3518
|
this._numerator = numerator.clone();
|
|
3519
|
-
}
|
|
3519
|
+
}
|
|
3520
|
+
else if (typeof numerator === 'string') {
|
|
3520
3521
|
this._numerator = new polynom_1.Polynom(numerator);
|
|
3521
|
-
}
|
|
3522
|
+
}
|
|
3523
|
+
else {
|
|
3522
3524
|
this._numerator = new polynom_1.Polynom();
|
|
3523
3525
|
}
|
|
3524
3526
|
if (denominator instanceof polynom_1.Polynom) {
|
|
@@ -3548,20 +3550,20 @@ class Rational {
|
|
|
3548
3550
|
}
|
|
3549
3551
|
}
|
|
3550
3552
|
exports.Rational = Rational;
|
|
3553
|
+
|
|
3554
|
+
|
|
3555
|
+
/***/ }),
|
|
3556
|
+
|
|
3557
|
+
/***/ 996:
|
|
3558
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3559
|
+
|
|
3551
3560
|
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
/**
|
|
3560
|
-
* Rational polynom module contains everything necessary to handle rational polynoms.
|
|
3561
|
-
* @module Polynom
|
|
3562
|
-
*/
|
|
3563
|
-
Object.defineProperty(exports, "__esModule", ({value: true}));
|
|
3564
|
-
exports.Study = exports.TABLE_OF_SIGNS = exports.FUNCTION_EXTREMA = exports.ASYMPTOTE_POSITION = exports.ASYMPTOTE = exports.ZEROTYPE = void 0;
|
|
3561
|
+
/**
|
|
3562
|
+
* Rational polynom module contains everything necessary to handle rational polynoms.
|
|
3563
|
+
* @module Polynom
|
|
3564
|
+
*/
|
|
3565
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3566
|
+
exports.Study = exports.TABLE_OF_SIGNS = exports.FUNCTION_EXTREMA = exports.ASYMPTOTE_POSITION = exports.ASYMPTOTE = exports.ZEROTYPE = void 0;
|
|
3565
3567
|
const fraction_1 = __webpack_require__(506);
|
|
3566
3568
|
const numexp_1 = __webpack_require__(735);
|
|
3567
3569
|
var ZEROTYPE;
|
|
@@ -3570,32 +3572,32 @@ var ZEROTYPE;
|
|
|
3570
3572
|
ZEROTYPE["DEFENCE"] = "d";
|
|
3571
3573
|
ZEROTYPE["NOTHING"] = "t";
|
|
3572
3574
|
})(ZEROTYPE = exports.ZEROTYPE || (exports.ZEROTYPE = {}));
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3575
|
+
var ASYMPTOTE;
|
|
3576
|
+
(function (ASYMPTOTE) {
|
|
3577
|
+
ASYMPTOTE["VERTICAL"] = "av";
|
|
3578
|
+
ASYMPTOTE["HORIZONTAL"] = "ah";
|
|
3579
|
+
ASYMPTOTE["SLOPE"] = "ao";
|
|
3580
|
+
ASYMPTOTE["HOLE"] = "hole";
|
|
3581
|
+
})(ASYMPTOTE = exports.ASYMPTOTE || (exports.ASYMPTOTE = {}));
|
|
3582
|
+
var ASYMPTOTE_POSITION;
|
|
3583
|
+
(function (ASYMPTOTE_POSITION) {
|
|
3584
|
+
ASYMPTOTE_POSITION["LT"] = "LT";
|
|
3585
|
+
ASYMPTOTE_POSITION["RT"] = "RT";
|
|
3586
|
+
ASYMPTOTE_POSITION["LB"] = "LB";
|
|
3587
|
+
ASYMPTOTE_POSITION["RB"] = "RB";
|
|
3588
|
+
})(ASYMPTOTE_POSITION = exports.ASYMPTOTE_POSITION || (exports.ASYMPTOTE_POSITION = {}));
|
|
3589
|
+
var FUNCTION_EXTREMA;
|
|
3590
|
+
(function (FUNCTION_EXTREMA) {
|
|
3591
|
+
FUNCTION_EXTREMA["MIN"] = "min";
|
|
3592
|
+
FUNCTION_EXTREMA["MAX"] = "max";
|
|
3593
|
+
FUNCTION_EXTREMA["FLAT"] = "flat";
|
|
3594
|
+
FUNCTION_EXTREMA["NOTHING"] = "";
|
|
3595
|
+
})(FUNCTION_EXTREMA = exports.FUNCTION_EXTREMA || (exports.FUNCTION_EXTREMA = {}));
|
|
3596
|
+
var TABLE_OF_SIGNS;
|
|
3597
|
+
(function (TABLE_OF_SIGNS) {
|
|
3598
|
+
TABLE_OF_SIGNS["SIGNS"] = "signs";
|
|
3599
|
+
TABLE_OF_SIGNS["GROWS"] = "grows";
|
|
3600
|
+
TABLE_OF_SIGNS["VARIATIONS"] = "variations";
|
|
3599
3601
|
})(TABLE_OF_SIGNS = exports.TABLE_OF_SIGNS || (exports.TABLE_OF_SIGNS = {}));
|
|
3600
3602
|
/**
|
|
3601
3603
|
* The study class is a "function study" class that will get:
|
|
@@ -3886,13 +3888,13 @@ class Study {
|
|
|
3886
3888
|
}
|
|
3887
3889
|
}
|
|
3888
3890
|
exports.Study = Study;
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
/***/ }),
|
|
3892
|
-
|
|
3893
|
-
/***/ 572:
|
|
3894
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3895
|
-
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
/***/ }),
|
|
3894
|
+
|
|
3895
|
+
/***/ 572:
|
|
3896
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3897
|
+
|
|
3896
3898
|
|
|
3897
3899
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3898
3900
|
exports.RationalStudy = void 0;
|
|
@@ -3924,21 +3926,10 @@ class RationalStudy extends study_1.Study {
|
|
|
3924
3926
|
return this._getZeroes(this.fx);
|
|
3925
3927
|
}
|
|
3926
3928
|
;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
if (before >= 0) {
|
|
3930
|
-
position.push(study_1.ASYMPTOTE_POSITION.LT);
|
|
3931
|
-
} else {
|
|
3932
|
-
position.push(study_1.ASYMPTOTE_POSITION.LB);
|
|
3933
|
-
}
|
|
3934
|
-
if (after >= 0) {
|
|
3935
|
-
position.push(study_1.ASYMPTOTE_POSITION.RT);
|
|
3936
|
-
} else {
|
|
3937
|
-
position.push(study_1.ASYMPTOTE_POSITION.RB);
|
|
3938
|
-
}
|
|
3939
|
-
return position;
|
|
3929
|
+
makeSigns() {
|
|
3930
|
+
return this._getSigns(this.fx, this.zeroes);
|
|
3940
3931
|
}
|
|
3941
|
-
|
|
3932
|
+
;
|
|
3942
3933
|
makeAsymptotes() {
|
|
3943
3934
|
const reduced = this.fx.clone().reduce();
|
|
3944
3935
|
// Vertical
|
|
@@ -3952,7 +3943,8 @@ class RationalStudy extends study_1.Study {
|
|
|
3952
3943
|
Ztype = study_1.ASYMPTOTE.HOLE;
|
|
3953
3944
|
tex = `(${zero.tex};${reduced.evaluate(zero.exact).tex})`;
|
|
3954
3945
|
}
|
|
3955
|
-
}
|
|
3946
|
+
}
|
|
3947
|
+
else {
|
|
3956
3948
|
if (reduced.denominator.evaluate(zero.value).isNotZero()) {
|
|
3957
3949
|
Ztype = study_1.ASYMPTOTE.HOLE;
|
|
3958
3950
|
tex = `(${zero.tex};${reduced.evaluate(zero.value).tex})`;
|
|
@@ -3960,19 +3952,20 @@ class RationalStudy extends study_1.Study {
|
|
|
3960
3952
|
}
|
|
3961
3953
|
// Get the position before and after the asymptote.
|
|
3962
3954
|
const delta = 0.000001;
|
|
3963
|
-
let before = this.fx.evaluateAsNumeric(zero.value - delta),
|
|
3964
|
-
after = this.fx.evaluateAsNumeric(zero.value + delta), position = [], pm = "";
|
|
3955
|
+
let before = this.fx.evaluateAsNumeric(zero.value - delta), after = this.fx.evaluateAsNumeric(zero.value + delta), position = [], pm = "";
|
|
3965
3956
|
if (after < -10000) {
|
|
3966
3957
|
position.push(study_1.ASYMPTOTE_POSITION.RB);
|
|
3967
3958
|
pm += "m";
|
|
3968
|
-
}
|
|
3959
|
+
}
|
|
3960
|
+
else if (after > 10000) {
|
|
3969
3961
|
position.push(study_1.ASYMPTOTE_POSITION.RT);
|
|
3970
3962
|
pm += "p";
|
|
3971
3963
|
}
|
|
3972
3964
|
if (before < -10000) {
|
|
3973
3965
|
position.push(study_1.ASYMPTOTE_POSITION.LB);
|
|
3974
3966
|
pm += "m";
|
|
3975
|
-
}
|
|
3967
|
+
}
|
|
3968
|
+
else if (before > 10000) {
|
|
3976
3969
|
position.push(study_1.ASYMPTOTE_POSITION.LT);
|
|
3977
3970
|
pm += "p";
|
|
3978
3971
|
}
|
|
@@ -3980,9 +3973,11 @@ class RationalStudy extends study_1.Study {
|
|
|
3980
3973
|
// TODO: handle the case were one side of the asymptote isn't infinity (not possible in rational study?!)
|
|
3981
3974
|
if (pm === "pp") {
|
|
3982
3975
|
pm = "+";
|
|
3983
|
-
}
|
|
3976
|
+
}
|
|
3977
|
+
else if (pm === "mm") {
|
|
3984
3978
|
pm = "-";
|
|
3985
|
-
}
|
|
3979
|
+
}
|
|
3980
|
+
else {
|
|
3986
3981
|
pm = `\\${pm}`;
|
|
3987
3982
|
}
|
|
3988
3983
|
asymptotes.push({
|
|
@@ -4042,22 +4037,30 @@ class RationalStudy extends study_1.Study {
|
|
|
4042
4037
|
return asymptotes;
|
|
4043
4038
|
}
|
|
4044
4039
|
;
|
|
4045
|
-
|
|
4040
|
+
_getHorizontalAsymptoteRelativePositon(deltaX, delta = 1000000) {
|
|
4041
|
+
let position = [], before = deltaX.evaluateAsNumeric(-delta), after = deltaX.evaluateAsNumeric(delta);
|
|
4042
|
+
if (before >= 0) {
|
|
4043
|
+
position.push(study_1.ASYMPTOTE_POSITION.LT);
|
|
4044
|
+
}
|
|
4045
|
+
else {
|
|
4046
|
+
position.push(study_1.ASYMPTOTE_POSITION.LB);
|
|
4047
|
+
}
|
|
4048
|
+
if (after >= 0) {
|
|
4049
|
+
position.push(study_1.ASYMPTOTE_POSITION.RT);
|
|
4050
|
+
}
|
|
4051
|
+
else {
|
|
4052
|
+
position.push(study_1.ASYMPTOTE_POSITION.RB);
|
|
4053
|
+
}
|
|
4054
|
+
return position;
|
|
4055
|
+
}
|
|
4046
4056
|
makeDerivative() {
|
|
4047
|
-
let dx = this.fx.clone().derivative(),
|
|
4048
|
-
tos = this._getSigns(dx, this._getZeroes(dx), study_1.TABLE_OF_SIGNS.GROWS);
|
|
4057
|
+
let dx = this.fx.clone().derivative(), tos = this._getSigns(dx, this._getZeroes(dx), study_1.TABLE_OF_SIGNS.GROWS);
|
|
4049
4058
|
let result = this.makeGrowsResult(tos);
|
|
4050
4059
|
tos.signs.push(result.growsLine);
|
|
4051
4060
|
tos.extremes = result.extremes;
|
|
4052
4061
|
return tos;
|
|
4053
4062
|
}
|
|
4054
4063
|
;
|
|
4055
|
-
|
|
4056
|
-
makeSigns() {
|
|
4057
|
-
return this._getSigns(this.fx, this.zeroes);
|
|
4058
|
-
}
|
|
4059
|
-
;
|
|
4060
|
-
|
|
4061
4064
|
makeVariation() {
|
|
4062
4065
|
// Get the zeroes, make signs.
|
|
4063
4066
|
let dx = this.derivative.fx.clone().derivative(), tos = this._getSigns(dx, this._getZeroes(dx), study_1.TABLE_OF_SIGNS.VARIATIONS);
|
|
@@ -4127,13 +4130,13 @@ class RationalStudy extends study_1.Study {
|
|
|
4127
4130
|
}
|
|
4128
4131
|
}
|
|
4129
4132
|
exports.RationalStudy = RationalStudy;
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
/***/ }),
|
|
4133
|
-
|
|
4134
|
-
/***/ 506:
|
|
4135
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4136
|
-
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
/***/ }),
|
|
4136
|
+
|
|
4137
|
+
/***/ 506:
|
|
4138
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4139
|
+
|
|
4137
4140
|
|
|
4138
4141
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4139
4142
|
exports.Fraction = void 0;
|
|
@@ -4650,13 +4653,13 @@ Fraction.sort = (fractions, reverse) => {
|
|
|
4650
4653
|
}
|
|
4651
4654
|
return sorted;
|
|
4652
4655
|
};
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
/***/ }),
|
|
4656
|
-
|
|
4657
|
-
/***/ 872:
|
|
4658
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
4659
|
-
|
|
4656
|
+
|
|
4657
|
+
|
|
4658
|
+
/***/ }),
|
|
4659
|
+
|
|
4660
|
+
/***/ 872:
|
|
4661
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
4662
|
+
|
|
4660
4663
|
|
|
4661
4664
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4662
4665
|
exports.NthRoot = void 0;
|
|
@@ -4770,13 +4773,13 @@ class NthRoot {
|
|
|
4770
4773
|
}
|
|
4771
4774
|
}
|
|
4772
4775
|
exports.NthRoot = NthRoot;
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
/***/ }),
|
|
4776
|
-
|
|
4777
|
-
/***/ 735:
|
|
4778
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4779
|
-
|
|
4776
|
+
|
|
4777
|
+
|
|
4778
|
+
/***/ }),
|
|
4779
|
+
|
|
4780
|
+
/***/ 735:
|
|
4781
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4782
|
+
|
|
4780
4783
|
|
|
4781
4784
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4782
4785
|
exports.NumExp = void 0;
|
|
@@ -4947,13 +4950,13 @@ class NumExp {
|
|
|
4947
4950
|
}
|
|
4948
4951
|
}
|
|
4949
4952
|
exports.NumExp = NumExp;
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
/***/ }),
|
|
4953
|
-
|
|
4954
|
-
/***/ 75:
|
|
4955
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4956
|
-
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
/***/ }),
|
|
4956
|
+
|
|
4957
|
+
/***/ 75:
|
|
4958
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4959
|
+
|
|
4957
4960
|
|
|
4958
4961
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4959
4962
|
exports.PolynomExpProduct = exports.PolynomExpFactor = void 0;
|
|
@@ -5170,7 +5173,7 @@ class PolynomExpProduct {
|
|
|
5170
5173
|
return this._integrateWithInternalDerivative(this._factors[1], this._factors[0], letter);
|
|
5171
5174
|
}
|
|
5172
5175
|
}
|
|
5173
|
-
|
|
5176
|
+
return;
|
|
5174
5177
|
}
|
|
5175
5178
|
applyMathFunction(mathFn) {
|
|
5176
5179
|
this._fn = mathFn;
|
|
@@ -5195,17 +5198,17 @@ class PolynomExpProduct {
|
|
|
5195
5198
|
return new PolynomExpProduct(new PolynomExpFactor(P.degree.clone().add(1).invert(), 1), new PolynomExpFactor(quotient, 1), new PolynomExpFactor(P.polynom.clone(), P.degree.clone().add(1)));
|
|
5196
5199
|
}
|
|
5197
5200
|
}
|
|
5198
|
-
|
|
5201
|
+
return;
|
|
5199
5202
|
}
|
|
5200
5203
|
}
|
|
5201
5204
|
exports.PolynomExpProduct = PolynomExpProduct;
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
/***/ }),
|
|
5205
|
-
|
|
5206
|
-
/***/ 699:
|
|
5207
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5208
|
-
|
|
5205
|
+
|
|
5206
|
+
|
|
5207
|
+
/***/ }),
|
|
5208
|
+
|
|
5209
|
+
/***/ 699:
|
|
5210
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5211
|
+
|
|
5209
5212
|
|
|
5210
5213
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5211
5214
|
exports.Circle = void 0;
|
|
@@ -5529,13 +5532,13 @@ class Circle {
|
|
|
5529
5532
|
}
|
|
5530
5533
|
}
|
|
5531
5534
|
exports.Circle = Circle;
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
/***/ }),
|
|
5535
|
-
|
|
5536
|
-
/***/ 9:
|
|
5537
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5538
|
-
|
|
5535
|
+
|
|
5536
|
+
|
|
5537
|
+
/***/ }),
|
|
5538
|
+
|
|
5539
|
+
/***/ 9:
|
|
5540
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5541
|
+
|
|
5539
5542
|
|
|
5540
5543
|
/**
|
|
5541
5544
|
* This class works for 2d line in a plane.
|
|
@@ -5779,14 +5782,14 @@ class Line {
|
|
|
5779
5782
|
if (equ instanceof equation_1.Equation) {
|
|
5780
5783
|
return equ.right.evaluate({ x: F });
|
|
5781
5784
|
}
|
|
5782
|
-
|
|
5785
|
+
return;
|
|
5783
5786
|
};
|
|
5784
5787
|
this.getValueAtY = (value) => {
|
|
5785
5788
|
const equ = this.equation.clone().isolate('x'), F = new fraction_1.Fraction(value);
|
|
5786
5789
|
if (equ instanceof equation_1.Equation) {
|
|
5787
5790
|
return equ.right.evaluate({ y: F });
|
|
5788
5791
|
}
|
|
5789
|
-
|
|
5792
|
+
return;
|
|
5790
5793
|
};
|
|
5791
5794
|
this._exists = false;
|
|
5792
5795
|
if (values.length > 0) {
|
|
@@ -5955,13 +5958,13 @@ class Line {
|
|
|
5955
5958
|
exports.Line = Line;
|
|
5956
5959
|
Line.PERPENDICULAR = LinePropriety.Perpendicular;
|
|
5957
5960
|
Line.PARALLEL = LinePropriety.Parallel;
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
/***/ }),
|
|
5961
|
-
|
|
5962
|
-
/***/ 557:
|
|
5963
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5964
|
-
|
|
5961
|
+
|
|
5962
|
+
|
|
5963
|
+
/***/ }),
|
|
5964
|
+
|
|
5965
|
+
/***/ 557:
|
|
5966
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5967
|
+
|
|
5965
5968
|
|
|
5966
5969
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5967
5970
|
exports.Point = void 0;
|
|
@@ -6125,13 +6128,13 @@ Point.pmatrix = (a, b, c) => {
|
|
|
6125
6128
|
return `\\begin{pmatrix} ${a.tex ? a.tex : a} \\\\ ${b.tex ? b.tex : b} \\\\ ${c.tex ? c.tex : c} \\end{pmatrix}`;
|
|
6126
6129
|
}
|
|
6127
6130
|
};
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
/***/ }),
|
|
6131
|
-
|
|
6132
|
-
/***/ 164:
|
|
6133
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6134
|
-
|
|
6131
|
+
|
|
6132
|
+
|
|
6133
|
+
/***/ }),
|
|
6134
|
+
|
|
6135
|
+
/***/ 164:
|
|
6136
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6137
|
+
|
|
6135
6138
|
|
|
6136
6139
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6137
6140
|
exports.Triangle = void 0;
|
|
@@ -6400,13 +6403,13 @@ class Triangle {
|
|
|
6400
6403
|
}
|
|
6401
6404
|
}
|
|
6402
6405
|
exports.Triangle = Triangle;
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
/***/ }),
|
|
6406
|
-
|
|
6407
|
-
/***/ 586:
|
|
6408
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6409
|
-
|
|
6406
|
+
|
|
6407
|
+
|
|
6408
|
+
/***/ }),
|
|
6409
|
+
|
|
6410
|
+
/***/ 586:
|
|
6411
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6412
|
+
|
|
6410
6413
|
|
|
6411
6414
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6412
6415
|
exports.Vector = void 0;
|
|
@@ -6584,13 +6587,13 @@ Vector.scalarProduct = (v1, v2) => {
|
|
|
6584
6587
|
// TODO: Transform to fraction with nthroot.
|
|
6585
6588
|
return v1.x.value * v2.x.value + v1.y.value * v2.y.value;
|
|
6586
6589
|
};
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
/***/ }),
|
|
6590
|
-
|
|
6591
|
-
/***/ 956:
|
|
6592
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6593
|
-
|
|
6590
|
+
|
|
6591
|
+
|
|
6592
|
+
/***/ }),
|
|
6593
|
+
|
|
6594
|
+
/***/ 956:
|
|
6595
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6596
|
+
|
|
6594
6597
|
|
|
6595
6598
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6596
6599
|
exports.Numeric = void 0;
|
|
@@ -6751,13 +6754,13 @@ class Numeric {
|
|
|
6751
6754
|
}
|
|
6752
6755
|
}
|
|
6753
6756
|
exports.Numeric = Numeric;
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
/***/ }),
|
|
6757
|
-
|
|
6758
|
-
/***/ 330:
|
|
6759
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6760
|
-
|
|
6757
|
+
|
|
6758
|
+
|
|
6759
|
+
/***/ }),
|
|
6760
|
+
|
|
6761
|
+
/***/ 330:
|
|
6762
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6763
|
+
|
|
6761
6764
|
|
|
6762
6765
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6763
6766
|
if (k2 === undefined) k2 = k;
|
|
@@ -6823,13 +6826,13 @@ var Random;
|
|
|
6823
6826
|
}
|
|
6824
6827
|
Random.shuffle = shuffle;
|
|
6825
6828
|
})(Random = exports.Random || (exports.Random = {}));
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
/***/ }),
|
|
6829
|
-
|
|
6830
|
-
/***/ 373:
|
|
6831
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
6832
|
-
|
|
6829
|
+
|
|
6830
|
+
|
|
6831
|
+
/***/ }),
|
|
6832
|
+
|
|
6833
|
+
/***/ 373:
|
|
6834
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6835
|
+
|
|
6833
6836
|
|
|
6834
6837
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6835
6838
|
exports.randomCore = void 0;
|
|
@@ -6851,13 +6854,13 @@ class randomCore {
|
|
|
6851
6854
|
}
|
|
6852
6855
|
}
|
|
6853
6856
|
exports.randomCore = randomCore;
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
/***/ }),
|
|
6857
|
-
|
|
6858
|
-
/***/ 754:
|
|
6859
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6860
|
-
|
|
6857
|
+
|
|
6858
|
+
|
|
6859
|
+
/***/ }),
|
|
6860
|
+
|
|
6861
|
+
/***/ 754:
|
|
6862
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6863
|
+
|
|
6861
6864
|
|
|
6862
6865
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6863
6866
|
exports.rndFraction = void 0;
|
|
@@ -6901,13 +6904,13 @@ class rndFraction extends randomCore_1.randomCore {
|
|
|
6901
6904
|
}
|
|
6902
6905
|
}
|
|
6903
6906
|
exports.rndFraction = rndFraction;
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
/***/ }),
|
|
6907
|
-
|
|
6908
|
-
/***/ 140:
|
|
6909
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6910
|
-
|
|
6907
|
+
|
|
6908
|
+
|
|
6909
|
+
/***/ }),
|
|
6910
|
+
|
|
6911
|
+
/***/ 140:
|
|
6912
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6913
|
+
|
|
6911
6914
|
|
|
6912
6915
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6913
6916
|
exports.rndHelpers = void 0;
|
|
@@ -6984,13 +6987,13 @@ class rndHelpers {
|
|
|
6984
6987
|
}
|
|
6985
6988
|
}
|
|
6986
6989
|
exports.rndHelpers = rndHelpers;
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
/***/ }),
|
|
6990
|
-
|
|
6991
|
-
/***/ 793:
|
|
6992
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6993
|
-
|
|
6990
|
+
|
|
6991
|
+
|
|
6992
|
+
/***/ }),
|
|
6993
|
+
|
|
6994
|
+
/***/ 793:
|
|
6995
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6996
|
+
|
|
6994
6997
|
|
|
6995
6998
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6996
6999
|
exports.rndMonom = void 0;
|
|
@@ -7043,13 +7046,13 @@ class rndMonom extends randomCore_1.randomCore {
|
|
|
7043
7046
|
}
|
|
7044
7047
|
}
|
|
7045
7048
|
exports.rndMonom = rndMonom;
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
/***/ }),
|
|
7049
|
-
|
|
7050
|
-
/***/ 22:
|
|
7051
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7052
|
-
|
|
7049
|
+
|
|
7050
|
+
|
|
7051
|
+
/***/ }),
|
|
7052
|
+
|
|
7053
|
+
/***/ 22:
|
|
7054
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7055
|
+
|
|
7053
7056
|
|
|
7054
7057
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7055
7058
|
exports.rndPolynom = void 0;
|
|
@@ -7124,22 +7127,22 @@ class rndPolynom extends randomCore_1.randomCore {
|
|
|
7124
7127
|
}
|
|
7125
7128
|
}
|
|
7126
7129
|
exports.rndPolynom = rndPolynom;
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
/***/ }),
|
|
7130
|
-
|
|
7131
|
-
/***/ 230:
|
|
7132
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7133
|
-
|
|
7130
|
+
|
|
7131
|
+
|
|
7132
|
+
/***/ }),
|
|
7133
|
+
|
|
7134
|
+
/***/ 230:
|
|
7135
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
7136
|
+
|
|
7134
7137
|
|
|
7135
7138
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
/***/ }),
|
|
7139
|
-
|
|
7140
|
-
/***/ 505:
|
|
7141
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7142
|
-
|
|
7139
|
+
|
|
7140
|
+
|
|
7141
|
+
/***/ }),
|
|
7142
|
+
|
|
7143
|
+
/***/ 505:
|
|
7144
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
7145
|
+
|
|
7143
7146
|
|
|
7144
7147
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7145
7148
|
exports.Shutingyard = exports.ShutingyardMode = exports.ShutingyardType = exports.tokenConstant = void 0;
|
|
@@ -7566,43 +7569,43 @@ class Shutingyard {
|
|
|
7566
7569
|
}
|
|
7567
7570
|
}
|
|
7568
7571
|
exports.Shutingyard = Shutingyard;
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
/***/ })
|
|
7572
|
-
|
|
7573
|
-
/******/ });
|
|
7574
|
-
/************************************************************************/
|
|
7575
|
-
/******/ // The module cache
|
|
7576
|
-
/******/ var __webpack_module_cache__ = {};
|
|
7577
|
-
/******/
|
|
7578
|
-
/******/ // The require function
|
|
7579
|
-
/******/ function __webpack_require__(moduleId) {
|
|
7580
|
-
/******/ // Check if module is in cache
|
|
7581
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
7582
|
-
/******/ if (cachedModule !== undefined) {
|
|
7583
|
-
/******/ return cachedModule.exports;
|
|
7584
|
-
/******/ }
|
|
7585
|
-
/******/ // Create a new module (and put it into the cache)
|
|
7586
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
7587
|
-
/******/ // no module.id needed
|
|
7588
|
-
/******/ // no module.loaded needed
|
|
7589
|
-
/******/ exports: {}
|
|
7590
|
-
/******/ };
|
|
7591
|
-
/******/
|
|
7592
|
-
/******/ // Execute the module function
|
|
7593
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
7594
|
-
/******/
|
|
7595
|
-
/******/ // Return the exports of the module
|
|
7596
|
-
/******/ return module.exports;
|
|
7597
|
-
/******/ }
|
|
7598
|
-
/******/
|
|
7599
|
-
/************************************************************************/
|
|
7600
|
-
/******/
|
|
7601
|
-
/******/ // startup
|
|
7602
|
-
/******/ // Load entry module and return exports
|
|
7603
|
-
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
7604
|
-
/******/ var __webpack_exports__ = __webpack_require__(607);
|
|
7605
|
-
/******/
|
|
7606
|
-
/******/ })()
|
|
7607
|
-
;
|
|
7572
|
+
|
|
7573
|
+
|
|
7574
|
+
/***/ })
|
|
7575
|
+
|
|
7576
|
+
/******/ });
|
|
7577
|
+
/************************************************************************/
|
|
7578
|
+
/******/ // The module cache
|
|
7579
|
+
/******/ var __webpack_module_cache__ = {};
|
|
7580
|
+
/******/
|
|
7581
|
+
/******/ // The require function
|
|
7582
|
+
/******/ function __webpack_require__(moduleId) {
|
|
7583
|
+
/******/ // Check if module is in cache
|
|
7584
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
7585
|
+
/******/ if (cachedModule !== undefined) {
|
|
7586
|
+
/******/ return cachedModule.exports;
|
|
7587
|
+
/******/ }
|
|
7588
|
+
/******/ // Create a new module (and put it into the cache)
|
|
7589
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
7590
|
+
/******/ // no module.id needed
|
|
7591
|
+
/******/ // no module.loaded needed
|
|
7592
|
+
/******/ exports: {}
|
|
7593
|
+
/******/ };
|
|
7594
|
+
/******/
|
|
7595
|
+
/******/ // Execute the module function
|
|
7596
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
7597
|
+
/******/
|
|
7598
|
+
/******/ // Return the exports of the module
|
|
7599
|
+
/******/ return module.exports;
|
|
7600
|
+
/******/ }
|
|
7601
|
+
/******/
|
|
7602
|
+
/************************************************************************/
|
|
7603
|
+
/******/
|
|
7604
|
+
/******/ // startup
|
|
7605
|
+
/******/ // Load entry module and return exports
|
|
7606
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
7607
|
+
/******/ var __webpack_exports__ = __webpack_require__(607);
|
|
7608
|
+
/******/
|
|
7609
|
+
/******/ })()
|
|
7610
|
+
;
|
|
7608
7611
|
//# sourceMappingURL=pi.js.map
|