pimath 0.0.41 → 0.0.42
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 +5 -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 +3 -0
- package/esm/maths/algebra/equation.js.map +1 -1
- package/esm/maths/algebra/rational.js +2 -2
- package/esm/maths/algebra/rational.js.map +1 -1
- package/esm/maths/geometry/line.js.map +1 -1
- package/package.json +1 -1
- package/src/maths/algebra/equation.ts +3 -0
- package/src/maths/algebra/rational.ts +2 -2
- package/src/maths/geometry/line.ts +0 -1
package/dist/pi.js
CHANGED
|
@@ -81,6 +81,9 @@ class Equation {
|
|
|
81
81
|
// Undetermined texSolutions.
|
|
82
82
|
this._varnothing = PARTICULAR_SOLUTION.varnothing;
|
|
83
83
|
this._real = PARTICULAR_SOLUTION.real;
|
|
84
|
+
this.hasVariable = (letter) => {
|
|
85
|
+
return this.variables.includes(letter);
|
|
86
|
+
};
|
|
84
87
|
// ------------------------------------------
|
|
85
88
|
// Creation / parsing functions
|
|
86
89
|
// -----------------------------------------------
|
|
@@ -3311,8 +3314,8 @@ class Rational {
|
|
|
3311
3314
|
return equation_1.PARTICULAR_SOLUTION.varnothing;
|
|
3312
3315
|
}
|
|
3313
3316
|
else {
|
|
3314
|
-
return '\\mathbb{R}\\setminus\\left{' +
|
|
3315
|
-
zeroes.map(x => x.tex).join(';') + '\\right}';
|
|
3317
|
+
return '\\mathbb{R}\\setminus\\left\\{' +
|
|
3318
|
+
zeroes.map(x => x.tex).join(';') + '\\right\\}';
|
|
3316
3319
|
}
|
|
3317
3320
|
};
|
|
3318
3321
|
this.amplify = (P) => {
|