You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Recently, I updated Math.js from version 9.5.1 to the latest version, and an expression rationalization that worked before doesn't work anymore. (see To Reproduce)
To Reproduce
import*asmathjsfrom'mathjs';constaa=mathjs.parse("6285.67^5/(s+6285.67)^5");constbb=mathjs.rationalize(aa,{},false);// It gets stuck hereconsole.log(bb.toString());
The text was updated successfully, but these errors were encountered:
I guess the function expands the expression into (x + 1) * (x + 1) * (x + 1) * (x + 1) * (x + 1) and then goes over all possibilities, which grows exponentially the larger the exponent is. Not sure though, just a wild guess.
Help debugging and understanding what's going on here would be welcome.
Describe the bug
Recently, I updated Math.js from version 9.5.1 to the latest version, and an expression rationalization that worked before doesn't work anymore. (see To Reproduce)
To Reproduce
The text was updated successfully, but these errors were encountered: