
(FPCore (x y z) :precision binary64 (- (* x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
return (x * cos(y)) - (z * 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 = (x * cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
return (x * Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z): return (x * math.cos(y)) - (z * math.sin(y))
function code(x, y, z) return Float64(Float64(x * cos(y)) - Float64(z * sin(y))) end
function tmp = code(x, y, z) tmp = (x * cos(y)) - (z * sin(y)); end
code[x_, y_, z_] := N[(N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \cos y - z \cdot \sin y
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (- (* x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
return (x * cos(y)) - (z * 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 = (x * cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
return (x * Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z): return (x * math.cos(y)) - (z * math.sin(y))
function code(x, y, z) return Float64(Float64(x * cos(y)) - Float64(z * sin(y))) end
function tmp = code(x, y, z) tmp = (x * cos(y)) - (z * sin(y)); end
code[x_, y_, z_] := N[(N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \cos y - z \cdot \sin y
\end{array}
(FPCore (x y z) :precision binary64 (fma (sin y) (- z) (* x (cos y))))
double code(double x, double y, double z) {
return fma(sin(y), -z, (x * cos(y)));
}
function code(x, y, z) return fma(sin(y), Float64(-z), Float64(x * cos(y))) end
code[x_, y_, z_] := N[(N[Sin[y], $MachinePrecision] * (-z) + N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\sin y, -z, x \cdot \cos y\right)
\end{array}
Initial program 99.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-def99.8%
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -4.2e+87) (not (<= x 4.6e+73))) (* x (cos y)) (fma (sin y) (- z) x)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.2e+87) || !(x <= 4.6e+73)) {
tmp = x * cos(y);
} else {
tmp = fma(sin(y), -z, x);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if ((x <= -4.2e+87) || !(x <= 4.6e+73)) tmp = Float64(x * cos(y)); else tmp = fma(sin(y), Float64(-z), x); end return tmp end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.2e+87], N[Not[LessEqual[x, 4.6e+73]], $MachinePrecision]], N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision], N[(N[Sin[y], $MachinePrecision] * (-z) + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{+87} \lor \neg \left(x \leq 4.6 \cdot 10^{+73}\right):\\
\;\;\;\;x \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\sin y, -z, x\right)\\
\end{array}
\end{array}
if x < -4.2e87 or 4.6e73 < x Initial program 99.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in z around 0 91.7%
if -4.2e87 < x < 4.6e73Initial program 99.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in y around 0 88.6%
Final simplification89.9%
(FPCore (x y z) :precision binary64 (- (* x (cos y)) (* (sin y) z)))
double code(double x, double y, double z) {
return (x * cos(y)) - (sin(y) * 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 * cos(y)) - (sin(y) * z)
end function
public static double code(double x, double y, double z) {
return (x * Math.cos(y)) - (Math.sin(y) * z);
}
def code(x, y, z): return (x * math.cos(y)) - (math.sin(y) * z)
function code(x, y, z) return Float64(Float64(x * cos(y)) - Float64(sin(y) * z)) end
function tmp = code(x, y, z) tmp = (x * cos(y)) - (sin(y) * z); end
code[x_, y_, z_] := N[(N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(N[Sin[y], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \cos y - \sin y \cdot z
\end{array}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (sin y) (- z))) (t_1 (* x (cos y))))
(if (<= y -4.6e+140)
t_0
(if (<= y -1.95e+99)
t_1
(if (<= y -960000000000.0)
t_0
(if (<= y 2e-41) (- x (* y z)) (if (<= y 3.3e+275) t_1 t_0)))))))
double code(double x, double y, double z) {
double t_0 = sin(y) * -z;
double t_1 = x * cos(y);
double tmp;
if (y <= -4.6e+140) {
tmp = t_0;
} else if (y <= -1.95e+99) {
tmp = t_1;
} else if (y <= -960000000000.0) {
tmp = t_0;
} else if (y <= 2e-41) {
tmp = x - (y * z);
} else if (y <= 3.3e+275) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_0 = sin(y) * -z
t_1 = x * cos(y)
if (y <= (-4.6d+140)) then
tmp = t_0
else if (y <= (-1.95d+99)) then
tmp = t_1
else if (y <= (-960000000000.0d0)) then
tmp = t_0
else if (y <= 2d-41) then
tmp = x - (y * z)
else if (y <= 3.3d+275) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = Math.sin(y) * -z;
double t_1 = x * Math.cos(y);
double tmp;
if (y <= -4.6e+140) {
tmp = t_0;
} else if (y <= -1.95e+99) {
tmp = t_1;
} else if (y <= -960000000000.0) {
tmp = t_0;
} else if (y <= 2e-41) {
tmp = x - (y * z);
} else if (y <= 3.3e+275) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = math.sin(y) * -z t_1 = x * math.cos(y) tmp = 0 if y <= -4.6e+140: tmp = t_0 elif y <= -1.95e+99: tmp = t_1 elif y <= -960000000000.0: tmp = t_0 elif y <= 2e-41: tmp = x - (y * z) elif y <= 3.3e+275: tmp = t_1 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(sin(y) * Float64(-z)) t_1 = Float64(x * cos(y)) tmp = 0.0 if (y <= -4.6e+140) tmp = t_0; elseif (y <= -1.95e+99) tmp = t_1; elseif (y <= -960000000000.0) tmp = t_0; elseif (y <= 2e-41) tmp = Float64(x - Float64(y * z)); elseif (y <= 3.3e+275) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = sin(y) * -z; t_1 = x * cos(y); tmp = 0.0; if (y <= -4.6e+140) tmp = t_0; elseif (y <= -1.95e+99) tmp = t_1; elseif (y <= -960000000000.0) tmp = t_0; elseif (y <= 2e-41) tmp = x - (y * z); elseif (y <= 3.3e+275) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[Sin[y], $MachinePrecision] * (-z)), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.6e+140], t$95$0, If[LessEqual[y, -1.95e+99], t$95$1, If[LessEqual[y, -960000000000.0], t$95$0, If[LessEqual[y, 2e-41], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+275], t$95$1, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin y \cdot \left(-z\right)\\
t_1 := x \cdot \cos y\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{+140}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -960000000000:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-41}:\\
\;\;\;\;x - y \cdot z\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+275}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y < -4.59999999999999981e140 or -1.94999999999999997e99 < y < -9.6e11 or 3.30000000000000022e275 < y Initial program 99.6%
Taylor expanded in x around 0 65.5%
associate-*r*65.5%
neg-mul-165.5%
Simplified65.5%
if -4.59999999999999981e140 < y < -1.94999999999999997e99 or 2.00000000000000001e-41 < y < 3.30000000000000022e275Initial program 99.6%
sub-neg99.6%
+-commutative99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in z around 0 70.7%
if -9.6e11 < y < 2.00000000000000001e-41Initial program 100.0%
Taylor expanded in y around 0 98.6%
+-commutative98.6%
mul-1-neg98.6%
unsub-neg98.6%
Simplified98.6%
Final simplification82.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (sin y) (- z))) (t_1 (* x (cos y))))
(if (<= y -6e+140)
t_0
(if (<= y -1.9e+97)
t_1
(if (<= y -960000000000.0)
t_0
(if (<= y 2e-41) (fma (- y) z x) (if (<= y 2.2e+275) t_1 t_0)))))))
double code(double x, double y, double z) {
double t_0 = sin(y) * -z;
double t_1 = x * cos(y);
double tmp;
if (y <= -6e+140) {
tmp = t_0;
} else if (y <= -1.9e+97) {
tmp = t_1;
} else if (y <= -960000000000.0) {
tmp = t_0;
} else if (y <= 2e-41) {
tmp = fma(-y, z, x);
} else if (y <= 2.2e+275) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(sin(y) * Float64(-z)) t_1 = Float64(x * cos(y)) tmp = 0.0 if (y <= -6e+140) tmp = t_0; elseif (y <= -1.9e+97) tmp = t_1; elseif (y <= -960000000000.0) tmp = t_0; elseif (y <= 2e-41) tmp = fma(Float64(-y), z, x); elseif (y <= 2.2e+275) tmp = t_1; else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[Sin[y], $MachinePrecision] * (-z)), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+140], t$95$0, If[LessEqual[y, -1.9e+97], t$95$1, If[LessEqual[y, -960000000000.0], t$95$0, If[LessEqual[y, 2e-41], N[((-y) * z + x), $MachinePrecision], If[LessEqual[y, 2.2e+275], t$95$1, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sin y \cdot \left(-z\right)\\
t_1 := x \cdot \cos y\\
\mathbf{if}\;y \leq -6 \cdot 10^{+140}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{+97}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -960000000000:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-41}:\\
\;\;\;\;\mathsf{fma}\left(-y, z, x\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+275}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if y < -5.99999999999999993e140 or -1.90000000000000018e97 < y < -9.6e11 or 2.1999999999999999e275 < y Initial program 99.6%
Taylor expanded in x around 0 65.5%
associate-*r*65.5%
neg-mul-165.5%
Simplified65.5%
if -5.99999999999999993e140 < y < -1.90000000000000018e97 or 2.00000000000000001e-41 < y < 2.1999999999999999e275Initial program 99.6%
sub-neg99.6%
+-commutative99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in z around 0 70.7%
if -9.6e11 < y < 2.00000000000000001e-41Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
fma-def100.0%
Applied egg-rr100.0%
Taylor expanded in y around 0 98.6%
associate-*r*98.6%
neg-mul-198.6%
fma-udef98.6%
Simplified98.6%
Final simplification82.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -8.5e+88) (not (<= x 6.5e+73))) (* x (cos y)) (- x (* (sin y) z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -8.5e+88) || !(x <= 6.5e+73)) {
tmp = x * 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 ((x <= (-8.5d+88)) .or. (.not. (x <= 6.5d+73))) then
tmp = x * 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 ((x <= -8.5e+88) || !(x <= 6.5e+73)) {
tmp = x * Math.cos(y);
} else {
tmp = x - (Math.sin(y) * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -8.5e+88) or not (x <= 6.5e+73): tmp = x * math.cos(y) else: tmp = x - (math.sin(y) * z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -8.5e+88) || !(x <= 6.5e+73)) tmp = Float64(x * cos(y)); else tmp = Float64(x - Float64(sin(y) * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -8.5e+88) || ~((x <= 6.5e+73))) tmp = x * cos(y); else tmp = x - (sin(y) * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -8.5e+88], N[Not[LessEqual[x, 6.5e+73]], $MachinePrecision]], N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision], N[(x - N[(N[Sin[y], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{+88} \lor \neg \left(x \leq 6.5 \cdot 10^{+73}\right):\\
\;\;\;\;x \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;x - \sin y \cdot z\\
\end{array}
\end{array}
if x < -8.5000000000000005e88 or 6.5000000000000001e73 < x Initial program 99.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in z around 0 91.7%
if -8.5000000000000005e88 < x < 6.5000000000000001e73Initial program 99.8%
Taylor expanded in y around 0 88.6%
Final simplification89.9%
(FPCore (x y z) :precision binary64 (if (or (<= y -0.0018) (not (<= y 2e-41))) (* x (cos y)) (- x (* y z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -0.0018) || !(y <= 2e-41)) {
tmp = x * cos(y);
} else {
tmp = x - (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 ((y <= (-0.0018d0)) .or. (.not. (y <= 2d-41))) then
tmp = x * cos(y)
else
tmp = x - (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -0.0018) || !(y <= 2e-41)) {
tmp = x * Math.cos(y);
} else {
tmp = x - (y * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -0.0018) or not (y <= 2e-41): tmp = x * math.cos(y) else: tmp = x - (y * z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -0.0018) || !(y <= 2e-41)) tmp = Float64(x * cos(y)); else tmp = Float64(x - Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -0.0018) || ~((y <= 2e-41))) tmp = x * cos(y); else tmp = x - (y * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -0.0018], N[Not[LessEqual[y, 2e-41]], $MachinePrecision]], N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.0018 \lor \neg \left(y \leq 2 \cdot 10^{-41}\right):\\
\;\;\;\;x \cdot \cos y\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot z\\
\end{array}
\end{array}
if y < -0.0018 or 2.00000000000000001e-41 < y Initial program 99.6%
sub-neg99.6%
+-commutative99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in z around 0 53.3%
if -0.0018 < y < 2.00000000000000001e-41Initial program 100.0%
Taylor expanded in y around 0 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
Simplified99.7%
Final simplification74.9%
(FPCore (x y z) :precision binary64 (if (<= z 3.1e+169) x (* y (- z))))
double code(double x, double y, double z) {
double tmp;
if (z <= 3.1e+169) {
tmp = x;
} 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.1d+169) then
tmp = x
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.1e+169) {
tmp = x;
} else {
tmp = y * -z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= 3.1e+169: tmp = x else: tmp = y * -z return tmp
function code(x, y, z) tmp = 0.0 if (z <= 3.1e+169) tmp = x; else tmp = Float64(y * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= 3.1e+169) tmp = x; else tmp = y * -z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, 3.1e+169], x, N[(y * (-z)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.1 \cdot 10^{+169}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\end{array}
\end{array}
if z < 3.1e169Initial program 99.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in y around 0 42.8%
if 3.1e169 < z Initial program 99.9%
Taylor expanded in y around 0 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
Simplified62.3%
Taylor expanded in x around 0 46.4%
associate-*r*46.4%
neg-mul-146.4%
Simplified46.4%
Final simplification43.1%
(FPCore (x y z) :precision binary64 (- x (* y z)))
double code(double x, double y, double z) {
return x - (y * 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 * z)
end function
public static double code(double x, double y, double z) {
return x - (y * z);
}
def code(x, y, z): return x - (y * z)
function code(x, y, z) return Float64(x - Float64(y * z)) end
function tmp = code(x, y, z) tmp = x - (y * z); end
code[x_, y_, z_] := N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - y \cdot z
\end{array}
Initial program 99.8%
Taylor expanded in y around 0 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Final simplification52.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.8%
sub-neg99.8%
+-commutative99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
fma-def99.8%
Applied egg-rr99.8%
Taylor expanded in y around 0 40.8%
Final simplification40.8%
herbie shell --seed 2023240
(FPCore (x y z)
:name "Diagrams.ThreeD.Transform:aboutX from diagrams-lib-1.3.0.3, A"
:precision binary64
(- (* x (cos y)) (* z (sin y))))