
(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 9 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 (+ 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}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z) :precision binary64 (if (or (<= y -5.5e-74) (not (<= y 3.85e-119))) (+ x (* 6.0 (* y z))) (* x (+ 1.0 (* z -6.0)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -5.5e-74) || !(y <= 3.85e-119)) {
tmp = x + (6.0 * (y * z));
} else {
tmp = x * (1.0 + (z * -6.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 ((y <= (-5.5d-74)) .or. (.not. (y <= 3.85d-119))) then
tmp = x + (6.0d0 * (y * z))
else
tmp = x * (1.0d0 + (z * (-6.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -5.5e-74) || !(y <= 3.85e-119)) {
tmp = x + (6.0 * (y * z));
} else {
tmp = x * (1.0 + (z * -6.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -5.5e-74) or not (y <= 3.85e-119): tmp = x + (6.0 * (y * z)) else: tmp = x * (1.0 + (z * -6.0)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -5.5e-74) || !(y <= 3.85e-119)) tmp = Float64(x + Float64(6.0 * Float64(y * z))); else tmp = Float64(x * Float64(1.0 + Float64(z * -6.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -5.5e-74) || ~((y <= 3.85e-119))) tmp = x + (6.0 * (y * z)); else tmp = x * (1.0 + (z * -6.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -5.5e-74], N[Not[LessEqual[y, 3.85e-119]], $MachinePrecision]], N[(x + N[(6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 + N[(z * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{-74} \lor \neg \left(y \leq 3.85 \cdot 10^{-119}\right):\\
\;\;\;\;x + 6 \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 + z \cdot -6\right)\\
\end{array}
\end{array}
if y < -5.5000000000000001e-74 or 3.85e-119 < y Initial program 99.8%
Taylor expanded in y around inf 89.4%
if -5.5000000000000001e-74 < y < 3.85e-119Initial program 99.9%
Taylor expanded in x around inf 91.8%
Final simplification90.3%
(FPCore (x y z) :precision binary64 (if (<= y -1.02e-72) (+ x (* 6.0 (* y z))) (if (<= y 6.8e-121) (* x (+ 1.0 (* z -6.0))) (+ x (* y (* 6.0 z))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.02e-72) {
tmp = x + (6.0 * (y * z));
} else if (y <= 6.8e-121) {
tmp = x * (1.0 + (z * -6.0));
} else {
tmp = x + (y * (6.0 * 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 <= (-1.02d-72)) then
tmp = x + (6.0d0 * (y * z))
else if (y <= 6.8d-121) then
tmp = x * (1.0d0 + (z * (-6.0d0)))
else
tmp = x + (y * (6.0d0 * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1.02e-72) {
tmp = x + (6.0 * (y * z));
} else if (y <= 6.8e-121) {
tmp = x * (1.0 + (z * -6.0));
} else {
tmp = x + (y * (6.0 * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.02e-72: tmp = x + (6.0 * (y * z)) elif y <= 6.8e-121: tmp = x * (1.0 + (z * -6.0)) else: tmp = x + (y * (6.0 * z)) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.02e-72) tmp = Float64(x + Float64(6.0 * Float64(y * z))); elseif (y <= 6.8e-121) tmp = Float64(x * Float64(1.0 + Float64(z * -6.0))); else tmp = Float64(x + Float64(y * Float64(6.0 * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.02e-72) tmp = x + (6.0 * (y * z)); elseif (y <= 6.8e-121) tmp = x * (1.0 + (z * -6.0)); else tmp = x + (y * (6.0 * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.02e-72], N[(x + N[(6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e-121], N[(x * N[(1.0 + N[(z * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(6.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{-72}:\\
\;\;\;\;x + 6 \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-121}:\\
\;\;\;\;x \cdot \left(1 + z \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(6 \cdot z\right)\\
\end{array}
\end{array}
if y < -1.02e-72Initial program 99.7%
Taylor expanded in y around inf 89.3%
if -1.02e-72 < y < 6.80000000000000003e-121Initial program 99.9%
Taylor expanded in x around inf 91.8%
if 6.80000000000000003e-121 < y Initial program 99.9%
associate-*r*99.8%
*-commutative99.8%
flip--58.8%
associate-*r/55.7%
Applied egg-rr55.7%
associate-/l*58.7%
*-commutative58.7%
associate-/l*58.8%
difference-of-squares64.7%
associate-/r*99.7%
*-inverses99.7%
Simplified99.7%
Taylor expanded in y around inf 89.5%
*-commutative89.5%
associate-*r*89.5%
*-commutative89.5%
Simplified89.5%
Final simplification90.3%
(FPCore (x y z) :precision binary64 (if (<= y -6e-74) (+ x (* 6.0 (* y z))) (if (<= y 3.85e-119) (+ x (* z (* x -6.0))) (+ x (* y (* 6.0 z))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -6e-74) {
tmp = x + (6.0 * (y * z));
} else if (y <= 3.85e-119) {
tmp = x + (z * (x * -6.0));
} else {
tmp = x + (y * (6.0 * 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 <= (-6d-74)) then
tmp = x + (6.0d0 * (y * z))
else if (y <= 3.85d-119) then
tmp = x + (z * (x * (-6.0d0)))
else
tmp = x + (y * (6.0d0 * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -6e-74) {
tmp = x + (6.0 * (y * z));
} else if (y <= 3.85e-119) {
tmp = x + (z * (x * -6.0));
} else {
tmp = x + (y * (6.0 * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -6e-74: tmp = x + (6.0 * (y * z)) elif y <= 3.85e-119: tmp = x + (z * (x * -6.0)) else: tmp = x + (y * (6.0 * z)) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -6e-74) tmp = Float64(x + Float64(6.0 * Float64(y * z))); elseif (y <= 3.85e-119) tmp = Float64(x + Float64(z * Float64(x * -6.0))); else tmp = Float64(x + Float64(y * Float64(6.0 * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -6e-74) tmp = x + (6.0 * (y * z)); elseif (y <= 3.85e-119) tmp = x + (z * (x * -6.0)); else tmp = x + (y * (6.0 * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -6e-74], N[(x + N[(6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.85e-119], N[(x + N[(z * N[(x * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(6.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{-74}:\\
\;\;\;\;x + 6 \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 3.85 \cdot 10^{-119}:\\
\;\;\;\;x + z \cdot \left(x \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(6 \cdot z\right)\\
\end{array}
\end{array}
if y < -6.00000000000000014e-74Initial program 99.7%
Taylor expanded in y around inf 89.3%
if -6.00000000000000014e-74 < y < 3.85e-119Initial program 99.9%
Taylor expanded in y around 0 92.0%
if 3.85e-119 < y Initial program 99.9%
associate-*r*99.8%
*-commutative99.8%
flip--58.8%
associate-*r/55.7%
Applied egg-rr55.7%
associate-/l*58.7%
*-commutative58.7%
associate-/l*58.8%
difference-of-squares64.7%
associate-/r*99.7%
*-inverses99.7%
Simplified99.7%
Taylor expanded in y around inf 89.5%
*-commutative89.5%
associate-*r*89.5%
*-commutative89.5%
Simplified89.5%
Final simplification90.3%
(FPCore (x y z) :precision binary64 (if (<= y -1.7e-76) (+ x (* 6.0 (* y z))) (if (<= y 3.3e-119) (+ x (* z (* x -6.0))) (+ x (* z (* y 6.0))))))
double code(double x, double y, double z) {
double tmp;
if (y <= -1.7e-76) {
tmp = x + (6.0 * (y * z));
} else if (y <= 3.3e-119) {
tmp = x + (z * (x * -6.0));
} else {
tmp = x + (z * (y * 6.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 (y <= (-1.7d-76)) then
tmp = x + (6.0d0 * (y * z))
else if (y <= 3.3d-119) then
tmp = x + (z * (x * (-6.0d0)))
else
tmp = x + (z * (y * 6.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -1.7e-76) {
tmp = x + (6.0 * (y * z));
} else if (y <= 3.3e-119) {
tmp = x + (z * (x * -6.0));
} else {
tmp = x + (z * (y * 6.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -1.7e-76: tmp = x + (6.0 * (y * z)) elif y <= 3.3e-119: tmp = x + (z * (x * -6.0)) else: tmp = x + (z * (y * 6.0)) return tmp
function code(x, y, z) tmp = 0.0 if (y <= -1.7e-76) tmp = Float64(x + Float64(6.0 * Float64(y * z))); elseif (y <= 3.3e-119) tmp = Float64(x + Float64(z * Float64(x * -6.0))); else tmp = Float64(x + Float64(z * Float64(y * 6.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -1.7e-76) tmp = x + (6.0 * (y * z)); elseif (y <= 3.3e-119) tmp = x + (z * (x * -6.0)); else tmp = x + (z * (y * 6.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -1.7e-76], N[(x + N[(6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-119], N[(x + N[(z * N[(x * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{-76}:\\
\;\;\;\;x + 6 \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-119}:\\
\;\;\;\;x + z \cdot \left(x \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \left(y \cdot 6\right)\\
\end{array}
\end{array}
if y < -1.7e-76Initial program 99.7%
Taylor expanded in y around inf 89.3%
if -1.7e-76 < y < 3.30000000000000008e-119Initial program 99.9%
Taylor expanded in y around 0 92.0%
if 3.30000000000000008e-119 < y Initial program 99.9%
Taylor expanded in y around inf 89.5%
associate-*r*89.6%
Simplified89.6%
Final simplification90.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.4e-16) (not (<= z 3700.0))) (* -6.0 (* x z)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.4e-16) || !(z <= 3700.0)) {
tmp = -6.0 * (x * z);
} else {
tmp = x;
}
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 <= (-2.4d-16)) .or. (.not. (z <= 3700.0d0))) then
tmp = (-6.0d0) * (x * z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.4e-16) || !(z <= 3700.0)) {
tmp = -6.0 * (x * z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.4e-16) or not (z <= 3700.0): tmp = -6.0 * (x * z) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.4e-16) || !(z <= 3700.0)) tmp = Float64(-6.0 * Float64(x * z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.4e-16) || ~((z <= 3700.0))) tmp = -6.0 * (x * z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.4e-16], N[Not[LessEqual[z, 3700.0]], $MachinePrecision]], N[(-6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-16} \lor \neg \left(z \leq 3700\right):\\
\;\;\;\;-6 \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.40000000000000005e-16 or 3700 < z Initial program 99.8%
Taylor expanded in x around inf 54.1%
Taylor expanded in z around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in z around 0 52.2%
if -2.40000000000000005e-16 < z < 3700Initial program 99.9%
Taylor expanded in z around 0 71.5%
Final simplification62.9%
(FPCore (x y z) :precision binary64 (if (or (<= z -2.4e-16) (not (<= z 3700.0))) (* z (* x -6.0)) x))
double code(double x, double y, double z) {
double tmp;
if ((z <= -2.4e-16) || !(z <= 3700.0)) {
tmp = z * (x * -6.0);
} else {
tmp = x;
}
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 <= (-2.4d-16)) .or. (.not. (z <= 3700.0d0))) then
tmp = z * (x * (-6.0d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -2.4e-16) || !(z <= 3700.0)) {
tmp = z * (x * -6.0);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -2.4e-16) or not (z <= 3700.0): tmp = z * (x * -6.0) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -2.4e-16) || !(z <= 3700.0)) tmp = Float64(z * Float64(x * -6.0)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -2.4e-16) || ~((z <= 3700.0))) tmp = z * (x * -6.0); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -2.4e-16], N[Not[LessEqual[z, 3700.0]], $MachinePrecision]], N[(z * N[(x * -6.0), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-16} \lor \neg \left(z \leq 3700\right):\\
\;\;\;\;z \cdot \left(x \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.40000000000000005e-16 or 3700 < z Initial program 99.8%
Taylor expanded in x around inf 54.1%
Taylor expanded in z around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in z around 0 52.2%
*-commutative52.2%
associate-*r*52.2%
Simplified52.2%
if -2.40000000000000005e-16 < z < 3700Initial program 99.9%
Taylor expanded in z around 0 71.5%
Final simplification62.9%
(FPCore (x y z) :precision binary64 (* x (+ 1.0 (* z -6.0))))
double code(double x, double y, double z) {
return x * (1.0 + (z * -6.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 * (1.0d0 + (z * (-6.0d0)))
end function
public static double code(double x, double y, double z) {
return x * (1.0 + (z * -6.0));
}
def code(x, y, z): return x * (1.0 + (z * -6.0))
function code(x, y, z) return Float64(x * Float64(1.0 + Float64(z * -6.0))) end
function tmp = code(x, y, z) tmp = x * (1.0 + (z * -6.0)); end
code[x_, y_, z_] := N[(x * N[(1.0 + N[(z * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 + z \cdot -6\right)
\end{array}
Initial program 99.8%
Taylor expanded in x around inf 63.8%
Final simplification63.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 41.2%
Final simplification41.2%
(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 2023238
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, E"
:precision binary64
:herbie-target
(- x (* (* 6.0 z) (- x y)))
(+ x (* (* (- y x) 6.0) z)))