simplifying linear expressions
Open
- Dominant language
- JavaScript
- Stars
- 15.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
**Bug Description**
mathJS fails to simplify simple linear expressions
**To Reproduce**
for example:
`simplify('7*(-t-13) -4 -12t')`
returns:
`7 * (-t - 13) - 12 * t - 4`
instead of:
`-19 * t - 95`
Contributor guide
Research direction
Start by reproducing the simplify('7*(-t-13) -4 -12t') entry point and inspect how the expression is transformed. Done means simplify combines the terms and returns -19 * t - 95 for this example, with regression coverage for the reported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100