
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
double code(double x, double y, double z) {
return (x + sin(y)) + (z * cos(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 + sin(y)) + (z * cos(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.sin(y)) + (z * Math.cos(y));
}
def code(x, y, z): return (x + math.sin(y)) + (z * math.cos(y))
function code(x, y, z) return Float64(Float64(x + sin(y)) + Float64(z * cos(y))) end
function tmp = code(x, y, z) tmp = (x + sin(y)) + (z * cos(y)); end
code[x_, y_, z_] := N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \sin y\right) + z \cdot \cos y
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
double code(double x, double y, double z) {
return (x + sin(y)) + (z * cos(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 + sin(y)) + (z * cos(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.sin(y)) + (z * Math.cos(y));
}
def code(x, y, z): return (x + math.sin(y)) + (z * math.cos(y))
function code(x, y, z) return Float64(Float64(x + sin(y)) + Float64(z * cos(y))) end
function tmp = code(x, y, z) tmp = (x + sin(y)) + (z * cos(y)); end
code[x_, y_, z_] := N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \sin y\right) + z \cdot \cos y
\end{array}
(FPCore (x y z) :precision binary64 (fma z (cos y) (+ x (sin y))))
double code(double x, double y, double z) {
return fma(z, cos(y), (x + sin(y)));
}
function code(x, y, z) return fma(z, cos(y), Float64(x + sin(y))) end
code[x_, y_, z_] := N[(z * N[Cos[y], $MachinePrecision] + N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, \cos y, x + \sin y\right)
\end{array}
Initial program 99.9%
+-commutative99.9%
fma-def99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (+ (* z (cos y)) (+ x (sin y))))
double code(double x, double y, double z) {
return (z * cos(y)) + (x + sin(y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (z * cos(y)) + (x + sin(y))
end function
public static double code(double x, double y, double z) {
return (z * Math.cos(y)) + (x + Math.sin(y));
}
def code(x, y, z): return (z * math.cos(y)) + (x + math.sin(y))
function code(x, y, z) return Float64(Float64(z * cos(y)) + Float64(x + sin(y))) end
function tmp = code(x, y, z) tmp = (z * cos(y)) + (x + sin(y)); end
code[x_, y_, z_] := N[(N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision] + N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \cos y + \left(x + \sin y\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -1.45e+101)
t_0
(if (<= z -1.85e-162)
(+ z x)
(if (<= z -4.7e-212) (sin y) (if (<= z 2.5e+97) (+ z x) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -1.45e+101) {
tmp = t_0;
} else if (z <= -1.85e-162) {
tmp = z + x;
} else if (z <= -4.7e-212) {
tmp = sin(y);
} else if (z <= 2.5e+97) {
tmp = z + x;
} else {
tmp = t_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) :: t_0
real(8) :: tmp
t_0 = z * cos(y)
if (z <= (-1.45d+101)) then
tmp = t_0
else if (z <= (-1.85d-162)) then
tmp = z + x
else if (z <= (-4.7d-212)) then
tmp = sin(y)
else if (z <= 2.5d+97) then
tmp = z + x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * Math.cos(y);
double tmp;
if (z <= -1.45e+101) {
tmp = t_0;
} else if (z <= -1.85e-162) {
tmp = z + x;
} else if (z <= -4.7e-212) {
tmp = Math.sin(y);
} else if (z <= 2.5e+97) {
tmp = z + x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.cos(y) tmp = 0 if z <= -1.45e+101: tmp = t_0 elif z <= -1.85e-162: tmp = z + x elif z <= -4.7e-212: tmp = math.sin(y) elif z <= 2.5e+97: tmp = z + x else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * cos(y)) tmp = 0.0 if (z <= -1.45e+101) tmp = t_0; elseif (z <= -1.85e-162) tmp = Float64(z + x); elseif (z <= -4.7e-212) tmp = sin(y); elseif (z <= 2.5e+97) tmp = Float64(z + x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * cos(y); tmp = 0.0; if (z <= -1.45e+101) tmp = t_0; elseif (z <= -1.85e-162) tmp = z + x; elseif (z <= -4.7e-212) tmp = sin(y); elseif (z <= 2.5e+97) tmp = z + x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+101], t$95$0, If[LessEqual[z, -1.85e-162], N[(z + x), $MachinePrecision], If[LessEqual[z, -4.7e-212], N[Sin[y], $MachinePrecision], If[LessEqual[z, 2.5e+97], N[(z + x), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+101}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-162}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;z \leq -4.7 \cdot 10^{-212}:\\
\;\;\;\;\sin y\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+97}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if z < -1.44999999999999994e101 or 2.49999999999999999e97 < z Initial program 99.8%
+-commutative99.8%
fma-def99.8%
Simplified99.8%
Taylor expanded in x around 0 93.8%
Taylor expanded in z around inf 93.8%
if -1.44999999999999994e101 < z < -1.8500000000000001e-162 or -4.69999999999999998e-212 < z < 2.49999999999999999e97Initial program 100.0%
Taylor expanded in y around 0 79.1%
if -1.8500000000000001e-162 < z < -4.69999999999999998e-212Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in x around 0 71.9%
Taylor expanded in z around 0 65.1%
Final simplification82.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -3.75e+102)
t_0
(if (<= z -1.7e-46)
(+ z x)
(if (<= z 2.6e-115) (+ x (sin y)) (if (<= z 7.5e+98) (+ z x) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -3.75e+102) {
tmp = t_0;
} else if (z <= -1.7e-46) {
tmp = z + x;
} else if (z <= 2.6e-115) {
tmp = x + sin(y);
} else if (z <= 7.5e+98) {
tmp = z + x;
} else {
tmp = t_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) :: t_0
real(8) :: tmp
t_0 = z * cos(y)
if (z <= (-3.75d+102)) then
tmp = t_0
else if (z <= (-1.7d-46)) then
tmp = z + x
else if (z <= 2.6d-115) then
tmp = x + sin(y)
else if (z <= 7.5d+98) then
tmp = z + x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * Math.cos(y);
double tmp;
if (z <= -3.75e+102) {
tmp = t_0;
} else if (z <= -1.7e-46) {
tmp = z + x;
} else if (z <= 2.6e-115) {
tmp = x + Math.sin(y);
} else if (z <= 7.5e+98) {
tmp = z + x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.cos(y) tmp = 0 if z <= -3.75e+102: tmp = t_0 elif z <= -1.7e-46: tmp = z + x elif z <= 2.6e-115: tmp = x + math.sin(y) elif z <= 7.5e+98: tmp = z + x else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * cos(y)) tmp = 0.0 if (z <= -3.75e+102) tmp = t_0; elseif (z <= -1.7e-46) tmp = Float64(z + x); elseif (z <= 2.6e-115) tmp = Float64(x + sin(y)); elseif (z <= 7.5e+98) tmp = Float64(z + x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * cos(y); tmp = 0.0; if (z <= -3.75e+102) tmp = t_0; elseif (z <= -1.7e-46) tmp = z + x; elseif (z <= 2.6e-115) tmp = x + sin(y); elseif (z <= 7.5e+98) tmp = z + x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.75e+102], t$95$0, If[LessEqual[z, -1.7e-46], N[(z + x), $MachinePrecision], If[LessEqual[z, 2.6e-115], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+98], N[(z + x), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -3.75 \cdot 10^{+102}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-46}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-115}:\\
\;\;\;\;x + \sin y\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+98}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if z < -3.75e102 or 7.50000000000000036e98 < z Initial program 99.8%
+-commutative99.8%
fma-def99.8%
Simplified99.8%
Taylor expanded in x around 0 93.8%
Taylor expanded in z around inf 93.8%
if -3.75e102 < z < -1.69999999999999998e-46 or 2.60000000000000004e-115 < z < 7.50000000000000036e98Initial program 100.0%
Taylor expanded in y around 0 83.9%
if -1.69999999999999998e-46 < z < 2.60000000000000004e-115Initial program 100.0%
Taylor expanded in z around 0 97.1%
Final simplification92.0%
(FPCore (x y z) :precision binary64 (if (or (<= z -8.6e-43) (not (<= z 2.6e-115))) (+ x (* z (cos y))) (+ x (sin y))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -8.6e-43) || !(z <= 2.6e-115)) {
tmp = x + (z * cos(y));
} else {
tmp = x + sin(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 <= (-8.6d-43)) .or. (.not. (z <= 2.6d-115))) then
tmp = x + (z * cos(y))
else
tmp = x + sin(y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -8.6e-43) || !(z <= 2.6e-115)) {
tmp = x + (z * Math.cos(y));
} else {
tmp = x + Math.sin(y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -8.6e-43) or not (z <= 2.6e-115): tmp = x + (z * math.cos(y)) else: tmp = x + math.sin(y) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -8.6e-43) || !(z <= 2.6e-115)) tmp = Float64(x + Float64(z * cos(y))); else tmp = Float64(x + sin(y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -8.6e-43) || ~((z <= 2.6e-115))) tmp = x + (z * cos(y)); else tmp = x + sin(y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -8.6e-43], N[Not[LessEqual[z, 2.6e-115]], $MachinePrecision]], N[(x + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.6 \cdot 10^{-43} \lor \neg \left(z \leq 2.6 \cdot 10^{-115}\right):\\
\;\;\;\;x + z \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;x + \sin y\\
\end{array}
\end{array}
if z < -8.59999999999999927e-43 or 2.60000000000000004e-115 < z Initial program 99.9%
flip-+83.8%
div-inv83.8%
fma-def83.7%
pow283.7%
Applied egg-rr83.7%
fma-udef83.8%
+-commutative83.8%
*-commutative83.8%
associate-*r/83.8%
*-rgt-identity83.8%
Simplified83.8%
Taylor expanded in x around inf 96.7%
if -8.59999999999999927e-43 < z < 2.60000000000000004e-115Initial program 100.0%
Taylor expanded in z around 0 97.1%
Final simplification96.9%
(FPCore (x y z) :precision binary64 (if (or (<= z -2400000000.0) (not (<= z 1.2))) (+ x (* z (cos y))) (+ z (+ x (sin y)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2400000000.0) || !(z <= 1.2)) {
tmp = x + (z * cos(y));
} else {
tmp = z + (x + sin(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 <= (-2400000000.0d0)) .or. (.not. (z <= 1.2d0))) then
tmp = x + (z * cos(y))
else
tmp = z + (x + sin(y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2400000000.0) || !(z <= 1.2)) {
tmp = x + (z * Math.cos(y));
} else {
tmp = z + (x + Math.sin(y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2400000000.0) or not (z <= 1.2): tmp = x + (z * math.cos(y)) else: tmp = z + (x + math.sin(y)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2400000000.0) || !(z <= 1.2)) tmp = Float64(x + Float64(z * cos(y))); else tmp = Float64(z + Float64(x + sin(y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2400000000.0) || ~((z <= 1.2))) tmp = x + (z * cos(y)); else tmp = z + (x + sin(y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2400000000.0], N[Not[LessEqual[z, 1.2]], $MachinePrecision]], N[(x + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z + N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2400000000 \lor \neg \left(z \leq 1.2\right):\\
\;\;\;\;x + z \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;z + \left(x + \sin y\right)\\
\end{array}
\end{array}
if z < -2.4e9 or 1.19999999999999996 < z Initial program 99.9%
flip-+86.2%
div-inv86.2%
fma-def86.2%
pow286.2%
Applied egg-rr86.2%
fma-udef86.2%
+-commutative86.2%
*-commutative86.2%
associate-*r/86.2%
*-rgt-identity86.2%
Simplified86.2%
Taylor expanded in x around inf 98.9%
if -2.4e9 < z < 1.19999999999999996Initial program 100.0%
Taylor expanded in y around 0 99.3%
Final simplification99.1%
(FPCore (x y z) :precision binary64 (if (<= x -1.7e-72) (+ z x) (if (<= x 3.3e-19) (+ y (+ z x)) (+ z x))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.7e-72) {
tmp = z + x;
} else if (x <= 3.3e-19) {
tmp = y + (z + x);
} else {
tmp = z + x;
}
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 <= (-1.7d-72)) then
tmp = z + x
else if (x <= 3.3d-19) then
tmp = y + (z + x)
else
tmp = z + x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.7e-72) {
tmp = z + x;
} else if (x <= 3.3e-19) {
tmp = y + (z + x);
} else {
tmp = z + x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.7e-72: tmp = z + x elif x <= 3.3e-19: tmp = y + (z + x) else: tmp = z + x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.7e-72) tmp = Float64(z + x); elseif (x <= 3.3e-19) tmp = Float64(y + Float64(z + x)); else tmp = Float64(z + x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.7e-72) tmp = z + x; elseif (x <= 3.3e-19) tmp = y + (z + x); else tmp = z + x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.7e-72], N[(z + x), $MachinePrecision], If[LessEqual[x, 3.3e-19], N[(y + N[(z + x), $MachinePrecision]), $MachinePrecision], N[(z + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.7 \cdot 10^{-72}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-19}:\\
\;\;\;\;y + \left(z + x\right)\\
\mathbf{else}:\\
\;\;\;\;z + x\\
\end{array}
\end{array}
if x < -1.6999999999999999e-72 or 3.2999999999999998e-19 < x Initial program 100.0%
Taylor expanded in y around 0 85.9%
if -1.6999999999999999e-72 < x < 3.2999999999999998e-19Initial program 99.9%
Taylor expanded in y around 0 54.5%
Final simplification72.3%
(FPCore (x y z) :precision binary64 (if (<= x -2.4e-42) x (if (<= x 4.1e-80) z x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-42) {
tmp = x;
} else if (x <= 4.1e-80) {
tmp = z;
} else {
tmp = x;
}
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.4d-42)) then
tmp = x
else if (x <= 4.1d-80) then
tmp = z
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-42) {
tmp = x;
} else if (x <= 4.1e-80) {
tmp = z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-42: tmp = x elif x <= 4.1e-80: tmp = z else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-42) tmp = x; elseif (x <= 4.1e-80) tmp = z; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-42) tmp = x; elseif (x <= 4.1e-80) tmp = z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-42], x, If[LessEqual[x, 4.1e-80], z, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-42}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-80}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.40000000000000003e-42 or 4.0999999999999999e-80 < x Initial program 100.0%
Taylor expanded in x around inf 72.3%
if -2.40000000000000003e-42 < x < 4.0999999999999999e-80Initial program 99.9%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
fma-def97.3%
Simplified97.3%
Taylor expanded in y around 0 44.5%
Final simplification60.7%
(FPCore (x y z) :precision binary64 (+ z x))
double code(double x, double y, double z) {
return z + x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z + x
end function
public static double code(double x, double y, double z) {
return z + x;
}
def code(x, y, z): return z + x
function code(x, y, z) return Float64(z + x) end
function tmp = code(x, y, z) tmp = z + x; end
code[x_, y_, z_] := N[(z + x), $MachinePrecision]
\begin{array}{l}
\\
z + x
\end{array}
Initial program 99.9%
Taylor expanded in y around 0 69.9%
Final simplification69.9%
(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 99.9%
Taylor expanded in x around inf 44.4%
Final simplification44.4%
herbie shell --seed 2023257
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, C"
:precision binary64
(+ (+ x (sin y)) (* z (cos y))))