
(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 (+ (+ 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}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -6.6e-102) (not (<= x 9.8e-133))) (+ (+ x (sin y)) z) (+ (sin y) (* z (cos y)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6.6e-102) || !(x <= 9.8e-133)) {
tmp = (x + sin(y)) + z;
} else {
tmp = sin(y) + (z * cos(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 <= (-6.6d-102)) .or. (.not. (x <= 9.8d-133))) then
tmp = (x + sin(y)) + z
else
tmp = sin(y) + (z * cos(y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -6.6e-102) || !(x <= 9.8e-133)) {
tmp = (x + Math.sin(y)) + z;
} else {
tmp = Math.sin(y) + (z * Math.cos(y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6.6e-102) or not (x <= 9.8e-133): tmp = (x + math.sin(y)) + z else: tmp = math.sin(y) + (z * math.cos(y)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6.6e-102) || !(x <= 9.8e-133)) tmp = Float64(Float64(x + sin(y)) + z); else tmp = Float64(sin(y) + Float64(z * cos(y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6.6e-102) || ~((x <= 9.8e-133))) tmp = (x + sin(y)) + z; else tmp = sin(y) + (z * cos(y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6.6e-102], N[Not[LessEqual[x, 9.8e-133]], $MachinePrecision]], N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision], N[(N[Sin[y], $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.6 \cdot 10^{-102} \lor \neg \left(x \leq 9.8 \cdot 10^{-133}\right):\\
\;\;\;\;\left(x + \sin y\right) + z\\
\mathbf{else}:\\
\;\;\;\;\sin y + z \cdot \cos y\\
\end{array}
\end{array}
if x < -6.6e-102 or 9.79999999999999992e-133 < x Initial program 100.0%
Taylor expanded in y around 0 88.9%
if -6.6e-102 < x < 9.79999999999999992e-133Initial program 99.9%
Taylor expanded in x around 0 99.9%
Final simplification91.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -5.2e+126)
t_0
(if (<= z -1.18e-5)
(+ x z)
(if (<= z 0.00032) (+ x (sin y)) (if (<= z 2.7e+168) (+ x z) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -5.2e+126) {
tmp = t_0;
} else if (z <= -1.18e-5) {
tmp = x + z;
} else if (z <= 0.00032) {
tmp = x + sin(y);
} else if (z <= 2.7e+168) {
tmp = x + z;
} 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 <= (-5.2d+126)) then
tmp = t_0
else if (z <= (-1.18d-5)) then
tmp = x + z
else if (z <= 0.00032d0) then
tmp = x + sin(y)
else if (z <= 2.7d+168) then
tmp = x + z
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 <= -5.2e+126) {
tmp = t_0;
} else if (z <= -1.18e-5) {
tmp = x + z;
} else if (z <= 0.00032) {
tmp = x + Math.sin(y);
} else if (z <= 2.7e+168) {
tmp = x + z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.cos(y) tmp = 0 if z <= -5.2e+126: tmp = t_0 elif z <= -1.18e-5: tmp = x + z elif z <= 0.00032: tmp = x + math.sin(y) elif z <= 2.7e+168: tmp = x + z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * cos(y)) tmp = 0.0 if (z <= -5.2e+126) tmp = t_0; elseif (z <= -1.18e-5) tmp = Float64(x + z); elseif (z <= 0.00032) tmp = Float64(x + sin(y)); elseif (z <= 2.7e+168) tmp = Float64(x + z); 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 <= -5.2e+126) tmp = t_0; elseif (z <= -1.18e-5) tmp = x + z; elseif (z <= 0.00032) tmp = x + sin(y); elseif (z <= 2.7e+168) tmp = x + z; 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, -5.2e+126], t$95$0, If[LessEqual[z, -1.18e-5], N[(x + z), $MachinePrecision], If[LessEqual[z, 0.00032], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e+168], N[(x + z), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+126}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.18 \cdot 10^{-5}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;z \leq 0.00032:\\
\;\;\;\;x + \sin y\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+168}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if z < -5.1999999999999999e126 or 2.70000000000000016e168 < z Initial program 99.9%
Taylor expanded in z around inf 86.9%
if -5.1999999999999999e126 < z < -1.18000000000000005e-5 or 3.20000000000000026e-4 < z < 2.70000000000000016e168Initial program 100.0%
Taylor expanded in y around 0 76.4%
+-commutative76.4%
Simplified76.4%
if -1.18000000000000005e-5 < z < 3.20000000000000026e-4Initial program 100.0%
Taylor expanded in z around 0 95.7%
+-commutative95.7%
Simplified95.7%
Final simplification88.5%
(FPCore (x y z) :precision binary64 (if (or (<= z -4.7e+129) (not (<= z 3e+168))) (* z (cos y)) (+ (+ x (sin y)) z)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -4.7e+129) || !(z <= 3e+168)) {
tmp = z * cos(y);
} else {
tmp = (x + sin(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 <= (-4.7d+129)) .or. (.not. (z <= 3d+168))) then
tmp = z * cos(y)
else
tmp = (x + sin(y)) + z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -4.7e+129) || !(z <= 3e+168)) {
tmp = z * Math.cos(y);
} else {
tmp = (x + Math.sin(y)) + z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -4.7e+129) or not (z <= 3e+168): tmp = z * math.cos(y) else: tmp = (x + math.sin(y)) + z return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -4.7e+129) || !(z <= 3e+168)) tmp = Float64(z * cos(y)); else tmp = Float64(Float64(x + sin(y)) + z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -4.7e+129) || ~((z <= 3e+168))) tmp = z * cos(y); else tmp = (x + sin(y)) + z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -4.7e+129], N[Not[LessEqual[z, 3e+168]], $MachinePrecision]], N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision], N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.7 \cdot 10^{+129} \lor \neg \left(z \leq 3 \cdot 10^{+168}\right):\\
\;\;\;\;z \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;\left(x + \sin y\right) + z\\
\end{array}
\end{array}
if z < -4.70000000000000008e129 or 2.9999999999999998e168 < z Initial program 99.9%
Taylor expanded in z around inf 86.9%
if -4.70000000000000008e129 < z < 2.9999999999999998e168Initial program 100.0%
Taylor expanded in y around 0 91.2%
Final simplification90.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -2.9e-103) (not (<= x 1.7e-132))) (+ x z) (* z (cos y))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.9e-103) || !(x <= 1.7e-132)) {
tmp = x + z;
} else {
tmp = z * cos(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.9d-103)) .or. (.not. (x <= 1.7d-132))) then
tmp = x + z
else
tmp = z * cos(y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.9e-103) || !(x <= 1.7e-132)) {
tmp = x + z;
} else {
tmp = z * Math.cos(y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.9e-103) or not (x <= 1.7e-132): tmp = x + z else: tmp = z * math.cos(y) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.9e-103) || !(x <= 1.7e-132)) tmp = Float64(x + z); else tmp = Float64(z * cos(y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.9e-103) || ~((x <= 1.7e-132))) tmp = x + z; else tmp = z * cos(y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.9e-103], N[Not[LessEqual[x, 1.7e-132]], $MachinePrecision]], N[(x + z), $MachinePrecision], N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.9 \cdot 10^{-103} \lor \neg \left(x \leq 1.7 \cdot 10^{-132}\right):\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;z \cdot \cos y\\
\end{array}
\end{array}
if x < -2.8999999999999999e-103 or 1.69999999999999991e-132 < x Initial program 100.0%
Taylor expanded in y around 0 84.6%
+-commutative84.6%
Simplified84.6%
if -2.8999999999999999e-103 < x < 1.69999999999999991e-132Initial program 99.9%
Taylor expanded in z around inf 57.9%
Final simplification77.4%
(FPCore (x y z) :precision binary64 (if (<= x -4.7e-178) (+ x z) (if (<= x 8.5e-262) (sin y) (if (<= x 1.55e-52) (+ z (+ x y)) (+ x z)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.7e-178) {
tmp = x + z;
} else if (x <= 8.5e-262) {
tmp = sin(y);
} else if (x <= 1.55e-52) {
tmp = z + (x + y);
} else {
tmp = x + 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 (x <= (-4.7d-178)) then
tmp = x + z
else if (x <= 8.5d-262) then
tmp = sin(y)
else if (x <= 1.55d-52) then
tmp = z + (x + y)
else
tmp = x + z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.7e-178) {
tmp = x + z;
} else if (x <= 8.5e-262) {
tmp = Math.sin(y);
} else if (x <= 1.55e-52) {
tmp = z + (x + y);
} else {
tmp = x + z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.7e-178: tmp = x + z elif x <= 8.5e-262: tmp = math.sin(y) elif x <= 1.55e-52: tmp = z + (x + y) else: tmp = x + z return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.7e-178) tmp = Float64(x + z); elseif (x <= 8.5e-262) tmp = sin(y); elseif (x <= 1.55e-52) tmp = Float64(z + Float64(x + y)); else tmp = Float64(x + z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.7e-178) tmp = x + z; elseif (x <= 8.5e-262) tmp = sin(y); elseif (x <= 1.55e-52) tmp = z + (x + y); else tmp = x + z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.7e-178], N[(x + z), $MachinePrecision], If[LessEqual[x, 8.5e-262], N[Sin[y], $MachinePrecision], If[LessEqual[x, 1.55e-52], N[(z + N[(x + y), $MachinePrecision]), $MachinePrecision], N[(x + z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.7 \cdot 10^{-178}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-262}:\\
\;\;\;\;\sin y\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{-52}:\\
\;\;\;\;z + \left(x + y\right)\\
\mathbf{else}:\\
\;\;\;\;x + z\\
\end{array}
\end{array}
if x < -4.69999999999999999e-178 or 1.5499999999999999e-52 < x Initial program 100.0%
Taylor expanded in y around 0 84.8%
+-commutative84.8%
Simplified84.8%
if -4.69999999999999999e-178 < x < 8.5e-262Initial program 99.9%
Taylor expanded in x around 0 99.9%
Taylor expanded in z around 0 56.9%
if 8.5e-262 < x < 1.5499999999999999e-52Initial program 99.9%
Taylor expanded in y around 0 58.9%
associate-+r+58.9%
Simplified58.9%
Final simplification76.9%
(FPCore (x y z) :precision binary64 (if (<= x -8.2e+16) x (if (<= x 2.65e-108) (+ y z) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -8.2e+16) {
tmp = x;
} else if (x <= 2.65e-108) {
tmp = y + 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 <= (-8.2d+16)) then
tmp = x
else if (x <= 2.65d-108) then
tmp = y + z
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -8.2e+16) {
tmp = x;
} else if (x <= 2.65e-108) {
tmp = y + z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8.2e+16: tmp = x elif x <= 2.65e-108: tmp = y + z else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8.2e+16) tmp = x; elseif (x <= 2.65e-108) tmp = Float64(y + z); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8.2e+16) tmp = x; elseif (x <= 2.65e-108) tmp = y + z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8.2e+16], x, If[LessEqual[x, 2.65e-108], N[(y + z), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{+16}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{-108}:\\
\;\;\;\;y + z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8.2e16 or 2.64999999999999994e-108 < x Initial program 100.0%
Taylor expanded in x around inf 75.4%
if -8.2e16 < x < 2.64999999999999994e-108Initial program 99.9%
Taylor expanded in x around 0 91.2%
Taylor expanded in y around 0 42.3%
Final simplification62.2%
(FPCore (x y z) :precision binary64 (if (<= x -8e+16) x (if (<= x 2.2e-115) z x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -8e+16) {
tmp = x;
} else if (x <= 2.2e-115) {
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 <= (-8d+16)) then
tmp = x
else if (x <= 2.2d-115) 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 <= -8e+16) {
tmp = x;
} else if (x <= 2.2e-115) {
tmp = z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8e+16: tmp = x elif x <= 2.2e-115: tmp = z else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8e+16) tmp = x; elseif (x <= 2.2e-115) tmp = z; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8e+16) tmp = x; elseif (x <= 2.2e-115) tmp = z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8e+16], x, If[LessEqual[x, 2.2e-115], z, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+16}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-115}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8e16 or 2.1999999999999999e-115 < x Initial program 100.0%
Taylor expanded in x around inf 75.1%
if -8e16 < x < 2.1999999999999999e-115Initial program 99.9%
Taylor expanded in z around inf 56.3%
Taylor expanded in y around 0 37.2%
Final simplification60.3%
(FPCore (x y z) :precision binary64 (+ x z))
double code(double x, double y, double z) {
return x + 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 + z
end function
public static double code(double x, double y, double z) {
return x + z;
}
def code(x, y, z): return x + z
function code(x, y, z) return Float64(x + z) end
function tmp = code(x, y, z) tmp = x + z; end
code[x_, y_, z_] := N[(x + z), $MachinePrecision]
\begin{array}{l}
\\
x + z
\end{array}
Initial program 100.0%
Taylor expanded in y around 0 71.0%
+-commutative71.0%
Simplified71.0%
Final simplification71.0%
(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 50.1%
Final simplification50.1%
herbie shell --seed 2024021
(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))))