Please feel free to provide feedback or file bugs here.

log2(45/120) * 2 should be interpreted as (log2(45/120)) * 2

Given a function:
function log2 {param ([double]$x) [Math]::Log($x) / [Math]::Log(2) }

Expected: log2(45/120) * 2 is interpreted as (log2(45/120)) * 2 and yields -2.83007499856

Actual: log2(45/120) * 2 equals log2(45/120) and yields -1,41503749927884

(log2(1/2) * 3) -eq (log2(1/2)) yields True - it doesn't make sense.

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Ivan Akcheurov shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base