
(FPCore (x y z) :precision binary64 (* (+ x y) (- 1.0 z)))
double code(double x, double y, double z) {
return (x + y) * (1.0 - z);
}
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) * (1.0d0 - z)
end function
public static double code(double x, double y, double z) {
return (x + y) * (1.0 - z);
}
def code(x, y, z): return (x + y) * (1.0 - z)
function code(x, y, z) return Float64(Float64(x + y) * Float64(1.0 - z)) end
function tmp = code(x, y, z) tmp = (x + y) * (1.0 - z); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) \cdot \left(1 - z\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (* (+ x y) (- 1.0 z)))
double code(double x, double y, double z) {
return (x + y) * (1.0 - z);
}
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) * (1.0d0 - z)
end function
public static double code(double x, double y, double z) {
return (x + y) * (1.0 - z);
}
def code(x, y, z): return (x + y) * (1.0 - z)
function code(x, y, z) return Float64(Float64(x + y) * Float64(1.0 - z)) end
function tmp = code(x, y, z) tmp = (x + y) * (1.0 - z); end
code[x_, y_, z_] := N[(N[(x + y), $MachinePrecision] * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) \cdot \left(1 - z\right)
\end{array}
(FPCore (x y z) :precision binary64 (* (- 1.0 z) (+ x y)))
double code(double x, double y, double z) {
return (1.0 - 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 = (1.0d0 - z) * (x + y)
end function
public static double code(double x, double y, double z) {
return (1.0 - z) * (x + y);
}
def code(x, y, z): return (1.0 - z) * (x + y)
function code(x, y, z) return Float64(Float64(1.0 - z) * Float64(x + y)) end
function tmp = code(x, y, z) tmp = (1.0 - z) * (x + y); end
code[x_, y_, z_] := N[(N[(1.0 - z), $MachinePrecision] * N[(x + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - z\right) \cdot \left(x + y\right)
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- z))))
(if (<= z -5.1e+112)
t_0
(if (<= z -1.05e+73)
(* z (- y))
(if (<= z -7.0) t_0 (if (<= z 9e-9) (+ x y) (* y (- 1.0 z))))))))
double code(double x, double y, double z) {
double t_0 = x * -z;
double tmp;
if (z <= -5.1e+112) {
tmp = t_0;
} else if (z <= -1.05e+73) {
tmp = z * -y;
} else if (z <= -7.0) {
tmp = t_0;
} else if (z <= 9e-9) {
tmp = x + y;
} else {
tmp = y * (1.0 - 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) :: t_0
real(8) :: tmp
t_0 = x * -z
if (z <= (-5.1d+112)) then
tmp = t_0
else if (z <= (-1.05d+73)) then
tmp = z * -y
else if (z <= (-7.0d0)) then
tmp = t_0
else if (z <= 9d-9) then
tmp = x + y
else
tmp = y * (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * -z;
double tmp;
if (z <= -5.1e+112) {
tmp = t_0;
} else if (z <= -1.05e+73) {
tmp = z * -y;
} else if (z <= -7.0) {
tmp = t_0;
} else if (z <= 9e-9) {
tmp = x + y;
} else {
tmp = y * (1.0 - z);
}
return tmp;
}
def code(x, y, z): t_0 = x * -z tmp = 0 if z <= -5.1e+112: tmp = t_0 elif z <= -1.05e+73: tmp = z * -y elif z <= -7.0: tmp = t_0 elif z <= 9e-9: tmp = x + y else: tmp = y * (1.0 - z) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(-z)) tmp = 0.0 if (z <= -5.1e+112) tmp = t_0; elseif (z <= -1.05e+73) tmp = Float64(z * Float64(-y)); elseif (z <= -7.0) tmp = t_0; elseif (z <= 9e-9) tmp = Float64(x + y); else tmp = Float64(y * Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * -z; tmp = 0.0; if (z <= -5.1e+112) tmp = t_0; elseif (z <= -1.05e+73) tmp = z * -y; elseif (z <= -7.0) tmp = t_0; elseif (z <= 9e-9) tmp = x + y; else tmp = y * (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * (-z)), $MachinePrecision]}, If[LessEqual[z, -5.1e+112], t$95$0, If[LessEqual[z, -1.05e+73], N[(z * (-y)), $MachinePrecision], If[LessEqual[z, -7.0], t$95$0, If[LessEqual[z, 9e-9], N[(x + y), $MachinePrecision], N[(y * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(-z\right)\\
\mathbf{if}\;z \leq -5.1 \cdot 10^{+112}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{+73}:\\
\;\;\;\;z \cdot \left(-y\right)\\
\mathbf{elif}\;z \leq -7:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-9}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(1 - z\right)\\
\end{array}
\end{array}
if z < -5.10000000000000011e112 or -1.0500000000000001e73 < z < -7Initial program 100.0%
sub-neg100.0%
distribute-lft-in99.9%
*-commutative99.9%
*-un-lft-identity99.9%
Applied egg-rr99.9%
Taylor expanded in y around 0 50.8%
Taylor expanded in z around inf 49.4%
associate-*r*49.4%
neg-mul-149.4%
Simplified49.4%
if -5.10000000000000011e112 < z < -1.0500000000000001e73Initial program 100.0%
Taylor expanded in y around inf 79.5%
sub-neg79.5%
+-commutative79.5%
associate-+l+79.5%
sub-neg79.5%
+-commutative79.5%
remove-double-neg79.5%
mul-1-neg79.5%
distribute-lft-out79.5%
distribute-rgt-neg-in79.5%
*-commutative79.5%
distribute-rgt-neg-in79.5%
Simplified79.3%
Taylor expanded in z around inf 79.3%
mul-1-neg79.3%
distribute-rgt-neg-in79.3%
distribute-rgt-neg-out79.3%
mul-1-neg79.3%
distribute-lft-in79.3%
metadata-eval79.3%
mul-1-neg79.3%
unsub-neg79.3%
Simplified79.3%
Taylor expanded in y around inf 25.3%
mul-1-neg25.3%
*-commutative25.3%
distribute-rgt-neg-in25.3%
Simplified25.3%
if -7 < z < 8.99999999999999953e-9Initial program 100.0%
Taylor expanded in z around 0 99.0%
+-commutative99.0%
Simplified99.0%
if 8.99999999999999953e-9 < z Initial program 100.0%
Taylor expanded in x around 0 45.7%
Final simplification71.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- z))) (t_1 (* z (- y))))
(if (<= z -3.45e+112)
t_0
(if (<= z -3.8e+72)
t_1
(if (<= z -7.5) t_0 (if (<= z 1.0) (+ x y) t_1))))))
double code(double x, double y, double z) {
double t_0 = x * -z;
double t_1 = z * -y;
double tmp;
if (z <= -3.45e+112) {
tmp = t_0;
} else if (z <= -3.8e+72) {
tmp = t_1;
} else if (z <= -7.5) {
tmp = t_0;
} else if (z <= 1.0) {
tmp = x + y;
} else {
tmp = t_1;
}
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) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x * -z
t_1 = z * -y
if (z <= (-3.45d+112)) then
tmp = t_0
else if (z <= (-3.8d+72)) then
tmp = t_1
else if (z <= (-7.5d0)) then
tmp = t_0
else if (z <= 1.0d0) then
tmp = x + y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * -z;
double t_1 = z * -y;
double tmp;
if (z <= -3.45e+112) {
tmp = t_0;
} else if (z <= -3.8e+72) {
tmp = t_1;
} else if (z <= -7.5) {
tmp = t_0;
} else if (z <= 1.0) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = x * -z t_1 = z * -y tmp = 0 if z <= -3.45e+112: tmp = t_0 elif z <= -3.8e+72: tmp = t_1 elif z <= -7.5: tmp = t_0 elif z <= 1.0: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(-z)) t_1 = Float64(z * Float64(-y)) tmp = 0.0 if (z <= -3.45e+112) tmp = t_0; elseif (z <= -3.8e+72) tmp = t_1; elseif (z <= -7.5) tmp = t_0; elseif (z <= 1.0) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * -z; t_1 = z * -y; tmp = 0.0; if (z <= -3.45e+112) tmp = t_0; elseif (z <= -3.8e+72) tmp = t_1; elseif (z <= -7.5) tmp = t_0; elseif (z <= 1.0) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * (-z)), $MachinePrecision]}, Block[{t$95$1 = N[(z * (-y)), $MachinePrecision]}, If[LessEqual[z, -3.45e+112], t$95$0, If[LessEqual[z, -3.8e+72], t$95$1, If[LessEqual[z, -7.5], t$95$0, If[LessEqual[z, 1.0], N[(x + y), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(-z\right)\\
t_1 := z \cdot \left(-y\right)\\
\mathbf{if}\;z \leq -3.45 \cdot 10^{+112}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 1:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.45e112 or -3.80000000000000006e72 < z < -7.5Initial program 100.0%
sub-neg100.0%
distribute-lft-in99.9%
*-commutative99.9%
*-un-lft-identity99.9%
Applied egg-rr99.9%
Taylor expanded in y around 0 50.8%
Taylor expanded in z around inf 49.4%
associate-*r*49.4%
neg-mul-149.4%
Simplified49.4%
if -3.45e112 < z < -3.80000000000000006e72 or 1 < z Initial program 100.0%
Taylor expanded in y around inf 84.6%
sub-neg84.6%
+-commutative84.6%
associate-+l+84.6%
sub-neg84.6%
+-commutative84.6%
remove-double-neg84.6%
mul-1-neg84.6%
distribute-lft-out84.6%
distribute-rgt-neg-in84.6%
*-commutative84.6%
distribute-rgt-neg-in84.6%
Simplified87.3%
Taylor expanded in z around inf 87.3%
mul-1-neg87.3%
distribute-rgt-neg-in87.3%
distribute-rgt-neg-out87.3%
mul-1-neg87.3%
distribute-lft-in87.3%
metadata-eval87.3%
mul-1-neg87.3%
unsub-neg87.3%
Simplified87.3%
Taylor expanded in y around inf 45.3%
mul-1-neg45.3%
*-commutative45.3%
distribute-rgt-neg-in45.3%
Simplified45.3%
if -7.5 < z < 1Initial program 100.0%
Taylor expanded in z around 0 95.8%
+-commutative95.8%
Simplified95.8%
Final simplification71.2%
(FPCore (x y z) :precision binary64 (if (or (<= (- 1.0 z) -5e+22) (not (<= (- 1.0 z) 2.0))) (* z (- (- x) y)) (+ x y)))
double code(double x, double y, double z) {
double tmp;
if (((1.0 - z) <= -5e+22) || !((1.0 - z) <= 2.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 (((1.0d0 - z) <= (-5d+22)) .or. (.not. ((1.0d0 - z) <= 2.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 (((1.0 - z) <= -5e+22) || !((1.0 - z) <= 2.0)) {
tmp = z * (-x - y);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if ((1.0 - z) <= -5e+22) or not ((1.0 - z) <= 2.0): tmp = z * (-x - y) else: tmp = x + y return tmp
function code(x, y, z) tmp = 0.0 if ((Float64(1.0 - z) <= -5e+22) || !(Float64(1.0 - z) <= 2.0)) tmp = Float64(z * Float64(Float64(-x) - y)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (((1.0 - z) <= -5e+22) || ~(((1.0 - z) <= 2.0))) tmp = z * (-x - y); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[N[(1.0 - z), $MachinePrecision], -5e+22], N[Not[LessEqual[N[(1.0 - z), $MachinePrecision], 2.0]], $MachinePrecision]], N[(z * N[((-x) - y), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;1 - z \leq -5 \cdot 10^{+22} \lor \neg \left(1 - z \leq 2\right):\\
\;\;\;\;z \cdot \left(\left(-x\right) - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if (-.f64 #s(literal 1 binary64) z) < -4.9999999999999996e22 or 2 < (-.f64 #s(literal 1 binary64) z) Initial program 100.0%
Taylor expanded in z around inf 98.7%
mul-1-neg98.7%
distribute-lft-neg-out98.7%
*-commutative98.7%
+-commutative98.7%
Simplified98.7%
if -4.9999999999999996e22 < (-.f64 #s(literal 1 binary64) z) < 2Initial program 100.0%
Taylor expanded in z around 0 95.8%
+-commutative95.8%
Simplified95.8%
Final simplification97.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -49.0) (not (<= z 1.0))) (* z (- y)) (+ x y)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -49.0) || !(z <= 1.0)) {
tmp = z * -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 <= (-49.0d0)) .or. (.not. (z <= 1.0d0))) then
tmp = z * -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 <= -49.0) || !(z <= 1.0)) {
tmp = z * -y;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -49.0) or not (z <= 1.0): tmp = z * -y else: tmp = x + y return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -49.0) || !(z <= 1.0)) tmp = Float64(z * Float64(-y)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -49.0) || ~((z <= 1.0))) tmp = z * -y; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -49.0], N[Not[LessEqual[z, 1.0]], $MachinePrecision]], N[(z * (-y)), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -49 \lor \neg \left(z \leq 1\right):\\
\;\;\;\;z \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -49 or 1 < z Initial program 100.0%
Taylor expanded in y around inf 83.8%
sub-neg83.8%
+-commutative83.8%
associate-+l+83.8%
sub-neg83.8%
+-commutative83.8%
remove-double-neg83.8%
mul-1-neg83.8%
distribute-lft-out83.8%
distribute-rgt-neg-in83.8%
*-commutative83.8%
distribute-rgt-neg-in83.8%
Simplified86.1%
Taylor expanded in z around inf 85.4%
mul-1-neg85.4%
distribute-rgt-neg-in85.4%
distribute-rgt-neg-out85.4%
mul-1-neg85.4%
distribute-lft-in85.4%
metadata-eval85.4%
mul-1-neg85.4%
unsub-neg85.4%
Simplified85.4%
Taylor expanded in y around inf 49.3%
mul-1-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
Simplified49.3%
if -49 < z < 1Initial program 100.0%
Taylor expanded in z around 0 95.1%
+-commutative95.1%
Simplified95.1%
Final simplification72.2%
(FPCore (x y z) :precision binary64 (if (<= y 2.4e-5) (* x (- 1.0 z)) (* y (- 1.0 z))))
double code(double x, double y, double z) {
double tmp;
if (y <= 2.4e-5) {
tmp = x * (1.0 - z);
} else {
tmp = y * (1.0 - 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 (y <= 2.4d-5) then
tmp = x * (1.0d0 - z)
else
tmp = y * (1.0d0 - z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= 2.4e-5) {
tmp = x * (1.0 - z);
} else {
tmp = y * (1.0 - z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 2.4e-5: tmp = x * (1.0 - z) else: tmp = y * (1.0 - z) return tmp
function code(x, y, z) tmp = 0.0 if (y <= 2.4e-5) tmp = Float64(x * Float64(1.0 - z)); else tmp = Float64(y * Float64(1.0 - z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 2.4e-5) tmp = x * (1.0 - z); else tmp = y * (1.0 - z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 2.4e-5], N[(x * N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(y * N[(1.0 - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.4 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(1 - z\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(1 - z\right)\\
\end{array}
\end{array}
if y < 2.4000000000000001e-5Initial program 100.0%
Taylor expanded in x around inf 61.1%
*-commutative61.1%
Simplified61.1%
if 2.4000000000000001e-5 < y Initial program 100.0%
Taylor expanded in x around 0 73.1%
Final simplification64.0%
(FPCore (x y z) :precision binary64 (if (<= y 2.65e-5) x y))
double code(double x, double y, double z) {
double tmp;
if (y <= 2.65e-5) {
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 (y <= 2.65d-5) 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 (y <= 2.65e-5) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 2.65e-5: tmp = x else: tmp = y return tmp
function code(x, y, z) tmp = 0.0 if (y <= 2.65e-5) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 2.65e-5) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 2.65e-5], x, y]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.65 \cdot 10^{-5}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < 2.65e-5Initial program 100.0%
Taylor expanded in x around inf 61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in z around 0 30.0%
if 2.65e-5 < y Initial program 100.0%
Taylor expanded in x around 0 73.1%
Taylor expanded in z around 0 37.2%
Final simplification31.7%
(FPCore (x y z) :precision binary64 (+ x y))
double code(double x, double y, double z) {
return 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
end function
public static double code(double x, double y, double z) {
return x + y;
}
def code(x, y, z): return x + y
function code(x, y, z) return Float64(x + y) end
function tmp = code(x, y, z) tmp = x + y; end
code[x_, y_, z_] := N[(x + y), $MachinePrecision]
\begin{array}{l}
\\
x + y
\end{array}
Initial program 100.0%
Taylor expanded in z around 0 49.2%
+-commutative49.2%
Simplified49.2%
Final simplification49.2%
(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 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around 0 25.7%
Final simplification25.7%
herbie shell --seed 2024072
(FPCore (x y z)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, H"
:precision binary64
(* (+ x y) (- 1.0 z)))