
(FPCore (x y z) :precision binary64 (+ (* x y) (* (- 1.0 x) z)))
double code(double x, double y, double z) {
return (x * y) + ((1.0 - 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 * y) + ((1.0d0 - x) * z)
end function
public static double code(double x, double y, double z) {
return (x * y) + ((1.0 - x) * z);
}
def code(x, y, z): return (x * y) + ((1.0 - x) * z)
function code(x, y, z) return Float64(Float64(x * y) + Float64(Float64(1.0 - x) * z)) end
function tmp = code(x, y, z) tmp = (x * y) + ((1.0 - x) * z); end
code[x_, y_, z_] := N[(N[(x * y), $MachinePrecision] + N[(N[(1.0 - x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot y + \left(1 - x\right) \cdot z
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (* x y) (* (- 1.0 x) z)))
double code(double x, double y, double z) {
return (x * y) + ((1.0 - 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 * y) + ((1.0d0 - x) * z)
end function
public static double code(double x, double y, double z) {
return (x * y) + ((1.0 - x) * z);
}
def code(x, y, z): return (x * y) + ((1.0 - x) * z)
function code(x, y, z) return Float64(Float64(x * y) + Float64(Float64(1.0 - x) * z)) end
function tmp = code(x, y, z) tmp = (x * y) + ((1.0 - x) * z); end
code[x_, y_, z_] := N[(N[(x * y), $MachinePrecision] + N[(N[(1.0 - x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot y + \left(1 - x\right) \cdot z
\end{array}
(FPCore (x y z) :precision binary64 (+ z (* x (- y z))))
double code(double x, double y, double z) {
return z + (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 = z + (x * (y - z))
end function
public static double code(double x, double y, double z) {
return z + (x * (y - z));
}
def code(x, y, z): return z + (x * (y - z))
function code(x, y, z) return Float64(z + Float64(x * Float64(y - z))) end
function tmp = code(x, y, z) tmp = z + (x * (y - z)); end
code[x_, y_, z_] := N[(z + N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z + x \cdot \left(y - z\right)
\end{array}
Initial program 97.2%
+-commutative97.2%
remove-double-neg97.2%
distribute-rgt-neg-out97.2%
neg-sub097.2%
neg-sub097.2%
*-commutative97.2%
distribute-lft-neg-in97.2%
remove-double-neg97.2%
distribute-rgt-out--97.3%
*-lft-identity97.3%
associate-+l-97.3%
distribute-lft-out--100.0%
Simplified100.0%
Final simplification100.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (- x))))
(if (<= x -2.3e+148)
t_0
(if (<= x -1.7e+131)
(* x y)
(if (<= x -1.0)
t_0
(if (<= x -2.7e-101)
z
(if (<= x -4.1e-153)
(* x y)
(if (<= x 2.25e-54)
z
(if (or (<= x 480000.0) (not (<= x 4.2e+64)))
(* x y)
t_0)))))))))
double code(double x, double y, double z) {
double t_0 = z * -x;
double tmp;
if (x <= -2.3e+148) {
tmp = t_0;
} else if (x <= -1.7e+131) {
tmp = x * y;
} else if (x <= -1.0) {
tmp = t_0;
} else if (x <= -2.7e-101) {
tmp = z;
} else if (x <= -4.1e-153) {
tmp = x * y;
} else if (x <= 2.25e-54) {
tmp = z;
} else if ((x <= 480000.0) || !(x <= 4.2e+64)) {
tmp = x * y;
} 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 * -x
if (x <= (-2.3d+148)) then
tmp = t_0
else if (x <= (-1.7d+131)) then
tmp = x * y
else if (x <= (-1.0d0)) then
tmp = t_0
else if (x <= (-2.7d-101)) then
tmp = z
else if (x <= (-4.1d-153)) then
tmp = x * y
else if (x <= 2.25d-54) then
tmp = z
else if ((x <= 480000.0d0) .or. (.not. (x <= 4.2d+64))) then
tmp = x * y
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * -x;
double tmp;
if (x <= -2.3e+148) {
tmp = t_0;
} else if (x <= -1.7e+131) {
tmp = x * y;
} else if (x <= -1.0) {
tmp = t_0;
} else if (x <= -2.7e-101) {
tmp = z;
} else if (x <= -4.1e-153) {
tmp = x * y;
} else if (x <= 2.25e-54) {
tmp = z;
} else if ((x <= 480000.0) || !(x <= 4.2e+64)) {
tmp = x * y;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * -x tmp = 0 if x <= -2.3e+148: tmp = t_0 elif x <= -1.7e+131: tmp = x * y elif x <= -1.0: tmp = t_0 elif x <= -2.7e-101: tmp = z elif x <= -4.1e-153: tmp = x * y elif x <= 2.25e-54: tmp = z elif (x <= 480000.0) or not (x <= 4.2e+64): tmp = x * y else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * Float64(-x)) tmp = 0.0 if (x <= -2.3e+148) tmp = t_0; elseif (x <= -1.7e+131) tmp = Float64(x * y); elseif (x <= -1.0) tmp = t_0; elseif (x <= -2.7e-101) tmp = z; elseif (x <= -4.1e-153) tmp = Float64(x * y); elseif (x <= 2.25e-54) tmp = z; elseif ((x <= 480000.0) || !(x <= 4.2e+64)) tmp = Float64(x * y); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * -x; tmp = 0.0; if (x <= -2.3e+148) tmp = t_0; elseif (x <= -1.7e+131) tmp = x * y; elseif (x <= -1.0) tmp = t_0; elseif (x <= -2.7e-101) tmp = z; elseif (x <= -4.1e-153) tmp = x * y; elseif (x <= 2.25e-54) tmp = z; elseif ((x <= 480000.0) || ~((x <= 4.2e+64))) tmp = x * y; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * (-x)), $MachinePrecision]}, If[LessEqual[x, -2.3e+148], t$95$0, If[LessEqual[x, -1.7e+131], N[(x * y), $MachinePrecision], If[LessEqual[x, -1.0], t$95$0, If[LessEqual[x, -2.7e-101], z, If[LessEqual[x, -4.1e-153], N[(x * y), $MachinePrecision], If[LessEqual[x, 2.25e-54], z, If[Or[LessEqual[x, 480000.0], N[Not[LessEqual[x, 4.2e+64]], $MachinePrecision]], N[(x * y), $MachinePrecision], t$95$0]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(-x\right)\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{+148}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{+131}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq -1:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{-101}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq -4.1 \cdot 10^{-153}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq 2.25 \cdot 10^{-54}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 480000 \lor \neg \left(x \leq 4.2 \cdot 10^{+64}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -2.3000000000000001e148 or -1.69999999999999993e131 < x < -1 or 4.8e5 < x < 4.2000000000000001e64Initial program 94.4%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around inf 98.8%
mul-1-neg98.8%
unsub-neg98.8%
Simplified98.8%
Taylor expanded in y around 0 70.0%
mul-1-neg70.0%
distribute-rgt-neg-out70.0%
Simplified70.0%
if -2.3000000000000001e148 < x < -1.69999999999999993e131 or -2.7000000000000002e-101 < x < -4.1e-153 or 2.2499999999999999e-54 < x < 4.8e5 or 4.2000000000000001e64 < x Initial program 96.3%
fma-define98.8%
Simplified98.8%
Taylor expanded in y around inf 64.0%
if -1 < x < -2.7000000000000002e-101 or -4.1e-153 < x < 2.2499999999999999e-54Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 86.0%
Final simplification74.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.0012)
(and (not (<= x -2.6e-101))
(or (<= x -4.1e-153) (not (<= x 2.3e-17)))))
(* x (- y z))
z))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.0012) || (!(x <= -2.6e-101) && ((x <= -4.1e-153) || !(x <= 2.3e-17)))) {
tmp = x * (y - z);
} else {
tmp = 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 <= (-0.0012d0)) .or. (.not. (x <= (-2.6d-101))) .and. (x <= (-4.1d-153)) .or. (.not. (x <= 2.3d-17))) then
tmp = x * (y - z)
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.0012) || (!(x <= -2.6e-101) && ((x <= -4.1e-153) || !(x <= 2.3e-17)))) {
tmp = x * (y - z);
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.0012) or (not (x <= -2.6e-101) and ((x <= -4.1e-153) or not (x <= 2.3e-17))): tmp = x * (y - z) else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.0012) || (!(x <= -2.6e-101) && ((x <= -4.1e-153) || !(x <= 2.3e-17)))) tmp = Float64(x * Float64(y - z)); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.0012) || (~((x <= -2.6e-101)) && ((x <= -4.1e-153) || ~((x <= 2.3e-17))))) tmp = x * (y - z); else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.0012], And[N[Not[LessEqual[x, -2.6e-101]], $MachinePrecision], Or[LessEqual[x, -4.1e-153], N[Not[LessEqual[x, 2.3e-17]], $MachinePrecision]]]], N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision], z]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0012 \lor \neg \left(x \leq -2.6 \cdot 10^{-101}\right) \land \left(x \leq -4.1 \cdot 10^{-153} \lor \neg \left(x \leq 2.3 \cdot 10^{-17}\right)\right):\\
\;\;\;\;x \cdot \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -0.00119999999999999989 or -2.6000000000000001e-101 < x < -4.1e-153 or 2.30000000000000009e-17 < x Initial program 95.4%
fma-define99.3%
Simplified99.3%
Taylor expanded in x around inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
Simplified95.0%
if -0.00119999999999999989 < x < -2.6000000000000001e-101 or -4.1e-153 < x < 2.30000000000000009e-17Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 85.4%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- y z))))
(if (<= x -6e+24)
t_0
(if (<= x -4.5e-101)
(- z (* z x))
(if (and (not (<= x -4.1e-153)) (<= x 1.22e-32)) z t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (y - z);
double tmp;
if (x <= -6e+24) {
tmp = t_0;
} else if (x <= -4.5e-101) {
tmp = z - (z * x);
} else if (!(x <= -4.1e-153) && (x <= 1.22e-32)) {
tmp = 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 = x * (y - z)
if (x <= (-6d+24)) then
tmp = t_0
else if (x <= (-4.5d-101)) then
tmp = z - (z * x)
else if ((.not. (x <= (-4.1d-153))) .and. (x <= 1.22d-32)) then
tmp = z
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (y - z);
double tmp;
if (x <= -6e+24) {
tmp = t_0;
} else if (x <= -4.5e-101) {
tmp = z - (z * x);
} else if (!(x <= -4.1e-153) && (x <= 1.22e-32)) {
tmp = z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (y - z) tmp = 0 if x <= -6e+24: tmp = t_0 elif x <= -4.5e-101: tmp = z - (z * x) elif not (x <= -4.1e-153) and (x <= 1.22e-32): tmp = z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(y - z)) tmp = 0.0 if (x <= -6e+24) tmp = t_0; elseif (x <= -4.5e-101) tmp = Float64(z - Float64(z * x)); elseif (!(x <= -4.1e-153) && (x <= 1.22e-32)) tmp = z; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (y - z); tmp = 0.0; if (x <= -6e+24) tmp = t_0; elseif (x <= -4.5e-101) tmp = z - (z * x); elseif (~((x <= -4.1e-153)) && (x <= 1.22e-32)) tmp = z; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6e+24], t$95$0, If[LessEqual[x, -4.5e-101], N[(z - N[(z * x), $MachinePrecision]), $MachinePrecision], If[And[N[Not[LessEqual[x, -4.1e-153]], $MachinePrecision], LessEqual[x, 1.22e-32]], z, t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y - z\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{+24}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-101}:\\
\;\;\;\;z - z \cdot x\\
\mathbf{elif}\;\neg \left(x \leq -4.1 \cdot 10^{-153}\right) \land x \leq 1.22 \cdot 10^{-32}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.9999999999999999e24 or -4.4999999999999998e-101 < x < -4.1e-153 or 1.22e-32 < x Initial program 95.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in x around inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
Simplified94.9%
if -5.9999999999999999e24 < x < -4.4999999999999998e-101Initial program 99.9%
+-commutative99.9%
remove-double-neg99.9%
distribute-rgt-neg-out99.9%
neg-sub099.9%
neg-sub099.9%
*-commutative99.9%
distribute-lft-neg-in99.9%
remove-double-neg99.9%
distribute-rgt-out--100.0%
*-lft-identity100.0%
associate-+l-100.0%
distribute-lft-out--100.0%
Simplified100.0%
Taylor expanded in z around inf 83.6%
if -4.1e-153 < x < 1.22e-32Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 88.4%
Final simplification91.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.15e+46)
(not
(or (<= x -2.6e-100) (and (not (<= x -4.1e-153)) (<= x 4.2e-54)))))
(* x y)
z))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.15e+46) || !((x <= -2.6e-100) || (!(x <= -4.1e-153) && (x <= 4.2e-54)))) {
tmp = x * y;
} else {
tmp = 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 <= (-1.15d+46)) .or. (.not. (x <= (-2.6d-100)) .or. (.not. (x <= (-4.1d-153))) .and. (x <= 4.2d-54))) then
tmp = x * y
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.15e+46) || !((x <= -2.6e-100) || (!(x <= -4.1e-153) && (x <= 4.2e-54)))) {
tmp = x * y;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.15e+46) or not ((x <= -2.6e-100) or (not (x <= -4.1e-153) and (x <= 4.2e-54))): tmp = x * y else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.15e+46) || !((x <= -2.6e-100) || (!(x <= -4.1e-153) && (x <= 4.2e-54)))) tmp = Float64(x * y); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.15e+46) || ~(((x <= -2.6e-100) || (~((x <= -4.1e-153)) && (x <= 4.2e-54))))) tmp = x * y; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.15e+46], N[Not[Or[LessEqual[x, -2.6e-100], And[N[Not[LessEqual[x, -4.1e-153]], $MachinePrecision], LessEqual[x, 4.2e-54]]]], $MachinePrecision]], N[(x * y), $MachinePrecision], z]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.15 \cdot 10^{+46} \lor \neg \left(x \leq -2.6 \cdot 10^{-100} \lor \neg \left(x \leq -4.1 \cdot 10^{-153}\right) \land x \leq 4.2 \cdot 10^{-54}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -1.15e46 or -2.5999999999999998e-100 < x < -4.1e-153 or 4.2e-54 < x Initial program 95.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in y around inf 51.6%
if -1.15e46 < x < -2.5999999999999998e-100 or -4.1e-153 < x < 4.2e-54Initial program 100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in x around 0 82.4%
Final simplification64.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.0) (not (<= x 5e-9))) (* x (- y z)) (+ z (* x y))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.0) || !(x <= 5e-9)) {
tmp = x * (y - z);
} else {
tmp = z + (x * 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 <= (-1.0d0)) .or. (.not. (x <= 5d-9))) then
tmp = x * (y - z)
else
tmp = z + (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.0) || !(x <= 5e-9)) {
tmp = x * (y - z);
} else {
tmp = z + (x * y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.0) or not (x <= 5e-9): tmp = x * (y - z) else: tmp = z + (x * y) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.0) || !(x <= 5e-9)) tmp = Float64(x * Float64(y - z)); else tmp = Float64(z + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.0) || ~((x <= 5e-9))) tmp = x * (y - z); else tmp = z + (x * y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.0], N[Not[LessEqual[x, 5e-9]], $MachinePrecision]], N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision], N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 5 \cdot 10^{-9}\right):\\
\;\;\;\;x \cdot \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;z + x \cdot y\\
\end{array}
\end{array}
if x < -1 or 5.0000000000000001e-9 < x Initial program 94.7%
fma-define99.2%
Simplified99.2%
Taylor expanded in x around inf 99.3%
mul-1-neg99.3%
unsub-neg99.3%
Simplified99.3%
if -1 < x < 5.0000000000000001e-9Initial program 100.0%
+-commutative100.0%
remove-double-neg100.0%
distribute-rgt-neg-out100.0%
neg-sub0100.0%
neg-sub0100.0%
*-commutative100.0%
distribute-lft-neg-in100.0%
remove-double-neg100.0%
distribute-rgt-out--100.0%
*-lft-identity100.0%
associate-+l-100.0%
distribute-lft-out--100.0%
Simplified100.0%
Taylor expanded in z around 0 98.0%
mul-1-neg98.0%
distribute-rgt-neg-out98.0%
Simplified98.0%
Final simplification98.7%
(FPCore (x y z) :precision binary64 z)
double code(double x, double y, double z) {
return z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z
end function
public static double code(double x, double y, double z) {
return z;
}
def code(x, y, z): return z
function code(x, y, z) return z end
function tmp = code(x, y, z) tmp = z; end
code[x_, y_, z_] := z
\begin{array}{l}
\\
z
\end{array}
Initial program 97.2%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 38.6%
Final simplification38.6%
herbie shell --seed 2024079
(FPCore (x y z)
:name "Diagrams.Backend.Rasterific:$crender from diagrams-rasterific-1.3.1.3"
:precision binary64
(+ (* x y) (* (- 1.0 x) z)))