
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
double code(double x, double y, double z) {
return x * (1.0 - (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 * (1.0d0 - (y * z))
end function
public static double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
def code(x, y, z): return x * (1.0 - (y * z))
function code(x, y, z) return Float64(x * Float64(1.0 - Float64(y * z))) end
function tmp = code(x, y, z) tmp = x * (1.0 - (y * z)); end
code[x_, y_, z_] := N[(x * N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 - y \cdot z\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
double code(double x, double y, double z) {
return x * (1.0 - (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 * (1.0d0 - (y * z))
end function
public static double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
def code(x, y, z): return x * (1.0 - (y * z))
function code(x, y, z) return Float64(x * Float64(1.0 - Float64(y * z))) end
function tmp = code(x, y, z) tmp = x * (1.0 - (y * z)); end
code[x_, y_, z_] := N[(x * N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(1 - y \cdot z\right)
\end{array}
NOTE: x, y, and z should be sorted in increasing order before calling this function. (FPCore (x y z) :precision binary64 (if (<= (* y z) (- INFINITY)) (* (- y) (* x z)) (if (<= (* y z) 5e+218) (* x (- 1.0 (* y z))) (* (* (- y) x) z))))
assert(x < y && y < z);
double code(double x, double y, double z) {
double tmp;
if ((y * z) <= -((double) INFINITY)) {
tmp = -y * (x * z);
} else if ((y * z) <= 5e+218) {
tmp = x * (1.0 - (y * z));
} else {
tmp = (-y * x) * z;
}
return tmp;
}
assert x < y && y < z;
public static double code(double x, double y, double z) {
double tmp;
if ((y * z) <= -Double.POSITIVE_INFINITY) {
tmp = -y * (x * z);
} else if ((y * z) <= 5e+218) {
tmp = x * (1.0 - (y * z));
} else {
tmp = (-y * x) * z;
}
return tmp;
}
[x, y, z] = sort([x, y, z]) def code(x, y, z): tmp = 0 if (y * z) <= -math.inf: tmp = -y * (x * z) elif (y * z) <= 5e+218: tmp = x * (1.0 - (y * z)) else: tmp = (-y * x) * z return tmp
x, y, z = sort([x, y, z]) function code(x, y, z) tmp = 0.0 if (Float64(y * z) <= Float64(-Inf)) tmp = Float64(Float64(-y) * Float64(x * z)); elseif (Float64(y * z) <= 5e+218) tmp = Float64(x * Float64(1.0 - Float64(y * z))); else tmp = Float64(Float64(Float64(-y) * x) * z); end return tmp end
x, y, z = num2cell(sort([x, y, z])){:}
function tmp_2 = code(x, y, z)
tmp = 0.0;
if ((y * z) <= -Inf)
tmp = -y * (x * z);
elseif ((y * z) <= 5e+218)
tmp = x * (1.0 - (y * z));
else
tmp = (-y * x) * z;
end
tmp_2 = tmp;
end
NOTE: x, y, and z should be sorted in increasing order before calling this function. code[x_, y_, z_] := If[LessEqual[N[(y * z), $MachinePrecision], (-Infinity)], N[((-y) * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(y * z), $MachinePrecision], 5e+218], N[(x * N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * x), $MachinePrecision] * z), $MachinePrecision]]]
\begin{array}{l}
[x, y, z] = \mathsf{sort}([x, y, z])\\
\\
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -\infty:\\
\;\;\;\;\left(-y\right) \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \cdot z \leq 5 \cdot 10^{+218}:\\
\;\;\;\;x \cdot \left(1 - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y\right) \cdot x\right) \cdot z\\
\end{array}
\end{array}
if (*.f64 y z) < -inf.0Initial program 66.2%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6499.8
Applied rewrites99.8%
Taylor expanded in y around inf
mul-1-negN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6499.8
Applied rewrites99.8%
Taylor expanded in x around 0
Applied rewrites99.7%
if -inf.0 < (*.f64 y z) < 4.99999999999999983e218Initial program 99.9%
if 4.99999999999999983e218 < (*.f64 y z) Initial program 80.6%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6499.9
Applied rewrites99.9%
Taylor expanded in y around inf
mul-1-negN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6499.9
Applied rewrites99.9%
Final simplification99.9%
NOTE: x, y, and z should be sorted in increasing order before calling this function.
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (* (- y) x) z)))
(if (<= (* y z) -2.0)
t_0
(if (<= (* y z) 2e-5)
(* x 1.0)
(if (<= (* y z) 5e+218) (* x (* (- y) z)) t_0)))))assert(x < y && y < z);
double code(double x, double y, double z) {
double t_0 = (-y * x) * z;
double tmp;
if ((y * z) <= -2.0) {
tmp = t_0;
} else if ((y * z) <= 2e-5) {
tmp = x * 1.0;
} else if ((y * z) <= 5e+218) {
tmp = x * (-y * z);
} else {
tmp = t_0;
}
return tmp;
}
NOTE: x, y, and z should be sorted in increasing order before calling this function.
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 = (-y * x) * z
if ((y * z) <= (-2.0d0)) then
tmp = t_0
else if ((y * z) <= 2d-5) then
tmp = x * 1.0d0
else if ((y * z) <= 5d+218) then
tmp = x * (-y * z)
else
tmp = t_0
end if
code = tmp
end function
assert x < y && y < z;
public static double code(double x, double y, double z) {
double t_0 = (-y * x) * z;
double tmp;
if ((y * z) <= -2.0) {
tmp = t_0;
} else if ((y * z) <= 2e-5) {
tmp = x * 1.0;
} else if ((y * z) <= 5e+218) {
tmp = x * (-y * z);
} else {
tmp = t_0;
}
return tmp;
}
[x, y, z] = sort([x, y, z]) def code(x, y, z): t_0 = (-y * x) * z tmp = 0 if (y * z) <= -2.0: tmp = t_0 elif (y * z) <= 2e-5: tmp = x * 1.0 elif (y * z) <= 5e+218: tmp = x * (-y * z) else: tmp = t_0 return tmp
x, y, z = sort([x, y, z]) function code(x, y, z) t_0 = Float64(Float64(Float64(-y) * x) * z) tmp = 0.0 if (Float64(y * z) <= -2.0) tmp = t_0; elseif (Float64(y * z) <= 2e-5) tmp = Float64(x * 1.0); elseif (Float64(y * z) <= 5e+218) tmp = Float64(x * Float64(Float64(-y) * z)); else tmp = t_0; end return tmp end
x, y, z = num2cell(sort([x, y, z])){:}
function tmp_2 = code(x, y, z)
t_0 = (-y * x) * z;
tmp = 0.0;
if ((y * z) <= -2.0)
tmp = t_0;
elseif ((y * z) <= 2e-5)
tmp = x * 1.0;
elseif ((y * z) <= 5e+218)
tmp = x * (-y * z);
else
tmp = t_0;
end
tmp_2 = tmp;
end
NOTE: x, y, and z should be sorted in increasing order before calling this function.
code[x_, y_, z_] := Block[{t$95$0 = N[(N[((-y) * x), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[N[(y * z), $MachinePrecision], -2.0], t$95$0, If[LessEqual[N[(y * z), $MachinePrecision], 2e-5], N[(x * 1.0), $MachinePrecision], If[LessEqual[N[(y * z), $MachinePrecision], 5e+218], N[(x * N[((-y) * z), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
[x, y, z] = \mathsf{sort}([x, y, z])\\
\\
\begin{array}{l}
t_0 := \left(\left(-y\right) \cdot x\right) \cdot z\\
\mathbf{if}\;y \cdot z \leq -2:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \cdot z \leq 2 \cdot 10^{-5}:\\
\;\;\;\;x \cdot 1\\
\mathbf{elif}\;y \cdot z \leq 5 \cdot 10^{+218}:\\
\;\;\;\;x \cdot \left(\left(-y\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if (*.f64 y z) < -2 or 4.99999999999999983e218 < (*.f64 y z) Initial program 88.2%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6494.7
Applied rewrites94.7%
Taylor expanded in y around inf
mul-1-negN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6492.5
Applied rewrites92.5%
if -2 < (*.f64 y z) < 2.00000000000000016e-5Initial program 100.0%
Taylor expanded in y around 0
Applied rewrites97.0%
if 2.00000000000000016e-5 < (*.f64 y z) < 4.99999999999999983e218Initial program 99.8%
Taylor expanded in y around inf
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6495.3
Applied rewrites95.3%
Final simplification95.2%
NOTE: x, y, and z should be sorted in increasing order before calling this function. (FPCore (x y z) :precision binary64 (if (or (<= (* y z) -2.0) (not (<= (* y z) 2e-5))) (* (* (- y) x) z) (* x 1.0)))
assert(x < y && y < z);
double code(double x, double y, double z) {
double tmp;
if (((y * z) <= -2.0) || !((y * z) <= 2e-5)) {
tmp = (-y * x) * z;
} else {
tmp = x * 1.0;
}
return tmp;
}
NOTE: x, y, and z should be sorted in increasing order before calling this function.
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 * z) <= (-2.0d0)) .or. (.not. ((y * z) <= 2d-5))) then
tmp = (-y * x) * z
else
tmp = x * 1.0d0
end if
code = tmp
end function
assert x < y && y < z;
public static double code(double x, double y, double z) {
double tmp;
if (((y * z) <= -2.0) || !((y * z) <= 2e-5)) {
tmp = (-y * x) * z;
} else {
tmp = x * 1.0;
}
return tmp;
}
[x, y, z] = sort([x, y, z]) def code(x, y, z): tmp = 0 if ((y * z) <= -2.0) or not ((y * z) <= 2e-5): tmp = (-y * x) * z else: tmp = x * 1.0 return tmp
x, y, z = sort([x, y, z]) function code(x, y, z) tmp = 0.0 if ((Float64(y * z) <= -2.0) || !(Float64(y * z) <= 2e-5)) tmp = Float64(Float64(Float64(-y) * x) * z); else tmp = Float64(x * 1.0); end return tmp end
x, y, z = num2cell(sort([x, y, z])){:}
function tmp_2 = code(x, y, z)
tmp = 0.0;
if (((y * z) <= -2.0) || ~(((y * z) <= 2e-5)))
tmp = (-y * x) * z;
else
tmp = x * 1.0;
end
tmp_2 = tmp;
end
NOTE: x, y, and z should be sorted in increasing order before calling this function. code[x_, y_, z_] := If[Or[LessEqual[N[(y * z), $MachinePrecision], -2.0], N[Not[LessEqual[N[(y * z), $MachinePrecision], 2e-5]], $MachinePrecision]], N[(N[((-y) * x), $MachinePrecision] * z), $MachinePrecision], N[(x * 1.0), $MachinePrecision]]
\begin{array}{l}
[x, y, z] = \mathsf{sort}([x, y, z])\\
\\
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -2 \lor \neg \left(y \cdot z \leq 2 \cdot 10^{-5}\right):\\
\;\;\;\;\left(\left(-y\right) \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1\\
\end{array}
\end{array}
if (*.f64 y z) < -2 or 2.00000000000000016e-5 < (*.f64 y z) Initial program 91.8%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6493.7
Applied rewrites93.7%
Taylor expanded in y around inf
mul-1-negN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6491.0
Applied rewrites91.0%
if -2 < (*.f64 y z) < 2.00000000000000016e-5Initial program 100.0%
Taylor expanded in y around 0
Applied rewrites97.0%
Final simplification94.0%
NOTE: x, y, and z should be sorted in increasing order before calling this function. (FPCore (x y z) :precision binary64 (if (or (<= (* y z) -2.0) (not (<= (* y z) 2e-5))) (* (- y) (* x z)) (* x 1.0)))
assert(x < y && y < z);
double code(double x, double y, double z) {
double tmp;
if (((y * z) <= -2.0) || !((y * z) <= 2e-5)) {
tmp = -y * (x * z);
} else {
tmp = x * 1.0;
}
return tmp;
}
NOTE: x, y, and z should be sorted in increasing order before calling this function.
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 * z) <= (-2.0d0)) .or. (.not. ((y * z) <= 2d-5))) then
tmp = -y * (x * z)
else
tmp = x * 1.0d0
end if
code = tmp
end function
assert x < y && y < z;
public static double code(double x, double y, double z) {
double tmp;
if (((y * z) <= -2.0) || !((y * z) <= 2e-5)) {
tmp = -y * (x * z);
} else {
tmp = x * 1.0;
}
return tmp;
}
[x, y, z] = sort([x, y, z]) def code(x, y, z): tmp = 0 if ((y * z) <= -2.0) or not ((y * z) <= 2e-5): tmp = -y * (x * z) else: tmp = x * 1.0 return tmp
x, y, z = sort([x, y, z]) function code(x, y, z) tmp = 0.0 if ((Float64(y * z) <= -2.0) || !(Float64(y * z) <= 2e-5)) tmp = Float64(Float64(-y) * Float64(x * z)); else tmp = Float64(x * 1.0); end return tmp end
x, y, z = num2cell(sort([x, y, z])){:}
function tmp_2 = code(x, y, z)
tmp = 0.0;
if (((y * z) <= -2.0) || ~(((y * z) <= 2e-5)))
tmp = -y * (x * z);
else
tmp = x * 1.0;
end
tmp_2 = tmp;
end
NOTE: x, y, and z should be sorted in increasing order before calling this function. code[x_, y_, z_] := If[Or[LessEqual[N[(y * z), $MachinePrecision], -2.0], N[Not[LessEqual[N[(y * z), $MachinePrecision], 2e-5]], $MachinePrecision]], N[((-y) * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(x * 1.0), $MachinePrecision]]
\begin{array}{l}
[x, y, z] = \mathsf{sort}([x, y, z])\\
\\
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -2 \lor \neg \left(y \cdot z \leq 2 \cdot 10^{-5}\right):\\
\;\;\;\;\left(-y\right) \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1\\
\end{array}
\end{array}
if (*.f64 y z) < -2 or 2.00000000000000016e-5 < (*.f64 y z) Initial program 91.8%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6493.7
Applied rewrites93.7%
Taylor expanded in y around inf
mul-1-negN/A
distribute-lft-neg-inN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-neg-inN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
metadata-evalN/A
associate-*r*N/A
*-lft-identityN/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6491.0
Applied rewrites91.0%
Taylor expanded in x around 0
Applied rewrites85.9%
if -2 < (*.f64 y z) < 2.00000000000000016e-5Initial program 100.0%
Taylor expanded in y around 0
Applied rewrites97.0%
Final simplification91.4%
NOTE: x, y, and z should be sorted in increasing order before calling this function. (FPCore (x y z) :precision binary64 (if (<= x 2e-86) (fma (* x (- y)) z x) (* x (- 1.0 (* y z)))))
assert(x < y && y < z);
double code(double x, double y, double z) {
double tmp;
if (x <= 2e-86) {
tmp = fma((x * -y), z, x);
} else {
tmp = x * (1.0 - (y * z));
}
return tmp;
}
x, y, z = sort([x, y, z]) function code(x, y, z) tmp = 0.0 if (x <= 2e-86) tmp = fma(Float64(x * Float64(-y)), z, x); else tmp = Float64(x * Float64(1.0 - Float64(y * z))); end return tmp end
NOTE: x, y, and z should be sorted in increasing order before calling this function. code[x_, y_, z_] := If[LessEqual[x, 2e-86], N[(N[(x * (-y)), $MachinePrecision] * z + x), $MachinePrecision], N[(x * N[(1.0 - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
[x, y, z] = \mathsf{sort}([x, y, z])\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2 \cdot 10^{-86}:\\
\;\;\;\;\mathsf{fma}\left(x \cdot \left(-y\right), z, x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - y \cdot z\right)\\
\end{array}
\end{array}
if x < 2.00000000000000017e-86Initial program 94.0%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-inN/A
associate-*r*N/A
*-rgt-identityN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6496.0
Applied rewrites96.0%
if 2.00000000000000017e-86 < x Initial program 99.8%
NOTE: x, y, and z should be sorted in increasing order before calling this function. (FPCore (x y z) :precision binary64 (* x 1.0))
assert(x < y && y < z);
double code(double x, double y, double z) {
return x * 1.0;
}
NOTE: x, y, and z should be sorted in increasing order before calling this function.
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
end function
assert x < y && y < z;
public static double code(double x, double y, double z) {
return x * 1.0;
}
[x, y, z] = sort([x, y, z]) def code(x, y, z): return x * 1.0
x, y, z = sort([x, y, z]) function code(x, y, z) return Float64(x * 1.0) end
x, y, z = num2cell(sort([x, y, z])){:}
function tmp = code(x, y, z)
tmp = x * 1.0;
end
NOTE: x, y, and z should be sorted in increasing order before calling this function. code[x_, y_, z_] := N[(x * 1.0), $MachinePrecision]
\begin{array}{l}
[x, y, z] = \mathsf{sort}([x, y, z])\\
\\
x \cdot 1
\end{array}
Initial program 95.9%
Taylor expanded in y around 0
Applied rewrites49.9%
herbie shell --seed 2024320
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))