logn(x) parsed as log(n)(x)
Bug #1764724 reported by
Max Marrone
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-calculator (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
"logn" is common notation for log base n, e.g. log2(x) is log base 2 of x.
gnome-calculator appears to always parse this 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.
Ubuntu 17.10, gnome-calculator 3.25.92.
To post a comment you must log in.
Indeed, that's still an issue in the current version and seems an upstream one. Could you maybe report it to them as well on https:/ /gitlab. gnome.org/ GNOME/gnome- calculator/ issues ?