
(FPCore (x y) :precision binary64 (+ (- 1.0 x) (* y (sqrt x))))
double code(double x, double y) {
return (1.0 - x) + (y * sqrt(x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - x) + (y * sqrt(x))
end function
public static double code(double x, double y) {
return (1.0 - x) + (y * Math.sqrt(x));
}
def code(x, y): return (1.0 - x) + (y * math.sqrt(x))
function code(x, y) return Float64(Float64(1.0 - x) + Float64(y * sqrt(x))) end
function tmp = code(x, y) tmp = (1.0 - x) + (y * sqrt(x)); end
code[x_, y_] := N[(N[(1.0 - x), $MachinePrecision] + N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - x\right) + y \cdot \sqrt{x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (+ (- 1.0 x) (* y (sqrt x))))
double code(double x, double y) {
return (1.0 - x) + (y * sqrt(x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - x) + (y * sqrt(x))
end function
public static double code(double x, double y) {
return (1.0 - x) + (y * Math.sqrt(x));
}
def code(x, y): return (1.0 - x) + (y * math.sqrt(x))
function code(x, y) return Float64(Float64(1.0 - x) + Float64(y * sqrt(x))) end
function tmp = code(x, y) tmp = (1.0 - x) + (y * sqrt(x)); end
code[x_, y_] := N[(N[(1.0 - x), $MachinePrecision] + N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - x\right) + y \cdot \sqrt{x}
\end{array}
(FPCore (x y) :precision binary64 (+ (- 1.0 x) (* y (sqrt x))))
double code(double x, double y) {
return (1.0 - x) + (y * sqrt(x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - x) + (y * sqrt(x))
end function
public static double code(double x, double y) {
return (1.0 - x) + (y * Math.sqrt(x));
}
def code(x, y): return (1.0 - x) + (y * math.sqrt(x))
function code(x, y) return Float64(Float64(1.0 - x) + Float64(y * sqrt(x))) end
function tmp = code(x, y) tmp = (1.0 - x) + (y * sqrt(x)); end
code[x_, y_] := N[(N[(1.0 - x), $MachinePrecision] + N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - x\right) + y \cdot \sqrt{x}
\end{array}
Initial program 99.8%
(FPCore (x y) :precision binary64 (if (or (<= y -1.16e+23) (not (<= y 6.6e+69))) (+ 1.0 (* y (sqrt x))) (- 1.0 x)))
double code(double x, double y) {
double tmp;
if ((y <= -1.16e+23) || !(y <= 6.6e+69)) {
tmp = 1.0 + (y * sqrt(x));
} else {
tmp = 1.0 - x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-1.16d+23)) .or. (.not. (y <= 6.6d+69))) then
tmp = 1.0d0 + (y * sqrt(x))
else
tmp = 1.0d0 - x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -1.16e+23) || !(y <= 6.6e+69)) {
tmp = 1.0 + (y * Math.sqrt(x));
} else {
tmp = 1.0 - x;
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.16e+23) or not (y <= 6.6e+69): tmp = 1.0 + (y * math.sqrt(x)) else: tmp = 1.0 - x return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.16e+23) || !(y <= 6.6e+69)) tmp = Float64(1.0 + Float64(y * sqrt(x))); else tmp = Float64(1.0 - x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -1.16e+23) || ~((y <= 6.6e+69))) tmp = 1.0 + (y * sqrt(x)); else tmp = 1.0 - x; end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.16e+23], N[Not[LessEqual[y, 6.6e+69]], $MachinePrecision]], N[(1.0 + N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.16 \cdot 10^{+23} \lor \neg \left(y \leq 6.6 \cdot 10^{+69}\right):\\
\;\;\;\;1 + y \cdot \sqrt{x}\\
\mathbf{else}:\\
\;\;\;\;1 - x\\
\end{array}
\end{array}
if y < -1.16e23 or 6.5999999999999997e69 < y Initial program 99.6%
Taylor expanded in x around 0 92.5%
if -1.16e23 < y < 6.5999999999999997e69Initial program 100.0%
add-sqr-sqrt100.0%
pow2100.0%
pow1/2100.0%
sqrt-pow1100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 98.0%
Final simplification95.5%
(FPCore (x y) :precision binary64 (if (<= y -1.5e+68) (* y (/ x (sqrt x))) (if (<= y 9.2e+77) (- 1.0 x) (/ y (pow x -0.5)))))
double code(double x, double y) {
double tmp;
if (y <= -1.5e+68) {
tmp = y * (x / sqrt(x));
} else if (y <= 9.2e+77) {
tmp = 1.0 - x;
} else {
tmp = y / pow(x, -0.5);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.5d+68)) then
tmp = y * (x / sqrt(x))
else if (y <= 9.2d+77) then
tmp = 1.0d0 - x
else
tmp = y / (x ** (-0.5d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.5e+68) {
tmp = y * (x / Math.sqrt(x));
} else if (y <= 9.2e+77) {
tmp = 1.0 - x;
} else {
tmp = y / Math.pow(x, -0.5);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.5e+68: tmp = y * (x / math.sqrt(x)) elif y <= 9.2e+77: tmp = 1.0 - x else: tmp = y / math.pow(x, -0.5) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.5e+68) tmp = Float64(y * Float64(x / sqrt(x))); elseif (y <= 9.2e+77) tmp = Float64(1.0 - x); else tmp = Float64(y / (x ^ -0.5)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.5e+68) tmp = y * (x / sqrt(x)); elseif (y <= 9.2e+77) tmp = 1.0 - x; else tmp = y / (x ^ -0.5); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.5e+68], N[(y * N[(x / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e+77], N[(1.0 - x), $MachinePrecision], N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+68}:\\
\;\;\;\;y \cdot \frac{x}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+77}:\\
\;\;\;\;1 - x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{{x}^{-0.5}}\\
\end{array}
\end{array}
if y < -1.5000000000000001e68Initial program 99.5%
Taylor expanded in x around inf 88.3%
Taylor expanded in x around 0 83.2%
associate-*r*92.5%
sqrt-div92.5%
metadata-eval92.5%
div-inv92.6%
*-commutative92.6%
associate-*r/82.9%
*-commutative82.9%
Applied egg-rr82.9%
*-commutative82.9%
associate-/l*92.6%
Applied egg-rr92.6%
if -1.5000000000000001e68 < y < 9.19999999999999979e77Initial program 100.0%
add-sqr-sqrt100.0%
pow2100.0%
pow1/2100.0%
sqrt-pow1100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 95.6%
if 9.19999999999999979e77 < y Initial program 99.7%
Taylor expanded in x around inf 76.7%
Taylor expanded in x around 0 70.0%
associate-*r*86.9%
sqrt-div86.9%
metadata-eval86.9%
div-inv86.8%
*-commutative86.8%
associate-*r/73.3%
pow1/273.3%
metadata-eval73.3%
pow-div73.0%
pow173.0%
pow1/273.0%
associate-*r/87.0%
pow187.0%
pow1/287.0%
pow-div86.8%
metadata-eval86.8%
pow1/286.8%
clear-num86.9%
pow1/286.9%
pow186.9%
pow-div87.0%
metadata-eval87.0%
metadata-eval87.0%
sqrt-pow187.0%
inv-pow87.0%
Applied egg-rr87.1%
(FPCore (x y) :precision binary64 (if (<= y -1.28e+64) (* y (sqrt x)) (if (<= y 2.6e+69) (- 1.0 x) (/ y (pow x -0.5)))))
double code(double x, double y) {
double tmp;
if (y <= -1.28e+64) {
tmp = y * sqrt(x);
} else if (y <= 2.6e+69) {
tmp = 1.0 - x;
} else {
tmp = y / pow(x, -0.5);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.28d+64)) then
tmp = y * sqrt(x)
else if (y <= 2.6d+69) then
tmp = 1.0d0 - x
else
tmp = y / (x ** (-0.5d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.28e+64) {
tmp = y * Math.sqrt(x);
} else if (y <= 2.6e+69) {
tmp = 1.0 - x;
} else {
tmp = y / Math.pow(x, -0.5);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.28e+64: tmp = y * math.sqrt(x) elif y <= 2.6e+69: tmp = 1.0 - x else: tmp = y / math.pow(x, -0.5) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.28e+64) tmp = Float64(y * sqrt(x)); elseif (y <= 2.6e+69) tmp = Float64(1.0 - x); else tmp = Float64(y / (x ^ -0.5)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.28e+64) tmp = y * sqrt(x); elseif (y <= 2.6e+69) tmp = 1.0 - x; else tmp = y / (x ^ -0.5); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.28e+64], N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+69], N[(1.0 - x), $MachinePrecision], N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.28 \cdot 10^{+64}:\\
\;\;\;\;y \cdot \sqrt{x}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+69}:\\
\;\;\;\;1 - x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{{x}^{-0.5}}\\
\end{array}
\end{array}
if y < -1.28000000000000004e64Initial program 99.5%
Taylor expanded in x around inf 97.7%
neg-mul-197.7%
Simplified97.7%
Taylor expanded in x around 0 92.6%
if -1.28000000000000004e64 < y < 2.6000000000000002e69Initial program 100.0%
add-sqr-sqrt100.0%
pow2100.0%
pow1/2100.0%
sqrt-pow1100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 95.6%
if 2.6000000000000002e69 < y Initial program 99.7%
Taylor expanded in x around inf 76.7%
Taylor expanded in x around 0 70.0%
associate-*r*86.9%
sqrt-div86.9%
metadata-eval86.9%
div-inv86.8%
*-commutative86.8%
associate-*r/73.3%
pow1/273.3%
metadata-eval73.3%
pow-div73.0%
pow173.0%
pow1/273.0%
associate-*r/87.0%
pow187.0%
pow1/287.0%
pow-div86.8%
metadata-eval86.8%
pow1/286.8%
clear-num86.9%
pow1/286.9%
pow186.9%
pow-div87.0%
metadata-eval87.0%
metadata-eval87.0%
sqrt-pow187.0%
inv-pow87.0%
Applied egg-rr87.1%
Final simplification93.4%
(FPCore (x y) :precision binary64 (if (or (<= y -2.1e+70) (not (<= y 9.2e+74))) (* y (sqrt x)) (- 1.0 x)))
double code(double x, double y) {
double tmp;
if ((y <= -2.1e+70) || !(y <= 9.2e+74)) {
tmp = y * sqrt(x);
} else {
tmp = 1.0 - x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-2.1d+70)) .or. (.not. (y <= 9.2d+74))) then
tmp = y * sqrt(x)
else
tmp = 1.0d0 - x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -2.1e+70) || !(y <= 9.2e+74)) {
tmp = y * Math.sqrt(x);
} else {
tmp = 1.0 - x;
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -2.1e+70) or not (y <= 9.2e+74): tmp = y * math.sqrt(x) else: tmp = 1.0 - x return tmp
function code(x, y) tmp = 0.0 if ((y <= -2.1e+70) || !(y <= 9.2e+74)) tmp = Float64(y * sqrt(x)); else tmp = Float64(1.0 - x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -2.1e+70) || ~((y <= 9.2e+74))) tmp = y * sqrt(x); else tmp = 1.0 - x; end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -2.1e+70], N[Not[LessEqual[y, 9.2e+74]], $MachinePrecision]], N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], N[(1.0 - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+70} \lor \neg \left(y \leq 9.2 \cdot 10^{+74}\right):\\
\;\;\;\;y \cdot \sqrt{x}\\
\mathbf{else}:\\
\;\;\;\;1 - x\\
\end{array}
\end{array}
if y < -2.10000000000000008e70 or 9.1999999999999994e74 < y Initial program 99.6%
Taylor expanded in x around inf 96.0%
neg-mul-196.0%
Simplified96.0%
Taylor expanded in x around 0 90.2%
if -2.10000000000000008e70 < y < 9.1999999999999994e74Initial program 100.0%
add-sqr-sqrt100.0%
pow2100.0%
pow1/2100.0%
sqrt-pow1100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 95.6%
Final simplification93.4%
(FPCore (x y) :precision binary64 (let* ((t_0 (* y (sqrt x)))) (if (<= x 4.2e-15) (+ 1.0 t_0) (- t_0 x))))
double code(double x, double y) {
double t_0 = y * sqrt(x);
double tmp;
if (x <= 4.2e-15) {
tmp = 1.0 + t_0;
} else {
tmp = t_0 - x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * sqrt(x)
if (x <= 4.2d-15) then
tmp = 1.0d0 + t_0
else
tmp = t_0 - x
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * Math.sqrt(x);
double tmp;
if (x <= 4.2e-15) {
tmp = 1.0 + t_0;
} else {
tmp = t_0 - x;
}
return tmp;
}
def code(x, y): t_0 = y * math.sqrt(x) tmp = 0 if x <= 4.2e-15: tmp = 1.0 + t_0 else: tmp = t_0 - x return tmp
function code(x, y) t_0 = Float64(y * sqrt(x)) tmp = 0.0 if (x <= 4.2e-15) tmp = Float64(1.0 + t_0); else tmp = Float64(t_0 - x); end return tmp end
function tmp_2 = code(x, y) t_0 = y * sqrt(x); tmp = 0.0; if (x <= 4.2e-15) tmp = 1.0 + t_0; else tmp = t_0 - x; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 4.2e-15], N[(1.0 + t$95$0), $MachinePrecision], N[(t$95$0 - x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \sqrt{x}\\
\mathbf{if}\;x \leq 4.2 \cdot 10^{-15}:\\
\;\;\;\;1 + t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_0 - x\\
\end{array}
\end{array}
if x < 4.19999999999999962e-15Initial program 99.8%
Taylor expanded in x around 0 99.8%
if 4.19999999999999962e-15 < x Initial program 99.9%
Taylor expanded in x around inf 98.7%
neg-mul-198.7%
Simplified98.7%
Taylor expanded in x around 0 98.7%
+-commutative98.7%
mul-1-neg98.7%
sub-neg98.7%
Simplified98.7%
Final simplification99.2%
(FPCore (x y) :precision binary64 (if (<= y -1.35e+154) (/ (- 1.0 (* x x)) (+ 1.0 x)) (- 1.0 x)))
double code(double x, double y) {
double tmp;
if (y <= -1.35e+154) {
tmp = (1.0 - (x * x)) / (1.0 + x);
} else {
tmp = 1.0 - x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.35d+154)) then
tmp = (1.0d0 - (x * x)) / (1.0d0 + x)
else
tmp = 1.0d0 - x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.35e+154) {
tmp = (1.0 - (x * x)) / (1.0 + x);
} else {
tmp = 1.0 - x;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.35e+154: tmp = (1.0 - (x * x)) / (1.0 + x) else: tmp = 1.0 - x return tmp
function code(x, y) tmp = 0.0 if (y <= -1.35e+154) tmp = Float64(Float64(1.0 - Float64(x * x)) / Float64(1.0 + x)); else tmp = Float64(1.0 - x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.35e+154) tmp = (1.0 - (x * x)) / (1.0 + x); else tmp = 1.0 - x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.35e+154], N[(N[(1.0 - N[(x * x), $MachinePrecision]), $MachinePrecision] / N[(1.0 + x), $MachinePrecision]), $MachinePrecision], N[(1.0 - x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+154}:\\
\;\;\;\;\frac{1 - x \cdot x}{1 + x}\\
\mathbf{else}:\\
\;\;\;\;1 - x\\
\end{array}
\end{array}
if y < -1.35000000000000003e154Initial program 99.4%
add-sqr-sqrt99.3%
pow299.3%
pow1/299.3%
sqrt-pow199.4%
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in y around 0 3.7%
sub-neg3.7%
flip-+22.3%
metadata-eval22.3%
Applied egg-rr22.3%
if -1.35000000000000003e154 < y Initial program 99.9%
add-sqr-sqrt99.8%
pow299.8%
pow1/299.8%
sqrt-pow199.8%
metadata-eval99.8%
Applied egg-rr99.8%
Taylor expanded in y around 0 73.0%
Final simplification63.9%
(FPCore (x y) :precision binary64 (if (<= x 4.2e-15) 1.0 (- x)))
double code(double x, double y) {
double tmp;
if (x <= 4.2e-15) {
tmp = 1.0;
} else {
tmp = -x;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 4.2d-15) then
tmp = 1.0d0
else
tmp = -x
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 4.2e-15) {
tmp = 1.0;
} else {
tmp = -x;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 4.2e-15: tmp = 1.0 else: tmp = -x return tmp
function code(x, y) tmp = 0.0 if (x <= 4.2e-15) tmp = 1.0; else tmp = Float64(-x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 4.2e-15) tmp = 1.0; else tmp = -x; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 4.2e-15], 1.0, (-x)]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.2 \cdot 10^{-15}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;-x\\
\end{array}
\end{array}
if x < 4.19999999999999962e-15Initial program 99.8%
Taylor expanded in x around 0 99.8%
Taylor expanded in y around 0 63.1%
if 4.19999999999999962e-15 < x Initial program 99.9%
Taylor expanded in x around inf 98.6%
Taylor expanded in y around 0 57.3%
neg-mul-157.3%
Simplified57.3%
(FPCore (x y) :precision binary64 (- 1.0 x))
double code(double x, double y) {
return 1.0 - x;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 - x
end function
public static double code(double x, double y) {
return 1.0 - x;
}
def code(x, y): return 1.0 - x
function code(x, y) return Float64(1.0 - x) end
function tmp = code(x, y) tmp = 1.0 - x; end
code[x_, y_] := N[(1.0 - x), $MachinePrecision]
\begin{array}{l}
\\
1 - x
\end{array}
Initial program 99.8%
add-sqr-sqrt99.7%
pow299.7%
pow1/299.7%
sqrt-pow199.7%
metadata-eval99.7%
Applied egg-rr99.7%
Taylor expanded in y around 0 60.6%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.8%
Taylor expanded in x around 0 69.0%
Taylor expanded in y around 0 29.6%
herbie shell --seed 2024163
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, E"
:precision binary64
(+ (- 1.0 x) (* y (sqrt x))))