logn(x) parsed as log(n)(x)
Originally reported here.
gnome-calculator appears to always parse logn(x)
notation as log(n)(x)
. So, log10(2)
is log(10)(2) = 2
, rather than log10(2) ~= 0.301
.
Arbitrary bases are already supported if the base is input as a subscript. But, typing the base without subscript is common enough that it should be accounted for. gnome-calculator should at least show an error like "function 'log10' is not defined," to avoid silently reporting incorrect results.
Tested on gnome-calculator 3.28.2.