Bug 335607

Summary: KBruch 4.12 shows incorrect answer
Product: [Applications] kbruch Reporter: Andrius Štikonas <andrius>
Component: generalAssignee: Sebastian Stein <seb.kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bernardoahrensteixeira, tiagoporangaba
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kbruch showing incorrect answer (1)

Description Andrius Štikonas 2014-05-30 18:21:58 UTC
KBruch asked the following question:

5/9 + (1 1/3) / (1 1/2) - 6 - 2

The correct answer should be -6 5/9 but KBruch claims that correct answer is 1.

Reproducible: Didn't try

Actual Results:  
KBruch claims that answer must be 1.

Expected Results:  
KBruch claims that correct answer is -6 5/9.

All the check boxes on the left were enabled. Number of terms was 5. Maximum denominator was 50.
Comment 1 Andrius Štikonas 2014-05-30 21:25:54 UTC
Created attachment 86920 [details]
kbruch showing incorrect answer (1)
Comment 2 Andrius Štikonas 2014-05-30 22:26:35 UTC
I think reproducibility of this can be checked if source code is modified so that it always creates this problem instead of the random one.

Note that I also encountered some infinite loops while trying to reproduce this manually...
Comment 3 Sebastian Stein 2017-02-06 08:20:20 UTC
*** Bug 376076 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Stein 2017-02-06 08:21:21 UTC
Just saw this bug now. I haven't touched the code since years, so need to investigate who broke it. This used to work for more than 10 years without problems :-(
Comment 5 Sebastian Stein 2017-08-22 18:40:08 UTC
I believe this problem was fixed by not allowing to select both checkboxes: mixed numbers and reduced results.

I was not able to reproduce this bug anymore compiling latest version from master branch.

*** This bug has been marked as a duplicate of bug 357675 ***