
(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 25 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 (* x (- (* y z) (* t a))))
(t_2 (+ (+ t_1 (* b (- (* a i) (* z c)))) (* j (- (* t c) (* y i))))))
(if (<= t_2 INFINITY) 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 = (t_1 + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} 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 = x * ((y * z) - (t * a));
double t_2 = (t_1 + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
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 = (t_1 + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_2 <= math.inf: 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(Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= Inf) 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 = (t_1 + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_2 <= Inf) 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[(N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], 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 := \left(t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\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)))) < +inf.0Initial program 92.7%
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 x around inf 50.6%
*-commutative50.6%
Simplified50.6%
Final simplification83.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -6.8e-15)
t_2
(if (<= b -3.1e-126)
t_1
(if (<= b -1.16e-260)
(* i (* y (- j)))
(if (<= b 1.66e-307)
(* (* x t) (- a))
(if (<= b 5.1e-182)
(* j (* t c))
(if (<= b 8.5e-126)
(* t (* x (- a)))
(if (or (<= b 4.3e-54) (not (<= b 4.8e+40))) 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 = z * (x * y);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6.8e-15) {
tmp = t_2;
} else if (b <= -3.1e-126) {
tmp = t_1;
} else if (b <= -1.16e-260) {
tmp = i * (y * -j);
} else if (b <= 1.66e-307) {
tmp = (x * t) * -a;
} else if (b <= 5.1e-182) {
tmp = j * (t * c);
} else if (b <= 8.5e-126) {
tmp = t * (x * -a);
} else if ((b <= 4.3e-54) || !(b <= 4.8e+40)) {
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 = z * (x * y)
t_2 = b * ((a * i) - (z * c))
if (b <= (-6.8d-15)) then
tmp = t_2
else if (b <= (-3.1d-126)) then
tmp = t_1
else if (b <= (-1.16d-260)) then
tmp = i * (y * -j)
else if (b <= 1.66d-307) then
tmp = (x * t) * -a
else if (b <= 5.1d-182) then
tmp = j * (t * c)
else if (b <= 8.5d-126) then
tmp = t * (x * -a)
else if ((b <= 4.3d-54) .or. (.not. (b <= 4.8d+40))) 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 = z * (x * y);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6.8e-15) {
tmp = t_2;
} else if (b <= -3.1e-126) {
tmp = t_1;
} else if (b <= -1.16e-260) {
tmp = i * (y * -j);
} else if (b <= 1.66e-307) {
tmp = (x * t) * -a;
} else if (b <= 5.1e-182) {
tmp = j * (t * c);
} else if (b <= 8.5e-126) {
tmp = t * (x * -a);
} else if ((b <= 4.3e-54) || !(b <= 4.8e+40)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -6.8e-15: tmp = t_2 elif b <= -3.1e-126: tmp = t_1 elif b <= -1.16e-260: tmp = i * (y * -j) elif b <= 1.66e-307: tmp = (x * t) * -a elif b <= 5.1e-182: tmp = j * (t * c) elif b <= 8.5e-126: tmp = t * (x * -a) elif (b <= 4.3e-54) or not (b <= 4.8e+40): tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -6.8e-15) tmp = t_2; elseif (b <= -3.1e-126) tmp = t_1; elseif (b <= -1.16e-260) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 1.66e-307) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 5.1e-182) tmp = Float64(j * Float64(t * c)); elseif (b <= 8.5e-126) tmp = Float64(t * Float64(x * Float64(-a))); elseif ((b <= 4.3e-54) || !(b <= 4.8e+40)) 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 = z * (x * y); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -6.8e-15) tmp = t_2; elseif (b <= -3.1e-126) tmp = t_1; elseif (b <= -1.16e-260) tmp = i * (y * -j); elseif (b <= 1.66e-307) tmp = (x * t) * -a; elseif (b <= 5.1e-182) tmp = j * (t * c); elseif (b <= 8.5e-126) tmp = t * (x * -a); elseif ((b <= 4.3e-54) || ~((b <= 4.8e+40))) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.8e-15], t$95$2, If[LessEqual[b, -3.1e-126], t$95$1, If[LessEqual[b, -1.16e-260], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.66e-307], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 5.1e-182], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e-126], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 4.3e-54], N[Not[LessEqual[b, 4.8e+40]], $MachinePrecision]], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.16 \cdot 10^{-260}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 1.66 \cdot 10^{-307}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{-182}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-126}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-54} \lor \neg \left(b \leq 4.8 \cdot 10^{+40}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.8000000000000001e-15 or 8.49999999999999938e-126 < b < 4.3e-54 or 4.8e40 < b Initial program 69.8%
Taylor expanded in b around inf 59.3%
*-commutative59.3%
Simplified59.3%
if -6.8000000000000001e-15 < b < -3.1000000000000001e-126 or 4.3e-54 < b < 4.8e40Initial program 77.8%
Taylor expanded in z around inf 44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in y around inf 39.3%
*-commutative39.3%
Simplified39.3%
if -3.1000000000000001e-126 < b < -1.15999999999999994e-260Initial program 62.9%
Taylor expanded in b around 0 69.9%
Taylor expanded in i around inf 33.5%
associate-*r*33.5%
neg-mul-133.5%
Simplified33.5%
if -1.15999999999999994e-260 < b < 1.66000000000000007e-307Initial program 58.4%
Taylor expanded in t around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in j around 0 52.1%
associate-*r*52.1%
neg-mul-152.1%
Simplified52.1%
if 1.66000000000000007e-307 < b < 5.10000000000000017e-182Initial program 86.2%
Taylor expanded in j around inf 69.1%
Taylor expanded in c around inf 60.2%
*-commutative60.2%
associate-*r*64.6%
*-commutative64.6%
Simplified64.6%
if 5.10000000000000017e-182 < b < 8.49999999999999938e-126Initial program 77.4%
Taylor expanded in t around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in j around 0 45.3%
mul-1-neg45.3%
distribute-lft-neg-out45.3%
*-commutative45.3%
Simplified45.3%
Final simplification52.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))))
(t_2 (* a (- (* b i) (* x t)))))
(if (<= a -8.3e+65)
t_2
(if (<= a 6.5e-288)
t_1
(if (<= a 2.1e-240)
(* z (- (* x y) (* b c)))
(if (<= a 2.2e-16)
t_1
(if (<= a 1.8e+49)
(* i (- (* a b) (* y j)))
(if (<= a 1.42e+109) 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))) + (j * ((t * c) - (y * i)));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.3e+65) {
tmp = t_2;
} else if (a <= 6.5e-288) {
tmp = t_1;
} else if (a <= 2.1e-240) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 2.2e-16) {
tmp = t_1;
} else if (a <= 1.8e+49) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 1.42e+109) {
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))) + (j * ((t * c) - (y * i)))
t_2 = a * ((b * i) - (x * t))
if (a <= (-8.3d+65)) then
tmp = t_2
else if (a <= 6.5d-288) then
tmp = t_1
else if (a <= 2.1d-240) then
tmp = z * ((x * y) - (b * c))
else if (a <= 2.2d-16) then
tmp = t_1
else if (a <= 1.8d+49) then
tmp = i * ((a * b) - (y * j))
else if (a <= 1.42d+109) 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))) + (j * ((t * c) - (y * i)));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.3e+65) {
tmp = t_2;
} else if (a <= 6.5e-288) {
tmp = t_1;
} else if (a <= 2.1e-240) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 2.2e-16) {
tmp = t_1;
} else if (a <= 1.8e+49) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 1.42e+109) {
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))) + (j * ((t * c) - (y * i))) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -8.3e+65: tmp = t_2 elif a <= 6.5e-288: tmp = t_1 elif a <= 2.1e-240: tmp = z * ((x * y) - (b * c)) elif a <= 2.2e-16: tmp = t_1 elif a <= 1.8e+49: tmp = i * ((a * b) - (y * j)) elif a <= 1.42e+109: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -8.3e+65) tmp = t_2; elseif (a <= 6.5e-288) tmp = t_1; elseif (a <= 2.1e-240) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (a <= 2.2e-16) tmp = t_1; elseif (a <= 1.8e+49) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 1.42e+109) 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))) + (j * ((t * c) - (y * i))); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -8.3e+65) tmp = t_2; elseif (a <= 6.5e-288) tmp = t_1; elseif (a <= 2.1e-240) tmp = z * ((x * y) - (b * c)); elseif (a <= 2.2e-16) tmp = t_1; elseif (a <= 1.8e+49) tmp = i * ((a * b) - (y * j)); elseif (a <= 1.42e+109) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.3e+65], t$95$2, If[LessEqual[a, 6.5e-288], t$95$1, If[LessEqual[a, 2.1e-240], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-16], t$95$1, If[LessEqual[a, 1.8e+49], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.42e+109], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.3 \cdot 10^{+65}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-240}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+49}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 1.42 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.3000000000000004e65 or 1.4200000000000001e109 < a Initial program 61.0%
Taylor expanded in a around inf 76.0%
distribute-lft-out--76.0%
*-commutative76.0%
Simplified76.0%
if -8.3000000000000004e65 < a < 6.4999999999999999e-288 or 2.09999999999999994e-240 < a < 2.2e-16 or 1.79999999999999998e49 < a < 1.4200000000000001e109Initial program 78.1%
Taylor expanded in b around 0 74.4%
if 6.4999999999999999e-288 < a < 2.09999999999999994e-240Initial program 67.2%
Taylor expanded in z around inf 71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
if 2.2e-16 < a < 1.79999999999999998e49Initial program 66.5%
Taylor expanded in i around inf 75.0%
distribute-lft-out--75.0%
*-commutative75.0%
Simplified75.0%
Final simplification74.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))))
(t_2 (* b (- (* a i) (* z c)))))
(if (<= b -3.8e-12)
(- t_2 (* t (- (* x a) (* c j))))
(if (<= b 5.6e-83)
t_1
(if (<= b 1.4e-55)
(* i (- (* a b) (* y j)))
(if (<= b 1750000000000.0)
t_1
(if (<= b 5.2e+71)
(* i (* y (- (/ (* a b) y) j)))
(if (<= b 4.5e+152) 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))) + (j * ((t * c) - (y * i)));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.8e-12) {
tmp = t_2 - (t * ((x * a) - (c * j)));
} else if (b <= 5.6e-83) {
tmp = t_1;
} else if (b <= 1.4e-55) {
tmp = i * ((a * b) - (y * j));
} else if (b <= 1750000000000.0) {
tmp = t_1;
} else if (b <= 5.2e+71) {
tmp = i * (y * (((a * b) / y) - j));
} else if (b <= 4.5e+152) {
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))) + (j * ((t * c) - (y * i)))
t_2 = b * ((a * i) - (z * c))
if (b <= (-3.8d-12)) then
tmp = t_2 - (t * ((x * a) - (c * j)))
else if (b <= 5.6d-83) then
tmp = t_1
else if (b <= 1.4d-55) then
tmp = i * ((a * b) - (y * j))
else if (b <= 1750000000000.0d0) then
tmp = t_1
else if (b <= 5.2d+71) then
tmp = i * (y * (((a * b) / y) - j))
else if (b <= 4.5d+152) 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))) + (j * ((t * c) - (y * i)));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.8e-12) {
tmp = t_2 - (t * ((x * a) - (c * j)));
} else if (b <= 5.6e-83) {
tmp = t_1;
} else if (b <= 1.4e-55) {
tmp = i * ((a * b) - (y * j));
} else if (b <= 1750000000000.0) {
tmp = t_1;
} else if (b <= 5.2e+71) {
tmp = i * (y * (((a * b) / y) - j));
} else if (b <= 4.5e+152) {
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))) + (j * ((t * c) - (y * i))) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.8e-12: tmp = t_2 - (t * ((x * a) - (c * j))) elif b <= 5.6e-83: tmp = t_1 elif b <= 1.4e-55: tmp = i * ((a * b) - (y * j)) elif b <= 1750000000000.0: tmp = t_1 elif b <= 5.2e+71: tmp = i * (y * (((a * b) / y) - j)) elif b <= 4.5e+152: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.8e-12) tmp = Float64(t_2 - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); elseif (b <= 5.6e-83) tmp = t_1; elseif (b <= 1.4e-55) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (b <= 1750000000000.0) tmp = t_1; elseif (b <= 5.2e+71) tmp = Float64(i * Float64(y * Float64(Float64(Float64(a * b) / y) - j))); elseif (b <= 4.5e+152) 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))) + (j * ((t * c) - (y * i))); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.8e-12) tmp = t_2 - (t * ((x * a) - (c * j))); elseif (b <= 5.6e-83) tmp = t_1; elseif (b <= 1.4e-55) tmp = i * ((a * b) - (y * j)); elseif (b <= 1750000000000.0) tmp = t_1; elseif (b <= 5.2e+71) tmp = i * (y * (((a * b) / y) - j)); elseif (b <= 4.5e+152) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e-12], N[(t$95$2 - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e-83], t$95$1, If[LessEqual[b, 1.4e-55], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1750000000000.0], t$95$1, If[LessEqual[b, 5.2e+71], N[(i * N[(y * N[(N[(N[(a * b), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e+152], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{-12}:\\
\;\;\;\;t\_2 - t \cdot \left(x \cdot a - c \cdot j\right)\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{-83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-55}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 1750000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+71}:\\
\;\;\;\;i \cdot \left(y \cdot \left(\frac{a \cdot b}{y} - j\right)\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.79999999999999996e-12Initial program 75.8%
Taylor expanded in y around 0 69.4%
mul-1-neg69.4%
associate-*r*71.0%
*-commutative71.0%
associate-*l*69.3%
distribute-rgt-neg-in69.3%
mul-1-neg69.3%
*-commutative69.3%
*-commutative69.3%
associate-*r*69.4%
*-commutative69.4%
distribute-lft-in71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
if -3.79999999999999996e-12 < b < 5.6000000000000002e-83 or 1.39999999999999992e-55 < b < 1.75e12 or 5.19999999999999983e71 < b < 4.5000000000000001e152Initial program 76.5%
Taylor expanded in b around 0 79.1%
if 5.6000000000000002e-83 < b < 1.39999999999999992e-55Initial program 63.7%
Taylor expanded in i around inf 84.9%
distribute-lft-out--84.9%
*-commutative84.9%
Simplified84.9%
if 1.75e12 < b < 5.19999999999999983e71Initial program 53.5%
Taylor expanded in c around 0 53.6%
Taylor expanded in y around inf 61.9%
Simplified46.4%
Taylor expanded in i around inf 77.3%
if 4.5000000000000001e152 < b Initial program 55.7%
Taylor expanded in b around inf 71.9%
*-commutative71.9%
Simplified71.9%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -4.2e+132)
(* t (* c j))
(if (<= c -3.6e-21)
(* z (- (* b c)))
(if (<= c -1.8e-222)
(* t (* x (- a)))
(if (<= c 1.25e-247)
(* b (* a i))
(if (<= c 1.45e-184)
(* z (* x y))
(if (<= c 2.6e-150)
(* a (* b i))
(if (<= c 5e-66)
(* (* y i) (- j))
(if (<= c 3.1e-41) (* x (* y z)) (* j (* t c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4.2e+132) {
tmp = t * (c * j);
} else if (c <= -3.6e-21) {
tmp = z * -(b * c);
} else if (c <= -1.8e-222) {
tmp = t * (x * -a);
} else if (c <= 1.25e-247) {
tmp = b * (a * i);
} else if (c <= 1.45e-184) {
tmp = z * (x * y);
} else if (c <= 2.6e-150) {
tmp = a * (b * i);
} else if (c <= 5e-66) {
tmp = (y * i) * -j;
} else if (c <= 3.1e-41) {
tmp = x * (y * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-4.2d+132)) then
tmp = t * (c * j)
else if (c <= (-3.6d-21)) then
tmp = z * -(b * c)
else if (c <= (-1.8d-222)) then
tmp = t * (x * -a)
else if (c <= 1.25d-247) then
tmp = b * (a * i)
else if (c <= 1.45d-184) then
tmp = z * (x * y)
else if (c <= 2.6d-150) then
tmp = a * (b * i)
else if (c <= 5d-66) then
tmp = (y * i) * -j
else if (c <= 3.1d-41) then
tmp = x * (y * z)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4.2e+132) {
tmp = t * (c * j);
} else if (c <= -3.6e-21) {
tmp = z * -(b * c);
} else if (c <= -1.8e-222) {
tmp = t * (x * -a);
} else if (c <= 1.25e-247) {
tmp = b * (a * i);
} else if (c <= 1.45e-184) {
tmp = z * (x * y);
} else if (c <= 2.6e-150) {
tmp = a * (b * i);
} else if (c <= 5e-66) {
tmp = (y * i) * -j;
} else if (c <= 3.1e-41) {
tmp = x * (y * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4.2e+132: tmp = t * (c * j) elif c <= -3.6e-21: tmp = z * -(b * c) elif c <= -1.8e-222: tmp = t * (x * -a) elif c <= 1.25e-247: tmp = b * (a * i) elif c <= 1.45e-184: tmp = z * (x * y) elif c <= 2.6e-150: tmp = a * (b * i) elif c <= 5e-66: tmp = (y * i) * -j elif c <= 3.1e-41: tmp = x * (y * z) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.2e+132) tmp = Float64(t * Float64(c * j)); elseif (c <= -3.6e-21) tmp = Float64(z * Float64(-Float64(b * c))); elseif (c <= -1.8e-222) tmp = Float64(t * Float64(x * Float64(-a))); elseif (c <= 1.25e-247) tmp = Float64(b * Float64(a * i)); elseif (c <= 1.45e-184) tmp = Float64(z * Float64(x * y)); elseif (c <= 2.6e-150) tmp = Float64(a * Float64(b * i)); elseif (c <= 5e-66) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 3.1e-41) tmp = Float64(x * Float64(y * z)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -4.2e+132) tmp = t * (c * j); elseif (c <= -3.6e-21) tmp = z * -(b * c); elseif (c <= -1.8e-222) tmp = t * (x * -a); elseif (c <= 1.25e-247) tmp = b * (a * i); elseif (c <= 1.45e-184) tmp = z * (x * y); elseif (c <= 2.6e-150) tmp = a * (b * i); elseif (c <= 5e-66) tmp = (y * i) * -j; elseif (c <= 3.1e-41) tmp = x * (y * z); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.2e+132], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.6e-21], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[c, -1.8e-222], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.25e-247], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.45e-184], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.6e-150], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e-66], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 3.1e-41], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.2 \cdot 10^{+132}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{-21}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;c \leq -1.8 \cdot 10^{-222}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{-247}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 1.45 \cdot 10^{-184}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{-150}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-66}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -4.19999999999999987e132Initial program 56.9%
Taylor expanded in t around inf 60.4%
+-commutative60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in j around inf 39.2%
associate-*r*44.9%
*-commutative44.9%
Simplified44.9%
if -4.19999999999999987e132 < c < -3.59999999999999989e-21Initial program 58.6%
Taylor expanded in z around inf 67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in y around 0 38.8%
neg-mul-138.8%
*-commutative38.8%
distribute-rgt-neg-in38.8%
Simplified38.8%
if -3.59999999999999989e-21 < c < -1.79999999999999987e-222Initial program 87.2%
Taylor expanded in t around inf 50.8%
+-commutative50.8%
mul-1-neg50.8%
unsub-neg50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in j around 0 31.6%
mul-1-neg31.6%
distribute-lft-neg-out31.6%
*-commutative31.6%
Simplified31.6%
if -1.79999999999999987e-222 < c < 1.24999999999999994e-247Initial program 76.2%
Taylor expanded in b around inf 47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in i around inf 44.7%
*-commutative44.7%
Simplified44.7%
if 1.24999999999999994e-247 < c < 1.45000000000000007e-184Initial program 68.6%
Taylor expanded in z around inf 55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in y around inf 47.4%
*-commutative47.4%
Simplified47.4%
if 1.45000000000000007e-184 < c < 2.5999999999999998e-150Initial program 72.2%
Taylor expanded in b around inf 44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in i around inf 55.5%
*-commutative55.5%
Simplified55.5%
if 2.5999999999999998e-150 < c < 4.99999999999999962e-66Initial program 75.6%
Taylor expanded in j around inf 58.0%
Taylor expanded in c around 0 58.4%
mul-1-neg58.4%
distribute-lft-neg-out58.4%
*-commutative58.4%
Simplified58.4%
if 4.99999999999999962e-66 < c < 3.10000000000000001e-41Initial program 88.5%
Taylor expanded in z around inf 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in y around inf 59.3%
if 3.10000000000000001e-41 < c Initial program 69.6%
Taylor expanded in j around inf 57.0%
Taylor expanded in c around inf 39.9%
*-commutative39.9%
associate-*r*44.6%
*-commutative44.6%
Simplified44.6%
Final simplification43.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* x (* y z))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -2.5e+16)
t_3
(if (<= a 6.5e-288)
t_2
(if (<= a 4.5e-240)
(* z (- (* x y) (* b c)))
(if (<= a 8.5e-22)
t_2
(if (<= a 4.7e+49)
(* i (- (* a b) (* y j)))
(if (<= a 1.35e+109) (- t_1 (* a (* x t))) t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 + (x * (y * z));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.5e+16) {
tmp = t_3;
} else if (a <= 6.5e-288) {
tmp = t_2;
} else if (a <= 4.5e-240) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 8.5e-22) {
tmp = t_2;
} else if (a <= 4.7e+49) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 1.35e+109) {
tmp = t_1 - (a * (x * t));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 + (x * (y * z))
t_3 = a * ((b * i) - (x * t))
if (a <= (-2.5d+16)) then
tmp = t_3
else if (a <= 6.5d-288) then
tmp = t_2
else if (a <= 4.5d-240) then
tmp = z * ((x * y) - (b * c))
else if (a <= 8.5d-22) then
tmp = t_2
else if (a <= 4.7d+49) then
tmp = i * ((a * b) - (y * j))
else if (a <= 1.35d+109) then
tmp = t_1 - (a * (x * t))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 + (x * (y * z));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.5e+16) {
tmp = t_3;
} else if (a <= 6.5e-288) {
tmp = t_2;
} else if (a <= 4.5e-240) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 8.5e-22) {
tmp = t_2;
} else if (a <= 4.7e+49) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 1.35e+109) {
tmp = t_1 - (a * (x * t));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 + (x * (y * z)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2.5e+16: tmp = t_3 elif a <= 6.5e-288: tmp = t_2 elif a <= 4.5e-240: tmp = z * ((x * y) - (b * c)) elif a <= 8.5e-22: tmp = t_2 elif a <= 4.7e+49: tmp = i * ((a * b) - (y * j)) elif a <= 1.35e+109: tmp = t_1 - (a * (x * t)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(x * Float64(y * z))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2.5e+16) tmp = t_3; elseif (a <= 6.5e-288) tmp = t_2; elseif (a <= 4.5e-240) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (a <= 8.5e-22) tmp = t_2; elseif (a <= 4.7e+49) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 1.35e+109) tmp = Float64(t_1 - Float64(a * Float64(x * t))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t_1 + (x * (y * z)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2.5e+16) tmp = t_3; elseif (a <= 6.5e-288) tmp = t_2; elseif (a <= 4.5e-240) tmp = z * ((x * y) - (b * c)); elseif (a <= 8.5e-22) tmp = t_2; elseif (a <= 4.7e+49) tmp = i * ((a * b) - (y * j)); elseif (a <= 1.35e+109) tmp = t_1 - (a * (x * t)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.5e+16], t$95$3, If[LessEqual[a, 6.5e-288], t$95$2, If[LessEqual[a, 4.5e-240], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-22], t$95$2, If[LessEqual[a, 4.7e+49], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+109], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 + x \cdot \left(y \cdot z\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.5 \cdot 10^{+16}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-288}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-240}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-22}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{+49}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+109}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -2.5e16 or 1.35000000000000001e109 < a Initial program 61.9%
Taylor expanded in a around inf 74.6%
distribute-lft-out--74.6%
*-commutative74.6%
Simplified74.6%
if -2.5e16 < a < 6.4999999999999999e-288 or 4.5000000000000001e-240 < a < 8.5000000000000001e-22Initial program 79.5%
Taylor expanded in b around 0 74.6%
Taylor expanded in a around 0 66.5%
if 6.4999999999999999e-288 < a < 4.5000000000000001e-240Initial program 67.2%
Taylor expanded in z around inf 71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
if 8.5000000000000001e-22 < a < 4.6999999999999997e49Initial program 66.5%
Taylor expanded in i around inf 75.0%
distribute-lft-out--75.0%
*-commutative75.0%
Simplified75.0%
if 4.6999999999999997e49 < a < 1.35000000000000001e109Initial program 67.0%
Taylor expanded in b around 0 66.4%
Taylor expanded in z around 0 60.1%
+-commutative60.1%
*-commutative60.1%
*-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -1.55e+18)
t_3
(if (<= b -1.2e-232)
t_2
(if (<= b 2.8e-295)
t_1
(if (<= b 2.95e-64)
t_2
(if (<= b 4.8e+40)
(* y (- (* x z) (* i j)))
(if (or (<= b 3.1e+63) (not (<= b 4.3e+145))) t_3 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.55e+18) {
tmp = t_3;
} else if (b <= -1.2e-232) {
tmp = t_2;
} else if (b <= 2.8e-295) {
tmp = t_1;
} else if (b <= 2.95e-64) {
tmp = t_2;
} else if (b <= 4.8e+40) {
tmp = y * ((x * z) - (i * j));
} else if ((b <= 3.1e+63) || !(b <= 4.3e+145)) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t * ((c * j) - (x * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-1.55d+18)) then
tmp = t_3
else if (b <= (-1.2d-232)) then
tmp = t_2
else if (b <= 2.8d-295) then
tmp = t_1
else if (b <= 2.95d-64) then
tmp = t_2
else if (b <= 4.8d+40) then
tmp = y * ((x * z) - (i * j))
else if ((b <= 3.1d+63) .or. (.not. (b <= 4.3d+145))) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.55e+18) {
tmp = t_3;
} else if (b <= -1.2e-232) {
tmp = t_2;
} else if (b <= 2.8e-295) {
tmp = t_1;
} else if (b <= 2.95e-64) {
tmp = t_2;
} else if (b <= 4.8e+40) {
tmp = y * ((x * z) - (i * j));
} else if ((b <= 3.1e+63) || !(b <= 4.3e+145)) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t * ((c * j) - (x * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.55e+18: tmp = t_3 elif b <= -1.2e-232: tmp = t_2 elif b <= 2.8e-295: tmp = t_1 elif b <= 2.95e-64: tmp = t_2 elif b <= 4.8e+40: tmp = y * ((x * z) - (i * j)) elif (b <= 3.1e+63) or not (b <= 4.3e+145): tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.55e+18) tmp = t_3; elseif (b <= -1.2e-232) tmp = t_2; elseif (b <= 2.8e-295) tmp = t_1; elseif (b <= 2.95e-64) tmp = t_2; elseif (b <= 4.8e+40) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif ((b <= 3.1e+63) || !(b <= 4.3e+145)) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t * ((c * j) - (x * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.55e+18) tmp = t_3; elseif (b <= -1.2e-232) tmp = t_2; elseif (b <= 2.8e-295) tmp = t_1; elseif (b <= 2.95e-64) tmp = t_2; elseif (b <= 4.8e+40) tmp = y * ((x * z) - (i * j)); elseif ((b <= 3.1e+63) || ~((b <= 4.3e+145))) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e+18], t$95$3, If[LessEqual[b, -1.2e-232], t$95$2, If[LessEqual[b, 2.8e-295], t$95$1, If[LessEqual[b, 2.95e-64], t$95$2, If[LessEqual[b, 4.8e+40], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 3.1e+63], N[Not[LessEqual[b, 4.3e+145]], $MachinePrecision]], t$95$3, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{+18}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-295}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.95 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{+40}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+63} \lor \neg \left(b \leq 4.3 \cdot 10^{+145}\right):\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.55e18 or 4.8e40 < b < 3.1000000000000001e63 or 4.29999999999999998e145 < b Initial program 67.2%
Taylor expanded in b around inf 66.9%
*-commutative66.9%
Simplified66.9%
if -1.55e18 < b < -1.19999999999999999e-232 or 2.7999999999999999e-295 < b < 2.94999999999999997e-64Initial program 75.5%
Taylor expanded in t around inf 58.0%
+-commutative58.0%
mul-1-neg58.0%
unsub-neg58.0%
*-commutative58.0%
Simplified58.0%
if -1.19999999999999999e-232 < b < 2.7999999999999999e-295 or 3.1000000000000001e63 < b < 4.29999999999999998e145Initial program 69.8%
Taylor expanded in j around inf 66.0%
if 2.94999999999999997e-64 < b < 4.8e40Initial program 78.8%
Taylor expanded in y around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -1.05e+16)
t_3
(if (<= b -2.8e-232)
t_2
(if (<= b 4.9e-293)
t_1
(if (<= b 7.8e-68)
t_2
(if (<= b 2.1e+25)
t_1
(if (<= b 5.5e+71)
(* a (* b i))
(if (<= b 3.3e+146) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.05e+16) {
tmp = t_3;
} else if (b <= -2.8e-232) {
tmp = t_2;
} else if (b <= 4.9e-293) {
tmp = t_1;
} else if (b <= 7.8e-68) {
tmp = t_2;
} else if (b <= 2.1e+25) {
tmp = t_1;
} else if (b <= 5.5e+71) {
tmp = a * (b * i);
} else if (b <= 3.3e+146) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t * ((c * j) - (x * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-1.05d+16)) then
tmp = t_3
else if (b <= (-2.8d-232)) then
tmp = t_2
else if (b <= 4.9d-293) then
tmp = t_1
else if (b <= 7.8d-68) then
tmp = t_2
else if (b <= 2.1d+25) then
tmp = t_1
else if (b <= 5.5d+71) then
tmp = a * (b * i)
else if (b <= 3.3d+146) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.05e+16) {
tmp = t_3;
} else if (b <= -2.8e-232) {
tmp = t_2;
} else if (b <= 4.9e-293) {
tmp = t_1;
} else if (b <= 7.8e-68) {
tmp = t_2;
} else if (b <= 2.1e+25) {
tmp = t_1;
} else if (b <= 5.5e+71) {
tmp = a * (b * i);
} else if (b <= 3.3e+146) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t * ((c * j) - (x * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.05e+16: tmp = t_3 elif b <= -2.8e-232: tmp = t_2 elif b <= 4.9e-293: tmp = t_1 elif b <= 7.8e-68: tmp = t_2 elif b <= 2.1e+25: tmp = t_1 elif b <= 5.5e+71: tmp = a * (b * i) elif b <= 3.3e+146: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.05e+16) tmp = t_3; elseif (b <= -2.8e-232) tmp = t_2; elseif (b <= 4.9e-293) tmp = t_1; elseif (b <= 7.8e-68) tmp = t_2; elseif (b <= 2.1e+25) tmp = t_1; elseif (b <= 5.5e+71) tmp = Float64(a * Float64(b * i)); elseif (b <= 3.3e+146) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t * ((c * j) - (x * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.05e+16) tmp = t_3; elseif (b <= -2.8e-232) tmp = t_2; elseif (b <= 4.9e-293) tmp = t_1; elseif (b <= 7.8e-68) tmp = t_2; elseif (b <= 2.1e+25) tmp = t_1; elseif (b <= 5.5e+71) tmp = a * (b * i); elseif (b <= 3.3e+146) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+16], t$95$3, If[LessEqual[b, -2.8e-232], t$95$2, If[LessEqual[b, 4.9e-293], t$95$1, If[LessEqual[b, 7.8e-68], t$95$2, If[LessEqual[b, 2.1e+25], t$95$1, If[LessEqual[b, 5.5e+71], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.3e+146], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+16}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-232}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.9 \cdot 10^{-293}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+71}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+146}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -1.05e16 or 3.30000000000000016e146 < b Initial program 67.2%
Taylor expanded in b around inf 65.9%
*-commutative65.9%
Simplified65.9%
if -1.05e16 < b < -2.79999999999999993e-232 or 4.9e-293 < b < 7.80000000000000064e-68Initial program 75.2%
Taylor expanded in t around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
Simplified57.5%
if -2.79999999999999993e-232 < b < 4.9e-293 or 7.80000000000000064e-68 < b < 2.0999999999999999e25 or 5.5e71 < b < 3.30000000000000016e146Initial program 77.3%
Taylor expanded in j around inf 61.9%
if 2.0999999999999999e25 < b < 5.5e71Initial program 49.7%
Taylor expanded in b around inf 58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in i around inf 58.8%
*-commutative58.8%
Simplified58.8%
Final simplification61.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= c -9.2e+127)
(* t (- (* c j) (* x a)))
(if (<= c -4.2e-21)
(* z (- (* x y) (* b c)))
(if (<= c -8.3e-252)
(* a (- (* b i) (* x t)))
(if (<= c -1.7e-301)
(* y (- (* x z) (* i j)))
(if (<= c 3.4e-206)
t_1
(if (<= c 4e-66)
(* i (- (* a b) (* y j)))
(if (<= c 3.9e-29) t_1 (* c (- (* t j) (* z b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (c <= -9.2e+127) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -4.2e-21) {
tmp = z * ((x * y) - (b * c));
} else if (c <= -8.3e-252) {
tmp = a * ((b * i) - (x * t));
} else if (c <= -1.7e-301) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.4e-206) {
tmp = t_1;
} else if (c <= 4e-66) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 3.9e-29) {
tmp = t_1;
} else {
tmp = 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 = x * ((y * z) - (t * a))
if (c <= (-9.2d+127)) then
tmp = t * ((c * j) - (x * a))
else if (c <= (-4.2d-21)) then
tmp = z * ((x * y) - (b * c))
else if (c <= (-8.3d-252)) then
tmp = a * ((b * i) - (x * t))
else if (c <= (-1.7d-301)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 3.4d-206) then
tmp = t_1
else if (c <= 4d-66) then
tmp = i * ((a * b) - (y * j))
else if (c <= 3.9d-29) then
tmp = t_1
else
tmp = 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 = x * ((y * z) - (t * a));
double tmp;
if (c <= -9.2e+127) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -4.2e-21) {
tmp = z * ((x * y) - (b * c));
} else if (c <= -8.3e-252) {
tmp = a * ((b * i) - (x * t));
} else if (c <= -1.7e-301) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.4e-206) {
tmp = t_1;
} else if (c <= 4e-66) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 3.9e-29) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if c <= -9.2e+127: tmp = t * ((c * j) - (x * a)) elif c <= -4.2e-21: tmp = z * ((x * y) - (b * c)) elif c <= -8.3e-252: tmp = a * ((b * i) - (x * t)) elif c <= -1.7e-301: tmp = y * ((x * z) - (i * j)) elif c <= 3.4e-206: tmp = t_1 elif c <= 4e-66: tmp = i * ((a * b) - (y * j)) elif c <= 3.9e-29: tmp = t_1 else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (c <= -9.2e+127) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= -4.2e-21) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (c <= -8.3e-252) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= -1.7e-301) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 3.4e-206) tmp = t_1; elseif (c <= 4e-66) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= 3.9e-29) tmp = t_1; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (c <= -9.2e+127) tmp = t * ((c * j) - (x * a)); elseif (c <= -4.2e-21) tmp = z * ((x * y) - (b * c)); elseif (c <= -8.3e-252) tmp = a * ((b * i) - (x * t)); elseif (c <= -1.7e-301) tmp = y * ((x * z) - (i * j)); elseif (c <= 3.4e-206) tmp = t_1; elseif (c <= 4e-66) tmp = i * ((a * b) - (y * j)); elseif (c <= 3.9e-29) tmp = t_1; else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.2e+127], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.2e-21], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.3e-252], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.7e-301], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.4e-206], t$95$1, If[LessEqual[c, 4e-66], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.9e-29], t$95$1, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;c \leq -9.2 \cdot 10^{+127}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{-21}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;c \leq -8.3 \cdot 10^{-252}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-301}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{-206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{-66}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if c < -9.2000000000000007e127Initial program 55.2%
Taylor expanded in t around inf 61.6%
+-commutative61.6%
mul-1-neg61.6%
unsub-neg61.6%
*-commutative61.6%
Simplified61.6%
if -9.2000000000000007e127 < c < -4.20000000000000025e-21Initial program 61.1%
Taylor expanded in z around inf 70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
if -4.20000000000000025e-21 < c < -8.29999999999999968e-252Initial program 87.8%
Taylor expanded in a around inf 58.0%
distribute-lft-out--58.0%
*-commutative58.0%
Simplified58.0%
if -8.29999999999999968e-252 < c < -1.7000000000000001e-301Initial program 38.9%
Taylor expanded in y around inf 73.4%
+-commutative73.4%
mul-1-neg73.4%
unsub-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
if -1.7000000000000001e-301 < c < 3.39999999999999985e-206 or 3.9999999999999999e-66 < c < 3.8999999999999998e-29Initial program 90.9%
Taylor expanded in x around inf 64.5%
*-commutative64.5%
Simplified64.5%
if 3.39999999999999985e-206 < c < 3.9999999999999999e-66Initial program 67.2%
Taylor expanded in i around inf 78.0%
distribute-lft-out--78.0%
*-commutative78.0%
Simplified78.0%
if 3.8999999999999998e-29 < c Initial program 69.2%
Taylor expanded in c around inf 60.8%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1)))
(if (<= a -1.7e+66)
(* a (- (* b i) (* x t)))
(if (<= a 6.5e-288)
t_2
(if (<= a 1.95e-235)
(- (* b (- (* a i) (* z c))) (* t (- (* x a) (* c j))))
(if (<= a 1e-34) t_2 (+ (- t_1 (* a (* x t))) (* a (* b i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double tmp;
if (a <= -1.7e+66) {
tmp = a * ((b * i) - (x * t));
} else if (a <= 6.5e-288) {
tmp = t_2;
} else if (a <= 1.95e-235) {
tmp = (b * ((a * i) - (z * c))) - (t * ((x * a) - (c * j)));
} else if (a <= 1e-34) {
tmp = t_2;
} else {
tmp = (t_1 - (a * (x * t))) + (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = (x * ((y * z) - (t * a))) + t_1
if (a <= (-1.7d+66)) then
tmp = a * ((b * i) - (x * t))
else if (a <= 6.5d-288) then
tmp = t_2
else if (a <= 1.95d-235) then
tmp = (b * ((a * i) - (z * c))) - (t * ((x * a) - (c * j)))
else if (a <= 1d-34) then
tmp = t_2
else
tmp = (t_1 - (a * (x * t))) + (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 t_1 = j * ((t * c) - (y * i));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double tmp;
if (a <= -1.7e+66) {
tmp = a * ((b * i) - (x * t));
} else if (a <= 6.5e-288) {
tmp = t_2;
} else if (a <= 1.95e-235) {
tmp = (b * ((a * i) - (z * c))) - (t * ((x * a) - (c * j)));
} else if (a <= 1e-34) {
tmp = t_2;
} else {
tmp = (t_1 - (a * (x * t))) + (a * (b * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = (x * ((y * z) - (t * a))) + t_1 tmp = 0 if a <= -1.7e+66: tmp = a * ((b * i) - (x * t)) elif a <= 6.5e-288: tmp = t_2 elif a <= 1.95e-235: tmp = (b * ((a * i) - (z * c))) - (t * ((x * a) - (c * j))) elif a <= 1e-34: tmp = t_2 else: tmp = (t_1 - (a * (x * t))) + (a * (b * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) tmp = 0.0 if (a <= -1.7e+66) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (a <= 6.5e-288) tmp = t_2; elseif (a <= 1.95e-235) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); elseif (a <= 1e-34) tmp = t_2; else tmp = Float64(Float64(t_1 - Float64(a * Float64(x * t))) + Float64(a * Float64(b * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = (x * ((y * z) - (t * a))) + t_1; tmp = 0.0; if (a <= -1.7e+66) tmp = a * ((b * i) - (x * t)); elseif (a <= 6.5e-288) tmp = t_2; elseif (a <= 1.95e-235) tmp = (b * ((a * i) - (z * c))) - (t * ((x * a) - (c * j))); elseif (a <= 1e-34) tmp = t_2; else tmp = (t_1 - (a * (x * t))) + (a * (b * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[a, -1.7e+66], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-288], t$95$2, If[LessEqual[a, 1.95e-235], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e-34], t$95$2, N[(N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+66}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-288}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{-235}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
\mathbf{elif}\;a \leq 10^{-34}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(t\_1 - a \cdot \left(x \cdot t\right)\right) + a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -1.70000000000000015e66Initial program 59.3%
Taylor expanded in a around inf 81.8%
distribute-lft-out--81.8%
*-commutative81.8%
Simplified81.8%
if -1.70000000000000015e66 < a < 6.4999999999999999e-288 or 1.94999999999999985e-235 < a < 9.99999999999999928e-35Initial program 79.5%
Taylor expanded in b around 0 75.4%
if 6.4999999999999999e-288 < a < 1.94999999999999985e-235Initial program 67.2%
Taylor expanded in y around 0 67.3%
mul-1-neg67.3%
associate-*r*74.3%
*-commutative74.3%
associate-*l*74.3%
distribute-rgt-neg-in74.3%
mul-1-neg74.3%
*-commutative74.3%
*-commutative74.3%
associate-*r*74.3%
*-commutative74.3%
distribute-lft-in74.3%
+-commutative74.3%
mul-1-neg74.3%
unsub-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
if 9.99999999999999928e-35 < a Initial program 63.9%
Taylor expanded in z around 0 68.8%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (+ (* j (- (* t c) (* y i))) (* x (* y z))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -4e+16)
t_3
(if (<= a 5.6e-288)
t_2
(if (<= a 1.15e-240)
t_1
(if (<= a 7.6e-25)
t_2
(if (<= a 5.4e+76)
(* i (- (* a b) (* y j)))
(if (<= a 3.3e+103) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = (j * ((t * c) - (y * i))) + (x * (y * z));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4e+16) {
tmp = t_3;
} else if (a <= 5.6e-288) {
tmp = t_2;
} else if (a <= 1.15e-240) {
tmp = t_1;
} else if (a <= 7.6e-25) {
tmp = t_2;
} else if (a <= 5.4e+76) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 3.3e+103) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = (j * ((t * c) - (y * i))) + (x * (y * z))
t_3 = a * ((b * i) - (x * t))
if (a <= (-4d+16)) then
tmp = t_3
else if (a <= 5.6d-288) then
tmp = t_2
else if (a <= 1.15d-240) then
tmp = t_1
else if (a <= 7.6d-25) then
tmp = t_2
else if (a <= 5.4d+76) then
tmp = i * ((a * b) - (y * j))
else if (a <= 3.3d+103) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = (j * ((t * c) - (y * i))) + (x * (y * z));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4e+16) {
tmp = t_3;
} else if (a <= 5.6e-288) {
tmp = t_2;
} else if (a <= 1.15e-240) {
tmp = t_1;
} else if (a <= 7.6e-25) {
tmp = t_2;
} else if (a <= 5.4e+76) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 3.3e+103) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = (j * ((t * c) - (y * i))) + (x * (y * z)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4e+16: tmp = t_3 elif a <= 5.6e-288: tmp = t_2 elif a <= 1.15e-240: tmp = t_1 elif a <= 7.6e-25: tmp = t_2 elif a <= 5.4e+76: tmp = i * ((a * b) - (y * j)) elif a <= 3.3e+103: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4e+16) tmp = t_3; elseif (a <= 5.6e-288) tmp = t_2; elseif (a <= 1.15e-240) tmp = t_1; elseif (a <= 7.6e-25) tmp = t_2; elseif (a <= 5.4e+76) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 3.3e+103) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = (j * ((t * c) - (y * i))) + (x * (y * z)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4e+16) tmp = t_3; elseif (a <= 5.6e-288) tmp = t_2; elseif (a <= 1.15e-240) tmp = t_1; elseif (a <= 7.6e-25) tmp = t_2; elseif (a <= 5.4e+76) tmp = i * ((a * b) - (y * j)); elseif (a <= 3.3e+103) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4e+16], t$95$3, If[LessEqual[a, 5.6e-288], t$95$2, If[LessEqual[a, 1.15e-240], t$95$1, If[LessEqual[a, 7.6e-25], t$95$2, If[LessEqual[a, 5.4e+76], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e+103], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4 \cdot 10^{+16}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-288}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-240}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{-25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{+76}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -4e16 or 3.30000000000000009e103 < a Initial program 62.8%
Taylor expanded in a around inf 74.1%
distribute-lft-out--74.1%
*-commutative74.1%
Simplified74.1%
if -4e16 < a < 5.5999999999999999e-288 or 1.14999999999999996e-240 < a < 7.5999999999999996e-25Initial program 79.5%
Taylor expanded in b around 0 74.6%
Taylor expanded in a around 0 66.5%
if 5.5999999999999999e-288 < a < 1.14999999999999996e-240 or 5.3999999999999998e76 < a < 3.30000000000000009e103Initial program 67.4%
Taylor expanded in z around inf 70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
if 7.5999999999999996e-25 < a < 5.3999999999999998e76Initial program 62.2%
Taylor expanded in i around inf 69.1%
distribute-lft-out--69.1%
*-commutative69.1%
Simplified69.1%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= x -1.22e+135)
(* z (* x y))
(if (<= x -4e-78)
(* (* y i) (- j))
(if (<= x 1.42e-238)
t_1
(if (<= x 3.9e-141)
(* c (* t j))
(if (<= x 1950000000000.0)
(* a (* b i))
(if (<= x 3.25e+94) t_1 (* x (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (x <= -1.22e+135) {
tmp = z * (x * y);
} else if (x <= -4e-78) {
tmp = (y * i) * -j;
} else if (x <= 1.42e-238) {
tmp = t_1;
} else if (x <= 3.9e-141) {
tmp = c * (t * j);
} else if (x <= 1950000000000.0) {
tmp = a * (b * i);
} else if (x <= 3.25e+94) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (x <= (-1.22d+135)) then
tmp = z * (x * y)
else if (x <= (-4d-78)) then
tmp = (y * i) * -j
else if (x <= 1.42d-238) then
tmp = t_1
else if (x <= 3.9d-141) then
tmp = c * (t * j)
else if (x <= 1950000000000.0d0) then
tmp = a * (b * i)
else if (x <= 3.25d+94) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (x <= -1.22e+135) {
tmp = z * (x * y);
} else if (x <= -4e-78) {
tmp = (y * i) * -j;
} else if (x <= 1.42e-238) {
tmp = t_1;
} else if (x <= 3.9e-141) {
tmp = c * (t * j);
} else if (x <= 1950000000000.0) {
tmp = a * (b * i);
} else if (x <= 3.25e+94) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if x <= -1.22e+135: tmp = z * (x * y) elif x <= -4e-78: tmp = (y * i) * -j elif x <= 1.42e-238: tmp = t_1 elif x <= 3.9e-141: tmp = c * (t * j) elif x <= 1950000000000.0: tmp = a * (b * i) elif x <= 3.25e+94: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (x <= -1.22e+135) tmp = Float64(z * Float64(x * y)); elseif (x <= -4e-78) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (x <= 1.42e-238) tmp = t_1; elseif (x <= 3.9e-141) tmp = Float64(c * Float64(t * j)); elseif (x <= 1950000000000.0) tmp = Float64(a * Float64(b * i)); elseif (x <= 3.25e+94) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (x <= -1.22e+135) tmp = z * (x * y); elseif (x <= -4e-78) tmp = (y * i) * -j; elseif (x <= 1.42e-238) tmp = t_1; elseif (x <= 3.9e-141) tmp = c * (t * j); elseif (x <= 1950000000000.0) tmp = a * (b * i); elseif (x <= 3.25e+94) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.22e+135], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4e-78], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[x, 1.42e-238], t$95$1, If[LessEqual[x, 3.9e-141], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1950000000000.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.25e+94], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;x \leq -1.22 \cdot 10^{+135}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-78}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;x \leq 1.42 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{-141}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 1950000000000:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 3.25 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -1.21999999999999996e135Initial program 58.5%
Taylor expanded in z around inf 38.8%
*-commutative38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in y around inf 30.8%
*-commutative30.8%
Simplified30.8%
if -1.21999999999999996e135 < x < -4e-78Initial program 73.7%
Taylor expanded in j around inf 50.3%
Taylor expanded in c around 0 31.1%
mul-1-neg31.1%
distribute-lft-neg-out31.1%
*-commutative31.1%
Simplified31.1%
if -4e-78 < x < 1.4199999999999999e-238 or 1.95e12 < x < 3.24999999999999988e94Initial program 74.8%
Taylor expanded in c around inf 53.7%
Taylor expanded in j around 0 36.8%
neg-mul-136.8%
distribute-lft-neg-in36.8%
*-commutative36.8%
Simplified36.8%
if 1.4199999999999999e-238 < x < 3.8999999999999997e-141Initial program 83.6%
Taylor expanded in t around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in j around inf 59.3%
if 3.8999999999999997e-141 < x < 1.95e12Initial program 73.6%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in i around inf 37.7%
*-commutative37.7%
Simplified37.7%
if 3.24999999999999988e94 < x Initial program 62.8%
Taylor expanded in z around inf 45.2%
*-commutative45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in y around inf 45.1%
Final simplification38.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= x -8e+73)
(* t (* x (- a)))
(if (<= x -3.1e-78)
(* (* y i) (- j))
(if (<= x 8.5e-239)
t_1
(if (<= x 1.08e-134)
(* c (* t j))
(if (<= x 280000000.0)
(* a (* b i))
(if (<= x 9.2e+94) t_1 (* x (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (x <= -8e+73) {
tmp = t * (x * -a);
} else if (x <= -3.1e-78) {
tmp = (y * i) * -j;
} else if (x <= 8.5e-239) {
tmp = t_1;
} else if (x <= 1.08e-134) {
tmp = c * (t * j);
} else if (x <= 280000000.0) {
tmp = a * (b * i);
} else if (x <= 9.2e+94) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (x <= (-8d+73)) then
tmp = t * (x * -a)
else if (x <= (-3.1d-78)) then
tmp = (y * i) * -j
else if (x <= 8.5d-239) then
tmp = t_1
else if (x <= 1.08d-134) then
tmp = c * (t * j)
else if (x <= 280000000.0d0) then
tmp = a * (b * i)
else if (x <= 9.2d+94) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (x <= -8e+73) {
tmp = t * (x * -a);
} else if (x <= -3.1e-78) {
tmp = (y * i) * -j;
} else if (x <= 8.5e-239) {
tmp = t_1;
} else if (x <= 1.08e-134) {
tmp = c * (t * j);
} else if (x <= 280000000.0) {
tmp = a * (b * i);
} else if (x <= 9.2e+94) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if x <= -8e+73: tmp = t * (x * -a) elif x <= -3.1e-78: tmp = (y * i) * -j elif x <= 8.5e-239: tmp = t_1 elif x <= 1.08e-134: tmp = c * (t * j) elif x <= 280000000.0: tmp = a * (b * i) elif x <= 9.2e+94: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (x <= -8e+73) tmp = Float64(t * Float64(x * Float64(-a))); elseif (x <= -3.1e-78) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (x <= 8.5e-239) tmp = t_1; elseif (x <= 1.08e-134) tmp = Float64(c * Float64(t * j)); elseif (x <= 280000000.0) tmp = Float64(a * Float64(b * i)); elseif (x <= 9.2e+94) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (x <= -8e+73) tmp = t * (x * -a); elseif (x <= -3.1e-78) tmp = (y * i) * -j; elseif (x <= 8.5e-239) tmp = t_1; elseif (x <= 1.08e-134) tmp = c * (t * j); elseif (x <= 280000000.0) tmp = a * (b * i); elseif (x <= 9.2e+94) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8e+73], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.1e-78], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[x, 8.5e-239], t$95$1, If[LessEqual[x, 1.08e-134], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 280000000.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e+94], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;x \leq -8 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-78}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-239}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-134}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 280000000:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -7.99999999999999986e73Initial program 67.4%
Taylor expanded in t around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in j around 0 43.2%
mul-1-neg43.2%
distribute-lft-neg-out43.2%
*-commutative43.2%
Simplified43.2%
if -7.99999999999999986e73 < x < -3.10000000000000018e-78Initial program 71.4%
Taylor expanded in j around inf 58.2%
Taylor expanded in c around 0 34.9%
mul-1-neg34.9%
distribute-lft-neg-out34.9%
*-commutative34.9%
Simplified34.9%
if -3.10000000000000018e-78 < x < 8.49999999999999958e-239 or 2.8e8 < x < 9.1999999999999999e94Initial program 74.8%
Taylor expanded in c around inf 53.7%
Taylor expanded in j around 0 36.8%
neg-mul-136.8%
distribute-lft-neg-in36.8%
*-commutative36.8%
Simplified36.8%
if 8.49999999999999958e-239 < x < 1.07999999999999999e-134Initial program 83.6%
Taylor expanded in t around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in j around inf 59.3%
if 1.07999999999999999e-134 < x < 2.8e8Initial program 73.6%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in i around inf 37.7%
*-commutative37.7%
Simplified37.7%
if 9.1999999999999999e94 < x Initial program 62.8%
Taylor expanded in z around inf 45.2%
*-commutative45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in y around inf 45.1%
Final simplification41.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -4.2e+132)
(* t (* c j))
(if (<= c -3.15e-21)
(* z (- (* b c)))
(if (<= c -3e-231)
(* (* x t) (- a))
(if (<= c 1.95e-153)
(* b (* a i))
(if (<= c 3.9e-66)
(* (* y i) (- j))
(if (<= c 3.6e-39) (* x (* y z)) (* j (* t c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4.2e+132) {
tmp = t * (c * j);
} else if (c <= -3.15e-21) {
tmp = z * -(b * c);
} else if (c <= -3e-231) {
tmp = (x * t) * -a;
} else if (c <= 1.95e-153) {
tmp = b * (a * i);
} else if (c <= 3.9e-66) {
tmp = (y * i) * -j;
} else if (c <= 3.6e-39) {
tmp = x * (y * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-4.2d+132)) then
tmp = t * (c * j)
else if (c <= (-3.15d-21)) then
tmp = z * -(b * c)
else if (c <= (-3d-231)) then
tmp = (x * t) * -a
else if (c <= 1.95d-153) then
tmp = b * (a * i)
else if (c <= 3.9d-66) then
tmp = (y * i) * -j
else if (c <= 3.6d-39) then
tmp = x * (y * z)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4.2e+132) {
tmp = t * (c * j);
} else if (c <= -3.15e-21) {
tmp = z * -(b * c);
} else if (c <= -3e-231) {
tmp = (x * t) * -a;
} else if (c <= 1.95e-153) {
tmp = b * (a * i);
} else if (c <= 3.9e-66) {
tmp = (y * i) * -j;
} else if (c <= 3.6e-39) {
tmp = x * (y * z);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4.2e+132: tmp = t * (c * j) elif c <= -3.15e-21: tmp = z * -(b * c) elif c <= -3e-231: tmp = (x * t) * -a elif c <= 1.95e-153: tmp = b * (a * i) elif c <= 3.9e-66: tmp = (y * i) * -j elif c <= 3.6e-39: tmp = x * (y * z) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.2e+132) tmp = Float64(t * Float64(c * j)); elseif (c <= -3.15e-21) tmp = Float64(z * Float64(-Float64(b * c))); elseif (c <= -3e-231) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (c <= 1.95e-153) tmp = Float64(b * Float64(a * i)); elseif (c <= 3.9e-66) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 3.6e-39) tmp = Float64(x * Float64(y * z)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -4.2e+132) tmp = t * (c * j); elseif (c <= -3.15e-21) tmp = z * -(b * c); elseif (c <= -3e-231) tmp = (x * t) * -a; elseif (c <= 1.95e-153) tmp = b * (a * i); elseif (c <= 3.9e-66) tmp = (y * i) * -j; elseif (c <= 3.6e-39) tmp = x * (y * z); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.2e+132], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.15e-21], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[c, -3e-231], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[c, 1.95e-153], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.9e-66], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 3.6e-39], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.2 \cdot 10^{+132}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq -3.15 \cdot 10^{-21}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;c \leq -3 \cdot 10^{-231}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;c \leq 1.95 \cdot 10^{-153}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-66}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-39}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -4.19999999999999987e132Initial program 56.9%
Taylor expanded in t around inf 60.4%
+-commutative60.4%
mul-1-neg60.4%
unsub-neg60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in j around inf 39.2%
associate-*r*44.9%
*-commutative44.9%
Simplified44.9%
if -4.19999999999999987e132 < c < -3.15e-21Initial program 58.6%
Taylor expanded in z around inf 67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in y around 0 38.8%
neg-mul-138.8%
*-commutative38.8%
distribute-rgt-neg-in38.8%
Simplified38.8%
if -3.15e-21 < c < -3.0000000000000003e-231Initial program 88.7%
Taylor expanded in t around inf 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in j around 0 34.8%
associate-*r*34.8%
neg-mul-134.8%
Simplified34.8%
if -3.0000000000000003e-231 < c < 1.9500000000000001e-153Initial program 71.5%
Taylor expanded in b around inf 40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in i around inf 36.3%
*-commutative36.3%
Simplified36.3%
if 1.9500000000000001e-153 < c < 3.89999999999999983e-66Initial program 75.6%
Taylor expanded in j around inf 58.0%
Taylor expanded in c around 0 58.4%
mul-1-neg58.4%
distribute-lft-neg-out58.4%
*-commutative58.4%
Simplified58.4%
if 3.89999999999999983e-66 < c < 3.6000000000000001e-39Initial program 88.5%
Taylor expanded in z around inf 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in y around inf 59.3%
if 3.6000000000000001e-39 < c Initial program 69.6%
Taylor expanded in j around inf 57.0%
Taylor expanded in c around inf 39.9%
*-commutative39.9%
associate-*r*44.6%
*-commutative44.6%
Simplified44.6%
Final simplification42.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.8e+23)
t_2
(if (<= b -7.5e-231)
t_1
(if (<= b 1.1e-297)
(* j (- (* t c) (* y i)))
(if (<= b 7.2e-39)
t_1
(if (<= b 5.2e+40) (* x (- (* y z) (* t a))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.8e+23) {
tmp = t_2;
} else if (b <= -7.5e-231) {
tmp = t_1;
} else if (b <= 1.1e-297) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 7.2e-39) {
tmp = t_1;
} else if (b <= 5.2e+40) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.8d+23)) then
tmp = t_2
else if (b <= (-7.5d-231)) then
tmp = t_1
else if (b <= 1.1d-297) then
tmp = j * ((t * c) - (y * i))
else if (b <= 7.2d-39) then
tmp = t_1
else if (b <= 5.2d+40) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.8e+23) {
tmp = t_2;
} else if (b <= -7.5e-231) {
tmp = t_1;
} else if (b <= 1.1e-297) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 7.2e-39) {
tmp = t_1;
} else if (b <= 5.2e+40) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.8e+23: tmp = t_2 elif b <= -7.5e-231: tmp = t_1 elif b <= 1.1e-297: tmp = j * ((t * c) - (y * i)) elif b <= 7.2e-39: tmp = t_1 elif b <= 5.2e+40: tmp = x * ((y * z) - (t * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(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.8e+23) tmp = t_2; elseif (b <= -7.5e-231) tmp = t_1; elseif (b <= 1.1e-297) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 7.2e-39) tmp = t_1; elseif (b <= 5.2e+40) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.8e+23) tmp = t_2; elseif (b <= -7.5e-231) tmp = t_1; elseif (b <= 1.1e-297) tmp = j * ((t * c) - (y * i)); elseif (b <= 7.2e-39) tmp = t_1; elseif (b <= 5.2e+40) tmp = x * ((y * z) - (t * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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.8e+23], t$95$2, If[LessEqual[b, -7.5e-231], t$95$1, If[LessEqual[b, 1.1e-297], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-39], t$95$1, If[LessEqual[b, 5.2e+40], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\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.8 \cdot 10^{+23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-231}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-297}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.7999999999999999e23 or 5.2000000000000001e40 < b Initial program 68.5%
Taylor expanded in b around inf 62.3%
*-commutative62.3%
Simplified62.3%
if -1.7999999999999999e23 < b < -7.5000000000000001e-231 or 1.0999999999999999e-297 < b < 7.2000000000000001e-39Initial program 74.6%
Taylor expanded in t around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
if -7.5000000000000001e-231 < b < 1.0999999999999999e-297Initial program 65.5%
Taylor expanded in j around inf 66.2%
if 7.2000000000000001e-39 < b < 5.2000000000000001e40Initial program 86.9%
Taylor expanded in x around inf 53.1%
*-commutative53.1%
Simplified53.1%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -1.4e-55)
t_1
(if (<= c 2e-152)
(* b (- (* a i) (* z c)))
(if (<= c 4.5e-66)
(* (* y i) (- j))
(if (<= c 1.3e-38) (* x (* y 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.4e-55) {
tmp = t_1;
} else if (c <= 2e-152) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 4.5e-66) {
tmp = (y * i) * -j;
} else if (c <= 1.3e-38) {
tmp = x * (y * 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 = c * ((t * j) - (z * b))
if (c <= (-1.4d-55)) then
tmp = t_1
else if (c <= 2d-152) then
tmp = b * ((a * i) - (z * c))
else if (c <= 4.5d-66) then
tmp = (y * i) * -j
else if (c <= 1.3d-38) then
tmp = x * (y * 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.4e-55) {
tmp = t_1;
} else if (c <= 2e-152) {
tmp = b * ((a * i) - (z * c));
} else if (c <= 4.5e-66) {
tmp = (y * i) * -j;
} else if (c <= 1.3e-38) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.4e-55: tmp = t_1 elif c <= 2e-152: tmp = b * ((a * i) - (z * c)) elif c <= 4.5e-66: tmp = (y * i) * -j elif c <= 1.3e-38: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.4e-55) tmp = t_1; elseif (c <= 2e-152) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (c <= 4.5e-66) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 1.3e-38) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.4e-55) tmp = t_1; elseif (c <= 2e-152) tmp = b * ((a * i) - (z * c)); elseif (c <= 4.5e-66) tmp = (y * i) * -j; elseif (c <= 1.3e-38) tmp = x * (y * 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.4e-55], t$95$1, If[LessEqual[c, 2e-152], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.5e-66], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 1.3e-38], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.4 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-152}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-66}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-38}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.39999999999999992e-55 or 1.30000000000000005e-38 < c Initial program 65.9%
Taylor expanded in c around inf 55.2%
if -1.39999999999999992e-55 < c < 2.00000000000000013e-152Initial program 78.2%
Taylor expanded in b around inf 37.1%
*-commutative37.1%
Simplified37.1%
if 2.00000000000000013e-152 < c < 4.4999999999999998e-66Initial program 75.6%
Taylor expanded in j around inf 58.0%
Taylor expanded in c around 0 58.4%
mul-1-neg58.4%
distribute-lft-neg-out58.4%
*-commutative58.4%
Simplified58.4%
if 4.4999999999999998e-66 < c < 1.30000000000000005e-38Initial program 88.5%
Taylor expanded in z around inf 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in y around inf 59.3%
Final simplification49.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -2.1e-11)
t_2
(if (<= b 2.9e+25)
t_1
(if (<= b 5.2e+71) (* a (* b i)) (if (<= b 4.8e+145) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.1e-11) {
tmp = t_2;
} else if (b <= 2.9e+25) {
tmp = t_1;
} else if (b <= 5.2e+71) {
tmp = a * (b * i);
} else if (b <= 4.8e+145) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-2.1d-11)) then
tmp = t_2
else if (b <= 2.9d+25) then
tmp = t_1
else if (b <= 5.2d+71) then
tmp = a * (b * i)
else if (b <= 4.8d+145) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.1e-11) {
tmp = t_2;
} else if (b <= 2.9e+25) {
tmp = t_1;
} else if (b <= 5.2e+71) {
tmp = a * (b * i);
} else if (b <= 4.8e+145) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.1e-11: tmp = t_2 elif b <= 2.9e+25: tmp = t_1 elif b <= 5.2e+71: tmp = a * (b * i) elif b <= 4.8e+145: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.1e-11) tmp = t_2; elseif (b <= 2.9e+25) tmp = t_1; elseif (b <= 5.2e+71) tmp = Float64(a * Float64(b * i)); elseif (b <= 4.8e+145) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.1e-11) tmp = t_2; elseif (b <= 2.9e+25) tmp = t_1; elseif (b <= 5.2e+71) tmp = a * (b * i); elseif (b <= 4.8e+145) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.1e-11], t$95$2, If[LessEqual[b, 2.9e+25], t$95$1, If[LessEqual[b, 5.2e+71], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.8e+145], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.1 \cdot 10^{-11}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+71}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.0999999999999999e-11 or 4.79999999999999984e145 < b Initial program 68.5%
Taylor expanded in b around inf 63.2%
*-commutative63.2%
Simplified63.2%
if -2.0999999999999999e-11 < b < 2.8999999999999999e25 or 5.19999999999999983e71 < b < 4.79999999999999984e145Initial program 75.6%
Taylor expanded in j around inf 50.8%
if 2.8999999999999999e25 < b < 5.19999999999999983e71Initial program 49.7%
Taylor expanded in b around inf 58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in i around inf 58.8%
*-commutative58.8%
Simplified58.8%
Final simplification55.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -1.76e+21)
t_1
(if (<= y 9.2e-209)
(* j (* t c))
(if (<= y 1.5e-9)
(* b (* a i))
(if (<= y 3.4e+79) (* c (* t 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 = x * (y * z);
double tmp;
if (y <= -1.76e+21) {
tmp = t_1;
} else if (y <= 9.2e-209) {
tmp = j * (t * c);
} else if (y <= 1.5e-9) {
tmp = b * (a * i);
} else if (y <= 3.4e+79) {
tmp = c * (t * 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 = x * (y * z)
if (y <= (-1.76d+21)) then
tmp = t_1
else if (y <= 9.2d-209) then
tmp = j * (t * c)
else if (y <= 1.5d-9) then
tmp = b * (a * i)
else if (y <= 3.4d+79) then
tmp = c * (t * 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 = x * (y * z);
double tmp;
if (y <= -1.76e+21) {
tmp = t_1;
} else if (y <= 9.2e-209) {
tmp = j * (t * c);
} else if (y <= 1.5e-9) {
tmp = b * (a * i);
} else if (y <= 3.4e+79) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -1.76e+21: tmp = t_1 elif y <= 9.2e-209: tmp = j * (t * c) elif y <= 1.5e-9: tmp = b * (a * i) elif y <= 3.4e+79: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.76e+21) tmp = t_1; elseif (y <= 9.2e-209) tmp = Float64(j * Float64(t * c)); elseif (y <= 1.5e-9) tmp = Float64(b * Float64(a * i)); elseif (y <= 3.4e+79) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -1.76e+21) tmp = t_1; elseif (y <= 9.2e-209) tmp = j * (t * c); elseif (y <= 1.5e-9) tmp = b * (a * i); elseif (y <= 3.4e+79) tmp = c * (t * 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.76e+21], t$95$1, If[LessEqual[y, 9.2e-209], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e-9], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+79], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.76 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-209}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-9}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.76e21 or 3.40000000000000032e79 < y Initial program 61.5%
Taylor expanded in z around inf 44.1%
*-commutative44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in y around inf 36.6%
if -1.76e21 < y < 9.1999999999999999e-209Initial program 77.6%
Taylor expanded in j around inf 42.3%
Taylor expanded in c around inf 32.0%
*-commutative32.0%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
if 9.1999999999999999e-209 < y < 1.49999999999999999e-9Initial program 76.5%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in i around inf 33.7%
*-commutative33.7%
Simplified33.7%
if 1.49999999999999999e-9 < y < 3.40000000000000032e79Initial program 86.8%
Taylor expanded in t around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in j around inf 36.3%
Final simplification35.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.85e+19)
(* x (* y z))
(if (<= y 1.1e-204)
(* j (* t c))
(if (<= y 1.15e-10)
(* b (* a i))
(if (<= y 3.4e+79) (* c (* t j)) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.85e+19) {
tmp = x * (y * z);
} else if (y <= 1.1e-204) {
tmp = j * (t * c);
} else if (y <= 1.15e-10) {
tmp = b * (a * i);
} else if (y <= 3.4e+79) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2.85d+19)) then
tmp = x * (y * z)
else if (y <= 1.1d-204) then
tmp = j * (t * c)
else if (y <= 1.15d-10) then
tmp = b * (a * i)
else if (y <= 3.4d+79) then
tmp = c * (t * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.85e+19) {
tmp = x * (y * z);
} else if (y <= 1.1e-204) {
tmp = j * (t * c);
} else if (y <= 1.15e-10) {
tmp = b * (a * i);
} else if (y <= 3.4e+79) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.85e+19: tmp = x * (y * z) elif y <= 1.1e-204: tmp = j * (t * c) elif y <= 1.15e-10: tmp = b * (a * i) elif y <= 3.4e+79: tmp = c * (t * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.85e+19) tmp = Float64(x * Float64(y * z)); elseif (y <= 1.1e-204) tmp = Float64(j * Float64(t * c)); elseif (y <= 1.15e-10) tmp = Float64(b * Float64(a * i)); elseif (y <= 3.4e+79) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.85e+19) tmp = x * (y * z); elseif (y <= 1.1e-204) tmp = j * (t * c); elseif (y <= 1.15e-10) tmp = b * (a * i); elseif (y <= 3.4e+79) tmp = c * (t * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.85e+19], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-204], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e-10], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+79], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.85 \cdot 10^{+19}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-204}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -2.85e19Initial program 58.0%
Taylor expanded in z around inf 45.4%
*-commutative45.4%
*-commutative45.4%
Simplified45.4%
Taylor expanded in y around inf 38.0%
if -2.85e19 < y < 1.0999999999999999e-204Initial program 77.6%
Taylor expanded in j around inf 42.3%
Taylor expanded in c around inf 32.0%
*-commutative32.0%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
if 1.0999999999999999e-204 < y < 1.15000000000000004e-10Initial program 76.5%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in i around inf 33.7%
*-commutative33.7%
Simplified33.7%
if 1.15000000000000004e-10 < y < 3.40000000000000032e79Initial program 86.8%
Taylor expanded in t around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in j around inf 36.3%
if 3.40000000000000032e79 < y Initial program 65.2%
Taylor expanded in z around inf 42.6%
*-commutative42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in y around inf 37.1%
*-commutative37.1%
Simplified37.1%
Final simplification36.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8.4e+26)
(* x (* y z))
(if (<= y 7.8e-206)
(* j (* t c))
(if (<= y 2.1e-8)
(* b (* a i))
(if (<= y 3.5e+79) (* t (* c j)) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8.4e+26) {
tmp = x * (y * z);
} else if (y <= 7.8e-206) {
tmp = j * (t * c);
} else if (y <= 2.1e-8) {
tmp = b * (a * i);
} else if (y <= 3.5e+79) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-8.4d+26)) then
tmp = x * (y * z)
else if (y <= 7.8d-206) then
tmp = j * (t * c)
else if (y <= 2.1d-8) then
tmp = b * (a * i)
else if (y <= 3.5d+79) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8.4e+26) {
tmp = x * (y * z);
} else if (y <= 7.8e-206) {
tmp = j * (t * c);
} else if (y <= 2.1e-8) {
tmp = b * (a * i);
} else if (y <= 3.5e+79) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -8.4e+26: tmp = x * (y * z) elif y <= 7.8e-206: tmp = j * (t * c) elif y <= 2.1e-8: tmp = b * (a * i) elif y <= 3.5e+79: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8.4e+26) tmp = Float64(x * Float64(y * z)); elseif (y <= 7.8e-206) tmp = Float64(j * Float64(t * c)); elseif (y <= 2.1e-8) tmp = Float64(b * Float64(a * i)); elseif (y <= 3.5e+79) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -8.4e+26) tmp = x * (y * z); elseif (y <= 7.8e-206) tmp = j * (t * c); elseif (y <= 2.1e-8) tmp = b * (a * i); elseif (y <= 3.5e+79) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8.4e+26], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e-206], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e-8], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e+79], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.4 \cdot 10^{+26}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{-206}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-8}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+79}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -8.4000000000000003e26Initial program 58.0%
Taylor expanded in z around inf 45.4%
*-commutative45.4%
*-commutative45.4%
Simplified45.4%
Taylor expanded in y around inf 38.0%
if -8.4000000000000003e26 < y < 7.80000000000000014e-206Initial program 77.6%
Taylor expanded in j around inf 42.3%
Taylor expanded in c around inf 32.0%
*-commutative32.0%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
if 7.80000000000000014e-206 < y < 2.09999999999999994e-8Initial program 76.5%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in i around inf 33.7%
*-commutative33.7%
Simplified33.7%
if 2.09999999999999994e-8 < y < 3.4999999999999998e79Initial program 86.8%
Taylor expanded in t around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in j around inf 36.3%
associate-*r*36.3%
*-commutative36.3%
Simplified36.3%
if 3.4999999999999998e79 < y Initial program 65.2%
Taylor expanded in z around inf 42.6%
*-commutative42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in y around inf 37.1%
*-commutative37.1%
Simplified37.1%
Final simplification36.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -3.2e+28)
(* x (* y z))
(if (<= y 3.9e-210)
(* j (* t c))
(if (<= y 7.5e-63)
(* c (* z (- b)))
(if (<= y 4.2e+79) (* c (* t j)) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.2e+28) {
tmp = x * (y * z);
} else if (y <= 3.9e-210) {
tmp = j * (t * c);
} else if (y <= 7.5e-63) {
tmp = c * (z * -b);
} else if (y <= 4.2e+79) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.2d+28)) then
tmp = x * (y * z)
else if (y <= 3.9d-210) then
tmp = j * (t * c)
else if (y <= 7.5d-63) then
tmp = c * (z * -b)
else if (y <= 4.2d+79) then
tmp = c * (t * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.2e+28) {
tmp = x * (y * z);
} else if (y <= 3.9e-210) {
tmp = j * (t * c);
} else if (y <= 7.5e-63) {
tmp = c * (z * -b);
} else if (y <= 4.2e+79) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.2e+28: tmp = x * (y * z) elif y <= 3.9e-210: tmp = j * (t * c) elif y <= 7.5e-63: tmp = c * (z * -b) elif y <= 4.2e+79: tmp = c * (t * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.2e+28) tmp = Float64(x * Float64(y * z)); elseif (y <= 3.9e-210) tmp = Float64(j * Float64(t * c)); elseif (y <= 7.5e-63) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= 4.2e+79) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.2e+28) tmp = x * (y * z); elseif (y <= 3.9e-210) tmp = j * (t * c); elseif (y <= 7.5e-63) tmp = c * (z * -b); elseif (y <= 4.2e+79) tmp = c * (t * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.2e+28], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e-210], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-63], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e+79], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+28}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-210}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-63}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if y < -3.2e28Initial program 58.0%
Taylor expanded in z around inf 45.4%
*-commutative45.4%
*-commutative45.4%
Simplified45.4%
Taylor expanded in y around inf 38.0%
if -3.2e28 < y < 3.8999999999999998e-210Initial program 77.3%
Taylor expanded in j around inf 41.7%
Taylor expanded in c around inf 31.2%
*-commutative31.2%
associate-*r*34.2%
*-commutative34.2%
Simplified34.2%
if 3.8999999999999998e-210 < y < 7.5000000000000003e-63Initial program 87.3%
Taylor expanded in c around inf 39.0%
Taylor expanded in j around 0 34.9%
neg-mul-134.9%
distribute-lft-neg-in34.9%
*-commutative34.9%
Simplified34.9%
if 7.5000000000000003e-63 < y < 4.20000000000000016e79Initial program 76.6%
Taylor expanded in t around inf 45.3%
+-commutative45.3%
mul-1-neg45.3%
unsub-neg45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in j around inf 39.7%
if 4.20000000000000016e79 < y Initial program 65.2%
Taylor expanded in z around inf 42.6%
*-commutative42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in y around inf 37.1%
*-commutative37.1%
Simplified37.1%
Final simplification36.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -4.5e+16) (not (<= a 2.4e-60))) (* b (* a i)) (* c (* t 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 <= -4.5e+16) || !(a <= 2.4e-60)) {
tmp = b * (a * i);
} else {
tmp = c * (t * 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 <= (-4.5d+16)) .or. (.not. (a <= 2.4d-60))) then
tmp = b * (a * i)
else
tmp = c * (t * 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 <= -4.5e+16) || !(a <= 2.4e-60)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -4.5e+16) or not (a <= 2.4e-60): tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -4.5e+16) || !(a <= 2.4e-60)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -4.5e+16) || ~((a <= 2.4e-60))) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -4.5e+16], N[Not[LessEqual[a, 2.4e-60]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{+16} \lor \neg \left(a \leq 2.4 \cdot 10^{-60}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if a < -4.5e16 or 2.40000000000000009e-60 < a Initial program 63.8%
Taylor expanded in b around inf 46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in i around inf 39.7%
*-commutative39.7%
Simplified39.7%
if -4.5e16 < a < 2.40000000000000009e-60Initial program 78.1%
Taylor expanded in t around inf 38.6%
+-commutative38.6%
mul-1-neg38.6%
unsub-neg38.6%
*-commutative38.6%
Simplified38.6%
Taylor expanded in j around inf 30.4%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.1e+16) (not (<= a 1.18e-11))) (* b (* a i)) (* j (* t c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.1e+16) || !(a <= 1.18e-11)) {
tmp = b * (a * i);
} else {
tmp = j * (t * 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 ((a <= (-2.1d+16)) .or. (.not. (a <= 1.18d-11))) then
tmp = b * (a * i)
else
tmp = j * (t * 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 ((a <= -2.1e+16) || !(a <= 1.18e-11)) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.1e+16) or not (a <= 1.18e-11): tmp = b * (a * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.1e+16) || !(a <= 1.18e-11)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.1e+16) || ~((a <= 1.18e-11))) tmp = b * (a * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.1e+16], N[Not[LessEqual[a, 1.18e-11]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.1 \cdot 10^{+16} \lor \neg \left(a \leq 1.18 \cdot 10^{-11}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if a < -2.1e16 or 1.18e-11 < a Initial program 62.6%
Taylor expanded in b around inf 48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in i around inf 40.9%
*-commutative40.9%
Simplified40.9%
if -2.1e16 < a < 1.18e-11Initial program 78.4%
Taylor expanded in j around inf 46.8%
Taylor expanded in c around inf 29.9%
*-commutative29.9%
associate-*r*30.6%
*-commutative30.6%
Simplified30.6%
Final simplification35.0%
(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 71.7%
Taylor expanded in b around inf 35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in i around inf 21.2%
*-commutative21.2%
Simplified21.2%
Final simplification21.2%
(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 71.7%
Taylor expanded in b around inf 35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in i around inf 21.3%
*-commutative21.3%
Simplified21.3%
Final simplification21.3%
(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 2024067
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))