
(FPCore (x y z) :precision binary64 (+ x (* (* (- y x) 6.0) z)))
double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * 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 - x) * 6.0d0) * z)
end function
public static double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * z);
}
def code(x, y, z): return x + (((y - x) * 6.0) * z)
function code(x, y, z) return Float64(x + Float64(Float64(Float64(y - x) * 6.0) * z)) end
function tmp = code(x, y, z) tmp = x + (((y - x) * 6.0) * z); end
code[x_, y_, z_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\left(y - x\right) \cdot 6\right) \cdot z
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ x (* (* (- y x) 6.0) z)))
double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * 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 - x) * 6.0d0) * z)
end function
public static double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * z);
}
def code(x, y, z): return x + (((y - x) * 6.0) * z)
function code(x, y, z) return Float64(x + Float64(Float64(Float64(y - x) * 6.0) * z)) end
function tmp = code(x, y, z) tmp = x + (((y - x) * 6.0) * z); end
code[x_, y_, z_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\left(y - x\right) \cdot 6\right) \cdot z
\end{array}
(FPCore (x y z) :precision binary64 (fma (fma y 6.0 (* -6.0 x)) z x))
double code(double x, double y, double z) {
return fma(fma(y, 6.0, (-6.0 * x)), z, x);
}
function code(x, y, z) return fma(fma(y, 6.0, Float64(-6.0 * x)), z, x) end
code[x_, y_, z_] := N[(N[(y * 6.0 + N[(-6.0 * x), $MachinePrecision]), $MachinePrecision] * z + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\mathsf{fma}\left(y, 6, -6 \cdot x\right), z, x\right)
\end{array}
Initial program 99.8%
*-commutativeN/A
sub-negN/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
neg-mul-1N/A
associate-*r*N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval99.8
Applied egg-rr99.8%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6499.8
Applied egg-rr99.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (* -6.0 z))))
(if (<= z -0.17)
t_0
(if (<= z 4.9e-61) x (if (<= z 5.9e+60) (* y (* 6.0 z)) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (-6.0 * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 4.9e-61) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = y * (6.0 * 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 * ((-6.0d0) * z)
if (z <= (-0.17d0)) then
tmp = t_0
else if (z <= 4.9d-61) then
tmp = x
else if (z <= 5.9d+60) then
tmp = y * (6.0d0 * 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 * (-6.0 * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 4.9e-61) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = y * (6.0 * z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (-6.0 * z) tmp = 0 if z <= -0.17: tmp = t_0 elif z <= 4.9e-61: tmp = x elif z <= 5.9e+60: tmp = y * (6.0 * z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(-6.0 * z)) tmp = 0.0 if (z <= -0.17) tmp = t_0; elseif (z <= 4.9e-61) tmp = x; elseif (z <= 5.9e+60) tmp = Float64(y * Float64(6.0 * z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (-6.0 * z); tmp = 0.0; if (z <= -0.17) tmp = t_0; elseif (z <= 4.9e-61) tmp = x; elseif (z <= 5.9e+60) tmp = y * (6.0 * z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(-6.0 * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.17], t$95$0, If[LessEqual[z, 4.9e-61], x, If[LessEqual[z, 5.9e+60], N[(y * N[(6.0 * z), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(-6 \cdot z\right)\\
\mathbf{if}\;z \leq -0.17:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-61}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -0.170000000000000012 or 5.9000000000000002e60 < z Initial program 99.7%
Taylor expanded in z around inf
associate-*r*N/A
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-out--N/A
distribute-lft-out--N/A
neg-mul-1N/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
*-lft-identityN/A
*-inversesN/A
associate-*l/N/A
associate-*r/N/A
associate-*r/N/A
*-rgt-identityN/A
Simplified99.8%
Taylor expanded in x around inf
Simplified64.3%
if -0.170000000000000012 < z < 4.90000000000000002e-61Initial program 99.9%
Taylor expanded in z around 0
Simplified77.5%
if 4.90000000000000002e-61 < z < 5.9000000000000002e60Initial program 99.6%
*-commutativeN/A
sub-negN/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
neg-mul-1N/A
associate-*r*N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval99.6
Applied egg-rr99.6%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6499.6
Applied egg-rr99.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.6
Simplified63.6%
Final simplification69.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (* -6.0 x) z)))
(if (<= z -0.17)
t_0
(if (<= z 2.7e-60) x (if (<= z 5.9e+60) (* y (* 6.0 z)) t_0)))))
double code(double x, double y, double z) {
double t_0 = (-6.0 * x) * z;
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 2.7e-60) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = y * (6.0 * 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 = ((-6.0d0) * x) * z
if (z <= (-0.17d0)) then
tmp = t_0
else if (z <= 2.7d-60) then
tmp = x
else if (z <= 5.9d+60) then
tmp = y * (6.0d0 * z)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (-6.0 * x) * z;
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 2.7e-60) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = y * (6.0 * z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (-6.0 * x) * z tmp = 0 if z <= -0.17: tmp = t_0 elif z <= 2.7e-60: tmp = x elif z <= 5.9e+60: tmp = y * (6.0 * z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(-6.0 * x) * z) tmp = 0.0 if (z <= -0.17) tmp = t_0; elseif (z <= 2.7e-60) tmp = x; elseif (z <= 5.9e+60) tmp = Float64(y * Float64(6.0 * z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (-6.0 * x) * z; tmp = 0.0; if (z <= -0.17) tmp = t_0; elseif (z <= 2.7e-60) tmp = x; elseif (z <= 5.9e+60) tmp = y * (6.0 * z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-6.0 * x), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -0.17], t$95$0, If[LessEqual[z, 2.7e-60], x, If[LessEqual[z, 5.9e+60], N[(y * N[(6.0 * z), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(-6 \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -0.17:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-60}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -0.170000000000000012 or 5.9000000000000002e60 < z Initial program 99.7%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6464.3
Simplified64.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
*-lowering-*.f6464.1
Simplified64.1%
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.2
Applied egg-rr64.2%
if -0.170000000000000012 < z < 2.7e-60Initial program 99.9%
Taylor expanded in z around 0
Simplified77.5%
if 2.7e-60 < z < 5.9000000000000002e60Initial program 99.6%
*-commutativeN/A
sub-negN/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
neg-mul-1N/A
associate-*r*N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval99.6
Applied egg-rr99.6%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6499.6
Applied egg-rr99.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.6
Simplified63.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -6.0 (* x z))))
(if (<= z -0.17)
t_0
(if (<= z 2.6e-60) x (if (<= z 5.9e+60) (* y (* 6.0 z)) t_0)))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (x * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 2.6e-60) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = y * (6.0 * 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 = (-6.0d0) * (x * z)
if (z <= (-0.17d0)) then
tmp = t_0
else if (z <= 2.6d-60) then
tmp = x
else if (z <= 5.9d+60) then
tmp = y * (6.0d0 * z)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (x * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 2.6e-60) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = y * (6.0 * z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (x * z) tmp = 0 if z <= -0.17: tmp = t_0 elif z <= 2.6e-60: tmp = x elif z <= 5.9e+60: tmp = y * (6.0 * z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(x * z)) tmp = 0.0 if (z <= -0.17) tmp = t_0; elseif (z <= 2.6e-60) tmp = x; elseif (z <= 5.9e+60) tmp = Float64(y * Float64(6.0 * z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (x * z); tmp = 0.0; if (z <= -0.17) tmp = t_0; elseif (z <= 2.6e-60) tmp = x; elseif (z <= 5.9e+60) tmp = y * (6.0 * z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.17], t$95$0, If[LessEqual[z, 2.6e-60], x, If[LessEqual[z, 5.9e+60], N[(y * N[(6.0 * z), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -0.17:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-60}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -0.170000000000000012 or 5.9000000000000002e60 < z Initial program 99.7%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6464.3
Simplified64.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
*-lowering-*.f6464.1
Simplified64.1%
if -0.170000000000000012 < z < 2.5999999999999998e-60Initial program 99.9%
Taylor expanded in z around 0
Simplified77.5%
if 2.5999999999999998e-60 < z < 5.9000000000000002e60Initial program 99.6%
*-commutativeN/A
sub-negN/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
neg-mul-1N/A
associate-*r*N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval99.6
Applied egg-rr99.6%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6499.6
Applied egg-rr99.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.6
Simplified63.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -6.0 (* x z))))
(if (<= z -0.17)
t_0
(if (<= z 2.7e-60) x (if (<= z 5.9e+60) (* 6.0 (* y z)) t_0)))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (x * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 2.7e-60) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = 6.0 * (y * 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 = (-6.0d0) * (x * z)
if (z <= (-0.17d0)) then
tmp = t_0
else if (z <= 2.7d-60) then
tmp = x
else if (z <= 5.9d+60) then
tmp = 6.0d0 * (y * z)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (x * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 2.7e-60) {
tmp = x;
} else if (z <= 5.9e+60) {
tmp = 6.0 * (y * z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (x * z) tmp = 0 if z <= -0.17: tmp = t_0 elif z <= 2.7e-60: tmp = x elif z <= 5.9e+60: tmp = 6.0 * (y * z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(x * z)) tmp = 0.0 if (z <= -0.17) tmp = t_0; elseif (z <= 2.7e-60) tmp = x; elseif (z <= 5.9e+60) tmp = Float64(6.0 * Float64(y * z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (x * z); tmp = 0.0; if (z <= -0.17) tmp = t_0; elseif (z <= 2.7e-60) tmp = x; elseif (z <= 5.9e+60) tmp = 6.0 * (y * z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.17], t$95$0, If[LessEqual[z, 2.7e-60], x, If[LessEqual[z, 5.9e+60], N[(6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -0.17:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-60}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{+60}:\\
\;\;\;\;6 \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -0.170000000000000012 or 5.9000000000000002e60 < z Initial program 99.7%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6464.3
Simplified64.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
*-lowering-*.f6464.1
Simplified64.1%
if -0.170000000000000012 < z < 2.7e-60Initial program 99.9%
Taylor expanded in z around 0
Simplified77.5%
if 2.7e-60 < z < 5.9000000000000002e60Initial program 99.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6463.6
Simplified63.6%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* (* -6.0 z) (- x y)))) (if (<= z -16500.0) t_0 (if (<= z 0.165) (+ x (* 6.0 (* y z))) t_0))))
double code(double x, double y, double z) {
double t_0 = (-6.0 * z) * (x - y);
double tmp;
if (z <= -16500.0) {
tmp = t_0;
} else if (z <= 0.165) {
tmp = x + (6.0 * (y * 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 = ((-6.0d0) * z) * (x - y)
if (z <= (-16500.0d0)) then
tmp = t_0
else if (z <= 0.165d0) then
tmp = x + (6.0d0 * (y * z))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (-6.0 * z) * (x - y);
double tmp;
if (z <= -16500.0) {
tmp = t_0;
} else if (z <= 0.165) {
tmp = x + (6.0 * (y * z));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (-6.0 * z) * (x - y) tmp = 0 if z <= -16500.0: tmp = t_0 elif z <= 0.165: tmp = x + (6.0 * (y * z)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(-6.0 * z) * Float64(x - y)) tmp = 0.0 if (z <= -16500.0) tmp = t_0; elseif (z <= 0.165) tmp = Float64(x + Float64(6.0 * Float64(y * z))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (-6.0 * z) * (x - y); tmp = 0.0; if (z <= -16500.0) tmp = t_0; elseif (z <= 0.165) tmp = x + (6.0 * (y * z)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-6.0 * z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -16500.0], t$95$0, If[LessEqual[z, 0.165], N[(x + N[(6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(-6 \cdot z\right) \cdot \left(x - y\right)\\
\mathbf{if}\;z \leq -16500:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.165:\\
\;\;\;\;x + 6 \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -16500 or 0.165000000000000008 < z Initial program 99.7%
Taylor expanded in z around inf
associate-*r*N/A
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-out--N/A
distribute-lft-out--N/A
neg-mul-1N/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
*-lft-identityN/A
*-inversesN/A
associate-*l/N/A
associate-*r/N/A
associate-*r/N/A
*-rgt-identityN/A
Simplified99.8%
if -16500 < z < 0.165000000000000008Initial program 99.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6498.9
Simplified98.9%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (* -6.0 z) (- x y))))
(if (<= z -16600000000000.0)
t_0
(if (<= z 0.165) (fma (* y 6.0) z x) t_0))))
double code(double x, double y, double z) {
double t_0 = (-6.0 * z) * (x - y);
double tmp;
if (z <= -16600000000000.0) {
tmp = t_0;
} else if (z <= 0.165) {
tmp = fma((y * 6.0), z, x);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(-6.0 * z) * Float64(x - y)) tmp = 0.0 if (z <= -16600000000000.0) tmp = t_0; elseif (z <= 0.165) tmp = fma(Float64(y * 6.0), z, x); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-6.0 * z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -16600000000000.0], t$95$0, If[LessEqual[z, 0.165], N[(N[(y * 6.0), $MachinePrecision] * z + x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(-6 \cdot z\right) \cdot \left(x - y\right)\\
\mathbf{if}\;z \leq -16600000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.165:\\
\;\;\;\;\mathsf{fma}\left(y \cdot 6, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -1.66e13 or 0.165000000000000008 < z Initial program 99.7%
Taylor expanded in z around inf
associate-*r*N/A
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-out--N/A
distribute-lft-out--N/A
neg-mul-1N/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
*-lft-identityN/A
*-inversesN/A
associate-*l/N/A
associate-*r/N/A
associate-*r/N/A
*-rgt-identityN/A
Simplified99.8%
if -1.66e13 < z < 0.165000000000000008Initial program 99.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6498.9
Simplified98.9%
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6498.9
Applied egg-rr98.9%
Final simplification99.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 6.0 (* z (- y x)))))
(if (<= z -16600000000000.0)
t_0
(if (<= z 0.165) (fma (* y 6.0) z x) t_0))))
double code(double x, double y, double z) {
double t_0 = 6.0 * (z * (y - x));
double tmp;
if (z <= -16600000000000.0) {
tmp = t_0;
} else if (z <= 0.165) {
tmp = fma((y * 6.0), z, x);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(6.0 * Float64(z * Float64(y - x))) tmp = 0.0 if (z <= -16600000000000.0) tmp = t_0; elseif (z <= 0.165) tmp = fma(Float64(y * 6.0), z, x); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(6.0 * N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -16600000000000.0], t$95$0, If[LessEqual[z, 0.165], N[(N[(y * 6.0), $MachinePrecision] * z + x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 6 \cdot \left(z \cdot \left(y - x\right)\right)\\
\mathbf{if}\;z \leq -16600000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.165:\\
\;\;\;\;\mathsf{fma}\left(y \cdot 6, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -1.66e13 or 0.165000000000000008 < z Initial program 99.7%
*-commutativeN/A
sub-negN/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
neg-mul-1N/A
associate-*r*N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval99.7
Applied egg-rr99.7%
Taylor expanded in z around inf
+-commutativeN/A
metadata-evalN/A
distribute-lft-neg-inN/A
unsub-negN/A
distribute-lft-out--N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f6499.6
Simplified99.6%
if -1.66e13 < z < 0.165000000000000008Initial program 99.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6498.9
Simplified98.9%
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6498.9
Applied egg-rr98.9%
(FPCore (x y z) :precision binary64 (let* ((t_0 (fma (* -6.0 z) x x))) (if (<= x -6.8e-91) t_0 (if (<= x 7.5e+51) (fma (* y 6.0) z x) t_0))))
double code(double x, double y, double z) {
double t_0 = fma((-6.0 * z), x, x);
double tmp;
if (x <= -6.8e-91) {
tmp = t_0;
} else if (x <= 7.5e+51) {
tmp = fma((y * 6.0), z, x);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = fma(Float64(-6.0 * z), x, x) tmp = 0.0 if (x <= -6.8e-91) tmp = t_0; elseif (x <= 7.5e+51) tmp = fma(Float64(y * 6.0), z, x); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(-6.0 * z), $MachinePrecision] * x + x), $MachinePrecision]}, If[LessEqual[x, -6.8e-91], t$95$0, If[LessEqual[x, 7.5e+51], N[(N[(y * 6.0), $MachinePrecision] * z + x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(-6 \cdot z, x, x\right)\\
\mathbf{if}\;x \leq -6.8 \cdot 10^{-91}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot 6, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -6.80000000000000053e-91 or 7.4999999999999999e51 < x Initial program 99.8%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6489.0
Simplified89.0%
*-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6489.2
Applied egg-rr89.2%
if -6.80000000000000053e-91 < x < 7.4999999999999999e51Initial program 99.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6480.4
Simplified80.4%
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6480.5
Applied egg-rr80.5%
Final simplification85.1%
(FPCore (x y z) :precision binary64 (let* ((t_0 (fma z (* -6.0 x) x))) (if (<= x -1.65e-90) t_0 (if (<= x 8e+51) (fma (* y 6.0) z x) t_0))))
double code(double x, double y, double z) {
double t_0 = fma(z, (-6.0 * x), x);
double tmp;
if (x <= -1.65e-90) {
tmp = t_0;
} else if (x <= 8e+51) {
tmp = fma((y * 6.0), z, x);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = fma(z, Float64(-6.0 * x), x) tmp = 0.0 if (x <= -1.65e-90) tmp = t_0; elseif (x <= 8e+51) tmp = fma(Float64(y * 6.0), z, x); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(-6.0 * x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[x, -1.65e-90], t$95$0, If[LessEqual[x, 8e+51], N[(N[(y * 6.0), $MachinePrecision] * z + x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(z, -6 \cdot x, x\right)\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{-90}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot 6, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -1.65e-90 or 8e51 < x Initial program 99.8%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6489.0
Simplified89.0%
if -1.65e-90 < x < 8e51Initial program 99.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6480.4
Simplified80.4%
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6480.5
Applied egg-rr80.5%
Final simplification85.0%
(FPCore (x y z) :precision binary64 (let* ((t_0 (fma z (* -6.0 x) x))) (if (<= x -4.5e-92) t_0 (if (<= x 8.2e+51) (fma (* 6.0 z) y x) t_0))))
double code(double x, double y, double z) {
double t_0 = fma(z, (-6.0 * x), x);
double tmp;
if (x <= -4.5e-92) {
tmp = t_0;
} else if (x <= 8.2e+51) {
tmp = fma((6.0 * z), y, x);
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = fma(z, Float64(-6.0 * x), x) tmp = 0.0 if (x <= -4.5e-92) tmp = t_0; elseif (x <= 8.2e+51) tmp = fma(Float64(6.0 * z), y, x); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(-6.0 * x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[x, -4.5e-92], t$95$0, If[LessEqual[x, 8.2e+51], N[(N[(6.0 * z), $MachinePrecision] * y + x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \mathsf{fma}\left(z, -6 \cdot x, x\right)\\
\mathbf{if}\;x \leq -4.5 \cdot 10^{-92}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(6 \cdot z, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.5e-92 or 8.20000000000000021e51 < x Initial program 99.8%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6489.0
Simplified89.0%
if -4.5e-92 < x < 8.20000000000000021e51Initial program 99.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6480.4
Simplified80.4%
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6480.4
Applied egg-rr80.4%
Final simplification85.0%
(FPCore (x y z) :precision binary64 (if (<= y -2.85e+135) (* z (* y 6.0)) (if (<= y 5.8e+169) (fma z (* -6.0 x) x) (* y (* 6.0 z)))))
double code(double x, double y, double z) {
double tmp;
if (y <= -2.85e+135) {
tmp = z * (y * 6.0);
} else if (y <= 5.8e+169) {
tmp = fma(z, (-6.0 * x), x);
} else {
tmp = y * (6.0 * z);
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (y <= -2.85e+135) tmp = Float64(z * Float64(y * 6.0)); elseif (y <= 5.8e+169) tmp = fma(z, Float64(-6.0 * x), x); else tmp = Float64(y * Float64(6.0 * z)); end return tmp end
code[x_, y_, z_] := If[LessEqual[y, -2.85e+135], N[(z * N[(y * 6.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+169], N[(z * N[(-6.0 * x), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(6.0 * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.85 \cdot 10^{+135}:\\
\;\;\;\;z \cdot \left(y \cdot 6\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+169}:\\
\;\;\;\;\mathsf{fma}\left(z, -6 \cdot x, x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(6 \cdot z\right)\\
\end{array}
\end{array}
if y < -2.8500000000000001e135Initial program 99.8%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6483.8
Simplified83.8%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6483.8
Applied egg-rr83.8%
if -2.8500000000000001e135 < y < 5.8000000000000001e169Initial program 99.8%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6479.5
Simplified79.5%
if 5.8000000000000001e169 < y Initial program 99.9%
*-commutativeN/A
sub-negN/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
neg-mul-1N/A
associate-*r*N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval99.9
Applied egg-rr99.9%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6499.9
Applied egg-rr99.9%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.7
Simplified63.7%
Final simplification78.1%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* -6.0 (* x z)))) (if (<= z -0.17) t_0 (if (<= z 0.165) x t_0))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (x * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 0.165) {
tmp = x;
} 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 = (-6.0d0) * (x * z)
if (z <= (-0.17d0)) then
tmp = t_0
else if (z <= 0.165d0) then
tmp = x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (x * z);
double tmp;
if (z <= -0.17) {
tmp = t_0;
} else if (z <= 0.165) {
tmp = x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (x * z) tmp = 0 if z <= -0.17: tmp = t_0 elif z <= 0.165: tmp = x else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(x * z)) tmp = 0.0 if (z <= -0.17) tmp = t_0; elseif (z <= 0.165) tmp = x; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (x * z); tmp = 0.0; if (z <= -0.17) tmp = t_0; elseif (z <= 0.165) tmp = x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.17], t$95$0, If[LessEqual[z, 0.165], x, t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -0.17:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.165:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -0.170000000000000012 or 0.165000000000000008 < z Initial program 99.7%
Taylor expanded in x around inf
+-commutativeN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
*-lowering-*.f6463.1
Simplified63.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
*-lowering-*.f6463.0
Simplified63.0%
if -0.170000000000000012 < z < 0.165000000000000008Initial program 99.9%
Taylor expanded in z around 0
Simplified72.8%
(FPCore (x y z) :precision binary64 (+ x (* z (* 6.0 (- y x)))))
double code(double x, double y, double z) {
return x + (z * (6.0 * (y - x)));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + (z * (6.0d0 * (y - x)))
end function
public static double code(double x, double y, double z) {
return x + (z * (6.0 * (y - x)));
}
def code(x, y, z): return x + (z * (6.0 * (y - x)))
function code(x, y, z) return Float64(x + Float64(z * Float64(6.0 * Float64(y - x)))) end
function tmp = code(x, y, z) tmp = x + (z * (6.0 * (y - x))); end
code[x_, y_, z_] := N[(x + N[(z * N[(6.0 * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + z \cdot \left(6 \cdot \left(y - x\right)\right)
\end{array}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z) :precision binary64 (fma (* z (- y x)) 6.0 x))
double code(double x, double y, double z) {
return fma((z * (y - x)), 6.0, x);
}
function code(x, y, z) return fma(Float64(z * Float64(y - x)), 6.0, x) end
code[x_, y_, z_] := N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] * 6.0 + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z \cdot \left(y - x\right), 6, x\right)
\end{array}
Initial program 99.8%
+-commutativeN/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
--lowering--.f6499.8
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 99.8%
Taylor expanded in z around 0
Simplified35.8%
(FPCore (x y z) :precision binary64 (- x (* (* 6.0 z) (- x y))))
double code(double x, double y, double z) {
return x - ((6.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 - ((6.0d0 * z) * (x - y))
end function
public static double code(double x, double y, double z) {
return x - ((6.0 * z) * (x - y));
}
def code(x, y, z): return x - ((6.0 * z) * (x - y))
function code(x, y, z) return Float64(x - Float64(Float64(6.0 * z) * Float64(x - y))) end
function tmp = code(x, y, z) tmp = x - ((6.0 * z) * (x - y)); end
code[x_, y_, z_] := N[(x - N[(N[(6.0 * z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \left(6 \cdot z\right) \cdot \left(x - y\right)
\end{array}
herbie shell --seed 2024199
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, E"
:precision binary64
:alt
(! :herbie-platform default (- x (* (* 6 z) (- x y))))
(+ x (* (* (- y x) 6.0) z)))