Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kcalc calculates wrong
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mhex
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 154
Location: Germany/Berlin

PostPosted: Fri Sep 04, 2020 10:00 am    Post subject: kcalc calculates wrong Reply with quote

Hi,

in kcalc if i want to calculate e.g. 10^2 + 11^2 + 12^2 + 13^2 the second and consecutive '+' inputs don't sum up the intermediate results.
E.g. after typing 10^2 + 11^2 + it just switched back from the intermediate result 11^2 (121) back to 10^2 (100). I.e.
after typing 10^2 + 11^2 + 12^2 + 13^2 and then '=' the result is 10^2 + 13^2 and
11^2 + 12^2 is missing. Same happens with subtracting, multiplication, division and other functions e.g. x!, Log, Tan, Sin etc.

TLDR;

a^2 + b^2 + c^2 + d^2 + e^2 = calculates a^2 + e^2
a sin - b sin - c sin - d sin - e sin = calculates sin(a) - sin(e)

KDE Frameworks 5.70.0
Qt 5.14.2 (kompiliert gegen 5.14.2)
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2415
Location: Frankfurt, Germany

PostPosted: Fri Sep 04, 2020 10:35 am    Post subject: Reply with quote

Seems to depend on the way I enter the numbers and operators.

If I enter 10^2 + 11^2 + 12^2 + 13^2 using the keyboard, it works correctly.

If I enter the numbers and operators using the mouse and pressing the buttons in the kcalc window, I get the same result as you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum