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 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) => {