
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
+-commutative0.0%
fma-define4.9%
*-commutative4.9%
sub-neg4.9%
*-commutative4.9%
sub-neg4.9%
*-commutative4.9%
*-commutative4.9%
Simplified4.9%
Taylor expanded in y around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
*-commutative53.4%
Simplified53.4%
Final simplification83.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= y -1.55e+44)
(* (* y j) (- i))
(if (<= y -6.6e-16)
t_1
(if (<= y -1.4e-94)
(* b (* z (- c)))
(if (<= y 2.8e-82)
(* j (* a c))
(if (<= y 2.7e-43)
t_1
(if (<= y 2.35e+99) (* c (* z (- b))) (* j (* y (- i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (y <= -1.55e+44) {
tmp = (y * j) * -i;
} else if (y <= -6.6e-16) {
tmp = t_1;
} else if (y <= -1.4e-94) {
tmp = b * (z * -c);
} else if (y <= 2.8e-82) {
tmp = j * (a * c);
} else if (y <= 2.7e-43) {
tmp = t_1;
} else if (y <= 2.35e+99) {
tmp = c * (z * -b);
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (y <= (-1.55d+44)) then
tmp = (y * j) * -i
else if (y <= (-6.6d-16)) then
tmp = t_1
else if (y <= (-1.4d-94)) then
tmp = b * (z * -c)
else if (y <= 2.8d-82) then
tmp = j * (a * c)
else if (y <= 2.7d-43) then
tmp = t_1
else if (y <= 2.35d+99) then
tmp = c * (z * -b)
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (y <= -1.55e+44) {
tmp = (y * j) * -i;
} else if (y <= -6.6e-16) {
tmp = t_1;
} else if (y <= -1.4e-94) {
tmp = b * (z * -c);
} else if (y <= 2.8e-82) {
tmp = j * (a * c);
} else if (y <= 2.7e-43) {
tmp = t_1;
} else if (y <= 2.35e+99) {
tmp = c * (z * -b);
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if y <= -1.55e+44: tmp = (y * j) * -i elif y <= -6.6e-16: tmp = t_1 elif y <= -1.4e-94: tmp = b * (z * -c) elif y <= 2.8e-82: tmp = j * (a * c) elif y <= 2.7e-43: tmp = t_1 elif y <= 2.35e+99: tmp = c * (z * -b) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (y <= -1.55e+44) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (y <= -6.6e-16) tmp = t_1; elseif (y <= -1.4e-94) tmp = Float64(b * Float64(z * Float64(-c))); elseif (y <= 2.8e-82) tmp = Float64(j * Float64(a * c)); elseif (y <= 2.7e-43) tmp = t_1; elseif (y <= 2.35e+99) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (y <= -1.55e+44) tmp = (y * j) * -i; elseif (y <= -6.6e-16) tmp = t_1; elseif (y <= -1.4e-94) tmp = b * (z * -c); elseif (y <= 2.8e-82) tmp = j * (a * c); elseif (y <= 2.7e-43) tmp = t_1; elseif (y <= 2.35e+99) tmp = c * (z * -b); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.55e+44], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[y, -6.6e-16], t$95$1, If[LessEqual[y, -1.4e-94], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e-82], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e-43], t$95$1, If[LessEqual[y, 2.35e+99], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{+44}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-94}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-82}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{+99}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -1.54999999999999998e44Initial program 61.0%
+-commutative61.0%
fma-define64.4%
*-commutative64.4%
sub-neg64.4%
*-commutative64.4%
sub-neg64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in i around inf 55.1%
distribute-lft-out--55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in j around inf 45.4%
associate-*r*45.4%
neg-mul-145.4%
*-commutative45.4%
Simplified45.4%
if -1.54999999999999998e44 < y < -6.59999999999999976e-16 or 2.80000000000000024e-82 < y < 2.69999999999999991e-43Initial program 89.2%
+-commutative89.2%
fma-define89.2%
*-commutative89.2%
sub-neg89.2%
*-commutative89.2%
sub-neg89.2%
*-commutative89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in i around inf 62.8%
distribute-lft-out--62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in j around 0 54.8%
mul-1-neg54.8%
*-commutative54.8%
distribute-rgt-neg-in54.8%
Simplified54.8%
if -6.59999999999999976e-16 < y < -1.3999999999999999e-94Initial program 73.9%
+-commutative73.9%
fma-define73.9%
*-commutative73.9%
sub-neg73.9%
*-commutative73.9%
sub-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 49.3%
Taylor expanded in a around 0 48.7%
mul-1-neg48.7%
*-commutative48.7%
distribute-rgt-neg-in48.7%
*-commutative48.7%
Simplified48.7%
if -1.3999999999999999e-94 < y < 2.80000000000000024e-82Initial program 83.0%
+-commutative83.0%
fma-define83.0%
*-commutative83.0%
sub-neg83.0%
*-commutative83.0%
sub-neg83.0%
*-commutative83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in c around inf 53.0%
Taylor expanded in a around inf 34.9%
associate-*r*37.1%
Simplified37.1%
if 2.69999999999999991e-43 < y < 2.34999999999999991e99Initial program 69.8%
+-commutative69.8%
fma-define69.8%
*-commutative69.8%
sub-neg69.8%
*-commutative69.8%
sub-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in c around inf 64.7%
Taylor expanded in a around 0 55.3%
mul-1-neg55.3%
*-commutative55.3%
distribute-rgt-neg-in55.3%
Simplified55.3%
if 2.34999999999999991e99 < y Initial program 49.1%
+-commutative49.1%
fma-define51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in b around 0 60.7%
Taylor expanded in a around 0 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-*r*61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in x around 0 40.0%
associate-*r*42.0%
neg-mul-142.0%
*-commutative42.0%
associate-*r*52.3%
distribute-rgt-neg-in52.3%
distribute-lft-neg-in52.3%
Simplified52.3%
Final simplification45.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* b (* t i))))
(t_2 (* y (- (* x z) (* i j)))))
(if (<= y -3.15e+63)
t_2
(if (<= y -6.6e-38)
t_1
(if (<= y -1.3e-240)
(* a (- (* c j) (* x t)))
(if (<= y 6.8e+106) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + (b * (t * i));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.15e+63) {
tmp = t_2;
} else if (y <= -6.6e-38) {
tmp = t_1;
} else if (y <= -1.3e-240) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 6.8e+106) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((a * c) - (y * i))) + (b * (t * i))
t_2 = y * ((x * z) - (i * j))
if (y <= (-3.15d+63)) then
tmp = t_2
else if (y <= (-6.6d-38)) then
tmp = t_1
else if (y <= (-1.3d-240)) then
tmp = a * ((c * j) - (x * t))
else if (y <= 6.8d+106) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + (b * (t * i));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.15e+63) {
tmp = t_2;
} else if (y <= -6.6e-38) {
tmp = t_1;
} else if (y <= -1.3e-240) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 6.8e+106) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (b * (t * i)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.15e+63: tmp = t_2 elif y <= -6.6e-38: tmp = t_1 elif y <= -1.3e-240: tmp = a * ((c * j) - (x * t)) elif y <= 6.8e+106: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(b * Float64(t * i))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.15e+63) tmp = t_2; elseif (y <= -6.6e-38) tmp = t_1; elseif (y <= -1.3e-240) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 6.8e+106) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + (b * (t * i)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.15e+63) tmp = t_2; elseif (y <= -6.6e-38) tmp = t_1; elseif (y <= -1.3e-240) tmp = a * ((c * j) - (x * t)); elseif (y <= 6.8e+106) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.15e+63], t$95$2, If[LessEqual[y, -6.6e-38], t$95$1, If[LessEqual[y, -1.3e-240], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e+106], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + b \cdot \left(t \cdot i\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.15 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-240}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.1499999999999999e63 or 6.79999999999999989e106 < y Initial program 53.7%
+-commutative53.7%
fma-define56.7%
*-commutative56.7%
sub-neg56.7%
*-commutative56.7%
sub-neg56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in y around inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
*-commutative75.7%
Simplified75.7%
if -3.1499999999999999e63 < y < -6.6000000000000005e-38 or -1.29999999999999996e-240 < y < 6.79999999999999989e106Initial program 83.4%
Taylor expanded in i around inf 62.9%
*-commutative62.9%
Simplified62.9%
if -6.6000000000000005e-38 < y < -1.29999999999999996e-240Initial program 77.4%
+-commutative77.4%
fma-define77.4%
*-commutative77.4%
sub-neg77.4%
*-commutative77.4%
sub-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in a around inf 60.2%
+-commutative60.2%
mul-1-neg60.2%
unsub-neg60.2%
Simplified60.2%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* b (- (* z c) (* t i))))))
(if (<= b -4.5e+160)
t_1
(if (<= b -1.45e-162)
(- (- (* a (* c j)) (* x (- (* t a) (* y z)))) (* b (* z c)))
(if (<= b 252000000000.0)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)));
double tmp;
if (b <= -4.5e+160) {
tmp = t_1;
} else if (b <= -1.45e-162) {
tmp = ((a * (c * j)) - (x * ((t * a) - (y * z)))) - (b * (z * c));
} else if (b <= 252000000000.0) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)))
if (b <= (-4.5d+160)) then
tmp = t_1
else if (b <= (-1.45d-162)) then
tmp = ((a * (c * j)) - (x * ((t * a) - (y * z)))) - (b * (z * c))
else if (b <= 252000000000.0d0) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
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 b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)));
double tmp;
if (b <= -4.5e+160) {
tmp = t_1;
} else if (b <= -1.45e-162) {
tmp = ((a * (c * j)) - (x * ((t * a) - (y * z)))) - (b * (z * c));
} else if (b <= 252000000000.0) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i))) tmp = 0 if b <= -4.5e+160: tmp = t_1 elif b <= -1.45e-162: tmp = ((a * (c * j)) - (x * ((t * a) - (y * z)))) - (b * (z * c)) elif b <= 252000000000.0: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) tmp = 0.0 if (b <= -4.5e+160) tmp = t_1; elseif (b <= -1.45e-162) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) - Float64(b * Float64(z * c))); elseif (b <= 252000000000.0) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i))); tmp = 0.0; if (b <= -4.5e+160) tmp = t_1; elseif (b <= -1.45e-162) tmp = ((a * (c * j)) - (x * ((t * a) - (y * z)))) - (b * (z * c)); elseif (b <= 252000000000.0) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e+160], t$95$1, If[LessEqual[b, -1.45e-162], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 252000000000.0], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-162}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;b \leq 252000000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.4999999999999998e160 or 2.52e11 < b Initial program 76.1%
+-commutative76.1%
fma-define77.0%
*-commutative77.0%
sub-neg77.0%
*-commutative77.0%
sub-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in a around 0 74.5%
mul-1-neg74.5%
*-commutative74.5%
associate-*r*74.4%
*-commutative74.4%
associate-*l*73.5%
distribute-rgt-neg-in73.5%
mul-1-neg73.5%
*-commutative73.5%
associate-*l*73.6%
*-commutative73.6%
distribute-lft-in75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
if -4.4999999999999998e160 < b < -1.4500000000000001e-162Initial program 76.5%
+-commutative76.5%
fma-define79.5%
*-commutative79.5%
sub-neg79.5%
*-commutative79.5%
sub-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around 0 73.8%
if -1.4500000000000001e-162 < b < 2.52e11Initial program 58.9%
Taylor expanded in z around inf 81.5%
*-commutative81.5%
Simplified81.5%
Final simplification76.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -1.5e+117)
t_2
(if (<= i 2.4e-83)
(+ t_1 (* x (- (* y z) (* t a))))
(if (<= i 2.3e+91) (- t_1 (* z (* b c))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.5e+117) {
tmp = t_2;
} else if (i <= 2.4e-83) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else if (i <= 2.3e+91) {
tmp = t_1 - (z * (b * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = i * ((t * b) - (y * j))
if (i <= (-1.5d+117)) then
tmp = t_2
else if (i <= 2.4d-83) then
tmp = t_1 + (x * ((y * z) - (t * a)))
else if (i <= 2.3d+91) then
tmp = t_1 - (z * (b * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.5e+117) {
tmp = t_2;
} else if (i <= 2.4e-83) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else if (i <= 2.3e+91) {
tmp = t_1 - (z * (b * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.5e+117: tmp = t_2 elif i <= 2.4e-83: tmp = t_1 + (x * ((y * z) - (t * a))) elif i <= 2.3e+91: tmp = t_1 - (z * (b * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.5e+117) tmp = t_2; elseif (i <= 2.4e-83) tmp = Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (i <= 2.3e+91) tmp = Float64(t_1 - Float64(z * Float64(b * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.5e+117) tmp = t_2; elseif (i <= 2.4e-83) tmp = t_1 + (x * ((y * z) - (t * a))); elseif (i <= 2.3e+91) tmp = t_1 - (z * (b * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.5e+117], t$95$2, If[LessEqual[i, 2.4e-83], N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+91], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.5 \cdot 10^{+117}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-83}:\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+91}:\\
\;\;\;\;t\_1 - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.5e117 or 2.29999999999999991e91 < i Initial program 60.1%
+-commutative60.1%
fma-define60.1%
*-commutative60.1%
sub-neg60.1%
*-commutative60.1%
sub-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in i around inf 77.4%
distribute-lft-out--77.4%
*-commutative77.4%
Simplified77.4%
if -1.5e117 < i < 2.4000000000000001e-83Initial program 74.6%
+-commutative74.6%
fma-define75.4%
*-commutative75.4%
sub-neg75.4%
*-commutative75.4%
sub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in b around 0 66.1%
if 2.4000000000000001e-83 < i < 2.29999999999999991e91Initial program 79.7%
add-cube-cbrt79.6%
pow379.6%
Applied egg-rr79.6%
Taylor expanded in c around inf 62.6%
mul-1-neg62.6%
associate-*r*67.6%
distribute-lft-neg-in67.6%
distribute-rgt-neg-in67.6%
Simplified67.6%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.35e+64)
t_1
(if (<= y -7e-34)
(- (* t (* b i)) (* i (* y j)))
(if (<= y 1.1e-304)
(* a (- (* c j) (* x t)))
(if (<= y 1.12e+100) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.35e+64) {
tmp = t_1;
} else if (y <= -7e-34) {
tmp = (t * (b * i)) - (i * (y * j));
} else if (y <= 1.1e-304) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1.12e+100) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-1.35d+64)) then
tmp = t_1
else if (y <= (-7d-34)) then
tmp = (t * (b * i)) - (i * (y * j))
else if (y <= 1.1d-304) then
tmp = a * ((c * j) - (x * t))
else if (y <= 1.12d+100) then
tmp = c * ((a * j) - (z * b))
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 b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.35e+64) {
tmp = t_1;
} else if (y <= -7e-34) {
tmp = (t * (b * i)) - (i * (y * j));
} else if (y <= 1.1e-304) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1.12e+100) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.35e+64: tmp = t_1 elif y <= -7e-34: tmp = (t * (b * i)) - (i * (y * j)) elif y <= 1.1e-304: tmp = a * ((c * j) - (x * t)) elif y <= 1.12e+100: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.35e+64) tmp = t_1; elseif (y <= -7e-34) tmp = Float64(Float64(t * Float64(b * i)) - Float64(i * Float64(y * j))); elseif (y <= 1.1e-304) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 1.12e+100) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.35e+64) tmp = t_1; elseif (y <= -7e-34) tmp = (t * (b * i)) - (i * (y * j)); elseif (y <= 1.1e-304) tmp = a * ((c * j) - (x * t)); elseif (y <= 1.12e+100) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.35e+64], t$95$1, If[LessEqual[y, -7e-34], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-304], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e+100], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.35 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-34}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-304}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{+100}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.35e64 or 1.12e100 < y Initial program 54.6%
+-commutative54.6%
fma-define57.5%
*-commutative57.5%
sub-neg57.5%
*-commutative57.5%
sub-neg57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in y around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
Simplified75.3%
if -1.35e64 < y < -7e-34Initial program 80.9%
+-commutative80.9%
fma-define80.9%
*-commutative80.9%
sub-neg80.9%
*-commutative80.9%
sub-neg80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in i around inf 61.2%
distribute-lft-out--61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in j around 0 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
associate-*r*68.6%
*-commutative68.6%
Simplified68.6%
if -7e-34 < y < 1.1e-304Initial program 78.8%
+-commutative78.8%
fma-define78.8%
*-commutative78.8%
sub-neg78.8%
*-commutative78.8%
sub-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if 1.1e-304 < y < 1.12e100Initial program 84.2%
+-commutative84.2%
fma-define84.2%
*-commutative84.2%
sub-neg84.2%
*-commutative84.2%
sub-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in c around inf 55.9%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.7e+49)
(* (* y j) (- i))
(if (<= y -4.5e-34)
(* i (* t b))
(if (<= y 6.2e-299)
(* a (- (* c j) (* x t)))
(if (<= y 3.5e+168) (* c (- (* a j) (* z b))) (* j (* y (- i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.7e+49) {
tmp = (y * j) * -i;
} else if (y <= -4.5e-34) {
tmp = i * (t * b);
} else if (y <= 6.2e-299) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 3.5e+168) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2.7d+49)) then
tmp = (y * j) * -i
else if (y <= (-4.5d-34)) then
tmp = i * (t * b)
else if (y <= 6.2d-299) then
tmp = a * ((c * j) - (x * t))
else if (y <= 3.5d+168) then
tmp = c * ((a * j) - (z * b))
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.7e+49) {
tmp = (y * j) * -i;
} else if (y <= -4.5e-34) {
tmp = i * (t * b);
} else if (y <= 6.2e-299) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 3.5e+168) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.7e+49: tmp = (y * j) * -i elif y <= -4.5e-34: tmp = i * (t * b) elif y <= 6.2e-299: tmp = a * ((c * j) - (x * t)) elif y <= 3.5e+168: tmp = c * ((a * j) - (z * b)) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.7e+49) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (y <= -4.5e-34) tmp = Float64(i * Float64(t * b)); elseif (y <= 6.2e-299) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 3.5e+168) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.7e+49) tmp = (y * j) * -i; elseif (y <= -4.5e-34) tmp = i * (t * b); elseif (y <= 6.2e-299) tmp = a * ((c * j) - (x * t)); elseif (y <= 3.5e+168) tmp = c * ((a * j) - (z * b)); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.7e+49], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[y, -4.5e-34], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-299], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e+168], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+49}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;y \leq -4.5 \cdot 10^{-34}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-299}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+168}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -2.7000000000000001e49Initial program 61.0%
+-commutative61.0%
fma-define64.4%
*-commutative64.4%
sub-neg64.4%
*-commutative64.4%
sub-neg64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in i around inf 55.1%
distribute-lft-out--55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in j around inf 45.4%
associate-*r*45.4%
neg-mul-145.4%
*-commutative45.4%
Simplified45.4%
if -2.7000000000000001e49 < y < -4.50000000000000042e-34Initial program 78.3%
+-commutative78.3%
fma-define78.3%
*-commutative78.3%
sub-neg78.3%
*-commutative78.3%
sub-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in i around inf 60.3%
distribute-lft-out--60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in j around 0 46.7%
mul-1-neg46.7%
*-commutative46.7%
distribute-rgt-neg-in46.7%
Simplified46.7%
if -4.50000000000000042e-34 < y < 6.1999999999999999e-299Initial program 78.8%
+-commutative78.8%
fma-define78.8%
*-commutative78.8%
sub-neg78.8%
*-commutative78.8%
sub-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
if 6.1999999999999999e-299 < y < 3.5000000000000002e168Initial program 77.1%
+-commutative77.1%
fma-define77.1%
*-commutative77.1%
sub-neg77.1%
*-commutative77.1%
sub-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in c around inf 52.4%
if 3.5000000000000002e168 < y Initial program 48.4%
+-commutative48.4%
fma-define52.1%
*-commutative52.1%
sub-neg52.1%
*-commutative52.1%
sub-neg52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in b around 0 66.9%
Taylor expanded in a around 0 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-*r*74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in x around 0 50.4%
associate-*r*50.3%
neg-mul-150.3%
*-commutative50.3%
associate-*r*64.1%
distribute-rgt-neg-in64.1%
distribute-lft-neg-in64.1%
Simplified64.1%
Final simplification53.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.1e+155) (not (<= b 17500000000.0))) (- (* y (- (* x z) (* i j))) (* b (- (* z c) (* t i)))) (+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.1e+155) || !(b <= 17500000000.0)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.1d+155)) .or. (.not. (b <= 17500000000.0d0))) then
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)))
else
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.1e+155) || !(b <= 17500000000.0)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.1e+155) or not (b <= 17500000000.0): tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i))) else: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.1e+155) || !(b <= 17500000000.0)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.1e+155) || ~((b <= 17500000000.0))) tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i))); else tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.1e+155], N[Not[LessEqual[b, 17500000000.0]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+155} \lor \neg \left(b \leq 17500000000\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if b < -2.1e155 or 1.75e10 < b Initial program 76.7%
+-commutative76.7%
fma-define77.6%
*-commutative77.6%
sub-neg77.6%
*-commutative77.6%
sub-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in a around 0 74.0%
mul-1-neg74.0%
*-commutative74.0%
associate-*r*73.9%
*-commutative73.9%
associate-*l*73.0%
distribute-rgt-neg-in73.0%
mul-1-neg73.0%
*-commutative73.0%
associate-*l*73.1%
*-commutative73.1%
distribute-lft-in74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
if -2.1e155 < b < 1.75e10Initial program 66.4%
Taylor expanded in z around inf 74.8%
*-commutative74.8%
Simplified74.8%
Final simplification74.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.85e+117) (not (<= i 2.9e+91))) (* i (- (* t b) (* y j))) (+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.85e+117) || !(i <= 2.9e+91)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.85d+117)) .or. (.not. (i <= 2.9d+91))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.85e+117) || !(i <= 2.9e+91)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.85e+117) or not (i <= 2.9e+91): tmp = i * ((t * b) - (y * j)) else: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.85e+117) || !(i <= 2.9e+91)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.85e+117) || ~((i <= 2.9e+91))) tmp = i * ((t * b) - (y * j)); else tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.85e+117], N[Not[LessEqual[i, 2.9e+91]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.85 \cdot 10^{+117} \lor \neg \left(i \leq 2.9 \cdot 10^{+91}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if i < -1.8499999999999999e117 or 2.90000000000000014e91 < i Initial program 60.1%
+-commutative60.1%
fma-define60.1%
*-commutative60.1%
sub-neg60.1%
*-commutative60.1%
sub-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in i around inf 77.4%
distribute-lft-out--77.4%
*-commutative77.4%
Simplified77.4%
if -1.8499999999999999e117 < i < 2.90000000000000014e91Initial program 75.8%
Taylor expanded in z around inf 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.2e-15)
(* (* y j) (- i))
(if (<= y -3.65e-96)
(* b (* z (- c)))
(if (<= y 1.05e-55)
(* j (* a c))
(if (<= y 1.35e+98) (* c (* z (- b))) (* j (* y (- i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.2e-15) {
tmp = (y * j) * -i;
} else if (y <= -3.65e-96) {
tmp = b * (z * -c);
} else if (y <= 1.05e-55) {
tmp = j * (a * c);
} else if (y <= 1.35e+98) {
tmp = c * (z * -b);
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.2d-15)) then
tmp = (y * j) * -i
else if (y <= (-3.65d-96)) then
tmp = b * (z * -c)
else if (y <= 1.05d-55) then
tmp = j * (a * c)
else if (y <= 1.35d+98) then
tmp = c * (z * -b)
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.2e-15) {
tmp = (y * j) * -i;
} else if (y <= -3.65e-96) {
tmp = b * (z * -c);
} else if (y <= 1.05e-55) {
tmp = j * (a * c);
} else if (y <= 1.35e+98) {
tmp = c * (z * -b);
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.2e-15: tmp = (y * j) * -i elif y <= -3.65e-96: tmp = b * (z * -c) elif y <= 1.05e-55: tmp = j * (a * c) elif y <= 1.35e+98: tmp = c * (z * -b) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.2e-15) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (y <= -3.65e-96) tmp = Float64(b * Float64(z * Float64(-c))); elseif (y <= 1.05e-55) tmp = Float64(j * Float64(a * c)); elseif (y <= 1.35e+98) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.2e-15) tmp = (y * j) * -i; elseif (y <= -3.65e-96) tmp = b * (z * -c); elseif (y <= 1.05e-55) tmp = j * (a * c); elseif (y <= 1.35e+98) tmp = c * (z * -b); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.2e-15], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[y, -3.65e-96], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e-55], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+98], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-15}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;y \leq -3.65 \cdot 10^{-96}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-55}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+98}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -1.19999999999999997e-15Initial program 66.5%
+-commutative66.5%
fma-define69.1%
*-commutative69.1%
sub-neg69.1%
*-commutative69.1%
sub-neg69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in i around inf 56.7%
distribute-lft-out--56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in j around inf 40.5%
associate-*r*40.5%
neg-mul-140.5%
*-commutative40.5%
Simplified40.5%
if -1.19999999999999997e-15 < y < -3.64999999999999997e-96Initial program 73.9%
+-commutative73.9%
fma-define73.9%
*-commutative73.9%
sub-neg73.9%
*-commutative73.9%
sub-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 49.3%
Taylor expanded in a around 0 48.7%
mul-1-neg48.7%
*-commutative48.7%
distribute-rgt-neg-in48.7%
*-commutative48.7%
Simplified48.7%
if -3.64999999999999997e-96 < y < 1.0500000000000001e-55Initial program 84.0%
+-commutative84.0%
fma-define84.0%
*-commutative84.0%
sub-neg84.0%
*-commutative84.0%
sub-neg84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in c around inf 49.7%
Taylor expanded in a around inf 32.8%
associate-*r*34.9%
Simplified34.9%
if 1.0500000000000001e-55 < y < 1.35e98Initial program 72.6%
+-commutative72.6%
fma-define72.6%
*-commutative72.6%
sub-neg72.6%
*-commutative72.6%
sub-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in c around inf 59.1%
Taylor expanded in a around 0 50.6%
mul-1-neg50.6%
*-commutative50.6%
distribute-rgt-neg-in50.6%
Simplified50.6%
if 1.35e98 < y Initial program 49.1%
+-commutative49.1%
fma-define51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in b around 0 60.7%
Taylor expanded in a around 0 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-*r*61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in x around 0 40.0%
associate-*r*42.0%
neg-mul-142.0%
*-commutative42.0%
associate-*r*52.3%
distribute-rgt-neg-in52.3%
distribute-lft-neg-in52.3%
Simplified52.3%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))))
(if (<= y -3.8e-34)
t_1
(if (<= y -2.3e-235)
(* a (* x (- t)))
(if (<= y 8e-297)
(* a (* c j))
(if (<= y 7.2e+98) (* c (* z (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (y <= -3.8e-34) {
tmp = t_1;
} else if (y <= -2.3e-235) {
tmp = a * (x * -t);
} else if (y <= 8e-297) {
tmp = a * (c * j);
} else if (y <= 7.2e+98) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y * -i)
if (y <= (-3.8d-34)) then
tmp = t_1
else if (y <= (-2.3d-235)) then
tmp = a * (x * -t)
else if (y <= 8d-297) then
tmp = a * (c * j)
else if (y <= 7.2d+98) then
tmp = c * (z * -b)
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 b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (y <= -3.8e-34) {
tmp = t_1;
} else if (y <= -2.3e-235) {
tmp = a * (x * -t);
} else if (y <= 8e-297) {
tmp = a * (c * j);
} else if (y <= 7.2e+98) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) tmp = 0 if y <= -3.8e-34: tmp = t_1 elif y <= -2.3e-235: tmp = a * (x * -t) elif y <= 8e-297: tmp = a * (c * j) elif y <= 7.2e+98: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (y <= -3.8e-34) tmp = t_1; elseif (y <= -2.3e-235) tmp = Float64(a * Float64(x * Float64(-t))); elseif (y <= 8e-297) tmp = Float64(a * Float64(c * j)); elseif (y <= 7.2e+98) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); tmp = 0.0; if (y <= -3.8e-34) tmp = t_1; elseif (y <= -2.3e-235) tmp = a * (x * -t); elseif (y <= 8e-297) tmp = a * (c * j); elseif (y <= 7.2e+98) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e-34], t$95$1, If[LessEqual[y, -2.3e-235], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-297], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+98], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-235}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-297}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+98}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.8000000000000001e-34 or 7.19999999999999962e98 < y Initial program 59.8%
+-commutative59.8%
fma-define62.2%
*-commutative62.2%
sub-neg62.2%
*-commutative62.2%
sub-neg62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in b around 0 61.9%
Taylor expanded in a around 0 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-*r*56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in x around 0 39.9%
associate-*r*37.7%
neg-mul-137.7%
*-commutative37.7%
associate-*r*43.4%
distribute-rgt-neg-in43.4%
distribute-lft-neg-in43.4%
Simplified43.4%
if -3.8000000000000001e-34 < y < -2.29999999999999997e-235Initial program 77.9%
+-commutative77.9%
fma-define77.9%
*-commutative77.9%
sub-neg77.9%
*-commutative77.9%
sub-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in a around inf 58.9%
+-commutative58.9%
mul-1-neg58.9%
unsub-neg58.9%
Simplified58.9%
Taylor expanded in c around 0 39.0%
mul-1-neg39.0%
distribute-lft-neg-out39.0%
*-commutative39.0%
Simplified39.0%
if -2.29999999999999997e-235 < y < 8.00000000000000032e-297Initial program 82.4%
+-commutative82.4%
fma-define82.4%
*-commutative82.4%
sub-neg82.4%
*-commutative82.4%
sub-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in a around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
Simplified65.3%
Taylor expanded in c around inf 53.8%
if 8.00000000000000032e-297 < y < 7.19999999999999962e98Initial program 84.0%
+-commutative84.0%
fma-define84.0%
*-commutative84.0%
sub-neg84.0%
*-commutative84.0%
sub-neg84.0%
*-commutative84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in c around inf 55.2%
Taylor expanded in a around 0 36.5%
mul-1-neg36.5%
*-commutative36.5%
distribute-rgt-neg-in36.5%
Simplified36.5%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -4.6e-38)
t_1
(if (<= y 7.6e-305)
(* a (- (* c j) (* x t)))
(if (<= y 2.5e+100) (* c (- (* a j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.6e-38) {
tmp = t_1;
} else if (y <= 7.6e-305) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 2.5e+100) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-4.6d-38)) then
tmp = t_1
else if (y <= 7.6d-305) then
tmp = a * ((c * j) - (x * t))
else if (y <= 2.5d+100) then
tmp = c * ((a * j) - (z * b))
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 b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.6e-38) {
tmp = t_1;
} else if (y <= 7.6e-305) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 2.5e+100) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4.6e-38: tmp = t_1 elif y <= 7.6e-305: tmp = a * ((c * j) - (x * t)) elif y <= 2.5e+100: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4.6e-38) tmp = t_1; elseif (y <= 7.6e-305) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 2.5e+100) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4.6e-38) tmp = t_1; elseif (y <= 7.6e-305) tmp = a * ((c * j) - (x * t)); elseif (y <= 2.5e+100) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.6e-38], t$95$1, If[LessEqual[y, 7.6e-305], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+100], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{-305}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+100}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.60000000000000003e-38 or 2.4999999999999999e100 < y Initial program 59.6%
+-commutative59.6%
fma-define62.0%
*-commutative62.0%
sub-neg62.0%
*-commutative62.0%
sub-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 68.4%
+-commutative68.4%
mul-1-neg68.4%
unsub-neg68.4%
*-commutative68.4%
Simplified68.4%
if -4.60000000000000003e-38 < y < 7.6e-305Initial program 79.8%
+-commutative79.8%
fma-define79.8%
*-commutative79.8%
sub-neg79.8%
*-commutative79.8%
sub-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in a around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
Simplified61.9%
if 7.6e-305 < y < 2.4999999999999999e100Initial program 84.2%
+-commutative84.2%
fma-define84.2%
*-commutative84.2%
sub-neg84.2%
*-commutative84.2%
sub-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in c around inf 55.9%
Final simplification63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2e+47)
(* (* y j) (- i))
(if (<= y -3.8e-35)
(* i (* t b))
(if (<= y 7.5e+170) (* a (- (* c j) (* x t))) (* j (* y (- i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2e+47) {
tmp = (y * j) * -i;
} else if (y <= -3.8e-35) {
tmp = i * (t * b);
} else if (y <= 7.5e+170) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2d+47)) then
tmp = (y * j) * -i
else if (y <= (-3.8d-35)) then
tmp = i * (t * b)
else if (y <= 7.5d+170) then
tmp = a * ((c * j) - (x * t))
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2e+47) {
tmp = (y * j) * -i;
} else if (y <= -3.8e-35) {
tmp = i * (t * b);
} else if (y <= 7.5e+170) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2e+47: tmp = (y * j) * -i elif y <= -3.8e-35: tmp = i * (t * b) elif y <= 7.5e+170: tmp = a * ((c * j) - (x * t)) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2e+47) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (y <= -3.8e-35) tmp = Float64(i * Float64(t * b)); elseif (y <= 7.5e+170) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2e+47) tmp = (y * j) * -i; elseif (y <= -3.8e-35) tmp = i * (t * b); elseif (y <= 7.5e+170) tmp = a * ((c * j) - (x * t)); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2e+47], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[y, -3.8e-35], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+170], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+47}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-35}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+170}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -2.0000000000000001e47Initial program 61.0%
+-commutative61.0%
fma-define64.4%
*-commutative64.4%
sub-neg64.4%
*-commutative64.4%
sub-neg64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in i around inf 55.1%
distribute-lft-out--55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in j around inf 45.4%
associate-*r*45.4%
neg-mul-145.4%
*-commutative45.4%
Simplified45.4%
if -2.0000000000000001e47 < y < -3.8000000000000001e-35Initial program 79.2%
+-commutative79.2%
fma-define79.2%
*-commutative79.2%
sub-neg79.2%
*-commutative79.2%
sub-neg79.2%
*-commutative79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in i around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in j around 0 44.8%
mul-1-neg44.8%
*-commutative44.8%
distribute-rgt-neg-in44.8%
Simplified44.8%
if -3.8000000000000001e-35 < y < 7.5000000000000002e170Initial program 77.7%
+-commutative77.7%
fma-define77.7%
*-commutative77.7%
sub-neg77.7%
*-commutative77.7%
sub-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in a around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
Simplified49.5%
if 7.5000000000000002e170 < y Initial program 48.4%
+-commutative48.4%
fma-define52.1%
*-commutative52.1%
sub-neg52.1%
*-commutative52.1%
sub-neg52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in b around 0 66.9%
Taylor expanded in a around 0 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-*r*74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in x around 0 50.4%
associate-*r*50.3%
neg-mul-150.3%
*-commutative50.3%
associate-*r*64.1%
distribute-rgt-neg-in64.1%
distribute-lft-neg-in64.1%
Simplified64.1%
Final simplification49.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -4.2e-34)
(* (* y j) (- i))
(if (<= y -1.35e-289)
(* x (- (* t a)))
(if (<= y 6.8e+97) (* c (* z (- b))) (* j (* y (- i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.2e-34) {
tmp = (y * j) * -i;
} else if (y <= -1.35e-289) {
tmp = x * -(t * a);
} else if (y <= 6.8e+97) {
tmp = c * (z * -b);
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-4.2d-34)) then
tmp = (y * j) * -i
else if (y <= (-1.35d-289)) then
tmp = x * -(t * a)
else if (y <= 6.8d+97) then
tmp = c * (z * -b)
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.2e-34) {
tmp = (y * j) * -i;
} else if (y <= -1.35e-289) {
tmp = x * -(t * a);
} else if (y <= 6.8e+97) {
tmp = c * (z * -b);
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -4.2e-34: tmp = (y * j) * -i elif y <= -1.35e-289: tmp = x * -(t * a) elif y <= 6.8e+97: tmp = c * (z * -b) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -4.2e-34) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (y <= -1.35e-289) tmp = Float64(x * Float64(-Float64(t * a))); elseif (y <= 6.8e+97) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -4.2e-34) tmp = (y * j) * -i; elseif (y <= -1.35e-289) tmp = x * -(t * a); elseif (y <= 6.8e+97) tmp = c * (z * -b); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -4.2e-34], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[y, -1.35e-289], N[(x * (-N[(t * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[y, 6.8e+97], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{-34}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-289}:\\
\;\;\;\;x \cdot \left(-t \cdot a\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{+97}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -4.2000000000000002e-34Initial program 65.7%
+-commutative65.7%
fma-define68.2%
*-commutative68.2%
sub-neg68.2%
*-commutative68.2%
sub-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in i around inf 56.5%
distribute-lft-out--56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around inf 39.8%
associate-*r*39.8%
neg-mul-139.8%
*-commutative39.8%
Simplified39.8%
if -4.2000000000000002e-34 < y < -1.35e-289Initial program 76.9%
+-commutative76.9%
fma-define76.9%
*-commutative76.9%
sub-neg76.9%
*-commutative76.9%
sub-neg76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Taylor expanded in j around inf 58.3%
mul-1-neg58.3%
unsub-neg58.3%
associate-/l*54.8%
Simplified54.8%
Taylor expanded in j around 0 35.3%
mul-1-neg35.3%
associate-*r*37.0%
distribute-lft-neg-in37.0%
*-commutative37.0%
distribute-rgt-neg-in37.0%
Simplified37.0%
if -1.35e-289 < y < 6.8000000000000002e97Initial program 85.3%
+-commutative85.3%
fma-define85.3%
*-commutative85.3%
sub-neg85.3%
*-commutative85.3%
sub-neg85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in c around inf 54.9%
Taylor expanded in a around 0 36.4%
mul-1-neg36.4%
*-commutative36.4%
distribute-rgt-neg-in36.4%
Simplified36.4%
if 6.8000000000000002e97 < y Initial program 49.1%
+-commutative49.1%
fma-define51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
sub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in b around 0 60.7%
Taylor expanded in a around 0 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-*r*61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in x around 0 40.0%
associate-*r*42.0%
neg-mul-142.0%
*-commutative42.0%
associate-*r*52.3%
distribute-rgt-neg-in52.3%
distribute-lft-neg-in52.3%
Simplified52.3%
Final simplification40.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))))
(if (<= y -1.7e-34)
t_1
(if (<= y -1.2e-289)
(* x (- (* t a)))
(if (<= y 6.5e+100) (* c (* z (- b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (y <= -1.7e-34) {
tmp = t_1;
} else if (y <= -1.2e-289) {
tmp = x * -(t * a);
} else if (y <= 6.5e+100) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y * -i)
if (y <= (-1.7d-34)) then
tmp = t_1
else if (y <= (-1.2d-289)) then
tmp = x * -(t * a)
else if (y <= 6.5d+100) then
tmp = c * (z * -b)
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 b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (y <= -1.7e-34) {
tmp = t_1;
} else if (y <= -1.2e-289) {
tmp = x * -(t * a);
} else if (y <= 6.5e+100) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) tmp = 0 if y <= -1.7e-34: tmp = t_1 elif y <= -1.2e-289: tmp = x * -(t * a) elif y <= 6.5e+100: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (y <= -1.7e-34) tmp = t_1; elseif (y <= -1.2e-289) tmp = Float64(x * Float64(-Float64(t * a))); elseif (y <= 6.5e+100) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); tmp = 0.0; if (y <= -1.7e-34) tmp = t_1; elseif (y <= -1.2e-289) tmp = x * -(t * a); elseif (y <= 6.5e+100) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e-34], t$95$1, If[LessEqual[y, -1.2e-289], N[(x * (-N[(t * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[y, 6.5e+100], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-289}:\\
\;\;\;\;x \cdot \left(-t \cdot a\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+100}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.7e-34 or 6.50000000000000001e100 < y Initial program 59.8%
+-commutative59.8%
fma-define62.2%
*-commutative62.2%
sub-neg62.2%
*-commutative62.2%
sub-neg62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in b around 0 61.9%
Taylor expanded in a around 0 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-*r*56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in x around 0 39.9%
associate-*r*37.7%
neg-mul-137.7%
*-commutative37.7%
associate-*r*43.4%
distribute-rgt-neg-in43.4%
distribute-lft-neg-in43.4%
Simplified43.4%
if -1.7e-34 < y < -1.19999999999999997e-289Initial program 76.9%
+-commutative76.9%
fma-define76.9%
*-commutative76.9%
sub-neg76.9%
*-commutative76.9%
sub-neg76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Taylor expanded in j around inf 58.3%
mul-1-neg58.3%
unsub-neg58.3%
associate-/l*54.8%
Simplified54.8%
Taylor expanded in j around 0 35.3%
mul-1-neg35.3%
associate-*r*37.0%
distribute-lft-neg-in37.0%
*-commutative37.0%
distribute-rgt-neg-in37.0%
Simplified37.0%
if -1.19999999999999997e-289 < y < 6.50000000000000001e100Initial program 85.3%
+-commutative85.3%
fma-define85.3%
*-commutative85.3%
sub-neg85.3%
*-commutative85.3%
sub-neg85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in c around inf 54.9%
Taylor expanded in a around 0 36.4%
mul-1-neg36.4%
*-commutative36.4%
distribute-rgt-neg-in36.4%
Simplified36.4%
Final simplification40.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -4.8e+70) (not (<= z 2.3e+52))) (* c (* z (- b))) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -4.8e+70) || !(z <= 2.3e+52)) {
tmp = c * (z * -b);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-4.8d+70)) .or. (.not. (z <= 2.3d+52))) then
tmp = c * (z * -b)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -4.8e+70) || !(z <= 2.3e+52)) {
tmp = c * (z * -b);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -4.8e+70) or not (z <= 2.3e+52): tmp = c * (z * -b) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -4.8e+70) || !(z <= 2.3e+52)) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -4.8e+70) || ~((z <= 2.3e+52))) tmp = c * (z * -b); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -4.8e+70], N[Not[LessEqual[z, 2.3e+52]], $MachinePrecision]], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+70} \lor \neg \left(z \leq 2.3 \cdot 10^{+52}\right):\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if z < -4.79999999999999974e70 or 2.3e52 < z Initial program 58.9%
+-commutative58.9%
fma-define61.7%
*-commutative61.7%
sub-neg61.7%
*-commutative61.7%
sub-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in c around inf 48.1%
Taylor expanded in a around 0 44.2%
mul-1-neg44.2%
*-commutative44.2%
distribute-rgt-neg-in44.2%
Simplified44.2%
if -4.79999999999999974e70 < z < 2.3e52Initial program 79.4%
+-commutative79.4%
fma-define79.4%
*-commutative79.4%
sub-neg79.4%
*-commutative79.4%
sub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in c around inf 36.5%
Taylor expanded in a around inf 30.3%
Final simplification36.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -2.9e-80) (* c (* a j)) (if (<= j 2e-103) (* a (* x (- t))) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.9e-80) {
tmp = c * (a * j);
} else if (j <= 2e-103) {
tmp = a * (x * -t);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-2.9d-80)) then
tmp = c * (a * j)
else if (j <= 2d-103) then
tmp = a * (x * -t)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.9e-80) {
tmp = c * (a * j);
} else if (j <= 2e-103) {
tmp = a * (x * -t);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.9e-80: tmp = c * (a * j) elif j <= 2e-103: tmp = a * (x * -t) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.9e-80) tmp = Float64(c * Float64(a * j)); elseif (j <= 2e-103) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.9e-80) tmp = c * (a * j); elseif (j <= 2e-103) tmp = a * (x * -t); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.9e-80], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e-103], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.9 \cdot 10^{-80}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{-103}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -2.89999999999999998e-80Initial program 72.1%
+-commutative72.1%
fma-define73.3%
*-commutative73.3%
sub-neg73.3%
*-commutative73.3%
sub-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in c around inf 50.5%
Taylor expanded in a around inf 37.9%
if -2.89999999999999998e-80 < j < 1.99999999999999992e-103Initial program 66.6%
+-commutative66.6%
fma-define66.6%
*-commutative66.6%
sub-neg66.6%
*-commutative66.6%
sub-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in a around inf 30.9%
+-commutative30.9%
mul-1-neg30.9%
unsub-neg30.9%
Simplified30.9%
Taylor expanded in c around 0 30.9%
mul-1-neg30.9%
distribute-lft-neg-out30.9%
*-commutative30.9%
Simplified30.9%
if 1.99999999999999992e-103 < j Initial program 73.9%
+-commutative73.9%
fma-define76.2%
*-commutative76.2%
sub-neg76.2%
*-commutative76.2%
sub-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in a around inf 39.8%
+-commutative39.8%
mul-1-neg39.8%
unsub-neg39.8%
Simplified39.8%
Taylor expanded in c around inf 34.5%
(FPCore (x y z t a b c i j) :precision binary64 (* j (* a c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return j * (a * c);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = j * (a * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return j * (a * c);
}
def code(x, y, z, t, a, b, c, i, j): return j * (a * c)
function code(x, y, z, t, a, b, c, i, j) return Float64(j * Float64(a * c)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = j * (a * c); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
j \cdot \left(a \cdot c\right)
\end{array}
Initial program 70.9%
+-commutative70.9%
fma-define72.1%
*-commutative72.1%
sub-neg72.1%
*-commutative72.1%
sub-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in c around inf 41.3%
Taylor expanded in a around inf 25.0%
associate-*r*25.4%
Simplified25.4%
Final simplification25.4%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (a * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 70.9%
+-commutative70.9%
fma-define72.1%
*-commutative72.1%
sub-neg72.1%
*-commutative72.1%
sub-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in c around inf 41.3%
Taylor expanded in a around inf 25.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 70.9%
+-commutative70.9%
fma-define72.1%
*-commutative72.1%
sub-neg72.1%
*-commutative72.1%
sub-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in a around inf 38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
Simplified38.5%
Taylor expanded in c around inf 25.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024185
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))