josdejong/mathjs
Ver no GitHub[BUG] error when handling coefficients with fractions
Open
#2.594 aberto em 11 de jun. de 2022
featurehelp wanted
Métricas do repositório
- Stars
- (13.832 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Steps to reproduce:
- URL encode
simplify('w/5-(2w+3)/2-3w/5')tosimplify%28%27w%2F5-%282w%2B3%29%2F2-3w%2F5%27%29using any URL encoder (I used https://www.urlencoder.io/). - Hit https://api.mathjs.org/v4/?expr=simplify%28%27w%2F5-%282w%2B3%29%2F2-3w%2F5%27%29 in the address bar in any web browser (I'm using Google Chrome).
- Got output
w * -2 / 5 + (-(2 * w) - 3) / 2.
Expected output: $$\frac{w}{5}-\frac{2w+3}{2}-\frac{3w}{5} = -\frac75w-\frac32$$