pimath 0.0.32 → 0.0.33
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/dev/pi.js +2 -2
- package/dev/pi.js.map +1 -1
- package/dist/pi.js +1 -1
- package/dist/pi.js.map +1 -1
- package/esm/maths/algebra/monom.js +2 -2
- package/esm/maths/algebra/monom.js.map +1 -1
- package/esm/maths/algebra/polynom.js.map +1 -1
- package/package.json +1 -1
- package/src/maths/algebra/monom.ts +6 -2
- package/src/maths/algebra/polynom.ts +2 -7
- package/tests/algebra/polynom.test.ts +7 -0
package/dev/pi.js
CHANGED
|
@@ -1109,10 +1109,10 @@ class Monom {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
get dividers() {
|
|
1112
|
-
if (this.coefficient.
|
|
1112
|
+
if (!this.coefficient.isRelative()) {
|
|
1113
1113
|
return [this.clone()];
|
|
1114
1114
|
}
|
|
1115
|
-
if (this.hasFractionCoefficient) {
|
|
1115
|
+
if (this.hasFractionCoefficient()) {
|
|
1116
1116
|
return [this.clone()];
|
|
1117
1117
|
}
|
|
1118
1118
|
if (this.coefficient.numerator > 10000) {
|