(FPCore (y x) :precision binary64 (atan (/ y x)))
double code(double y, double x) { return atan((y / x)); }
real(8) function code(y, x) real(8), intent (in) :: y real(8), intent (in) :: x code = atan((y / x)) end function
public static double code(double y, double x) { return Math.atan((y / x)); }
def code(y, x): return math.atan((y / x))
function code(y, x) return atan(Float64(y / x)) end
function tmp = code(y, x) tmp = atan((y / x)); end
code[y_, x_] := N[ArcTan[N[(y / x), $MachinePrecision]], $MachinePrecision]
\begin{array}{l} \\ \tan^{-1} \left(\frac{y}{x}\right) \end{array}
Sampling outcomes in binary64 precision:
Herbie found 1 alternatives:
Alternative | Accuracy | Speedup |
---|
(FPCore (y x) :precision binary64 (atan (/ y x)))
double code(double y, double x) { return atan((y / x)); }
real(8) function code(y, x) real(8), intent (in) :: y real(8), intent (in) :: x code = atan((y / x)) end function
public static double code(double y, double x) { return Math.atan((y / x)); }
def code(y, x): return math.atan((y / x))
function code(y, x) return atan(Float64(y / x)) end
function tmp = code(y, x) tmp = atan((y / x)); end
code[y_, x_] := N[ArcTan[N[(y / x), $MachinePrecision]], $MachinePrecision]
\begin{array}{l} \\ \tan^{-1} \left(\frac{y}{x}\right) \end{array}
(FPCore (y x) :precision binary64 (atan (/ y x)))
double code(double y, double x) { return atan((y / x)); }
real(8) function code(y, x) real(8), intent (in) :: y real(8), intent (in) :: x code = atan((y / x)) end function
public static double code(double y, double x) { return Math.atan((y / x)); }
def code(y, x): return math.atan((y / x))
function code(y, x) return atan(Float64(y / x)) end
function tmp = code(y, x) tmp = atan((y / x)); end
code[y_, x_] := N[ArcTan[N[(y / x), $MachinePrecision]], $MachinePrecision]
\begin{array}{l} \\ \tan^{-1} \left(\frac{y}{x}\right) \end{array}
Initial program 100.0%
herbie shell --seed 5
(FPCore (y x)
:name "atan(y/x)"
:precision binary64
:pre (and (and (<= -1.79e+308 y) (<= y 1.79e+308)) (and (<= -1.79e+308 x) (<= x 1.79e+308)))
(atan (/ y x)))