josdejong / josdejong/mathjs

Infinite loop when simplifying

Open
#3,693 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.