josdejong / josdejong/mathjs

simplifying linear expressions

Open
#3,692 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

**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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.