
(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}
\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 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}
\\
\left(x + \cos y\right) - 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 + \cos y\right)
\end{array}
Initial program 99.9%
cancel-sign-sub-inv99.9%
+-commutative99.9%
*-commutative99.9%
fma-def100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z) :precision binary64 (if (<= x -7.2e+15) x (if (<= x 2.2e+24) (- (cos y) (* (sin y) z)) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.2e+15) {
tmp = x;
} else if (x <= 2.2e+24) {
tmp = cos(y) - (sin(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 <= (-7.2d+15)) then
tmp = x
else if (x <= 2.2d+24) then
tmp = cos(y) - (sin(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 <= -7.2e+15) {
tmp = x;
} else if (x <= 2.2e+24) {
tmp = Math.cos(y) - (Math.sin(y) * z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.2e+15: tmp = x elif x <= 2.2e+24: tmp = math.cos(y) - (math.sin(y) * z) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.2e+15) tmp = x; elseif (x <= 2.2e+24) tmp = Float64(cos(y) - Float64(sin(y) * z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.2e+15) tmp = x; elseif (x <= 2.2e+24) tmp = cos(y) - (sin(y) * z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.2e+15], x, If[LessEqual[x, 2.2e+24], N[(N[Cos[y], $MachinePrecision] - N[(N[Sin[y], $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+15}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{+24}:\\
\;\;\;\;\cos y - \sin y \cdot z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -7.2e15 or 2.20000000000000002e24 < x Initial program 100.0%
Taylor expanded in x around inf 88.7%
if -7.2e15 < x < 2.20000000000000002e24Initial program 99.9%
Taylor expanded in x around 0 97.1%
Final simplification93.1%
(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}
\\
\left(x + \cos y\right) - \sin y \cdot z
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.1e+97) (not (<= z 6.9e+168))) (* (sin y) (- z)) (+ x (cos y))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.1e+97) || !(z <= 6.9e+168)) {
tmp = sin(y) * -z;
} else {
tmp = x + 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 ((z <= (-5.1d+97)) .or. (.not. (z <= 6.9d+168))) then
tmp = sin(y) * -z
else
tmp = x + cos(y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.1e+97) || !(z <= 6.9e+168)) {
tmp = Math.sin(y) * -z;
} else {
tmp = x + Math.cos(y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.1e+97) or not (z <= 6.9e+168): tmp = math.sin(y) * -z else: tmp = x + math.cos(y) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.1e+97) || !(z <= 6.9e+168)) tmp = Float64(sin(y) * Float64(-z)); else tmp = Float64(x + cos(y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.1e+97) || ~((z <= 6.9e+168))) tmp = sin(y) * -z; else tmp = x + cos(y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.1e+97], N[Not[LessEqual[z, 6.9e+168]], $MachinePrecision]], N[(N[Sin[y], $MachinePrecision] * (-z)), $MachinePrecision], N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{+97} \lor \neg \left(z \leq 6.9 \cdot 10^{+168}\right):\\
\;\;\;\;\sin y \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;x + \cos y\\
\end{array}
\end{array}
if z < -5.10000000000000034e97 or 6.8999999999999998e168 < z Initial program 99.9%
Taylor expanded in z around inf 69.5%
neg-mul-169.5%
distribute-rgt-neg-in69.5%
Simplified69.5%
if -5.10000000000000034e97 < z < 6.8999999999999998e168Initial program 99.9%
Taylor expanded in z around 0 91.6%
+-commutative91.6%
Simplified91.6%
Final simplification85.6%
(FPCore (x y z) :precision binary64 (if (or (<= y -0.00052) (not (<= y 1.9e-5))) (+ x (cos y)) (+ x (- 1.0 (* y z)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -0.00052) || !(y <= 1.9e-5)) {
tmp = x + cos(y);
} else {
tmp = x + (1.0 - (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.00052d0)) .or. (.not. (y <= 1.9d-5))) then
tmp = x + cos(y)
else
tmp = x + (1.0d0 - (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -0.00052) || !(y <= 1.9e-5)) {
tmp = x + Math.cos(y);
} else {
tmp = x + (1.0 - (y * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -0.00052) or not (y <= 1.9e-5): tmp = x + math.cos(y) else: tmp = x + (1.0 - (y * z)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -0.00052) || !(y <= 1.9e-5)) tmp = Float64(x + cos(y)); else tmp = Float64(x + Float64(1.0 - Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -0.00052) || ~((y <= 1.9e-5))) tmp = x + cos(y); else tmp = x + (1.0 - (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -0.00052], N[Not[LessEqual[y, 1.9e-5]], $MachinePrecision]], N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00052 \lor \neg \left(y \leq 1.9 \cdot 10^{-5}\right):\\
\;\;\;\;x + \cos y\\
\mathbf{else}:\\
\;\;\;\;x + \left(1 - y \cdot z\right)\\
\end{array}
\end{array}
if y < -5.19999999999999954e-4 or 1.9000000000000001e-5 < y Initial program 99.9%
Taylor expanded in z around 0 64.4%
+-commutative64.4%
Simplified64.4%
if -5.19999999999999954e-4 < y < 1.9000000000000001e-5Initial program 100.0%
Taylor expanded in y around 0 100.0%
associate-+r+100.0%
+-commutative100.0%
associate-+l+100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Final simplification84.0%
(FPCore (x y z) :precision binary64 (if (<= x -8.2e-12) (+ x 1.0) (if (<= x 4.5e-79) (cos y) (+ x (- 1.0 (* y z))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -8.2e-12) {
tmp = x + 1.0;
} else if (x <= 4.5e-79) {
tmp = cos(y);
} else {
tmp = x + (1.0 - (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.2d-12)) then
tmp = x + 1.0d0
else if (x <= 4.5d-79) then
tmp = cos(y)
else
tmp = x + (1.0d0 - (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -8.2e-12) {
tmp = x + 1.0;
} else if (x <= 4.5e-79) {
tmp = Math.cos(y);
} else {
tmp = x + (1.0 - (y * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8.2e-12: tmp = x + 1.0 elif x <= 4.5e-79: tmp = math.cos(y) else: tmp = x + (1.0 - (y * z)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8.2e-12) tmp = Float64(x + 1.0); elseif (x <= 4.5e-79) tmp = cos(y); else tmp = Float64(x + Float64(1.0 - Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8.2e-12) tmp = x + 1.0; elseif (x <= 4.5e-79) tmp = cos(y); else tmp = x + (1.0 - (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8.2e-12], N[(x + 1.0), $MachinePrecision], If[LessEqual[x, 4.5e-79], N[Cos[y], $MachinePrecision], N[(x + N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{-12}:\\
\;\;\;\;x + 1\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-79}:\\
\;\;\;\;\cos y\\
\mathbf{else}:\\
\;\;\;\;x + \left(1 - y \cdot z\right)\\
\end{array}
\end{array}
if x < -8.19999999999999979e-12Initial program 100.0%
Taylor expanded in y around 0 80.0%
+-commutative80.0%
Simplified80.0%
if -8.19999999999999979e-12 < x < 4.5000000000000003e-79Initial program 99.9%
cancel-sign-sub-inv99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in x around 0 99.8%
Taylor expanded in z around 0 69.1%
if 4.5000000000000003e-79 < x Initial program 100.0%
Taylor expanded in y around 0 85.9%
associate-+r+85.9%
+-commutative85.9%
associate-+l+85.9%
mul-1-neg85.9%
unsub-neg85.9%
Simplified85.9%
Final simplification77.3%
(FPCore (x y z) :precision binary64 (if (<= x -3.35e-15) (+ x 1.0) (if (<= x 2.6e+17) (- 1.0 (* y z)) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.35e-15) {
tmp = x + 1.0;
} else if (x <= 2.6e+17) {
tmp = 1.0 - (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 <= (-3.35d-15)) then
tmp = x + 1.0d0
else if (x <= 2.6d+17) then
tmp = 1.0d0 - (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 <= -3.35e-15) {
tmp = x + 1.0;
} else if (x <= 2.6e+17) {
tmp = 1.0 - (y * z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.35e-15: tmp = x + 1.0 elif x <= 2.6e+17: tmp = 1.0 - (y * z) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.35e-15) tmp = Float64(x + 1.0); elseif (x <= 2.6e+17) tmp = Float64(1.0 - Float64(y * z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.35e-15) tmp = x + 1.0; elseif (x <= 2.6e+17) tmp = 1.0 - (y * z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.35e-15], N[(x + 1.0), $MachinePrecision], If[LessEqual[x, 2.6e+17], N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.35 \cdot 10^{-15}:\\
\;\;\;\;x + 1\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+17}:\\
\;\;\;\;1 - y \cdot z\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -3.35e-15Initial program 100.0%
Taylor expanded in y around 0 79.1%
+-commutative79.1%
Simplified79.1%
if -3.35e-15 < x < 2.6e17Initial program 99.9%
cancel-sign-sub-inv99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in x around 0 99.5%
Taylor expanded in y around 0 57.3%
mul-1-neg57.3%
*-commutative57.3%
unsub-neg57.3%
Simplified57.3%
if 2.6e17 < x Initial program 100.0%
Taylor expanded in x around inf 90.4%
Final simplification71.0%
(FPCore (x y z) :precision binary64 (if (<= y -2.6e+94) (+ x 1.0) (+ x (- 1.0 (* y z)))))
double code(double x, double y, double z) {
double tmp;
if (y <= -2.6e+94) {
tmp = x + 1.0;
} else {
tmp = x + (1.0 - (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 <= (-2.6d+94)) then
tmp = x + 1.0d0
else
tmp = x + (1.0d0 - (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -2.6e+94) {
tmp = x + 1.0;
} else {
tmp = x + (1.0 - (y * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -2.6e+94: tmp = x + 1.0 else: tmp = x + (1.0 - (y * z)) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -2.6e+94) tmp = Float64(x + 1.0); else tmp = Float64(x + Float64(1.0 - Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -2.6e+94) tmp = x + 1.0; else tmp = x + (1.0 - (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -2.6e+94], N[(x + 1.0), $MachinePrecision], N[(x + N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+94}:\\
\;\;\;\;x + 1\\
\mathbf{else}:\\
\;\;\;\;x + \left(1 - y \cdot z\right)\\
\end{array}
\end{array}
if y < -2.5999999999999999e94Initial program 99.9%
Taylor expanded in y around 0 42.6%
+-commutative42.6%
Simplified42.6%
if -2.5999999999999999e94 < y Initial program 100.0%
Taylor expanded in y around 0 77.8%
associate-+r+77.8%
+-commutative77.8%
associate-+l+77.8%
mul-1-neg77.8%
unsub-neg77.8%
Simplified77.8%
Final simplification71.7%
(FPCore (x y z) :precision binary64 (if (<= x -1.0) x (if (<= x 2.6e+17) 1.0 x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.0) {
tmp = x;
} else if (x <= 2.6e+17) {
tmp = 1.0;
} 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 <= (-1.0d0)) then
tmp = x
else if (x <= 2.6d+17) then
tmp = 1.0d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.0) {
tmp = x;
} else if (x <= 2.6e+17) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.0: tmp = x elif x <= 2.6e+17: tmp = 1.0 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.0) tmp = x; elseif (x <= 2.6e+17) tmp = 1.0; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.0) tmp = x; elseif (x <= 2.6e+17) tmp = 1.0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.0], x, If[LessEqual[x, 2.6e+17], 1.0, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1 or 2.6e17 < x Initial program 100.0%
Taylor expanded in x around inf 84.0%
if -1 < x < 2.6e17Initial program 99.9%
cancel-sign-sub-inv99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
Simplified99.9%
Taylor expanded in x around 0 99.4%
Taylor expanded in y around 0 43.4%
Final simplification63.7%
(FPCore (x y z) :precision binary64 (+ x 1.0))
double code(double x, double y, double z) {
return x + 1.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + 1.0d0
end function
public static double code(double x, double y, double z) {
return x + 1.0;
}
def code(x, y, z): return x + 1.0
function code(x, y, z) return Float64(x + 1.0) end
function tmp = code(x, y, z) tmp = x + 1.0; end
code[x_, y_, z_] := N[(x + 1.0), $MachinePrecision]
\begin{array}{l}
\\
x + 1
\end{array}
Initial program 99.9%
Taylor expanded in y around 0 64.4%
+-commutative64.4%
Simplified64.4%
Final simplification64.4%
(FPCore (x y z) :precision binary64 1.0)
double code(double x, double y, double z) {
return 1.0;
}
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
end function
public static double code(double x, double y, double z) {
return 1.0;
}
def code(x, y, z): return 1.0
function code(x, y, z) return 1.0 end
function tmp = code(x, y, z) tmp = 1.0; end
code[x_, y_, z_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.9%
cancel-sign-sub-inv99.9%
+-commutative99.9%
*-commutative99.9%
fma-def100.0%
Simplified100.0%
Taylor expanded in x around 0 58.4%
Taylor expanded in y around 0 23.2%
Final simplification23.2%
herbie shell --seed 2023271
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B"
:precision binary64
(- (+ x (cos y)) (* z (sin y))))