mathjs: `simplify()` returns `RangeError: Maximum call stack size exceeded` for certain expressions containing `n`
Not OK
The n
mixed with -
or /
seems to be an issue.
math.simplify('2n - 1').toString();
math.simplify('16n - 1').toString();
math.simplify('16n / 1').toString();
math.simplify('8 / 5n').toString();
math.simplify('8n - 4n').toString();
OK
math.simplify('n - 1').toString();
math.simplify('1n - 1').toString();
math.simplify('2n + 1').toString();
math.simplify('2z - 1').toString();
math.simplify('2n -- 1').toString();
Workaround
math.simplify('2n - 1',[]).toString();
[]
: no rules applied.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (9 by maintainers)
Resolved by #950
Ok. I will try to take a closer look tonight.
On Sep 30, 2017 8:11 AM, “Jos de Jong” notifications@github.com wrote: