
(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 98.8%
+-commutative98.8%
*-commutative98.8%
sub-neg98.8%
distribute-lft-in98.8%
associate-+l+98.8%
*-rgt-identity98.8%
cancel-sign-sub98.8%
*-commutative98.8%
cancel-sign-sub-inv98.8%
distribute-rgt-out100.0%
cancel-sign-sub-inv100.0%
distribute-lft-out98.8%
distribute-rgt-neg-out98.8%
sub-neg98.8%
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+232)
(* x y)
(if (<= x -2.7e+147)
t_0
(if (<= x -4.6e+53)
(* x y)
(if (<= x -1.0)
t_0
(if (<= x 7e-159)
z
(if (<= x 7.6e-50)
(* x y)
(if (<= x 1.0)
z
(if (or (<= x 6e+131) (not (<= x 1e+159)))
t_0
(* x y)))))))))))
double code(double x, double y, double z) {
double t_0 = z * -x;
double tmp;
if (x <= -2.3e+232) {
tmp = x * y;
} else if (x <= -2.7e+147) {
tmp = t_0;
} else if (x <= -4.6e+53) {
tmp = x * y;
} else if (x <= -1.0) {
tmp = t_0;
} else if (x <= 7e-159) {
tmp = z;
} else if (x <= 7.6e-50) {
tmp = x * y;
} else if (x <= 1.0) {
tmp = z;
} else if ((x <= 6e+131) || !(x <= 1e+159)) {
tmp = t_0;
} else {
tmp = 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) :: t_0
real(8) :: tmp
t_0 = z * -x
if (x <= (-2.3d+232)) then
tmp = x * y
else if (x <= (-2.7d+147)) then
tmp = t_0
else if (x <= (-4.6d+53)) then
tmp = x * y
else if (x <= (-1.0d0)) then
tmp = t_0
else if (x <= 7d-159) then
tmp = z
else if (x <= 7.6d-50) then
tmp = x * y
else if (x <= 1.0d0) then
tmp = z
else if ((x <= 6d+131) .or. (.not. (x <= 1d+159))) then
tmp = t_0
else
tmp = x * y
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+232) {
tmp = x * y;
} else if (x <= -2.7e+147) {
tmp = t_0;
} else if (x <= -4.6e+53) {
tmp = x * y;
} else if (x <= -1.0) {
tmp = t_0;
} else if (x <= 7e-159) {
tmp = z;
} else if (x <= 7.6e-50) {
tmp = x * y;
} else if (x <= 1.0) {
tmp = z;
} else if ((x <= 6e+131) || !(x <= 1e+159)) {
tmp = t_0;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z): t_0 = z * -x tmp = 0 if x <= -2.3e+232: tmp = x * y elif x <= -2.7e+147: tmp = t_0 elif x <= -4.6e+53: tmp = x * y elif x <= -1.0: tmp = t_0 elif x <= 7e-159: tmp = z elif x <= 7.6e-50: tmp = x * y elif x <= 1.0: tmp = z elif (x <= 6e+131) or not (x <= 1e+159): tmp = t_0 else: tmp = x * y return tmp
function code(x, y, z) t_0 = Float64(z * Float64(-x)) tmp = 0.0 if (x <= -2.3e+232) tmp = Float64(x * y); elseif (x <= -2.7e+147) tmp = t_0; elseif (x <= -4.6e+53) tmp = Float64(x * y); elseif (x <= -1.0) tmp = t_0; elseif (x <= 7e-159) tmp = z; elseif (x <= 7.6e-50) tmp = Float64(x * y); elseif (x <= 1.0) tmp = z; elseif ((x <= 6e+131) || !(x <= 1e+159)) tmp = t_0; else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * -x; tmp = 0.0; if (x <= -2.3e+232) tmp = x * y; elseif (x <= -2.7e+147) tmp = t_0; elseif (x <= -4.6e+53) tmp = x * y; elseif (x <= -1.0) tmp = t_0; elseif (x <= 7e-159) tmp = z; elseif (x <= 7.6e-50) tmp = x * y; elseif (x <= 1.0) tmp = z; elseif ((x <= 6e+131) || ~((x <= 1e+159))) tmp = t_0; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * (-x)), $MachinePrecision]}, If[LessEqual[x, -2.3e+232], N[(x * y), $MachinePrecision], If[LessEqual[x, -2.7e+147], t$95$0, If[LessEqual[x, -4.6e+53], N[(x * y), $MachinePrecision], If[LessEqual[x, -1.0], t$95$0, If[LessEqual[x, 7e-159], z, If[LessEqual[x, 7.6e-50], N[(x * y), $MachinePrecision], If[LessEqual[x, 1.0], z, If[Or[LessEqual[x, 6e+131], N[Not[LessEqual[x, 1e+159]], $MachinePrecision]], t$95$0, N[(x * y), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(-x\right)\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{+232}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{+147}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -4.6 \cdot 10^{+53}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq -1:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-159}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{-50}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq 1:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+131} \lor \neg \left(x \leq 10^{+159}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
if x < -2.30000000000000006e232 or -2.69999999999999998e147 < x < -4.60000000000000039e53 or 7.00000000000000005e-159 < x < 7.5999999999999998e-50 or 6.0000000000000003e131 < x < 9.9999999999999993e158Initial program 100.0%
Taylor expanded in y around inf 71.4%
if -2.30000000000000006e232 < x < -2.69999999999999998e147 or -4.60000000000000039e53 < x < -1 or 1 < x < 6.0000000000000003e131 or 9.9999999999999993e158 < x Initial program 96.8%
Taylor expanded in x around inf 97.9%
mul-1-neg97.9%
sub-neg97.9%
Simplified97.9%
Taylor expanded in y around 0 68.1%
mul-1-neg68.1%
distribute-lft-neg-in68.1%
*-commutative68.1%
Simplified68.1%
if -1 < x < 7.00000000000000005e-159 or 7.5999999999999998e-50 < x < 1Initial program 100.0%
Taylor expanded in x around 0 72.2%
Final simplification70.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- y z))))
(if (<= x -1.45e-57)
t_0
(if (<= x 7.2e-160)
z
(if (<= x 7e-49) (* x y) (if (<= x 3.2e-7) z t_0))))))
double code(double x, double y, double z) {
double t_0 = x * (y - z);
double tmp;
if (x <= -1.45e-57) {
tmp = t_0;
} else if (x <= 7.2e-160) {
tmp = z;
} else if (x <= 7e-49) {
tmp = x * y;
} else if (x <= 3.2e-7) {
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 <= (-1.45d-57)) then
tmp = t_0
else if (x <= 7.2d-160) then
tmp = z
else if (x <= 7d-49) then
tmp = x * y
else if (x <= 3.2d-7) 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 <= -1.45e-57) {
tmp = t_0;
} else if (x <= 7.2e-160) {
tmp = z;
} else if (x <= 7e-49) {
tmp = x * y;
} else if (x <= 3.2e-7) {
tmp = z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (y - z) tmp = 0 if x <= -1.45e-57: tmp = t_0 elif x <= 7.2e-160: tmp = z elif x <= 7e-49: tmp = x * y elif x <= 3.2e-7: 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 <= -1.45e-57) tmp = t_0; elseif (x <= 7.2e-160) tmp = z; elseif (x <= 7e-49) tmp = Float64(x * y); elseif (x <= 3.2e-7) 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 <= -1.45e-57) tmp = t_0; elseif (x <= 7.2e-160) tmp = z; elseif (x <= 7e-49) tmp = x * y; elseif (x <= 3.2e-7) 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, -1.45e-57], t$95$0, If[LessEqual[x, 7.2e-160], z, If[LessEqual[x, 7e-49], N[(x * y), $MachinePrecision], If[LessEqual[x, 3.2e-7], z, t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y - z\right)\\
\mathbf{if}\;x \leq -1.45 \cdot 10^{-57}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-160}:\\
\;\;\;\;z\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-49}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-7}:\\
\;\;\;\;z\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -1.45000000000000013e-57 or 3.2000000000000001e-7 < x Initial program 97.9%
Taylor expanded in x around inf 96.2%
mul-1-neg96.2%
sub-neg96.2%
Simplified96.2%
if -1.45000000000000013e-57 < x < 7.1999999999999994e-160 or 7.00000000000000012e-49 < x < 3.2000000000000001e-7Initial program 100.0%
Taylor expanded in x around 0 77.9%
if 7.1999999999999994e-160 < x < 7.00000000000000012e-49Initial program 100.0%
Taylor expanded in y around inf 61.0%
Final simplification86.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -6.8e-54)
(and (not (<= x 7e-159)) (or (<= x 8.5e-50) (not (<= x 6.4e-9)))))
(* x y)
z))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6.8e-54) || (!(x <= 7e-159) && ((x <= 8.5e-50) || !(x <= 6.4e-9)))) {
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 <= (-6.8d-54)) .or. (.not. (x <= 7d-159)) .and. (x <= 8.5d-50) .or. (.not. (x <= 6.4d-9))) 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 <= -6.8e-54) || (!(x <= 7e-159) && ((x <= 8.5e-50) || !(x <= 6.4e-9)))) {
tmp = x * y;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6.8e-54) or (not (x <= 7e-159) and ((x <= 8.5e-50) or not (x <= 6.4e-9))): tmp = x * y else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6.8e-54) || (!(x <= 7e-159) && ((x <= 8.5e-50) || !(x <= 6.4e-9)))) tmp = Float64(x * y); else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6.8e-54) || (~((x <= 7e-159)) && ((x <= 8.5e-50) || ~((x <= 6.4e-9))))) tmp = x * y; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6.8e-54], And[N[Not[LessEqual[x, 7e-159]], $MachinePrecision], Or[LessEqual[x, 8.5e-50], N[Not[LessEqual[x, 6.4e-9]], $MachinePrecision]]]], N[(x * y), $MachinePrecision], z]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{-54} \lor \neg \left(x \leq 7 \cdot 10^{-159}\right) \land \left(x \leq 8.5 \cdot 10^{-50} \lor \neg \left(x \leq 6.4 \cdot 10^{-9}\right)\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if x < -6.79999999999999975e-54 or 7.00000000000000005e-159 < x < 8.50000000000000012e-50 or 6.40000000000000023e-9 < x Initial program 98.3%
Taylor expanded in y around inf 50.2%
if -6.79999999999999975e-54 < x < 7.00000000000000005e-159 or 8.50000000000000012e-50 < x < 6.40000000000000023e-9Initial program 100.0%
Taylor expanded in x around 0 77.9%
Final simplification58.2%
(FPCore (x y z) :precision binary64 (if (or (<= z -3e-15) (not (<= z 5.4e+29))) (- z (* z x)) (* x (- y z))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -3e-15) || !(z <= 5.4e+29)) {
tmp = z - (z * x);
} 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 ((z <= (-3d-15)) .or. (.not. (z <= 5.4d+29))) then
tmp = z - (z * x)
else
tmp = x * (y - z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -3e-15) || !(z <= 5.4e+29)) {
tmp = z - (z * x);
} else {
tmp = x * (y - z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -3e-15) or not (z <= 5.4e+29): tmp = z - (z * x) else: tmp = x * (y - z) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -3e-15) || !(z <= 5.4e+29)) tmp = Float64(z - Float64(z * x)); else tmp = Float64(x * Float64(y - z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -3e-15) || ~((z <= 5.4e+29))) tmp = z - (z * x); else tmp = x * (y - z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -3e-15], N[Not[LessEqual[z, 5.4e+29]], $MachinePrecision]], N[(z - N[(z * x), $MachinePrecision]), $MachinePrecision], N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{-15} \lor \neg \left(z \leq 5.4 \cdot 10^{+29}\right):\\
\;\;\;\;z - z \cdot x\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y - z\right)\\
\end{array}
\end{array}
if z < -3e-15 or 5.4e29 < z Initial program 97.4%
+-commutative97.4%
*-commutative97.4%
sub-neg97.4%
distribute-lft-in97.4%
associate-+l+97.4%
*-rgt-identity97.4%
cancel-sign-sub97.4%
*-commutative97.4%
cancel-sign-sub-inv97.4%
distribute-rgt-out100.0%
cancel-sign-sub-inv100.0%
distribute-lft-out97.4%
distribute-rgt-neg-out97.4%
sub-neg97.4%
distribute-lft-out--100.0%
Simplified100.0%
Taylor expanded in z around inf 88.8%
*-commutative88.8%
Simplified88.8%
if -3e-15 < z < 5.4e29Initial program 100.0%
Taylor expanded in x around inf 80.9%
mul-1-neg80.9%
sub-neg80.9%
Simplified80.9%
Final simplification84.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.0) (not (<= x 1.4e-6))) (* x (- y z)) (+ z (* x y))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.0) || !(x <= 1.4e-6)) {
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 <= 1.4d-6))) 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 <= 1.4e-6)) {
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 <= 1.4e-6): tmp = x * (y - z) else: tmp = z + (x * y) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.0) || !(x <= 1.4e-6)) 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 <= 1.4e-6))) 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, 1.4e-6]], $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 1.4 \cdot 10^{-6}\right):\\
\;\;\;\;x \cdot \left(y - z\right)\\
\mathbf{else}:\\
\;\;\;\;z + x \cdot y\\
\end{array}
\end{array}
if x < -1 or 1.39999999999999994e-6 < x Initial program 97.8%
Taylor expanded in x around inf 98.5%
mul-1-neg98.5%
sub-neg98.5%
Simplified98.5%
if -1 < x < 1.39999999999999994e-6Initial program 100.0%
+-commutative100.0%
*-commutative100.0%
sub-neg100.0%
distribute-lft-in100.0%
associate-+l+100.0%
*-rgt-identity100.0%
cancel-sign-sub100.0%
*-commutative100.0%
cancel-sign-sub-inv100.0%
distribute-rgt-out100.0%
cancel-sign-sub-inv100.0%
distribute-lft-out100.0%
distribute-rgt-neg-out100.0%
sub-neg100.0%
distribute-lft-out--100.0%
Simplified100.0%
Taylor expanded in z around 0 98.4%
mul-1-neg98.4%
distribute-rgt-neg-out98.4%
Simplified98.4%
Final simplification98.4%
(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 98.8%
Taylor expanded in x around 0 31.2%
Final simplification31.2%
herbie shell --seed 2023326
(FPCore (x y z)
:name "Diagrams.Backend.Rasterific:$crender from diagrams-rasterific-1.3.1.3"
:precision binary64
(+ (* x y) (* (- 1.0 x) z)))