
(FPCore (x y z t a) :precision binary64 (/ (- (* x y) (* z t)) a))
double code(double x, double y, double z, double t, double a) {
return ((x * y) - (z * t)) / a;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((x * y) - (z * t)) / a
end function
public static double code(double x, double y, double z, double t, double a) {
return ((x * y) - (z * t)) / a;
}
def code(x, y, z, t, a): return ((x * y) - (z * t)) / a
function code(x, y, z, t, a) return Float64(Float64(Float64(x * y) - Float64(z * t)) / a) end
function tmp = code(x, y, z, t, a) tmp = ((x * y) - (z * t)) / a; end
code[x_, y_, z_, t_, a_] := N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y - z \cdot t}{a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (/ (- (* x y) (* z t)) a))
double code(double x, double y, double z, double t, double a) {
return ((x * y) - (z * t)) / a;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((x * y) - (z * t)) / a
end function
public static double code(double x, double y, double z, double t, double a) {
return ((x * y) - (z * t)) / a;
}
def code(x, y, z, t, a): return ((x * y) - (z * t)) / a
function code(x, y, z, t, a) return Float64(Float64(Float64(x * y) - Float64(z * t)) / a) end
function tmp = code(x, y, z, t, a) tmp = ((x * y) - (z * t)) / a; end
code[x_, y_, z_, t_, a_] := N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y - z \cdot t}{a}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= (* z t) -2e+271) (- 0.0 (* t (/ z a))) (if (<= (* z t) 5e+233) (/ (- (* x y) (* z t)) a) (* (- 0.0 z) (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z * t) <= -2e+271) {
tmp = 0.0 - (t * (z / a));
} else if ((z * t) <= 5e+233) {
tmp = ((x * y) - (z * t)) / a;
} else {
tmp = (0.0 - z) * (t / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z * t) <= (-2d+271)) then
tmp = 0.0d0 - (t * (z / a))
else if ((z * t) <= 5d+233) then
tmp = ((x * y) - (z * t)) / a
else
tmp = (0.0d0 - z) * (t / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z * t) <= -2e+271) {
tmp = 0.0 - (t * (z / a));
} else if ((z * t) <= 5e+233) {
tmp = ((x * y) - (z * t)) / a;
} else {
tmp = (0.0 - z) * (t / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z * t) <= -2e+271: tmp = 0.0 - (t * (z / a)) elif (z * t) <= 5e+233: tmp = ((x * y) - (z * t)) / a else: tmp = (0.0 - z) * (t / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(z * t) <= -2e+271) tmp = Float64(0.0 - Float64(t * Float64(z / a))); elseif (Float64(z * t) <= 5e+233) tmp = Float64(Float64(Float64(x * y) - Float64(z * t)) / a); else tmp = Float64(Float64(0.0 - z) * Float64(t / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z * t) <= -2e+271) tmp = 0.0 - (t * (z / a)); elseif ((z * t) <= 5e+233) tmp = ((x * y) - (z * t)) / a; else tmp = (0.0 - z) * (t / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(z * t), $MachinePrecision], -2e+271], N[(0.0 - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 5e+233], N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(0.0 - z), $MachinePrecision] * N[(t / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -2 \cdot 10^{+271}:\\
\;\;\;\;0 - t \cdot \frac{z}{a}\\
\mathbf{elif}\;z \cdot t \leq 5 \cdot 10^{+233}:\\
\;\;\;\;\frac{x \cdot y - z \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;\left(0 - z\right) \cdot \frac{t}{a}\\
\end{array}
\end{array}
if (*.f64 z t) < -1.99999999999999991e271Initial program 65.9%
flip--N/A
clear-numN/A
associate-/l/N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6466.0%
Applied egg-rr66.0%
Taylor expanded in x around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6499.9%
Simplified99.9%
if -1.99999999999999991e271 < (*.f64 z t) < 5.00000000000000009e233Initial program 96.7%
if 5.00000000000000009e233 < (*.f64 z t) Initial program 48.7%
Taylor expanded in x around 0
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6462.1%
Simplified62.1%
sub0-negN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sub0-negN/A
--lowering--.f6493.7%
Applied egg-rr93.7%
Final simplification96.8%
(FPCore (x y z t a) :precision binary64 (if (<= (* x y) -100000000000.0) (/ (* x y) a) (if (<= (* x y) 1e-91) (/ (* z t) (- 0.0 a)) (* x (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x * y) <= -100000000000.0) {
tmp = (x * y) / a;
} else if ((x * y) <= 1e-91) {
tmp = (z * t) / (0.0 - a);
} else {
tmp = x * (y / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((x * y) <= (-100000000000.0d0)) then
tmp = (x * y) / a
else if ((x * y) <= 1d-91) then
tmp = (z * t) / (0.0d0 - a)
else
tmp = x * (y / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x * y) <= -100000000000.0) {
tmp = (x * y) / a;
} else if ((x * y) <= 1e-91) {
tmp = (z * t) / (0.0 - a);
} else {
tmp = x * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x * y) <= -100000000000.0: tmp = (x * y) / a elif (x * y) <= 1e-91: tmp = (z * t) / (0.0 - a) else: tmp = x * (y / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(x * y) <= -100000000000.0) tmp = Float64(Float64(x * y) / a); elseif (Float64(x * y) <= 1e-91) tmp = Float64(Float64(z * t) / Float64(0.0 - a)); else tmp = Float64(x * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x * y) <= -100000000000.0) tmp = (x * y) / a; elseif ((x * y) <= 1e-91) tmp = (z * t) / (0.0 - a); else tmp = x * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(x * y), $MachinePrecision], -100000000000.0], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1e-91], N[(N[(z * t), $MachinePrecision] / N[(0.0 - a), $MachinePrecision]), $MachinePrecision], N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -100000000000:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\mathbf{elif}\;x \cdot y \leq 10^{-91}:\\
\;\;\;\;\frac{z \cdot t}{0 - a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{a}\\
\end{array}
\end{array}
if (*.f64 x y) < -1e11Initial program 91.4%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6478.2%
Simplified78.2%
if -1e11 < (*.f64 x y) < 1.00000000000000002e-91Initial program 93.8%
Taylor expanded in x around 0
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6480.6%
Simplified80.6%
sub0-negN/A
neg-lowering-neg.f6480.6%
Applied egg-rr80.6%
if 1.00000000000000002e-91 < (*.f64 x y) Initial program 86.3%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6472.9%
Simplified72.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6475.9%
Applied egg-rr75.9%
Final simplification78.5%
(FPCore (x y z t a) :precision binary64 (if (<= (* x y) 2e+244) (/ (* x y) a) (* y (/ x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x * y) <= 2e+244) {
tmp = (x * y) / a;
} else {
tmp = y * (x / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((x * y) <= 2d+244) then
tmp = (x * y) / a
else
tmp = y * (x / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x * y) <= 2e+244) {
tmp = (x * y) / a;
} else {
tmp = y * (x / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x * y) <= 2e+244: tmp = (x * y) / a else: tmp = y * (x / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(x * y) <= 2e+244) tmp = Float64(Float64(x * y) / a); else tmp = Float64(y * Float64(x / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x * y) <= 2e+244) tmp = (x * y) / a; else tmp = y * (x / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(x * y), $MachinePrecision], 2e+244], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision], N[(y * N[(x / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq 2 \cdot 10^{+244}:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{a}\\
\end{array}
\end{array}
if (*.f64 x y) < 2.00000000000000015e244Initial program 92.7%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6452.5%
Simplified52.5%
if 2.00000000000000015e244 < (*.f64 x y) Initial program 76.8%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6473.5%
Simplified73.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6489.8%
Applied egg-rr89.8%
(FPCore (x y z t a) :precision binary64 (if (<= t 1.14e-293) (* x (/ y a)) (/ y (/ a x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.14e-293) {
tmp = x * (y / a);
} else {
tmp = y / (a / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= 1.14d-293) then
tmp = x * (y / a)
else
tmp = y / (a / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 1.14e-293) {
tmp = x * (y / a);
} else {
tmp = y / (a / x);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 1.14e-293: tmp = x * (y / a) else: tmp = y / (a / x) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 1.14e-293) tmp = Float64(x * Float64(y / a)); else tmp = Float64(y / Float64(a / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 1.14e-293) tmp = x * (y / a); else tmp = y / (a / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 1.14e-293], N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.14 \cdot 10^{-293}:\\
\;\;\;\;x \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{a}{x}}\\
\end{array}
\end{array}
if t < 1.14000000000000006e-293Initial program 89.7%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6451.1%
Simplified51.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6450.5%
Applied egg-rr50.5%
if 1.14000000000000006e-293 < t Initial program 92.0%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6458.4%
Simplified58.4%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.8%
Applied egg-rr54.8%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6455.9%
Applied egg-rr55.9%
Final simplification53.3%
(FPCore (x y z t a) :precision binary64 (if (<= t 4.4e-165) (* x (/ y a)) (* y (/ x a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 4.4e-165) {
tmp = x * (y / a);
} else {
tmp = y * (x / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= 4.4d-165) then
tmp = x * (y / a)
else
tmp = y * (x / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 4.4e-165) {
tmp = x * (y / a);
} else {
tmp = y * (x / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= 4.4e-165: tmp = x * (y / a) else: tmp = y * (x / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= 4.4e-165) tmp = Float64(x * Float64(y / a)); else tmp = Float64(y * Float64(x / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= 4.4e-165) tmp = x * (y / a); else tmp = y * (x / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 4.4e-165], N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.4 \cdot 10^{-165}:\\
\;\;\;\;x \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{a}\\
\end{array}
\end{array}
if t < 4.3999999999999998e-165Initial program 90.7%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6457.0%
Simplified57.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6457.1%
Applied egg-rr57.1%
if 4.3999999999999998e-165 < t Initial program 91.2%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6451.6%
Simplified51.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6447.8%
Applied egg-rr47.8%
Final simplification53.5%
(FPCore (x y z t a) :precision binary64 (/ x (/ a y)))
double code(double x, double y, double z, double t, double a) {
return x / (a / y);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x / (a / y)
end function
public static double code(double x, double y, double z, double t, double a) {
return x / (a / y);
}
def code(x, y, z, t, a): return x / (a / y)
function code(x, y, z, t, a) return Float64(x / Float64(a / y)) end
function tmp = code(x, y, z, t, a) tmp = x / (a / y); end
code[x_, y_, z_, t_, a_] := N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{a}{y}}
\end{array}
Initial program 90.9%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6454.9%
Simplified54.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6454.7%
Applied egg-rr54.7%
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6454.5%
Applied egg-rr54.5%
(FPCore (x y z t a) :precision binary64 (* y (/ x a)))
double code(double x, double y, double z, double t, double a) {
return y * (x / a);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = y * (x / a)
end function
public static double code(double x, double y, double z, double t, double a) {
return y * (x / a);
}
def code(x, y, z, t, a): return y * (x / a)
function code(x, y, z, t, a) return Float64(y * Float64(x / a)) end
function tmp = code(x, y, z, t, a) tmp = y * (x / a); end
code[x_, y_, z_, t_, a_] := N[(y * N[(x / a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot \frac{x}{a}
\end{array}
Initial program 90.9%
Taylor expanded in x around inf
/-lowering-/.f64N/A
*-lowering-*.f6454.9%
Simplified54.9%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6453.8%
Applied egg-rr53.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (* (/ y a) x) (* (/ t a) z))))
(if (< z -2.468684968699548e+170)
t_1
(if (< z 6.309831121978371e-71) (/ (- (* x y) (* z t)) a) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((y / a) * x) - ((t / a) * z);
double tmp;
if (z < -2.468684968699548e+170) {
tmp = t_1;
} else if (z < 6.309831121978371e-71) {
tmp = ((x * y) - (z * t)) / a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = ((y / a) * x) - ((t / a) * z)
if (z < (-2.468684968699548d+170)) then
tmp = t_1
else if (z < 6.309831121978371d-71) then
tmp = ((x * y) - (z * t)) / a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((y / a) * x) - ((t / a) * z);
double tmp;
if (z < -2.468684968699548e+170) {
tmp = t_1;
} else if (z < 6.309831121978371e-71) {
tmp = ((x * y) - (z * t)) / a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((y / a) * x) - ((t / a) * z) tmp = 0 if z < -2.468684968699548e+170: tmp = t_1 elif z < 6.309831121978371e-71: tmp = ((x * y) - (z * t)) / a else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(y / a) * x) - Float64(Float64(t / a) * z)) tmp = 0.0 if (z < -2.468684968699548e+170) tmp = t_1; elseif (z < 6.309831121978371e-71) tmp = Float64(Float64(Float64(x * y) - Float64(z * t)) / a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((y / a) * x) - ((t / a) * z); tmp = 0.0; if (z < -2.468684968699548e+170) tmp = t_1; elseif (z < 6.309831121978371e-71) tmp = ((x * y) - (z * t)) / a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y / a), $MachinePrecision] * x), $MachinePrecision] - N[(N[(t / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -2.468684968699548e+170], t$95$1, If[Less[z, 6.309831121978371e-71], N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{a} \cdot x - \frac{t}{a} \cdot z\\
\mathbf{if}\;z < -2.468684968699548 \cdot 10^{+170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 6.309831121978371 \cdot 10^{-71}:\\
\;\;\;\;\frac{x \cdot y - z \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024158
(FPCore (x y z t a)
:name "Data.Colour.Matrix:inverse from colour-2.3.3, B"
:precision binary64
:alt
(! :herbie-platform default (if (< z -246868496869954800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (/ y a) x) (* (/ t a) z)) (if (< z 6309831121978371/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (- (* x y) (* z t)) a) (- (* (/ y a) x) (* (/ t a) z)))))
(/ (- (* x y) (* z t)) a))