Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

bug : x-2/3=0 #267

Open
fpiou opened this issue Dec 24, 2021 · 0 comments
Open

bug : x-2/3=0 #267

fpiou opened this issue Dec 24, 2021 · 0 comments

Comments

@fpiou
Copy link

fpiou commented Dec 24, 2021

Below is four example of what mathsteps is doing. The 1 cause strange transformation, the 3 is false. The 2 and 4 are the same than 1 an 3 without bug.

The problem occur when the end of the leftNode or rightNode is like "-a/b".

1) steps = solveEquation('x - 2/3 = 0') ----> 'x + -(--2 / 3) = 0'

2) steps = solveEquation('x - 2/3+0 = 0') ----> 'x + -2 / 3 + 0 = 0'

3) steps = solveEquation('x - (-2/3) = 0') ----> 'x + -(--2 / 3) = 0'

4) steps = solveEquation('x - (-2/3) + 0 = 0') ----> 'x - (-2 / 3) + 0 = 0'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant