
(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 21 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 (* j (* t (/ (- (* b i) (* x a)) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = j * (t * (((b * i) - (x * a)) / j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = j * (t * (((b * i) - (x * a)) / j));
}
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 = j * (t * (((b * i) - (x * a)) / j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(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(j * Float64(t * Float64(Float64(Float64(b * i) - Float64(x * a)) / j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = j * (t * (((b * i) - (x * a)) / j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(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[(j * N[(t * N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(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}:\\
\;\;\;\;j \cdot \left(t \cdot \frac{b \cdot i - x \cdot a}{j}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.4%
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 z around 0 19.6%
associate--l+19.6%
cancel-sign-sub-inv19.6%
metadata-eval19.6%
*-lft-identity19.6%
+-commutative19.6%
associate-+r+19.6%
Simplified31.2%
Taylor expanded in j around -inf 38.8%
associate-*r*38.8%
mul-1-neg38.8%
+-commutative38.8%
mul-1-neg38.8%
*-commutative38.8%
unsub-neg38.8%
mul-1-neg38.8%
associate-/l*42.7%
distribute-rgt-neg-in42.7%
*-commutative42.7%
*-commutative42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in t around inf 52.4%
mul-1-neg52.4%
distribute-rgt-neg-in52.4%
distribute-rgt-neg-out52.4%
div-sub56.2%
Simplified56.2%
Final simplification85.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ t_1 (* t (* b i))))
(t_3 (* z (- (* x y) (* b c))))
(t_4 (- t_3 (* a (* x t)))))
(if (<= z -3.2e+52)
t_3
(if (<= z -9.8e+17)
t_1
(if (<= z -2.25e-12)
t_4
(if (<= z 1.5e-29)
t_2
(if (<= z 1e+30)
(* b (- (* t i) (* z c)))
(if (<= z 7.1e+53) t_2 t_4))))))))
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 = t_1 + (t * (b * i));
double t_3 = z * ((x * y) - (b * c));
double t_4 = t_3 - (a * (x * t));
double tmp;
if (z <= -3.2e+52) {
tmp = t_3;
} else if (z <= -9.8e+17) {
tmp = t_1;
} else if (z <= -2.25e-12) {
tmp = t_4;
} else if (z <= 1.5e-29) {
tmp = t_2;
} else if (z <= 1e+30) {
tmp = b * ((t * i) - (z * c));
} else if (z <= 7.1e+53) {
tmp = t_2;
} else {
tmp = t_4;
}
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) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t_1 + (t * (b * i))
t_3 = z * ((x * y) - (b * c))
t_4 = t_3 - (a * (x * t))
if (z <= (-3.2d+52)) then
tmp = t_3
else if (z <= (-9.8d+17)) then
tmp = t_1
else if (z <= (-2.25d-12)) then
tmp = t_4
else if (z <= 1.5d-29) then
tmp = t_2
else if (z <= 1d+30) then
tmp = b * ((t * i) - (z * c))
else if (z <= 7.1d+53) then
tmp = t_2
else
tmp = t_4
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 = t_1 + (t * (b * i));
double t_3 = z * ((x * y) - (b * c));
double t_4 = t_3 - (a * (x * t));
double tmp;
if (z <= -3.2e+52) {
tmp = t_3;
} else if (z <= -9.8e+17) {
tmp = t_1;
} else if (z <= -2.25e-12) {
tmp = t_4;
} else if (z <= 1.5e-29) {
tmp = t_2;
} else if (z <= 1e+30) {
tmp = b * ((t * i) - (z * c));
} else if (z <= 7.1e+53) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 + (t * (b * i)) t_3 = z * ((x * y) - (b * c)) t_4 = t_3 - (a * (x * t)) tmp = 0 if z <= -3.2e+52: tmp = t_3 elif z <= -9.8e+17: tmp = t_1 elif z <= -2.25e-12: tmp = t_4 elif z <= 1.5e-29: tmp = t_2 elif z <= 1e+30: tmp = b * ((t * i) - (z * c)) elif z <= 7.1e+53: tmp = t_2 else: tmp = t_4 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(t_1 + Float64(t * Float64(b * i))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_4 = Float64(t_3 - Float64(a * Float64(x * t))) tmp = 0.0 if (z <= -3.2e+52) tmp = t_3; elseif (z <= -9.8e+17) tmp = t_1; elseif (z <= -2.25e-12) tmp = t_4; elseif (z <= 1.5e-29) tmp = t_2; elseif (z <= 1e+30) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (z <= 7.1e+53) tmp = t_2; else tmp = t_4; 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 = t_1 + (t * (b * i)); t_3 = z * ((x * y) - (b * c)); t_4 = t_3 - (a * (x * t)); tmp = 0.0; if (z <= -3.2e+52) tmp = t_3; elseif (z <= -9.8e+17) tmp = t_1; elseif (z <= -2.25e-12) tmp = t_4; elseif (z <= 1.5e-29) tmp = t_2; elseif (z <= 1e+30) tmp = b * ((t * i) - (z * c)); elseif (z <= 7.1e+53) tmp = t_2; else tmp = t_4; 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[(t$95$1 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e+52], t$95$3, If[LessEqual[z, -9.8e+17], t$95$1, If[LessEqual[z, -2.25e-12], t$95$4, If[LessEqual[z, 1.5e-29], t$95$2, If[LessEqual[z, 1e+30], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.1e+53], t$95$2, t$95$4]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t\_1 + t \cdot \left(b \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_4 := t\_3 - a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+52}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -9.8 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.25 \cdot 10^{-12}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 10^{+30}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 7.1 \cdot 10^{+53}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if z < -3.2e52Initial program 59.7%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -3.2e52 < z < -9.8e17Initial program 60.0%
Taylor expanded in j around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -9.8e17 < z < -2.2499999999999999e-12 or 7.09999999999999974e53 < z Initial program 68.8%
Taylor expanded in y around 0 74.1%
Simplified74.1%
Taylor expanded in t around 0 68.8%
mul-1-neg68.8%
*-commutative68.8%
distribute-rgt-neg-in68.8%
Simplified68.8%
Taylor expanded in j around 0 67.3%
+-commutative67.3%
mul-1-neg67.3%
associate-*r*70.6%
distribute-lft-neg-in70.6%
mul-1-neg70.6%
associate-*r*74.2%
distribute-rgt-in77.7%
mul-1-neg77.7%
unsub-neg77.7%
+-commutative77.7%
mul-1-neg77.7%
unsub-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
if -2.2499999999999999e-12 < z < 1.5000000000000001e-29 or 1e30 < z < 7.09999999999999974e53Initial program 82.4%
Taylor expanded in z around 0 74.0%
associate--l+74.0%
cancel-sign-sub-inv74.0%
metadata-eval74.0%
*-lft-identity74.0%
+-commutative74.0%
associate-+r+74.0%
Simplified77.1%
Taylor expanded in i around inf 64.6%
if 1.5000000000000001e-29 < z < 1e30Initial program 66.5%
Taylor expanded in b around inf 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Final simplification69.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))
(* b (* z c))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -7.8e+59)
t_2
(if (<= z -5.5e-155)
t_1
(if (<= z 9.8e-158)
(* j (+ (- (* a c) (* y i)) (* t (/ (- (* b i) (* x a)) j))))
(if (<= z 1.25e+54) t_1 (- t_2 (* a (* x t)))))))))
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))) + (y * ((x * z) - (i * j)))) - (b * (z * c));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e+59) {
tmp = t_2;
} else if (z <= -5.5e-155) {
tmp = t_1;
} else if (z <= 9.8e-158) {
tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j)));
} else if (z <= 1.25e+54) {
tmp = t_1;
} else {
tmp = t_2 - (a * (x * t));
}
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))) + (y * ((x * z) - (i * j)))) - (b * (z * c))
t_2 = z * ((x * y) - (b * c))
if (z <= (-7.8d+59)) then
tmp = t_2
else if (z <= (-5.5d-155)) then
tmp = t_1
else if (z <= 9.8d-158) then
tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j)))
else if (z <= 1.25d+54) then
tmp = t_1
else
tmp = t_2 - (a * (x * t))
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))) + (y * ((x * z) - (i * j)))) - (b * (z * c));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e+59) {
tmp = t_2;
} else if (z <= -5.5e-155) {
tmp = t_1;
} else if (z <= 9.8e-158) {
tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j)));
} else if (z <= 1.25e+54) {
tmp = t_1;
} else {
tmp = t_2 - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) - (b * (z * c)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -7.8e+59: tmp = t_2 elif z <= -5.5e-155: tmp = t_1 elif z <= 9.8e-158: tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j))) elif z <= 1.25e+54: tmp = t_1 else: tmp = t_2 - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) - Float64(b * Float64(z * c))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -7.8e+59) tmp = t_2; elseif (z <= -5.5e-155) tmp = t_1; elseif (z <= 9.8e-158) tmp = Float64(j * Float64(Float64(Float64(a * c) - Float64(y * i)) + Float64(t * Float64(Float64(Float64(b * i) - Float64(x * a)) / j)))); elseif (z <= 1.25e+54) tmp = t_1; else tmp = Float64(t_2 - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) - (b * (z * c)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -7.8e+59) tmp = t_2; elseif (z <= -5.5e-155) tmp = t_1; elseif (z <= 9.8e-158) tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j))); elseif (z <= 1.25e+54) tmp = t_1; else tmp = t_2 - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+59], t$95$2, If[LessEqual[z, -5.5e-155], t$95$1, If[LessEqual[z, 9.8e-158], N[(j * N[(N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e+54], t$95$1, N[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\right) - b \cdot \left(z \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{-158}:\\
\;\;\;\;j \cdot \left(\left(a \cdot c - y \cdot i\right) + t \cdot \frac{b \cdot i - x \cdot a}{j}\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if z < -7.80000000000000043e59Initial program 59.7%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -7.80000000000000043e59 < z < -5.50000000000000018e-155 or 9.79999999999999986e-158 < z < 1.25000000000000001e54Initial program 79.0%
Taylor expanded in y around 0 83.0%
Simplified84.0%
Taylor expanded in t around 0 82.3%
mul-1-neg82.3%
*-commutative82.3%
distribute-rgt-neg-in82.3%
Simplified82.3%
if -5.50000000000000018e-155 < z < 9.79999999999999986e-158Initial program 84.3%
Taylor expanded in z around 0 79.6%
associate--l+79.6%
cancel-sign-sub-inv79.6%
metadata-eval79.6%
*-lft-identity79.6%
+-commutative79.6%
associate-+r+79.6%
Simplified79.8%
Taylor expanded in j around -inf 83.0%
associate-*r*83.0%
mul-1-neg83.0%
+-commutative83.0%
mul-1-neg83.0%
*-commutative83.0%
unsub-neg83.0%
mul-1-neg83.0%
associate-/l*83.1%
distribute-rgt-neg-in83.1%
*-commutative83.1%
*-commutative83.1%
*-commutative83.1%
Simplified83.1%
if 1.25000000000000001e54 < z Initial program 63.0%
Taylor expanded in y around 0 71.2%
Simplified71.2%
Taylor expanded in t around 0 64.9%
mul-1-neg64.9%
*-commutative64.9%
distribute-rgt-neg-in64.9%
Simplified64.9%
Taylor expanded in j around 0 63.3%
+-commutative63.3%
mul-1-neg63.3%
associate-*r*67.2%
distribute-lft-neg-in67.2%
mul-1-neg67.2%
associate-*r*71.5%
distribute-rgt-in75.6%
mul-1-neg75.6%
unsub-neg75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Final simplification79.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (- t_2 (* a (* x t)))))
(if (<= z -1.75e+37)
t_2
(if (<= z -6.6e+15)
t_1
(if (<= z -8.5e-12)
t_3
(if (<= z 7.6e-35)
(+ (* t (- (* b i) (* x a))) t_1)
(if (<= z 3e+155) (+ t_1 (* b (- (* t i) (* z c)))) t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t_2 - (a * (x * t));
double tmp;
if (z <= -1.75e+37) {
tmp = t_2;
} else if (z <= -6.6e+15) {
tmp = t_1;
} else if (z <= -8.5e-12) {
tmp = t_3;
} else if (z <= 7.6e-35) {
tmp = (t * ((b * i) - (x * a))) + t_1;
} else if (z <= 3e+155) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
t_3 = t_2 - (a * (x * t))
if (z <= (-1.75d+37)) then
tmp = t_2
else if (z <= (-6.6d+15)) then
tmp = t_1
else if (z <= (-8.5d-12)) then
tmp = t_3
else if (z <= 7.6d-35) then
tmp = (t * ((b * i) - (x * a))) + t_1
else if (z <= 3d+155) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t_2 - (a * (x * t));
double tmp;
if (z <= -1.75e+37) {
tmp = t_2;
} else if (z <= -6.6e+15) {
tmp = t_1;
} else if (z <= -8.5e-12) {
tmp = t_3;
} else if (z <= 7.6e-35) {
tmp = (t * ((b * i) - (x * a))) + t_1;
} else if (z <= 3e+155) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) t_3 = t_2 - (a * (x * t)) tmp = 0 if z <= -1.75e+37: tmp = t_2 elif z <= -6.6e+15: tmp = t_1 elif z <= -8.5e-12: tmp = t_3 elif z <= 7.6e-35: tmp = (t * ((b * i) - (x * a))) + t_1 elif z <= 3e+155: tmp = t_1 + (b * ((t * i) - (z * c))) else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t_2 - Float64(a * Float64(x * t))) tmp = 0.0 if (z <= -1.75e+37) tmp = t_2; elseif (z <= -6.6e+15) tmp = t_1; elseif (z <= -8.5e-12) tmp = t_3; elseif (z <= 7.6e-35) tmp = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + t_1); elseif (z <= 3e+155) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_3; 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 = z * ((x * y) - (b * c)); t_3 = t_2 - (a * (x * t)); tmp = 0.0; if (z <= -1.75e+37) tmp = t_2; elseif (z <= -6.6e+15) tmp = t_1; elseif (z <= -8.5e-12) tmp = t_3; elseif (z <= 7.6e-35) tmp = (t * ((b * i) - (x * a))) + t_1; elseif (z <= 3e+155) tmp = t_1 + (b * ((t * i) - (z * c))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $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[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+37], t$95$2, If[LessEqual[z, -6.6e+15], t$95$1, If[LessEqual[z, -8.5e-12], t$95$3, If[LessEqual[z, 7.6e-35], N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[z, 3e+155], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t\_2 - a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+37}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-12}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 7.6 \cdot 10^{-35}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right) + t\_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+155}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.75e37Initial program 59.7%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -1.75e37 < z < -6.6e15Initial program 60.0%
Taylor expanded in j around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -6.6e15 < z < -8.4999999999999997e-12 or 3.0000000000000001e155 < z Initial program 60.7%
Taylor expanded in y around 0 68.0%
Simplified68.0%
Taylor expanded in t around 0 68.0%
mul-1-neg68.0%
*-commutative68.0%
distribute-rgt-neg-in68.0%
Simplified68.0%
Taylor expanded in j around 0 63.3%
+-commutative63.3%
mul-1-neg63.3%
associate-*r*67.9%
distribute-lft-neg-in67.9%
mul-1-neg67.9%
associate-*r*75.5%
distribute-rgt-in80.5%
mul-1-neg80.5%
unsub-neg80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
if -8.4999999999999997e-12 < z < 7.6000000000000002e-35Initial program 81.5%
Taylor expanded in z around 0 72.7%
associate--l+72.7%
cancel-sign-sub-inv72.7%
metadata-eval72.7%
*-lft-identity72.7%
+-commutative72.7%
associate-+r+72.7%
Simplified76.0%
if 7.6000000000000002e-35 < z < 3.0000000000000001e155Initial program 81.4%
Taylor expanded in x around 0 76.5%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* t (- (* b i) (* x a)))))
(if (<= t -1.6e+90)
t_2
(if (<= t -1.9e-140)
(+ t_1 (* t (* b i)))
(if (<= t -4.7e-275)
(* y (- (* x z) (* i j)))
(if (<= t -9.5e-293)
t_1
(if (<= t 1.45e-143)
(* z (- (* x y) (* b c)))
(if (<= t 8.5e+38) (* j (* y (- (/ (* a c) y) 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 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.6e+90) {
tmp = t_2;
} else if (t <= -1.9e-140) {
tmp = t_1 + (t * (b * i));
} else if (t <= -4.7e-275) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -9.5e-293) {
tmp = t_1;
} else if (t <= 1.45e-143) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 8.5e+38) {
tmp = j * (y * (((a * c) / y) - 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) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t * ((b * i) - (x * a))
if (t <= (-1.6d+90)) then
tmp = t_2
else if (t <= (-1.9d-140)) then
tmp = t_1 + (t * (b * i))
else if (t <= (-4.7d-275)) then
tmp = y * ((x * z) - (i * j))
else if (t <= (-9.5d-293)) then
tmp = t_1
else if (t <= 1.45d-143) then
tmp = z * ((x * y) - (b * c))
else if (t <= 8.5d+38) then
tmp = j * (y * (((a * c) / y) - 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 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.6e+90) {
tmp = t_2;
} else if (t <= -1.9e-140) {
tmp = t_1 + (t * (b * i));
} else if (t <= -4.7e-275) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -9.5e-293) {
tmp = t_1;
} else if (t <= 1.45e-143) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 8.5e+38) {
tmp = j * (y * (((a * c) / y) - i));
} 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 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.6e+90: tmp = t_2 elif t <= -1.9e-140: tmp = t_1 + (t * (b * i)) elif t <= -4.7e-275: tmp = y * ((x * z) - (i * j)) elif t <= -9.5e-293: tmp = t_1 elif t <= 1.45e-143: tmp = z * ((x * y) - (b * c)) elif t <= 8.5e+38: tmp = j * (y * (((a * c) / y) - i)) 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(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.6e+90) tmp = t_2; elseif (t <= -1.9e-140) tmp = Float64(t_1 + Float64(t * Float64(b * i))); elseif (t <= -4.7e-275) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= -9.5e-293) tmp = t_1; elseif (t <= 1.45e-143) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 8.5e+38) tmp = Float64(j * Float64(y * Float64(Float64(Float64(a * c) / y) - i))); 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 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.6e+90) tmp = t_2; elseif (t <= -1.9e-140) tmp = t_1 + (t * (b * i)); elseif (t <= -4.7e-275) tmp = y * ((x * z) - (i * j)); elseif (t <= -9.5e-293) tmp = t_1; elseif (t <= 1.45e-143) tmp = z * ((x * y) - (b * c)); elseif (t <= 8.5e+38) tmp = j * (y * (((a * c) / y) - 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.6e+90], t$95$2, If[LessEqual[t, -1.9e-140], N[(t$95$1 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.7e-275], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e-293], t$95$1, If[LessEqual[t, 1.45e-143], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+38], N[(j * N[(y * N[(N[(N[(a * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{+90}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-140}:\\
\;\;\;\;t\_1 + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -4.7 \cdot 10^{-275}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-293}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-143}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+38}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.59999999999999999e90 or 8.4999999999999997e38 < t Initial program 63.7%
Taylor expanded in t around inf 69.1%
associate-*r*69.1%
neg-mul-169.1%
cancel-sign-sub69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
if -1.59999999999999999e90 < t < -1.89999999999999999e-140Initial program 82.6%
Taylor expanded in z around 0 62.9%
associate--l+62.9%
cancel-sign-sub-inv62.9%
metadata-eval62.9%
*-lft-identity62.9%
+-commutative62.9%
associate-+r+62.9%
Simplified61.3%
Taylor expanded in i around inf 56.1%
if -1.89999999999999999e-140 < t < -4.6999999999999998e-275Initial program 62.7%
Taylor expanded in y around inf 63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
*-commutative63.0%
Simplified63.0%
if -4.6999999999999998e-275 < t < -9.50000000000000049e-293Initial program 100.0%
Taylor expanded in j around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -9.50000000000000049e-293 < t < 1.45e-143Initial program 78.9%
Taylor expanded in z around inf 69.7%
*-commutative69.7%
Simplified69.7%
if 1.45e-143 < t < 8.4999999999999997e38Initial program 84.5%
Taylor expanded in j around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in y around inf 62.7%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -3.9e+92)
t_1
(if (<= t -4.4e-140)
(* c (- (* a j) (* z b)))
(if (<= t -1.75e-220)
(* y (- (* x z) (* i j)))
(if (<= t -1.25e-293)
(* j (- (* a c) (* y i)))
(if (<= t 8.2e-144)
(* z (- (* x y) (* b c)))
(if (<= t 6.2e+41) (* j (* y (- (/ (* a c) y) 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 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.9e+92) {
tmp = t_1;
} else if (t <= -4.4e-140) {
tmp = c * ((a * j) - (z * b));
} else if (t <= -1.75e-220) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -1.25e-293) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 8.2e-144) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 6.2e+41) {
tmp = j * (y * (((a * c) / y) - 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 = t * ((b * i) - (x * a))
if (t <= (-3.9d+92)) then
tmp = t_1
else if (t <= (-4.4d-140)) then
tmp = c * ((a * j) - (z * b))
else if (t <= (-1.75d-220)) then
tmp = y * ((x * z) - (i * j))
else if (t <= (-1.25d-293)) then
tmp = j * ((a * c) - (y * i))
else if (t <= 8.2d-144) then
tmp = z * ((x * y) - (b * c))
else if (t <= 6.2d+41) then
tmp = j * (y * (((a * c) / y) - 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 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.9e+92) {
tmp = t_1;
} else if (t <= -4.4e-140) {
tmp = c * ((a * j) - (z * b));
} else if (t <= -1.75e-220) {
tmp = y * ((x * z) - (i * j));
} else if (t <= -1.25e-293) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 8.2e-144) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 6.2e+41) {
tmp = j * (y * (((a * c) / y) - i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -3.9e+92: tmp = t_1 elif t <= -4.4e-140: tmp = c * ((a * j) - (z * b)) elif t <= -1.75e-220: tmp = y * ((x * z) - (i * j)) elif t <= -1.25e-293: tmp = j * ((a * c) - (y * i)) elif t <= 8.2e-144: tmp = z * ((x * y) - (b * c)) elif t <= 6.2e+41: tmp = j * (y * (((a * c) / y) - i)) else: tmp = t_1 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 (t <= -3.9e+92) tmp = t_1; elseif (t <= -4.4e-140) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= -1.75e-220) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= -1.25e-293) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 8.2e-144) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 6.2e+41) tmp = Float64(j * Float64(y * Float64(Float64(Float64(a * c) / y) - i))); else tmp = t_1; 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 (t <= -3.9e+92) tmp = t_1; elseif (t <= -4.4e-140) tmp = c * ((a * j) - (z * b)); elseif (t <= -1.75e-220) tmp = y * ((x * z) - (i * j)); elseif (t <= -1.25e-293) tmp = j * ((a * c) - (y * i)); elseif (t <= 8.2e-144) tmp = z * ((x * y) - (b * c)); elseif (t <= 6.2e+41) tmp = j * (y * (((a * c) / y) - 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.9e+92], t$95$1, If[LessEqual[t, -4.4e-140], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.75e-220], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.25e-293], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.2e-144], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+41], N[(j * N[(y * N[(N[(N[(a * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.9 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-220}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-293}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-144}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+41}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.90000000000000011e92 or 6.2e41 < t Initial program 63.7%
Taylor expanded in t around inf 69.2%
associate-*r*69.2%
neg-mul-169.2%
cancel-sign-sub69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
if -3.90000000000000011e92 < t < -4.3999999999999998e-140Initial program 81.7%
Taylor expanded in c around inf 54.9%
*-commutative54.9%
Simplified54.9%
if -4.3999999999999998e-140 < t < -1.74999999999999994e-220Initial program 63.9%
Taylor expanded in y around inf 71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
*-commutative71.0%
Simplified71.0%
if -1.74999999999999994e-220 < t < -1.2500000000000001e-293Initial program 73.6%
Taylor expanded in j around inf 73.8%
*-commutative73.8%
Simplified73.8%
if -1.2500000000000001e-293 < t < 8.2e-144Initial program 78.9%
Taylor expanded in z around inf 69.7%
*-commutative69.7%
Simplified69.7%
if 8.2e-144 < t < 6.2e41Initial program 84.5%
Taylor expanded in j around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in y around inf 62.7%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (- t_2 (* a (* x t)))))
(if (<= z -2.25e+49)
t_2
(if (<= z -3.6e+15)
t_1
(if (<= z -2.2e-12)
t_3
(if (<= z 2.5e-30)
(+ t_1 (* t (* b i)))
(if (<= z 1.4e+96)
(- (* b (- (* t i) (* z c))) (* i (* y j)))
t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t_2 - (a * (x * t));
double tmp;
if (z <= -2.25e+49) {
tmp = t_2;
} else if (z <= -3.6e+15) {
tmp = t_1;
} else if (z <= -2.2e-12) {
tmp = t_3;
} else if (z <= 2.5e-30) {
tmp = t_1 + (t * (b * i));
} else if (z <= 1.4e+96) {
tmp = (b * ((t * i) - (z * c))) - (i * (y * j));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
t_3 = t_2 - (a * (x * t))
if (z <= (-2.25d+49)) then
tmp = t_2
else if (z <= (-3.6d+15)) then
tmp = t_1
else if (z <= (-2.2d-12)) then
tmp = t_3
else if (z <= 2.5d-30) then
tmp = t_1 + (t * (b * i))
else if (z <= 1.4d+96) then
tmp = (b * ((t * i) - (z * c))) - (i * (y * j))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t_2 - (a * (x * t));
double tmp;
if (z <= -2.25e+49) {
tmp = t_2;
} else if (z <= -3.6e+15) {
tmp = t_1;
} else if (z <= -2.2e-12) {
tmp = t_3;
} else if (z <= 2.5e-30) {
tmp = t_1 + (t * (b * i));
} else if (z <= 1.4e+96) {
tmp = (b * ((t * i) - (z * c))) - (i * (y * j));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) t_3 = t_2 - (a * (x * t)) tmp = 0 if z <= -2.25e+49: tmp = t_2 elif z <= -3.6e+15: tmp = t_1 elif z <= -2.2e-12: tmp = t_3 elif z <= 2.5e-30: tmp = t_1 + (t * (b * i)) elif z <= 1.4e+96: tmp = (b * ((t * i) - (z * c))) - (i * (y * j)) else: tmp = t_3 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(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t_2 - Float64(a * Float64(x * t))) tmp = 0.0 if (z <= -2.25e+49) tmp = t_2; elseif (z <= -3.6e+15) tmp = t_1; elseif (z <= -2.2e-12) tmp = t_3; elseif (z <= 2.5e-30) tmp = Float64(t_1 + Float64(t * Float64(b * i))); elseif (z <= 1.4e+96) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(i * Float64(y * j))); else tmp = t_3; 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 = z * ((x * y) - (b * c)); t_3 = t_2 - (a * (x * t)); tmp = 0.0; if (z <= -2.25e+49) tmp = t_2; elseif (z <= -3.6e+15) tmp = t_1; elseif (z <= -2.2e-12) tmp = t_3; elseif (z <= 2.5e-30) tmp = t_1 + (t * (b * i)); elseif (z <= 1.4e+96) tmp = (b * ((t * i) - (z * c))) - (i * (y * j)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $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[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.25e+49], t$95$2, If[LessEqual[z, -3.6e+15], t$95$1, If[LessEqual[z, -2.2e-12], t$95$3, If[LessEqual[z, 2.5e-30], N[(t$95$1 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+96], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t\_2 - a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;z \leq -2.25 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-12}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-30}:\\
\;\;\;\;t\_1 + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+96}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -2.24999999999999991e49Initial program 59.7%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -2.24999999999999991e49 < z < -3.6e15Initial program 60.0%
Taylor expanded in j around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -3.6e15 < z < -2.19999999999999992e-12 or 1.4e96 < z Initial program 67.2%
Taylor expanded in y around 0 71.1%
Simplified71.1%
Taylor expanded in t around 0 69.1%
mul-1-neg69.1%
*-commutative69.1%
distribute-rgt-neg-in69.1%
Simplified69.1%
Taylor expanded in j around 0 67.4%
+-commutative67.4%
mul-1-neg67.4%
associate-*r*71.0%
distribute-lft-neg-in71.0%
mul-1-neg71.0%
associate-*r*75.0%
distribute-rgt-in79.0%
mul-1-neg79.0%
unsub-neg79.0%
+-commutative79.0%
mul-1-neg79.0%
unsub-neg79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
if -2.19999999999999992e-12 < z < 2.49999999999999986e-30Initial program 81.5%
Taylor expanded in z around 0 72.7%
associate--l+72.7%
cancel-sign-sub-inv72.7%
metadata-eval72.7%
*-lft-identity72.7%
+-commutative72.7%
associate-+r+72.7%
Simplified76.0%
Taylor expanded in i around inf 62.9%
if 2.49999999999999986e-30 < z < 1.4e96Initial program 77.5%
Taylor expanded in x around 0 74.4%
Taylor expanded in a around 0 66.0%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -5.6e+56)
t_2
(if (<= z -1.55e+18)
t_1
(if (or (<= z -7e-12) (not (<= z 1.6e+54)))
(- t_2 (* a (* x t)))
(+ (* t (- (* b i) (* x a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.6e+56) {
tmp = t_2;
} else if (z <= -1.55e+18) {
tmp = t_1;
} else if ((z <= -7e-12) || !(z <= 1.6e+54)) {
tmp = t_2 - (a * (x * t));
} else {
tmp = (t * ((b * i) - (x * a))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-5.6d+56)) then
tmp = t_2
else if (z <= (-1.55d+18)) then
tmp = t_1
else if ((z <= (-7d-12)) .or. (.not. (z <= 1.6d+54))) then
tmp = t_2 - (a * (x * t))
else
tmp = (t * ((b * i) - (x * a))) + 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 * ((a * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5.6e+56) {
tmp = t_2;
} else if (z <= -1.55e+18) {
tmp = t_1;
} else if ((z <= -7e-12) || !(z <= 1.6e+54)) {
tmp = t_2 - (a * (x * t));
} else {
tmp = (t * ((b * i) - (x * a))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -5.6e+56: tmp = t_2 elif z <= -1.55e+18: tmp = t_1 elif (z <= -7e-12) or not (z <= 1.6e+54): tmp = t_2 - (a * (x * t)) else: tmp = (t * ((b * i) - (x * a))) + t_1 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -5.6e+56) tmp = t_2; elseif (z <= -1.55e+18) tmp = t_1; elseif ((z <= -7e-12) || !(z <= 1.6e+54)) tmp = Float64(t_2 - Float64(a * Float64(x * t))); else tmp = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + t_1); 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 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -5.6e+56) tmp = t_2; elseif (z <= -1.55e+18) tmp = t_1; elseif ((z <= -7e-12) || ~((z <= 1.6e+54))) tmp = t_2 - (a * (x * t)); else tmp = (t * ((b * i) - (x * a))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e+56], t$95$2, If[LessEqual[z, -1.55e+18], t$95$1, If[Or[LessEqual[z, -7e-12], N[Not[LessEqual[z, 1.6e+54]], $MachinePrecision]], N[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+56}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-12} \lor \neg \left(z \leq 1.6 \cdot 10^{+54}\right):\\
\;\;\;\;t\_2 - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right) + t\_1\\
\end{array}
\end{array}
if z < -5.60000000000000017e56Initial program 59.7%
Taylor expanded in z around inf 71.9%
*-commutative71.9%
Simplified71.9%
if -5.60000000000000017e56 < z < -1.55e18Initial program 60.0%
Taylor expanded in j around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -1.55e18 < z < -7.0000000000000001e-12 or 1.6e54 < z Initial program 68.3%
Taylor expanded in y around 0 73.6%
Simplified73.6%
Taylor expanded in t around 0 68.3%
mul-1-neg68.3%
*-commutative68.3%
distribute-rgt-neg-in68.3%
Simplified68.3%
Taylor expanded in j around 0 66.7%
+-commutative66.7%
mul-1-neg66.7%
associate-*r*70.0%
distribute-lft-neg-in70.0%
mul-1-neg70.0%
associate-*r*73.7%
distribute-rgt-in77.3%
mul-1-neg77.3%
unsub-neg77.3%
+-commutative77.3%
mul-1-neg77.3%
unsub-neg77.3%
*-commutative77.3%
*-commutative77.3%
Simplified77.3%
if -7.0000000000000001e-12 < z < 1.6e54Initial program 80.9%
Taylor expanded in z around 0 70.4%
associate--l+70.4%
cancel-sign-sub-inv70.4%
metadata-eval70.4%
*-lft-identity70.4%
+-commutative70.4%
associate-+r+70.4%
Simplified72.5%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= t -1.58e+181) (not (<= t 6.2e+130)))
(* j (+ (- (* a c) (* y i)) (* t (/ (- (* b i) (* x a)) j))))
(+
(+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))
(* 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 ((t <= -1.58e+181) || !(t <= 6.2e+130)) {
tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j)));
} else {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (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 ((t <= (-1.58d+181)) .or. (.not. (t <= 6.2d+130))) then
tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j)))
else
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (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 ((t <= -1.58e+181) || !(t <= 6.2e+130)) {
tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j)));
} else {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.58e+181) or not (t <= 6.2e+130): tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j))) else: tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.58e+181) || !(t <= 6.2e+130)) tmp = Float64(j * Float64(Float64(Float64(a * c) - Float64(y * i)) + Float64(t * Float64(Float64(Float64(b * i) - Float64(x * a)) / j)))); else tmp = Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) + 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 ((t <= -1.58e+181) || ~((t <= 6.2e+130))) tmp = j * (((a * c) - (y * i)) + (t * (((b * i) - (x * a)) / j))); else tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.58e+181], N[Not[LessEqual[t, 6.2e+130]], $MachinePrecision]], N[(j * N[(N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $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}\;t \leq -1.58 \cdot 10^{+181} \lor \neg \left(t \leq 6.2 \cdot 10^{+130}\right):\\
\;\;\;\;j \cdot \left(\left(a \cdot c - y \cdot i\right) + t \cdot \frac{b \cdot i - x \cdot a}{j}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if t < -1.58000000000000002e181 or 6.1999999999999999e130 < t Initial program 59.3%
Taylor expanded in z around 0 59.6%
associate--l+59.6%
cancel-sign-sub-inv59.6%
metadata-eval59.6%
*-lft-identity59.6%
+-commutative59.6%
associate-+r+59.6%
Simplified75.1%
Taylor expanded in j around -inf 76.8%
associate-*r*76.8%
mul-1-neg76.8%
+-commutative76.8%
mul-1-neg76.8%
*-commutative76.8%
unsub-neg76.8%
mul-1-neg76.8%
associate-/l*78.6%
distribute-rgt-neg-in78.6%
*-commutative78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
if -1.58000000000000002e181 < t < 6.1999999999999999e130Initial program 77.9%
Taylor expanded in y around 0 79.8%
Simplified80.4%
Final simplification79.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= x -1.72e-43)
(- (* z (- (* x y) (* b c))) (* a (* x t)))
(if (<= x 2.2e-95)
(+ t_2 t_1)
(if (<= x 7.8e+105)
(+ (* t (- (* b i) (* x a))) t_2)
(+ (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (x <= -1.72e-43) {
tmp = (z * ((x * y) - (b * c))) - (a * (x * t));
} else if (x <= 2.2e-95) {
tmp = t_2 + t_1;
} else if (x <= 7.8e+105) {
tmp = (t * ((b * i) - (x * a))) + t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (x <= (-1.72d-43)) then
tmp = (z * ((x * y) - (b * c))) - (a * (x * t))
else if (x <= 2.2d-95) then
tmp = t_2 + t_1
else if (x <= 7.8d+105) then
tmp = (t * ((b * i) - (x * a))) + t_2
else
tmp = (x * ((y * z) - (t * a))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (x <= -1.72e-43) {
tmp = (z * ((x * y) - (b * c))) - (a * (x * t));
} else if (x <= 2.2e-95) {
tmp = t_2 + t_1;
} else if (x <= 7.8e+105) {
tmp = (t * ((b * i) - (x * a))) + t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if x <= -1.72e-43: tmp = (z * ((x * y) - (b * c))) - (a * (x * t)) elif x <= 2.2e-95: tmp = t_2 + t_1 elif x <= 7.8e+105: tmp = (t * ((b * i) - (x * a))) + t_2 else: tmp = (x * ((y * z) - (t * a))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (x <= -1.72e-43) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(a * Float64(x * t))); elseif (x <= 2.2e-95) tmp = Float64(t_2 + t_1); elseif (x <= 7.8e+105) tmp = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + t_2); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (x <= -1.72e-43) tmp = (z * ((x * y) - (b * c))) - (a * (x * t)); elseif (x <= 2.2e-95) tmp = t_2 + t_1; elseif (x <= 7.8e+105) tmp = (t * ((b * i) - (x * a))) + t_2; else tmp = (x * ((y * z) - (t * a))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.72e-43], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.2e-95], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[x, 7.8e+105], N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -1.72 \cdot 10^{-43}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-95}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+105}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\end{array}
\end{array}
if x < -1.72000000000000005e-43Initial program 70.2%
Taylor expanded in y around 0 68.6%
Simplified70.3%
Taylor expanded in t around 0 72.0%
mul-1-neg72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
Simplified72.0%
Taylor expanded in j around 0 65.2%
+-commutative65.2%
mul-1-neg65.2%
associate-*r*70.3%
distribute-lft-neg-in70.3%
mul-1-neg70.3%
associate-*r*71.9%
distribute-rgt-in73.5%
mul-1-neg73.5%
unsub-neg73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -1.72000000000000005e-43 < x < 2.1999999999999999e-95Initial program 73.0%
Taylor expanded in x around 0 78.2%
if 2.1999999999999999e-95 < x < 7.79999999999999957e105Initial program 73.9%
Taylor expanded in z around 0 74.2%
associate--l+74.2%
cancel-sign-sub-inv74.2%
metadata-eval74.2%
*-lft-identity74.2%
+-commutative74.2%
associate-+r+74.2%
Simplified74.3%
if 7.79999999999999957e105 < x Initial program 79.6%
Taylor expanded in j around 0 71.0%
Final simplification75.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* c (* a j))))
(if (<= z -2.4e+89)
(* c (* z (- b)))
(if (<= z -7.9e-44)
t_1
(if (<= z -1.365e-114)
t_2
(if (<= z -2.15e-238) t_1 (if (<= z 3.7e+47) t_2 (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = c * (a * j);
double tmp;
if (z <= -2.4e+89) {
tmp = c * (z * -b);
} else if (z <= -7.9e-44) {
tmp = t_1;
} else if (z <= -1.365e-114) {
tmp = t_2;
} else if (z <= -2.15e-238) {
tmp = t_1;
} else if (z <= 3.7e+47) {
tmp = t_2;
} else {
tmp = x * (y * z);
}
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 = i * (y * -j)
t_2 = c * (a * j)
if (z <= (-2.4d+89)) then
tmp = c * (z * -b)
else if (z <= (-7.9d-44)) then
tmp = t_1
else if (z <= (-1.365d-114)) then
tmp = t_2
else if (z <= (-2.15d-238)) then
tmp = t_1
else if (z <= 3.7d+47) then
tmp = t_2
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = c * (a * j);
double tmp;
if (z <= -2.4e+89) {
tmp = c * (z * -b);
} else if (z <= -7.9e-44) {
tmp = t_1;
} else if (z <= -1.365e-114) {
tmp = t_2;
} else if (z <= -2.15e-238) {
tmp = t_1;
} else if (z <= 3.7e+47) {
tmp = t_2;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = c * (a * j) tmp = 0 if z <= -2.4e+89: tmp = c * (z * -b) elif z <= -7.9e-44: tmp = t_1 elif z <= -1.365e-114: tmp = t_2 elif z <= -2.15e-238: tmp = t_1 elif z <= 3.7e+47: tmp = t_2 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (z <= -2.4e+89) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= -7.9e-44) tmp = t_1; elseif (z <= -1.365e-114) tmp = t_2; elseif (z <= -2.15e-238) tmp = t_1; elseif (z <= 3.7e+47) tmp = t_2; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = c * (a * j); tmp = 0.0; if (z <= -2.4e+89) tmp = c * (z * -b); elseif (z <= -7.9e-44) tmp = t_1; elseif (z <= -1.365e-114) tmp = t_2; elseif (z <= -2.15e-238) tmp = t_1; elseif (z <= 3.7e+47) tmp = t_2; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+89], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.9e-44], t$95$1, If[LessEqual[z, -1.365e-114], t$95$2, If[LessEqual[z, -2.15e-238], t$95$1, If[LessEqual[z, 3.7e+47], t$95$2, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -7.9 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.365 \cdot 10^{-114}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.15 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+47}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -2.40000000000000004e89Initial program 60.5%
Taylor expanded in y around 0 55.8%
Simplified55.8%
Taylor expanded in c around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
*-commutative55.2%
Simplified55.2%
Taylor expanded in j around 0 52.0%
mul-1-neg52.0%
distribute-rgt-neg-in52.0%
Simplified52.0%
if -2.40000000000000004e89 < z < -7.8999999999999995e-44 or -1.36500000000000008e-114 < z < -2.14999999999999984e-238Initial program 75.4%
Taylor expanded in y around 0 69.1%
Simplified69.1%
Taylor expanded in t around 0 72.4%
mul-1-neg72.4%
*-commutative72.4%
distribute-rgt-neg-in72.4%
Simplified72.4%
Taylor expanded in i around inf 43.6%
mul-1-neg43.6%
distribute-rgt-neg-in43.6%
*-commutative43.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
if -7.8999999999999995e-44 < z < -1.36500000000000008e-114 or -2.14999999999999984e-238 < z < 3.70000000000000041e47Initial program 83.1%
Taylor expanded in y around 0 84.9%
Simplified85.9%
Taylor expanded in c around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in j around inf 35.8%
*-commutative35.8%
associate-*l*40.5%
Simplified40.5%
if 3.70000000000000041e47 < z Initial program 64.5%
Taylor expanded in y around 0 72.3%
Simplified72.3%
Taylor expanded in y around inf 49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in z around inf 43.1%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -1.7e+190)
(not
(or (<= b -2.5e+136) (and (not (<= b -3.4e+41)) (<= b 4.4e+136)))))
(* b (- (* t i) (* z c)))
(* a (- (* c j) (* x t)))))
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.7e+190) || !((b <= -2.5e+136) || (!(b <= -3.4e+41) && (b <= 4.4e+136)))) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
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.7d+190)) .or. (.not. (b <= (-2.5d+136)) .or. (.not. (b <= (-3.4d+41))) .and. (b <= 4.4d+136))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
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.7e+190) || !((b <= -2.5e+136) || (!(b <= -3.4e+41) && (b <= 4.4e+136)))) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.7e+190) or not ((b <= -2.5e+136) or (not (b <= -3.4e+41) and (b <= 4.4e+136))): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.7e+190) || !((b <= -2.5e+136) || (!(b <= -3.4e+41) && (b <= 4.4e+136)))) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.7e+190) || ~(((b <= -2.5e+136) || (~((b <= -3.4e+41)) && (b <= 4.4e+136))))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.7e+190], N[Not[Or[LessEqual[b, -2.5e+136], And[N[Not[LessEqual[b, -3.4e+41]], $MachinePrecision], LessEqual[b, 4.4e+136]]]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{+190} \lor \neg \left(b \leq -2.5 \cdot 10^{+136} \lor \neg \left(b \leq -3.4 \cdot 10^{+41}\right) \land b \leq 4.4 \cdot 10^{+136}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -1.7e190 or -2.5000000000000001e136 < b < -3.39999999999999998e41 or 4.3999999999999999e136 < b Initial program 71.1%
Taylor expanded in b around inf 73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
if -1.7e190 < b < -2.5000000000000001e136 or -3.39999999999999998e41 < b < 4.3999999999999999e136Initial program 74.9%
Taylor expanded in a around inf 49.8%
+-commutative49.8%
mul-1-neg49.8%
unsub-neg49.8%
*-commutative49.8%
*-commutative49.8%
Simplified49.8%
Final simplification57.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -7e+104)
t_1
(if (<= i -1.6e+17)
(* b (- (* t i) (* z c)))
(if (<= i 2.4e-257)
(* a (* x (- (/ (* c j) x) t)))
(if (<= i 3.4e+32) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -7e+104) {
tmp = t_1;
} else if (i <= -1.6e+17) {
tmp = b * ((t * i) - (z * c));
} else if (i <= 2.4e-257) {
tmp = a * (x * (((c * j) / x) - t));
} else if (i <= 3.4e+32) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-7d+104)) then
tmp = t_1
else if (i <= (-1.6d+17)) then
tmp = b * ((t * i) - (z * c))
else if (i <= 2.4d-257) then
tmp = a * (x * (((c * j) / x) - t))
else if (i <= 3.4d+32) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -7e+104) {
tmp = t_1;
} else if (i <= -1.6e+17) {
tmp = b * ((t * i) - (z * c));
} else if (i <= 2.4e-257) {
tmp = a * (x * (((c * j) / x) - t));
} else if (i <= 3.4e+32) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -7e+104: tmp = t_1 elif i <= -1.6e+17: tmp = b * ((t * i) - (z * c)) elif i <= 2.4e-257: tmp = a * (x * (((c * j) / x) - t)) elif i <= 3.4e+32: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -7e+104) tmp = t_1; elseif (i <= -1.6e+17) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= 2.4e-257) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (i <= 3.4e+32) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -7e+104) tmp = t_1; elseif (i <= -1.6e+17) tmp = b * ((t * i) - (z * c)); elseif (i <= 2.4e-257) tmp = a * (x * (((c * j) / x) - t)); elseif (i <= 3.4e+32) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7e+104], t$95$1, If[LessEqual[i, -1.6e+17], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e-257], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.4e+32], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -7 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{+17}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-257}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{+32}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.0000000000000003e104 or 3.39999999999999979e32 < i Initial program 59.9%
Taylor expanded in i around inf 64.3%
associate-*r*64.3%
neg-mul-164.3%
cancel-sign-sub64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
if -7.0000000000000003e104 < i < -1.6e17Initial program 83.1%
Taylor expanded in b around inf 64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
if -1.6e17 < i < 2.40000000000000017e-257Initial program 78.7%
Taylor expanded in a around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in x around inf 60.8%
if 2.40000000000000017e-257 < i < 3.39999999999999979e32Initial program 87.2%
Taylor expanded in c around inf 65.0%
*-commutative65.0%
Simplified65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.7e+104)
t_1
(if (<= i -3.6e+17)
(* b (- (* t i) (* z c)))
(if (<= i 1.55e-257)
(* a (- (* c j) (* x t)))
(if (<= i 3e+32) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.7e+104) {
tmp = t_1;
} else if (i <= -3.6e+17) {
tmp = b * ((t * i) - (z * c));
} else if (i <= 1.55e-257) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 3e+32) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.7d+104)) then
tmp = t_1
else if (i <= (-3.6d+17)) then
tmp = b * ((t * i) - (z * c))
else if (i <= 1.55d-257) then
tmp = a * ((c * j) - (x * t))
else if (i <= 3d+32) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.7e+104) {
tmp = t_1;
} else if (i <= -3.6e+17) {
tmp = b * ((t * i) - (z * c));
} else if (i <= 1.55e-257) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 3e+32) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.7e+104: tmp = t_1 elif i <= -3.6e+17: tmp = b * ((t * i) - (z * c)) elif i <= 1.55e-257: tmp = a * ((c * j) - (x * t)) elif i <= 3e+32: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.7e+104) tmp = t_1; elseif (i <= -3.6e+17) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= 1.55e-257) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 3e+32) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.7e+104) tmp = t_1; elseif (i <= -3.6e+17) tmp = b * ((t * i) - (z * c)); elseif (i <= 1.55e-257) tmp = a * ((c * j) - (x * t)); elseif (i <= 3e+32) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.7e+104], t$95$1, If[LessEqual[i, -3.6e+17], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.55e-257], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+32], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.7 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -3.6 \cdot 10^{+17}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{-257}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+32}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.6999999999999998e104 or 3e32 < i Initial program 59.9%
Taylor expanded in i around inf 64.3%
associate-*r*64.3%
neg-mul-164.3%
cancel-sign-sub64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
if -1.6999999999999998e104 < i < -3.6e17Initial program 83.1%
Taylor expanded in b around inf 64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
if -3.6e17 < i < 1.55000000000000004e-257Initial program 78.7%
Taylor expanded in a around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
if 1.55000000000000004e-257 < i < 3e32Initial program 87.2%
Taylor expanded in c around inf 65.0%
*-commutative65.0%
Simplified65.0%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= i -7.1e+117)
(* j (* y (- i)))
(if (<= i -6.5e+17)
t_1
(if (<= i 3.3e-258)
(* a (- (* c j) (* x t)))
(if (<= i 5e+32) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (i <= -7.1e+117) {
tmp = j * (y * -i);
} else if (i <= -6.5e+17) {
tmp = t_1;
} else if (i <= 3.3e-258) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 5e+32) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (i <= (-7.1d+117)) then
tmp = j * (y * -i)
else if (i <= (-6.5d+17)) then
tmp = t_1
else if (i <= 3.3d-258) then
tmp = a * ((c * j) - (x * t))
else if (i <= 5d+32) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (i <= -7.1e+117) {
tmp = j * (y * -i);
} else if (i <= -6.5e+17) {
tmp = t_1;
} else if (i <= 3.3e-258) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 5e+32) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if i <= -7.1e+117: tmp = j * (y * -i) elif i <= -6.5e+17: tmp = t_1 elif i <= 3.3e-258: tmp = a * ((c * j) - (x * t)) elif i <= 5e+32: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (i <= -7.1e+117) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= -6.5e+17) tmp = t_1; elseif (i <= 3.3e-258) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 5e+32) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (i <= -7.1e+117) tmp = j * (y * -i); elseif (i <= -6.5e+17) tmp = t_1; elseif (i <= 3.3e-258) tmp = a * ((c * j) - (x * t)); elseif (i <= 5e+32) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.1e+117], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6.5e+17], t$95$1, If[LessEqual[i, 3.3e-258], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e+32], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;i \leq -7.1 \cdot 10^{+117}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -6.5 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{-258}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+32}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.09999999999999995e117Initial program 61.6%
Taylor expanded in j around inf 62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in a around 0 56.8%
mul-1-neg56.8%
distribute-rgt-neg-in56.8%
Simplified56.8%
if -7.09999999999999995e117 < i < -6.5e17 or 4.9999999999999997e32 < i Initial program 64.2%
Taylor expanded in b around inf 51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
if -6.5e17 < i < 3.3e-258Initial program 78.7%
Taylor expanded in a around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
if 3.3e-258 < i < 4.9999999999999997e32Initial program 87.2%
Taylor expanded in c around inf 65.0%
*-commutative65.0%
Simplified65.0%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= z -3.4e+116)
(* c (* z (- b)))
(if (<= z -1.365e-114)
t_1
(if (<= z -1.15e-185)
(* i (* y (- j)))
(if (<= z 8.2e+70) t_1 (* x (* y z))))))))
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 tmp;
if (z <= -3.4e+116) {
tmp = c * (z * -b);
} else if (z <= -1.365e-114) {
tmp = t_1;
} else if (z <= -1.15e-185) {
tmp = i * (y * -j);
} else if (z <= 8.2e+70) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
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 = a * ((c * j) - (x * t))
if (z <= (-3.4d+116)) then
tmp = c * (z * -b)
else if (z <= (-1.365d-114)) then
tmp = t_1
else if (z <= (-1.15d-185)) then
tmp = i * (y * -j)
else if (z <= 8.2d+70) then
tmp = t_1
else
tmp = x * (y * z)
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 tmp;
if (z <= -3.4e+116) {
tmp = c * (z * -b);
} else if (z <= -1.365e-114) {
tmp = t_1;
} else if (z <= -1.15e-185) {
tmp = i * (y * -j);
} else if (z <= 8.2e+70) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if z <= -3.4e+116: tmp = c * (z * -b) elif z <= -1.365e-114: tmp = t_1 elif z <= -1.15e-185: tmp = i * (y * -j) elif z <= 8.2e+70: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (z <= -3.4e+116) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= -1.365e-114) tmp = t_1; elseif (z <= -1.15e-185) tmp = Float64(i * Float64(y * Float64(-j))); elseif (z <= 8.2e+70) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (z <= -3.4e+116) tmp = c * (z * -b); elseif (z <= -1.365e-114) tmp = t_1; elseif (z <= -1.15e-185) tmp = i * (y * -j); elseif (z <= 8.2e+70) tmp = t_1; else tmp = x * (y * z); 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]}, If[LessEqual[z, -3.4e+116], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.365e-114], t$95$1, If[LessEqual[z, -1.15e-185], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+70], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -1.365 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-185}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -3.40000000000000023e116Initial program 64.5%
Taylor expanded in y around 0 59.1%
Simplified59.1%
Taylor expanded in c around inf 55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in j around 0 52.2%
mul-1-neg52.2%
distribute-rgt-neg-in52.2%
Simplified52.2%
if -3.40000000000000023e116 < z < -1.36500000000000008e-114 or -1.15e-185 < z < 8.2000000000000004e70Initial program 81.7%
Taylor expanded in a around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
*-commutative53.3%
Simplified53.3%
if -1.36500000000000008e-114 < z < -1.15e-185Initial program 62.7%
Taylor expanded in y around 0 62.5%
Simplified62.5%
Taylor expanded in t around 0 66.7%
mul-1-neg66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
Simplified66.7%
Taylor expanded in i around inf 55.0%
mul-1-neg55.0%
distribute-rgt-neg-in55.0%
*-commutative55.0%
distribute-rgt-neg-in55.0%
Simplified55.0%
if 8.2000000000000004e70 < z Initial program 61.4%
Taylor expanded in y around 0 69.9%
Simplified69.9%
Taylor expanded in y around inf 50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in z around inf 46.5%
Final simplification52.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -2.9e-29) (not (<= z 3e+47))) (* x (* y z)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2.9e-29) || !(z <= 3e+47)) {
tmp = x * (y * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-2.9d-29)) .or. (.not. (z <= 3d+47))) then
tmp = x * (y * z)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2.9e-29) || !(z <= 3e+47)) {
tmp = x * (y * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -2.9e-29) or not (z <= 3e+47): tmp = x * (y * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -2.9e-29) || !(z <= 3e+47)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -2.9e-29) || ~((z <= 3e+47))) tmp = x * (y * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -2.9e-29], N[Not[LessEqual[z, 3e+47]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-29} \lor \neg \left(z \leq 3 \cdot 10^{+47}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if z < -2.90000000000000024e-29 or 3.0000000000000001e47 < z Initial program 66.2%
Taylor expanded in y around 0 65.3%
Simplified65.3%
Taylor expanded in y around inf 45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in z around inf 36.6%
if -2.90000000000000024e-29 < z < 3.0000000000000001e47Initial program 79.9%
Taylor expanded in y around 0 80.5%
Simplified81.2%
Taylor expanded in c around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in j around inf 31.3%
*-commutative31.3%
associate-*l*36.0%
Simplified36.0%
Final simplification36.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -86000000.0) (not (<= c 1.2e-50))) (* 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 ((c <= -86000000.0) || !(c <= 1.2e-50)) {
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 ((c <= (-86000000.0d0)) .or. (.not. (c <= 1.2d-50))) 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 ((c <= -86000000.0) || !(c <= 1.2e-50)) {
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 (c <= -86000000.0) or not (c <= 1.2e-50): 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 ((c <= -86000000.0) || !(c <= 1.2e-50)) 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 ((c <= -86000000.0) || ~((c <= 1.2e-50))) 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[c, -86000000.0], N[Not[LessEqual[c, 1.2e-50]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -86000000 \lor \neg \left(c \leq 1.2 \cdot 10^{-50}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -8.6e7 or 1.20000000000000001e-50 < c Initial program 71.6%
Taylor expanded in a around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in j around inf 39.6%
if -8.6e7 < c < 1.20000000000000001e-50Initial program 76.0%
Taylor expanded in x around 0 55.0%
Taylor expanded in t around inf 28.8%
Final simplification34.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -8e+78) (* c (* z (- b))) (if (<= z 4e+46) (* c (* a j)) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -8e+78) {
tmp = c * (z * -b);
} else if (z <= 4e+46) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-8d+78)) then
tmp = c * (z * -b)
else if (z <= 4d+46) then
tmp = c * (a * j)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -8e+78) {
tmp = c * (z * -b);
} else if (z <= 4e+46) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -8e+78: tmp = c * (z * -b) elif z <= 4e+46: tmp = c * (a * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -8e+78) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= 4e+46) tmp = Float64(c * Float64(a * j)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -8e+78) tmp = c * (z * -b); elseif (z <= 4e+46) tmp = c * (a * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -8e+78], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e+46], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+78}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+46}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -8.00000000000000007e78Initial program 59.3%
Taylor expanded in y around 0 56.7%
Simplified56.7%
Taylor expanded in c around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in j around 0 51.0%
mul-1-neg51.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
if -8.00000000000000007e78 < z < 4e46Initial program 80.7%
Taylor expanded in y around 0 78.8%
Simplified79.4%
Taylor expanded in c around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
*-commutative40.2%
Simplified40.2%
Taylor expanded in j around inf 30.5%
*-commutative30.5%
associate-*l*33.4%
Simplified33.4%
if 4e46 < z Initial program 64.5%
Taylor expanded in y around 0 72.3%
Simplified72.3%
Taylor expanded in y around inf 49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in z around inf 43.1%
Final simplification38.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.15e+110) (* y (* x z)) (if (<= z 2.9e+46) (* c (* a j)) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.15e+110) {
tmp = y * (x * z);
} else if (z <= 2.9e+46) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.15d+110)) then
tmp = y * (x * z)
else if (z <= 2.9d+46) then
tmp = c * (a * j)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.15e+110) {
tmp = y * (x * z);
} else if (z <= 2.9e+46) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.15e+110: tmp = y * (x * z) elif z <= 2.9e+46: tmp = c * (a * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.15e+110) tmp = Float64(y * Float64(x * z)); elseif (z <= 2.9e+46) tmp = Float64(c * Float64(a * j)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.15e+110) tmp = y * (x * z); elseif (z <= 2.9e+46) tmp = c * (a * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.15e+110], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+46], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+110}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+46}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -1.15e110Initial program 62.4%
Taylor expanded in y around 0 57.4%
Simplified57.4%
Taylor expanded in y around inf 44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in z around inf 37.3%
*-commutative37.3%
associate-*r*41.6%
Simplified41.6%
if -1.15e110 < z < 2.9000000000000002e46Initial program 79.3%
Taylor expanded in y around 0 78.1%
Simplified78.7%
Taylor expanded in c around inf 41.1%
+-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in j around inf 31.0%
*-commutative31.0%
associate-*l*33.9%
Simplified33.9%
if 2.9000000000000002e46 < z Initial program 64.5%
Taylor expanded in y around 0 72.3%
Simplified72.3%
Taylor expanded in y around inf 49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in z around inf 43.1%
Final simplification36.9%
(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 73.7%
Taylor expanded in a around inf 41.9%
+-commutative41.9%
mul-1-neg41.9%
unsub-neg41.9%
*-commutative41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in j around inf 25.2%
(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 2024096
(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)))))