pimath 0.0.94 → 0.0.96
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 +8 -2
- package/dist/pi.js.map +1 -1
- package/dist/pi.min.js +1 -1
- package/dist/pi.min.js.map +1 -1
- package/esm/maths/algebra/equation.d.ts +1 -0
- package/esm/maths/algebra/equation.js.map +1 -1
- package/esm/maths/algebra/study/rationalStudy.js +33 -27
- package/esm/maths/algebra/study/rationalStudy.js.map +1 -1
- package/esm/maths/algebra/study.d.ts +1 -0
- package/esm/maths/algebra/study.js.map +1 -1
- package/esm/maths/coefficients/nthRoot.d.ts +0 -2
- package/esm/maths/coefficients/nthRoot.js +2 -6
- package/package.json +1 -1
- package/src/maths/algebra/study/rationalStudy.ts +9 -2
- package/src/maths/algebra/study.ts +1 -0
package/dist/pi.js
CHANGED
|
@@ -3967,18 +3967,20 @@ class RationalStudy extends study_1.Study {
|
|
|
3967
3967
|
let asymptotes = [];
|
|
3968
3968
|
this.zeroes.filter(x => x.type === study_1.ZEROTYPE.DEFENCE).forEach(zero => {
|
|
3969
3969
|
// Check if it's a hole or an asymptote
|
|
3970
|
-
let Ztype = study_1.ASYMPTOTE.VERTICAL, tex = `x=${zero.tex}`;
|
|
3970
|
+
let Ztype = study_1.ASYMPTOTE.VERTICAL, tex = `x=${zero.tex}`, display = `x=${zero.display}`;
|
|
3971
3971
|
// Check if it's a hole: the reduced polynom should not be null
|
|
3972
3972
|
if (zero.exact instanceof fraction_1.Fraction) {
|
|
3973
3973
|
if (reduced.denominator.evaluate(zero.exact).isNotZero()) {
|
|
3974
3974
|
Ztype = study_1.ASYMPTOTE.HOLE;
|
|
3975
3975
|
tex = `(${zero.tex};${reduced.evaluate(zero.exact).tex})`;
|
|
3976
|
+
display = `(${zero.display};${reduced.evaluate(zero.exact).display})`;
|
|
3976
3977
|
}
|
|
3977
3978
|
}
|
|
3978
3979
|
else {
|
|
3979
3980
|
if (reduced.denominator.evaluate(zero.value).isNotZero()) {
|
|
3980
3981
|
Ztype = study_1.ASYMPTOTE.HOLE;
|
|
3981
3982
|
tex = `(${zero.tex};${reduced.evaluate(zero.value).tex})`;
|
|
3983
|
+
display = `(${zero.display};${reduced.evaluate(zero.value).display})`;
|
|
3982
3984
|
}
|
|
3983
3985
|
}
|
|
3984
3986
|
// Get the position before and after the asymptote.
|
|
@@ -4014,7 +4016,8 @@ class RationalStudy extends study_1.Study {
|
|
|
4014
4016
|
asymptotes.push({
|
|
4015
4017
|
fx: null,
|
|
4016
4018
|
type: Ztype,
|
|
4017
|
-
tex
|
|
4019
|
+
tex,
|
|
4020
|
+
display,
|
|
4018
4021
|
zero: zero,
|
|
4019
4022
|
limits: `\\lim_{x\\to${zero.tex} }\\ f(x) = ${pm}\\infty`,
|
|
4020
4023
|
deltaX: null,
|
|
@@ -4032,6 +4035,7 @@ class RationalStudy extends study_1.Study {
|
|
|
4032
4035
|
fx: new polynom_1.Polynom(H),
|
|
4033
4036
|
type: study_1.ASYMPTOTE.HORIZONTAL,
|
|
4034
4037
|
tex: `y=${Htex}`,
|
|
4038
|
+
display: `y=${H.display}`,
|
|
4035
4039
|
zero: null,
|
|
4036
4040
|
limits: `\\lim_{x\\to\\infty}\\ f(x) = ${Htex}`,
|
|
4037
4041
|
deltaX,
|
|
@@ -4044,6 +4048,7 @@ class RationalStudy extends study_1.Study {
|
|
|
4044
4048
|
fx: new polynom_1.Polynom('0'),
|
|
4045
4049
|
type: study_1.ASYMPTOTE.HORIZONTAL,
|
|
4046
4050
|
tex: `y=0`,
|
|
4051
|
+
display: `y=0`,
|
|
4047
4052
|
zero: null,
|
|
4048
4053
|
limits: `\\lim_{x\\to\\infty}\\ f(x) = ${0}`,
|
|
4049
4054
|
deltaX: null,
|
|
@@ -4058,6 +4063,7 @@ class RationalStudy extends study_1.Study {
|
|
|
4058
4063
|
fx: quotient.clone(),
|
|
4059
4064
|
type: study_1.ASYMPTOTE.SLOPE,
|
|
4060
4065
|
tex: `y=${quotient.tex}`,
|
|
4066
|
+
display: `y=${quotient.display}`,
|
|
4061
4067
|
zero: null,
|
|
4062
4068
|
limits: ``,
|
|
4063
4069
|
deltaX: new rational_1.Rational(reminder, reduced.denominator),
|