logn(x) parsed as log(n)(x)

Bug #1764724 reported by Max Marrone on 2018-04-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-calculator (Ubuntu)

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.

Sebastien Bacher (seb128) wrote :

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 ?

Changed in gnome-calculator (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Sebastien Bacher (seb128) wrote :


Changed in gnome-calculator (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers