https://bugs.kde.org/show_bug.cgi?id=497301

John Kizer <john.ki...@proton.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|log(n) is evaluated as      |log10(n) is not recognized
                   |ln(n)                       |as a calculator function

--- Comment #2 from John Kizer <john.ki...@proton.me> ---
Well, this was bugging me and I wanted to see if there was something that would
explain it...and as it turns out, KRunner actually uses Qalculate as its
backend for the calculator function
(https://userbase.kde.org/Plasma/Krunner#Calculator), Qalculate views log() as
ambiguous without a specific base, and it defaults to e as the base. If you
type log(10; 10) into KRunner, for example, you should get 1 as expected.

So, this is *kind of* intended behavior...however, I do think there's a bug
here still, as the intended Qalculate Base-10 Logarithm function - log10() -
doesn't seem to be recognized by KRunner, so I switched the title accordingly.

I'm saying that's the intended Base-10 log function based on the Qalculate
manual
(https://qalculate.github.io/manual/qalculate-definitions-functions.html#qalculate-definitions-functions-1-Exponents--Logarithms)
and a comment left by a Qalculate contributor on this topic: "In Qalculate
log() is primarily intended for logarithms with bases other than 10 or e"
(https://github.com/Qalculate/libqalculate/pull/430)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to