
(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 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z) :precision binary64 (if (<= z -6.8e-56) (+ x (* z (cos y))) (if (<= z 2.7e-97) (+ x (sin y)) (fma z (cos y) x))))
double code(double x, double y, double z) {
double tmp;
if (z <= -6.8e-56) {
tmp = x + (z * cos(y));
} else if (z <= 2.7e-97) {
tmp = x + sin(y);
} else {
tmp = fma(z, cos(y), x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (z <= -6.8e-56) tmp = Float64(x + Float64(z * cos(y))); elseif (z <= 2.7e-97) tmp = Float64(x + sin(y)); else tmp = fma(z, cos(y), x); end return tmp end
code[x_, y_, z_] := If[LessEqual[z, -6.8e-56], N[(x + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e-97], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision], N[(z * N[Cos[y], $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{-56}:\\
\;\;\;\;x + z \cdot \cos y\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-97}:\\
\;\;\;\;x + \sin y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, \cos y, x\right)\\
\end{array}
\end{array}
if z < -6.79999999999999964e-56Initial program 99.9%
Taylor expanded in x around inf 97.5%
if -6.79999999999999964e-56 < z < 2.69999999999999985e-97Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around 0 97.8%
+-commutative97.8%
Simplified97.8%
if 2.69999999999999985e-97 < z Initial program 99.9%
+-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in x around inf 95.7%
Final simplification97.1%
(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 100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -3.5e+152)
t_0
(if (<= z -2.6e-200)
(+ z x)
(if (<= z -7e-277) (sin y) (if (<= z 7.8e+154) (+ z x) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -3.5e+152) {
tmp = t_0;
} else if (z <= -2.6e-200) {
tmp = z + x;
} else if (z <= -7e-277) {
tmp = sin(y);
} else if (z <= 7.8e+154) {
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.5d+152)) then
tmp = t_0
else if (z <= (-2.6d-200)) then
tmp = z + x
else if (z <= (-7d-277)) then
tmp = sin(y)
else if (z <= 7.8d+154) 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.5e+152) {
tmp = t_0;
} else if (z <= -2.6e-200) {
tmp = z + x;
} else if (z <= -7e-277) {
tmp = Math.sin(y);
} else if (z <= 7.8e+154) {
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.5e+152: tmp = t_0 elif z <= -2.6e-200: tmp = z + x elif z <= -7e-277: tmp = math.sin(y) elif z <= 7.8e+154: 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.5e+152) tmp = t_0; elseif (z <= -2.6e-200) tmp = Float64(z + x); elseif (z <= -7e-277) tmp = sin(y); elseif (z <= 7.8e+154) 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.5e+152) tmp = t_0; elseif (z <= -2.6e-200) tmp = z + x; elseif (z <= -7e-277) tmp = sin(y); elseif (z <= 7.8e+154) 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.5e+152], t$95$0, If[LessEqual[z, -2.6e-200], N[(z + x), $MachinePrecision], If[LessEqual[z, -7e-277], N[Sin[y], $MachinePrecision], If[LessEqual[z, 7.8e+154], N[(z + x), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+152}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-200}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-277}:\\
\;\;\;\;\sin y\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+154}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if z < -3.49999999999999981e152 or 7.8000000000000006e154 < z Initial program 99.8%
+-commutative99.8%
fma-def99.9%
Simplified99.9%
Taylor expanded in z around inf 85.8%
if -3.49999999999999981e152 < z < -2.5999999999999999e-200 or -6.99999999999999966e-277 < z < 7.8000000000000006e154Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in y around 0 78.0%
+-commutative78.0%
Simplified78.0%
if -2.5999999999999999e-200 < z < -6.99999999999999966e-277Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in x around 0 69.4%
Final simplification79.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -7e+154)
t_0
(if (<= z -2.5e-57)
(+ z x)
(if (<= z 1.32e-97) (+ x (sin y)) (if (<= z 5.6e+154) (+ z x) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -7e+154) {
tmp = t_0;
} else if (z <= -2.5e-57) {
tmp = z + x;
} else if (z <= 1.32e-97) {
tmp = x + sin(y);
} else if (z <= 5.6e+154) {
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 <= (-7d+154)) then
tmp = t_0
else if (z <= (-2.5d-57)) then
tmp = z + x
else if (z <= 1.32d-97) then
tmp = x + sin(y)
else if (z <= 5.6d+154) 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 <= -7e+154) {
tmp = t_0;
} else if (z <= -2.5e-57) {
tmp = z + x;
} else if (z <= 1.32e-97) {
tmp = x + Math.sin(y);
} else if (z <= 5.6e+154) {
tmp = z + x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.cos(y) tmp = 0 if z <= -7e+154: tmp = t_0 elif z <= -2.5e-57: tmp = z + x elif z <= 1.32e-97: tmp = x + math.sin(y) elif z <= 5.6e+154: 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 <= -7e+154) tmp = t_0; elseif (z <= -2.5e-57) tmp = Float64(z + x); elseif (z <= 1.32e-97) tmp = Float64(x + sin(y)); elseif (z <= 5.6e+154) 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 <= -7e+154) tmp = t_0; elseif (z <= -2.5e-57) tmp = z + x; elseif (z <= 1.32e-97) tmp = x + sin(y); elseif (z <= 5.6e+154) 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, -7e+154], t$95$0, If[LessEqual[z, -2.5e-57], N[(z + x), $MachinePrecision], If[LessEqual[z, 1.32e-97], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e+154], N[(z + x), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -7 \cdot 10^{+154}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-57}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;z \leq 1.32 \cdot 10^{-97}:\\
\;\;\;\;x + \sin y\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{+154}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if z < -7.00000000000000041e154 or 5.5999999999999998e154 < z Initial program 99.8%
+-commutative99.8%
fma-def99.9%
Simplified99.9%
Taylor expanded in z around inf 85.8%
if -7.00000000000000041e154 < z < -2.5000000000000001e-57 or 1.32e-97 < z < 5.5999999999999998e154Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in y around 0 85.7%
+-commutative85.7%
Simplified85.7%
if -2.5000000000000001e-57 < z < 1.32e-97Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around 0 97.8%
+-commutative97.8%
Simplified97.8%
Final simplification90.4%
(FPCore (x y z) :precision binary64 (if (or (<= z -1.35e-56) (not (<= z 2.7e-97))) (+ x (* z (cos y))) (+ x (sin y))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -1.35e-56) || !(z <= 2.7e-97)) {
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 <= (-1.35d-56)) .or. (.not. (z <= 2.7d-97))) 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 <= -1.35e-56) || !(z <= 2.7e-97)) {
tmp = x + (z * Math.cos(y));
} else {
tmp = x + Math.sin(y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -1.35e-56) or not (z <= 2.7e-97): tmp = x + (z * math.cos(y)) else: tmp = x + math.sin(y) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -1.35e-56) || !(z <= 2.7e-97)) 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 <= -1.35e-56) || ~((z <= 2.7e-97))) tmp = x + (z * cos(y)); else tmp = x + sin(y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -1.35e-56], N[Not[LessEqual[z, 2.7e-97]], $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 -1.35 \cdot 10^{-56} \lor \neg \left(z \leq 2.7 \cdot 10^{-97}\right):\\
\;\;\;\;x + z \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;x + \sin y\\
\end{array}
\end{array}
if z < -1.34999999999999997e-56 or 2.69999999999999985e-97 < z Initial program 99.9%
Taylor expanded in x around inf 96.7%
if -1.34999999999999997e-56 < z < 2.69999999999999985e-97Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around 0 97.8%
+-commutative97.8%
Simplified97.8%
Final simplification97.1%
(FPCore (x y z) :precision binary64 (if (or (<= y -5.9e+84) (not (<= y 1.6e-8))) (+ z x) (+ z (+ y x))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -5.9e+84) || !(y <= 1.6e-8)) {
tmp = z + x;
} else {
tmp = z + (y + 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 ((y <= (-5.9d+84)) .or. (.not. (y <= 1.6d-8))) then
tmp = z + x
else
tmp = z + (y + x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -5.9e+84) || !(y <= 1.6e-8)) {
tmp = z + x;
} else {
tmp = z + (y + x);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -5.9e+84) or not (y <= 1.6e-8): tmp = z + x else: tmp = z + (y + x) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -5.9e+84) || !(y <= 1.6e-8)) tmp = Float64(z + x); else tmp = Float64(z + Float64(y + x)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -5.9e+84) || ~((y <= 1.6e-8))) tmp = z + x; else tmp = z + (y + x); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -5.9e+84], N[Not[LessEqual[y, 1.6e-8]], $MachinePrecision]], N[(z + x), $MachinePrecision], N[(z + N[(y + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.9 \cdot 10^{+84} \lor \neg \left(y \leq 1.6 \cdot 10^{-8}\right):\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;z + \left(y + x\right)\\
\end{array}
\end{array}
if y < -5.89999999999999984e84 or 1.6000000000000001e-8 < y Initial program 99.9%
+-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in y around 0 45.6%
+-commutative45.6%
Simplified45.6%
if -5.89999999999999984e84 < y < 1.6000000000000001e-8Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in y around 0 90.7%
+-commutative90.7%
+-commutative90.7%
associate-+l+90.7%
Simplified90.7%
Final simplification71.3%
(FPCore (x y z) :precision binary64 (if (<= x -7.2e-26) x (if (<= x 3.5e-38) z x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.2e-26) {
tmp = x;
} else if (x <= 3.5e-38) {
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 <= (-7.2d-26)) then
tmp = x
else if (x <= 3.5d-38) 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 <= -7.2e-26) {
tmp = x;
} else if (x <= 3.5e-38) {
tmp = z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.2e-26: tmp = x elif x <= 3.5e-38: tmp = z else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.2e-26) tmp = x; elseif (x <= 3.5e-38) tmp = z; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.2e-26) tmp = x; elseif (x <= 3.5e-38) tmp = z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.2e-26], x, If[LessEqual[x, 3.5e-38], z, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{-26}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-38}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -7.2000000000000003e-26 or 3.5000000000000001e-38 < x Initial program 99.9%
+-commutative99.9%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around 0 72.2%
+-commutative72.2%
Simplified72.2%
Taylor expanded in y around 0 69.5%
if -7.2000000000000003e-26 < x < 3.5000000000000001e-38Initial program 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around inf 60.9%
Taylor expanded in y around 0 41.1%
Final simplification57.8%
(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 100.0%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in y around 0 67.5%
+-commutative67.5%
Simplified67.5%
Final simplification67.5%
(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%
+-commutative100.0%
fma-def100.0%
Simplified100.0%
Taylor expanded in z around 0 58.7%
+-commutative58.7%
Simplified58.7%
Taylor expanded in y around 0 43.7%
Final simplification43.7%
herbie shell --seed 2023308
(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))))