Re: x10^y button
- From: Niels De Graef <nielsdegraef gmail com>
- To: Zsolt Puskas <zs puskas feti hu>, gcalctool-list gnome org
- Subject: Re: x10^y button
- Date: Sun, 16 Apr 2017 21:08:08 +0000
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
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]