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

bug : x-2/3=0 #267

Description

@fpiou

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions