
(FPCore (x y z) :precision binary64 (+ (* x 0.5) (* y (+ (- 1.0 z) (log z)))))
double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + log(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 * 0.5d0) + (y * ((1.0d0 - z) + log(z)))
end function
public static double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + Math.log(z)));
}
def code(x, y, z): return (x * 0.5) + (y * ((1.0 - z) + math.log(z)))
function code(x, y, z) return Float64(Float64(x * 0.5) + Float64(y * Float64(Float64(1.0 - z) + log(z)))) end
function tmp = code(x, y, z) tmp = (x * 0.5) + (y * ((1.0 - z) + log(z))); end
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] + N[(y * N[(N[(1.0 - z), $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (* x 0.5) (* y (+ (- 1.0 z) (log z)))))
double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + log(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 * 0.5d0) + (y * ((1.0d0 - z) + log(z)))
end function
public static double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + Math.log(z)));
}
def code(x, y, z): return (x * 0.5) + (y * ((1.0 - z) + math.log(z)))
function code(x, y, z) return Float64(Float64(x * 0.5) + Float64(y * Float64(Float64(1.0 - z) + log(z)))) end
function tmp = code(x, y, z) tmp = (x * 0.5) + (y * ((1.0 - z) + log(z))); end
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] + N[(y * N[(N[(1.0 - z), $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
\end{array}
(FPCore (x y z) :precision binary64 (+ (* x 0.5) (+ (* y (- 1.0 z)) (* y (log z)))))
double code(double x, double y, double z) {
return (x * 0.5) + ((y * (1.0 - z)) + (y * log(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 * 0.5d0) + ((y * (1.0d0 - z)) + (y * log(z)))
end function
public static double code(double x, double y, double z) {
return (x * 0.5) + ((y * (1.0 - z)) + (y * Math.log(z)));
}
def code(x, y, z): return (x * 0.5) + ((y * (1.0 - z)) + (y * math.log(z)))
function code(x, y, z) return Float64(Float64(x * 0.5) + Float64(Float64(y * Float64(1.0 - z)) + Float64(y * log(z)))) end
function tmp = code(x, y, z) tmp = (x * 0.5) + ((y * (1.0 - z)) + (y * log(z))); end
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] + N[(N[(y * N[(1.0 - z), $MachinePrecision]), $MachinePrecision] + N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5 + \left(y \cdot \left(1 - z\right) + y \cdot \log z\right)
\end{array}
Initial program 99.9%
distribute-lft-in99.9%
Applied egg-rr99.9%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(if (or (<= y -4.6e+154)
(not (or (<= y 1.4e-117) (and (not (<= y 1.5e-68)) (<= y 4.6e+38)))))
(* y (- (+ 1.0 (log z)) z))
(- (* x 0.5) (* y z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -4.6e+154) || !((y <= 1.4e-117) || (!(y <= 1.5e-68) && (y <= 4.6e+38)))) {
tmp = y * ((1.0 + log(z)) - z);
} else {
tmp = (x * 0.5) - (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 <= (-4.6d+154)) .or. (.not. (y <= 1.4d-117) .or. (.not. (y <= 1.5d-68)) .and. (y <= 4.6d+38))) then
tmp = y * ((1.0d0 + log(z)) - z)
else
tmp = (x * 0.5d0) - (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -4.6e+154) || !((y <= 1.4e-117) || (!(y <= 1.5e-68) && (y <= 4.6e+38)))) {
tmp = y * ((1.0 + Math.log(z)) - z);
} else {
tmp = (x * 0.5) - (y * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -4.6e+154) or not ((y <= 1.4e-117) or (not (y <= 1.5e-68) and (y <= 4.6e+38))): tmp = y * ((1.0 + math.log(z)) - z) else: tmp = (x * 0.5) - (y * z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -4.6e+154) || !((y <= 1.4e-117) || (!(y <= 1.5e-68) && (y <= 4.6e+38)))) tmp = Float64(y * Float64(Float64(1.0 + log(z)) - z)); else tmp = Float64(Float64(x * 0.5) - Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -4.6e+154) || ~(((y <= 1.4e-117) || (~((y <= 1.5e-68)) && (y <= 4.6e+38))))) tmp = y * ((1.0 + log(z)) - z); else tmp = (x * 0.5) - (y * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -4.6e+154], N[Not[Or[LessEqual[y, 1.4e-117], And[N[Not[LessEqual[y, 1.5e-68]], $MachinePrecision], LessEqual[y, 4.6e+38]]]], $MachinePrecision]], N[(y * N[(N[(1.0 + N[Log[z], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision], N[(N[(x * 0.5), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.6 \cdot 10^{+154} \lor \neg \left(y \leq 1.4 \cdot 10^{-117} \lor \neg \left(y \leq 1.5 \cdot 10^{-68}\right) \land y \leq 4.6 \cdot 10^{+38}\right):\\
\;\;\;\;y \cdot \left(\left(1 + \log z\right) - z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\end{array}
\end{array}
if y < -4.6e154 or 1.4e-117 < y < 1.5e-68 or 4.6000000000000002e38 < y Initial program 99.7%
sub-neg99.7%
associate-+l+99.7%
distribute-lft-in99.7%
*-rgt-identity99.7%
associate-+r+99.7%
fma-def99.7%
+-commutative99.7%
unsub-neg99.7%
Simplified99.7%
Taylor expanded in x around 0 94.7%
Taylor expanded in y around 0 94.7%
if -4.6e154 < y < 1.4e-117 or 1.5e-68 < y < 4.6000000000000002e38Initial program 99.9%
Taylor expanded in z around inf 91.2%
mul-1-neg91.2%
distribute-rgt-neg-out91.2%
Simplified91.2%
distribute-rgt-neg-out91.2%
unsub-neg91.2%
Applied egg-rr91.2%
Final simplification92.4%
(FPCore (x y z) :precision binary64 (if (<= z 1.85e-12) (+ (* x 0.5) (+ y (* y (log z)))) (- (* x 0.5) (* y z))))
double code(double x, double y, double z) {
double tmp;
if (z <= 1.85e-12) {
tmp = (x * 0.5) + (y + (y * log(z)));
} else {
tmp = (x * 0.5) - (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 <= 1.85d-12) then
tmp = (x * 0.5d0) + (y + (y * log(z)))
else
tmp = (x * 0.5d0) - (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= 1.85e-12) {
tmp = (x * 0.5) + (y + (y * Math.log(z)));
} else {
tmp = (x * 0.5) - (y * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= 1.85e-12: tmp = (x * 0.5) + (y + (y * math.log(z))) else: tmp = (x * 0.5) - (y * z) return tmp
function code(x, y, z) tmp = 0.0 if (z <= 1.85e-12) tmp = Float64(Float64(x * 0.5) + Float64(y + Float64(y * log(z)))); else tmp = Float64(Float64(x * 0.5) - Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= 1.85e-12) tmp = (x * 0.5) + (y + (y * log(z))); else tmp = (x * 0.5) - (y * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, 1.85e-12], N[(N[(x * 0.5), $MachinePrecision] + N[(y + N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 0.5), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.85 \cdot 10^{-12}:\\
\;\;\;\;x \cdot 0.5 + \left(y + y \cdot \log z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\end{array}
\end{array}
if z < 1.84999999999999999e-12Initial program 99.8%
Taylor expanded in z around 0 99.7%
*-commutative99.7%
distribute-lft-in99.7%
*-rgt-identity99.7%
Simplified99.7%
if 1.84999999999999999e-12 < z Initial program 100.0%
Taylor expanded in z around inf 97.5%
mul-1-neg97.5%
distribute-rgt-neg-out97.5%
Simplified97.5%
distribute-rgt-neg-out97.5%
unsub-neg97.5%
Applied egg-rr97.5%
Final simplification98.5%
(FPCore (x y z) :precision binary64 (+ (* x 0.5) (* y (+ (- 1.0 z) (log z)))))
double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + log(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 * 0.5d0) + (y * ((1.0d0 - z) + log(z)))
end function
public static double code(double x, double y, double z) {
return (x * 0.5) + (y * ((1.0 - z) + Math.log(z)));
}
def code(x, y, z): return (x * 0.5) + (y * ((1.0 - z) + math.log(z)))
function code(x, y, z) return Float64(Float64(x * 0.5) + Float64(y * Float64(Float64(1.0 - z) + log(z)))) end
function tmp = code(x, y, z) tmp = (x * 0.5) + (y * ((1.0 - z) + log(z))); end
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] + N[(y * N[(N[(1.0 - z), $MachinePrecision] + N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5 + y \cdot \left(\left(1 - z\right) + \log z\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (<= y 2.7e+225) (- (* x 0.5) (* y z)) (if (<= y 2.7e+286) (* y (+ 1.0 (log z))) (* z (- y)))))
double code(double x, double y, double z) {
double tmp;
if (y <= 2.7e+225) {
tmp = (x * 0.5) - (y * z);
} else if (y <= 2.7e+286) {
tmp = y * (1.0 + log(z));
} else {
tmp = z * -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 (y <= 2.7d+225) then
tmp = (x * 0.5d0) - (y * z)
else if (y <= 2.7d+286) then
tmp = y * (1.0d0 + log(z))
else
tmp = z * -y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= 2.7e+225) {
tmp = (x * 0.5) - (y * z);
} else if (y <= 2.7e+286) {
tmp = y * (1.0 + Math.log(z));
} else {
tmp = z * -y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= 2.7e+225: tmp = (x * 0.5) - (y * z) elif y <= 2.7e+286: tmp = y * (1.0 + math.log(z)) else: tmp = z * -y return tmp
function code(x, y, z) tmp = 0.0 if (y <= 2.7e+225) tmp = Float64(Float64(x * 0.5) - Float64(y * z)); elseif (y <= 2.7e+286) tmp = Float64(y * Float64(1.0 + log(z))); else tmp = Float64(z * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= 2.7e+225) tmp = (x * 0.5) - (y * z); elseif (y <= 2.7e+286) tmp = y * (1.0 + log(z)); else tmp = z * -y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, 2.7e+225], N[(N[(x * 0.5), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+286], N[(y * N[(1.0 + N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * (-y)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.7 \cdot 10^{+225}:\\
\;\;\;\;x \cdot 0.5 - y \cdot z\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+286}:\\
\;\;\;\;y \cdot \left(1 + \log z\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-y\right)\\
\end{array}
\end{array}
if y < 2.6999999999999999e225Initial program 99.9%
Taylor expanded in z around inf 81.5%
mul-1-neg81.5%
distribute-rgt-neg-out81.5%
Simplified81.5%
distribute-rgt-neg-out81.5%
unsub-neg81.5%
Applied egg-rr81.5%
if 2.6999999999999999e225 < y < 2.69999999999999981e286Initial program 99.5%
sub-neg99.5%
associate-+l+99.5%
distribute-lft-in99.2%
*-rgt-identity99.2%
associate-+r+99.2%
fma-def99.2%
+-commutative99.2%
unsub-neg99.2%
Simplified99.2%
Taylor expanded in y around -inf 99.5%
mul-1-neg99.5%
distribute-rgt-neg-in99.5%
sub-neg99.5%
mul-1-neg99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
remove-double-neg99.5%
sub-neg99.5%
metadata-eval99.5%
+-commutative99.5%
Simplified99.5%
Taylor expanded in z around 0 89.5%
if 2.69999999999999981e286 < y Initial program 100.0%
Taylor expanded in z around inf 100.0%
mul-1-neg100.0%
distribute-rgt-neg-out100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
associate-*r*100.0%
neg-mul-1100.0%
Simplified100.0%
Final simplification82.1%
(FPCore (x y z) :precision binary64 (if (or (<= y -4e+28) (not (<= y 4.5e+38))) (* z (- y)) (* x 0.5)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -4e+28) || !(y <= 4.5e+38)) {
tmp = z * -y;
} else {
tmp = x * 0.5;
}
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 <= (-4d+28)) .or. (.not. (y <= 4.5d+38))) then
tmp = z * -y
else
tmp = x * 0.5d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -4e+28) || !(y <= 4.5e+38)) {
tmp = z * -y;
} else {
tmp = x * 0.5;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -4e+28) or not (y <= 4.5e+38): tmp = z * -y else: tmp = x * 0.5 return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -4e+28) || !(y <= 4.5e+38)) tmp = Float64(z * Float64(-y)); else tmp = Float64(x * 0.5); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -4e+28) || ~((y <= 4.5e+38))) tmp = z * -y; else tmp = x * 0.5; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -4e+28], N[Not[LessEqual[y, 4.5e+38]], $MachinePrecision]], N[(z * (-y)), $MachinePrecision], N[(x * 0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+28} \lor \neg \left(y \leq 4.5 \cdot 10^{+38}\right):\\
\;\;\;\;z \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 0.5\\
\end{array}
\end{array}
if y < -3.99999999999999983e28 or 4.4999999999999998e38 < y Initial program 99.8%
Taylor expanded in z around inf 64.5%
mul-1-neg64.5%
distribute-rgt-neg-out64.5%
Simplified64.5%
Taylor expanded in x around 0 54.5%
associate-*r*54.5%
neg-mul-154.5%
Simplified54.5%
if -3.99999999999999983e28 < y < 4.4999999999999998e38Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
distribute-lft-in99.9%
*-rgt-identity99.9%
associate-+r+99.9%
fma-def99.9%
+-commutative99.9%
unsub-neg99.9%
Simplified99.9%
Taylor expanded in x around inf 69.2%
Final simplification63.1%
(FPCore (x y z) :precision binary64 (- (* x 0.5) (* y z)))
double code(double x, double y, double z) {
return (x * 0.5) - (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 * 0.5d0) - (y * z)
end function
public static double code(double x, double y, double z) {
return (x * 0.5) - (y * z);
}
def code(x, y, z): return (x * 0.5) - (y * z)
function code(x, y, z) return Float64(Float64(x * 0.5) - Float64(y * z)) end
function tmp = code(x, y, z) tmp = (x * 0.5) - (y * z); end
code[x_, y_, z_] := N[(N[(x * 0.5), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5 - y \cdot z
\end{array}
Initial program 99.9%
Taylor expanded in z around inf 79.1%
mul-1-neg79.1%
distribute-rgt-neg-out79.1%
Simplified79.1%
distribute-rgt-neg-out79.1%
unsub-neg79.1%
Applied egg-rr79.1%
Final simplification79.1%
(FPCore (x y z) :precision binary64 (* x 0.5))
double code(double x, double y, double z) {
return x * 0.5;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 0.5d0
end function
public static double code(double x, double y, double z) {
return x * 0.5;
}
def code(x, y, z): return x * 0.5
function code(x, y, z) return Float64(x * 0.5) end
function tmp = code(x, y, z) tmp = x * 0.5; end
code[x_, y_, z_] := N[(x * 0.5), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5
\end{array}
Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
distribute-lft-in99.8%
*-rgt-identity99.8%
associate-+r+99.8%
fma-def99.8%
+-commutative99.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in x around inf 45.4%
Final simplification45.4%
(FPCore (x y z) :precision binary64 y)
double code(double x, double y, double z) {
return y;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y
end function
public static double code(double x, double y, double z) {
return y;
}
def code(x, y, z): return y
function code(x, y, z) return y end
function tmp = code(x, y, z) tmp = y; end
code[x_, y_, z_] := y
\begin{array}{l}
\\
y
\end{array}
Initial program 99.9%
sub-neg99.9%
associate-+l+99.9%
distribute-lft-in99.8%
*-rgt-identity99.8%
associate-+r+99.8%
fma-def99.8%
+-commutative99.8%
unsub-neg99.8%
Simplified99.8%
Taylor expanded in y around -inf 56.3%
mul-1-neg56.3%
distribute-rgt-neg-in56.3%
sub-neg56.3%
mul-1-neg56.3%
sub-neg56.3%
+-commutative56.3%
distribute-neg-in56.3%
remove-double-neg56.3%
sub-neg56.3%
metadata-eval56.3%
+-commutative56.3%
Simplified56.3%
Taylor expanded in z around inf 35.6%
Taylor expanded in z around 0 2.0%
Final simplification2.0%
(FPCore (x y z) :precision binary64 (- (+ y (* 0.5 x)) (* y (- z (log z)))))
double code(double x, double y, double z) {
return (y + (0.5 * x)) - (y * (z - log(z)));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (y + (0.5d0 * x)) - (y * (z - log(z)))
end function
public static double code(double x, double y, double z) {
return (y + (0.5 * x)) - (y * (z - Math.log(z)));
}
def code(x, y, z): return (y + (0.5 * x)) - (y * (z - math.log(z)))
function code(x, y, z) return Float64(Float64(y + Float64(0.5 * x)) - Float64(y * Float64(z - log(z)))) end
function tmp = code(x, y, z) tmp = (y + (0.5 * x)) - (y * (z - log(z))); end
code[x_, y_, z_] := N[(N[(y + N[(0.5 * x), $MachinePrecision]), $MachinePrecision] - N[(y * N[(z - N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y + 0.5 \cdot x\right) - y \cdot \left(z - \log z\right)
\end{array}
herbie shell --seed 2023195
(FPCore (x y z)
:name "System.Random.MWC.Distributions:gamma from mwc-random-0.13.3.2"
:precision binary64
:herbie-target
(- (+ y (* 0.5 x)) (* y (- z (log z))))
(+ (* x 0.5) (* y (+ (- 1.0 z) (log z)))))