pimath 0.0.80 → 0.0.81
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 +7549 -0
- package/dev/pi.js.map +1 -0
- package/dist/pi.js +2 -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/polynom.js +2 -2
- package/esm/maths/algebra/polynom.js.map +1 -1
- package/package.json +1 -1
- package/src/maths/algebra/polynom.ts +2 -2
- package/tests/algebra/polynom.test.ts +1 -1
package/dist/pi.js
CHANGED
|
@@ -3218,10 +3218,10 @@ class Polynom {
|
|
|
3218
3218
|
// Loop through all factors that contains at least 2 monoms.
|
|
3219
3219
|
for (let item of Object.values(factorsCount).filter(item => item.factor.monoms.length > 1)) {
|
|
3220
3220
|
if (item.factor.length > 1) {
|
|
3221
|
-
display += `(
|
|
3221
|
+
display += `(${item.factor.display})${item.degree > 1 ? '^(' + item.degree + ')' : ''}`;
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
|
-
return display;
|
|
3224
|
+
return display.replaceAll(' ', '');
|
|
3225
3225
|
}
|
|
3226
3226
|
get length() {
|
|
3227
3227
|
// TODO: Must reduce the monoms list to remove the zero coefficient.
|