
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 30 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (+ (+ t_2 (* x (- (* y z) (* t a)))) (* j (- (* t c) (* y i))))))
(if (<= t_3 -5e-91)
t_3
(if (<= t_3 INFINITY) (+ t_2 (+ t_1 (* y (- (* x z) (* i j))))) 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 * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = (t_2 + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_3 <= -5e-91) {
tmp = t_3;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2 + (t_1 + (y * ((x * z) - (i * j))));
} else {
tmp = t_1;
}
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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = (t_2 + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_3 <= -5e-91) {
tmp = t_3;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_2 + (t_1 + (y * ((x * z) - (i * j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) t_3 = (t_2 + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_3 <= -5e-91: tmp = t_3 elif t_3 <= math.inf: tmp = t_2 + (t_1 + (y * ((x * z) - (i * j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(Float64(t_2 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_3 <= -5e-91) tmp = t_3; elseif (t_3 <= Inf) tmp = Float64(t_2 + Float64(t_1 + Float64(y * Float64(Float64(x * z) - Float64(i * j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); t_3 = (t_2 + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_3 <= -5e-91) tmp = t_3; elseif (t_3 <= Inf) tmp = t_2 + (t_1 + (y * ((x * z) - (i * j)))); 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[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -5e-91], t$95$3, If[LessEqual[t$95$3, Infinity], N[(t$95$2 + N[(t$95$1 + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := \left(t_2 + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_3 \leq -5 \cdot 10^{-91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t_3 \leq \infty:\\
\;\;\;\;t_2 + \left(t_1 + y \cdot \left(x \cdot z - i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < -4.99999999999999997e-91Initial program 93.7%
if -4.99999999999999997e-91 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 80.6%
Taylor expanded in y around -inf 81.1%
Simplified89.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in t around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Final simplification82.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2
(+
(+ (* b (- (* a i) (* z c))) (* x (- (* y z) (* t a))))
(* j (- (* t c) (* y i))))))
(if (<= t_2 5e+283)
t_2
(if (<= t_2 INFINITY) (+ t_1 (* y (- (* x z) (* i j)))) 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 * ((c * j) - (x * a));
double t_2 = ((b * ((a * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_2 <= 5e+283) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = t_1 + (y * ((x * z) - (i * j)));
} else {
tmp = t_1;
}
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 = t * ((c * j) - (x * a));
double t_2 = ((b * ((a * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_2 <= 5e+283) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_1 + (y * ((x * z) - (i * j)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = ((b * ((a * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_2 <= 5e+283: tmp = t_2 elif t_2 <= math.inf: tmp = t_1 + (y * ((x * z) - (i * j))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= 5e+283) tmp = t_2; elseif (t_2 <= Inf) tmp = Float64(t_1 + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = ((b * ((a * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_2 <= 5e+283) tmp = t_2; elseif (t_2 <= Inf) tmp = t_1 + (y * ((x * z) - (i * j))); 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[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 5e+283], t$95$2, If[LessEqual[t$95$2, Infinity], N[(t$95$1 + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := \left(b \cdot \left(a \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_2 \leq 5 \cdot 10^{+283}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq \infty:\\
\;\;\;\;t_1 + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 5.0000000000000004e283Initial program 94.1%
if 5.0000000000000004e283 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 70.4%
Taylor expanded in y around -inf 76.8%
Simplified84.5%
Taylor expanded in b around 0 77.9%
+-commutative77.9%
*-commutative77.9%
*-commutative77.9%
mul-1-neg77.9%
unsub-neg77.9%
Simplified77.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in t around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Final simplification81.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.46e+128)
(* a (- (* b i) (* x t)))
(if (<= a -9.4e-14)
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
(if (<= a 7e-139)
(+ (* y (- (* x z) (* i j))) (* c (- (* t j) (* z b))))
(if (<= a 6.3e+94)
(+
(* j (- (* t c) (* y i)))
(- (* x (- (* y z) (* t a))) (* z (* b c))))
(- (* i (* a b)) (* t (- (* x a) (* c j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.46e+128) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -9.4e-14) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else if (a <= 7e-139) {
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)));
} else if (a <= 6.3e+94) {
tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c)));
} else {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.46d+128)) then
tmp = a * ((b * i) - (x * t))
else if (a <= (-9.4d-14)) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else if (a <= 7d-139) then
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)))
else if (a <= 6.3d+94) then
tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c)))
else
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.46e+128) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -9.4e-14) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else if (a <= 7e-139) {
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)));
} else if (a <= 6.3e+94) {
tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c)));
} else {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.46e+128: tmp = a * ((b * i) - (x * t)) elif a <= -9.4e-14: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) elif a <= 7e-139: tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b))) elif a <= 6.3e+94: tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c))) else: tmp = (i * (a * b)) - (t * ((x * a) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.46e+128) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (a <= -9.4e-14) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (a <= 7e-139) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(c * Float64(Float64(t * j) - Float64(z * b)))); elseif (a <= 6.3e+94) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(z * Float64(b * c)))); else tmp = Float64(Float64(i * Float64(a * b)) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.46e+128) tmp = a * ((b * i) - (x * t)); elseif (a <= -9.4e-14) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); elseif (a <= 7e-139) tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b))); elseif (a <= 6.3e+94) tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c))); else tmp = (i * (a * b)) - (t * ((x * a) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.46e+128], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.4e-14], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e-139], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.3e+94], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.46 \cdot 10^{+128}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;a \leq -9.4 \cdot 10^{-14}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-139}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 6.3 \cdot 10^{+94}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - z \cdot \left(b \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
\end{array}
\end{array}
if a < -1.4599999999999999e128Initial program 56.6%
Taylor expanded in y around -inf 64.0%
Simplified55.7%
Taylor expanded in a around inf 75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
if -1.4599999999999999e128 < a < -9.4000000000000003e-14Initial program 72.5%
Taylor expanded in y around 0 72.4%
Simplified72.4%
if -9.4000000000000003e-14 < a < 7.00000000000000002e-139Initial program 75.1%
Taylor expanded in y around -inf 83.0%
Simplified87.0%
Taylor expanded in a around 0 82.2%
+-commutative82.2%
associate-+l+82.2%
+-commutative82.2%
associate-*r*82.2%
*-commutative82.2%
associate-*r*83.2%
associate-*r*83.2%
*-commutative83.2%
distribute-rgt-in84.2%
Simplified84.2%
if 7.00000000000000002e-139 < a < 6.3000000000000001e94Initial program 67.9%
Taylor expanded in c around inf 70.3%
*-commutative70.3%
*-commutative70.3%
associate-*l*74.7%
Simplified74.7%
if 6.3000000000000001e94 < a Initial program 53.1%
Taylor expanded in y around 0 50.2%
Simplified65.0%
Taylor expanded in i around inf 71.3%
associate-*r*31.2%
*-commutative31.2%
Simplified69.8%
Final simplification77.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= a -2.7e+146)
(* a (- (* b i) (* x t)))
(if (<= a -6.6e-71)
(- (+ (* b (- (* a i) (* z c))) t_1) (* y (* i j)))
(if (<= a 1.4e-136)
(+ (* y (- (* x z) (* i j))) (* c (- (* t j) (* z b))))
(if (<= a 5.6e+94)
(+ (* j (- (* t c) (* y i))) (- t_1 (* z (* b c))))
(- (* i (* a b)) (* t (- (* x a) (* c 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));
double tmp;
if (a <= -2.7e+146) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -6.6e-71) {
tmp = ((b * ((a * i) - (z * c))) + t_1) - (y * (i * j));
} else if (a <= 1.4e-136) {
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)));
} else if (a <= 5.6e+94) {
tmp = (j * ((t * c) - (y * i))) + (t_1 - (z * (b * c)));
} else {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (a <= (-2.7d+146)) then
tmp = a * ((b * i) - (x * t))
else if (a <= (-6.6d-71)) then
tmp = ((b * ((a * i) - (z * c))) + t_1) - (y * (i * j))
else if (a <= 1.4d-136) then
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)))
else if (a <= 5.6d+94) then
tmp = (j * ((t * c) - (y * i))) + (t_1 - (z * (b * c)))
else
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (a <= -2.7e+146) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -6.6e-71) {
tmp = ((b * ((a * i) - (z * c))) + t_1) - (y * (i * j));
} else if (a <= 1.4e-136) {
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)));
} else if (a <= 5.6e+94) {
tmp = (j * ((t * c) - (y * i))) + (t_1 - (z * (b * c)));
} else {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if a <= -2.7e+146: tmp = a * ((b * i) - (x * t)) elif a <= -6.6e-71: tmp = ((b * ((a * i) - (z * c))) + t_1) - (y * (i * j)) elif a <= 1.4e-136: tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b))) elif a <= 5.6e+94: tmp = (j * ((t * c) - (y * i))) + (t_1 - (z * (b * c))) else: tmp = (i * (a * b)) - (t * ((x * a) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (a <= -2.7e+146) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (a <= -6.6e-71) tmp = Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + t_1) - Float64(y * Float64(i * j))); elseif (a <= 1.4e-136) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(c * Float64(Float64(t * j) - Float64(z * b)))); elseif (a <= 5.6e+94) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(t_1 - Float64(z * Float64(b * c)))); else tmp = Float64(Float64(i * Float64(a * b)) - Float64(t * Float64(Float64(x * a) - Float64(c * 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)); tmp = 0.0; if (a <= -2.7e+146) tmp = a * ((b * i) - (x * t)); elseif (a <= -6.6e-71) tmp = ((b * ((a * i) - (z * c))) + t_1) - (y * (i * j)); elseif (a <= 1.4e-136) tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b))); elseif (a <= 5.6e+94) tmp = (j * ((t * c) - (y * i))) + (t_1 - (z * (b * c))); else tmp = (i * (a * b)) - (t * ((x * a) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7e+146], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.6e-71], N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-136], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.6e+94], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;a \leq -2.7 \cdot 10^{+146}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;a \leq -6.6 \cdot 10^{-71}:\\
\;\;\;\;\left(b \cdot \left(a \cdot i - z \cdot c\right) + t_1\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-136}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{+94}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + \left(t_1 - z \cdot \left(b \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
\end{array}
\end{array}
if a < -2.69999999999999989e146Initial program 55.7%
Taylor expanded in y around -inf 63.8%
Simplified54.7%
Taylor expanded in a around inf 78.9%
+-commutative78.9%
mul-1-neg78.9%
unsub-neg78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
if -2.69999999999999989e146 < a < -6.6000000000000003e-71Initial program 73.4%
Taylor expanded in c around 0 75.4%
associate-*r*77.3%
associate-*r*77.3%
*-commutative77.3%
mul-1-neg77.3%
distribute-rgt-neg-in77.3%
Simplified77.3%
if -6.6000000000000003e-71 < a < 1.4e-136Initial program 74.7%
Taylor expanded in y around -inf 84.2%
Simplified88.8%
Taylor expanded in a around 0 85.6%
+-commutative85.6%
associate-+l+85.6%
+-commutative85.6%
associate-*r*85.6%
*-commutative85.6%
associate-*r*86.6%
associate-*r*86.6%
*-commutative86.6%
distribute-rgt-in87.7%
Simplified87.7%
if 1.4e-136 < a < 5.59999999999999997e94Initial program 67.9%
Taylor expanded in c around inf 70.3%
*-commutative70.3%
*-commutative70.3%
associate-*l*74.7%
Simplified74.7%
if 5.59999999999999997e94 < a Initial program 53.1%
Taylor expanded in y around 0 50.2%
Simplified65.0%
Taylor expanded in i around inf 71.3%
associate-*r*31.2%
*-commutative31.2%
Simplified69.8%
Final simplification79.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))))
(if (<= a -1.68e+128)
(* a (- (* b i) (* x t)))
(if (<= a -4.8e-19)
t_1
(if (<= a -4.9e-73)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(if (<= a -1.42e-115)
t_1
(if (<= a 3.3e-285)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= a 4.5e-113)
(- (* c (- (* t j) (* z b))) (* i (* y j)))
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 * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (a <= -1.68e+128) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -4.8e-19) {
tmp = t_1;
} else if (a <= -4.9e-73) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (a <= -1.42e-115) {
tmp = t_1;
} else if (a <= 3.3e-285) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= 4.5e-113) {
tmp = (c * ((t * j) - (z * b))) - (i * (y * j));
} 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 * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
if (a <= (-1.68d+128)) then
tmp = a * ((b * i) - (x * t))
else if (a <= (-4.8d-19)) then
tmp = t_1
else if (a <= (-4.9d-73)) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else if (a <= (-1.42d-115)) then
tmp = t_1
else if (a <= 3.3d-285) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (a <= 4.5d-113) then
tmp = (c * ((t * j) - (z * b))) - (i * (y * j))
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 * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (a <= -1.68e+128) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -4.8e-19) {
tmp = t_1;
} else if (a <= -4.9e-73) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (a <= -1.42e-115) {
tmp = t_1;
} else if (a <= 3.3e-285) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= 4.5e-113) {
tmp = (c * ((t * j) - (z * b))) - (i * (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) tmp = 0 if a <= -1.68e+128: tmp = a * ((b * i) - (x * t)) elif a <= -4.8e-19: tmp = t_1 elif a <= -4.9e-73: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) elif a <= -1.42e-115: tmp = t_1 elif a <= 3.3e-285: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif a <= 4.5e-113: tmp = (c * ((t * j) - (z * b))) - (i * (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (a <= -1.68e+128) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (a <= -4.8e-19) tmp = t_1; elseif (a <= -4.9e-73) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (a <= -1.42e-115) tmp = t_1; elseif (a <= 3.3e-285) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (a <= 4.5e-113) tmp = Float64(Float64(c * Float64(Float64(t * j) - Float64(z * b))) - Float64(i * Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); tmp = 0.0; if (a <= -1.68e+128) tmp = a * ((b * i) - (x * t)); elseif (a <= -4.8e-19) tmp = t_1; elseif (a <= -4.9e-73) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); elseif (a <= -1.42e-115) tmp = t_1; elseif (a <= 3.3e-285) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (a <= 4.5e-113) tmp = (c * ((t * j) - (z * b))) - (i * (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.68e+128], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-19], t$95$1, If[LessEqual[a, -4.9e-73], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.42e-115], t$95$1, If[LessEqual[a, 3.3e-285], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-113], N[(N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;a \leq -1.68 \cdot 10^{+128}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.9 \cdot 10^{-73}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -1.42 \cdot 10^{-115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-285}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-113}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.67999999999999993e128Initial program 56.6%
Taylor expanded in y around -inf 64.0%
Simplified55.7%
Taylor expanded in a around inf 75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
if -1.67999999999999993e128 < a < -4.80000000000000046e-19 or -4.90000000000000028e-73 < a < -1.41999999999999992e-115 or 4.5000000000000001e-113 < a Initial program 64.1%
Taylor expanded in y around 0 61.1%
Simplified69.4%
if -4.80000000000000046e-19 < a < -4.90000000000000028e-73Initial program 81.7%
Taylor expanded in b around 0 81.9%
if -1.41999999999999992e-115 < a < 3.29999999999999985e-285Initial program 74.6%
Taylor expanded in y around -inf 86.8%
Simplified93.4%
Taylor expanded in a around 0 91.6%
+-commutative91.6%
associate-+l+91.6%
+-commutative91.6%
associate-*r*91.6%
*-commutative91.6%
associate-*r*91.4%
associate-*r*91.4%
*-commutative91.4%
distribute-rgt-in91.4%
Simplified91.4%
Taylor expanded in j around 0 84.8%
mul-1-neg84.8%
*-commutative84.8%
distribute-rgt-neg-in84.8%
Simplified84.8%
if 3.29999999999999985e-285 < a < 4.5000000000000001e-113Initial program 73.1%
Taylor expanded in y around -inf 73.1%
Simplified77.8%
Taylor expanded in a around 0 71.1%
+-commutative71.1%
associate-+l+71.1%
+-commutative71.1%
associate-*r*71.1%
*-commutative71.1%
associate-*r*77.8%
associate-*r*77.8%
*-commutative77.8%
distribute-rgt-in80.1%
Simplified80.1%
Taylor expanded in i around inf 69.4%
mul-1-neg69.4%
*-commutative69.4%
Simplified69.4%
Final simplification73.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))))
(if (<= a -7.1e+127)
(* a (- (* b i) (* x t)))
(if (<= a -8.5e-19)
t_1
(if (<= a -3.8e-75)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(if (or (<= a -3e-115) (not (<= a 2.4e-109)))
t_1
(+ (* y (- (* x z) (* i j))) (* c (- (* t j) (* z b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (a <= -7.1e+127) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -8.5e-19) {
tmp = t_1;
} else if (a <= -3.8e-75) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if ((a <= -3e-115) || !(a <= 2.4e-109)) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)));
}
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 * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
if (a <= (-7.1d+127)) then
tmp = a * ((b * i) - (x * t))
else if (a <= (-8.5d-19)) then
tmp = t_1
else if (a <= (-3.8d-75)) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else if ((a <= (-3d-115)) .or. (.not. (a <= 2.4d-109))) then
tmp = t_1
else
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)))
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 * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (a <= -7.1e+127) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -8.5e-19) {
tmp = t_1;
} else if (a <= -3.8e-75) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if ((a <= -3e-115) || !(a <= 2.4e-109)) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) tmp = 0 if a <= -7.1e+127: tmp = a * ((b * i) - (x * t)) elif a <= -8.5e-19: tmp = t_1 elif a <= -3.8e-75: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) elif (a <= -3e-115) or not (a <= 2.4e-109): tmp = t_1 else: tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (a <= -7.1e+127) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (a <= -8.5e-19) tmp = t_1; elseif (a <= -3.8e-75) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif ((a <= -3e-115) || !(a <= 2.4e-109)) tmp = t_1; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(c * Float64(Float64(t * j) - Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); tmp = 0.0; if (a <= -7.1e+127) tmp = a * ((b * i) - (x * t)); elseif (a <= -8.5e-19) tmp = t_1; elseif (a <= -3.8e-75) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); elseif ((a <= -3e-115) || ~((a <= 2.4e-109))) tmp = t_1; else tmp = (y * ((x * z) - (i * j))) + (c * ((t * j) - (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.1e+127], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e-19], t$95$1, If[LessEqual[a, -3.8e-75], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -3e-115], N[Not[LessEqual[a, 2.4e-109]], $MachinePrecision]], t$95$1, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;a \leq -7.1 \cdot 10^{+127}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-75}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-115} \lor \neg \left(a \leq 2.4 \cdot 10^{-109}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -7.0999999999999996e127Initial program 56.6%
Taylor expanded in y around -inf 64.0%
Simplified55.7%
Taylor expanded in a around inf 75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
if -7.0999999999999996e127 < a < -8.50000000000000003e-19 or -3.79999999999999994e-75 < a < -3.0000000000000002e-115 or 2.39999999999999989e-109 < a Initial program 64.1%
Taylor expanded in y around 0 61.1%
Simplified69.4%
if -8.50000000000000003e-19 < a < -3.79999999999999994e-75Initial program 81.7%
Taylor expanded in b around 0 81.9%
if -3.0000000000000002e-115 < a < 2.39999999999999989e-109Initial program 73.9%
Taylor expanded in y around -inf 80.1%
Simplified85.7%
Taylor expanded in a around 0 81.5%
+-commutative81.5%
associate-+l+81.5%
+-commutative81.5%
associate-*r*81.5%
*-commutative81.5%
associate-*r*84.7%
associate-*r*84.7%
*-commutative84.7%
distribute-rgt-in85.8%
Simplified85.8%
Final simplification76.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.95e+136)
(* a (- (* b i) (* x t)))
(if (<= a -1.25e-178)
(* z (- (* x y) (* b c)))
(if (<= a 4.8e-261)
(* y (- (* x z) (* i j)))
(if (<= a 8e-140)
(* c (- (* t j) (* z b)))
(if (or (<= a 3.7e+70) (not (<= a 1.9e+94)))
(- (* i (* a b)) (* t (- (* x a) (* c j))))
(* i (- (* a b) (* y j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.95e+136) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -1.25e-178) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 4.8e-261) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 8e-140) {
tmp = c * ((t * j) - (z * b));
} else if ((a <= 3.7e+70) || !(a <= 1.9e+94)) {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.95d+136)) then
tmp = a * ((b * i) - (x * t))
else if (a <= (-1.25d-178)) then
tmp = z * ((x * y) - (b * c))
else if (a <= 4.8d-261) then
tmp = y * ((x * z) - (i * j))
else if (a <= 8d-140) then
tmp = c * ((t * j) - (z * b))
else if ((a <= 3.7d+70) .or. (.not. (a <= 1.9d+94))) then
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.95e+136) {
tmp = a * ((b * i) - (x * t));
} else if (a <= -1.25e-178) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 4.8e-261) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 8e-140) {
tmp = c * ((t * j) - (z * b));
} else if ((a <= 3.7e+70) || !(a <= 1.9e+94)) {
tmp = (i * (a * b)) - (t * ((x * a) - (c * j)));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.95e+136: tmp = a * ((b * i) - (x * t)) elif a <= -1.25e-178: tmp = z * ((x * y) - (b * c)) elif a <= 4.8e-261: tmp = y * ((x * z) - (i * j)) elif a <= 8e-140: tmp = c * ((t * j) - (z * b)) elif (a <= 3.7e+70) or not (a <= 1.9e+94): tmp = (i * (a * b)) - (t * ((x * a) - (c * j))) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.95e+136) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (a <= -1.25e-178) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (a <= 4.8e-261) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 8e-140) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif ((a <= 3.7e+70) || !(a <= 1.9e+94)) tmp = Float64(Float64(i * Float64(a * b)) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.95e+136) tmp = a * ((b * i) - (x * t)); elseif (a <= -1.25e-178) tmp = z * ((x * y) - (b * c)); elseif (a <= 4.8e-261) tmp = y * ((x * z) - (i * j)); elseif (a <= 8e-140) tmp = c * ((t * j) - (z * b)); elseif ((a <= 3.7e+70) || ~((a <= 1.9e+94))) tmp = (i * (a * b)) - (t * ((x * a) - (c * j))); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.95e+136], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.25e-178], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e-261], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e-140], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 3.7e+70], N[Not[LessEqual[a, 1.9e+94]], $MachinePrecision]], N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.95 \cdot 10^{+136}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-178}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-261}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{+70} \lor \neg \left(a \leq 1.9 \cdot 10^{+94}\right):\\
\;\;\;\;i \cdot \left(a \cdot b\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if a < -1.9500000000000001e136Initial program 57.0%
Taylor expanded in y around -inf 64.8%
Simplified56.0%
Taylor expanded in a around inf 79.5%
+-commutative79.5%
mul-1-neg79.5%
unsub-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
if -1.9500000000000001e136 < a < -1.24999999999999994e-178Initial program 72.9%
Taylor expanded in z around inf 62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
if -1.24999999999999994e-178 < a < 4.80000000000000028e-261Initial program 71.6%
Taylor expanded in y around -inf 60.9%
mul-1-neg60.9%
*-commutative60.9%
distribute-rgt-neg-in60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Taylor expanded in i around 0 47.9%
associate-*r*47.9%
associate-*r*50.8%
associate-*r*50.8%
*-commutative50.8%
associate-*l*60.9%
distribute-rgt-in60.9%
+-commutative60.9%
mul-1-neg60.9%
*-commutative60.9%
unsub-neg60.9%
*-commutative60.9%
Simplified60.9%
if 4.80000000000000028e-261 < a < 7.9999999999999999e-140Initial program 79.8%
Taylor expanded in c around inf 63.5%
*-commutative63.5%
Simplified63.5%
if 7.9999999999999999e-140 < a < 3.69999999999999989e70 or 1.8999999999999998e94 < a Initial program 60.8%
Taylor expanded in y around 0 48.8%
Simplified65.2%
Taylor expanded in i around inf 64.8%
associate-*r*20.4%
*-commutative20.4%
Simplified65.3%
if 3.69999999999999989e70 < a < 1.8999999999999998e94Initial program 57.9%
Taylor expanded in i around inf 85.9%
distribute-lft-out--85.9%
Simplified85.9%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.65e+189)
t_2
(if (or (<= b -8.8e+133) (and (not (<= b -1.6e-14)) (<= b 2.2e-84)))
(+ t_1 (* y (- (* x z) (* i j))))
(+ 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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.65e+189) {
tmp = t_2;
} else if ((b <= -8.8e+133) || (!(b <= -1.6e-14) && (b <= 2.2e-84))) {
tmp = t_1 + (y * ((x * z) - (i * j)));
} else {
tmp = t_1 + 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 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.65d+189)) then
tmp = t_2
else if ((b <= (-8.8d+133)) .or. (.not. (b <= (-1.6d-14))) .and. (b <= 2.2d-84)) then
tmp = t_1 + (y * ((x * z) - (i * j)))
else
tmp = t_1 + 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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.65e+189) {
tmp = t_2;
} else if ((b <= -8.8e+133) || (!(b <= -1.6e-14) && (b <= 2.2e-84))) {
tmp = t_1 + (y * ((x * z) - (i * j)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.65e+189: tmp = t_2 elif (b <= -8.8e+133) or (not (b <= -1.6e-14) and (b <= 2.2e-84)): tmp = t_1 + (y * ((x * z) - (i * j))) else: tmp = t_1 + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.65e+189) tmp = t_2; elseif ((b <= -8.8e+133) || (!(b <= -1.6e-14) && (b <= 2.2e-84))) tmp = Float64(t_1 + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); else tmp = Float64(t_1 + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.65e+189) tmp = t_2; elseif ((b <= -8.8e+133) || (~((b <= -1.6e-14)) && (b <= 2.2e-84))) tmp = t_1 + (y * ((x * z) - (i * j))); else tmp = t_1 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.65e+189], t$95$2, If[Or[LessEqual[b, -8.8e+133], And[N[Not[LessEqual[b, -1.6e-14]], $MachinePrecision], LessEqual[b, 2.2e-84]]], N[(t$95$1 + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.65 \cdot 10^{+189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{+133} \lor \neg \left(b \leq -1.6 \cdot 10^{-14}\right) \land b \leq 2.2 \cdot 10^{-84}:\\
\;\;\;\;t_1 + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + t_2\\
\end{array}
\end{array}
if b < -1.6500000000000001e189Initial program 59.6%
Taylor expanded in b around inf 72.9%
*-commutative72.9%
Simplified72.9%
if -1.6500000000000001e189 < b < -8.8e133 or -1.6000000000000001e-14 < b < 2.1999999999999999e-84Initial program 64.3%
Taylor expanded in y around -inf 67.4%
Simplified73.7%
Taylor expanded in b around 0 76.0%
+-commutative76.0%
*-commutative76.0%
*-commutative76.0%
mul-1-neg76.0%
unsub-neg76.0%
Simplified76.0%
if -8.8e133 < b < -1.6000000000000001e-14 or 2.1999999999999999e-84 < b Initial program 71.7%
Taylor expanded in y around 0 71.0%
Simplified71.6%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ t_1 (* j (* t c))))
(t_3 (* y (- (* x z) (* i j))))
(t_4 (* x (- (* y z) (* t a)))))
(if (<= x -5.6e+169)
t_4
(if (<= x -3.6e+44)
t_3
(if (<= x -1.9e-95)
t_2
(if (<= x -4.2e-176)
t_3
(if (<= x 4.6e-165)
t_2
(if (<= x 40.0)
(* i (- (* a b) (* y j)))
(if (<= x 3.1e+105) t_1 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 = b * ((a * i) - (z * c));
double t_2 = t_1 + (j * (t * c));
double t_3 = y * ((x * z) - (i * j));
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.6e+169) {
tmp = t_4;
} else if (x <= -3.6e+44) {
tmp = t_3;
} else if (x <= -1.9e-95) {
tmp = t_2;
} else if (x <= -4.2e-176) {
tmp = t_3;
} else if (x <= 4.6e-165) {
tmp = t_2;
} else if (x <= 40.0) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 3.1e+105) {
tmp = t_1;
} 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 = b * ((a * i) - (z * c))
t_2 = t_1 + (j * (t * c))
t_3 = y * ((x * z) - (i * j))
t_4 = x * ((y * z) - (t * a))
if (x <= (-5.6d+169)) then
tmp = t_4
else if (x <= (-3.6d+44)) then
tmp = t_3
else if (x <= (-1.9d-95)) then
tmp = t_2
else if (x <= (-4.2d-176)) then
tmp = t_3
else if (x <= 4.6d-165) then
tmp = t_2
else if (x <= 40.0d0) then
tmp = i * ((a * b) - (y * j))
else if (x <= 3.1d+105) then
tmp = t_1
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 = b * ((a * i) - (z * c));
double t_2 = t_1 + (j * (t * c));
double t_3 = y * ((x * z) - (i * j));
double t_4 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.6e+169) {
tmp = t_4;
} else if (x <= -3.6e+44) {
tmp = t_3;
} else if (x <= -1.9e-95) {
tmp = t_2;
} else if (x <= -4.2e-176) {
tmp = t_3;
} else if (x <= 4.6e-165) {
tmp = t_2;
} else if (x <= 40.0) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 3.1e+105) {
tmp = t_1;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t_1 + (j * (t * c)) t_3 = y * ((x * z) - (i * j)) t_4 = x * ((y * z) - (t * a)) tmp = 0 if x <= -5.6e+169: tmp = t_4 elif x <= -3.6e+44: tmp = t_3 elif x <= -1.9e-95: tmp = t_2 elif x <= -4.2e-176: tmp = t_3 elif x <= 4.6e-165: tmp = t_2 elif x <= 40.0: tmp = i * ((a * b) - (y * j)) elif x <= 3.1e+105: tmp = t_1 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t_1 + Float64(j * Float64(t * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_4 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -5.6e+169) tmp = t_4; elseif (x <= -3.6e+44) tmp = t_3; elseif (x <= -1.9e-95) tmp = t_2; elseif (x <= -4.2e-176) tmp = t_3; elseif (x <= 4.6e-165) tmp = t_2; elseif (x <= 40.0) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 3.1e+105) tmp = t_1; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t_1 + (j * (t * c)); t_3 = y * ((x * z) - (i * j)); t_4 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -5.6e+169) tmp = t_4; elseif (x <= -3.6e+44) tmp = t_3; elseif (x <= -1.9e-95) tmp = t_2; elseif (x <= -4.2e-176) tmp = t_3; elseif (x <= 4.6e-165) tmp = t_2; elseif (x <= 40.0) tmp = i * ((a * b) - (y * j)); elseif (x <= 3.1e+105) tmp = t_1; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.6e+169], t$95$4, If[LessEqual[x, -3.6e+44], t$95$3, If[LessEqual[x, -1.9e-95], t$95$2, If[LessEqual[x, -4.2e-176], t$95$3, If[LessEqual[x, 4.6e-165], t$95$2, If[LessEqual[x, 40.0], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+105], t$95$1, t$95$4]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t_1 + j \cdot \left(t \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -5.6 \cdot 10^{+169}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{+44}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-95}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-176}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-165}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 40:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if x < -5.6000000000000003e169 or 3.10000000000000004e105 < x Initial program 63.2%
Taylor expanded in y around -inf 51.2%
Simplified65.0%
Taylor expanded in x around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
Simplified76.1%
if -5.6000000000000003e169 < x < -3.6e44 or -1.8999999999999999e-95 < x < -4.19999999999999984e-176Initial program 66.9%
Taylor expanded in y around -inf 58.7%
mul-1-neg58.7%
*-commutative58.7%
distribute-rgt-neg-in58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
Taylor expanded in i around 0 50.6%
associate-*r*50.6%
associate-*r*50.6%
associate-*r*50.6%
*-commutative50.6%
associate-*l*58.7%
distribute-rgt-in58.7%
+-commutative58.7%
mul-1-neg58.7%
*-commutative58.7%
unsub-neg58.7%
*-commutative58.7%
Simplified58.7%
if -3.6e44 < x < -1.8999999999999999e-95 or -4.19999999999999984e-176 < x < 4.6000000000000001e-165Initial program 69.0%
Taylor expanded in y around 0 76.4%
Simplified77.5%
Taylor expanded in j around inf 71.7%
associate-*r*32.6%
*-commutative32.6%
associate-*r*26.1%
Simplified69.7%
if 4.6000000000000001e-165 < x < 40Initial program 64.7%
Taylor expanded in i around inf 54.1%
distribute-lft-out--54.1%
Simplified54.1%
if 40 < x < 3.10000000000000004e105Initial program 78.1%
Taylor expanded in b around inf 62.4%
*-commutative62.4%
Simplified62.4%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* c (* z b))))
(t_2 (* t (- (* c j) (* x a)))))
(if (<= t -3e+156)
t_2
(if (<= t -1.6e+92)
t_1
(if (<= t -9e+47)
(- t_2 (* y (* i j)))
(if (<= t -1.4e-193)
t_1
(if (<= t 1.46e+68)
(+ (* b (- (* a i) (* z c))) (* y (* x z)))
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 = (y * ((x * z) - (i * j))) - (c * (z * b));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3e+156) {
tmp = t_2;
} else if (t <= -1.6e+92) {
tmp = t_1;
} else if (t <= -9e+47) {
tmp = t_2 - (y * (i * j));
} else if (t <= -1.4e-193) {
tmp = t_1;
} else if (t <= 1.46e+68) {
tmp = (b * ((a * i) - (z * c))) + (y * (x * z));
} 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 = (y * ((x * z) - (i * j))) - (c * (z * b))
t_2 = t * ((c * j) - (x * a))
if (t <= (-3d+156)) then
tmp = t_2
else if (t <= (-1.6d+92)) then
tmp = t_1
else if (t <= (-9d+47)) then
tmp = t_2 - (y * (i * j))
else if (t <= (-1.4d-193)) then
tmp = t_1
else if (t <= 1.46d+68) then
tmp = (b * ((a * i) - (z * c))) + (y * (x * z))
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 = (y * ((x * z) - (i * j))) - (c * (z * b));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3e+156) {
tmp = t_2;
} else if (t <= -1.6e+92) {
tmp = t_1;
} else if (t <= -9e+47) {
tmp = t_2 - (y * (i * j));
} else if (t <= -1.4e-193) {
tmp = t_1;
} else if (t <= 1.46e+68) {
tmp = (b * ((a * i) - (z * c))) + (y * (x * z));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (c * (z * b)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -3e+156: tmp = t_2 elif t <= -1.6e+92: tmp = t_1 elif t <= -9e+47: tmp = t_2 - (y * (i * j)) elif t <= -1.4e-193: tmp = t_1 elif t <= 1.46e+68: tmp = (b * ((a * i) - (z * c))) + (y * (x * z)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -3e+156) tmp = t_2; elseif (t <= -1.6e+92) tmp = t_1; elseif (t <= -9e+47) tmp = Float64(t_2 - Float64(y * Float64(i * j))); elseif (t <= -1.4e-193) tmp = t_1; elseif (t <= 1.46e+68) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(y * Float64(x * z))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (c * (z * b)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -3e+156) tmp = t_2; elseif (t <= -1.6e+92) tmp = t_1; elseif (t <= -9e+47) tmp = t_2 - (y * (i * j)); elseif (t <= -1.4e-193) tmp = t_1; elseif (t <= 1.46e+68) tmp = (b * ((a * i) - (z * c))) + (y * (x * z)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e+156], t$95$2, If[LessEqual[t, -1.6e+92], t$95$1, If[LessEqual[t, -9e+47], N[(t$95$2 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.4e-193], t$95$1, If[LessEqual[t, 1.46e+68], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -3 \cdot 10^{+156}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.6 \cdot 10^{+92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -9 \cdot 10^{+47}:\\
\;\;\;\;t_2 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.46 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -3e156 or 1.45999999999999992e68 < t Initial program 51.6%
Taylor expanded in t around inf 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if -3e156 < t < -1.60000000000000013e92 or -8.99999999999999958e47 < t < -1.4000000000000001e-193Initial program 70.4%
Taylor expanded in y around -inf 76.6%
Simplified80.4%
Taylor expanded in a around 0 70.5%
+-commutative70.5%
associate-+l+70.5%
+-commutative70.5%
associate-*r*70.5%
*-commutative70.5%
associate-*r*71.7%
associate-*r*71.7%
*-commutative71.7%
distribute-rgt-in73.0%
Simplified73.0%
Taylor expanded in j around 0 68.6%
mul-1-neg68.6%
*-commutative68.6%
distribute-rgt-neg-in68.6%
Simplified68.6%
if -1.60000000000000013e92 < t < -8.99999999999999958e47Initial program 74.1%
Taylor expanded in y around -inf 55.6%
Simplified73.1%
Taylor expanded in b around 0 56.0%
+-commutative56.0%
*-commutative56.0%
*-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
Taylor expanded in i around inf 73.6%
associate-*r*73.6%
*-commutative73.6%
Simplified73.6%
if -1.4000000000000001e-193 < t < 1.45999999999999992e68Initial program 77.1%
Taylor expanded in y around inf 73.5%
associate-*r*74.5%
*-commutative74.5%
associate-*r*73.4%
Simplified73.4%
Taylor expanded in j around 0 70.1%
*-commutative70.1%
associate-*l*70.2%
*-commutative70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -3.9e+127)
t_2
(if (<= a -1.26e-62)
(* b (- (* a i) (* z c)))
(if (<= a 1.6e-299)
t_1
(if (<= a 1.8e-269)
(* y (* x z))
(if (<= a 7.2e-140)
t_1
(if (<= a 1.42e+16)
(* j (- (* t c) (* y i)))
(if (<= a 2.1e+69) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -3.9e+127) {
tmp = t_2;
} else if (a <= -1.26e-62) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 1.6e-299) {
tmp = t_1;
} else if (a <= 1.8e-269) {
tmp = y * (x * z);
} else if (a <= 7.2e-140) {
tmp = t_1;
} else if (a <= 1.42e+16) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 2.1e+69) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (a <= (-3.9d+127)) then
tmp = t_2
else if (a <= (-1.26d-62)) then
tmp = b * ((a * i) - (z * c))
else if (a <= 1.6d-299) then
tmp = t_1
else if (a <= 1.8d-269) then
tmp = y * (x * z)
else if (a <= 7.2d-140) then
tmp = t_1
else if (a <= 1.42d+16) then
tmp = j * ((t * c) - (y * i))
else if (a <= 2.1d+69) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -3.9e+127) {
tmp = t_2;
} else if (a <= -1.26e-62) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 1.6e-299) {
tmp = t_1;
} else if (a <= 1.8e-269) {
tmp = y * (x * z);
} else if (a <= 7.2e-140) {
tmp = t_1;
} else if (a <= 1.42e+16) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 2.1e+69) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -3.9e+127: tmp = t_2 elif a <= -1.26e-62: tmp = b * ((a * i) - (z * c)) elif a <= 1.6e-299: tmp = t_1 elif a <= 1.8e-269: tmp = y * (x * z) elif a <= 7.2e-140: tmp = t_1 elif a <= 1.42e+16: tmp = j * ((t * c) - (y * i)) elif a <= 2.1e+69: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -3.9e+127) tmp = t_2; elseif (a <= -1.26e-62) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (a <= 1.6e-299) tmp = t_1; elseif (a <= 1.8e-269) tmp = Float64(y * Float64(x * z)); elseif (a <= 7.2e-140) tmp = t_1; elseif (a <= 1.42e+16) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 2.1e+69) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -3.9e+127) tmp = t_2; elseif (a <= -1.26e-62) tmp = b * ((a * i) - (z * c)); elseif (a <= 1.6e-299) tmp = t_1; elseif (a <= 1.8e-269) tmp = y * (x * z); elseif (a <= 7.2e-140) tmp = t_1; elseif (a <= 1.42e+16) tmp = j * ((t * c) - (y * i)); elseif (a <= 2.1e+69) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.9e+127], t$95$2, If[LessEqual[a, -1.26e-62], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-299], t$95$1, If[LessEqual[a, 1.8e-269], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e-140], t$95$1, If[LessEqual[a, 1.42e+16], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e+69], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.9 \cdot 10^{+127}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.26 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-269}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.42 \cdot 10^{+16}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.89999999999999981e127 or 2.10000000000000015e69 < a Initial program 55.0%
Taylor expanded in y around -inf 54.0%
Simplified56.8%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
if -3.89999999999999981e127 < a < -1.26e-62Initial program 73.3%
Taylor expanded in b around inf 53.3%
*-commutative53.3%
Simplified53.3%
if -1.26e-62 < a < 1.60000000000000004e-299 or 1.79999999999999999e-269 < a < 7.2000000000000001e-140 or 1.42e16 < a < 2.10000000000000015e69Initial program 73.1%
Taylor expanded in c around inf 56.9%
*-commutative56.9%
Simplified56.9%
if 1.60000000000000004e-299 < a < 1.79999999999999999e-269Initial program 75.0%
Taylor expanded in y around -inf 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in i around 0 88.0%
*-commutative88.0%
associate-*l*100.0%
*-commutative100.0%
Simplified100.0%
if 7.2000000000000001e-140 < a < 1.42e16Initial program 74.3%
Taylor expanded in y around -inf 56.9%
Simplified78.1%
Taylor expanded in j around inf 48.5%
neg-mul-148.5%
+-commutative48.5%
fma-udef48.5%
fma-neg48.5%
*-commutative48.5%
Simplified48.5%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -2e+165)
t_3
(if (<= t -4.4e+91)
t_2
(if (<= t -4e+47)
t_3
(if (<= t -1.1e-98)
t_1
(if (<= t -1.08e-147)
(* y (- (* x z) (* i j)))
(if (<= t 5.6e-64) t_1 (if (<= t 1.8e+114) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2e+165) {
tmp = t_3;
} else if (t <= -4.4e+91) {
tmp = t_2;
} else if (t <= -4e+47) {
tmp = t_3;
} else if (t <= -1.1e-98) {
tmp = t_1;
} else if (t <= -1.08e-147) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 5.6e-64) {
tmp = t_1;
} else if (t <= 1.8e+114) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = z * ((x * y) - (b * c))
t_3 = t * ((c * j) - (x * a))
if (t <= (-2d+165)) then
tmp = t_3
else if (t <= (-4.4d+91)) then
tmp = t_2
else if (t <= (-4d+47)) then
tmp = t_3
else if (t <= (-1.1d-98)) then
tmp = t_1
else if (t <= (-1.08d-147)) then
tmp = y * ((x * z) - (i * j))
else if (t <= 5.6d-64) then
tmp = t_1
else if (t <= 1.8d+114) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2e+165) {
tmp = t_3;
} else if (t <= -4.4e+91) {
tmp = t_2;
} else if (t <= -4e+47) {
tmp = t_3;
} else if (t <= -1.1e-98) {
tmp = t_1;
} else if (t <= -1.08e-147) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 5.6e-64) {
tmp = t_1;
} else if (t <= 1.8e+114) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = z * ((x * y) - (b * c)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2e+165: tmp = t_3 elif t <= -4.4e+91: tmp = t_2 elif t <= -4e+47: tmp = t_3 elif t <= -1.1e-98: tmp = t_1 elif t <= -1.08e-147: tmp = y * ((x * z) - (i * j)) elif t <= 5.6e-64: tmp = t_1 elif t <= 1.8e+114: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2e+165) tmp = t_3; elseif (t <= -4.4e+91) tmp = t_2; elseif (t <= -4e+47) tmp = t_3; elseif (t <= -1.1e-98) tmp = t_1; elseif (t <= -1.08e-147) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 5.6e-64) tmp = t_1; elseif (t <= 1.8e+114) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = z * ((x * y) - (b * c)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2e+165) tmp = t_3; elseif (t <= -4.4e+91) tmp = t_2; elseif (t <= -4e+47) tmp = t_3; elseif (t <= -1.1e-98) tmp = t_1; elseif (t <= -1.08e-147) tmp = y * ((x * z) - (i * j)); elseif (t <= 5.6e-64) tmp = t_1; elseif (t <= 1.8e+114) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $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 * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e+165], t$95$3, If[LessEqual[t, -4.4e+91], t$95$2, If[LessEqual[t, -4e+47], t$95$3, If[LessEqual[t, -1.1e-98], t$95$1, If[LessEqual[t, -1.08e-147], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e-64], t$95$1, If[LessEqual[t, 1.8e+114], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{+165}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{+91}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -4 \cdot 10^{+47}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.08 \cdot 10^{-147}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+114}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -1.9999999999999998e165 or -4.39999999999999999e91 < t < -4.0000000000000002e47 or 1.8e114 < t Initial program 54.9%
Taylor expanded in t around inf 77.1%
+-commutative77.1%
mul-1-neg77.1%
unsub-neg77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
if -1.9999999999999998e165 < t < -4.39999999999999999e91 or 5.60000000000000008e-64 < t < 1.8e114Initial program 59.0%
Taylor expanded in z around inf 59.6%
*-commutative59.6%
*-commutative59.6%
Simplified59.6%
if -4.0000000000000002e47 < t < -1.09999999999999998e-98 or -1.07999999999999995e-147 < t < 5.60000000000000008e-64Initial program 78.8%
Taylor expanded in b around inf 58.9%
*-commutative58.9%
Simplified58.9%
if -1.09999999999999998e-98 < t < -1.07999999999999995e-147Initial program 79.3%
Taylor expanded in y around -inf 64.9%
mul-1-neg64.9%
*-commutative64.9%
distribute-rgt-neg-in64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
Simplified64.9%
Taylor expanded in i around 0 64.6%
associate-*r*64.6%
associate-*r*69.5%
associate-*r*69.5%
*-commutative69.5%
associate-*l*64.9%
distribute-rgt-in64.9%
+-commutative64.9%
mul-1-neg64.9%
*-commutative64.9%
unsub-neg64.9%
*-commutative64.9%
Simplified64.9%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= x -5.8e+164)
t_1
(if (<= x -3.1e+87)
(* z (- (* x y) (* b c)))
(if (<= x -7.8e-212)
(- (* t (- (* c j) (* x a))) (* y (* i j)))
(if (<= x 4.6e-165)
(+ t_2 (* j (* t c)))
(if (<= x 82.0)
(* i (- (* a b) (* y j)))
(if (<= x 3.7e+105) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (x <= -5.8e+164) {
tmp = t_1;
} else if (x <= -3.1e+87) {
tmp = z * ((x * y) - (b * c));
} else if (x <= -7.8e-212) {
tmp = (t * ((c * j) - (x * a))) - (y * (i * j));
} else if (x <= 4.6e-165) {
tmp = t_2 + (j * (t * c));
} else if (x <= 82.0) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 3.7e+105) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((a * i) - (z * c))
if (x <= (-5.8d+164)) then
tmp = t_1
else if (x <= (-3.1d+87)) then
tmp = z * ((x * y) - (b * c))
else if (x <= (-7.8d-212)) then
tmp = (t * ((c * j) - (x * a))) - (y * (i * j))
else if (x <= 4.6d-165) then
tmp = t_2 + (j * (t * c))
else if (x <= 82.0d0) then
tmp = i * ((a * b) - (y * j))
else if (x <= 3.7d+105) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (x <= -5.8e+164) {
tmp = t_1;
} else if (x <= -3.1e+87) {
tmp = z * ((x * y) - (b * c));
} else if (x <= -7.8e-212) {
tmp = (t * ((c * j) - (x * a))) - (y * (i * j));
} else if (x <= 4.6e-165) {
tmp = t_2 + (j * (t * c));
} else if (x <= 82.0) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 3.7e+105) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if x <= -5.8e+164: tmp = t_1 elif x <= -3.1e+87: tmp = z * ((x * y) - (b * c)) elif x <= -7.8e-212: tmp = (t * ((c * j) - (x * a))) - (y * (i * j)) elif x <= 4.6e-165: tmp = t_2 + (j * (t * c)) elif x <= 82.0: tmp = i * ((a * b) - (y * j)) elif x <= 3.7e+105: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (x <= -5.8e+164) tmp = t_1; elseif (x <= -3.1e+87) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= -7.8e-212) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(y * Float64(i * j))); elseif (x <= 4.6e-165) tmp = Float64(t_2 + Float64(j * Float64(t * c))); elseif (x <= 82.0) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 3.7e+105) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (x <= -5.8e+164) tmp = t_1; elseif (x <= -3.1e+87) tmp = z * ((x * y) - (b * c)); elseif (x <= -7.8e-212) tmp = (t * ((c * j) - (x * a))) - (y * (i * j)); elseif (x <= 4.6e-165) tmp = t_2 + (j * (t * c)); elseif (x <= 82.0) tmp = i * ((a * b) - (y * j)); elseif (x <= 3.7e+105) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+164], t$95$1, If[LessEqual[x, -3.1e+87], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.8e-212], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-165], N[(t$95$2 + N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 82.0], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e+105], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+164}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{+87}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{-212}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-165}:\\
\;\;\;\;t_2 + j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;x \leq 82:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -5.7999999999999997e164 or 3.69999999999999985e105 < x Initial program 63.7%
Taylor expanded in y around -inf 51.9%
Simplified65.5%
Taylor expanded in x around inf 75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
Simplified75.0%
if -5.7999999999999997e164 < x < -3.1e87Initial program 85.0%
Taylor expanded in z around inf 69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
if -3.1e87 < x < -7.8e-212Initial program 59.6%
Taylor expanded in y around -inf 78.4%
Simplified80.2%
Taylor expanded in b around 0 74.7%
+-commutative74.7%
*-commutative74.7%
*-commutative74.7%
mul-1-neg74.7%
unsub-neg74.7%
Simplified74.7%
Taylor expanded in i around inf 56.4%
associate-*r*58.0%
*-commutative58.0%
Simplified58.0%
if -7.8e-212 < x < 4.6000000000000001e-165Initial program 71.2%
Taylor expanded in y around 0 82.6%
Simplified82.5%
Taylor expanded in j around inf 80.8%
associate-*r*32.9%
*-commutative32.9%
associate-*r*23.9%
Simplified79.0%
if 4.6000000000000001e-165 < x < 82Initial program 64.7%
Taylor expanded in i around inf 54.1%
distribute-lft-out--54.1%
Simplified54.1%
if 82 < x < 3.69999999999999985e105Initial program 78.1%
Taylor expanded in b around inf 62.4%
*-commutative62.4%
Simplified62.4%
Final simplification67.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -3.8e+165)
t_1
(if (<= t -2.35e+91)
(* z (- (* x y) (* b c)))
(if (<= t -4.8e+49)
(- t_1 (* y (* i j)))
(if (<= t 1.6e+68)
(+ (* b (- (* a i) (* z c))) (* y (* x z)))
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 * ((c * j) - (x * a));
double tmp;
if (t <= -3.8e+165) {
tmp = t_1;
} else if (t <= -2.35e+91) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -4.8e+49) {
tmp = t_1 - (y * (i * j));
} else if (t <= 1.6e+68) {
tmp = (b * ((a * i) - (z * c))) + (y * (x * z));
} 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 * ((c * j) - (x * a))
if (t <= (-3.8d+165)) then
tmp = t_1
else if (t <= (-2.35d+91)) then
tmp = z * ((x * y) - (b * c))
else if (t <= (-4.8d+49)) then
tmp = t_1 - (y * (i * j))
else if (t <= 1.6d+68) then
tmp = (b * ((a * i) - (z * c))) + (y * (x * z))
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 * ((c * j) - (x * a));
double tmp;
if (t <= -3.8e+165) {
tmp = t_1;
} else if (t <= -2.35e+91) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -4.8e+49) {
tmp = t_1 - (y * (i * j));
} else if (t <= 1.6e+68) {
tmp = (b * ((a * i) - (z * c))) + (y * (x * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -3.8e+165: tmp = t_1 elif t <= -2.35e+91: tmp = z * ((x * y) - (b * c)) elif t <= -4.8e+49: tmp = t_1 - (y * (i * j)) elif t <= 1.6e+68: tmp = (b * ((a * i) - (z * c))) + (y * (x * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -3.8e+165) tmp = t_1; elseif (t <= -2.35e+91) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= -4.8e+49) tmp = Float64(t_1 - Float64(y * Float64(i * j))); elseif (t <= 1.6e+68) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(y * Float64(x * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -3.8e+165) tmp = t_1; elseif (t <= -2.35e+91) tmp = z * ((x * y) - (b * c)); elseif (t <= -4.8e+49) tmp = t_1 - (y * (i * j)); elseif (t <= 1.6e+68) tmp = (b * ((a * i) - (z * c))) + (y * (x * z)); 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[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e+165], t$95$1, If[LessEqual[t, -2.35e+91], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.8e+49], N[(t$95$1 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e+68], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{+165}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.35 \cdot 10^{+91}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{+49}:\\
\;\;\;\;t_1 - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.7999999999999999e165 or 1.59999999999999997e68 < t Initial program 52.3%
Taylor expanded in t around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
if -3.7999999999999999e165 < t < -2.3499999999999999e91Initial program 57.9%
Taylor expanded in z around inf 58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
if -2.3499999999999999e91 < t < -4.8e49Initial program 74.1%
Taylor expanded in y around -inf 55.6%
Simplified73.1%
Taylor expanded in b around 0 56.0%
+-commutative56.0%
*-commutative56.0%
*-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
Taylor expanded in i around inf 73.6%
associate-*r*73.6%
*-commutative73.6%
Simplified73.6%
if -4.8e49 < t < 1.59999999999999997e68Initial program 75.9%
Taylor expanded in y around inf 72.3%
associate-*r*73.6%
*-commutative73.6%
associate-*r*71.7%
Simplified71.7%
Taylor expanded in j around 0 66.5%
*-commutative66.5%
associate-*l*65.7%
*-commutative65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* a (- x)))) (t_2 (* b (- (* z c)))))
(if (<= c -3.8e+247)
(* j (* t c))
(if (<= c -5.6e+209)
(* i (* a b))
(if (<= c -3.6e+177)
(* z (- (* b c)))
(if (<= c -1.5e+163)
t_1
(if (<= c -1.52e+66)
t_2
(if (<= c -2.5e-271)
t_1
(if (<= c 2.7e-22)
(* y (* x z))
(if (<= c 3.4e+126) t_2 (* t (* c j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (a * -x);
double t_2 = b * -(z * c);
double tmp;
if (c <= -3.8e+247) {
tmp = j * (t * c);
} else if (c <= -5.6e+209) {
tmp = i * (a * b);
} else if (c <= -3.6e+177) {
tmp = z * -(b * c);
} else if (c <= -1.5e+163) {
tmp = t_1;
} else if (c <= -1.52e+66) {
tmp = t_2;
} else if (c <= -2.5e-271) {
tmp = t_1;
} else if (c <= 2.7e-22) {
tmp = y * (x * z);
} else if (c <= 3.4e+126) {
tmp = t_2;
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (a * -x)
t_2 = b * -(z * c)
if (c <= (-3.8d+247)) then
tmp = j * (t * c)
else if (c <= (-5.6d+209)) then
tmp = i * (a * b)
else if (c <= (-3.6d+177)) then
tmp = z * -(b * c)
else if (c <= (-1.5d+163)) then
tmp = t_1
else if (c <= (-1.52d+66)) then
tmp = t_2
else if (c <= (-2.5d-271)) then
tmp = t_1
else if (c <= 2.7d-22) then
tmp = y * (x * z)
else if (c <= 3.4d+126) then
tmp = t_2
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (a * -x);
double t_2 = b * -(z * c);
double tmp;
if (c <= -3.8e+247) {
tmp = j * (t * c);
} else if (c <= -5.6e+209) {
tmp = i * (a * b);
} else if (c <= -3.6e+177) {
tmp = z * -(b * c);
} else if (c <= -1.5e+163) {
tmp = t_1;
} else if (c <= -1.52e+66) {
tmp = t_2;
} else if (c <= -2.5e-271) {
tmp = t_1;
} else if (c <= 2.7e-22) {
tmp = y * (x * z);
} else if (c <= 3.4e+126) {
tmp = t_2;
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (a * -x) t_2 = b * -(z * c) tmp = 0 if c <= -3.8e+247: tmp = j * (t * c) elif c <= -5.6e+209: tmp = i * (a * b) elif c <= -3.6e+177: tmp = z * -(b * c) elif c <= -1.5e+163: tmp = t_1 elif c <= -1.52e+66: tmp = t_2 elif c <= -2.5e-271: tmp = t_1 elif c <= 2.7e-22: tmp = y * (x * z) elif c <= 3.4e+126: tmp = t_2 else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(a * Float64(-x))) t_2 = Float64(b * Float64(-Float64(z * c))) tmp = 0.0 if (c <= -3.8e+247) tmp = Float64(j * Float64(t * c)); elseif (c <= -5.6e+209) tmp = Float64(i * Float64(a * b)); elseif (c <= -3.6e+177) tmp = Float64(z * Float64(-Float64(b * c))); elseif (c <= -1.5e+163) tmp = t_1; elseif (c <= -1.52e+66) tmp = t_2; elseif (c <= -2.5e-271) tmp = t_1; elseif (c <= 2.7e-22) tmp = Float64(y * Float64(x * z)); elseif (c <= 3.4e+126) tmp = t_2; else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (a * -x); t_2 = b * -(z * c); tmp = 0.0; if (c <= -3.8e+247) tmp = j * (t * c); elseif (c <= -5.6e+209) tmp = i * (a * b); elseif (c <= -3.6e+177) tmp = z * -(b * c); elseif (c <= -1.5e+163) tmp = t_1; elseif (c <= -1.52e+66) tmp = t_2; elseif (c <= -2.5e-271) tmp = t_1; elseif (c <= 2.7e-22) tmp = y * (x * z); elseif (c <= 3.4e+126) tmp = t_2; else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[c, -3.8e+247], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.6e+209], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.6e+177], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[c, -1.5e+163], t$95$1, If[LessEqual[c, -1.52e+66], t$95$2, If[LessEqual[c, -2.5e-271], t$95$1, If[LessEqual[c, 2.7e-22], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.4e+126], t$95$2, N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot \left(-x\right)\right)\\
t_2 := b \cdot \left(-z \cdot c\right)\\
\mathbf{if}\;c \leq -3.8 \cdot 10^{+247}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq -5.6 \cdot 10^{+209}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{+177}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;c \leq -1.5 \cdot 10^{+163}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.52 \cdot 10^{+66}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{-22}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+126}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -3.80000000000000022e247Initial program 53.8%
Taylor expanded in t around inf 69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
*-commutative69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in j around inf 85.0%
associate-*r*78.0%
*-commutative78.0%
associate-*r*92.3%
Simplified92.3%
if -3.80000000000000022e247 < c < -5.60000000000000026e209Initial program 62.5%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around inf 50.8%
associate-*r*62.7%
*-commutative62.7%
Simplified62.7%
if -5.60000000000000026e209 < c < -3.60000000000000003e177Initial program 55.4%
Taylor expanded in b around inf 67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in i around 0 57.4%
associate-*r*78.2%
associate-*r*78.2%
*-commutative78.2%
mul-1-neg78.2%
distribute-rgt-neg-in78.2%
Simplified78.2%
if -3.60000000000000003e177 < c < -1.50000000000000007e163 or -1.52000000000000004e66 < c < -2.5000000000000001e-271Initial program 72.3%
Taylor expanded in t around inf 50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in j around 0 39.7%
associate-*r*39.7%
neg-mul-139.7%
*-commutative39.7%
Simplified39.7%
if -1.50000000000000007e163 < c < -1.52000000000000004e66 or 2.7000000000000002e-22 < c < 3.39999999999999989e126Initial program 72.4%
Taylor expanded in b around inf 55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in i around 0 50.2%
neg-mul-150.2%
distribute-lft-neg-in50.2%
*-commutative50.2%
Simplified50.2%
if -2.5000000000000001e-271 < c < 2.7000000000000002e-22Initial program 76.4%
Taylor expanded in y around -inf 54.3%
mul-1-neg54.3%
*-commutative54.3%
distribute-rgt-neg-in54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
Taylor expanded in i around 0 30.8%
*-commutative30.8%
associate-*l*34.0%
*-commutative34.0%
Simplified34.0%
if 3.39999999999999989e126 < c Initial program 44.8%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 49.3%
*-commutative49.3%
Simplified49.3%
Final simplification46.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c)))) (t_2 (* t (* a (- x)))))
(if (<= x -3.2e+190)
t_2
(if (<= x -0.0066)
(* y (* x z))
(if (<= x 5.8e-166)
t_1
(if (<= x 75.0)
(* i (- (* y j)))
(if (<= x 1.7e+110)
t_1
(if (or (<= x 3.5e+173) (not (<= x 1.25e+264)))
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 = b * -(z * c);
double t_2 = t * (a * -x);
double tmp;
if (x <= -3.2e+190) {
tmp = t_2;
} else if (x <= -0.0066) {
tmp = y * (x * z);
} else if (x <= 5.8e-166) {
tmp = t_1;
} else if (x <= 75.0) {
tmp = i * -(y * j);
} else if (x <= 1.7e+110) {
tmp = t_1;
} else if ((x <= 3.5e+173) || !(x <= 1.25e+264)) {
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 = b * -(z * c)
t_2 = t * (a * -x)
if (x <= (-3.2d+190)) then
tmp = t_2
else if (x <= (-0.0066d0)) then
tmp = y * (x * z)
else if (x <= 5.8d-166) then
tmp = t_1
else if (x <= 75.0d0) then
tmp = i * -(y * j)
else if (x <= 1.7d+110) then
tmp = t_1
else if ((x <= 3.5d+173) .or. (.not. (x <= 1.25d+264))) 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 = b * -(z * c);
double t_2 = t * (a * -x);
double tmp;
if (x <= -3.2e+190) {
tmp = t_2;
} else if (x <= -0.0066) {
tmp = y * (x * z);
} else if (x <= 5.8e-166) {
tmp = t_1;
} else if (x <= 75.0) {
tmp = i * -(y * j);
} else if (x <= 1.7e+110) {
tmp = t_1;
} else if ((x <= 3.5e+173) || !(x <= 1.25e+264)) {
tmp = t_2;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * -(z * c) t_2 = t * (a * -x) tmp = 0 if x <= -3.2e+190: tmp = t_2 elif x <= -0.0066: tmp = y * (x * z) elif x <= 5.8e-166: tmp = t_1 elif x <= 75.0: tmp = i * -(y * j) elif x <= 1.7e+110: tmp = t_1 elif (x <= 3.5e+173) or not (x <= 1.25e+264): tmp = t_2 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(-Float64(z * c))) t_2 = Float64(t * Float64(a * Float64(-x))) tmp = 0.0 if (x <= -3.2e+190) tmp = t_2; elseif (x <= -0.0066) tmp = Float64(y * Float64(x * z)); elseif (x <= 5.8e-166) tmp = t_1; elseif (x <= 75.0) tmp = Float64(i * Float64(-Float64(y * j))); elseif (x <= 1.7e+110) tmp = t_1; elseif ((x <= 3.5e+173) || !(x <= 1.25e+264)) 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 = b * -(z * c); t_2 = t * (a * -x); tmp = 0.0; if (x <= -3.2e+190) tmp = t_2; elseif (x <= -0.0066) tmp = y * (x * z); elseif (x <= 5.8e-166) tmp = t_1; elseif (x <= 75.0) tmp = i * -(y * j); elseif (x <= 1.7e+110) tmp = t_1; elseif ((x <= 3.5e+173) || ~((x <= 1.25e+264))) 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[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.2e+190], t$95$2, If[LessEqual[x, -0.0066], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e-166], t$95$1, If[LessEqual[x, 75.0], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, 1.7e+110], t$95$1, If[Or[LessEqual[x, 3.5e+173], N[Not[LessEqual[x, 1.25e+264]], $MachinePrecision]], t$95$2, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-z \cdot c\right)\\
t_2 := t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{if}\;x \leq -3.2 \cdot 10^{+190}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -0.0066:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 75:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+173} \lor \neg \left(x \leq 1.25 \cdot 10^{+264}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -3.2000000000000001e190 or 1.7000000000000001e110 < x < 3.4999999999999999e173 or 1.25000000000000008e264 < x Initial program 55.0%
Taylor expanded in t around inf 74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around 0 70.7%
associate-*r*70.7%
neg-mul-170.7%
*-commutative70.7%
Simplified70.7%
if -3.2000000000000001e190 < x < -0.0066Initial program 78.9%
Taylor expanded in y around -inf 55.0%
mul-1-neg55.0%
*-commutative55.0%
distribute-rgt-neg-in55.0%
+-commutative55.0%
mul-1-neg55.0%
unsub-neg55.0%
Simplified55.0%
Taylor expanded in i around 0 35.4%
*-commutative35.4%
associate-*l*37.4%
*-commutative37.4%
Simplified37.4%
if -0.0066 < x < 5.8e-166 or 75 < x < 1.7000000000000001e110Initial program 66.6%
Taylor expanded in b around inf 56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in i around 0 40.7%
neg-mul-140.7%
distribute-lft-neg-in40.7%
*-commutative40.7%
Simplified40.7%
if 5.8e-166 < x < 75Initial program 64.7%
Taylor expanded in y around -inf 46.2%
mul-1-neg46.2%
*-commutative46.2%
distribute-rgt-neg-in46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
Simplified46.2%
Taylor expanded in i around inf 30.7%
mul-1-neg30.7%
*-commutative30.7%
Simplified30.7%
if 3.4999999999999999e173 < x < 1.25000000000000008e264Initial program 77.8%
Taylor expanded in y around -inf 56.8%
mul-1-neg56.8%
*-commutative56.8%
distribute-rgt-neg-in56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
Simplified56.8%
Taylor expanded in i around 0 61.7%
Final simplification45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -5.6e-56)
t_1
(if (<= a -2.1e-131)
(* x (* y z))
(if (<= a -1.9e-271)
(* b (- (* z c)))
(if (<= a 4.45e-261)
(* y (* x z))
(if (<= a 2.15e-67) (* t (* c j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -5.6e-56) {
tmp = t_1;
} else if (a <= -2.1e-131) {
tmp = x * (y * z);
} else if (a <= -1.9e-271) {
tmp = b * -(z * c);
} else if (a <= 4.45e-261) {
tmp = y * (x * z);
} else if (a <= 2.15e-67) {
tmp = t * (c * j);
} 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 = a * ((b * i) - (x * t))
if (a <= (-5.6d-56)) then
tmp = t_1
else if (a <= (-2.1d-131)) then
tmp = x * (y * z)
else if (a <= (-1.9d-271)) then
tmp = b * -(z * c)
else if (a <= 4.45d-261) then
tmp = y * (x * z)
else if (a <= 2.15d-67) then
tmp = t * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -5.6e-56) {
tmp = t_1;
} else if (a <= -2.1e-131) {
tmp = x * (y * z);
} else if (a <= -1.9e-271) {
tmp = b * -(z * c);
} else if (a <= 4.45e-261) {
tmp = y * (x * z);
} else if (a <= 2.15e-67) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -5.6e-56: tmp = t_1 elif a <= -2.1e-131: tmp = x * (y * z) elif a <= -1.9e-271: tmp = b * -(z * c) elif a <= 4.45e-261: tmp = y * (x * z) elif a <= 2.15e-67: tmp = t * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -5.6e-56) tmp = t_1; elseif (a <= -2.1e-131) tmp = Float64(x * Float64(y * z)); elseif (a <= -1.9e-271) tmp = Float64(b * Float64(-Float64(z * c))); elseif (a <= 4.45e-261) tmp = Float64(y * Float64(x * z)); elseif (a <= 2.15e-67) tmp = Float64(t * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -5.6e-56) tmp = t_1; elseif (a <= -2.1e-131) tmp = x * (y * z); elseif (a <= -1.9e-271) tmp = b * -(z * c); elseif (a <= 4.45e-261) tmp = y * (x * z); elseif (a <= 2.15e-67) tmp = t * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.6e-56], t$95$1, If[LessEqual[a, -2.1e-131], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.9e-271], N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 4.45e-261], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.15e-67], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-131}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-271}:\\
\;\;\;\;b \cdot \left(-z \cdot c\right)\\
\mathbf{elif}\;a \leq 4.45 \cdot 10^{-261}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-67}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -5.59999999999999986e-56 or 2.15000000000000013e-67 < a Initial program 62.9%
Taylor expanded in y around -inf 63.2%
Simplified66.1%
Taylor expanded in a around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
if -5.59999999999999986e-56 < a < -2.09999999999999997e-131Initial program 70.6%
Taylor expanded in y around -inf 59.1%
mul-1-neg59.1%
*-commutative59.1%
distribute-rgt-neg-in59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
Simplified59.1%
Taylor expanded in i around 0 59.2%
if -2.09999999999999997e-131 < a < -1.90000000000000005e-271Initial program 71.8%
Taylor expanded in b around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in i around 0 47.3%
neg-mul-147.3%
distribute-lft-neg-in47.3%
*-commutative47.3%
Simplified47.3%
if -1.90000000000000005e-271 < a < 4.45000000000000022e-261Initial program 69.7%
Taylor expanded in y around -inf 69.3%
mul-1-neg69.3%
*-commutative69.3%
distribute-rgt-neg-in69.3%
+-commutative69.3%
mul-1-neg69.3%
unsub-neg69.3%
Simplified69.3%
Taylor expanded in i around 0 42.8%
*-commutative42.8%
associate-*l*51.5%
*-commutative51.5%
Simplified51.5%
if 4.45000000000000022e-261 < a < 2.15000000000000013e-67Initial program 76.0%
Taylor expanded in t around inf 49.4%
+-commutative49.4%
mul-1-neg49.4%
unsub-neg49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
Taylor expanded in j around inf 39.7%
*-commutative39.7%
Simplified39.7%
Final simplification51.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -4.1e+127)
t_2
(if (<= a -6.7e-62)
(* b (- (* a i) (* z c)))
(if (<= a 1.8e-299)
t_1
(if (<= a 1.3e-269) (* y (* x z)) (if (<= a 6.2e+69) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.1e+127) {
tmp = t_2;
} else if (a <= -6.7e-62) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 1.8e-299) {
tmp = t_1;
} else if (a <= 1.3e-269) {
tmp = y * (x * z);
} else if (a <= 6.2e+69) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (a <= (-4.1d+127)) then
tmp = t_2
else if (a <= (-6.7d-62)) then
tmp = b * ((a * i) - (z * c))
else if (a <= 1.8d-299) then
tmp = t_1
else if (a <= 1.3d-269) then
tmp = y * (x * z)
else if (a <= 6.2d+69) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.1e+127) {
tmp = t_2;
} else if (a <= -6.7e-62) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 1.8e-299) {
tmp = t_1;
} else if (a <= 1.3e-269) {
tmp = y * (x * z);
} else if (a <= 6.2e+69) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4.1e+127: tmp = t_2 elif a <= -6.7e-62: tmp = b * ((a * i) - (z * c)) elif a <= 1.8e-299: tmp = t_1 elif a <= 1.3e-269: tmp = y * (x * z) elif a <= 6.2e+69: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4.1e+127) tmp = t_2; elseif (a <= -6.7e-62) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (a <= 1.8e-299) tmp = t_1; elseif (a <= 1.3e-269) tmp = Float64(y * Float64(x * z)); elseif (a <= 6.2e+69) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4.1e+127) tmp = t_2; elseif (a <= -6.7e-62) tmp = b * ((a * i) - (z * c)); elseif (a <= 1.8e-299) tmp = t_1; elseif (a <= 1.3e-269) tmp = y * (x * z); elseif (a <= 6.2e+69) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.1e+127], t$95$2, If[LessEqual[a, -6.7e-62], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-299], t$95$1, If[LessEqual[a, 1.3e-269], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+69], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.1 \cdot 10^{+127}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -6.7 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-269}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -4.09999999999999983e127 or 6.1999999999999997e69 < a Initial program 55.0%
Taylor expanded in y around -inf 54.0%
Simplified56.8%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
if -4.09999999999999983e127 < a < -6.69999999999999992e-62Initial program 73.3%
Taylor expanded in b around inf 53.3%
*-commutative53.3%
Simplified53.3%
if -6.69999999999999992e-62 < a < 1.8e-299 or 1.3e-269 < a < 6.1999999999999997e69Initial program 73.4%
Taylor expanded in c around inf 51.0%
*-commutative51.0%
Simplified51.0%
if 1.8e-299 < a < 1.3e-269Initial program 75.0%
Taylor expanded in y around -inf 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in i around 0 88.0%
*-commutative88.0%
associate-*l*100.0%
*-commutative100.0%
Simplified100.0%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* b (- (* z c)))))
(if (<= b -3.4e+174)
t_2
(if (<= b -1.5e+130)
t_1
(if (<= b -2.15e-23)
t_2
(if (<= b -1.4e-116)
(* t (* c j))
(if (<= b 6.5e-85)
t_1
(if (<= b 2.55e+203) t_2 (* i (* a b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * -(z * c);
double tmp;
if (b <= -3.4e+174) {
tmp = t_2;
} else if (b <= -1.5e+130) {
tmp = t_1;
} else if (b <= -2.15e-23) {
tmp = t_2;
} else if (b <= -1.4e-116) {
tmp = t * (c * j);
} else if (b <= 6.5e-85) {
tmp = t_1;
} else if (b <= 2.55e+203) {
tmp = t_2;
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * -(z * c)
if (b <= (-3.4d+174)) then
tmp = t_2
else if (b <= (-1.5d+130)) then
tmp = t_1
else if (b <= (-2.15d-23)) then
tmp = t_2
else if (b <= (-1.4d-116)) then
tmp = t * (c * j)
else if (b <= 6.5d-85) then
tmp = t_1
else if (b <= 2.55d+203) then
tmp = t_2
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * -(z * c);
double tmp;
if (b <= -3.4e+174) {
tmp = t_2;
} else if (b <= -1.5e+130) {
tmp = t_1;
} else if (b <= -2.15e-23) {
tmp = t_2;
} else if (b <= -1.4e-116) {
tmp = t * (c * j);
} else if (b <= 6.5e-85) {
tmp = t_1;
} else if (b <= 2.55e+203) {
tmp = t_2;
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = b * -(z * c) tmp = 0 if b <= -3.4e+174: tmp = t_2 elif b <= -1.5e+130: tmp = t_1 elif b <= -2.15e-23: tmp = t_2 elif b <= -1.4e-116: tmp = t * (c * j) elif b <= 6.5e-85: tmp = t_1 elif b <= 2.55e+203: tmp = t_2 else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(b * Float64(-Float64(z * c))) tmp = 0.0 if (b <= -3.4e+174) tmp = t_2; elseif (b <= -1.5e+130) tmp = t_1; elseif (b <= -2.15e-23) tmp = t_2; elseif (b <= -1.4e-116) tmp = Float64(t * Float64(c * j)); elseif (b <= 6.5e-85) tmp = t_1; elseif (b <= 2.55e+203) tmp = t_2; else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = b * -(z * c); tmp = 0.0; if (b <= -3.4e+174) tmp = t_2; elseif (b <= -1.5e+130) tmp = t_1; elseif (b <= -2.15e-23) tmp = t_2; elseif (b <= -1.4e-116) tmp = t * (c * j); elseif (b <= 6.5e-85) tmp = t_1; elseif (b <= 2.55e+203) tmp = t_2; else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[b, -3.4e+174], t$95$2, If[LessEqual[b, -1.5e+130], t$95$1, If[LessEqual[b, -2.15e-23], t$95$2, If[LessEqual[b, -1.4e-116], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-85], t$95$1, If[LessEqual[b, 2.55e+203], t$95$2, N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(-z \cdot c\right)\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{+174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{+130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.15 \cdot 10^{-23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-116}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+203}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if b < -3.4000000000000001e174 or -1.5e130 < b < -2.15000000000000001e-23 or 6.5e-85 < b < 2.5500000000000001e203Initial program 73.1%
Taylor expanded in b around inf 58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in i around 0 42.2%
neg-mul-142.2%
distribute-lft-neg-in42.2%
*-commutative42.2%
Simplified42.2%
if -3.4000000000000001e174 < b < -1.5e130 or -1.3999999999999999e-116 < b < 6.5e-85Initial program 63.9%
Taylor expanded in y around -inf 58.3%
mul-1-neg58.3%
*-commutative58.3%
distribute-rgt-neg-in58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
Simplified58.3%
Taylor expanded in i around 0 39.1%
if -2.15000000000000001e-23 < b < -1.3999999999999999e-116Initial program 58.4%
Taylor expanded in t around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
*-commutative58.4%
*-commutative58.4%
Simplified58.4%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
Simplified39.5%
if 2.5500000000000001e203 < b Initial program 60.3%
Taylor expanded in b around inf 64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in i around inf 42.6%
associate-*r*52.9%
*-commutative52.9%
Simplified52.9%
Final simplification42.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -1.3e+50)
t_2
(if (<= t -3.2e-99)
t_1
(if (<= t -5.3e-151)
(* y (- (* x z) (* i j)))
(if (<= t 2.35e+67) 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 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.3e+50) {
tmp = t_2;
} else if (t <= -3.2e-99) {
tmp = t_1;
} else if (t <= -5.3e-151) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 2.35e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t * ((c * j) - (x * a))
if (t <= (-1.3d+50)) then
tmp = t_2
else if (t <= (-3.2d-99)) then
tmp = t_1
else if (t <= (-5.3d-151)) then
tmp = y * ((x * z) - (i * j))
else if (t <= 2.35d+67) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.3e+50) {
tmp = t_2;
} else if (t <= -3.2e-99) {
tmp = t_1;
} else if (t <= -5.3e-151) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 2.35e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.3e+50: tmp = t_2 elif t <= -3.2e-99: tmp = t_1 elif t <= -5.3e-151: tmp = y * ((x * z) - (i * j)) elif t <= 2.35e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.3e+50) tmp = t_2; elseif (t <= -3.2e-99) tmp = t_1; elseif (t <= -5.3e-151) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 2.35e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.3e+50) tmp = t_2; elseif (t <= -3.2e-99) tmp = t_1; elseif (t <= -5.3e-151) tmp = y * ((x * z) - (i * j)); elseif (t <= 2.35e+67) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+50], t$95$2, If[LessEqual[t, -3.2e-99], t$95$1, If[LessEqual[t, -5.3e-151], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.35e+67], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -5.3 \cdot 10^{-151}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{+67}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.3000000000000001e50 or 2.35000000000000009e67 < t Initial program 55.6%
Taylor expanded in t around inf 66.3%
+-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
*-commutative66.3%
*-commutative66.3%
Simplified66.3%
if -1.3000000000000001e50 < t < -3.2000000000000001e-99 or -5.29999999999999978e-151 < t < 2.35000000000000009e67Initial program 75.4%
Taylor expanded in b around inf 56.3%
*-commutative56.3%
Simplified56.3%
if -3.2000000000000001e-99 < t < -5.29999999999999978e-151Initial program 79.3%
Taylor expanded in y around -inf 64.9%
mul-1-neg64.9%
*-commutative64.9%
distribute-rgt-neg-in64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
Simplified64.9%
Taylor expanded in i around 0 64.6%
associate-*r*64.6%
associate-*r*69.5%
associate-*r*69.5%
*-commutative69.5%
associate-*l*64.9%
distribute-rgt-in64.9%
+-commutative64.9%
mul-1-neg64.9%
*-commutative64.9%
unsub-neg64.9%
*-commutative64.9%
Simplified64.9%
Final simplification61.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -4.7e+184)
(* j (* t c))
(if (<= t 2.25e+24)
(* b (- (* a i) (* z c)))
(if (<= t 6.8e+205)
(* a (- (* b i) (* x t)))
(if (<= t 3.2e+243) (* t (* c j)) (* t (* a (- x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.7e+184) {
tmp = j * (t * c);
} else if (t <= 2.25e+24) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 6.8e+205) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 3.2e+243) {
tmp = t * (c * j);
} else {
tmp = t * (a * -x);
}
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 <= (-4.7d+184)) then
tmp = j * (t * c)
else if (t <= 2.25d+24) then
tmp = b * ((a * i) - (z * c))
else if (t <= 6.8d+205) then
tmp = a * ((b * i) - (x * t))
else if (t <= 3.2d+243) then
tmp = t * (c * j)
else
tmp = t * (a * -x)
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 <= -4.7e+184) {
tmp = j * (t * c);
} else if (t <= 2.25e+24) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 6.8e+205) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 3.2e+243) {
tmp = t * (c * j);
} else {
tmp = t * (a * -x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4.7e+184: tmp = j * (t * c) elif t <= 2.25e+24: tmp = b * ((a * i) - (z * c)) elif t <= 6.8e+205: tmp = a * ((b * i) - (x * t)) elif t <= 3.2e+243: tmp = t * (c * j) else: tmp = t * (a * -x) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4.7e+184) tmp = Float64(j * Float64(t * c)); elseif (t <= 2.25e+24) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (t <= 6.8e+205) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (t <= 3.2e+243) tmp = Float64(t * Float64(c * j)); else tmp = Float64(t * Float64(a * Float64(-x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4.7e+184) tmp = j * (t * c); elseif (t <= 2.25e+24) tmp = b * ((a * i) - (z * c)); elseif (t <= 6.8e+205) tmp = a * ((b * i) - (x * t)); elseif (t <= 3.2e+243) tmp = t * (c * j); else tmp = t * (a * -x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4.7e+184], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e+24], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e+205], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+243], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.7 \cdot 10^{+184}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+24}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{+205}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+243}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\end{array}
\end{array}
if t < -4.7000000000000003e184Initial program 54.5%
Taylor expanded in t around inf 78.8%
+-commutative78.8%
mul-1-neg78.8%
unsub-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in j around inf 57.5%
associate-*r*57.6%
*-commutative57.6%
associate-*r*58.1%
Simplified58.1%
if -4.7000000000000003e184 < t < 2.2500000000000001e24Initial program 74.2%
Taylor expanded in b around inf 48.7%
*-commutative48.7%
Simplified48.7%
if 2.2500000000000001e24 < t < 6.8e205Initial program 48.1%
Taylor expanded in y around -inf 53.4%
Simplified62.0%
Taylor expanded in a around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
if 6.8e205 < t < 3.20000000000000016e243Initial program 34.3%
Taylor expanded in t around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in j around inf 67.1%
*-commutative67.1%
Simplified67.1%
if 3.20000000000000016e243 < t Initial program 76.4%
Taylor expanded in t around inf 83.7%
+-commutative83.7%
mul-1-neg83.7%
unsub-neg83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in j around 0 75.9%
associate-*r*75.9%
neg-mul-175.9%
*-commutative75.9%
Simplified75.9%
Final simplification52.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -5.4e+51)
(* a (* b i))
(if (<= b -3.5e-221)
(* c (* t j))
(if (<= b 1.2e-214)
(* i (- (* y j)))
(if (<= b 2e+55) (* y (* x z)) (* i (* a b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.4e+51) {
tmp = a * (b * i);
} else if (b <= -3.5e-221) {
tmp = c * (t * j);
} else if (b <= 1.2e-214) {
tmp = i * -(y * j);
} else if (b <= 2e+55) {
tmp = y * (x * z);
} else {
tmp = i * (a * b);
}
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 <= (-5.4d+51)) then
tmp = a * (b * i)
else if (b <= (-3.5d-221)) then
tmp = c * (t * j)
else if (b <= 1.2d-214) then
tmp = i * -(y * j)
else if (b <= 2d+55) then
tmp = y * (x * z)
else
tmp = i * (a * b)
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 <= -5.4e+51) {
tmp = a * (b * i);
} else if (b <= -3.5e-221) {
tmp = c * (t * j);
} else if (b <= 1.2e-214) {
tmp = i * -(y * j);
} else if (b <= 2e+55) {
tmp = y * (x * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.4e+51: tmp = a * (b * i) elif b <= -3.5e-221: tmp = c * (t * j) elif b <= 1.2e-214: tmp = i * -(y * j) elif b <= 2e+55: tmp = y * (x * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.4e+51) tmp = Float64(a * Float64(b * i)); elseif (b <= -3.5e-221) tmp = Float64(c * Float64(t * j)); elseif (b <= 1.2e-214) tmp = Float64(i * Float64(-Float64(y * j))); elseif (b <= 2e+55) tmp = Float64(y * Float64(x * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -5.4e+51) tmp = a * (b * i); elseif (b <= -3.5e-221) tmp = c * (t * j); elseif (b <= 1.2e-214) tmp = i * -(y * j); elseif (b <= 2e+55) tmp = y * (x * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.4e+51], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-221], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-214], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 2e+55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.4 \cdot 10^{+51}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-221}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-214}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if b < -5.39999999999999983e51Initial program 64.5%
Taylor expanded in b around inf 53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in i around inf 31.6%
if -5.39999999999999983e51 < b < -3.4999999999999999e-221Initial program 68.6%
Taylor expanded in y around -inf 61.1%
Simplified72.3%
Taylor expanded in b around 0 69.0%
+-commutative69.0%
*-commutative69.0%
*-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
Simplified69.0%
Taylor expanded in c around inf 33.0%
if -3.4999999999999999e-221 < b < 1.2000000000000001e-214Initial program 65.3%
Taylor expanded in y around -inf 72.5%
mul-1-neg72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
Simplified72.5%
Taylor expanded in i around inf 45.0%
mul-1-neg45.0%
*-commutative45.0%
Simplified45.0%
if 1.2000000000000001e-214 < b < 2.00000000000000002e55Initial program 69.0%
Taylor expanded in y around -inf 44.0%
mul-1-neg44.0%
*-commutative44.0%
distribute-rgt-neg-in44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
Simplified44.0%
Taylor expanded in i around 0 31.0%
*-commutative31.0%
associate-*l*32.7%
*-commutative32.7%
Simplified32.7%
if 2.00000000000000002e55 < b Initial program 67.9%
Taylor expanded in b around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in i around inf 37.5%
associate-*r*42.1%
*-commutative42.1%
Simplified42.1%
Final simplification36.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.05e+46) (not (<= t 3.1e+67))) (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.05e+46) || !(t <= 3.1e+67)) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.05d+46)) .or. (.not. (t <= 3.1d+67))) then
tmp = t * ((c * j) - (x * a))
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.05e+46) || !(t <= 3.1e+67)) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.05e+46) or not (t <= 3.1e+67): tmp = t * ((c * j) - (x * a)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.05e+46) || !(t <= 3.1e+67)) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.05e+46) || ~((t <= 3.1e+67))) tmp = t * ((c * j) - (x * a)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.05e+46], N[Not[LessEqual[t, 3.1e+67]], $MachinePrecision]], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+46} \lor \neg \left(t \leq 3.1 \cdot 10^{+67}\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if t < -1.05e46 or 3.09999999999999996e67 < t Initial program 55.1%
Taylor expanded in t around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
if -1.05e46 < t < 3.09999999999999996e67Initial program 76.4%
Taylor expanded in b around inf 53.0%
*-commutative53.0%
Simplified53.0%
Final simplification58.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1.55e+45)
(* a (* b i))
(if (<= b -4.5e-119)
(* c (* t j))
(if (<= b 2.2e+55) (* x (* y z)) (* b (* a i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.55e+45) {
tmp = a * (b * i);
} else if (b <= -4.5e-119) {
tmp = c * (t * j);
} else if (b <= 2.2e+55) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-1.55d+45)) then
tmp = a * (b * i)
else if (b <= (-4.5d-119)) then
tmp = c * (t * j)
else if (b <= 2.2d+55) then
tmp = x * (y * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.55e+45) {
tmp = a * (b * i);
} else if (b <= -4.5e-119) {
tmp = c * (t * j);
} else if (b <= 2.2e+55) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.55e+45: tmp = a * (b * i) elif b <= -4.5e-119: tmp = c * (t * j) elif b <= 2.2e+55: tmp = x * (y * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.55e+45) tmp = Float64(a * Float64(b * i)); elseif (b <= -4.5e-119) tmp = Float64(c * Float64(t * j)); elseif (b <= 2.2e+55) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.55e+45) tmp = a * (b * i); elseif (b <= -4.5e-119) tmp = c * (t * j); elseif (b <= 2.2e+55) tmp = x * (y * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.55e+45], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.5e-119], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+55], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.55 \cdot 10^{+45}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-119}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+55}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if b < -1.54999999999999994e45Initial program 64.5%
Taylor expanded in b around inf 53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in i around inf 31.6%
if -1.54999999999999994e45 < b < -4.5000000000000003e-119Initial program 66.2%
Taylor expanded in y around -inf 63.0%
Simplified72.8%
Taylor expanded in b around 0 66.3%
+-commutative66.3%
*-commutative66.3%
*-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
Simplified66.3%
Taylor expanded in c around inf 30.9%
if -4.5000000000000003e-119 < b < 2.2000000000000001e55Initial program 68.9%
Taylor expanded in y around -inf 52.3%
mul-1-neg52.3%
*-commutative52.3%
distribute-rgt-neg-in52.3%
+-commutative52.3%
mul-1-neg52.3%
unsub-neg52.3%
Simplified52.3%
Taylor expanded in i around 0 32.8%
if 2.2000000000000001e55 < b Initial program 67.9%
Taylor expanded in b around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in i around inf 40.6%
*-commutative40.6%
Simplified40.6%
Final simplification34.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3.2e+46)
(* a (* b i))
(if (<= b -1.95e-225)
(* c (* t j))
(if (<= b 8.5e+55) (* y (* x z)) (* b (* a i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.2e+46) {
tmp = a * (b * i);
} else if (b <= -1.95e-225) {
tmp = c * (t * j);
} else if (b <= 8.5e+55) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3.2d+46)) then
tmp = a * (b * i)
else if (b <= (-1.95d-225)) then
tmp = c * (t * j)
else if (b <= 8.5d+55) then
tmp = y * (x * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.2e+46) {
tmp = a * (b * i);
} else if (b <= -1.95e-225) {
tmp = c * (t * j);
} else if (b <= 8.5e+55) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.2e+46: tmp = a * (b * i) elif b <= -1.95e-225: tmp = c * (t * j) elif b <= 8.5e+55: tmp = y * (x * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.2e+46) tmp = Float64(a * Float64(b * i)); elseif (b <= -1.95e-225) tmp = Float64(c * Float64(t * j)); elseif (b <= 8.5e+55) tmp = Float64(y * Float64(x * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.2e+46) tmp = a * (b * i); elseif (b <= -1.95e-225) tmp = c * (t * j); elseif (b <= 8.5e+55) tmp = y * (x * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.2e+46], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.95e-225], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+46}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-225}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if b < -3.1999999999999998e46Initial program 64.5%
Taylor expanded in b around inf 53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in i around inf 31.6%
if -3.1999999999999998e46 < b < -1.95e-225Initial program 67.4%
Taylor expanded in y around -inf 61.7%
Simplified72.8%
Taylor expanded in b around 0 69.5%
+-commutative69.5%
*-commutative69.5%
*-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
Simplified69.5%
Taylor expanded in c around inf 32.5%
if -1.95e-225 < b < 8.50000000000000002e55Initial program 68.5%
Taylor expanded in y around -inf 53.5%
mul-1-neg53.5%
*-commutative53.5%
distribute-rgt-neg-in53.5%
+-commutative53.5%
mul-1-neg53.5%
unsub-neg53.5%
Simplified53.5%
Taylor expanded in i around 0 31.2%
*-commutative31.2%
associate-*l*32.4%
*-commutative32.4%
Simplified32.4%
if 8.50000000000000002e55 < b Initial program 67.9%
Taylor expanded in b around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in i around inf 40.6%
*-commutative40.6%
Simplified40.6%
Final simplification34.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1.42e+45)
(* a (* b i))
(if (<= b -3.6e-224)
(* c (* t j))
(if (<= b 1.15e+55) (* y (* x z)) (* i (* a b))))))
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.42e+45) {
tmp = a * (b * i);
} else if (b <= -3.6e-224) {
tmp = c * (t * j);
} else if (b <= 1.15e+55) {
tmp = y * (x * z);
} else {
tmp = i * (a * b);
}
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.42d+45)) then
tmp = a * (b * i)
else if (b <= (-3.6d-224)) then
tmp = c * (t * j)
else if (b <= 1.15d+55) then
tmp = y * (x * z)
else
tmp = i * (a * b)
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.42e+45) {
tmp = a * (b * i);
} else if (b <= -3.6e-224) {
tmp = c * (t * j);
} else if (b <= 1.15e+55) {
tmp = y * (x * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.42e+45: tmp = a * (b * i) elif b <= -3.6e-224: tmp = c * (t * j) elif b <= 1.15e+55: tmp = y * (x * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.42e+45) tmp = Float64(a * Float64(b * i)); elseif (b <= -3.6e-224) tmp = Float64(c * Float64(t * j)); elseif (b <= 1.15e+55) tmp = Float64(y * Float64(x * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.42e+45) tmp = a * (b * i); elseif (b <= -3.6e-224) tmp = c * (t * j); elseif (b <= 1.15e+55) tmp = y * (x * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.42e+45], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-224], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+55], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.42 \cdot 10^{+45}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-224}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if b < -1.42e45Initial program 64.5%
Taylor expanded in b around inf 53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in i around inf 31.6%
if -1.42e45 < b < -3.6e-224Initial program 67.4%
Taylor expanded in y around -inf 61.7%
Simplified72.8%
Taylor expanded in b around 0 69.5%
+-commutative69.5%
*-commutative69.5%
*-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
Simplified69.5%
Taylor expanded in c around inf 32.5%
if -3.6e-224 < b < 1.14999999999999994e55Initial program 68.5%
Taylor expanded in y around -inf 53.5%
mul-1-neg53.5%
*-commutative53.5%
distribute-rgt-neg-in53.5%
+-commutative53.5%
mul-1-neg53.5%
unsub-neg53.5%
Simplified53.5%
Taylor expanded in i around 0 31.2%
*-commutative31.2%
associate-*l*32.4%
*-commutative32.4%
Simplified32.4%
if 1.14999999999999994e55 < b Initial program 67.9%
Taylor expanded in b around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in i around inf 37.5%
associate-*r*42.1%
*-commutative42.1%
Simplified42.1%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.18e-61) (not (<= a 4.2e+45))) (* b (* a i)) (* t (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.18e-61) || !(a <= 4.2e+45)) {
tmp = b * (a * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.18d-61)) .or. (.not. (a <= 4.2d+45))) then
tmp = b * (a * i)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.18e-61) || !(a <= 4.2e+45)) {
tmp = b * (a * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.18e-61) or not (a <= 4.2e+45): tmp = b * (a * i) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.18e-61) || !(a <= 4.2e+45)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.18e-61) || ~((a <= 4.2e+45))) tmp = b * (a * i); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.18e-61], N[Not[LessEqual[a, 4.2e+45]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.18 \cdot 10^{-61} \lor \neg \left(a \leq 4.2 \cdot 10^{+45}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if a < -1.1800000000000001e-61 or 4.1999999999999999e45 < a Initial program 61.2%
Taylor expanded in b around inf 48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in i around inf 34.1%
*-commutative34.1%
Simplified34.1%
if -1.1800000000000001e-61 < a < 4.1999999999999999e45Initial program 73.9%
Taylor expanded in t around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
*-commutative39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in j around inf 29.6%
*-commutative29.6%
Simplified29.6%
Final simplification31.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -3.3e-22) (* b (* a i)) (if (<= i 2.8e+57) (* c (* t j)) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3.3e-22) {
tmp = b * (a * i);
} else if (i <= 2.8e+57) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-3.3d-22)) then
tmp = b * (a * i)
else if (i <= 2.8d+57) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3.3e-22) {
tmp = b * (a * i);
} else if (i <= 2.8e+57) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -3.3e-22: tmp = b * (a * i) elif i <= 2.8e+57: tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3.3e-22) tmp = Float64(b * Float64(a * i)); elseif (i <= 2.8e+57) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -3.3e-22) tmp = b * (a * i); elseif (i <= 2.8e+57) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3.3e-22], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.8e+57], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.3 \cdot 10^{-22}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{+57}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -3.3000000000000001e-22Initial program 61.9%
Taylor expanded in b around inf 53.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in i around inf 35.4%
*-commutative35.4%
Simplified35.4%
if -3.3000000000000001e-22 < i < 2.8e57Initial program 74.6%
Taylor expanded in y around -inf 72.6%
Simplified80.4%
Taylor expanded in b around 0 66.9%
+-commutative66.9%
*-commutative66.9%
*-commutative66.9%
mul-1-neg66.9%
unsub-neg66.9%
Simplified66.9%
Taylor expanded in c around inf 25.9%
if 2.8e57 < i Initial program 57.9%
Taylor expanded in b around inf 42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in i around inf 36.4%
Final simplification30.9%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 67.3%
Taylor expanded in b around inf 41.3%
*-commutative41.3%
Simplified41.3%
Taylor expanded in i around inf 20.3%
Final simplification20.3%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 67.3%
Taylor expanded in b around inf 41.3%
*-commutative41.3%
Simplified41.3%
Taylor expanded in i around inf 21.4%
*-commutative21.4%
Simplified21.4%
Final simplification21.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023271
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))