
(FPCore (x y z) :precision binary64 (* (+ x y) (+ z 1.0)))
double code(double x, double y, double z) {
return (x + y) * (z + 1.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + y) * (z + 1.0d0)
end function
public static double code(double x, double y, double z) {
return (x + y) * (z + 1.0);
}
def code(x, y, z): return (x + y) * (z + 1.0)
function code(x, y, z) return Float64(Float64(x + y) * Float64(z + 1.0)) end
function tmp = code(x, y, z) tmp = (x + y) * (z + 1.0); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) \cdot \left(z + 1\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (* (+ x y) (+ z 1.0)))
double code(double x, double y, double z) {
return (x + y) * (z + 1.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + y) * (z + 1.0d0)
end function
public static double code(double x, double y, double z) {
return (x + y) * (z + 1.0);
}
def code(x, y, z): return (x + y) * (z + 1.0)
function code(x, y, z) return Float64(Float64(x + y) * Float64(z + 1.0)) end
function tmp = code(x, y, z) tmp = (x + y) * (z + 1.0); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) \cdot \left(z + 1\right)
\end{array}
(FPCore (x y z) :precision binary64 (+ (+ x y) (* z (+ x y))))
double code(double x, double y, double z) {
return (x + y) + (z * (x + y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + y) + (z * (x + y))
end function
public static double code(double x, double y, double z) {
return (x + y) + (z * (x + y));
}
def code(x, y, z): return (x + y) + (z * (x + y))
function code(x, y, z) return Float64(Float64(x + y) + Float64(z * Float64(x + y))) end
function tmp = code(x, y, z) tmp = (x + y) + (z * (x + y)); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] + N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) + z \cdot \left(x + y\right)
\end{array}
Initial program 100.0%
+-commutative100.0%
distribute-lft-in100.0%
*-rgt-identity100.0%
Applied egg-rr100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(if (<= z -13.2)
(* x z)
(if (<= z -4e-115)
x
(if (<= z -6.2e-181)
y
(if (<= z 2.5e-207) x (if (<= z 1e-16) y (* y z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -13.2) {
tmp = x * z;
} else if (z <= -4e-115) {
tmp = x;
} else if (z <= -6.2e-181) {
tmp = y;
} else if (z <= 2.5e-207) {
tmp = x;
} else if (z <= 1e-16) {
tmp = y;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-13.2d0)) then
tmp = x * z
else if (z <= (-4d-115)) then
tmp = x
else if (z <= (-6.2d-181)) then
tmp = y
else if (z <= 2.5d-207) then
tmp = x
else if (z <= 1d-16) then
tmp = y
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -13.2) {
tmp = x * z;
} else if (z <= -4e-115) {
tmp = x;
} else if (z <= -6.2e-181) {
tmp = y;
} else if (z <= 2.5e-207) {
tmp = x;
} else if (z <= 1e-16) {
tmp = y;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -13.2: tmp = x * z elif z <= -4e-115: tmp = x elif z <= -6.2e-181: tmp = y elif z <= 2.5e-207: tmp = x elif z <= 1e-16: tmp = y else: tmp = y * z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -13.2) tmp = Float64(x * z); elseif (z <= -4e-115) tmp = x; elseif (z <= -6.2e-181) tmp = y; elseif (z <= 2.5e-207) tmp = x; elseif (z <= 1e-16) tmp = y; else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -13.2) tmp = x * z; elseif (z <= -4e-115) tmp = x; elseif (z <= -6.2e-181) tmp = y; elseif (z <= 2.5e-207) tmp = x; elseif (z <= 1e-16) tmp = y; else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -13.2], N[(x * z), $MachinePrecision], If[LessEqual[z, -4e-115], x, If[LessEqual[z, -6.2e-181], y, If[LessEqual[z, 2.5e-207], x, If[LessEqual[z, 1e-16], y, N[(y * z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -13.2:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-115}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-181}:\\
\;\;\;\;y\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-207}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 10^{-16}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if z < -13.199999999999999Initial program 100.0%
Taylor expanded in x around inf 60.4%
+-commutative60.4%
distribute-lft-in60.4%
*-rgt-identity60.4%
Applied egg-rr60.4%
Taylor expanded in z around inf 60.1%
*-commutative60.1%
Simplified60.1%
if -13.199999999999999 < z < -4.0000000000000002e-115 or -6.20000000000000043e-181 < z < 2.50000000000000007e-207Initial program 100.0%
Taylor expanded in x around inf 55.8%
Taylor expanded in z around 0 53.2%
if -4.0000000000000002e-115 < z < -6.20000000000000043e-181 or 2.50000000000000007e-207 < z < 9.9999999999999998e-17Initial program 100.0%
Taylor expanded in x around 0 56.8%
Taylor expanded in z around 0 56.8%
if 9.9999999999999998e-17 < z Initial program 99.9%
Taylor expanded in x around 0 50.7%
Taylor expanded in z around inf 50.7%
Taylor expanded in z around inf 47.7%
Final simplification54.7%
(FPCore (x y z)
:precision binary64
(if (<= z -1.0)
(* y z)
(if (<= z -3.2e-114)
x
(if (<= z -4.3e-181)
y
(if (<= z 7.8e-209) x (if (<= z 1e-16) y (* y z)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.0) {
tmp = y * z;
} else if (z <= -3.2e-114) {
tmp = x;
} else if (z <= -4.3e-181) {
tmp = y;
} else if (z <= 7.8e-209) {
tmp = x;
} else if (z <= 1e-16) {
tmp = y;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.0d0)) then
tmp = y * z
else if (z <= (-3.2d-114)) then
tmp = x
else if (z <= (-4.3d-181)) then
tmp = y
else if (z <= 7.8d-209) then
tmp = x
else if (z <= 1d-16) then
tmp = y
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.0) {
tmp = y * z;
} else if (z <= -3.2e-114) {
tmp = x;
} else if (z <= -4.3e-181) {
tmp = y;
} else if (z <= 7.8e-209) {
tmp = x;
} else if (z <= 1e-16) {
tmp = y;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.0: tmp = y * z elif z <= -3.2e-114: tmp = x elif z <= -4.3e-181: tmp = y elif z <= 7.8e-209: tmp = x elif z <= 1e-16: tmp = y else: tmp = y * z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.0) tmp = Float64(y * z); elseif (z <= -3.2e-114) tmp = x; elseif (z <= -4.3e-181) tmp = y; elseif (z <= 7.8e-209) tmp = x; elseif (z <= 1e-16) tmp = y; else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.0) tmp = y * z; elseif (z <= -3.2e-114) tmp = x; elseif (z <= -4.3e-181) tmp = y; elseif (z <= 7.8e-209) tmp = x; elseif (z <= 1e-16) tmp = y; else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.0], N[(y * z), $MachinePrecision], If[LessEqual[z, -3.2e-114], x, If[LessEqual[z, -4.3e-181], y, If[LessEqual[z, 7.8e-209], x, If[LessEqual[z, 1e-16], y, N[(y * z), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1:\\
\;\;\;\;y \cdot z\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-114}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{-181}:\\
\;\;\;\;y\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-209}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 10^{-16}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if z < -1 or 9.9999999999999998e-17 < z Initial program 100.0%
Taylor expanded in x around 0 47.8%
Taylor expanded in z around inf 47.8%
Taylor expanded in z around inf 46.1%
if -1 < z < -3.2000000000000002e-114 or -4.3e-181 < z < 7.8000000000000001e-209Initial program 100.0%
Taylor expanded in x around inf 55.1%
Taylor expanded in z around 0 54.0%
if -3.2000000000000002e-114 < z < -4.3e-181 or 7.8000000000000001e-209 < z < 9.9999999999999998e-17Initial program 100.0%
Taylor expanded in x around 0 56.8%
Taylor expanded in z around 0 56.8%
(FPCore (x y z) :precision binary64 (if (or (<= y 2.2e-196) (and (not (<= y 1.9e-64)) (<= y 2.8e-39))) (* x (+ z 1.0)) (* y (+ z 1.0))))
double code(double x, double y, double z) {
double tmp;
if ((y <= 2.2e-196) || (!(y <= 1.9e-64) && (y <= 2.8e-39))) {
tmp = x * (z + 1.0);
} else {
tmp = y * (z + 1.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= 2.2d-196) .or. (.not. (y <= 1.9d-64)) .and. (y <= 2.8d-39)) then
tmp = x * (z + 1.0d0)
else
tmp = y * (z + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= 2.2e-196) || (!(y <= 1.9e-64) && (y <= 2.8e-39))) {
tmp = x * (z + 1.0);
} else {
tmp = y * (z + 1.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= 2.2e-196) or (not (y <= 1.9e-64) and (y <= 2.8e-39)): tmp = x * (z + 1.0) else: tmp = y * (z + 1.0) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= 2.2e-196) || (!(y <= 1.9e-64) && (y <= 2.8e-39))) tmp = Float64(x * Float64(z + 1.0)); else tmp = Float64(y * Float64(z + 1.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= 2.2e-196) || (~((y <= 1.9e-64)) && (y <= 2.8e-39))) tmp = x * (z + 1.0); else tmp = y * (z + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, 2.2e-196], And[N[Not[LessEqual[y, 1.9e-64]], $MachinePrecision], LessEqual[y, 2.8e-39]]], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], N[(y * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.2 \cdot 10^{-196} \lor \neg \left(y \leq 1.9 \cdot 10^{-64}\right) \land y \leq 2.8 \cdot 10^{-39}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(z + 1\right)\\
\end{array}
\end{array}
if y < 2.20000000000000015e-196 or 1.9000000000000001e-64 < y < 2.8000000000000001e-39Initial program 100.0%
Taylor expanded in x around inf 61.5%
if 2.20000000000000015e-196 < y < 1.9000000000000001e-64 or 2.8000000000000001e-39 < y Initial program 100.0%
Taylor expanded in x around 0 60.9%
Final simplification61.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -1.0) (not (<= z 1.0))) (* z (+ x y)) (+ x y)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
tmp = z * (x + y);
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-1.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = z * (x + y)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -1.0) || !(z <= 1.0)) {
tmp = z * (x + y);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -1.0) or not (z <= 1.0): tmp = z * (x + y) else: tmp = x + y return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -1.0) || !(z <= 1.0)) tmp = Float64(z * Float64(x + y)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -1.0) || ~((z <= 1.0))) tmp = z * (x + y); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -1.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;z \cdot \left(x + y\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1 or 1 < z Initial program 100.0%
Taylor expanded in z around inf 97.3%
+-commutative97.3%
Simplified97.3%
if -1 < z < 1Initial program 100.0%
Taylor expanded in z around 0 98.2%
+-commutative98.2%
Simplified98.2%
Final simplification97.8%
(FPCore (x y z) :precision binary64 (if (<= z -3.2e-26) (* x (+ z 1.0)) (if (<= z 88.0) (+ x y) (* y z))))
double code(double x, double y, double z) {
double tmp;
if (z <= -3.2e-26) {
tmp = x * (z + 1.0);
} else if (z <= 88.0) {
tmp = x + y;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-3.2d-26)) then
tmp = x * (z + 1.0d0)
else if (z <= 88.0d0) then
tmp = x + y
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -3.2e-26) {
tmp = x * (z + 1.0);
} else if (z <= 88.0) {
tmp = x + y;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -3.2e-26: tmp = x * (z + 1.0) elif z <= 88.0: tmp = x + y else: tmp = y * z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -3.2e-26) tmp = Float64(x * Float64(z + 1.0)); elseif (z <= 88.0) tmp = Float64(x + y); else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -3.2e-26) tmp = x * (z + 1.0); elseif (z <= 88.0) tmp = x + y; else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -3.2e-26], N[(x * N[(z + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 88.0], N[(x + y), $MachinePrecision], N[(y * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \left(z + 1\right)\\
\mathbf{elif}\;z \leq 88:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if z < -3.2000000000000001e-26Initial program 100.0%
Taylor expanded in x around inf 59.8%
if -3.2000000000000001e-26 < z < 88Initial program 100.0%
Taylor expanded in z around 0 97.8%
+-commutative97.8%
Simplified97.8%
if 88 < z Initial program 100.0%
Taylor expanded in x around 0 51.5%
Taylor expanded in z around inf 51.5%
Taylor expanded in z around inf 51.5%
Final simplification76.3%
(FPCore (x y z) :precision binary64 (if (<= z -1.0) (* x z) (if (<= z 140.0) (+ x y) (* y z))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.0) {
tmp = x * z;
} else if (z <= 140.0) {
tmp = x + y;
} else {
tmp = y * z;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.0d0)) then
tmp = x * z
else if (z <= 140.0d0) then
tmp = x + y
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.0) {
tmp = x * z;
} else if (z <= 140.0) {
tmp = x + y;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.0: tmp = x * z elif z <= 140.0: tmp = x + y else: tmp = y * z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.0) tmp = Float64(x * z); elseif (z <= 140.0) tmp = Float64(x + y); else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.0) tmp = x * z; elseif (z <= 140.0) tmp = x + y; else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.0], N[(x * z), $MachinePrecision], If[LessEqual[z, 140.0], N[(x + y), $MachinePrecision], N[(y * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq 140:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
\end{array}
if z < -1Initial program 100.0%
Taylor expanded in x around inf 60.9%
+-commutative60.9%
distribute-lft-in60.9%
*-rgt-identity60.9%
Applied egg-rr60.9%
Taylor expanded in z around inf 59.6%
*-commutative59.6%
Simplified59.6%
if -1 < z < 140Initial program 100.0%
Taylor expanded in z around 0 97.0%
+-commutative97.0%
Simplified97.0%
if 140 < z Initial program 100.0%
Taylor expanded in x around 0 51.5%
Taylor expanded in z around inf 51.5%
Taylor expanded in z around inf 51.5%
Final simplification76.6%
(FPCore (x y z) :precision binary64 (* (+ x y) (+ z 1.0)))
double code(double x, double y, double z) {
return (x + y) * (z + 1.0);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + y) * (z + 1.0d0)
end function
public static double code(double x, double y, double z) {
return (x + y) * (z + 1.0);
}
def code(x, y, z): return (x + y) * (z + 1.0)
function code(x, y, z) return Float64(Float64(x + y) * Float64(z + 1.0)) end
function tmp = code(x, y, z) tmp = (x + y) * (z + 1.0); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) \cdot \left(z + 1\right)
\end{array}
Initial program 100.0%
(FPCore (x y z) :precision binary64 (if (<= x -2.6e-168) x y))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.6e-168) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.6d-168)) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.6e-168) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.6e-168: tmp = x else: tmp = y return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.6e-168) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.6e-168) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.6e-168], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.6 \cdot 10^{-168}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if x < -2.6000000000000001e-168Initial program 100.0%
Taylor expanded in x around inf 63.9%
Taylor expanded in z around 0 30.0%
if -2.6000000000000001e-168 < x Initial program 100.0%
Taylor expanded in x around 0 54.6%
Taylor expanded in z around 0 34.3%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 100.0%
Taylor expanded in x around inf 55.1%
Taylor expanded in z around 0 25.9%
herbie shell --seed 2024103
(FPCore (x y z)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, G"
:precision binary64
(* (+ x y) (+ z 1.0)))