Wrong order of operations, implicit multiplication
Issue #598
closed
Implicit multiplication followed by parentheses is handled incorrectly.
x=123
5*x^2
= 75645
5 x^2
= 75645
5 (x)^2
= 378225
Comments (8)
-
repo owner -
reporter I have pinpointed the problem: it is caused by @thadrien's
Rule #2 for implicit multiplication with parentheses
(starting in line 935 inevaluator.cpp
, originating from 6047271). This rule is required for handling cases such as2 (2+1)
. Let me see if I can do something...Otherwise we just have to ditch that rule again...
-
reporter Just posted pull request #34. Wondering if it's actually that easy a fix. All the tests succeed at least.
-
repo owner Please include @thadrien in the PR review.
-
repo owner - changed status to resolved
Fixes issue
#598→ <<cset 4bcbb012a43b>>
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
repo owner - changed status to closed
- Log in to comment
Ouch :) Let's not forget to add this test to the suite.