Bug 335607 - KBruch 4.12 shows incorrect answer
Summary: KBruch 4.12 shows incorrect answer
Status: RESOLVED DUPLICATE of bug 357675
Alias: None
Product: kbruch
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Stein
URL:
Keywords:
: 376076 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-05-30 18:21 UTC by Andrius Štikonas
Modified: 2017-08-22 18:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kbruch showing incorrect answer (1) (16.79 KB, image/png)
2014-05-30 21:25 UTC, Andrius Štikonas
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***