(FPCore () :precision binary64 (* 80000.0 0.375))
double code() { return 80000.0 * 0.375; }
real(8) function code() code = 80000.0d0 * 0.375d0 end function
public static double code() { return 80000.0 * 0.375; }
def code(): return 80000.0 * 0.375
function code() return Float64(80000.0 * 0.375) end
function tmp = code() tmp = 80000.0 * 0.375; end
code[] := N[(80000.0 * 0.375), $MachinePrecision]
\begin{array}{l} \\ 80000 \cdot 0.375 \end{array}
Sampling outcomes in binary64 precision:
Herbie found 1 alternatives:
Alternative | Accuracy | Speedup |
---|
(FPCore () :precision binary64 (* 80000.0 0.375))
double code() { return 80000.0 * 0.375; }
real(8) function code() code = 80000.0d0 * 0.375d0 end function
public static double code() { return 80000.0 * 0.375; }
def code(): return 80000.0 * 0.375
function code() return Float64(80000.0 * 0.375) end
function tmp = code() tmp = 80000.0 * 0.375; end
code[] := N[(80000.0 * 0.375), $MachinePrecision]
\begin{array}{l} \\ 80000 \cdot 0.375 \end{array}
(FPCore () :precision binary64 30000.0)
double code() { return 30000.0; }
real(8) function code() code = 30000.0d0 end function
public static double code() { return 30000.0; }
def code(): return 30000.0
function code() return 30000.0 end
function tmp = code() tmp = 30000.0; end
code[] := 30000.0
\begin{array}{l} \\ 30000 \end{array}
Initial program 100.0%
lift-*.f64
N/A
metadata-eval
100.0
Applied rewrites100.0%
herbie shell --seed 1
(FPCore ()
:name "80000*0.375"
:precision binary64
(* 80000.0 0.375))