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