(FPCore () :precision binary64 (log 0.2))
double code() { return log(0.2); }
real(8) function code() code = log(0.2d0) end function
public static double code() { return Math.log(0.2); }
def code(): return math.log(0.2)
function code() return log(0.2) end
function tmp = code() tmp = log(0.2); end
code[] := N[Log[0.2], $MachinePrecision]
\begin{array}{l} \\ \log 0.2 \end{array}
Sampling outcomes in binary64 precision:
Herbie found 1 alternatives:
Alternative | Accuracy | Speedup |
---|
(FPCore () :precision binary64 (log 0.2))
double code() { return log(0.2); }
real(8) function code() code = log(0.2d0) end function
public static double code() { return Math.log(0.2); }
def code(): return math.log(0.2)
function code() return log(0.2) end
function tmp = code() tmp = log(0.2); end
code[] := N[Log[0.2], $MachinePrecision]
\begin{array}{l} \\ \log 0.2 \end{array}
(FPCore () :precision binary64 (log 0.2))
double code() { return log(0.2); }
real(8) function code() code = log(0.2d0) end function
public static double code() { return Math.log(0.2); }
def code(): return math.log(0.2)
function code() return log(0.2) end
function tmp = code() tmp = log(0.2); end
code[] := N[Log[0.2], $MachinePrecision]
\begin{array}{l} \\ \log 0.2 \end{array}
Initial program 100.0%
herbie shell --seed 5
(FPCore ()
:name "log(0.2)"
:precision binary64
(log 0.2))