pimath 0.2.12 → 0.2.13

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/pimath.js CHANGED
@@ -3134,7 +3134,7 @@ var M = class e {
3134
3134
  n.push(a.divide(e.monoms[0].coefficient));
3135
3135
  } else if (i.token === "^") {
3136
3136
  if (e.degree().isStrictlyPositive()) throw new r("Cannot elevate a polynom with another polynom !");
3137
- if (e.monoms[0].coefficient.isRelative()) n.push(a.pow(e.monoms[0].coefficient.value));
3137
+ if (e.monoms[0].coefficient.isNatural()) n.push(a.pow(e.monoms[0].coefficient.value));
3138
3138
  else if (a.monoms.length === 1 && a.monoms[0].coefficient.isOne()) {
3139
3139
  for (let t in a.monoms[0].literal) a.monoms[0].literal[t].multiply(e.monoms[0].coefficient);
3140
3140
  n.push(a);