
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (* c (- j (* t (/ x 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))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * (c * (j - (t * (x / c))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * (c * (j - (t * (x / c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * (c * (j - (t * (x / c)))) 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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(c * Float64(j - Float64(t * Float64(x / 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))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * (c * (j - (t * (x / c)))); 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(c * N[(j - N[(t * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot \left(j - t \cdot \frac{x}{c}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around inf 47.1%
+-commutative47.1%
mul-1-neg47.1%
unsub-neg47.1%
Simplified47.1%
Taylor expanded in c around inf 54.2%
mul-1-neg54.2%
unsub-neg54.2%
associate-/l*58.0%
Simplified58.0%
Final simplification85.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -4.5e+19)
t_3
(if (<= i -6.1e-12)
t_2
(if (<= i -3.8e-35)
t_3
(if (<= i -4.4e-170)
(* c (- (* a j) (* z b)))
(if (<= i -3.7e-272)
t_2
(if (<= i 8e-270)
t_1
(if (<= i 3.8e-208)
(* j (- (* a c) (* y i)))
(if (<= i 1.75e-80)
t_1
(if (<= i 1.36e+35) (* 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 = z * ((x * y) - (b * c));
double t_2 = a * ((c * j) - (x * t));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.5e+19) {
tmp = t_3;
} else if (i <= -6.1e-12) {
tmp = t_2;
} else if (i <= -3.8e-35) {
tmp = t_3;
} else if (i <= -4.4e-170) {
tmp = c * ((a * j) - (z * b));
} else if (i <= -3.7e-272) {
tmp = t_2;
} else if (i <= 8e-270) {
tmp = t_1;
} else if (i <= 3.8e-208) {
tmp = j * ((a * c) - (y * i));
} else if (i <= 1.75e-80) {
tmp = t_1;
} else if (i <= 1.36e+35) {
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 = z * ((x * y) - (b * c))
t_2 = a * ((c * j) - (x * t))
t_3 = i * ((t * b) - (y * j))
if (i <= (-4.5d+19)) then
tmp = t_3
else if (i <= (-6.1d-12)) then
tmp = t_2
else if (i <= (-3.8d-35)) then
tmp = t_3
else if (i <= (-4.4d-170)) then
tmp = c * ((a * j) - (z * b))
else if (i <= (-3.7d-272)) then
tmp = t_2
else if (i <= 8d-270) then
tmp = t_1
else if (i <= 3.8d-208) then
tmp = j * ((a * c) - (y * i))
else if (i <= 1.75d-80) then
tmp = t_1
else if (i <= 1.36d+35) 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 = z * ((x * y) - (b * c));
double t_2 = a * ((c * j) - (x * t));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.5e+19) {
tmp = t_3;
} else if (i <= -6.1e-12) {
tmp = t_2;
} else if (i <= -3.8e-35) {
tmp = t_3;
} else if (i <= -4.4e-170) {
tmp = c * ((a * j) - (z * b));
} else if (i <= -3.7e-272) {
tmp = t_2;
} else if (i <= 8e-270) {
tmp = t_1;
} else if (i <= 3.8e-208) {
tmp = j * ((a * c) - (y * i));
} else if (i <= 1.75e-80) {
tmp = t_1;
} else if (i <= 1.36e+35) {
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 = z * ((x * y) - (b * c)) t_2 = a * ((c * j) - (x * t)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.5e+19: tmp = t_3 elif i <= -6.1e-12: tmp = t_2 elif i <= -3.8e-35: tmp = t_3 elif i <= -4.4e-170: tmp = c * ((a * j) - (z * b)) elif i <= -3.7e-272: tmp = t_2 elif i <= 8e-270: tmp = t_1 elif i <= 3.8e-208: tmp = j * ((a * c) - (y * i)) elif i <= 1.75e-80: tmp = t_1 elif i <= 1.36e+35: 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(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.5e+19) tmp = t_3; elseif (i <= -6.1e-12) tmp = t_2; elseif (i <= -3.8e-35) tmp = t_3; elseif (i <= -4.4e-170) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= -3.7e-272) tmp = t_2; elseif (i <= 8e-270) tmp = t_1; elseif (i <= 3.8e-208) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (i <= 1.75e-80) tmp = t_1; elseif (i <= 1.36e+35) 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 = z * ((x * y) - (b * c)); t_2 = a * ((c * j) - (x * t)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.5e+19) tmp = t_3; elseif (i <= -6.1e-12) tmp = t_2; elseif (i <= -3.8e-35) tmp = t_3; elseif (i <= -4.4e-170) tmp = c * ((a * j) - (z * b)); elseif (i <= -3.7e-272) tmp = t_2; elseif (i <= 8e-270) tmp = t_1; elseif (i <= 3.8e-208) tmp = j * ((a * c) - (y * i)); elseif (i <= 1.75e-80) tmp = t_1; elseif (i <= 1.36e+35) 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.5e+19], t$95$3, If[LessEqual[i, -6.1e-12], t$95$2, If[LessEqual[i, -3.8e-35], t$95$3, If[LessEqual[i, -4.4e-170], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.7e-272], t$95$2, If[LessEqual[i, 8e-270], t$95$1, If[LessEqual[i, 3.8e-208], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75e-80], t$95$1, If[LessEqual[i, 1.36e+35], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.5 \cdot 10^{+19}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -6.1 \cdot 10^{-12}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3.8 \cdot 10^{-35}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-170}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{-272}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 8 \cdot 10^{-270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{-208}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.36 \cdot 10^{+35}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -4.5e19 or -6.1000000000000003e-12 < i < -3.8000000000000001e-35 or 1.36e35 < i Initial program 66.3%
Taylor expanded in i around inf 65.5%
distribute-lft-out--65.5%
Simplified65.5%
if -4.5e19 < i < -6.1000000000000003e-12 or -4.40000000000000029e-170 < i < -3.6999999999999997e-272Initial program 88.0%
Taylor expanded in a around inf 77.5%
+-commutative77.5%
mul-1-neg77.5%
unsub-neg77.5%
Simplified77.5%
if -3.8000000000000001e-35 < i < -4.40000000000000029e-170Initial program 64.3%
Taylor expanded in c around inf 69.1%
*-commutative69.1%
Simplified69.1%
if -3.6999999999999997e-272 < i < 8.0000000000000003e-270 or 3.80000000000000011e-208 < i < 1.75000000000000007e-80Initial program 79.1%
Taylor expanded in z around inf 70.4%
*-commutative70.4%
Simplified70.4%
if 8.0000000000000003e-270 < i < 3.80000000000000011e-208Initial program 74.6%
Taylor expanded in j around inf 63.7%
*-commutative63.7%
Simplified63.7%
if 1.75000000000000007e-80 < i < 1.36e35Initial program 89.1%
Taylor expanded in x around inf 66.9%
cancel-sign-sub-inv66.9%
*-commutative66.9%
*-commutative66.9%
distribute-rgt-neg-out66.9%
sub-neg66.9%
Simplified66.9%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= z -2.2e+204)
t_2
(if (<= z -1.2e+142)
(* y (- (* x z) (* i j)))
(if (<= z -9.5e+85)
t_2
(if (<= z -2.8e+33)
(* a (- (* c j) (* x t)))
(if (<= z -2.9e-108)
t_3
(if (<= z 2.7e-264)
t_1
(if (<= z 8.2e-242)
t_3
(if (<= z 6.1e-204)
t_1
(if (<= z 3.8e+24) t_3 (* x (- (* y z) (* t a))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (z <= -2.2e+204) {
tmp = t_2;
} else if (z <= -1.2e+142) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -9.5e+85) {
tmp = t_2;
} else if (z <= -2.8e+33) {
tmp = a * ((c * j) - (x * t));
} else if (z <= -2.9e-108) {
tmp = t_3;
} else if (z <= 2.7e-264) {
tmp = t_1;
} else if (z <= 8.2e-242) {
tmp = t_3;
} else if (z <= 6.1e-204) {
tmp = t_1;
} else if (z <= 3.8e+24) {
tmp = t_3;
} else {
tmp = x * ((y * z) - (t * a));
}
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 = t * ((b * i) - (x * a))
t_2 = z * ((x * y) - (b * c))
t_3 = j * ((a * c) - (y * i))
if (z <= (-2.2d+204)) then
tmp = t_2
else if (z <= (-1.2d+142)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-9.5d+85)) then
tmp = t_2
else if (z <= (-2.8d+33)) then
tmp = a * ((c * j) - (x * t))
else if (z <= (-2.9d-108)) then
tmp = t_3
else if (z <= 2.7d-264) then
tmp = t_1
else if (z <= 8.2d-242) then
tmp = t_3
else if (z <= 6.1d-204) then
tmp = t_1
else if (z <= 3.8d+24) then
tmp = t_3
else
tmp = x * ((y * z) - (t * a))
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 = t * ((b * i) - (x * a));
double t_2 = z * ((x * y) - (b * c));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (z <= -2.2e+204) {
tmp = t_2;
} else if (z <= -1.2e+142) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -9.5e+85) {
tmp = t_2;
} else if (z <= -2.8e+33) {
tmp = a * ((c * j) - (x * t));
} else if (z <= -2.9e-108) {
tmp = t_3;
} else if (z <= 2.7e-264) {
tmp = t_1;
} else if (z <= 8.2e-242) {
tmp = t_3;
} else if (z <= 6.1e-204) {
tmp = t_1;
} else if (z <= 3.8e+24) {
tmp = t_3;
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = z * ((x * y) - (b * c)) t_3 = j * ((a * c) - (y * i)) tmp = 0 if z <= -2.2e+204: tmp = t_2 elif z <= -1.2e+142: tmp = y * ((x * z) - (i * j)) elif z <= -9.5e+85: tmp = t_2 elif z <= -2.8e+33: tmp = a * ((c * j) - (x * t)) elif z <= -2.9e-108: tmp = t_3 elif z <= 2.7e-264: tmp = t_1 elif z <= 8.2e-242: tmp = t_3 elif z <= 6.1e-204: tmp = t_1 elif z <= 3.8e+24: tmp = t_3 else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (z <= -2.2e+204) tmp = t_2; elseif (z <= -1.2e+142) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -9.5e+85) tmp = t_2; elseif (z <= -2.8e+33) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= -2.9e-108) tmp = t_3; elseif (z <= 2.7e-264) tmp = t_1; elseif (z <= 8.2e-242) tmp = t_3; elseif (z <= 6.1e-204) tmp = t_1; elseif (z <= 3.8e+24) tmp = t_3; else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = z * ((x * y) - (b * c)); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (z <= -2.2e+204) tmp = t_2; elseif (z <= -1.2e+142) tmp = y * ((x * z) - (i * j)); elseif (z <= -9.5e+85) tmp = t_2; elseif (z <= -2.8e+33) tmp = a * ((c * j) - (x * t)); elseif (z <= -2.9e-108) tmp = t_3; elseif (z <= 2.7e-264) tmp = t_1; elseif (z <= 8.2e-242) tmp = t_3; elseif (z <= 6.1e-204) tmp = t_1; elseif (z <= 3.8e+24) tmp = t_3; else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+204], t$95$2, If[LessEqual[z, -1.2e+142], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9.5e+85], t$95$2, If[LessEqual[z, -2.8e+33], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.9e-108], t$95$3, If[LessEqual[z, 2.7e-264], t$95$1, If[LessEqual[z, 8.2e-242], t$95$3, If[LessEqual[z, 6.1e-204], t$95$1, If[LessEqual[z, 3.8e+24], t$95$3, N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+204}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{+142}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{+33}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-108}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-264}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-242}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 6.1 \cdot 10^{-204}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+24}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if z < -2.20000000000000011e204 or -1.2e142 < z < -9.49999999999999945e85Initial program 67.7%
Taylor expanded in z around inf 73.0%
*-commutative73.0%
Simplified73.0%
if -2.20000000000000011e204 < z < -1.2e142Initial program 58.3%
Taylor expanded in y around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
if -9.49999999999999945e85 < z < -2.8000000000000001e33Initial program 73.1%
Taylor expanded in a around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
if -2.8000000000000001e33 < z < -2.9000000000000001e-108 or 2.69999999999999994e-264 < z < 8.19999999999999942e-242 or 6.09999999999999974e-204 < z < 3.80000000000000015e24Initial program 84.0%
Taylor expanded in j around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -2.9000000000000001e-108 < z < 2.69999999999999994e-264 or 8.19999999999999942e-242 < z < 6.09999999999999974e-204Initial program 85.7%
Taylor expanded in y around 0 76.3%
Simplified76.3%
Taylor expanded in t around inf 68.0%
+-commutative68.0%
mul-1-neg68.0%
unsub-neg68.0%
Simplified68.0%
if 3.80000000000000015e24 < z Initial program 60.5%
Taylor expanded in x around inf 61.8%
cancel-sign-sub-inv61.8%
*-commutative61.8%
*-commutative61.8%
distribute-rgt-neg-out61.8%
sub-neg61.8%
Simplified61.8%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z)))
(t_2 (+ t_1 (* j (- (* a c) (* y i)))))
(t_3 (* a (- (* c j) (* x t))))
(t_4 (- t_3 (* b (* z c))))
(t_5 (* y (- (* x z) (* i j)))))
(if (<= y -2e+100)
t_5
(if (<= y -5.6e+40)
t_4
(if (<= y -5e-68)
t_2
(if (<= y -1.1e-141)
(* a (+ (* c j) (- (/ t_1 a) (* x t))))
(if (<= y -3e-160)
t_2
(if (<= y -5e-263)
t_4
(if (<= y 0.0003) (+ t_3 (* b (- (* t i) (* z c)))) t_5)))))))))
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);
double t_2 = t_1 + (j * ((a * c) - (y * i)));
double t_3 = a * ((c * j) - (x * t));
double t_4 = t_3 - (b * (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2e+100) {
tmp = t_5;
} else if (y <= -5.6e+40) {
tmp = t_4;
} else if (y <= -5e-68) {
tmp = t_2;
} else if (y <= -1.1e-141) {
tmp = a * ((c * j) + ((t_1 / a) - (x * t)));
} else if (y <= -3e-160) {
tmp = t_2;
} else if (y <= -5e-263) {
tmp = t_4;
} else if (y <= 0.0003) {
tmp = t_3 + (b * ((t * i) - (z * c)));
} else {
tmp = t_5;
}
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) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = x * (y * z)
t_2 = t_1 + (j * ((a * c) - (y * i)))
t_3 = a * ((c * j) - (x * t))
t_4 = t_3 - (b * (z * c))
t_5 = y * ((x * z) - (i * j))
if (y <= (-2d+100)) then
tmp = t_5
else if (y <= (-5.6d+40)) then
tmp = t_4
else if (y <= (-5d-68)) then
tmp = t_2
else if (y <= (-1.1d-141)) then
tmp = a * ((c * j) + ((t_1 / a) - (x * t)))
else if (y <= (-3d-160)) then
tmp = t_2
else if (y <= (-5d-263)) then
tmp = t_4
else if (y <= 0.0003d0) then
tmp = t_3 + (b * ((t * i) - (z * c)))
else
tmp = t_5
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);
double t_2 = t_1 + (j * ((a * c) - (y * i)));
double t_3 = a * ((c * j) - (x * t));
double t_4 = t_3 - (b * (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2e+100) {
tmp = t_5;
} else if (y <= -5.6e+40) {
tmp = t_4;
} else if (y <= -5e-68) {
tmp = t_2;
} else if (y <= -1.1e-141) {
tmp = a * ((c * j) + ((t_1 / a) - (x * t)));
} else if (y <= -3e-160) {
tmp = t_2;
} else if (y <= -5e-263) {
tmp = t_4;
} else if (y <= 0.0003) {
tmp = t_3 + (b * ((t * i) - (z * c)));
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = t_1 + (j * ((a * c) - (y * i))) t_3 = a * ((c * j) - (x * t)) t_4 = t_3 - (b * (z * c)) t_5 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2e+100: tmp = t_5 elif y <= -5.6e+40: tmp = t_4 elif y <= -5e-68: tmp = t_2 elif y <= -1.1e-141: tmp = a * ((c * j) + ((t_1 / a) - (x * t))) elif y <= -3e-160: tmp = t_2 elif y <= -5e-263: tmp = t_4 elif y <= 0.0003: tmp = t_3 + (b * ((t * i) - (z * c))) else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_4 = Float64(t_3 - Float64(b * Float64(z * c))) t_5 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2e+100) tmp = t_5; elseif (y <= -5.6e+40) tmp = t_4; elseif (y <= -5e-68) tmp = t_2; elseif (y <= -1.1e-141) tmp = Float64(a * Float64(Float64(c * j) + Float64(Float64(t_1 / a) - Float64(x * t)))); elseif (y <= -3e-160) tmp = t_2; elseif (y <= -5e-263) tmp = t_4; elseif (y <= 0.0003) tmp = Float64(t_3 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = t_1 + (j * ((a * c) - (y * i))); t_3 = a * ((c * j) - (x * t)); t_4 = t_3 - (b * (z * c)); t_5 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2e+100) tmp = t_5; elseif (y <= -5.6e+40) tmp = t_4; elseif (y <= -5e-68) tmp = t_2; elseif (y <= -1.1e-141) tmp = a * ((c * j) + ((t_1 / a) - (x * t))); elseif (y <= -3e-160) tmp = t_2; elseif (y <= -5e-263) tmp = t_4; elseif (y <= 0.0003) tmp = t_3 + (b * ((t * i) - (z * c))); else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+100], t$95$5, If[LessEqual[y, -5.6e+40], t$95$4, If[LessEqual[y, -5e-68], t$95$2, If[LessEqual[y, -1.1e-141], N[(a * N[(N[(c * j), $MachinePrecision] + N[(N[(t$95$1 / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-160], t$95$2, If[LessEqual[y, -5e-263], t$95$4, If[LessEqual[y, 0.0003], N[(t$95$3 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_4 := t\_3 - b \cdot \left(z \cdot c\right)\\
t_5 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+100}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y \leq -5.6 \cdot 10^{+40}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-141}:\\
\;\;\;\;a \cdot \left(c \cdot j + \left(\frac{t\_1}{a} - x \cdot t\right)\right)\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-160}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-263}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq 0.0003:\\
\;\;\;\;t\_3 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y < -2.00000000000000003e100 or 2.99999999999999974e-4 < y Initial program 67.5%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -2.00000000000000003e100 < y < -5.6000000000000003e40 or -2.99999999999999997e-160 < y < -5.00000000000000006e-263Initial program 70.6%
Taylor expanded in y around 0 60.0%
Simplified59.9%
Taylor expanded in i around 0 68.1%
+-commutative68.1%
*-commutative68.1%
*-commutative68.1%
mul-1-neg68.1%
unsub-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
if -5.6000000000000003e40 < y < -4.99999999999999971e-68 or -1.10000000000000005e-141 < y < -2.99999999999999997e-160Initial program 74.3%
Taylor expanded in b around 0 74.3%
Taylor expanded in y around inf 78.1%
if -4.99999999999999971e-68 < y < -1.10000000000000005e-141Initial program 60.6%
Taylor expanded in a around -inf 75.6%
Simplified75.6%
Taylor expanded in x around inf 70.6%
if -5.00000000000000006e-263 < y < 2.99999999999999974e-4Initial program 88.0%
Taylor expanded in y around 0 76.4%
Simplified76.4%
Final simplification74.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* c (- b))))
(t_2 (* x (* t (- a))))
(t_3 (* j (* y (- i)))))
(if (<= i -2.35e+48)
t_3
(if (<= i -5.4e-13)
t_2
(if (<= i -4.2e-39)
(* z (* x y))
(if (<= i -1.3e-165)
t_1
(if (<= i -2.8e-273)
(* a (* x (- t)))
(if (<= i 3.7e-208)
(* j (* a c))
(if (<= i 1.34e-79)
t_1
(if (<= i 2.6e+34)
t_2
(if (<= i 2.2e+207) (* t (* b i)) 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 = z * (c * -b);
double t_2 = x * (t * -a);
double t_3 = j * (y * -i);
double tmp;
if (i <= -2.35e+48) {
tmp = t_3;
} else if (i <= -5.4e-13) {
tmp = t_2;
} else if (i <= -4.2e-39) {
tmp = z * (x * y);
} else if (i <= -1.3e-165) {
tmp = t_1;
} else if (i <= -2.8e-273) {
tmp = a * (x * -t);
} else if (i <= 3.7e-208) {
tmp = j * (a * c);
} else if (i <= 1.34e-79) {
tmp = t_1;
} else if (i <= 2.6e+34) {
tmp = t_2;
} else if (i <= 2.2e+207) {
tmp = t * (b * i);
} 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 = z * (c * -b)
t_2 = x * (t * -a)
t_3 = j * (y * -i)
if (i <= (-2.35d+48)) then
tmp = t_3
else if (i <= (-5.4d-13)) then
tmp = t_2
else if (i <= (-4.2d-39)) then
tmp = z * (x * y)
else if (i <= (-1.3d-165)) then
tmp = t_1
else if (i <= (-2.8d-273)) then
tmp = a * (x * -t)
else if (i <= 3.7d-208) then
tmp = j * (a * c)
else if (i <= 1.34d-79) then
tmp = t_1
else if (i <= 2.6d+34) then
tmp = t_2
else if (i <= 2.2d+207) then
tmp = t * (b * i)
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 = z * (c * -b);
double t_2 = x * (t * -a);
double t_3 = j * (y * -i);
double tmp;
if (i <= -2.35e+48) {
tmp = t_3;
} else if (i <= -5.4e-13) {
tmp = t_2;
} else if (i <= -4.2e-39) {
tmp = z * (x * y);
} else if (i <= -1.3e-165) {
tmp = t_1;
} else if (i <= -2.8e-273) {
tmp = a * (x * -t);
} else if (i <= 3.7e-208) {
tmp = j * (a * c);
} else if (i <= 1.34e-79) {
tmp = t_1;
} else if (i <= 2.6e+34) {
tmp = t_2;
} else if (i <= 2.2e+207) {
tmp = t * (b * i);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (c * -b) t_2 = x * (t * -a) t_3 = j * (y * -i) tmp = 0 if i <= -2.35e+48: tmp = t_3 elif i <= -5.4e-13: tmp = t_2 elif i <= -4.2e-39: tmp = z * (x * y) elif i <= -1.3e-165: tmp = t_1 elif i <= -2.8e-273: tmp = a * (x * -t) elif i <= 3.7e-208: tmp = j * (a * c) elif i <= 1.34e-79: tmp = t_1 elif i <= 2.6e+34: tmp = t_2 elif i <= 2.2e+207: tmp = t * (b * i) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(c * Float64(-b))) t_2 = Float64(x * Float64(t * Float64(-a))) t_3 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (i <= -2.35e+48) tmp = t_3; elseif (i <= -5.4e-13) tmp = t_2; elseif (i <= -4.2e-39) tmp = Float64(z * Float64(x * y)); elseif (i <= -1.3e-165) tmp = t_1; elseif (i <= -2.8e-273) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 3.7e-208) tmp = Float64(j * Float64(a * c)); elseif (i <= 1.34e-79) tmp = t_1; elseif (i <= 2.6e+34) tmp = t_2; elseif (i <= 2.2e+207) tmp = Float64(t * Float64(b * i)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (c * -b); t_2 = x * (t * -a); t_3 = j * (y * -i); tmp = 0.0; if (i <= -2.35e+48) tmp = t_3; elseif (i <= -5.4e-13) tmp = t_2; elseif (i <= -4.2e-39) tmp = z * (x * y); elseif (i <= -1.3e-165) tmp = t_1; elseif (i <= -2.8e-273) tmp = a * (x * -t); elseif (i <= 3.7e-208) tmp = j * (a * c); elseif (i <= 1.34e-79) tmp = t_1; elseif (i <= 2.6e+34) tmp = t_2; elseif (i <= 2.2e+207) tmp = t * (b * i); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.35e+48], t$95$3, If[LessEqual[i, -5.4e-13], t$95$2, If[LessEqual[i, -4.2e-39], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.3e-165], t$95$1, If[LessEqual[i, -2.8e-273], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.7e-208], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.34e-79], t$95$1, If[LessEqual[i, 2.6e+34], t$95$2, If[LessEqual[i, 2.2e+207], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(c \cdot \left(-b\right)\right)\\
t_2 := x \cdot \left(t \cdot \left(-a\right)\right)\\
t_3 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;i \leq -2.35 \cdot 10^{+48}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -5.4 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.2 \cdot 10^{-39}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq -1.3 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-273}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{-208}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 1.34 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{+207}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -2.35000000000000006e48 or 2.20000000000000009e207 < i Initial program 60.5%
Taylor expanded in j around inf 62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in c around 0 57.6%
mul-1-neg57.6%
Simplified57.6%
if -2.35000000000000006e48 < i < -5.40000000000000021e-13 or 1.34e-79 < i < 2.59999999999999997e34Initial program 83.4%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
Simplified54.5%
Taylor expanded in c around 0 37.6%
mul-1-neg37.6%
associate-*r*49.9%
distribute-lft-neg-in49.9%
*-commutative49.9%
distribute-rgt-neg-in49.9%
Simplified49.9%
if -5.40000000000000021e-13 < i < -4.19999999999999987e-39Initial program 81.1%
Taylor expanded in z around inf 41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in y around inf 42.0%
*-commutative42.0%
Simplified42.0%
if -4.19999999999999987e-39 < i < -1.30000000000000004e-165 or 3.7000000000000002e-208 < i < 1.34e-79Initial program 72.1%
Taylor expanded in z around inf 65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in y around 0 43.6%
neg-mul-143.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
if -1.30000000000000004e-165 < i < -2.79999999999999985e-273Initial program 91.1%
Taylor expanded in a around inf 79.8%
+-commutative79.8%
mul-1-neg79.8%
unsub-neg79.8%
Simplified79.8%
Taylor expanded in c around 0 58.9%
associate-*r*58.9%
neg-mul-158.9%
Simplified58.9%
if -2.79999999999999985e-273 < i < 3.7000000000000002e-208Initial program 76.4%
Taylor expanded in j around inf 45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in c around inf 37.1%
*-commutative37.1%
Simplified37.1%
if 2.59999999999999997e34 < i < 2.20000000000000009e207Initial program 71.8%
Taylor expanded in y around 0 57.0%
Simplified57.0%
Taylor expanded in i around inf 54.4%
Taylor expanded in a around 0 39.5%
*-commutative39.5%
*-commutative39.5%
associate-*r*43.5%
Simplified43.5%
Final simplification48.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i)))
(t_2 (+ (* x (* y z)) (* j (- (* a c) (* y i)))))
(t_3 (* a (- (* c j) (* x t))))
(t_4 (- t_3 (* b (* z c))))
(t_5 (* y (- (* x z) (* i j)))))
(if (<= y -4e+99)
t_5
(if (<= y -1.05e+41)
t_4
(if (<= y -8.2e-28)
t_2
(if (<= y -1.05e-138)
(* a (+ (* c j) (- (/ t_1 a) (* x t))))
(if (<= y -3.5e-160)
t_2
(if (<= y 2.25e-253)
t_4
(if (<= y 0.0004) (+ t_3 t_1) t_5)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = (x * (y * z)) + (j * ((a * c) - (y * i)));
double t_3 = a * ((c * j) - (x * t));
double t_4 = t_3 - (b * (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4e+99) {
tmp = t_5;
} else if (y <= -1.05e+41) {
tmp = t_4;
} else if (y <= -8.2e-28) {
tmp = t_2;
} else if (y <= -1.05e-138) {
tmp = a * ((c * j) + ((t_1 / a) - (x * t)));
} else if (y <= -3.5e-160) {
tmp = t_2;
} else if (y <= 2.25e-253) {
tmp = t_4;
} else if (y <= 0.0004) {
tmp = t_3 + t_1;
} else {
tmp = t_5;
}
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) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = b * (t * i)
t_2 = (x * (y * z)) + (j * ((a * c) - (y * i)))
t_3 = a * ((c * j) - (x * t))
t_4 = t_3 - (b * (z * c))
t_5 = y * ((x * z) - (i * j))
if (y <= (-4d+99)) then
tmp = t_5
else if (y <= (-1.05d+41)) then
tmp = t_4
else if (y <= (-8.2d-28)) then
tmp = t_2
else if (y <= (-1.05d-138)) then
tmp = a * ((c * j) + ((t_1 / a) - (x * t)))
else if (y <= (-3.5d-160)) then
tmp = t_2
else if (y <= 2.25d-253) then
tmp = t_4
else if (y <= 0.0004d0) then
tmp = t_3 + t_1
else
tmp = t_5
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 * (t * i);
double t_2 = (x * (y * z)) + (j * ((a * c) - (y * i)));
double t_3 = a * ((c * j) - (x * t));
double t_4 = t_3 - (b * (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4e+99) {
tmp = t_5;
} else if (y <= -1.05e+41) {
tmp = t_4;
} else if (y <= -8.2e-28) {
tmp = t_2;
} else if (y <= -1.05e-138) {
tmp = a * ((c * j) + ((t_1 / a) - (x * t)));
} else if (y <= -3.5e-160) {
tmp = t_2;
} else if (y <= 2.25e-253) {
tmp = t_4;
} else if (y <= 0.0004) {
tmp = t_3 + t_1;
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) t_2 = (x * (y * z)) + (j * ((a * c) - (y * i))) t_3 = a * ((c * j) - (x * t)) t_4 = t_3 - (b * (z * c)) t_5 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4e+99: tmp = t_5 elif y <= -1.05e+41: tmp = t_4 elif y <= -8.2e-28: tmp = t_2 elif y <= -1.05e-138: tmp = a * ((c * j) + ((t_1 / a) - (x * t))) elif y <= -3.5e-160: tmp = t_2 elif y <= 2.25e-253: tmp = t_4 elif y <= 0.0004: tmp = t_3 + t_1 else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) t_2 = Float64(Float64(x * Float64(y * z)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_4 = Float64(t_3 - Float64(b * Float64(z * c))) t_5 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4e+99) tmp = t_5; elseif (y <= -1.05e+41) tmp = t_4; elseif (y <= -8.2e-28) tmp = t_2; elseif (y <= -1.05e-138) tmp = Float64(a * Float64(Float64(c * j) + Float64(Float64(t_1 / a) - Float64(x * t)))); elseif (y <= -3.5e-160) tmp = t_2; elseif (y <= 2.25e-253) tmp = t_4; elseif (y <= 0.0004) tmp = Float64(t_3 + t_1); else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); t_2 = (x * (y * z)) + (j * ((a * c) - (y * i))); t_3 = a * ((c * j) - (x * t)); t_4 = t_3 - (b * (z * c)); t_5 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4e+99) tmp = t_5; elseif (y <= -1.05e+41) tmp = t_4; elseif (y <= -8.2e-28) tmp = t_2; elseif (y <= -1.05e-138) tmp = a * ((c * j) + ((t_1 / a) - (x * t))); elseif (y <= -3.5e-160) tmp = t_2; elseif (y <= 2.25e-253) tmp = t_4; elseif (y <= 0.0004) tmp = t_3 + t_1; else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4e+99], t$95$5, If[LessEqual[y, -1.05e+41], t$95$4, If[LessEqual[y, -8.2e-28], t$95$2, If[LessEqual[y, -1.05e-138], N[(a * N[(N[(c * j), $MachinePrecision] + N[(N[(t$95$1 / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.5e-160], t$95$2, If[LessEqual[y, 2.25e-253], t$95$4, If[LessEqual[y, 0.0004], N[(t$95$3 + t$95$1), $MachinePrecision], t$95$5]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_4 := t\_3 - b \cdot \left(z \cdot c\right)\\
t_5 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4 \cdot 10^{+99}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{+41}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-138}:\\
\;\;\;\;a \cdot \left(c \cdot j + \left(\frac{t\_1}{a} - x \cdot t\right)\right)\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-160}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-253}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq 0.0004:\\
\;\;\;\;t\_3 + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y < -3.9999999999999999e99 or 4.00000000000000019e-4 < y Initial program 67.5%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -3.9999999999999999e99 < y < -1.05e41 or -3.5000000000000003e-160 < y < 2.25000000000000014e-253Initial program 74.3%
Taylor expanded in y around 0 66.5%
Simplified66.4%
Taylor expanded in i around 0 64.6%
+-commutative64.6%
*-commutative64.6%
*-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
if -1.05e41 < y < -8.2000000000000005e-28 or -1.04999999999999993e-138 < y < -3.5000000000000003e-160Initial program 72.8%
Taylor expanded in b around 0 78.1%
Taylor expanded in y around inf 89.2%
if -8.2000000000000005e-28 < y < -1.04999999999999993e-138Initial program 65.8%
Taylor expanded in a around -inf 72.9%
Simplified72.9%
Taylor expanded in t around inf 63.2%
if 2.25000000000000014e-253 < y < 4.00000000000000019e-4Initial program 92.0%
Taylor expanded in y around 0 76.7%
Simplified76.7%
Taylor expanded in i around inf 68.8%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -5.8e+49)
(* y (- (* x z) (* i j)))
(if (<= i -1.55e-35)
(* a (+ (* c j) (- (/ (* b (* t i)) a) (* x t))))
(if (<= i -1.35e-163)
(* c (- (* a j) (* z b)))
(if (<= i 1.3e-230)
(* a (+ (* c j) (- (/ (* x (* y z)) a) (* x t))))
(if (<= i 2.7e-81)
(* z (- (* x y) (* b c)))
(if (<= i 5.5e+104)
(* i (+ (* t b) (/ (* a (- (* c j) (* x t))) i)))
(* i (- (* t b) (* y j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -5.8e+49) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -1.55e-35) {
tmp = a * ((c * j) + (((b * (t * i)) / a) - (x * t)));
} else if (i <= -1.35e-163) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.3e-230) {
tmp = a * ((c * j) + (((x * (y * z)) / a) - (x * t)));
} else if (i <= 2.7e-81) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 5.5e+104) {
tmp = i * ((t * b) + ((a * ((c * j) - (x * t))) / i));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-5.8d+49)) then
tmp = y * ((x * z) - (i * j))
else if (i <= (-1.55d-35)) then
tmp = a * ((c * j) + (((b * (t * i)) / a) - (x * t)))
else if (i <= (-1.35d-163)) then
tmp = c * ((a * j) - (z * b))
else if (i <= 1.3d-230) then
tmp = a * ((c * j) + (((x * (y * z)) / a) - (x * t)))
else if (i <= 2.7d-81) then
tmp = z * ((x * y) - (b * c))
else if (i <= 5.5d+104) then
tmp = i * ((t * b) + ((a * ((c * j) - (x * t))) / i))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -5.8e+49) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -1.55e-35) {
tmp = a * ((c * j) + (((b * (t * i)) / a) - (x * t)));
} else if (i <= -1.35e-163) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.3e-230) {
tmp = a * ((c * j) + (((x * (y * z)) / a) - (x * t)));
} else if (i <= 2.7e-81) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 5.5e+104) {
tmp = i * ((t * b) + ((a * ((c * j) - (x * t))) / i));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -5.8e+49: tmp = y * ((x * z) - (i * j)) elif i <= -1.55e-35: tmp = a * ((c * j) + (((b * (t * i)) / a) - (x * t))) elif i <= -1.35e-163: tmp = c * ((a * j) - (z * b)) elif i <= 1.3e-230: tmp = a * ((c * j) + (((x * (y * z)) / a) - (x * t))) elif i <= 2.7e-81: tmp = z * ((x * y) - (b * c)) elif i <= 5.5e+104: tmp = i * ((t * b) + ((a * ((c * j) - (x * t))) / i)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -5.8e+49) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= -1.55e-35) tmp = Float64(a * Float64(Float64(c * j) + Float64(Float64(Float64(b * Float64(t * i)) / a) - Float64(x * t)))); elseif (i <= -1.35e-163) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 1.3e-230) tmp = Float64(a * Float64(Float64(c * j) + Float64(Float64(Float64(x * Float64(y * z)) / a) - Float64(x * t)))); elseif (i <= 2.7e-81) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 5.5e+104) tmp = Float64(i * Float64(Float64(t * b) + Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) / i))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -5.8e+49) tmp = y * ((x * z) - (i * j)); elseif (i <= -1.55e-35) tmp = a * ((c * j) + (((b * (t * i)) / a) - (x * t))); elseif (i <= -1.35e-163) tmp = c * ((a * j) - (z * b)); elseif (i <= 1.3e-230) tmp = a * ((c * j) + (((x * (y * z)) / a) - (x * t))); elseif (i <= 2.7e-81) tmp = z * ((x * y) - (b * c)); elseif (i <= 5.5e+104) tmp = i * ((t * b) + ((a * ((c * j) - (x * t))) / i)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -5.8e+49], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.55e-35], N[(a * N[(N[(c * j), $MachinePrecision] + N[(N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.35e-163], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.3e-230], N[(a * N[(N[(c * j), $MachinePrecision] + N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.7e-81], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e+104], N[(i * N[(N[(t * b), $MachinePrecision] + N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.8 \cdot 10^{+49}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq -1.55 \cdot 10^{-35}:\\
\;\;\;\;a \cdot \left(c \cdot j + \left(\frac{b \cdot \left(t \cdot i\right)}{a} - x \cdot t\right)\right)\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-163}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-230}:\\
\;\;\;\;a \cdot \left(c \cdot j + \left(\frac{x \cdot \left(y \cdot z\right)}{a} - x \cdot t\right)\right)\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-81}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{+104}:\\
\;\;\;\;i \cdot \left(t \cdot b + \frac{a \cdot \left(c \cdot j - x \cdot t\right)}{i}\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -5.8e49Initial program 62.5%
Taylor expanded in y around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
if -5.8e49 < i < -1.55000000000000006e-35Initial program 75.3%
Taylor expanded in a around -inf 69.7%
Simplified75.4%
Taylor expanded in t around inf 68.5%
if -1.55000000000000006e-35 < i < -1.35000000000000007e-163Initial program 64.3%
Taylor expanded in c around inf 69.1%
*-commutative69.1%
Simplified69.1%
if -1.35000000000000007e-163 < i < 1.3000000000000001e-230Initial program 87.8%
Taylor expanded in a around -inf 77.9%
Simplified83.2%
Taylor expanded in x around inf 82.9%
if 1.3000000000000001e-230 < i < 2.6999999999999999e-81Initial program 74.3%
Taylor expanded in z around inf 60.6%
*-commutative60.6%
Simplified60.6%
if 2.6999999999999999e-81 < i < 5.50000000000000017e104Initial program 78.2%
Taylor expanded in y around 0 72.8%
Simplified72.8%
Taylor expanded in i around inf 64.1%
Taylor expanded in i around inf 66.9%
if 5.50000000000000017e104 < i Initial program 68.7%
Taylor expanded in i around inf 70.7%
distribute-lft-out--70.7%
Simplified70.7%
Final simplification70.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -3.8e+99)
t_1
(if (<= y -1.05e+40)
(* a (* c (- j (* t (/ x c)))))
(if (<= y -4.5e-162)
(+ (* x (* y z)) (* j (- (* a c) (* y i))))
(if (<= y -2.9e-220)
(* t (- (* b i) (* x a)))
(if (<= y -2.1e-304)
(* c (- (* a j) (* z b)))
(if (<= y 0.035)
(+ (* a (- (* c j) (* x t))) (* b (* t i)))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.8e+99) {
tmp = t_1;
} else if (y <= -1.05e+40) {
tmp = a * (c * (j - (t * (x / c))));
} else if (y <= -4.5e-162) {
tmp = (x * (y * z)) + (j * ((a * c) - (y * i)));
} else if (y <= -2.9e-220) {
tmp = t * ((b * i) - (x * a));
} else if (y <= -2.1e-304) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 0.035) {
tmp = (a * ((c * j) - (x * t))) + (b * (t * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-3.8d+99)) then
tmp = t_1
else if (y <= (-1.05d+40)) then
tmp = a * (c * (j - (t * (x / c))))
else if (y <= (-4.5d-162)) then
tmp = (x * (y * z)) + (j * ((a * c) - (y * i)))
else if (y <= (-2.9d-220)) then
tmp = t * ((b * i) - (x * a))
else if (y <= (-2.1d-304)) then
tmp = c * ((a * j) - (z * b))
else if (y <= 0.035d0) then
tmp = (a * ((c * j) - (x * t))) + (b * (t * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.8e+99) {
tmp = t_1;
} else if (y <= -1.05e+40) {
tmp = a * (c * (j - (t * (x / c))));
} else if (y <= -4.5e-162) {
tmp = (x * (y * z)) + (j * ((a * c) - (y * i)));
} else if (y <= -2.9e-220) {
tmp = t * ((b * i) - (x * a));
} else if (y <= -2.1e-304) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 0.035) {
tmp = (a * ((c * j) - (x * t))) + (b * (t * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.8e+99: tmp = t_1 elif y <= -1.05e+40: tmp = a * (c * (j - (t * (x / c)))) elif y <= -4.5e-162: tmp = (x * (y * z)) + (j * ((a * c) - (y * i))) elif y <= -2.9e-220: tmp = t * ((b * i) - (x * a)) elif y <= -2.1e-304: tmp = c * ((a * j) - (z * b)) elif y <= 0.035: tmp = (a * ((c * j) - (x * t))) + (b * (t * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.8e+99) tmp = t_1; elseif (y <= -1.05e+40) tmp = Float64(a * Float64(c * Float64(j - Float64(t * Float64(x / c))))); elseif (y <= -4.5e-162) tmp = Float64(Float64(x * Float64(y * z)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (y <= -2.9e-220) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= -2.1e-304) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 0.035) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(t * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.8e+99) tmp = t_1; elseif (y <= -1.05e+40) tmp = a * (c * (j - (t * (x / c)))); elseif (y <= -4.5e-162) tmp = (x * (y * z)) + (j * ((a * c) - (y * i))); elseif (y <= -2.9e-220) tmp = t * ((b * i) - (x * a)); elseif (y <= -2.1e-304) tmp = c * ((a * j) - (z * b)); elseif (y <= 0.035) tmp = (a * ((c * j) - (x * t))) + (b * (t * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e+99], t$95$1, If[LessEqual[y, -1.05e+40], N[(a * N[(c * N[(j - N[(t * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.5e-162], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e-220], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.1e-304], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.035], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{+40}:\\
\;\;\;\;a \cdot \left(c \cdot \left(j - t \cdot \frac{x}{c}\right)\right)\\
\mathbf{elif}\;y \leq -4.5 \cdot 10^{-162}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-220}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-304}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 0.035:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.8e99 or 0.035000000000000003 < y Initial program 67.5%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -3.8e99 < y < -1.05000000000000005e40Initial program 74.7%
Taylor expanded in a around inf 57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
Simplified57.1%
Taylor expanded in c around inf 57.4%
mul-1-neg57.4%
unsub-neg57.4%
associate-/l*63.7%
Simplified63.7%
if -1.05000000000000005e40 < y < -4.50000000000000023e-162Initial program 68.5%
Taylor expanded in b around 0 64.4%
Taylor expanded in y around inf 64.6%
if -4.50000000000000023e-162 < y < -2.8999999999999998e-220Initial program 76.9%
Taylor expanded in y around 0 62.1%
Simplified61.9%
Taylor expanded in t around inf 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
Simplified59.8%
if -2.8999999999999998e-220 < y < -2.10000000000000008e-304Initial program 64.2%
Taylor expanded in c around inf 74.7%
*-commutative74.7%
Simplified74.7%
if -2.10000000000000008e-304 < y < 0.035000000000000003Initial program 89.4%
Taylor expanded in y around 0 77.7%
Simplified77.7%
Taylor expanded in i around inf 66.4%
Final simplification69.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= z -3.1e+95)
(* b (- (* t i) (* z c)))
(if (<= z -1.9e+34)
t_2
(if (<= z -2.9e-105)
t_1
(if (<= z 4.8e-265)
t_3
(if (<= z 1.85e-242)
t_1
(if (<= z 4.5e-200) t_3 (if (<= z 4e+21) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (z <= -3.1e+95) {
tmp = b * ((t * i) - (z * c));
} else if (z <= -1.9e+34) {
tmp = t_2;
} else if (z <= -2.9e-105) {
tmp = t_1;
} else if (z <= 4.8e-265) {
tmp = t_3;
} else if (z <= 1.85e-242) {
tmp = t_1;
} else if (z <= 4.5e-200) {
tmp = t_3;
} else if (z <= 4e+21) {
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) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = t * ((b * i) - (x * a))
if (z <= (-3.1d+95)) then
tmp = b * ((t * i) - (z * c))
else if (z <= (-1.9d+34)) then
tmp = t_2
else if (z <= (-2.9d-105)) then
tmp = t_1
else if (z <= 4.8d-265) then
tmp = t_3
else if (z <= 1.85d-242) then
tmp = t_1
else if (z <= 4.5d-200) then
tmp = t_3
else if (z <= 4d+21) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (z <= -3.1e+95) {
tmp = b * ((t * i) - (z * c));
} else if (z <= -1.9e+34) {
tmp = t_2;
} else if (z <= -2.9e-105) {
tmp = t_1;
} else if (z <= 4.8e-265) {
tmp = t_3;
} else if (z <= 1.85e-242) {
tmp = t_1;
} else if (z <= 4.5e-200) {
tmp = t_3;
} else if (z <= 4e+21) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if z <= -3.1e+95: tmp = b * ((t * i) - (z * c)) elif z <= -1.9e+34: tmp = t_2 elif z <= -2.9e-105: tmp = t_1 elif z <= 4.8e-265: tmp = t_3 elif z <= 1.85e-242: tmp = t_1 elif z <= 4.5e-200: tmp = t_3 elif z <= 4e+21: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (z <= -3.1e+95) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (z <= -1.9e+34) tmp = t_2; elseif (z <= -2.9e-105) tmp = t_1; elseif (z <= 4.8e-265) tmp = t_3; elseif (z <= 1.85e-242) tmp = t_1; elseif (z <= 4.5e-200) tmp = t_3; elseif (z <= 4e+21) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (z <= -3.1e+95) tmp = b * ((t * i) - (z * c)); elseif (z <= -1.9e+34) tmp = t_2; elseif (z <= -2.9e-105) tmp = t_1; elseif (z <= 4.8e-265) tmp = t_3; elseif (z <= 1.85e-242) tmp = t_1; elseif (z <= 4.5e-200) tmp = t_3; elseif (z <= 4e+21) 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[(j * N[(N[(a * 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.1e+95], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.9e+34], t$95$2, If[LessEqual[z, -2.9e-105], t$95$1, If[LessEqual[z, 4.8e-265], t$95$3, If[LessEqual[z, 1.85e-242], t$95$1, If[LessEqual[z, 4.5e-200], t$95$3, If[LessEqual[z, 4e+21], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;z \leq -3.1 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{+34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-265}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-200}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -3.1000000000000003e95Initial program 62.4%
Taylor expanded in b around inf 47.8%
if -3.1000000000000003e95 < z < -1.9000000000000001e34 or 4e21 < z Initial program 65.2%
Taylor expanded in x around inf 63.2%
cancel-sign-sub-inv63.2%
*-commutative63.2%
*-commutative63.2%
distribute-rgt-neg-out63.2%
sub-neg63.2%
Simplified63.2%
if -1.9000000000000001e34 < z < -2.90000000000000003e-105 or 4.7999999999999999e-265 < z < 1.84999999999999998e-242 or 4.5000000000000002e-200 < z < 4e21Initial program 84.0%
Taylor expanded in j around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -2.90000000000000003e-105 < z < 4.7999999999999999e-265 or 1.84999999999999998e-242 < z < 4.5000000000000002e-200Initial program 85.7%
Taylor expanded in y around 0 76.3%
Simplified76.3%
Taylor expanded in t around inf 68.0%
+-commutative68.0%
mul-1-neg68.0%
unsub-neg68.0%
Simplified68.0%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (+ (* j (- (* a c) (* y i))) t_2)))
(if (<= y -8.7e+99)
t_1
(if (<= y -8.1e+62)
(- (+ (* a (* c j)) t_2) (* b (* z c)))
(if (<= y -2.6e-217)
t_3
(if (<= y 0.00086)
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
(if (<= y 2.3e+123) 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 = y * ((x * z) - (i * j));
double t_2 = x * ((y * z) - (t * a));
double t_3 = (j * ((a * c) - (y * i))) + t_2;
double tmp;
if (y <= -8.7e+99) {
tmp = t_1;
} else if (y <= -8.1e+62) {
tmp = ((a * (c * j)) + t_2) - (b * (z * c));
} else if (y <= -2.6e-217) {
tmp = t_3;
} else if (y <= 0.00086) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else if (y <= 2.3e+123) {
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 = y * ((x * z) - (i * j))
t_2 = x * ((y * z) - (t * a))
t_3 = (j * ((a * c) - (y * i))) + t_2
if (y <= (-8.7d+99)) then
tmp = t_1
else if (y <= (-8.1d+62)) then
tmp = ((a * (c * j)) + t_2) - (b * (z * c))
else if (y <= (-2.6d-217)) then
tmp = t_3
else if (y <= 0.00086d0) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
else if (y <= 2.3d+123) 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 = y * ((x * z) - (i * j));
double t_2 = x * ((y * z) - (t * a));
double t_3 = (j * ((a * c) - (y * i))) + t_2;
double tmp;
if (y <= -8.7e+99) {
tmp = t_1;
} else if (y <= -8.1e+62) {
tmp = ((a * (c * j)) + t_2) - (b * (z * c));
} else if (y <= -2.6e-217) {
tmp = t_3;
} else if (y <= 0.00086) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else if (y <= 2.3e+123) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = x * ((y * z) - (t * a)) t_3 = (j * ((a * c) - (y * i))) + t_2 tmp = 0 if y <= -8.7e+99: tmp = t_1 elif y <= -8.1e+62: tmp = ((a * (c * j)) + t_2) - (b * (z * c)) elif y <= -2.6e-217: tmp = t_3 elif y <= 0.00086: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) elif y <= 2.3e+123: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_2) tmp = 0.0 if (y <= -8.7e+99) tmp = t_1; elseif (y <= -8.1e+62) tmp = Float64(Float64(Float64(a * Float64(c * j)) + t_2) - Float64(b * Float64(z * c))); elseif (y <= -2.6e-217) tmp = t_3; elseif (y <= 0.00086) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (y <= 2.3e+123) 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 = y * ((x * z) - (i * j)); t_2 = x * ((y * z) - (t * a)); t_3 = (j * ((a * c) - (y * i))) + t_2; tmp = 0.0; if (y <= -8.7e+99) tmp = t_1; elseif (y <= -8.1e+62) tmp = ((a * (c * j)) + t_2) - (b * (z * c)); elseif (y <= -2.6e-217) tmp = t_3; elseif (y <= 0.00086) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); elseif (y <= 2.3e+123) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $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[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[y, -8.7e+99], t$95$1, If[LessEqual[y, -8.1e+62], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.6e-217], t$95$3, If[LessEqual[y, 0.00086], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+123], t$95$3, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) + t\_2\\
\mathbf{if}\;y \leq -8.7 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.1 \cdot 10^{+62}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) + t\_2\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-217}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 0.00086:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+123}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.6999999999999997e99 or 2.2999999999999999e123 < y Initial program 62.0%
Taylor expanded in y around inf 81.0%
+-commutative81.0%
mul-1-neg81.0%
unsub-neg81.0%
*-commutative81.0%
Simplified81.0%
if -8.6999999999999997e99 < y < -8.09999999999999998e62Initial program 77.3%
Taylor expanded in i around 0 67.0%
if -8.09999999999999998e62 < y < -2.59999999999999993e-217 or 8.59999999999999979e-4 < y < 2.2999999999999999e123Initial program 74.0%
Taylor expanded in b around 0 71.5%
if -2.59999999999999993e-217 < y < 8.59999999999999979e-4Initial program 85.5%
Taylor expanded in y around 0 75.1%
Simplified75.0%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* c (- b))))
(t_2 (* j (* y (- i))))
(t_3 (* a (* x (- t)))))
(if (<= i -3.7e-37)
t_2
(if (<= i -4.5e-166)
t_1
(if (<= i -2.7e-273)
t_3
(if (<= i 5.4e-208)
(* j (* a c))
(if (<= i 1.1e-80)
t_1
(if (<= i 2.6e-29)
t_3
(if (<= i 3.7e+216) (* t (* b i)) 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 = z * (c * -b);
double t_2 = j * (y * -i);
double t_3 = a * (x * -t);
double tmp;
if (i <= -3.7e-37) {
tmp = t_2;
} else if (i <= -4.5e-166) {
tmp = t_1;
} else if (i <= -2.7e-273) {
tmp = t_3;
} else if (i <= 5.4e-208) {
tmp = j * (a * c);
} else if (i <= 1.1e-80) {
tmp = t_1;
} else if (i <= 2.6e-29) {
tmp = t_3;
} else if (i <= 3.7e+216) {
tmp = t * (b * i);
} 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) :: t_3
real(8) :: tmp
t_1 = z * (c * -b)
t_2 = j * (y * -i)
t_3 = a * (x * -t)
if (i <= (-3.7d-37)) then
tmp = t_2
else if (i <= (-4.5d-166)) then
tmp = t_1
else if (i <= (-2.7d-273)) then
tmp = t_3
else if (i <= 5.4d-208) then
tmp = j * (a * c)
else if (i <= 1.1d-80) then
tmp = t_1
else if (i <= 2.6d-29) then
tmp = t_3
else if (i <= 3.7d+216) then
tmp = t * (b * i)
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 = z * (c * -b);
double t_2 = j * (y * -i);
double t_3 = a * (x * -t);
double tmp;
if (i <= -3.7e-37) {
tmp = t_2;
} else if (i <= -4.5e-166) {
tmp = t_1;
} else if (i <= -2.7e-273) {
tmp = t_3;
} else if (i <= 5.4e-208) {
tmp = j * (a * c);
} else if (i <= 1.1e-80) {
tmp = t_1;
} else if (i <= 2.6e-29) {
tmp = t_3;
} else if (i <= 3.7e+216) {
tmp = t * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (c * -b) t_2 = j * (y * -i) t_3 = a * (x * -t) tmp = 0 if i <= -3.7e-37: tmp = t_2 elif i <= -4.5e-166: tmp = t_1 elif i <= -2.7e-273: tmp = t_3 elif i <= 5.4e-208: tmp = j * (a * c) elif i <= 1.1e-80: tmp = t_1 elif i <= 2.6e-29: tmp = t_3 elif i <= 3.7e+216: tmp = t * (b * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(c * Float64(-b))) t_2 = Float64(j * Float64(y * Float64(-i))) t_3 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (i <= -3.7e-37) tmp = t_2; elseif (i <= -4.5e-166) tmp = t_1; elseif (i <= -2.7e-273) tmp = t_3; elseif (i <= 5.4e-208) tmp = Float64(j * Float64(a * c)); elseif (i <= 1.1e-80) tmp = t_1; elseif (i <= 2.6e-29) tmp = t_3; elseif (i <= 3.7e+216) tmp = Float64(t * Float64(b * i)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (c * -b); t_2 = j * (y * -i); t_3 = a * (x * -t); tmp = 0.0; if (i <= -3.7e-37) tmp = t_2; elseif (i <= -4.5e-166) tmp = t_1; elseif (i <= -2.7e-273) tmp = t_3; elseif (i <= 5.4e-208) tmp = j * (a * c); elseif (i <= 1.1e-80) tmp = t_1; elseif (i <= 2.6e-29) tmp = t_3; elseif (i <= 3.7e+216) tmp = t * (b * i); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.7e-37], t$95$2, If[LessEqual[i, -4.5e-166], t$95$1, If[LessEqual[i, -2.7e-273], t$95$3, If[LessEqual[i, 5.4e-208], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.1e-80], t$95$1, If[LessEqual[i, 2.6e-29], t$95$3, If[LessEqual[i, 3.7e+216], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(c \cdot \left(-b\right)\right)\\
t_2 := j \cdot \left(y \cdot \left(-i\right)\right)\\
t_3 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;i \leq -3.7 \cdot 10^{-37}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.7 \cdot 10^{-273}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 5.4 \cdot 10^{-208}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{-29}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{+216}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -3.7e-37 or 3.6999999999999999e216 < i Initial program 64.1%
Taylor expanded in j around inf 56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in c around 0 49.8%
mul-1-neg49.8%
Simplified49.8%
if -3.7e-37 < i < -4.4999999999999998e-166 or 5.4e-208 < i < 1.10000000000000005e-80Initial program 72.1%
Taylor expanded in z around inf 65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in y around 0 43.6%
neg-mul-143.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
if -4.4999999999999998e-166 < i < -2.69999999999999984e-273 or 1.10000000000000005e-80 < i < 2.6000000000000002e-29Initial program 91.0%
Taylor expanded in a around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
Taylor expanded in c around 0 56.1%
associate-*r*56.1%
neg-mul-156.1%
Simplified56.1%
if -2.69999999999999984e-273 < i < 5.4e-208Initial program 76.4%
Taylor expanded in j around inf 45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in c around inf 37.1%
*-commutative37.1%
Simplified37.1%
if 2.6000000000000002e-29 < i < 3.6999999999999999e216Initial program 73.6%
Taylor expanded in y around 0 58.8%
Simplified58.8%
Taylor expanded in i around inf 56.5%
Taylor expanded in a around 0 38.2%
*-commutative38.2%
*-commutative38.2%
associate-*r*41.6%
Simplified41.6%
Final simplification46.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -5.1e+99)
t_1
(if (<= y -2.75e-269)
(* a (* c (- j (* t (/ x c)))))
(if (<= y 3.05e-298)
(* c (- (* a j) (* z b)))
(if (<= y 5.9e-276)
(* z (- (* x y) (* b c)))
(if (<= y 1e-236)
(* t (- (* b i) (* x a)))
(if (<= y 0.0042) (+ (* a (* c j)) (* b (* t i))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.1e+99) {
tmp = t_1;
} else if (y <= -2.75e-269) {
tmp = a * (c * (j - (t * (x / c))));
} else if (y <= 3.05e-298) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 5.9e-276) {
tmp = z * ((x * y) - (b * c));
} else if (y <= 1e-236) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 0.0042) {
tmp = (a * (c * j)) + (b * (t * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-5.1d+99)) then
tmp = t_1
else if (y <= (-2.75d-269)) then
tmp = a * (c * (j - (t * (x / c))))
else if (y <= 3.05d-298) then
tmp = c * ((a * j) - (z * b))
else if (y <= 5.9d-276) then
tmp = z * ((x * y) - (b * c))
else if (y <= 1d-236) then
tmp = t * ((b * i) - (x * a))
else if (y <= 0.0042d0) then
tmp = (a * (c * j)) + (b * (t * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.1e+99) {
tmp = t_1;
} else if (y <= -2.75e-269) {
tmp = a * (c * (j - (t * (x / c))));
} else if (y <= 3.05e-298) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 5.9e-276) {
tmp = z * ((x * y) - (b * c));
} else if (y <= 1e-236) {
tmp = t * ((b * i) - (x * a));
} else if (y <= 0.0042) {
tmp = (a * (c * j)) + (b * (t * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -5.1e+99: tmp = t_1 elif y <= -2.75e-269: tmp = a * (c * (j - (t * (x / c)))) elif y <= 3.05e-298: tmp = c * ((a * j) - (z * b)) elif y <= 5.9e-276: tmp = z * ((x * y) - (b * c)) elif y <= 1e-236: tmp = t * ((b * i) - (x * a)) elif y <= 0.0042: tmp = (a * (c * j)) + (b * (t * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -5.1e+99) tmp = t_1; elseif (y <= -2.75e-269) tmp = Float64(a * Float64(c * Float64(j - Float64(t * Float64(x / c))))); elseif (y <= 3.05e-298) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 5.9e-276) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (y <= 1e-236) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (y <= 0.0042) tmp = Float64(Float64(a * Float64(c * j)) + Float64(b * Float64(t * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -5.1e+99) tmp = t_1; elseif (y <= -2.75e-269) tmp = a * (c * (j - (t * (x / c)))); elseif (y <= 3.05e-298) tmp = c * ((a * j) - (z * b)); elseif (y <= 5.9e-276) tmp = z * ((x * y) - (b * c)); elseif (y <= 1e-236) tmp = t * ((b * i) - (x * a)); elseif (y <= 0.0042) tmp = (a * (c * j)) + (b * (t * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e+99], t$95$1, If[LessEqual[y, -2.75e-269], N[(a * N[(c * N[(j - N[(t * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.05e-298], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.9e-276], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-236], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.0042], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.75 \cdot 10^{-269}:\\
\;\;\;\;a \cdot \left(c \cdot \left(j - t \cdot \frac{x}{c}\right)\right)\\
\mathbf{elif}\;y \leq 3.05 \cdot 10^{-298}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 5.9 \cdot 10^{-276}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;y \leq 10^{-236}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;y \leq 0.0042:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.09999999999999952e99 or 0.00419999999999999974 < y Initial program 67.5%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -5.09999999999999952e99 < y < -2.75000000000000005e-269Initial program 70.1%
Taylor expanded in a around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in c around inf 50.2%
mul-1-neg50.2%
unsub-neg50.2%
associate-/l*52.6%
Simplified52.6%
if -2.75000000000000005e-269 < y < 3.05000000000000006e-298Initial program 73.1%
Taylor expanded in c around inf 68.2%
*-commutative68.2%
Simplified68.2%
if 3.05000000000000006e-298 < y < 5.89999999999999976e-276Initial program 83.6%
Taylor expanded in z around inf 67.6%
*-commutative67.6%
Simplified67.6%
if 5.89999999999999976e-276 < y < 1e-236Initial program 89.3%
Taylor expanded in y around 0 89.5%
Simplified89.5%
Taylor expanded in t around inf 74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
Simplified74.2%
if 1e-236 < y < 0.00419999999999999974Initial program 91.3%
Taylor expanded in y around 0 74.7%
Simplified74.7%
Taylor expanded in i around inf 66.1%
Taylor expanded in x around 0 60.5%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (- t_1 (* b (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -3.9e+99)
t_3
(if (<= y -1.2e+41)
t_2
(if (<= y -1.32e-160)
(+ (* x (* y z)) (* j (- (* a c) (* y i))))
(if (<= y 8.3e-255)
t_2
(if (<= y 0.00086) (+ t_1 (* b (* t i))) 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 = a * ((c * j) - (x * t));
double t_2 = t_1 - (b * (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.9e+99) {
tmp = t_3;
} else if (y <= -1.2e+41) {
tmp = t_2;
} else if (y <= -1.32e-160) {
tmp = (x * (y * z)) + (j * ((a * c) - (y * i)));
} else if (y <= 8.3e-255) {
tmp = t_2;
} else if (y <= 0.00086) {
tmp = t_1 + (b * (t * i));
} 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 = a * ((c * j) - (x * t))
t_2 = t_1 - (b * (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-3.9d+99)) then
tmp = t_3
else if (y <= (-1.2d+41)) then
tmp = t_2
else if (y <= (-1.32d-160)) then
tmp = (x * (y * z)) + (j * ((a * c) - (y * i)))
else if (y <= 8.3d-255) then
tmp = t_2
else if (y <= 0.00086d0) then
tmp = t_1 + (b * (t * i))
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 = a * ((c * j) - (x * t));
double t_2 = t_1 - (b * (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.9e+99) {
tmp = t_3;
} else if (y <= -1.2e+41) {
tmp = t_2;
} else if (y <= -1.32e-160) {
tmp = (x * (y * z)) + (j * ((a * c) - (y * i)));
} else if (y <= 8.3e-255) {
tmp = t_2;
} else if (y <= 0.00086) {
tmp = t_1 + (b * (t * i));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = t_1 - (b * (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.9e+99: tmp = t_3 elif y <= -1.2e+41: tmp = t_2 elif y <= -1.32e-160: tmp = (x * (y * z)) + (j * ((a * c) - (y * i))) elif y <= 8.3e-255: tmp = t_2 elif y <= 0.00086: tmp = t_1 + (b * (t * i)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(t_1 - Float64(b * Float64(z * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.9e+99) tmp = t_3; elseif (y <= -1.2e+41) tmp = t_2; elseif (y <= -1.32e-160) tmp = Float64(Float64(x * Float64(y * z)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (y <= 8.3e-255) tmp = t_2; elseif (y <= 0.00086) tmp = Float64(t_1 + Float64(b * Float64(t * i))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = t_1 - (b * (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.9e+99) tmp = t_3; elseif (y <= -1.2e+41) tmp = t_2; elseif (y <= -1.32e-160) tmp = (x * (y * z)) + (j * ((a * c) - (y * i))); elseif (y <= 8.3e-255) tmp = t_2; elseif (y <= 0.00086) tmp = t_1 + (b * (t * i)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.9e+99], t$95$3, If[LessEqual[y, -1.2e+41], t$95$2, If[LessEqual[y, -1.32e-160], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.3e-255], t$95$2, If[LessEqual[y, 0.00086], N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := t\_1 - b \cdot \left(z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.9 \cdot 10^{+99}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{+41}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.32 \cdot 10^{-160}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq 8.3 \cdot 10^{-255}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 0.00086:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -3.89999999999999995e99 or 8.59999999999999979e-4 < y Initial program 67.5%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -3.89999999999999995e99 < y < -1.2000000000000001e41 or -1.3199999999999999e-160 < y < 8.29999999999999992e-255Initial program 74.3%
Taylor expanded in y around 0 66.5%
Simplified66.4%
Taylor expanded in i around 0 64.6%
+-commutative64.6%
*-commutative64.6%
*-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
if -1.2000000000000001e41 < y < -1.3199999999999999e-160Initial program 68.5%
Taylor expanded in b around 0 64.4%
Taylor expanded in y around inf 64.6%
if 8.29999999999999992e-255 < y < 8.59999999999999979e-4Initial program 92.0%
Taylor expanded in y around 0 76.7%
Simplified76.7%
Taylor expanded in i around inf 68.8%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= i -5.2e+48)
(* y (- (* x z) (* i j)))
(if (<= i -1.45e-35)
t_1
(if (<= i -2.15e-168)
(* c (- (* a j) (* z b)))
(if (<= i -7.2e-253)
(* a (- (* c j) (* x t)))
(if (<= i 7.4e-26)
(* x (- (* y z) (* t a)))
(if (<= i 3.8e+106) t_1 (* j (- (* a c) (* y i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (i <= -5.2e+48) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -1.45e-35) {
tmp = t_1;
} else if (i <= -2.15e-168) {
tmp = c * ((a * j) - (z * b));
} else if (i <= -7.2e-253) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 7.4e-26) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 3.8e+106) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (i <= (-5.2d+48)) then
tmp = y * ((x * z) - (i * j))
else if (i <= (-1.45d-35)) then
tmp = t_1
else if (i <= (-2.15d-168)) then
tmp = c * ((a * j) - (z * b))
else if (i <= (-7.2d-253)) then
tmp = a * ((c * j) - (x * t))
else if (i <= 7.4d-26) then
tmp = x * ((y * z) - (t * a))
else if (i <= 3.8d+106) then
tmp = t_1
else
tmp = j * ((a * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (i <= -5.2e+48) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -1.45e-35) {
tmp = t_1;
} else if (i <= -2.15e-168) {
tmp = c * ((a * j) - (z * b));
} else if (i <= -7.2e-253) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 7.4e-26) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 3.8e+106) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if i <= -5.2e+48: tmp = y * ((x * z) - (i * j)) elif i <= -1.45e-35: tmp = t_1 elif i <= -2.15e-168: tmp = c * ((a * j) - (z * b)) elif i <= -7.2e-253: tmp = a * ((c * j) - (x * t)) elif i <= 7.4e-26: tmp = x * ((y * z) - (t * a)) elif i <= 3.8e+106: tmp = t_1 else: tmp = j * ((a * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (i <= -5.2e+48) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= -1.45e-35) tmp = t_1; elseif (i <= -2.15e-168) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= -7.2e-253) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 7.4e-26) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 3.8e+106) tmp = t_1; else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (i <= -5.2e+48) tmp = y * ((x * z) - (i * j)); elseif (i <= -1.45e-35) tmp = t_1; elseif (i <= -2.15e-168) tmp = c * ((a * j) - (z * b)); elseif (i <= -7.2e-253) tmp = a * ((c * j) - (x * t)); elseif (i <= 7.4e-26) tmp = x * ((y * z) - (t * a)); elseif (i <= 3.8e+106) tmp = t_1; else tmp = j * ((a * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.2e+48], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.45e-35], t$95$1, If[LessEqual[i, -2.15e-168], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.2e-253], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.4e-26], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e+106], t$95$1, N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;i \leq -5.2 \cdot 10^{+48}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq -1.45 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.15 \cdot 10^{-168}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq -7.2 \cdot 10^{-253}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if i < -5.1999999999999999e48Initial program 62.5%
Taylor expanded in y around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
if -5.1999999999999999e48 < i < -1.4500000000000001e-35 or 7.3999999999999997e-26 < i < 3.7999999999999998e106Initial program 73.7%
Taylor expanded in y around 0 74.4%
Simplified74.4%
Taylor expanded in t around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
if -1.4500000000000001e-35 < i < -2.14999999999999998e-168Initial program 64.3%
Taylor expanded in c around inf 69.1%
*-commutative69.1%
Simplified69.1%
if -2.14999999999999998e-168 < i < -7.2e-253Initial program 92.1%
Taylor expanded in a around inf 84.5%
+-commutative84.5%
mul-1-neg84.5%
unsub-neg84.5%
Simplified84.5%
if -7.2e-253 < i < 7.3999999999999997e-26Initial program 81.0%
Taylor expanded in x around inf 49.8%
cancel-sign-sub-inv49.8%
*-commutative49.8%
*-commutative49.8%
distribute-rgt-neg-out49.8%
sub-neg49.8%
Simplified49.8%
if 3.7999999999999998e106 < i Initial program 67.9%
Taylor expanded in j around inf 58.3%
*-commutative58.3%
Simplified58.3%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= i -2e+118)
t_3
(if (<= i -4e-36)
t_2
(if (<= i -1.3e-166)
t_1
(if (<= i 9.5e-251)
(* a (- (* c j) (* x t)))
(if (<= i 1.1e-78) t_1 (if (<= i 4.2e+106) 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 = c * ((a * j) - (z * b));
double t_2 = t * ((b * i) - (x * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (i <= -2e+118) {
tmp = t_3;
} else if (i <= -4e-36) {
tmp = t_2;
} else if (i <= -1.3e-166) {
tmp = t_1;
} else if (i <= 9.5e-251) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.1e-78) {
tmp = t_1;
} else if (i <= 4.2e+106) {
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 = c * ((a * j) - (z * b))
t_2 = t * ((b * i) - (x * a))
t_3 = j * ((a * c) - (y * i))
if (i <= (-2d+118)) then
tmp = t_3
else if (i <= (-4d-36)) then
tmp = t_2
else if (i <= (-1.3d-166)) then
tmp = t_1
else if (i <= 9.5d-251) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.1d-78) then
tmp = t_1
else if (i <= 4.2d+106) 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 = c * ((a * j) - (z * b));
double t_2 = t * ((b * i) - (x * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (i <= -2e+118) {
tmp = t_3;
} else if (i <= -4e-36) {
tmp = t_2;
} else if (i <= -1.3e-166) {
tmp = t_1;
} else if (i <= 9.5e-251) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.1e-78) {
tmp = t_1;
} else if (i <= 4.2e+106) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = t * ((b * i) - (x * a)) t_3 = j * ((a * c) - (y * i)) tmp = 0 if i <= -2e+118: tmp = t_3 elif i <= -4e-36: tmp = t_2 elif i <= -1.3e-166: tmp = t_1 elif i <= 9.5e-251: tmp = a * ((c * j) - (x * t)) elif i <= 1.1e-78: tmp = t_1 elif i <= 4.2e+106: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (i <= -2e+118) tmp = t_3; elseif (i <= -4e-36) tmp = t_2; elseif (i <= -1.3e-166) tmp = t_1; elseif (i <= 9.5e-251) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.1e-78) tmp = t_1; elseif (i <= 4.2e+106) 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 = c * ((a * j) - (z * b)); t_2 = t * ((b * i) - (x * a)); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (i <= -2e+118) tmp = t_3; elseif (i <= -4e-36) tmp = t_2; elseif (i <= -1.3e-166) tmp = t_1; elseif (i <= 9.5e-251) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.1e-78) tmp = t_1; elseif (i <= 4.2e+106) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2e+118], t$95$3, If[LessEqual[i, -4e-36], t$95$2, If[LessEqual[i, -1.3e-166], t$95$1, If[LessEqual[i, 9.5e-251], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.1e-78], t$95$1, If[LessEqual[i, 4.2e+106], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;i \leq -2 \cdot 10^{+118}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -4 \cdot 10^{-36}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.3 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{-251}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{+106}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -1.99999999999999993e118 or 4.2000000000000001e106 < i Initial program 65.2%
Taylor expanded in j around inf 59.5%
*-commutative59.5%
Simplified59.5%
if -1.99999999999999993e118 < i < -3.9999999999999998e-36 or 1.0999999999999999e-78 < i < 4.2000000000000001e106Initial program 75.7%
Taylor expanded in y around 0 65.0%
Simplified65.0%
Taylor expanded in t around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
Simplified54.9%
if -3.9999999999999998e-36 < i < -1.29999999999999995e-166 or 9.49999999999999927e-251 < i < 1.0999999999999999e-78Initial program 71.9%
Taylor expanded in c around inf 54.3%
*-commutative54.3%
Simplified54.3%
if -1.29999999999999995e-166 < i < 9.49999999999999927e-251Initial program 87.2%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
Simplified67.8%
Final simplification59.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.5e+196)
t_2
(if (<= b -3.15e+125)
t_1
(if (<= b -8e-29)
t_2
(if (<= b 3e-170)
t_1
(if (<= b 4.2e-122)
(* x (* y z))
(if (<= b 2.5e+128) 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 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.5e+196) {
tmp = t_2;
} else if (b <= -3.15e+125) {
tmp = t_1;
} else if (b <= -8e-29) {
tmp = t_2;
} else if (b <= 3e-170) {
tmp = t_1;
} else if (b <= 4.2e-122) {
tmp = x * (y * z);
} else if (b <= 2.5e+128) {
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 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.5d+196)) then
tmp = t_2
else if (b <= (-3.15d+125)) then
tmp = t_1
else if (b <= (-8d-29)) then
tmp = t_2
else if (b <= 3d-170) then
tmp = t_1
else if (b <= 4.2d-122) then
tmp = x * (y * z)
else if (b <= 2.5d+128) 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 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.5e+196) {
tmp = t_2;
} else if (b <= -3.15e+125) {
tmp = t_1;
} else if (b <= -8e-29) {
tmp = t_2;
} else if (b <= 3e-170) {
tmp = t_1;
} else if (b <= 4.2e-122) {
tmp = x * (y * z);
} else if (b <= 2.5e+128) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.5e+196: tmp = t_2 elif b <= -3.15e+125: tmp = t_1 elif b <= -8e-29: tmp = t_2 elif b <= 3e-170: tmp = t_1 elif b <= 4.2e-122: tmp = x * (y * z) elif b <= 2.5e+128: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.5e+196) tmp = t_2; elseif (b <= -3.15e+125) tmp = t_1; elseif (b <= -8e-29) tmp = t_2; elseif (b <= 3e-170) tmp = t_1; elseif (b <= 4.2e-122) tmp = Float64(x * Float64(y * z)); elseif (b <= 2.5e+128) 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 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.5e+196) tmp = t_2; elseif (b <= -3.15e+125) tmp = t_1; elseif (b <= -8e-29) tmp = t_2; elseif (b <= 3e-170) tmp = t_1; elseif (b <= 4.2e-122) tmp = x * (y * z); elseif (b <= 2.5e+128) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+196], t$95$2, If[LessEqual[b, -3.15e+125], t$95$1, If[LessEqual[b, -8e-29], t$95$2, If[LessEqual[b, 3e-170], t$95$1, If[LessEqual[b, 4.2e-122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e+128], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+196}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.15 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.49999999999999973e196 or -3.1500000000000001e125 < b < -7.99999999999999955e-29 or 2.5e128 < b Initial program 69.0%
Taylor expanded in b around inf 62.3%
if -5.49999999999999973e196 < b < -3.1500000000000001e125 or -7.99999999999999955e-29 < b < 3.00000000000000013e-170 or 4.19999999999999985e-122 < b < 2.5e128Initial program 76.6%
Taylor expanded in a around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
Simplified51.5%
if 3.00000000000000013e-170 < b < 4.19999999999999985e-122Initial program 75.7%
Taylor expanded in i around 0 70.0%
Taylor expanded in y around inf 67.1%
Final simplification56.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))))
(if (<= i -9.6e+42)
t_1
(if (<= i -7.5e-253)
(* c (* a j))
(if (<= i -5.5e-294)
(* z (* x y))
(if (<= i 2.7e-207)
(* j (* a c))
(if (<= i 6e-23)
(* z (* c (- b)))
(if (<= i 3.2e+199) (* t (* b i)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (i <= -9.6e+42) {
tmp = t_1;
} else if (i <= -7.5e-253) {
tmp = c * (a * j);
} else if (i <= -5.5e-294) {
tmp = z * (x * y);
} else if (i <= 2.7e-207) {
tmp = j * (a * c);
} else if (i <= 6e-23) {
tmp = z * (c * -b);
} else if (i <= 3.2e+199) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y * -i)
if (i <= (-9.6d+42)) then
tmp = t_1
else if (i <= (-7.5d-253)) then
tmp = c * (a * j)
else if (i <= (-5.5d-294)) then
tmp = z * (x * y)
else if (i <= 2.7d-207) then
tmp = j * (a * c)
else if (i <= 6d-23) then
tmp = z * (c * -b)
else if (i <= 3.2d+199) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (i <= -9.6e+42) {
tmp = t_1;
} else if (i <= -7.5e-253) {
tmp = c * (a * j);
} else if (i <= -5.5e-294) {
tmp = z * (x * y);
} else if (i <= 2.7e-207) {
tmp = j * (a * c);
} else if (i <= 6e-23) {
tmp = z * (c * -b);
} else if (i <= 3.2e+199) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) tmp = 0 if i <= -9.6e+42: tmp = t_1 elif i <= -7.5e-253: tmp = c * (a * j) elif i <= -5.5e-294: tmp = z * (x * y) elif i <= 2.7e-207: tmp = j * (a * c) elif i <= 6e-23: tmp = z * (c * -b) elif i <= 3.2e+199: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (i <= -9.6e+42) tmp = t_1; elseif (i <= -7.5e-253) tmp = Float64(c * Float64(a * j)); elseif (i <= -5.5e-294) tmp = Float64(z * Float64(x * y)); elseif (i <= 2.7e-207) tmp = Float64(j * Float64(a * c)); elseif (i <= 6e-23) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 3.2e+199) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); tmp = 0.0; if (i <= -9.6e+42) tmp = t_1; elseif (i <= -7.5e-253) tmp = c * (a * j); elseif (i <= -5.5e-294) tmp = z * (x * y); elseif (i <= 2.7e-207) tmp = j * (a * c); elseif (i <= 6e-23) tmp = z * (c * -b); elseif (i <= 3.2e+199) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9.6e+42], t$95$1, If[LessEqual[i, -7.5e-253], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5.5e-294], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.7e-207], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e-23], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.2e+199], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;i \leq -9.6 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{-253}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;i \leq -5.5 \cdot 10^{-294}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-207}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-23}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{+199}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -9.5999999999999994e42 or 3.20000000000000006e199 < i Initial program 61.1%
Taylor expanded in j around inf 61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in c around 0 56.7%
mul-1-neg56.7%
Simplified56.7%
if -9.5999999999999994e42 < i < -7.49999999999999987e-253Initial program 78.0%
Taylor expanded in i around 0 71.6%
Taylor expanded in j around inf 30.4%
associate-*r*33.4%
*-commutative33.4%
associate-*r*36.4%
Simplified36.4%
if -7.49999999999999987e-253 < i < -5.5e-294Initial program 86.8%
Taylor expanded in z around inf 61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in y around inf 48.7%
*-commutative48.7%
Simplified48.7%
if -5.5e-294 < i < 2.7e-207Initial program 73.9%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in c around inf 42.4%
*-commutative42.4%
Simplified42.4%
if 2.7e-207 < i < 6.00000000000000006e-23Initial program 83.7%
Taylor expanded in z around inf 55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in y around 0 32.4%
neg-mul-132.4%
distribute-rgt-neg-in32.4%
Simplified32.4%
if 6.00000000000000006e-23 < i < 3.20000000000000006e199Initial program 73.2%
Taylor expanded in y around 0 59.9%
Simplified59.9%
Taylor expanded in i around inf 57.6%
Taylor expanded in a around 0 38.9%
*-commutative38.9%
*-commutative38.9%
associate-*r*42.4%
Simplified42.4%
Final simplification43.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))))
(if (<= i -5.8e+43)
t_1
(if (<= i -9.5e-253)
(* c (* a j))
(if (<= i -8.4e-302)
(* z (* x y))
(if (<= i 1.92e-208)
(* j (* a c))
(if (<= i 3e-26)
(* x (* y z))
(if (<= i 2.5e+198) (* t (* b i)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (i <= -5.8e+43) {
tmp = t_1;
} else if (i <= -9.5e-253) {
tmp = c * (a * j);
} else if (i <= -8.4e-302) {
tmp = z * (x * y);
} else if (i <= 1.92e-208) {
tmp = j * (a * c);
} else if (i <= 3e-26) {
tmp = x * (y * z);
} else if (i <= 2.5e+198) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y * -i)
if (i <= (-5.8d+43)) then
tmp = t_1
else if (i <= (-9.5d-253)) then
tmp = c * (a * j)
else if (i <= (-8.4d-302)) then
tmp = z * (x * y)
else if (i <= 1.92d-208) then
tmp = j * (a * c)
else if (i <= 3d-26) then
tmp = x * (y * z)
else if (i <= 2.5d+198) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (i <= -5.8e+43) {
tmp = t_1;
} else if (i <= -9.5e-253) {
tmp = c * (a * j);
} else if (i <= -8.4e-302) {
tmp = z * (x * y);
} else if (i <= 1.92e-208) {
tmp = j * (a * c);
} else if (i <= 3e-26) {
tmp = x * (y * z);
} else if (i <= 2.5e+198) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) tmp = 0 if i <= -5.8e+43: tmp = t_1 elif i <= -9.5e-253: tmp = c * (a * j) elif i <= -8.4e-302: tmp = z * (x * y) elif i <= 1.92e-208: tmp = j * (a * c) elif i <= 3e-26: tmp = x * (y * z) elif i <= 2.5e+198: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (i <= -5.8e+43) tmp = t_1; elseif (i <= -9.5e-253) tmp = Float64(c * Float64(a * j)); elseif (i <= -8.4e-302) tmp = Float64(z * Float64(x * y)); elseif (i <= 1.92e-208) tmp = Float64(j * Float64(a * c)); elseif (i <= 3e-26) tmp = Float64(x * Float64(y * z)); elseif (i <= 2.5e+198) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); tmp = 0.0; if (i <= -5.8e+43) tmp = t_1; elseif (i <= -9.5e-253) tmp = c * (a * j); elseif (i <= -8.4e-302) tmp = z * (x * y); elseif (i <= 1.92e-208) tmp = j * (a * c); elseif (i <= 3e-26) tmp = x * (y * z); elseif (i <= 2.5e+198) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.8e+43], t$95$1, If[LessEqual[i, -9.5e-253], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.4e-302], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.92e-208], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e-26], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e+198], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;i \leq -5.8 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -9.5 \cdot 10^{-253}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;i \leq -8.4 \cdot 10^{-302}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 1.92 \cdot 10^{-208}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+198}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -5.8000000000000004e43 or 2.50000000000000024e198 < i Initial program 61.1%
Taylor expanded in j around inf 61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in c around 0 56.7%
mul-1-neg56.7%
Simplified56.7%
if -5.8000000000000004e43 < i < -9.5e-253Initial program 78.0%
Taylor expanded in i around 0 71.6%
Taylor expanded in j around inf 30.4%
associate-*r*33.4%
*-commutative33.4%
associate-*r*36.4%
Simplified36.4%
if -9.5e-253 < i < -8.40000000000000052e-302Initial program 86.8%
Taylor expanded in z around inf 61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in y around inf 48.7%
*-commutative48.7%
Simplified48.7%
if -8.40000000000000052e-302 < i < 1.9200000000000001e-208Initial program 73.9%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in c around inf 42.4%
*-commutative42.4%
Simplified42.4%
if 1.9200000000000001e-208 < i < 3.00000000000000012e-26Initial program 83.7%
Taylor expanded in i around 0 70.3%
Taylor expanded in y around inf 31.1%
if 3.00000000000000012e-26 < i < 2.50000000000000024e198Initial program 73.2%
Taylor expanded in y around 0 59.9%
Simplified59.9%
Taylor expanded in i around inf 57.6%
Taylor expanded in a around 0 38.9%
*-commutative38.9%
*-commutative38.9%
associate-*r*42.4%
Simplified42.4%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* a (- (* c j) (* x t))) (* b (* t i))))
(t_2 (* y (- (* x z) (* i j)))))
(if (<= y -3.8e+99)
t_2
(if (<= y -8e-222)
t_1
(if (<= y -1.7e-304)
(* c (- (* a j) (* z b)))
(if (<= y 0.0072) 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 = (a * ((c * j) - (x * t))) + (b * (t * i));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.8e+99) {
tmp = t_2;
} else if (y <= -8e-222) {
tmp = t_1;
} else if (y <= -1.7e-304) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 0.0072) {
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 = (a * ((c * j) - (x * t))) + (b * (t * i))
t_2 = y * ((x * z) - (i * j))
if (y <= (-3.8d+99)) then
tmp = t_2
else if (y <= (-8d-222)) then
tmp = t_1
else if (y <= (-1.7d-304)) then
tmp = c * ((a * j) - (z * b))
else if (y <= 0.0072d0) 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 = (a * ((c * j) - (x * t))) + (b * (t * i));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.8e+99) {
tmp = t_2;
} else if (y <= -8e-222) {
tmp = t_1;
} else if (y <= -1.7e-304) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 0.0072) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (a * ((c * j) - (x * t))) + (b * (t * i)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.8e+99: tmp = t_2 elif y <= -8e-222: tmp = t_1 elif y <= -1.7e-304: tmp = c * ((a * j) - (z * b)) elif y <= 0.0072: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(t * i))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.8e+99) tmp = t_2; elseif (y <= -8e-222) tmp = t_1; elseif (y <= -1.7e-304) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 0.0072) 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 = (a * ((c * j) - (x * t))) + (b * (t * i)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.8e+99) tmp = t_2; elseif (y <= -8e-222) tmp = t_1; elseif (y <= -1.7e-304) tmp = c * ((a * j) - (z * b)); elseif (y <= 0.0072) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e+99], t$95$2, If[LessEqual[y, -8e-222], t$95$1, If[LessEqual[y, -1.7e-304], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.0072], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+99}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -8 \cdot 10^{-222}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-304}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 0.0072:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.8e99 or 0.0071999999999999998 < y Initial program 67.5%
Taylor expanded in y around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
*-commutative76.1%
Simplified76.1%
if -3.8e99 < y < -8.00000000000000038e-222 or -1.6999999999999999e-304 < y < 0.0071999999999999998Initial program 79.6%
Taylor expanded in y around 0 66.2%
Simplified66.9%
Taylor expanded in i around inf 58.6%
if -8.00000000000000038e-222 < y < -1.6999999999999999e-304Initial program 64.2%
Taylor expanded in c around inf 74.7%
*-commutative74.7%
Simplified74.7%
Final simplification66.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.2e+114) (and (not (<= b -3.4e-119)) (<= b 4.9e-55))) (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a)))) (+ (* a (- (* c j) (* x t))) (* b (- (* t 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 <= -1.2e+114) || (!(b <= -3.4e-119) && (b <= 4.9e-55))) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * 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 <= (-1.2d+114)) .or. (.not. (b <= (-3.4d-119))) .and. (b <= 4.9d-55)) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (a * ((c * j) - (x * t))) + (b * ((t * 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 <= -1.2e+114) || (!(b <= -3.4e-119) && (b <= 4.9e-55))) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.2e+114) or (not (b <= -3.4e-119) and (b <= 4.9e-55)): tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.2e+114) || (!(b <= -3.4e-119) && (b <= 4.9e-55))) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * 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 <= -1.2e+114) || (~((b <= -3.4e-119)) && (b <= 4.9e-55))) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.2e+114], And[N[Not[LessEqual[b, -3.4e-119]], $MachinePrecision], LessEqual[b, 4.9e-55]]], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.2 \cdot 10^{+114} \lor \neg \left(b \leq -3.4 \cdot 10^{-119}\right) \land b \leq 4.9 \cdot 10^{-55}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -1.2e114 or -3.40000000000000024e-119 < b < 4.90000000000000035e-55Initial program 78.2%
Taylor expanded in b around 0 77.4%
if -1.2e114 < b < -3.40000000000000024e-119 or 4.90000000000000035e-55 < b Initial program 69.1%
Taylor expanded in y around 0 63.8%
Simplified64.6%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= i -3.15e-35)
t_2
(if (<= i -8.5e-166)
t_1
(if (<= i 9.2e-253)
(* a (- (* c j) (* x t)))
(if (<= i 1.15e+88) 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 = c * ((a * j) - (z * b));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (i <= -3.15e-35) {
tmp = t_2;
} else if (i <= -8.5e-166) {
tmp = t_1;
} else if (i <= 9.2e-253) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.15e+88) {
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 = c * ((a * j) - (z * b))
t_2 = j * ((a * c) - (y * i))
if (i <= (-3.15d-35)) then
tmp = t_2
else if (i <= (-8.5d-166)) then
tmp = t_1
else if (i <= 9.2d-253) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.15d+88) 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 = c * ((a * j) - (z * b));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (i <= -3.15e-35) {
tmp = t_2;
} else if (i <= -8.5e-166) {
tmp = t_1;
} else if (i <= 9.2e-253) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.15e+88) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if i <= -3.15e-35: tmp = t_2 elif i <= -8.5e-166: tmp = t_1 elif i <= 9.2e-253: tmp = a * ((c * j) - (x * t)) elif i <= 1.15e+88: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (i <= -3.15e-35) tmp = t_2; elseif (i <= -8.5e-166) tmp = t_1; elseif (i <= 9.2e-253) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.15e+88) 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 = c * ((a * j) - (z * b)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (i <= -3.15e-35) tmp = t_2; elseif (i <= -8.5e-166) tmp = t_1; elseif (i <= 9.2e-253) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.15e+88) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.15e-35], t$95$2, If[LessEqual[i, -8.5e-166], t$95$1, If[LessEqual[i, 9.2e-253], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.15e+88], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;i \leq -3.15 \cdot 10^{-35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{-253}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -3.15000000000000023e-35 or 1.1500000000000001e88 < i Initial program 66.5%
Taylor expanded in j around inf 54.4%
*-commutative54.4%
Simplified54.4%
if -3.15000000000000023e-35 < i < -8.5e-166 or 9.2000000000000001e-253 < i < 1.1500000000000001e88Initial program 75.0%
Taylor expanded in c around inf 49.5%
*-commutative49.5%
Simplified49.5%
if -8.5e-166 < i < 9.2000000000000001e-253Initial program 87.2%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
Simplified67.8%
Final simplification55.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* y (- i)))))
(if (<= y -6.8e+99)
t_1
(if (<= y 1.2e+136)
(* a (- (* c j) (* x t)))
(if (or (<= y 1.45e+197) (not (<= y 6e+242))) t_1 (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (y <= -6.8e+99) {
tmp = t_1;
} else if (y <= 1.2e+136) {
tmp = a * ((c * j) - (x * t));
} else if ((y <= 1.45e+197) || !(y <= 6e+242)) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y * -i)
if (y <= (-6.8d+99)) then
tmp = t_1
else if (y <= 1.2d+136) then
tmp = a * ((c * j) - (x * t))
else if ((y <= 1.45d+197) .or. (.not. (y <= 6d+242))) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (y * -i);
double tmp;
if (y <= -6.8e+99) {
tmp = t_1;
} else if (y <= 1.2e+136) {
tmp = a * ((c * j) - (x * t));
} else if ((y <= 1.45e+197) || !(y <= 6e+242)) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (y * -i) tmp = 0 if y <= -6.8e+99: tmp = t_1 elif y <= 1.2e+136: tmp = a * ((c * j) - (x * t)) elif (y <= 1.45e+197) or not (y <= 6e+242): tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(y * Float64(-i))) tmp = 0.0 if (y <= -6.8e+99) tmp = t_1; elseif (y <= 1.2e+136) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif ((y <= 1.45e+197) || !(y <= 6e+242)) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (y * -i); tmp = 0.0; if (y <= -6.8e+99) tmp = t_1; elseif (y <= 1.2e+136) tmp = a * ((c * j) - (x * t)); elseif ((y <= 1.45e+197) || ~((y <= 6e+242))) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e+99], t$95$1, If[LessEqual[y, 1.2e+136], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 1.45e+197], N[Not[LessEqual[y, 6e+242]], $MachinePrecision]], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+136}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+197} \lor \neg \left(y \leq 6 \cdot 10^{+242}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -6.79999999999999968e99 or 1.2e136 < y < 1.45000000000000001e197 or 6.0000000000000001e242 < y Initial program 64.0%
Taylor expanded in j around inf 61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in c around 0 57.4%
mul-1-neg57.4%
Simplified57.4%
if -6.79999999999999968e99 < y < 1.2e136Initial program 78.7%
Taylor expanded in a around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
Simplified46.1%
if 1.45000000000000001e197 < y < 6.0000000000000001e242Initial program 60.6%
Taylor expanded in z around inf 75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in y around inf 75.4%
*-commutative75.4%
Simplified75.4%
Final simplification50.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -8.5e-50)
(* a (* c j))
(if (<= c 7.6e-293)
(* x (* y z))
(if (<= c 4.2e-237)
(* b (* t i))
(if (<= c 4.4e+21) (* z (* x y)) (* j (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -8.5e-50) {
tmp = a * (c * j);
} else if (c <= 7.6e-293) {
tmp = x * (y * z);
} else if (c <= 4.2e-237) {
tmp = b * (t * i);
} else if (c <= 4.4e+21) {
tmp = z * (x * y);
} else {
tmp = j * (a * 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 (c <= (-8.5d-50)) then
tmp = a * (c * j)
else if (c <= 7.6d-293) then
tmp = x * (y * z)
else if (c <= 4.2d-237) then
tmp = b * (t * i)
else if (c <= 4.4d+21) then
tmp = z * (x * y)
else
tmp = j * (a * 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 (c <= -8.5e-50) {
tmp = a * (c * j);
} else if (c <= 7.6e-293) {
tmp = x * (y * z);
} else if (c <= 4.2e-237) {
tmp = b * (t * i);
} else if (c <= 4.4e+21) {
tmp = z * (x * y);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -8.5e-50: tmp = a * (c * j) elif c <= 7.6e-293: tmp = x * (y * z) elif c <= 4.2e-237: tmp = b * (t * i) elif c <= 4.4e+21: tmp = z * (x * y) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -8.5e-50) tmp = Float64(a * Float64(c * j)); elseif (c <= 7.6e-293) tmp = Float64(x * Float64(y * z)); elseif (c <= 4.2e-237) tmp = Float64(b * Float64(t * i)); elseif (c <= 4.4e+21) tmp = Float64(z * Float64(x * y)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -8.5e-50) tmp = a * (c * j); elseif (c <= 7.6e-293) tmp = x * (y * z); elseif (c <= 4.2e-237) tmp = b * (t * i); elseif (c <= 4.4e+21) tmp = z * (x * y); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -8.5e-50], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.6e-293], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e-237], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.4e+21], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.5 \cdot 10^{-50}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{-293}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-237}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{+21}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -8.50000000000000012e-50Initial program 66.5%
Taylor expanded in a around inf 40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
Simplified40.9%
Taylor expanded in c around inf 36.5%
if -8.50000000000000012e-50 < c < 7.6e-293Initial program 80.5%
Taylor expanded in i around 0 65.2%
Taylor expanded in y around inf 31.4%
if 7.6e-293 < c < 4.2000000000000002e-237Initial program 81.7%
Taylor expanded in y around 0 55.0%
Simplified55.0%
Taylor expanded in i around inf 53.6%
Taylor expanded in a around 0 53.6%
*-commutative53.6%
Simplified53.6%
if 4.2000000000000002e-237 < c < 4.4e21Initial program 85.8%
Taylor expanded in z around inf 39.1%
*-commutative39.1%
Simplified39.1%
Taylor expanded in y around inf 36.0%
*-commutative36.0%
Simplified36.0%
if 4.4e21 < c Initial program 63.3%
Taylor expanded in j around inf 52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in c around inf 44.5%
*-commutative44.5%
Simplified44.5%
Final simplification37.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -9.8e+117)
t_1
(if (<= z -5.2e-131)
(* j (* a c))
(if (<= z 1.5e-33) (* b (* t i)) 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 = x * (y * z);
double tmp;
if (z <= -9.8e+117) {
tmp = t_1;
} else if (z <= -5.2e-131) {
tmp = j * (a * c);
} else if (z <= 1.5e-33) {
tmp = b * (t * i);
} 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 = x * (y * z)
if (z <= (-9.8d+117)) then
tmp = t_1
else if (z <= (-5.2d-131)) then
tmp = j * (a * c)
else if (z <= 1.5d-33) then
tmp = b * (t * i)
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 = x * (y * z);
double tmp;
if (z <= -9.8e+117) {
tmp = t_1;
} else if (z <= -5.2e-131) {
tmp = j * (a * c);
} else if (z <= 1.5e-33) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -9.8e+117: tmp = t_1 elif z <= -5.2e-131: tmp = j * (a * c) elif z <= 1.5e-33: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -9.8e+117) tmp = t_1; elseif (z <= -5.2e-131) tmp = Float64(j * Float64(a * c)); elseif (z <= 1.5e-33) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (z <= -9.8e+117) tmp = t_1; elseif (z <= -5.2e-131) tmp = j * (a * c); elseif (z <= 1.5e-33) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.8e+117], t$95$1, If[LessEqual[z, -5.2e-131], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e-33], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -9.8 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{-131}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-33}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.8000000000000002e117 or 1.5000000000000001e-33 < z Initial program 63.8%
Taylor expanded in i around 0 60.5%
Taylor expanded in y around inf 35.0%
if -9.8000000000000002e117 < z < -5.19999999999999993e-131Initial program 80.3%
Taylor expanded in j around inf 56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in c around inf 38.8%
*-commutative38.8%
Simplified38.8%
if -5.19999999999999993e-131 < z < 1.5000000000000001e-33Initial program 85.0%
Taylor expanded in y around 0 63.4%
Simplified63.4%
Taylor expanded in i around inf 60.6%
Taylor expanded in a around 0 33.2%
*-commutative33.2%
Simplified33.2%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -3e+64) (not (<= j 6.8e+86))) (* c (* a j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -3e+64) || !(j <= 6.8e+86)) {
tmp = c * (a * j);
} else {
tmp = b * (t * 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 ((j <= (-3d+64)) .or. (.not. (j <= 6.8d+86))) then
tmp = c * (a * j)
else
tmp = b * (t * 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 ((j <= -3e+64) || !(j <= 6.8e+86)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -3e+64) or not (j <= 6.8e+86): tmp = c * (a * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -3e+64) || !(j <= 6.8e+86)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -3e+64) || ~((j <= 6.8e+86))) tmp = c * (a * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -3e+64], N[Not[LessEqual[j, 6.8e+86]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3 \cdot 10^{+64} \lor \neg \left(j \leq 6.8 \cdot 10^{+86}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -3.0000000000000002e64 or 6.7999999999999995e86 < j Initial program 67.3%
Taylor expanded in i around 0 50.1%
Taylor expanded in j around inf 41.6%
associate-*r*41.6%
*-commutative41.6%
associate-*r*45.1%
Simplified45.1%
if -3.0000000000000002e64 < j < 6.7999999999999995e86Initial program 78.8%
Taylor expanded in y around 0 59.9%
Simplified59.9%
Taylor expanded in i around inf 47.2%
Taylor expanded in a around 0 26.9%
*-commutative26.9%
Simplified26.9%
Final simplification34.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -4e+64) (not (<= j 1.2e+93))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -4e+64) || !(j <= 1.2e+93)) {
tmp = a * (c * j);
} else {
tmp = b * (t * 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 ((j <= (-4d+64)) .or. (.not. (j <= 1.2d+93))) then
tmp = a * (c * j)
else
tmp = b * (t * 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 ((j <= -4e+64) || !(j <= 1.2e+93)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -4e+64) or not (j <= 1.2e+93): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -4e+64) || !(j <= 1.2e+93)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -4e+64) || ~((j <= 1.2e+93))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -4e+64], N[Not[LessEqual[j, 1.2e+93]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4 \cdot 10^{+64} \lor \neg \left(j \leq 1.2 \cdot 10^{+93}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -4.00000000000000009e64 or 1.20000000000000005e93 < j Initial program 67.3%
Taylor expanded in a around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
Simplified53.1%
Taylor expanded in c around inf 41.6%
if -4.00000000000000009e64 < j < 1.20000000000000005e93Initial program 78.8%
Taylor expanded in y around 0 59.9%
Simplified59.9%
Taylor expanded in i around inf 47.2%
Taylor expanded in a around 0 26.9%
*-commutative26.9%
Simplified26.9%
Final simplification33.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -8.5e-83) (* c (* a j)) (if (<= c 1.6e+14) (* b (* t i)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -8.5e-83) {
tmp = c * (a * j);
} else if (c <= 1.6e+14) {
tmp = b * (t * i);
} else {
tmp = j * (a * 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 (c <= (-8.5d-83)) then
tmp = c * (a * j)
else if (c <= 1.6d+14) then
tmp = b * (t * i)
else
tmp = j * (a * 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 (c <= -8.5e-83) {
tmp = c * (a * j);
} else if (c <= 1.6e+14) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -8.5e-83: tmp = c * (a * j) elif c <= 1.6e+14: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -8.5e-83) tmp = Float64(c * Float64(a * j)); elseif (c <= 1.6e+14) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -8.5e-83) tmp = c * (a * j); elseif (c <= 1.6e+14) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -8.5e-83], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e+14], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.5 \cdot 10^{-83}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+14}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -8.49999999999999938e-83Initial program 67.0%
Taylor expanded in i around 0 55.5%
Taylor expanded in j around inf 33.3%
associate-*r*30.8%
*-commutative30.8%
associate-*r*34.5%
Simplified34.5%
if -8.49999999999999938e-83 < c < 1.6e14Initial program 84.6%
Taylor expanded in y around 0 49.5%
Simplified50.4%
Taylor expanded in i around inf 44.3%
Taylor expanded in a around 0 25.9%
*-commutative25.9%
Simplified25.9%
if 1.6e14 < c Initial program 62.4%
Taylor expanded in j around inf 51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in c around inf 43.9%
*-commutative43.9%
Simplified43.9%
Final simplification32.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 74.0%
Taylor expanded in a around inf 39.1%
+-commutative39.1%
mul-1-neg39.1%
unsub-neg39.1%
Simplified39.1%
Taylor expanded in c around inf 22.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024086
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))