First power of 2 that has leading decimal digits of 12: Difference between revisions

Content added Content deleted
(add RPL)
m (→‎{{header|Wren}}: Minor tidy)
Line 2,168: Line 2,168:
{{libheader|Wren-math}}
{{libheader|Wren-math}}
Just the first version which has turned out to be much quicker than the Go entry (around 28 seconds on the same machine). Frankly, I've no idea why.
Just the first version which has turned out to be much quicker than the Go entry (around 28 seconds on the same machine). Frankly, I've no idea why.
<syntaxhighlight lang="ecmascript">import "/fmt" for Fmt
<syntaxhighlight lang="wren">import "./fmt" for Fmt
import "/math" for Math
import "./math" for Math


var ld10 = Math.ln2 / Math.ln10
var ld10 = Math.ln2 / Math.ln10