
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* c (- (* t j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
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 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around inf 51.8%
*-commutative51.8%
*-commutative51.8%
Simplified51.8%
Final simplification86.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (* z (- (* a (/ i z)) c)))))
(if (<= b -8.5e+83)
t_3
(if (<= b -1.15e-95)
t_1
(if (<= b -3.8e-109)
(* z (- (* x y) (* b c)))
(if (<= b -2.4e-111)
t_2
(if (<= b -2.6e-282)
t_1
(if (<= b 3e-242)
(* x (* a (- (* y (/ z a)) t)))
(if (<= b 4.1e-228)
(* y (- (* x z) (* i j)))
(if (<= b 2.3e-129)
t_2
(if (<= b 0.00032) (* x (- (* y z) (* t a))) t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -8.5e+83) {
tmp = t_3;
} else if (b <= -1.15e-95) {
tmp = t_1;
} else if (b <= -3.8e-109) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.4e-111) {
tmp = t_2;
} else if (b <= -2.6e-282) {
tmp = t_1;
} else if (b <= 3e-242) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (b <= 4.1e-228) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.3e-129) {
tmp = t_2;
} else if (b <= 0.00032) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t * ((c * j) - (x * a))
t_3 = b * (z * ((a * (i / z)) - c))
if (b <= (-8.5d+83)) then
tmp = t_3
else if (b <= (-1.15d-95)) then
tmp = t_1
else if (b <= (-3.8d-109)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2.4d-111)) then
tmp = t_2
else if (b <= (-2.6d-282)) then
tmp = t_1
else if (b <= 3d-242) then
tmp = x * (a * ((y * (z / a)) - t))
else if (b <= 4.1d-228) then
tmp = y * ((x * z) - (i * j))
else if (b <= 2.3d-129) then
tmp = t_2
else if (b <= 0.00032d0) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_3
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 * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -8.5e+83) {
tmp = t_3;
} else if (b <= -1.15e-95) {
tmp = t_1;
} else if (b <= -3.8e-109) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.4e-111) {
tmp = t_2;
} else if (b <= -2.6e-282) {
tmp = t_1;
} else if (b <= 3e-242) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (b <= 4.1e-228) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.3e-129) {
tmp = t_2;
} else if (b <= 0.00032) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t * ((c * j) - (x * a)) t_3 = b * (z * ((a * (i / z)) - c)) tmp = 0 if b <= -8.5e+83: tmp = t_3 elif b <= -1.15e-95: tmp = t_1 elif b <= -3.8e-109: tmp = z * ((x * y) - (b * c)) elif b <= -2.4e-111: tmp = t_2 elif b <= -2.6e-282: tmp = t_1 elif b <= 3e-242: tmp = x * (a * ((y * (z / a)) - t)) elif b <= 4.1e-228: tmp = y * ((x * z) - (i * j)) elif b <= 2.3e-129: tmp = t_2 elif b <= 0.00032: tmp = x * ((y * z) - (t * a)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))) tmp = 0.0 if (b <= -8.5e+83) tmp = t_3; elseif (b <= -1.15e-95) tmp = t_1; elseif (b <= -3.8e-109) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2.4e-111) tmp = t_2; elseif (b <= -2.6e-282) tmp = t_1; elseif (b <= 3e-242) tmp = Float64(x * Float64(a * Float64(Float64(y * Float64(z / a)) - t))); elseif (b <= 4.1e-228) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 2.3e-129) tmp = t_2; elseif (b <= 0.00032) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t * ((c * j) - (x * a)); t_3 = b * (z * ((a * (i / z)) - c)); tmp = 0.0; if (b <= -8.5e+83) tmp = t_3; elseif (b <= -1.15e-95) tmp = t_1; elseif (b <= -3.8e-109) tmp = z * ((x * y) - (b * c)); elseif (b <= -2.4e-111) tmp = t_2; elseif (b <= -2.6e-282) tmp = t_1; elseif (b <= 3e-242) tmp = x * (a * ((y * (z / a)) - t)); elseif (b <= 4.1e-228) tmp = y * ((x * z) - (i * j)); elseif (b <= 2.3e-129) tmp = t_2; elseif (b <= 0.00032) tmp = x * ((y * z) - (t * a)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.5e+83], t$95$3, If[LessEqual[b, -1.15e-95], t$95$1, If[LessEqual[b, -3.8e-109], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.4e-111], t$95$2, If[LessEqual[b, -2.6e-282], t$95$1, If[LessEqual[b, 3e-242], N[(x * N[(a * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.1e-228], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-129], t$95$2, If[LessEqual[b, 0.00032], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{if}\;b \leq -8.5 \cdot 10^{+83}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-109}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-111}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-242}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 0.00032:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -8.4999999999999995e83 or 3.20000000000000026e-4 < b Initial program 74.8%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in z around inf 73.6%
associate-/l*72.8%
Simplified72.8%
if -8.4999999999999995e83 < b < -1.15e-95 or -2.4000000000000001e-111 < b < -2.60000000000000012e-282Initial program 85.0%
Taylor expanded in j around inf 58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
if -1.15e-95 < b < -3.80000000000000002e-109Initial program 62.0%
Taylor expanded in z around inf 99.7%
*-commutative99.7%
Simplified99.7%
if -3.80000000000000002e-109 < b < -2.4000000000000001e-111 or 4.09999999999999997e-228 < b < 2.3e-129Initial program 70.6%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
if -2.60000000000000012e-282 < b < 3e-242Initial program 71.2%
Taylor expanded in z around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in y around -inf 71.0%
Simplified76.4%
Taylor expanded in x around inf 59.5%
associate-*r/59.5%
mul-1-neg59.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
Taylor expanded in a around -inf 59.4%
mul-1-neg59.4%
distribute-rgt-neg-in59.4%
mul-1-neg59.4%
unsub-neg59.4%
associate-/l*65.2%
Simplified65.2%
if 3e-242 < b < 4.09999999999999997e-228Initial program 50.0%
Taylor expanded in y around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if 2.3e-129 < b < 3.20000000000000026e-4Initial program 87.1%
Taylor expanded in c around 0 87.1%
Taylor expanded in x around inf 66.0%
*-commutative66.0%
*-commutative66.0%
*-commutative66.0%
Simplified66.0%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (* z (- (* a (/ i z)) c)))))
(if (<= b -5.8e+82)
t_3
(if (<= b -1.15e-88)
t_1
(if (<= b -2.15e-108)
(* z (- (* x y) (* b c)))
(if (<= b -6.2e-114)
t_2
(if (<= b -3.2e-281)
t_1
(if (<= b 2.3e-243)
(* x (* a (- (* y (/ z a)) t)))
(if (<= b 1.28e-228)
(* y (- (* x z) (* i j)))
(if (<= b 3.7e-131)
t_2
(if (<= b 0.00036)
(* x (* y (- z (/ (* t a) y))))
t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -5.8e+82) {
tmp = t_3;
} else if (b <= -1.15e-88) {
tmp = t_1;
} else if (b <= -2.15e-108) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -6.2e-114) {
tmp = t_2;
} else if (b <= -3.2e-281) {
tmp = t_1;
} else if (b <= 2.3e-243) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (b <= 1.28e-228) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 3.7e-131) {
tmp = t_2;
} else if (b <= 0.00036) {
tmp = x * (y * (z - ((t * a) / y)));
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t * ((c * j) - (x * a))
t_3 = b * (z * ((a * (i / z)) - c))
if (b <= (-5.8d+82)) then
tmp = t_3
else if (b <= (-1.15d-88)) then
tmp = t_1
else if (b <= (-2.15d-108)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-6.2d-114)) then
tmp = t_2
else if (b <= (-3.2d-281)) then
tmp = t_1
else if (b <= 2.3d-243) then
tmp = x * (a * ((y * (z / a)) - t))
else if (b <= 1.28d-228) then
tmp = y * ((x * z) - (i * j))
else if (b <= 3.7d-131) then
tmp = t_2
else if (b <= 0.00036d0) then
tmp = x * (y * (z - ((t * a) / y)))
else
tmp = t_3
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 * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -5.8e+82) {
tmp = t_3;
} else if (b <= -1.15e-88) {
tmp = t_1;
} else if (b <= -2.15e-108) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -6.2e-114) {
tmp = t_2;
} else if (b <= -3.2e-281) {
tmp = t_1;
} else if (b <= 2.3e-243) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (b <= 1.28e-228) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 3.7e-131) {
tmp = t_2;
} else if (b <= 0.00036) {
tmp = x * (y * (z - ((t * a) / y)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t * ((c * j) - (x * a)) t_3 = b * (z * ((a * (i / z)) - c)) tmp = 0 if b <= -5.8e+82: tmp = t_3 elif b <= -1.15e-88: tmp = t_1 elif b <= -2.15e-108: tmp = z * ((x * y) - (b * c)) elif b <= -6.2e-114: tmp = t_2 elif b <= -3.2e-281: tmp = t_1 elif b <= 2.3e-243: tmp = x * (a * ((y * (z / a)) - t)) elif b <= 1.28e-228: tmp = y * ((x * z) - (i * j)) elif b <= 3.7e-131: tmp = t_2 elif b <= 0.00036: tmp = x * (y * (z - ((t * a) / y))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))) tmp = 0.0 if (b <= -5.8e+82) tmp = t_3; elseif (b <= -1.15e-88) tmp = t_1; elseif (b <= -2.15e-108) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -6.2e-114) tmp = t_2; elseif (b <= -3.2e-281) tmp = t_1; elseif (b <= 2.3e-243) tmp = Float64(x * Float64(a * Float64(Float64(y * Float64(z / a)) - t))); elseif (b <= 1.28e-228) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 3.7e-131) tmp = t_2; elseif (b <= 0.00036) tmp = Float64(x * Float64(y * Float64(z - Float64(Float64(t * a) / y)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t * ((c * j) - (x * a)); t_3 = b * (z * ((a * (i / z)) - c)); tmp = 0.0; if (b <= -5.8e+82) tmp = t_3; elseif (b <= -1.15e-88) tmp = t_1; elseif (b <= -2.15e-108) tmp = z * ((x * y) - (b * c)); elseif (b <= -6.2e-114) tmp = t_2; elseif (b <= -3.2e-281) tmp = t_1; elseif (b <= 2.3e-243) tmp = x * (a * ((y * (z / a)) - t)); elseif (b <= 1.28e-228) tmp = y * ((x * z) - (i * j)); elseif (b <= 3.7e-131) tmp = t_2; elseif (b <= 0.00036) tmp = x * (y * (z - ((t * a) / y))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+82], t$95$3, If[LessEqual[b, -1.15e-88], t$95$1, If[LessEqual[b, -2.15e-108], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e-114], t$95$2, If[LessEqual[b, -3.2e-281], t$95$1, If[LessEqual[b, 2.3e-243], N[(x * N[(a * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.28e-228], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-131], t$95$2, If[LessEqual[b, 0.00036], N[(x * N[(y * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+82}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.15 \cdot 10^{-108}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-114}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-243}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\\
\mathbf{elif}\;b \leq 1.28 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-131}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 0.00036:\\
\;\;\;\;x \cdot \left(y \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -5.8000000000000003e82 or 3.60000000000000023e-4 < b Initial program 74.8%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in z around inf 73.6%
associate-/l*72.8%
Simplified72.8%
if -5.8000000000000003e82 < b < -1.14999999999999993e-88 or -6.2e-114 < b < -3.2000000000000001e-281Initial program 85.0%
Taylor expanded in j around inf 58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
if -1.14999999999999993e-88 < b < -2.15e-108Initial program 62.0%
Taylor expanded in z around inf 99.7%
*-commutative99.7%
Simplified99.7%
if -2.15e-108 < b < -6.2e-114 or 1.28000000000000006e-228 < b < 3.7000000000000002e-131Initial program 70.6%
Taylor expanded in t around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
if -3.2000000000000001e-281 < b < 2.3e-243Initial program 71.2%
Taylor expanded in z around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in y around -inf 71.0%
Simplified76.4%
Taylor expanded in x around inf 59.5%
associate-*r/59.5%
mul-1-neg59.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
Taylor expanded in a around -inf 59.4%
mul-1-neg59.4%
distribute-rgt-neg-in59.4%
mul-1-neg59.4%
unsub-neg59.4%
associate-/l*65.2%
Simplified65.2%
if 2.3e-243 < b < 1.28000000000000006e-228Initial program 50.0%
Taylor expanded in y around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if 3.7000000000000002e-131 < b < 3.60000000000000023e-4Initial program 87.1%
Taylor expanded in z around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in y around -inf 74.3%
Simplified74.7%
Taylor expanded in x around inf 70.2%
associate-*r/70.2%
mul-1-neg70.2%
distribute-rgt-neg-in70.2%
Simplified70.2%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (* z (- (* a (/ i z)) c)))))
(if (<= b -8e+82)
t_2
(if (<= b -8.5e-91)
t_1
(if (<= b -9.2e-108)
(* z (- (* x y) (* b c)))
(if (<= b -1e-140)
(* z (- (* x y) (* a (/ (* x t) z))))
(if (<= b -1.22e-282)
t_1
(if (<= b 4.8e-242)
(* x (* a (- (* y (/ z a)) t)))
(if (<= b 2.9e-228)
(* y (- (* x z) (* i j)))
(if (<= b 1.35e-129)
(* t (- (* c j) (* x a)))
(if (<= b 0.00036)
(* x (* y (- z (/ (* t a) y))))
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 * ((t * c) - (y * i));
double t_2 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -8e+82) {
tmp = t_2;
} else if (b <= -8.5e-91) {
tmp = t_1;
} else if (b <= -9.2e-108) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -1e-140) {
tmp = z * ((x * y) - (a * ((x * t) / z)));
} else if (b <= -1.22e-282) {
tmp = t_1;
} else if (b <= 4.8e-242) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (b <= 2.9e-228) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.35e-129) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 0.00036) {
tmp = x * (y * (z - ((t * a) / y)));
} 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 * ((t * c) - (y * i))
t_2 = b * (z * ((a * (i / z)) - c))
if (b <= (-8d+82)) then
tmp = t_2
else if (b <= (-8.5d-91)) then
tmp = t_1
else if (b <= (-9.2d-108)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-1d-140)) then
tmp = z * ((x * y) - (a * ((x * t) / z)))
else if (b <= (-1.22d-282)) then
tmp = t_1
else if (b <= 4.8d-242) then
tmp = x * (a * ((y * (z / a)) - t))
else if (b <= 2.9d-228) then
tmp = y * ((x * z) - (i * j))
else if (b <= 1.35d-129) then
tmp = t * ((c * j) - (x * a))
else if (b <= 0.00036d0) then
tmp = x * (y * (z - ((t * a) / y)))
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 * ((t * c) - (y * i));
double t_2 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -8e+82) {
tmp = t_2;
} else if (b <= -8.5e-91) {
tmp = t_1;
} else if (b <= -9.2e-108) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -1e-140) {
tmp = z * ((x * y) - (a * ((x * t) / z)));
} else if (b <= -1.22e-282) {
tmp = t_1;
} else if (b <= 4.8e-242) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (b <= 2.9e-228) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.35e-129) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 0.00036) {
tmp = x * (y * (z - ((t * a) / y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * (z * ((a * (i / z)) - c)) tmp = 0 if b <= -8e+82: tmp = t_2 elif b <= -8.5e-91: tmp = t_1 elif b <= -9.2e-108: tmp = z * ((x * y) - (b * c)) elif b <= -1e-140: tmp = z * ((x * y) - (a * ((x * t) / z))) elif b <= -1.22e-282: tmp = t_1 elif b <= 4.8e-242: tmp = x * (a * ((y * (z / a)) - t)) elif b <= 2.9e-228: tmp = y * ((x * z) - (i * j)) elif b <= 1.35e-129: tmp = t * ((c * j) - (x * a)) elif b <= 0.00036: tmp = x * (y * (z - ((t * a) / y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))) tmp = 0.0 if (b <= -8e+82) tmp = t_2; elseif (b <= -8.5e-91) tmp = t_1; elseif (b <= -9.2e-108) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -1e-140) tmp = Float64(z * Float64(Float64(x * y) - Float64(a * Float64(Float64(x * t) / z)))); elseif (b <= -1.22e-282) tmp = t_1; elseif (b <= 4.8e-242) tmp = Float64(x * Float64(a * Float64(Float64(y * Float64(z / a)) - t))); elseif (b <= 2.9e-228) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 1.35e-129) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 0.00036) tmp = Float64(x * Float64(y * Float64(z - Float64(Float64(t * a) / y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * (z * ((a * (i / z)) - c)); tmp = 0.0; if (b <= -8e+82) tmp = t_2; elseif (b <= -8.5e-91) tmp = t_1; elseif (b <= -9.2e-108) tmp = z * ((x * y) - (b * c)); elseif (b <= -1e-140) tmp = z * ((x * y) - (a * ((x * t) / z))); elseif (b <= -1.22e-282) tmp = t_1; elseif (b <= 4.8e-242) tmp = x * (a * ((y * (z / a)) - t)); elseif (b <= 2.9e-228) tmp = y * ((x * z) - (i * j)); elseif (b <= 1.35e-129) tmp = t * ((c * j) - (x * a)); elseif (b <= 0.00036) tmp = x * (y * (z - ((t * a) / y))); 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e+82], t$95$2, If[LessEqual[b, -8.5e-91], t$95$1, If[LessEqual[b, -9.2e-108], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-140], N[(z * N[(N[(x * y), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.22e-282], t$95$1, If[LessEqual[b, 4.8e-242], N[(x * N[(a * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e-228], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-129], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00036], N[(x * N[(y * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{+82}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{-108}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-140}:\\
\;\;\;\;z \cdot \left(x \cdot y - a \cdot \frac{x \cdot t}{z}\right)\\
\mathbf{elif}\;b \leq -1.22 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-242}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-129}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 0.00036:\\
\;\;\;\;x \cdot \left(y \cdot \left(z - \frac{t \cdot a}{y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -7.9999999999999997e82 or 3.60000000000000023e-4 < b Initial program 74.8%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in z around inf 73.6%
associate-/l*72.8%
Simplified72.8%
if -7.9999999999999997e82 < b < -8.49999999999999985e-91 or -9.9999999999999998e-141 < b < -1.22e-282Initial program 83.9%
Taylor expanded in j around inf 58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
if -8.49999999999999985e-91 < b < -9.19999999999999983e-108Initial program 75.0%
Taylor expanded in z around inf 99.6%
*-commutative99.6%
Simplified99.6%
if -9.19999999999999983e-108 < b < -9.9999999999999998e-141Initial program 76.5%
Taylor expanded in c around 0 76.5%
Taylor expanded in x around inf 41.4%
*-commutative41.4%
*-commutative41.4%
*-commutative41.4%
Simplified41.4%
Taylor expanded in z around inf 75.3%
+-commutative88.2%
mul-1-neg88.2%
unsub-neg88.2%
associate-/l*88.4%
*-commutative88.4%
Simplified75.5%
if -1.22e-282 < b < 4.8000000000000002e-242Initial program 71.2%
Taylor expanded in z around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in y around -inf 71.0%
Simplified76.4%
Taylor expanded in x around inf 59.5%
associate-*r/59.5%
mul-1-neg59.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
Taylor expanded in a around -inf 59.4%
mul-1-neg59.4%
distribute-rgt-neg-in59.4%
mul-1-neg59.4%
unsub-neg59.4%
associate-/l*65.2%
Simplified65.2%
if 4.8000000000000002e-242 < b < 2.9000000000000001e-228Initial program 50.0%
Taylor expanded in y around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if 2.9000000000000001e-228 < b < 1.35e-129Initial program 72.3%
Taylor expanded in t around inf 59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
if 1.35e-129 < b < 3.60000000000000023e-4Initial program 87.1%
Taylor expanded in z around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in y around -inf 74.3%
Simplified74.7%
Taylor expanded in x around inf 70.2%
associate-*r/70.2%
mul-1-neg70.2%
distribute-rgt-neg-in70.2%
Simplified70.2%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (+ (* x (- (* y z) (* t a))) (* t (* c j)))))
(if (<= b -1.05e+80)
(* b (* z (- (* a (/ i z)) c)))
(if (<= b -2.6e-78)
t_2
(if (<= b -3e-108)
t_1
(if (<= b -1.85e-208)
t_3
(if (<= b -7.2e-281)
t_2
(if (<= b 0.0028)
t_3
(if (<= b 2.85e+57)
t_1
(if (<= b 2.9e+72) t_2 (* b (- (* a i) (* z c)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = j * ((t * c) - (y * i));
double t_3 = (x * ((y * z) - (t * a))) + (t * (c * j));
double tmp;
if (b <= -1.05e+80) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -2.6e-78) {
tmp = t_2;
} else if (b <= -3e-108) {
tmp = t_1;
} else if (b <= -1.85e-208) {
tmp = t_3;
} else if (b <= -7.2e-281) {
tmp = t_2;
} else if (b <= 0.0028) {
tmp = t_3;
} else if (b <= 2.85e+57) {
tmp = t_1;
} else if (b <= 2.9e+72) {
tmp = t_2;
} else {
tmp = b * ((a * i) - (z * 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = j * ((t * c) - (y * i))
t_3 = (x * ((y * z) - (t * a))) + (t * (c * j))
if (b <= (-1.05d+80)) then
tmp = b * (z * ((a * (i / z)) - c))
else if (b <= (-2.6d-78)) then
tmp = t_2
else if (b <= (-3d-108)) then
tmp = t_1
else if (b <= (-1.85d-208)) then
tmp = t_3
else if (b <= (-7.2d-281)) then
tmp = t_2
else if (b <= 0.0028d0) then
tmp = t_3
else if (b <= 2.85d+57) then
tmp = t_1
else if (b <= 2.9d+72) then
tmp = t_2
else
tmp = b * ((a * i) - (z * 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 t_1 = z * ((x * y) - (b * c));
double t_2 = j * ((t * c) - (y * i));
double t_3 = (x * ((y * z) - (t * a))) + (t * (c * j));
double tmp;
if (b <= -1.05e+80) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -2.6e-78) {
tmp = t_2;
} else if (b <= -3e-108) {
tmp = t_1;
} else if (b <= -1.85e-208) {
tmp = t_3;
} else if (b <= -7.2e-281) {
tmp = t_2;
} else if (b <= 0.0028) {
tmp = t_3;
} else if (b <= 2.85e+57) {
tmp = t_1;
} else if (b <= 2.9e+72) {
tmp = t_2;
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = j * ((t * c) - (y * i)) t_3 = (x * ((y * z) - (t * a))) + (t * (c * j)) tmp = 0 if b <= -1.05e+80: tmp = b * (z * ((a * (i / z)) - c)) elif b <= -2.6e-78: tmp = t_2 elif b <= -3e-108: tmp = t_1 elif b <= -1.85e-208: tmp = t_3 elif b <= -7.2e-281: tmp = t_2 elif b <= 0.0028: tmp = t_3 elif b <= 2.85e+57: tmp = t_1 elif b <= 2.9e+72: tmp = t_2 else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(t * Float64(c * j))) tmp = 0.0 if (b <= -1.05e+80) tmp = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))); elseif (b <= -2.6e-78) tmp = t_2; elseif (b <= -3e-108) tmp = t_1; elseif (b <= -1.85e-208) tmp = t_3; elseif (b <= -7.2e-281) tmp = t_2; elseif (b <= 0.0028) tmp = t_3; elseif (b <= 2.85e+57) tmp = t_1; elseif (b <= 2.9e+72) tmp = t_2; else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = j * ((t * c) - (y * i)); t_3 = (x * ((y * z) - (t * a))) + (t * (c * j)); tmp = 0.0; if (b <= -1.05e+80) tmp = b * (z * ((a * (i / z)) - c)); elseif (b <= -2.6e-78) tmp = t_2; elseif (b <= -3e-108) tmp = t_1; elseif (b <= -1.85e-208) tmp = t_3; elseif (b <= -7.2e-281) tmp = t_2; elseif (b <= 0.0028) tmp = t_3; elseif (b <= 2.85e+57) tmp = t_1; elseif (b <= 2.9e+72) tmp = t_2; else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+80], N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.6e-78], t$95$2, If[LessEqual[b, -3e-108], t$95$1, If[LessEqual[b, -1.85e-208], t$95$3, If[LessEqual[b, -7.2e-281], t$95$2, If[LessEqual[b, 0.0028], t$95$3, If[LessEqual[b, 2.85e+57], t$95$1, If[LessEqual[b, 2.9e+72], t$95$2, N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right) + t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+80}:\\
\;\;\;\;b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-78}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{-208}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-281}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 0.0028:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 2.85 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+72}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -1.05000000000000001e80Initial program 76.5%
Taylor expanded in b around inf 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in z around inf 84.4%
associate-/l*84.4%
Simplified84.4%
if -1.05000000000000001e80 < b < -2.6000000000000001e-78 or -1.8500000000000001e-208 < b < -7.20000000000000013e-281 or 2.8499999999999999e57 < b < 2.90000000000000017e72Initial program 84.5%
Taylor expanded in j around inf 62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if -2.6000000000000001e-78 < b < -2.99999999999999993e-108 or 0.00279999999999999997 < b < 2.8499999999999999e57Initial program 68.8%
Taylor expanded in z around inf 74.0%
*-commutative74.0%
Simplified74.0%
if -2.99999999999999993e-108 < b < -1.8500000000000001e-208 or -7.20000000000000013e-281 < b < 0.00279999999999999997Initial program 77.0%
Taylor expanded in b around 0 78.1%
Taylor expanded in c around inf 65.0%
*-commutative65.0%
*-commutative65.0%
associate-*r*65.0%
Simplified65.0%
if 2.90000000000000017e72 < b Initial program 73.4%
Taylor expanded in b around inf 72.5%
*-commutative72.5%
Simplified72.5%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* t (* c j))))
(t_2 (* y (+ (* x z) (- (/ (* a (* b i)) y) (* i j))))))
(if (<= b -7.4e+87)
(* b (* z (- (* a (/ i z)) c)))
(if (<= b -2.05e-77)
t_2
(if (<= b -8.7e-209)
t_1
(if (<= b -3.2e-281)
(* j (- (* t c) (* y i)))
(if (<= b 8.8e-89)
t_1
(if (<= b 1.28e+42) t_2 (* b (- (* a i) (* z c)))))))))))
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))) + (t * (c * j));
double t_2 = y * ((x * z) + (((a * (b * i)) / y) - (i * j)));
double tmp;
if (b <= -7.4e+87) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -2.05e-77) {
tmp = t_2;
} else if (b <= -8.7e-209) {
tmp = t_1;
} else if (b <= -3.2e-281) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 8.8e-89) {
tmp = t_1;
} else if (b <= 1.28e+42) {
tmp = t_2;
} else {
tmp = b * ((a * i) - (z * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (t * (c * j))
t_2 = y * ((x * z) + (((a * (b * i)) / y) - (i * j)))
if (b <= (-7.4d+87)) then
tmp = b * (z * ((a * (i / z)) - c))
else if (b <= (-2.05d-77)) then
tmp = t_2
else if (b <= (-8.7d-209)) then
tmp = t_1
else if (b <= (-3.2d-281)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 8.8d-89) then
tmp = t_1
else if (b <= 1.28d+42) then
tmp = t_2
else
tmp = b * ((a * i) - (z * 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 t_1 = (x * ((y * z) - (t * a))) + (t * (c * j));
double t_2 = y * ((x * z) + (((a * (b * i)) / y) - (i * j)));
double tmp;
if (b <= -7.4e+87) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= -2.05e-77) {
tmp = t_2;
} else if (b <= -8.7e-209) {
tmp = t_1;
} else if (b <= -3.2e-281) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 8.8e-89) {
tmp = t_1;
} else if (b <= 1.28e+42) {
tmp = t_2;
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (t * (c * j)) t_2 = y * ((x * z) + (((a * (b * i)) / y) - (i * j))) tmp = 0 if b <= -7.4e+87: tmp = b * (z * ((a * (i / z)) - c)) elif b <= -2.05e-77: tmp = t_2 elif b <= -8.7e-209: tmp = t_1 elif b <= -3.2e-281: tmp = j * ((t * c) - (y * i)) elif b <= 8.8e-89: tmp = t_1 elif b <= 1.28e+42: tmp = t_2 else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(t * Float64(c * j))) t_2 = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(a * Float64(b * i)) / y) - Float64(i * j)))) tmp = 0.0 if (b <= -7.4e+87) tmp = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))); elseif (b <= -2.05e-77) tmp = t_2; elseif (b <= -8.7e-209) tmp = t_1; elseif (b <= -3.2e-281) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 8.8e-89) tmp = t_1; elseif (b <= 1.28e+42) tmp = t_2; else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (t * (c * j)); t_2 = y * ((x * z) + (((a * (b * i)) / y) - (i * j))); tmp = 0.0; if (b <= -7.4e+87) tmp = b * (z * ((a * (i / z)) - c)); elseif (b <= -2.05e-77) tmp = t_2; elseif (b <= -8.7e-209) tmp = t_1; elseif (b <= -3.2e-281) tmp = j * ((t * c) - (y * i)); elseif (b <= 8.8e-89) tmp = t_1; elseif (b <= 1.28e+42) tmp = t_2; else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.4e+87], N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.05e-77], t$95$2, If[LessEqual[b, -8.7e-209], t$95$1, If[LessEqual[b, -3.2e-281], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.8e-89], t$95$1, If[LessEqual[b, 1.28e+42], t$95$2, N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + t \cdot \left(c \cdot j\right)\\
t_2 := y \cdot \left(x \cdot z + \left(\frac{a \cdot \left(b \cdot i\right)}{y} - i \cdot j\right)\right)\\
\mathbf{if}\;b \leq -7.4 \cdot 10^{+87}:\\
\;\;\;\;b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-77}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.7 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-281}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.28 \cdot 10^{+42}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -7.40000000000000005e87Initial program 75.5%
Taylor expanded in b around inf 83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in z around inf 83.7%
associate-/l*83.7%
Simplified83.7%
if -7.40000000000000005e87 < b < -2.04999999999999981e-77 or 8.80000000000000048e-89 < b < 1.28000000000000004e42Initial program 82.6%
Taylor expanded in z around inf 79.6%
+-commutative79.6%
mul-1-neg79.6%
unsub-neg79.6%
associate-/l*79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in y around -inf 75.0%
Simplified71.7%
Taylor expanded in i around inf 59.7%
if -2.04999999999999981e-77 < b < -8.7000000000000002e-209 or -3.2000000000000001e-281 < b < 8.80000000000000048e-89Initial program 76.9%
Taylor expanded in b around 0 79.6%
Taylor expanded in c around inf 67.5%
*-commutative67.5%
*-commutative67.5%
associate-*r*69.0%
Simplified69.0%
if -8.7000000000000002e-209 < b < -3.2000000000000001e-281Initial program 71.2%
Taylor expanded in j around inf 71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
if 1.28000000000000004e42 < b Initial program 77.0%
Taylor expanded in b around inf 70.7%
*-commutative70.7%
Simplified70.7%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))) (t_2 (* b (* z (- c)))))
(if (<= b -8.2e+113)
t_2
(if (<= b -8.6e-18)
t_1
(if (<= b -5.2e-109)
t_2
(if (<= b 1.15e-231)
(* c (* t j))
(if (<= b 0.00083)
(* a (* x (- t)))
(if (or (<= b 1.35e+197) (not (<= b 1.35e+235))) t_2 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 = a * (b * i);
double t_2 = b * (z * -c);
double tmp;
if (b <= -8.2e+113) {
tmp = t_2;
} else if (b <= -8.6e-18) {
tmp = t_1;
} else if (b <= -5.2e-109) {
tmp = t_2;
} else if (b <= 1.15e-231) {
tmp = c * (t * j);
} else if (b <= 0.00083) {
tmp = a * (x * -t);
} else if ((b <= 1.35e+197) || !(b <= 1.35e+235)) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = a * (b * i)
t_2 = b * (z * -c)
if (b <= (-8.2d+113)) then
tmp = t_2
else if (b <= (-8.6d-18)) then
tmp = t_1
else if (b <= (-5.2d-109)) then
tmp = t_2
else if (b <= 1.15d-231) then
tmp = c * (t * j)
else if (b <= 0.00083d0) then
tmp = a * (x * -t)
else if ((b <= 1.35d+197) .or. (.not. (b <= 1.35d+235))) then
tmp = t_2
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 = a * (b * i);
double t_2 = b * (z * -c);
double tmp;
if (b <= -8.2e+113) {
tmp = t_2;
} else if (b <= -8.6e-18) {
tmp = t_1;
} else if (b <= -5.2e-109) {
tmp = t_2;
} else if (b <= 1.15e-231) {
tmp = c * (t * j);
} else if (b <= 0.00083) {
tmp = a * (x * -t);
} else if ((b <= 1.35e+197) || !(b <= 1.35e+235)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) t_2 = b * (z * -c) tmp = 0 if b <= -8.2e+113: tmp = t_2 elif b <= -8.6e-18: tmp = t_1 elif b <= -5.2e-109: tmp = t_2 elif b <= 1.15e-231: tmp = c * (t * j) elif b <= 0.00083: tmp = a * (x * -t) elif (b <= 1.35e+197) or not (b <= 1.35e+235): tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) t_2 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (b <= -8.2e+113) tmp = t_2; elseif (b <= -8.6e-18) tmp = t_1; elseif (b <= -5.2e-109) tmp = t_2; elseif (b <= 1.15e-231) tmp = Float64(c * Float64(t * j)); elseif (b <= 0.00083) tmp = Float64(a * Float64(x * Float64(-t))); elseif ((b <= 1.35e+197) || !(b <= 1.35e+235)) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); t_2 = b * (z * -c); tmp = 0.0; if (b <= -8.2e+113) tmp = t_2; elseif (b <= -8.6e-18) tmp = t_1; elseif (b <= -5.2e-109) tmp = t_2; elseif (b <= 1.15e-231) tmp = c * (t * j); elseif (b <= 0.00083) tmp = a * (x * -t); elseif ((b <= 1.35e+197) || ~((b <= 1.35e+235))) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.2e+113], t$95$2, If[LessEqual[b, -8.6e-18], t$95$1, If[LessEqual[b, -5.2e-109], t$95$2, If[LessEqual[b, 1.15e-231], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00083], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.35e+197], N[Not[LessEqual[b, 1.35e+235]], $MachinePrecision]], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
t_2 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -8.2 \cdot 10^{+113}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.6 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-109}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-231}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 0.00083:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+197} \lor \neg \left(b \leq 1.35 \cdot 10^{+235}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.19999999999999985e113 or -8.6000000000000005e-18 < b < -5.1999999999999997e-109 or 8.3000000000000001e-4 < b < 1.35e197 or 1.3499999999999999e235 < b Initial program 80.5%
Taylor expanded in b around inf 69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in a around 0 51.1%
mul-1-neg51.1%
distribute-rgt-neg-in51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
Simplified51.1%
if -8.19999999999999985e113 < b < -8.6000000000000005e-18 or 1.35e197 < b < 1.3499999999999999e235Initial program 73.1%
Taylor expanded in b around inf 46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in a around inf 41.9%
*-commutative41.9%
Simplified41.9%
if -5.1999999999999997e-109 < b < 1.15e-231Initial program 73.6%
Taylor expanded in b around 0 80.1%
Taylor expanded in c around inf 37.0%
if 1.15e-231 < b < 8.3000000000000001e-4Initial program 78.9%
Taylor expanded in c around 0 81.1%
Taylor expanded in x around inf 55.7%
*-commutative55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around 0 43.0%
mul-1-neg43.0%
*-commutative43.0%
Simplified43.0%
Final simplification45.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (* z (- (* a (/ i z)) c)))))
(if (<= b -1.8e+76)
t_2
(if (<= b -5.2e-90)
t_1
(if (<= b -8.5e-110)
(* z (- (* x y) (* b c)))
(if (<= b -2e-113)
(* t (- (* c j) (* x a)))
(if (<= b -5e-308)
t_1
(if (<= b 0.00097) (* x (- (* y z) (* t a))) 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 * ((t * c) - (y * i));
double t_2 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -1.8e+76) {
tmp = t_2;
} else if (b <= -5.2e-90) {
tmp = t_1;
} else if (b <= -8.5e-110) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2e-113) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -5e-308) {
tmp = t_1;
} else if (b <= 0.00097) {
tmp = x * ((y * z) - (t * a));
} 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 * ((t * c) - (y * i))
t_2 = b * (z * ((a * (i / z)) - c))
if (b <= (-1.8d+76)) then
tmp = t_2
else if (b <= (-5.2d-90)) then
tmp = t_1
else if (b <= (-8.5d-110)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2d-113)) then
tmp = t * ((c * j) - (x * a))
else if (b <= (-5d-308)) then
tmp = t_1
else if (b <= 0.00097d0) then
tmp = x * ((y * z) - (t * a))
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 * ((t * c) - (y * i));
double t_2 = b * (z * ((a * (i / z)) - c));
double tmp;
if (b <= -1.8e+76) {
tmp = t_2;
} else if (b <= -5.2e-90) {
tmp = t_1;
} else if (b <= -8.5e-110) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2e-113) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -5e-308) {
tmp = t_1;
} else if (b <= 0.00097) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * (z * ((a * (i / z)) - c)) tmp = 0 if b <= -1.8e+76: tmp = t_2 elif b <= -5.2e-90: tmp = t_1 elif b <= -8.5e-110: tmp = z * ((x * y) - (b * c)) elif b <= -2e-113: tmp = t * ((c * j) - (x * a)) elif b <= -5e-308: tmp = t_1 elif b <= 0.00097: tmp = x * ((y * z) - (t * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))) tmp = 0.0 if (b <= -1.8e+76) tmp = t_2; elseif (b <= -5.2e-90) tmp = t_1; elseif (b <= -8.5e-110) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2e-113) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= -5e-308) tmp = t_1; elseif (b <= 0.00097) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * (z * ((a * (i / z)) - c)); tmp = 0.0; if (b <= -1.8e+76) tmp = t_2; elseif (b <= -5.2e-90) tmp = t_1; elseif (b <= -8.5e-110) tmp = z * ((x * y) - (b * c)); elseif (b <= -2e-113) tmp = t * ((c * j) - (x * a)); elseif (b <= -5e-308) tmp = t_1; elseif (b <= 0.00097) tmp = x * ((y * z) - (t * a)); 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+76], t$95$2, If[LessEqual[b, -5.2e-90], t$95$1, If[LessEqual[b, -8.5e-110], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e-113], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5e-308], t$95$1, If[LessEqual[b, 0.00097], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+76}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-110}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-113}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-308}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.00097:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.8000000000000001e76 or 9.70000000000000051e-4 < b Initial program 75.4%
Taylor expanded in b around inf 73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in z around inf 74.2%
associate-/l*73.4%
Simplified73.4%
if -1.8000000000000001e76 < b < -5.2000000000000001e-90 or -1.99999999999999996e-113 < b < -4.99999999999999955e-308Initial program 84.5%
Taylor expanded in j around inf 58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
if -5.2000000000000001e-90 < b < -8.50000000000000029e-110Initial program 62.0%
Taylor expanded in z around inf 99.7%
*-commutative99.7%
Simplified99.7%
if -8.50000000000000029e-110 < b < -1.99999999999999996e-113Initial program 51.7%
Taylor expanded in t around inf 99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
*-commutative99.2%
Simplified99.2%
if -4.99999999999999955e-308 < b < 9.70000000000000051e-4Initial program 74.8%
Taylor expanded in c around 0 78.0%
Taylor expanded in x around inf 56.0%
*-commutative56.0%
*-commutative56.0%
*-commutative56.0%
Simplified56.0%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* a (* x (- t)))))
(if (<= b -2.05e+73)
t_1
(if (<= b -5.5e-130)
t_2
(if (<= b -1e-138)
(* x (* y z))
(if (<= b -2.1e-205)
t_3
(if (<= b 1.6e-214) t_2 (if (<= b 0.00057) t_3 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 = b * ((a * i) - (z * c));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * (x * -t);
double tmp;
if (b <= -2.05e+73) {
tmp = t_1;
} else if (b <= -5.5e-130) {
tmp = t_2;
} else if (b <= -1e-138) {
tmp = x * (y * z);
} else if (b <= -2.1e-205) {
tmp = t_3;
} else if (b <= 1.6e-214) {
tmp = t_2;
} else if (b <= 0.00057) {
tmp = t_3;
} 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = c * ((t * j) - (z * b))
t_3 = a * (x * -t)
if (b <= (-2.05d+73)) then
tmp = t_1
else if (b <= (-5.5d-130)) then
tmp = t_2
else if (b <= (-1d-138)) then
tmp = x * (y * z)
else if (b <= (-2.1d-205)) then
tmp = t_3
else if (b <= 1.6d-214) then
tmp = t_2
else if (b <= 0.00057d0) then
tmp = t_3
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 = b * ((a * i) - (z * c));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * (x * -t);
double tmp;
if (b <= -2.05e+73) {
tmp = t_1;
} else if (b <= -5.5e-130) {
tmp = t_2;
} else if (b <= -1e-138) {
tmp = x * (y * z);
} else if (b <= -2.1e-205) {
tmp = t_3;
} else if (b <= 1.6e-214) {
tmp = t_2;
} else if (b <= 0.00057) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = c * ((t * j) - (z * b)) t_3 = a * (x * -t) tmp = 0 if b <= -2.05e+73: tmp = t_1 elif b <= -5.5e-130: tmp = t_2 elif b <= -1e-138: tmp = x * (y * z) elif b <= -2.1e-205: tmp = t_3 elif b <= 1.6e-214: tmp = t_2 elif b <= 0.00057: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (b <= -2.05e+73) tmp = t_1; elseif (b <= -5.5e-130) tmp = t_2; elseif (b <= -1e-138) tmp = Float64(x * Float64(y * z)); elseif (b <= -2.1e-205) tmp = t_3; elseif (b <= 1.6e-214) tmp = t_2; elseif (b <= 0.00057) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = c * ((t * j) - (z * b)); t_3 = a * (x * -t); tmp = 0.0; if (b <= -2.05e+73) tmp = t_1; elseif (b <= -5.5e-130) tmp = t_2; elseif (b <= -1e-138) tmp = x * (y * z); elseif (b <= -2.1e-205) tmp = t_3; elseif (b <= 1.6e-214) tmp = t_2; elseif (b <= 0.00057) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.05e+73], t$95$1, If[LessEqual[b, -5.5e-130], t$95$2, If[LessEqual[b, -1e-138], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-205], t$95$3, If[LessEqual[b, 1.6e-214], t$95$2, If[LessEqual[b, 0.00057], t$95$3, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;b \leq -2.05 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-130}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-138}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-205}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-214}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 0.00057:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.0499999999999999e73 or 5.6999999999999998e-4 < b Initial program 75.6%
Taylor expanded in b around inf 72.6%
*-commutative72.6%
Simplified72.6%
if -2.0499999999999999e73 < b < -5.50000000000000007e-130 or -2.09999999999999983e-205 < b < 1.60000000000000007e-214Initial program 76.3%
Taylor expanded in c around inf 45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
if -5.50000000000000007e-130 < b < -1.00000000000000007e-138Initial program 100.0%
Taylor expanded in y around inf 66.7%
+-commutative66.7%
mul-1-neg66.7%
unsub-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in x around inf 67.2%
if -1.00000000000000007e-138 < b < -2.09999999999999983e-205 or 1.60000000000000007e-214 < b < 5.6999999999999998e-4Initial program 82.7%
Taylor expanded in c around 0 84.6%
Taylor expanded in x around inf 58.1%
*-commutative58.1%
*-commutative58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in y around 0 44.7%
mul-1-neg44.7%
*-commutative44.7%
Simplified44.7%
Final simplification57.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -5.1e+79)
t_3
(if (<= b -2.6e-50)
t_1
(if (<= b -5e-104)
(* c (- (* t j) (* z b)))
(if (<= b -1.7e-207)
t_2
(if (<= b -2.1e-307) t_1 (if (<= b 0.00032) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.1e+79) {
tmp = t_3;
} else if (b <= -2.6e-50) {
tmp = t_1;
} else if (b <= -5e-104) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -1.7e-207) {
tmp = t_2;
} else if (b <= -2.1e-307) {
tmp = t_1;
} else if (b <= 0.00032) {
tmp = t_2;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-5.1d+79)) then
tmp = t_3
else if (b <= (-2.6d-50)) then
tmp = t_1
else if (b <= (-5d-104)) then
tmp = c * ((t * j) - (z * b))
else if (b <= (-1.7d-207)) then
tmp = t_2
else if (b <= (-2.1d-307)) then
tmp = t_1
else if (b <= 0.00032d0) then
tmp = t_2
else
tmp = t_3
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 * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.1e+79) {
tmp = t_3;
} else if (b <= -2.6e-50) {
tmp = t_1;
} else if (b <= -5e-104) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -1.7e-207) {
tmp = t_2;
} else if (b <= -2.1e-307) {
tmp = t_1;
} else if (b <= 0.00032) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.1e+79: tmp = t_3 elif b <= -2.6e-50: tmp = t_1 elif b <= -5e-104: tmp = c * ((t * j) - (z * b)) elif b <= -1.7e-207: tmp = t_2 elif b <= -2.1e-307: tmp = t_1 elif b <= 0.00032: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.1e+79) tmp = t_3; elseif (b <= -2.6e-50) tmp = t_1; elseif (b <= -5e-104) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= -1.7e-207) tmp = t_2; elseif (b <= -2.1e-307) tmp = t_1; elseif (b <= 0.00032) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.1e+79) tmp = t_3; elseif (b <= -2.6e-50) tmp = t_1; elseif (b <= -5e-104) tmp = c * ((t * j) - (z * b)); elseif (b <= -1.7e-207) tmp = t_2; elseif (b <= -2.1e-307) tmp = t_1; elseif (b <= 0.00032) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.1e+79], t$95$3, If[LessEqual[b, -2.6e-50], t$95$1, If[LessEqual[b, -5e-104], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-207], t$95$2, If[LessEqual[b, -2.1e-307], t$95$1, If[LessEqual[b, 0.00032], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.1 \cdot 10^{+79}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-104}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-207}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-307}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.00032:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -5.1000000000000001e79 or 3.20000000000000026e-4 < b Initial program 74.8%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
Simplified72.7%
if -5.1000000000000001e79 < b < -2.6000000000000001e-50 or -1.69999999999999999e-207 < b < -2.1000000000000001e-307Initial program 82.0%
Taylor expanded in j around inf 61.4%
*-commutative61.4%
*-commutative61.4%
Simplified61.4%
if -2.6000000000000001e-50 < b < -4.99999999999999979e-104Initial program 83.1%
Taylor expanded in c around inf 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
if -4.99999999999999979e-104 < b < -1.69999999999999999e-207 or -2.1000000000000001e-307 < b < 3.20000000000000026e-4Initial program 77.5%
Taylor expanded in c around 0 80.0%
Taylor expanded in x around inf 56.4%
*-commutative56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -2.25e+84)
t_2
(if (<= b -4.5e-92)
t_1
(if (<= b -1e-109)
(* z (- (* x y) (* b c)))
(if (<= b -7.5e-112)
(* t (- (* c j) (* x a)))
(if (<= b -1.1e-307)
t_1
(if (<= b 0.00034) (* x (- (* y z) (* t a))) 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.25e+84) {
tmp = t_2;
} else if (b <= -4.5e-92) {
tmp = t_1;
} else if (b <= -1e-109) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -7.5e-112) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -1.1e-307) {
tmp = t_1;
} else if (b <= 0.00034) {
tmp = x * ((y * z) - (t * a));
} 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 * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-2.25d+84)) then
tmp = t_2
else if (b <= (-4.5d-92)) then
tmp = t_1
else if (b <= (-1d-109)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-7.5d-112)) then
tmp = t * ((c * j) - (x * a))
else if (b <= (-1.1d-307)) then
tmp = t_1
else if (b <= 0.00034d0) then
tmp = x * ((y * z) - (t * a))
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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.25e+84) {
tmp = t_2;
} else if (b <= -4.5e-92) {
tmp = t_1;
} else if (b <= -1e-109) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -7.5e-112) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -1.1e-307) {
tmp = t_1;
} else if (b <= 0.00034) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.25e+84: tmp = t_2 elif b <= -4.5e-92: tmp = t_1 elif b <= -1e-109: tmp = z * ((x * y) - (b * c)) elif b <= -7.5e-112: tmp = t * ((c * j) - (x * a)) elif b <= -1.1e-307: tmp = t_1 elif b <= 0.00034: tmp = x * ((y * z) - (t * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.25e+84) tmp = t_2; elseif (b <= -4.5e-92) tmp = t_1; elseif (b <= -1e-109) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -7.5e-112) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= -1.1e-307) tmp = t_1; elseif (b <= 0.00034) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.25e+84) tmp = t_2; elseif (b <= -4.5e-92) tmp = t_1; elseif (b <= -1e-109) tmp = z * ((x * y) - (b * c)); elseif (b <= -7.5e-112) tmp = t * ((c * j) - (x * a)); elseif (b <= -1.1e-307) tmp = t_1; elseif (b <= 0.00034) tmp = x * ((y * z) - (t * a)); 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.25e+84], t$95$2, If[LessEqual[b, -4.5e-92], t$95$1, If[LessEqual[b, -1e-109], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e-112], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e-307], t$95$1, If[LessEqual[b, 0.00034], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.25 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-109}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-112}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-307}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.00034:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.2499999999999999e84 or 3.4e-4 < b Initial program 74.8%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
Simplified72.7%
if -2.2499999999999999e84 < b < -4.5e-92 or -7.5000000000000002e-112 < b < -1.1e-307Initial program 84.5%
Taylor expanded in j around inf 58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
if -4.5e-92 < b < -9.9999999999999999e-110Initial program 62.0%
Taylor expanded in z around inf 99.7%
*-commutative99.7%
Simplified99.7%
if -9.9999999999999999e-110 < b < -7.5000000000000002e-112Initial program 51.7%
Taylor expanded in t around inf 99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
*-commutative99.2%
Simplified99.2%
if -1.1e-307 < b < 3.4e-4Initial program 75.9%
Taylor expanded in c around 0 79.1%
Taylor expanded in x around inf 56.8%
*-commutative56.8%
*-commutative56.8%
*-commutative56.8%
Simplified56.8%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= b -2.5e+107)
t_1
(if (or (<= b -5e-136) (not (<= b 0.00035)))
(+ t_1 t_2)
(+ (* x (- (* y z) (* t a))) 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 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (b <= -2.5e+107) {
tmp = t_1;
} else if ((b <= -5e-136) || !(b <= 0.00035)) {
tmp = t_1 + t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + 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 = b * ((a * i) - (z * c))
t_2 = j * ((t * c) - (y * i))
if (b <= (-2.5d+107)) then
tmp = t_1
else if ((b <= (-5d-136)) .or. (.not. (b <= 0.00035d0))) then
tmp = t_1 + t_2
else
tmp = (x * ((y * z) - (t * a))) + 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 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (b <= -2.5e+107) {
tmp = t_1;
} else if ((b <= -5e-136) || !(b <= 0.00035)) {
tmp = t_1 + t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if b <= -2.5e+107: tmp = t_1 elif (b <= -5e-136) or not (b <= 0.00035): tmp = t_1 + t_2 else: tmp = (x * ((y * z) - (t * a))) + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (b <= -2.5e+107) tmp = t_1; elseif ((b <= -5e-136) || !(b <= 0.00035)) tmp = Float64(t_1 + t_2); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (b <= -2.5e+107) tmp = t_1; elseif ((b <= -5e-136) || ~((b <= 0.00035))) tmp = t_1 + t_2; else tmp = (x * ((y * z) - (t * a))) + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+107], t$95$1, If[Or[LessEqual[b, -5e-136], N[Not[LessEqual[b, 0.00035]], $MachinePrecision]], N[(t$95$1 + t$95$2), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-136} \lor \neg \left(b \leq 0.00035\right):\\
\;\;\;\;t\_1 + t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_2\\
\end{array}
\end{array}
if b < -2.5000000000000001e107Initial program 79.9%
Taylor expanded in b around inf 89.1%
*-commutative89.1%
Simplified89.1%
if -2.5000000000000001e107 < b < -5.0000000000000002e-136 or 3.49999999999999996e-4 < b Initial program 77.9%
Taylor expanded in x around 0 73.5%
if -5.0000000000000002e-136 < b < 3.49999999999999996e-4Initial program 76.2%
Taylor expanded in b around 0 79.2%
Final simplification78.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= b -3.3e+140)
(+ t_3 t_2)
(if (or (<= b -1.3e-135) (not (<= b 0.000205)))
(+ t_2 t_1)
(+ t_3 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (b <= -3.3e+140) {
tmp = t_3 + t_2;
} else if ((b <= -1.3e-135) || !(b <= 0.000205)) {
tmp = t_2 + t_1;
} else {
tmp = t_3 + 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = x * ((y * z) - (t * a))
if (b <= (-3.3d+140)) then
tmp = t_3 + t_2
else if ((b <= (-1.3d-135)) .or. (.not. (b <= 0.000205d0))) then
tmp = t_2 + t_1
else
tmp = t_3 + 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (b <= -3.3e+140) {
tmp = t_3 + t_2;
} else if ((b <= -1.3e-135) || !(b <= 0.000205)) {
tmp = t_2 + t_1;
} else {
tmp = t_3 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if b <= -3.3e+140: tmp = t_3 + t_2 elif (b <= -1.3e-135) or not (b <= 0.000205): tmp = t_2 + t_1 else: tmp = t_3 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -3.3e+140) tmp = Float64(t_3 + t_2); elseif ((b <= -1.3e-135) || !(b <= 0.000205)) tmp = Float64(t_2 + t_1); else tmp = Float64(t_3 + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -3.3e+140) tmp = t_3 + t_2; elseif ((b <= -1.3e-135) || ~((b <= 0.000205))) tmp = t_2 + t_1; else tmp = t_3 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.3e+140], N[(t$95$3 + t$95$2), $MachinePrecision], If[Or[LessEqual[b, -1.3e-135], N[Not[LessEqual[b, 0.000205]], $MachinePrecision]], N[(t$95$2 + t$95$1), $MachinePrecision], N[(t$95$3 + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -3.3 \cdot 10^{+140}:\\
\;\;\;\;t\_3 + t\_2\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-135} \lor \neg \left(b \leq 0.000205\right):\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3 + t\_1\\
\end{array}
\end{array}
if b < -3.3000000000000002e140Initial program 80.5%
Taylor expanded in j around 0 90.2%
*-commutative90.2%
Simplified90.2%
if -3.3000000000000002e140 < b < -1.30000000000000002e-135 or 2.05e-4 < b Initial program 77.9%
Taylor expanded in x around 0 74.6%
if -1.30000000000000002e-135 < b < 2.05e-4Initial program 76.2%
Taylor expanded in b around 0 79.2%
Final simplification78.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.1e+80)
t_1
(if (<= b 5.3e-211)
(* j (- (* t c) (* y i)))
(if (<= b 0.00047)
(* a (* x (- t)))
(if (<= b 2.6e+72) (* c (- (* t 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.1e+80) {
tmp = t_1;
} else if (b <= 5.3e-211) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 0.00047) {
tmp = a * (x * -t);
} else if (b <= 2.6e+72) {
tmp = c * ((t * 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 = b * ((a * i) - (z * c))
if (b <= (-1.1d+80)) then
tmp = t_1
else if (b <= 5.3d-211) then
tmp = j * ((t * c) - (y * i))
else if (b <= 0.00047d0) then
tmp = a * (x * -t)
else if (b <= 2.6d+72) then
tmp = c * ((t * 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.1e+80) {
tmp = t_1;
} else if (b <= 5.3e-211) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 0.00047) {
tmp = a * (x * -t);
} else if (b <= 2.6e+72) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.1e+80: tmp = t_1 elif b <= 5.3e-211: tmp = j * ((t * c) - (y * i)) elif b <= 0.00047: tmp = a * (x * -t) elif b <= 2.6e+72: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.1e+80) tmp = t_1; elseif (b <= 5.3e-211) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 0.00047) tmp = Float64(a * Float64(x * Float64(-t))); elseif (b <= 2.6e+72) tmp = Float64(c * Float64(Float64(t * 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 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.1e+80) tmp = t_1; elseif (b <= 5.3e-211) tmp = j * ((t * c) - (y * i)); elseif (b <= 0.00047) tmp = a * (x * -t); elseif (b <= 2.6e+72) tmp = c * ((t * 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.1e+80], t$95$1, If[LessEqual[b, 5.3e-211], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00047], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+72], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-211}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 0.00047:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+72}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.10000000000000001e80 or 2.59999999999999981e72 < b Initial program 75.0%
Taylor expanded in b around inf 78.6%
*-commutative78.6%
Simplified78.6%
if -1.10000000000000001e80 < b < 5.29999999999999993e-211Initial program 78.5%
Taylor expanded in j around inf 53.6%
*-commutative53.6%
*-commutative53.6%
Simplified53.6%
if 5.29999999999999993e-211 < b < 4.69999999999999986e-4Initial program 80.9%
Taylor expanded in c around 0 83.3%
Taylor expanded in x around inf 57.3%
*-commutative57.3%
*-commutative57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in y around 0 45.6%
mul-1-neg45.6%
*-commutative45.6%
Simplified45.6%
if 4.69999999999999986e-4 < b < 2.59999999999999981e72Initial program 77.5%
Taylor expanded in c around inf 61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3.65e+77)
(* b (* z (- (* a (/ i z)) c)))
(if (<= b 8.5e+90)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(* b (- (* a i) (* z 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 <= -3.65e+77) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= 8.5e+90) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * ((a * i) - (z * 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 <= (-3.65d+77)) then
tmp = b * (z * ((a * (i / z)) - c))
else if (b <= 8.5d+90) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else
tmp = b * ((a * i) - (z * 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 <= -3.65e+77) {
tmp = b * (z * ((a * (i / z)) - c));
} else if (b <= 8.5e+90) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.65e+77: tmp = b * (z * ((a * (i / z)) - c)) elif b <= 8.5e+90: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.65e+77) tmp = Float64(b * Float64(z * Float64(Float64(a * Float64(i / z)) - c))); elseif (b <= 8.5e+90) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.65e+77) tmp = b * (z * ((a * (i / z)) - c)); elseif (b <= 8.5e+90) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.65e+77], N[(b * N[(z * N[(N[(a * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+90], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.65 \cdot 10^{+77}:\\
\;\;\;\;b \cdot \left(z \cdot \left(a \cdot \frac{i}{z} - c\right)\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -3.65000000000000012e77Initial program 76.5%
Taylor expanded in b around inf 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in z around inf 84.4%
associate-/l*84.4%
Simplified84.4%
if -3.65000000000000012e77 < b < 8.5000000000000002e90Initial program 79.2%
Taylor expanded in b around 0 71.9%
if 8.5000000000000002e90 < b Initial program 72.2%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
Simplified75.0%
Final simplification74.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.25e-108)
t_1
(if (<= b 1.35e-229)
(* c (* t j))
(if (<= b 0.00048) (* a (* x (- t))) 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.25e-108) {
tmp = t_1;
} else if (b <= 1.35e-229) {
tmp = c * (t * j);
} else if (b <= 0.00048) {
tmp = a * (x * -t);
} 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 = b * ((a * i) - (z * c))
if (b <= (-1.25d-108)) then
tmp = t_1
else if (b <= 1.35d-229) then
tmp = c * (t * j)
else if (b <= 0.00048d0) then
tmp = a * (x * -t)
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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.25e-108) {
tmp = t_1;
} else if (b <= 1.35e-229) {
tmp = c * (t * j);
} else if (b <= 0.00048) {
tmp = a * (x * -t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.25e-108: tmp = t_1 elif b <= 1.35e-229: tmp = c * (t * j) elif b <= 0.00048: tmp = a * (x * -t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.25e-108) tmp = t_1; elseif (b <= 1.35e-229) tmp = Float64(c * Float64(t * j)); elseif (b <= 0.00048) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.25e-108) tmp = t_1; elseif (b <= 1.35e-229) tmp = c * (t * j); elseif (b <= 0.00048) tmp = a * (x * -t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e-108], t$95$1, If[LessEqual[b, 1.35e-229], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00048], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{-108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-229}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 0.00048:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.25e-108 or 4.80000000000000012e-4 < b Initial program 78.7%
Taylor expanded in b around inf 63.9%
*-commutative63.9%
Simplified63.9%
if -1.25e-108 < b < 1.3499999999999999e-229Initial program 73.6%
Taylor expanded in b around 0 80.1%
Taylor expanded in c around inf 37.0%
if 1.3499999999999999e-229 < b < 4.80000000000000012e-4Initial program 78.9%
Taylor expanded in c around 0 81.1%
Taylor expanded in x around inf 55.7%
*-commutative55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in y around 0 43.0%
mul-1-neg43.0%
*-commutative43.0%
Simplified43.0%
Final simplification53.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -2.15e+83)
t_1
(if (<= b -2.75e-297)
(* j (- (* t c) (* y i)))
(if (<= b 0.00047) (* t (- (* c j) (* x a))) 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.15e+83) {
tmp = t_1;
} else if (b <= -2.75e-297) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 0.00047) {
tmp = t * ((c * j) - (x * a));
} 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 = b * ((a * i) - (z * c))
if (b <= (-2.15d+83)) then
tmp = t_1
else if (b <= (-2.75d-297)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 0.00047d0) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.15e+83) {
tmp = t_1;
} else if (b <= -2.75e-297) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 0.00047) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.15e+83: tmp = t_1 elif b <= -2.75e-297: tmp = j * ((t * c) - (y * i)) elif b <= 0.00047: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.15e+83) tmp = t_1; elseif (b <= -2.75e-297) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 0.00047) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.15e+83) tmp = t_1; elseif (b <= -2.75e-297) tmp = j * ((t * c) - (y * i)); elseif (b <= 0.00047) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+83], t$95$1, If[LessEqual[b, -2.75e-297], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00047], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-297}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 0.00047:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.15e83 or 4.69999999999999986e-4 < b Initial program 75.4%
Taylor expanded in b around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -2.15e83 < b < -2.75000000000000015e-297Initial program 82.1%
Taylor expanded in j around inf 55.3%
*-commutative55.3%
*-commutative55.3%
Simplified55.3%
if -2.75000000000000015e-297 < b < 4.69999999999999986e-4Initial program 75.2%
Taylor expanded in t around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Final simplification61.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -180.0)
(* b (* a i))
(if (<= b 1.2e-231)
(* t (* c j))
(if (<= b 28500000.0) (* a (* x (- t))) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -180.0) {
tmp = b * (a * i);
} else if (b <= 1.2e-231) {
tmp = t * (c * j);
} else if (b <= 28500000.0) {
tmp = a * (x * -t);
} else {
tmp = a * (b * 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 (b <= (-180.0d0)) then
tmp = b * (a * i)
else if (b <= 1.2d-231) then
tmp = t * (c * j)
else if (b <= 28500000.0d0) then
tmp = a * (x * -t)
else
tmp = a * (b * 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 (b <= -180.0) {
tmp = b * (a * i);
} else if (b <= 1.2e-231) {
tmp = t * (c * j);
} else if (b <= 28500000.0) {
tmp = a * (x * -t);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -180.0: tmp = b * (a * i) elif b <= 1.2e-231: tmp = t * (c * j) elif b <= 28500000.0: tmp = a * (x * -t) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -180.0) tmp = Float64(b * Float64(a * i)); elseif (b <= 1.2e-231) tmp = Float64(t * Float64(c * j)); elseif (b <= 28500000.0) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -180.0) tmp = b * (a * i); elseif (b <= 1.2e-231) tmp = t * (c * j); elseif (b <= 28500000.0) tmp = a * (x * -t); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -180.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-231], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 28500000.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -180:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-231}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 28500000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -180Initial program 80.7%
Taylor expanded in b around inf 70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in a around inf 35.2%
*-commutative35.2%
Simplified35.2%
if -180 < b < 1.19999999999999996e-231Initial program 76.7%
Taylor expanded in b around 0 73.7%
Taylor expanded in c around inf 33.7%
associate-*r*33.8%
*-commutative33.8%
Simplified33.8%
if 1.19999999999999996e-231 < b < 2.85e7Initial program 80.2%
Taylor expanded in c around 0 82.2%
Taylor expanded in x around inf 52.7%
*-commutative52.7%
*-commutative52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in y around 0 40.5%
mul-1-neg40.5%
*-commutative40.5%
Simplified40.5%
if 2.85e7 < b Initial program 73.3%
Taylor expanded in b around inf 66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in a around inf 32.6%
*-commutative32.6%
Simplified32.6%
Final simplification35.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -145000.0)
(* b (* a i))
(if (<= b 5.2e-128)
(* j (* t c))
(if (<= b 7e+95) (* x (* y z)) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -145000.0) {
tmp = b * (a * i);
} else if (b <= 5.2e-128) {
tmp = j * (t * c);
} else if (b <= 7e+95) {
tmp = x * (y * z);
} else {
tmp = a * (b * 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 (b <= (-145000.0d0)) then
tmp = b * (a * i)
else if (b <= 5.2d-128) then
tmp = j * (t * c)
else if (b <= 7d+95) then
tmp = x * (y * z)
else
tmp = a * (b * 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 (b <= -145000.0) {
tmp = b * (a * i);
} else if (b <= 5.2e-128) {
tmp = j * (t * c);
} else if (b <= 7e+95) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -145000.0: tmp = b * (a * i) elif b <= 5.2e-128: tmp = j * (t * c) elif b <= 7e+95: tmp = x * (y * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -145000.0) tmp = Float64(b * Float64(a * i)); elseif (b <= 5.2e-128) tmp = Float64(j * Float64(t * c)); elseif (b <= 7e+95) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -145000.0) tmp = b * (a * i); elseif (b <= 5.2e-128) tmp = j * (t * c); elseif (b <= 7e+95) tmp = x * (y * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -145000.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e-128], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+95], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -145000:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-128}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+95}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -145000Initial program 80.7%
Taylor expanded in b around inf 70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in a around inf 35.2%
*-commutative35.2%
Simplified35.2%
if -145000 < b < 5.19999999999999961e-128Initial program 76.1%
Taylor expanded in j around inf 53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in t around inf 31.0%
if 5.19999999999999961e-128 < b < 6.99999999999999999e95Initial program 82.3%
Taylor expanded in y around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in x around inf 33.0%
if 6.99999999999999999e95 < b Initial program 71.5%
Taylor expanded in b around inf 74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in a around inf 38.6%
*-commutative38.6%
Simplified38.6%
Final simplification33.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -320000000000.0)
(* b (* a i))
(if (<= b 5.5e-131)
(* j (* t c))
(if (<= b 3.8e+96) (* y (* x z)) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -320000000000.0) {
tmp = b * (a * i);
} else if (b <= 5.5e-131) {
tmp = j * (t * c);
} else if (b <= 3.8e+96) {
tmp = y * (x * z);
} else {
tmp = a * (b * 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 (b <= (-320000000000.0d0)) then
tmp = b * (a * i)
else if (b <= 5.5d-131) then
tmp = j * (t * c)
else if (b <= 3.8d+96) then
tmp = y * (x * z)
else
tmp = a * (b * 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 (b <= -320000000000.0) {
tmp = b * (a * i);
} else if (b <= 5.5e-131) {
tmp = j * (t * c);
} else if (b <= 3.8e+96) {
tmp = y * (x * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -320000000000.0: tmp = b * (a * i) elif b <= 5.5e-131: tmp = j * (t * c) elif b <= 3.8e+96: tmp = y * (x * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -320000000000.0) tmp = Float64(b * Float64(a * i)); elseif (b <= 5.5e-131) tmp = Float64(j * Float64(t * c)); elseif (b <= 3.8e+96) tmp = Float64(y * Float64(x * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -320000000000.0) tmp = b * (a * i); elseif (b <= 5.5e-131) tmp = j * (t * c); elseif (b <= 3.8e+96) tmp = y * (x * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -320000000000.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-131], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+96], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -320000000000:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-131}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+96}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.2e11Initial program 80.7%
Taylor expanded in b around inf 70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in a around inf 35.2%
*-commutative35.2%
Simplified35.2%
if -3.2e11 < b < 5.4999999999999997e-131Initial program 76.1%
Taylor expanded in j around inf 53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in t around inf 31.0%
if 5.4999999999999997e-131 < b < 3.8000000000000002e96Initial program 82.3%
Taylor expanded in y around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in x around inf 34.9%
*-commutative34.9%
Simplified34.9%
if 3.8000000000000002e96 < b Initial program 71.5%
Taylor expanded in b around inf 74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in a around inf 38.6%
*-commutative38.6%
Simplified38.6%
Final simplification34.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -7500.0)
(* b (* a i))
(if (<= b 1.1e-128)
(* t (* c j))
(if (<= b 1.45e+96) (* y (* x z)) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7500.0) {
tmp = b * (a * i);
} else if (b <= 1.1e-128) {
tmp = t * (c * j);
} else if (b <= 1.45e+96) {
tmp = y * (x * z);
} else {
tmp = a * (b * 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 (b <= (-7500.0d0)) then
tmp = b * (a * i)
else if (b <= 1.1d-128) then
tmp = t * (c * j)
else if (b <= 1.45d+96) then
tmp = y * (x * z)
else
tmp = a * (b * 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 (b <= -7500.0) {
tmp = b * (a * i);
} else if (b <= 1.1e-128) {
tmp = t * (c * j);
} else if (b <= 1.45e+96) {
tmp = y * (x * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7500.0: tmp = b * (a * i) elif b <= 1.1e-128: tmp = t * (c * j) elif b <= 1.45e+96: tmp = y * (x * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7500.0) tmp = Float64(b * Float64(a * i)); elseif (b <= 1.1e-128) tmp = Float64(t * Float64(c * j)); elseif (b <= 1.45e+96) tmp = Float64(y * Float64(x * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7500.0) tmp = b * (a * i); elseif (b <= 1.1e-128) tmp = t * (c * j); elseif (b <= 1.45e+96) tmp = y * (x * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7500.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e-128], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e+96], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7500:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-128}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+96}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -7500Initial program 80.7%
Taylor expanded in b around inf 70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in a around inf 35.2%
*-commutative35.2%
Simplified35.2%
if -7500 < b < 1.10000000000000005e-128Initial program 76.1%
Taylor expanded in b around 0 73.6%
Taylor expanded in c around inf 31.0%
associate-*r*31.1%
*-commutative31.1%
Simplified31.1%
if 1.10000000000000005e-128 < b < 1.44999999999999989e96Initial program 82.3%
Taylor expanded in y around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in x around inf 34.9%
*-commutative34.9%
Simplified34.9%
if 1.44999999999999989e96 < b Initial program 71.5%
Taylor expanded in b around inf 74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in a around inf 38.6%
*-commutative38.6%
Simplified38.6%
Final simplification34.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -7.2e-6) (* b (* a i)) (if (<= b 1.6e-30) (* c (* t j)) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7.2e-6) {
tmp = b * (a * i);
} else if (b <= 1.6e-30) {
tmp = c * (t * j);
} else {
tmp = a * (b * 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 (b <= (-7.2d-6)) then
tmp = b * (a * i)
else if (b <= 1.6d-30) then
tmp = c * (t * j)
else
tmp = a * (b * 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 (b <= -7.2e-6) {
tmp = b * (a * i);
} else if (b <= 1.6e-30) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7.2e-6: tmp = b * (a * i) elif b <= 1.6e-30: tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7.2e-6) tmp = Float64(b * Float64(a * i)); elseif (b <= 1.6e-30) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7.2e-6) tmp = b * (a * i); elseif (b <= 1.6e-30) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7.2e-6], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e-30], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.2 \cdot 10^{-6}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -7.19999999999999967e-6Initial program 80.7%
Taylor expanded in b around inf 70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in a around inf 35.2%
*-commutative35.2%
Simplified35.2%
if -7.19999999999999967e-6 < b < 1.6e-30Initial program 77.5%
Taylor expanded in b around 0 74.7%
Taylor expanded in c around inf 29.5%
if 1.6e-30 < b Initial program 74.7%
Taylor expanded in b around inf 62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in a around inf 31.0%
*-commutative31.0%
Simplified31.0%
Final simplification31.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 77.5%
Taylor expanded in b around inf 41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in a around inf 20.0%
*-commutative20.0%
Simplified20.0%
Final simplification20.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024053
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))