Infinite loop when simplifying
Open
- Dominant language
- JavaScript
- Stars
- 15.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
attempting to simplify certain valid math expressions causes mathjs to enter an infinite loop
**To Reproduce**
run `simplify("(1/(x*(y-1)))^(1/(y-1))")` in mathjs demo
Contributor guide
Research direction
Reproduce the issue in the mathjs demo with simplify("(1/(x*(y-1)))^(1/(y-1))"), then trace the simplification path that fails to terminate. The payload names no source file or test; done means this valid expression no longer causes an infinite loop while simplifying.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100