
(FPCore (x y z) :precision binary64 (+ (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.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 * (y + z)) + (z * 5.0d0)
end function
public static double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
def code(x, y, z): return (x * (y + z)) + (z * 5.0)
function code(x, y, z) return Float64(Float64(x * Float64(y + z)) + Float64(z * 5.0)) end
function tmp = code(x, y, z) tmp = (x * (y + z)) + (z * 5.0); end
code[x_, y_, z_] := N[(N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y + z\right) + z \cdot 5
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.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 * (y + z)) + (z * 5.0d0)
end function
public static double code(double x, double y, double z) {
return (x * (y + z)) + (z * 5.0);
}
def code(x, y, z): return (x * (y + z)) + (z * 5.0)
function code(x, y, z) return Float64(Float64(x * Float64(y + z)) + Float64(z * 5.0)) end
function tmp = code(x, y, z) tmp = (x * (y + z)) + (z * 5.0); end
code[x_, y_, z_] := N[(N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(y + z\right) + z \cdot 5
\end{array}
(FPCore (x y z) :precision binary64 (fma x y (* z (+ x 5.0))))
double code(double x, double y, double z) {
return fma(x, y, (z * (x + 5.0)));
}
function code(x, y, z) return fma(x, y, Float64(z * Float64(x + 5.0))) end
code[x_, y_, z_] := N[(x * y + N[(z * N[(x + 5.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, z \cdot \left(x + 5\right)\right)
\end{array}
Initial program 99.9%
distribute-rgt-in99.2%
associate-+l+99.2%
*-commutative99.2%
fma-define99.9%
distribute-lft-out99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z)
:precision binary64
(if (<= x -3.2e+221)
(* x y)
(if (<= x -2.4e+173)
(* x z)
(if (<= x -1.1e+125)
(* x y)
(if (<= x -6.5e+68)
(* x z)
(if (or (<= x -3.2e-9) (not (<= x 4.8e-61))) (* x y) (* z 5.0)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.2e+221) {
tmp = x * y;
} else if (x <= -2.4e+173) {
tmp = x * z;
} else if (x <= -1.1e+125) {
tmp = x * y;
} else if (x <= -6.5e+68) {
tmp = x * z;
} else if ((x <= -3.2e-9) || !(x <= 4.8e-61)) {
tmp = x * y;
} else {
tmp = z * 5.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) :: tmp
if (x <= (-3.2d+221)) then
tmp = x * y
else if (x <= (-2.4d+173)) then
tmp = x * z
else if (x <= (-1.1d+125)) then
tmp = x * y
else if (x <= (-6.5d+68)) then
tmp = x * z
else if ((x <= (-3.2d-9)) .or. (.not. (x <= 4.8d-61))) then
tmp = x * y
else
tmp = z * 5.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.2e+221) {
tmp = x * y;
} else if (x <= -2.4e+173) {
tmp = x * z;
} else if (x <= -1.1e+125) {
tmp = x * y;
} else if (x <= -6.5e+68) {
tmp = x * z;
} else if ((x <= -3.2e-9) || !(x <= 4.8e-61)) {
tmp = x * y;
} else {
tmp = z * 5.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.2e+221: tmp = x * y elif x <= -2.4e+173: tmp = x * z elif x <= -1.1e+125: tmp = x * y elif x <= -6.5e+68: tmp = x * z elif (x <= -3.2e-9) or not (x <= 4.8e-61): tmp = x * y else: tmp = z * 5.0 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.2e+221) tmp = Float64(x * y); elseif (x <= -2.4e+173) tmp = Float64(x * z); elseif (x <= -1.1e+125) tmp = Float64(x * y); elseif (x <= -6.5e+68) tmp = Float64(x * z); elseif ((x <= -3.2e-9) || !(x <= 4.8e-61)) tmp = Float64(x * y); else tmp = Float64(z * 5.0); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.2e+221) tmp = x * y; elseif (x <= -2.4e+173) tmp = x * z; elseif (x <= -1.1e+125) tmp = x * y; elseif (x <= -6.5e+68) tmp = x * z; elseif ((x <= -3.2e-9) || ~((x <= 4.8e-61))) tmp = x * y; else tmp = z * 5.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.2e+221], N[(x * y), $MachinePrecision], If[LessEqual[x, -2.4e+173], N[(x * z), $MachinePrecision], If[LessEqual[x, -1.1e+125], N[(x * y), $MachinePrecision], If[LessEqual[x, -6.5e+68], N[(x * z), $MachinePrecision], If[Or[LessEqual[x, -3.2e-9], N[Not[LessEqual[x, 4.8e-61]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(z * 5.0), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+221}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{+173}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{+125}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{+68}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{-9} \lor \neg \left(x \leq 4.8 \cdot 10^{-61}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z \cdot 5\\
\end{array}
\end{array}
if x < -3.2e221 or -2.3999999999999999e173 < x < -1.09999999999999995e125 or -6.5000000000000005e68 < x < -3.20000000000000012e-9 or 4.8000000000000002e-61 < x Initial program 100.0%
Taylor expanded in y around inf 65.8%
if -3.2e221 < x < -2.3999999999999999e173 or -1.09999999999999995e125 < x < -6.5000000000000005e68Initial program 99.9%
Taylor expanded in x around inf 99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 88.0%
*-commutative88.0%
Simplified88.0%
if -3.20000000000000012e-9 < x < 4.8000000000000002e-61Initial program 99.9%
Taylor expanded in x around 0 77.1%
Final simplification72.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -410000.0) (not (<= x 5.0))) (* x (+ y z)) (+ (* x y) (* z 5.0))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -410000.0) || !(x <= 5.0)) {
tmp = x * (y + z);
} else {
tmp = (x * y) + (z * 5.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) :: tmp
if ((x <= (-410000.0d0)) .or. (.not. (x <= 5.0d0))) then
tmp = x * (y + z)
else
tmp = (x * y) + (z * 5.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -410000.0) || !(x <= 5.0)) {
tmp = x * (y + z);
} else {
tmp = (x * y) + (z * 5.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -410000.0) or not (x <= 5.0): tmp = x * (y + z) else: tmp = (x * y) + (z * 5.0) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -410000.0) || !(x <= 5.0)) tmp = Float64(x * Float64(y + z)); else tmp = Float64(Float64(x * y) + Float64(z * 5.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -410000.0) || ~((x <= 5.0))) tmp = x * (y + z); else tmp = (x * y) + (z * 5.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -410000.0], N[Not[LessEqual[x, 5.0]], $MachinePrecision]], N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000 \lor \neg \left(x \leq 5\right):\\
\;\;\;\;x \cdot \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + z \cdot 5\\
\end{array}
\end{array}
if x < -4.1e5 or 5 < x Initial program 100.0%
Taylor expanded in x around inf 98.3%
+-commutative98.3%
Simplified98.3%
if -4.1e5 < x < 5Initial program 99.9%
Taylor expanded in y around inf 87.2%
associate-/l*87.0%
distribute-rgt-out87.3%
Simplified87.3%
Taylor expanded in x around 0 86.9%
Taylor expanded in y around 0 98.7%
Final simplification98.5%
(FPCore (x y z) :precision binary64 (if (<= x -410000.0) (+ (* x y) (* x z)) (if (<= x 5.0) (+ (* x y) (* z 5.0)) (* x (+ y z)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -410000.0) {
tmp = (x * y) + (x * z);
} else if (x <= 5.0) {
tmp = (x * y) + (z * 5.0);
} 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 (x <= (-410000.0d0)) then
tmp = (x * y) + (x * z)
else if (x <= 5.0d0) then
tmp = (x * y) + (z * 5.0d0)
else
tmp = x * (y + z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -410000.0) {
tmp = (x * y) + (x * z);
} else if (x <= 5.0) {
tmp = (x * y) + (z * 5.0);
} else {
tmp = x * (y + z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -410000.0: tmp = (x * y) + (x * z) elif x <= 5.0: tmp = (x * y) + (z * 5.0) else: tmp = x * (y + z) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -410000.0) tmp = Float64(Float64(x * y) + Float64(x * z)); elseif (x <= 5.0) tmp = Float64(Float64(x * y) + Float64(z * 5.0)); else tmp = Float64(x * Float64(y + z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -410000.0) tmp = (x * y) + (x * z); elseif (x <= 5.0) tmp = (x * y) + (z * 5.0); else tmp = x * (y + z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -410000.0], N[(N[(x * y), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.0], N[(N[(x * y), $MachinePrecision] + N[(z * 5.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -410000:\\
\;\;\;\;x \cdot y + x \cdot z\\
\mathbf{elif}\;x \leq 5:\\
\;\;\;\;x \cdot y + z \cdot 5\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y + z\right)\\
\end{array}
\end{array}
if x < -4.1e5Initial program 100.0%
Taylor expanded in x around inf 99.1%
+-commutative99.1%
Simplified99.1%
distribute-lft-in99.2%
Applied egg-rr99.2%
if -4.1e5 < x < 5Initial program 99.9%
Taylor expanded in y around inf 87.2%
associate-/l*87.0%
distribute-rgt-out87.3%
Simplified87.3%
Taylor expanded in x around 0 86.9%
Taylor expanded in y around 0 98.7%
if 5 < x Initial program 100.0%
Taylor expanded in x around inf 97.8%
+-commutative97.8%
Simplified97.8%
Final simplification98.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -7.1e-6) (not (<= x 2.5e-60))) (* x (+ y z)) (* z 5.0)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7.1e-6) || !(x <= 2.5e-60)) {
tmp = x * (y + z);
} else {
tmp = z * 5.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) :: tmp
if ((x <= (-7.1d-6)) .or. (.not. (x <= 2.5d-60))) then
tmp = x * (y + z)
else
tmp = z * 5.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7.1e-6) || !(x <= 2.5e-60)) {
tmp = x * (y + z);
} else {
tmp = z * 5.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7.1e-6) or not (x <= 2.5e-60): tmp = x * (y + z) else: tmp = z * 5.0 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7.1e-6) || !(x <= 2.5e-60)) tmp = Float64(x * Float64(y + z)); else tmp = Float64(z * 5.0); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7.1e-6) || ~((x <= 2.5e-60))) tmp = x * (y + z); else tmp = z * 5.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7.1e-6], N[Not[LessEqual[x, 2.5e-60]], $MachinePrecision]], N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision], N[(z * 5.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.1 \cdot 10^{-6} \lor \neg \left(x \leq 2.5 \cdot 10^{-60}\right):\\
\;\;\;\;x \cdot \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot 5\\
\end{array}
\end{array}
if x < -7.0999999999999998e-6 or 2.5000000000000001e-60 < x Initial program 100.0%
Taylor expanded in x around inf 95.5%
+-commutative95.5%
Simplified95.5%
if -7.0999999999999998e-6 < x < 2.5000000000000001e-60Initial program 99.9%
Taylor expanded in x around 0 77.1%
Final simplification86.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -11.5) (not (<= x 1.6e-58))) (* x (+ y z)) (* z (+ x 5.0))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11.5) || !(x <= 1.6e-58)) {
tmp = x * (y + z);
} else {
tmp = z * (x + 5.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) :: tmp
if ((x <= (-11.5d0)) .or. (.not. (x <= 1.6d-58))) then
tmp = x * (y + z)
else
tmp = z * (x + 5.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11.5) || !(x <= 1.6e-58)) {
tmp = x * (y + z);
} else {
tmp = z * (x + 5.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11.5) or not (x <= 1.6e-58): tmp = x * (y + z) else: tmp = z * (x + 5.0) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11.5) || !(x <= 1.6e-58)) tmp = Float64(x * Float64(y + z)); else tmp = Float64(z * Float64(x + 5.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11.5) || ~((x <= 1.6e-58))) tmp = x * (y + z); else tmp = z * (x + 5.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11.5], N[Not[LessEqual[x, 1.6e-58]], $MachinePrecision]], N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision], N[(z * N[(x + 5.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11.5 \lor \neg \left(x \leq 1.6 \cdot 10^{-58}\right):\\
\;\;\;\;x \cdot \left(y + z\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x + 5\right)\\
\end{array}
\end{array}
if x < -11.5 or 1.6e-58 < x Initial program 100.0%
Taylor expanded in x around inf 95.5%
+-commutative95.5%
Simplified95.5%
if -11.5 < x < 1.6e-58Initial program 99.9%
Taylor expanded in y around 0 77.5%
distribute-rgt-in77.5%
Simplified77.5%
Final simplification86.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -9e-9) (not (<= x 4.2e-59))) (* x y) (* z 5.0)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -9e-9) || !(x <= 4.2e-59)) {
tmp = x * y;
} else {
tmp = z * 5.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) :: tmp
if ((x <= (-9d-9)) .or. (.not. (x <= 4.2d-59))) then
tmp = x * y
else
tmp = z * 5.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -9e-9) || !(x <= 4.2e-59)) {
tmp = x * y;
} else {
tmp = z * 5.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -9e-9) or not (x <= 4.2e-59): tmp = x * y else: tmp = z * 5.0 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -9e-9) || !(x <= 4.2e-59)) tmp = Float64(x * y); else tmp = Float64(z * 5.0); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -9e-9) || ~((x <= 4.2e-59))) tmp = x * y; else tmp = z * 5.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -9e-9], N[Not[LessEqual[x, 4.2e-59]], $MachinePrecision]], N[(x * y), $MachinePrecision], N[(z * 5.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-9} \lor \neg \left(x \leq 4.2 \cdot 10^{-59}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z \cdot 5\\
\end{array}
\end{array}
if x < -8.99999999999999953e-9 or 4.19999999999999993e-59 < x Initial program 100.0%
Taylor expanded in y around inf 59.9%
if -8.99999999999999953e-9 < x < 4.19999999999999993e-59Initial program 99.9%
Taylor expanded in x around 0 77.1%
Final simplification68.6%
(FPCore (x y z) :precision binary64 (+ (* z 5.0) (* x (+ y z))))
double code(double x, double y, double z) {
return (z * 5.0) + (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 * 5.0d0) + (x * (y + z))
end function
public static double code(double x, double y, double z) {
return (z * 5.0) + (x * (y + z));
}
def code(x, y, z): return (z * 5.0) + (x * (y + z))
function code(x, y, z) return Float64(Float64(z * 5.0) + Float64(x * Float64(y + z))) end
function tmp = code(x, y, z) tmp = (z * 5.0) + (x * (y + z)); end
code[x_, y_, z_] := N[(N[(z * 5.0), $MachinePrecision] + N[(x * N[(y + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot 5 + x \cdot \left(y + z\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (* z 5.0))
double code(double x, double y, double z) {
return z * 5.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * 5.0d0
end function
public static double code(double x, double y, double z) {
return z * 5.0;
}
def code(x, y, z): return z * 5.0
function code(x, y, z) return Float64(z * 5.0) end
function tmp = code(x, y, z) tmp = z * 5.0; end
code[x_, y_, z_] := N[(z * 5.0), $MachinePrecision]
\begin{array}{l}
\\
z \cdot 5
\end{array}
Initial program 99.9%
Taylor expanded in x around 0 41.7%
Final simplification41.7%
(FPCore (x y z) :precision binary64 (+ (* (+ x 5.0) z) (* x y)))
double code(double x, double y, double z) {
return ((x + 5.0) * z) + (x * 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 + 5.0d0) * z) + (x * y)
end function
public static double code(double x, double y, double z) {
return ((x + 5.0) * z) + (x * y);
}
def code(x, y, z): return ((x + 5.0) * z) + (x * y)
function code(x, y, z) return Float64(Float64(Float64(x + 5.0) * z) + Float64(x * y)) end
function tmp = code(x, y, z) tmp = ((x + 5.0) * z) + (x * y); end
code[x_, y_, z_] := N[(N[(N[(x + 5.0), $MachinePrecision] * z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + 5\right) \cdot z + x \cdot y
\end{array}
herbie shell --seed 2024130
(FPCore (x y z)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, C"
:precision binary64
:alt
(+ (* (+ x 5.0) z) (* x y))
(+ (* x (+ y z)) (* z 5.0)))