Re: x10^y button



Hey Zsolt,

I'd say that, given the commonly used operator precedence, this is correct.
From what I can tell:
* Power (i.e. '^') takes precedence over multiplication and division.
* Operators of the same precedence should be solved left-to-right.
This would mean the equation would be solved as:

1X10^3/1x10^3
  = 1X(10^3)/1x(10^3)3)      <--- power operator first
  = (10^3)/1x(10^3)              <--- Do the first multiplication
  = (10^3)x(10^3)                 <--- Do the second multiplication
  = (10^6)                              <--- Do the last multiplication


Cheers,
nielsdg 


Op zo 16 apr. 2017 om 12:34 schreef Zsolt Puskas <zs puskas feti hu>
Hi !

If I type 1X10^3/1x10^3 in the advanced mode in the calculator I get
1*10^6 instead of 1.
In a regular calculator gives 1X10^3/(1x10^3) = 1. The calculator
version is 3.18.3. in linux mint 18 from the repo.
Is it a feature or a bug ?

Happy Easter you guys anyway !

pzs




_______________________________________________
gcalctool-list mailing list
gcalctool-list gnome org
https://mail.gnome.org/mailman/listinfo/gcalctool-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]