\[\begin{array}{l}
t_1 := y \cdot \frac{x}{a}\\
t_2 := x \cdot y - z \cdot t\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{+134}:\\
\;\;\;\;t_1 - \frac{z}{\frac{a}{t}}\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+284}:\\
\;\;\;\;\frac{t_2}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1 - t \cdot \frac{z}{a}\\
\end{array}
\]
(FPCore (x y z t a) :precision binary64 (/ (- (* x y) (* z t)) a))
↓
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ x a))) (t_2 (- (* x y) (* z t))))
(if (<= t_2 -5e+134)
(- t_1 (/ z (/ a t)))
(if (<= t_2 5e+284) (/ t_2 a) (- t_1 (* t (/ z a)))))))
double code(double x, double y, double z, double t, double a) {
return ((x * y) - (z * t)) / a;
}
↓
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (x / a);
double t_2 = (x * y) - (z * t);
double tmp;
if (t_2 <= -5e+134) {
tmp = t_1 - (z / (a / t));
} else if (t_2 <= 5e+284) {
tmp = t_2 / a;
} else {
tmp = t_1 - (t * (z / 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
code = ((x * y) - (z * t)) / a
end function
↓
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) :: t_2
real(8) :: tmp
t_1 = y * (x / a)
t_2 = (x * y) - (z * t)
if (t_2 <= (-5d+134)) then
tmp = t_1 - (z / (a / t))
else if (t_2 <= 5d+284) then
tmp = t_2 / a
else
tmp = t_1 - (t * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
return ((x * y) - (z * t)) / a;
}
↓
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (x / a);
double t_2 = (x * y) - (z * t);
double tmp;
if (t_2 <= -5e+134) {
tmp = t_1 - (z / (a / t));
} else if (t_2 <= 5e+284) {
tmp = t_2 / a;
} else {
tmp = t_1 - (t * (z / a));
}
return tmp;
}
def code(x, y, z, t, a):
return ((x * y) - (z * t)) / a
↓
def code(x, y, z, t, a):
t_1 = y * (x / a)
t_2 = (x * y) - (z * t)
tmp = 0
if t_2 <= -5e+134:
tmp = t_1 - (z / (a / t))
elif t_2 <= 5e+284:
tmp = t_2 / a
else:
tmp = t_1 - (t * (z / a))
return tmp
function code(x, y, z, t, a)
return Float64(Float64(Float64(x * y) - Float64(z * t)) / a)
end
herbie shell --seed 2022228
(FPCore (x y z t a)
:name "Data.Colour.Matrix:inverse from colour-2.3.3, B"
:precision binary64
:herbie-target
(if (< z -2.468684968699548e+170) (- (* (/ y a) x) (* (/ t a) z)) (if (< z 6.309831121978371e-71) (/ (- (* x y) (* z t)) a) (- (* (/ y a) x) (* (/ t a) z))))
(/ (- (* x y) (* z t)) a))