Wrong order of operations, implicit multiplication

Create issue
Issue #598 closed
Pol Welter created an issue

Implicit multiplication followed by parentheses is handled incorrectly.


= 75645

5 x^2
= 75645

5 (x)^2
= 378225

Comments (8)

  1. Pol Welter reporter

    I have pinpointed the problem: it is caused by @thadrien's Rule #2 for implicit multiplication with parentheses (starting in line 935 in evaluator.cpp, originating from 6047271). This rule is required for handling cases such as 2 (2+1). Let me see if I can do something...

    Otherwise we just have to ditch that rule again...

  2. Log in to comment