
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* (- (* t (/ i z)) c) (* 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))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = ((t * (i / z)) - c) * (z * b);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = ((t * (i / z)) - c) * (z * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = ((t * (i / z)) - c) * (z * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(t * Float64(i / z)) - c) * 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))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = ((t * (i / z)) - c) * (z * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(t * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \frac{i}{z} - c\right) \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around 0 0.0%
Taylor expanded in z around inf 19.9%
Taylor expanded in b around inf 51.0%
*-commutative51.0%
*-commutative51.0%
associate-*l*51.0%
*-commutative51.0%
associate-/l*54.3%
Simplified54.3%
Final simplification85.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* a c) (* y i))) t_1))
(t_3 (* (- (* t (/ i z)) c) (* z b))))
(if (<= b -1.4e+220)
t_3
(if (<= b -2.9e+203)
t_2
(if (<= b -4.4e+185)
(* c (- (* a j) (* z b)))
(if (<= b -7.3e-38)
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
(if (<= b 8.2e-72)
t_2
(if (<= b 1.7e+16)
(- (+ t_1 (* b (* t i))) (* b (* z c)))
(if (<= b 6.2e+62) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = ((t * (i / z)) - c) * (z * b);
double tmp;
if (b <= -1.4e+220) {
tmp = t_3;
} else if (b <= -2.9e+203) {
tmp = t_2;
} else if (b <= -4.4e+185) {
tmp = c * ((a * j) - (z * b));
} else if (b <= -7.3e-38) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else if (b <= 8.2e-72) {
tmp = t_2;
} else if (b <= 1.7e+16) {
tmp = (t_1 + (b * (t * i))) - (b * (z * c));
} else if (b <= 6.2e+62) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (j * ((a * c) - (y * i))) + t_1
t_3 = ((t * (i / z)) - c) * (z * b)
if (b <= (-1.4d+220)) then
tmp = t_3
else if (b <= (-2.9d+203)) then
tmp = t_2
else if (b <= (-4.4d+185)) then
tmp = c * ((a * j) - (z * b))
else if (b <= (-7.3d-38)) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
else if (b <= 8.2d-72) then
tmp = t_2
else if (b <= 1.7d+16) then
tmp = (t_1 + (b * (t * i))) - (b * (z * c))
else if (b <= 6.2d+62) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = ((t * (i / z)) - c) * (z * b);
double tmp;
if (b <= -1.4e+220) {
tmp = t_3;
} else if (b <= -2.9e+203) {
tmp = t_2;
} else if (b <= -4.4e+185) {
tmp = c * ((a * j) - (z * b));
} else if (b <= -7.3e-38) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else if (b <= 8.2e-72) {
tmp = t_2;
} else if (b <= 1.7e+16) {
tmp = (t_1 + (b * (t * i))) - (b * (z * c));
} else if (b <= 6.2e+62) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((a * c) - (y * i))) + t_1 t_3 = ((t * (i / z)) - c) * (z * b) tmp = 0 if b <= -1.4e+220: tmp = t_3 elif b <= -2.9e+203: tmp = t_2 elif b <= -4.4e+185: tmp = c * ((a * j) - (z * b)) elif b <= -7.3e-38: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) elif b <= 8.2e-72: tmp = t_2 elif b <= 1.7e+16: tmp = (t_1 + (b * (t * i))) - (b * (z * c)) elif b <= 6.2e+62: tmp = t_2 else: tmp = t_3 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(j * Float64(Float64(a * c) - Float64(y * i))) + t_1) t_3 = Float64(Float64(Float64(t * Float64(i / z)) - c) * Float64(z * b)) tmp = 0.0 if (b <= -1.4e+220) tmp = t_3; elseif (b <= -2.9e+203) tmp = t_2; elseif (b <= -4.4e+185) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (b <= -7.3e-38) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (b <= 8.2e-72) tmp = t_2; elseif (b <= 1.7e+16) tmp = Float64(Float64(t_1 + Float64(b * Float64(t * i))) - Float64(b * Float64(z * c))); elseif (b <= 6.2e+62) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((a * c) - (y * i))) + t_1; t_3 = ((t * (i / z)) - c) * (z * b); tmp = 0.0; if (b <= -1.4e+220) tmp = t_3; elseif (b <= -2.9e+203) tmp = t_2; elseif (b <= -4.4e+185) tmp = c * ((a * j) - (z * b)); elseif (b <= -7.3e-38) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); elseif (b <= 8.2e-72) tmp = t_2; elseif (b <= 1.7e+16) tmp = (t_1 + (b * (t * i))) - (b * (z * c)); elseif (b <= 6.2e+62) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+220], t$95$3, If[LessEqual[b, -2.9e+203], t$95$2, If[LessEqual[b, -4.4e+185], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.3e-38], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-72], t$95$2, If[LessEqual[b, 1.7e+16], N[(N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+62], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
t_3 := \left(t \cdot \frac{i}{z} - c\right) \cdot \left(z \cdot b\right)\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+220}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{+203}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{+185}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -7.3 \cdot 10^{-38}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-72}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+16}:\\
\;\;\;\;\left(t\_1 + b \cdot \left(t \cdot i\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -1.4e220 or 6.20000000000000029e62 < b Initial program 65.5%
Taylor expanded in i around 0 55.7%
Taylor expanded in z around inf 51.0%
Taylor expanded in b around inf 79.0%
*-commutative79.0%
*-commutative79.0%
associate-*l*79.1%
*-commutative79.1%
associate-/l*80.7%
Simplified80.7%
if -1.4e220 < b < -2.90000000000000011e203 or -7.3000000000000001e-38 < b < 8.20000000000000007e-72 or 1.7e16 < b < 6.20000000000000029e62Initial program 76.0%
Taylor expanded in b around 0 78.3%
if -2.90000000000000011e203 < b < -4.4000000000000002e185Initial program 49.7%
Taylor expanded in c around inf 99.7%
*-commutative99.7%
Simplified99.7%
if -4.4000000000000002e185 < b < -7.3000000000000001e-38Initial program 79.8%
Taylor expanded in y around 0 77.5%
Simplified77.5%
if 8.20000000000000007e-72 < b < 1.7e16Initial program 70.2%
Taylor expanded in i around 0 70.3%
Taylor expanded in j around 0 75.9%
Final simplification79.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* a c) (* y i))) t_1))
(t_3 (* (- (* t (/ i z)) c) (* z b)))
(t_4 (+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))))
(if (<= b -1.4e+220)
t_3
(if (<= b -2.9e+203)
t_2
(if (<= b -4.1e+185)
(* c (- (* a j) (* z b)))
(if (<= b -2.6e-37)
t_4
(if (<= b 6.8e-102)
t_2
(if (<= b 1.6e-29)
t_4
(if (<= b 6.6e+41) (- t_1 (* i (* y j))) t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = ((t * (i / z)) - c) * (z * b);
double t_4 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -1.4e+220) {
tmp = t_3;
} else if (b <= -2.9e+203) {
tmp = t_2;
} else if (b <= -4.1e+185) {
tmp = c * ((a * j) - (z * b));
} else if (b <= -2.6e-37) {
tmp = t_4;
} else if (b <= 6.8e-102) {
tmp = t_2;
} else if (b <= 1.6e-29) {
tmp = t_4;
} else if (b <= 6.6e+41) {
tmp = t_1 - (i * (y * j));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (j * ((a * c) - (y * i))) + t_1
t_3 = ((t * (i / z)) - c) * (z * b)
t_4 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
if (b <= (-1.4d+220)) then
tmp = t_3
else if (b <= (-2.9d+203)) then
tmp = t_2
else if (b <= (-4.1d+185)) then
tmp = c * ((a * j) - (z * b))
else if (b <= (-2.6d-37)) then
tmp = t_4
else if (b <= 6.8d-102) then
tmp = t_2
else if (b <= 1.6d-29) then
tmp = t_4
else if (b <= 6.6d+41) then
tmp = t_1 - (i * (y * j))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((a * c) - (y * i))) + t_1;
double t_3 = ((t * (i / z)) - c) * (z * b);
double t_4 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -1.4e+220) {
tmp = t_3;
} else if (b <= -2.9e+203) {
tmp = t_2;
} else if (b <= -4.1e+185) {
tmp = c * ((a * j) - (z * b));
} else if (b <= -2.6e-37) {
tmp = t_4;
} else if (b <= 6.8e-102) {
tmp = t_2;
} else if (b <= 1.6e-29) {
tmp = t_4;
} else if (b <= 6.6e+41) {
tmp = t_1 - (i * (y * j));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((a * c) - (y * i))) + t_1 t_3 = ((t * (i / z)) - c) * (z * b) t_4 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) tmp = 0 if b <= -1.4e+220: tmp = t_3 elif b <= -2.9e+203: tmp = t_2 elif b <= -4.1e+185: tmp = c * ((a * j) - (z * b)) elif b <= -2.6e-37: tmp = t_4 elif b <= 6.8e-102: tmp = t_2 elif b <= 1.6e-29: tmp = t_4 elif b <= 6.6e+41: tmp = t_1 - (i * (y * j)) else: tmp = t_3 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(j * Float64(Float64(a * c) - Float64(y * i))) + t_1) t_3 = Float64(Float64(Float64(t * Float64(i / z)) - c) * Float64(z * b)) t_4 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (b <= -1.4e+220) tmp = t_3; elseif (b <= -2.9e+203) tmp = t_2; elseif (b <= -4.1e+185) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (b <= -2.6e-37) tmp = t_4; elseif (b <= 6.8e-102) tmp = t_2; elseif (b <= 1.6e-29) tmp = t_4; elseif (b <= 6.6e+41) tmp = Float64(t_1 - Float64(i * Float64(y * j))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((a * c) - (y * i))) + t_1; t_3 = ((t * (i / z)) - c) * (z * b); t_4 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); tmp = 0.0; if (b <= -1.4e+220) tmp = t_3; elseif (b <= -2.9e+203) tmp = t_2; elseif (b <= -4.1e+185) tmp = c * ((a * j) - (z * b)); elseif (b <= -2.6e-37) tmp = t_4; elseif (b <= 6.8e-102) tmp = t_2; elseif (b <= 1.6e-29) tmp = t_4; elseif (b <= 6.6e+41) tmp = t_1 - (i * (y * j)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+220], t$95$3, If[LessEqual[b, -2.9e+203], t$95$2, If[LessEqual[b, -4.1e+185], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.6e-37], t$95$4, If[LessEqual[b, 6.8e-102], t$95$2, If[LessEqual[b, 1.6e-29], t$95$4, If[LessEqual[b, 6.6e+41], N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
t_3 := \left(t \cdot \frac{i}{z} - c\right) \cdot \left(z \cdot b\right)\\
t_4 := a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+220}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{+203}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{+185}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-37}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-102}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-29}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{+41}:\\
\;\;\;\;t\_1 - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -1.4e220 or 6.6000000000000001e41 < b Initial program 66.0%
Taylor expanded in i around 0 56.8%
Taylor expanded in z around inf 53.9%
Taylor expanded in b around inf 75.8%
*-commutative75.8%
*-commutative75.8%
associate-*l*77.3%
*-commutative77.3%
associate-/l*78.9%
Simplified78.9%
if -1.4e220 < b < -2.90000000000000011e203 or -2.5999999999999998e-37 < b < 6.80000000000000026e-102Initial program 75.7%
Taylor expanded in b around 0 77.8%
if -2.90000000000000011e203 < b < -4.1e185Initial program 49.7%
Taylor expanded in c around inf 99.7%
*-commutative99.7%
Simplified99.7%
if -4.1e185 < b < -2.5999999999999998e-37 or 6.80000000000000026e-102 < b < 1.6e-29Initial program 79.2%
Taylor expanded in y around 0 77.4%
Simplified78.9%
if 1.6e-29 < b < 6.6000000000000001e41Initial program 69.0%
Taylor expanded in b around 0 69.5%
Taylor expanded in a around 0 77.3%
associate-*r*77.3%
neg-mul-177.3%
Simplified77.3%
Final simplification78.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -5.5e-51)
t_2
(if (<= c -7.1e-261)
t_1
(if (<= c 4.7e-284)
(* y (* x z))
(if (<= c 1.5e-128)
t_1
(if (<= c 7.5e-41)
(* x (* t (- a)))
(if (<= c 7.8e-19)
(* x (* y z))
(if (<= c 1.22e+54) (* b (- (* t i) (* z c))) 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 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.5e-51) {
tmp = t_2;
} else if (c <= -7.1e-261) {
tmp = t_1;
} else if (c <= 4.7e-284) {
tmp = y * (x * z);
} else if (c <= 1.5e-128) {
tmp = t_1;
} else if (c <= 7.5e-41) {
tmp = x * (t * -a);
} else if (c <= 7.8e-19) {
tmp = x * (y * z);
} else if (c <= 1.22e+54) {
tmp = b * ((t * i) - (z * c));
} 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 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-5.5d-51)) then
tmp = t_2
else if (c <= (-7.1d-261)) then
tmp = t_1
else if (c <= 4.7d-284) then
tmp = y * (x * z)
else if (c <= 1.5d-128) then
tmp = t_1
else if (c <= 7.5d-41) then
tmp = x * (t * -a)
else if (c <= 7.8d-19) then
tmp = x * (y * z)
else if (c <= 1.22d+54) then
tmp = b * ((t * i) - (z * c))
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 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.5e-51) {
tmp = t_2;
} else if (c <= -7.1e-261) {
tmp = t_1;
} else if (c <= 4.7e-284) {
tmp = y * (x * z);
} else if (c <= 1.5e-128) {
tmp = t_1;
} else if (c <= 7.5e-41) {
tmp = x * (t * -a);
} else if (c <= 7.8e-19) {
tmp = x * (y * z);
} else if (c <= 1.22e+54) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -5.5e-51: tmp = t_2 elif c <= -7.1e-261: tmp = t_1 elif c <= 4.7e-284: tmp = y * (x * z) elif c <= 1.5e-128: tmp = t_1 elif c <= 7.5e-41: tmp = x * (t * -a) elif c <= 7.8e-19: tmp = x * (y * z) elif c <= 1.22e+54: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -5.5e-51) tmp = t_2; elseif (c <= -7.1e-261) tmp = t_1; elseif (c <= 4.7e-284) tmp = Float64(y * Float64(x * z)); elseif (c <= 1.5e-128) tmp = t_1; elseif (c <= 7.5e-41) tmp = Float64(x * Float64(t * Float64(-a))); elseif (c <= 7.8e-19) tmp = Float64(x * Float64(y * z)); elseif (c <= 1.22e+54) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -5.5e-51) tmp = t_2; elseif (c <= -7.1e-261) tmp = t_1; elseif (c <= 4.7e-284) tmp = y * (x * z); elseif (c <= 1.5e-128) tmp = t_1; elseif (c <= 7.5e-41) tmp = x * (t * -a); elseif (c <= 7.8e-19) tmp = x * (y * z); elseif (c <= 1.22e+54) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.5e-51], t$95$2, If[LessEqual[c, -7.1e-261], t$95$1, If[LessEqual[c, 4.7e-284], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.5e-128], t$95$1, If[LessEqual[c, 7.5e-41], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.8e-19], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.22e+54], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -5.5 \cdot 10^{-51}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -7.1 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{-284}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq 7.8 \cdot 10^{-19}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 1.22 \cdot 10^{+54}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -5.4999999999999997e-51 or 1.22e54 < c Initial program 66.5%
Taylor expanded in c around inf 69.3%
*-commutative69.3%
Simplified69.3%
if -5.4999999999999997e-51 < c < -7.10000000000000021e-261 or 4.70000000000000022e-284 < c < 1.49999999999999989e-128Initial program 80.1%
Taylor expanded in i around 0 77.5%
Taylor expanded in i around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
*-commutative61.4%
Simplified61.4%
if -7.10000000000000021e-261 < c < 4.70000000000000022e-284Initial program 95.7%
Taylor expanded in y around inf 64.2%
+-commutative64.2%
mul-1-neg64.2%
unsub-neg64.2%
*-commutative64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in z around inf 51.1%
if 1.49999999999999989e-128 < c < 7.50000000000000049e-41Initial program 84.8%
Taylor expanded in x around inf 77.0%
Taylor expanded in y around 0 70.2%
mul-1-neg70.2%
distribute-lft-neg-out70.2%
*-commutative70.2%
Simplified70.2%
if 7.50000000000000049e-41 < c < 7.7999999999999999e-19Initial program 80.0%
Taylor expanded in x around inf 41.2%
Taylor expanded in y around inf 61.2%
if 7.7999999999999999e-19 < c < 1.22e54Initial program 50.4%
Taylor expanded in b around inf 50.7%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= c -5.5e-6)
(* c (- (* a j) (* z b)))
(if (<= c -7.8e-170)
(+ (* j (- (* a c) (* y i))) (* x (* y z)))
(if (<= c -9.5e-229)
t_1
(if (<= c 4.8e-174)
(- (* x (- (* y z) (* t a))) (* i (* y j)))
(if (<= c 9.5e-129)
t_1
(if (<= c 2.8e+16)
(* x (* a (- (/ (* y z) a) t)))
(* z (- (* x y) (* b c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (c <= -5.5e-6) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -7.8e-170) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else if (c <= -9.5e-229) {
tmp = t_1;
} else if (c <= 4.8e-174) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (c <= 9.5e-129) {
tmp = t_1;
} else if (c <= 2.8e+16) {
tmp = x * (a * (((y * z) / a) - t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (c <= (-5.5d-6)) then
tmp = c * ((a * j) - (z * b))
else if (c <= (-7.8d-170)) then
tmp = (j * ((a * c) - (y * i))) + (x * (y * z))
else if (c <= (-9.5d-229)) then
tmp = t_1
else if (c <= 4.8d-174) then
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
else if (c <= 9.5d-129) then
tmp = t_1
else if (c <= 2.8d+16) then
tmp = x * (a * (((y * z) / a) - t))
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (c <= -5.5e-6) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -7.8e-170) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else if (c <= -9.5e-229) {
tmp = t_1;
} else if (c <= 4.8e-174) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (c <= 9.5e-129) {
tmp = t_1;
} else if (c <= 2.8e+16) {
tmp = x * (a * (((y * z) / a) - t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if c <= -5.5e-6: tmp = c * ((a * j) - (z * b)) elif c <= -7.8e-170: tmp = (j * ((a * c) - (y * i))) + (x * (y * z)) elif c <= -9.5e-229: tmp = t_1 elif c <= 4.8e-174: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) elif c <= 9.5e-129: tmp = t_1 elif c <= 2.8e+16: tmp = x * (a * (((y * z) / a) - t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (c <= -5.5e-6) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (c <= -7.8e-170) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (c <= -9.5e-229) tmp = t_1; elseif (c <= 4.8e-174) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); elseif (c <= 9.5e-129) tmp = t_1; elseif (c <= 2.8e+16) tmp = Float64(x * Float64(a * Float64(Float64(Float64(y * z) / a) - t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (c <= -5.5e-6) tmp = c * ((a * j) - (z * b)); elseif (c <= -7.8e-170) tmp = (j * ((a * c) - (y * i))) + (x * (y * z)); elseif (c <= -9.5e-229) tmp = t_1; elseif (c <= 4.8e-174) tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); elseif (c <= 9.5e-129) tmp = t_1; elseif (c <= 2.8e+16) tmp = x * (a * (((y * z) / a) - t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.5e-6], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.8e-170], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9.5e-229], t$95$1, If[LessEqual[c, 4.8e-174], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-129], t$95$1, If[LessEqual[c, 2.8e+16], N[(x * N[(a * N[(N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;c \leq -5.5 \cdot 10^{-6}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;c \leq -7.8 \cdot 10^{-170}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{-174}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \left(a \cdot \left(\frac{y \cdot z}{a} - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if c < -5.4999999999999999e-6Initial program 66.9%
Taylor expanded in c around inf 79.0%
*-commutative79.0%
Simplified79.0%
if -5.4999999999999999e-6 < c < -7.80000000000000042e-170Initial program 72.4%
Taylor expanded in i around 0 72.4%
Taylor expanded in y around inf 72.8%
if -7.80000000000000042e-170 < c < -9.4999999999999997e-229 or 4.8e-174 < c < 9.5000000000000006e-129Initial program 69.6%
Taylor expanded in i around 0 63.6%
Taylor expanded in i around inf 76.3%
+-commutative76.3%
mul-1-neg76.3%
unsub-neg76.3%
*-commutative76.3%
Simplified76.3%
if -9.4999999999999997e-229 < c < 4.8e-174Initial program 97.9%
Taylor expanded in b around 0 79.4%
Taylor expanded in a around 0 75.3%
associate-*r*75.3%
neg-mul-175.3%
Simplified75.3%
if 9.5000000000000006e-129 < c < 2.8e16Initial program 76.5%
Taylor expanded in x around inf 62.6%
Taylor expanded in a around inf 66.6%
if 2.8e16 < c Initial program 62.1%
Taylor expanded in z around inf 61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Final simplification71.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* x (* y z)))))
(if (<= y -1.7e-67)
t_1
(if (<= y -3.8e-165)
(* (- (* t (/ i z)) c) (* z b))
(if (<= y -4.2e-204)
(+ (* x (- (* y z) (* t a))) (* j (* a c)))
(if (<= y 3.8e-32)
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + (x * (y * z));
double tmp;
if (y <= -1.7e-67) {
tmp = t_1;
} else if (y <= -3.8e-165) {
tmp = ((t * (i / z)) - c) * (z * b);
} else if (y <= -4.2e-204) {
tmp = (x * ((y * z) - (t * a))) + (j * (a * c));
} else if (y <= 3.8e-32) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((a * c) - (y * i))) + (x * (y * z))
if (y <= (-1.7d-67)) then
tmp = t_1
else if (y <= (-3.8d-165)) then
tmp = ((t * (i / z)) - c) * (z * b)
else if (y <= (-4.2d-204)) then
tmp = (x * ((y * z) - (t * a))) + (j * (a * c))
else if (y <= 3.8d-32) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
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 * ((a * c) - (y * i))) + (x * (y * z));
double tmp;
if (y <= -1.7e-67) {
tmp = t_1;
} else if (y <= -3.8e-165) {
tmp = ((t * (i / z)) - c) * (z * b);
} else if (y <= -4.2e-204) {
tmp = (x * ((y * z) - (t * a))) + (j * (a * c));
} else if (y <= 3.8e-32) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (x * (y * z)) tmp = 0 if y <= -1.7e-67: tmp = t_1 elif y <= -3.8e-165: tmp = ((t * (i / z)) - c) * (z * b) elif y <= -4.2e-204: tmp = (x * ((y * z) - (t * a))) + (j * (a * c)) elif y <= 3.8e-32: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))) tmp = 0.0 if (y <= -1.7e-67) tmp = t_1; elseif (y <= -3.8e-165) tmp = Float64(Float64(Float64(t * Float64(i / z)) - c) * Float64(z * b)); elseif (y <= -4.2e-204) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(a * c))); elseif (y <= 3.8e-32) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + (x * (y * z)); tmp = 0.0; if (y <= -1.7e-67) tmp = t_1; elseif (y <= -3.8e-165) tmp = ((t * (i / z)) - c) * (z * b); elseif (y <= -4.2e-204) tmp = (x * ((y * z) - (t * a))) + (j * (a * c)); elseif (y <= 3.8e-32) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e-67], t$95$1, If[LessEqual[y, -3.8e-165], N[(N[(N[(t * N[(i / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision] * N[(z * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.2e-204], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e-32], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-165}:\\
\;\;\;\;\left(t \cdot \frac{i}{z} - c\right) \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-204}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-32}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.70000000000000005e-67 or 3.80000000000000008e-32 < y Initial program 67.2%
Taylor expanded in i around 0 66.4%
Taylor expanded in y around inf 68.8%
if -1.70000000000000005e-67 < y < -3.80000000000000018e-165Initial program 69.7%
Taylor expanded in i around 0 65.4%
Taylor expanded in z around inf 69.4%
Taylor expanded in b around inf 70.3%
*-commutative70.3%
*-commutative70.3%
associate-*l*74.3%
*-commutative74.3%
associate-/l*78.7%
Simplified78.7%
if -3.80000000000000018e-165 < y < -4.20000000000000018e-204Initial program 74.6%
Taylor expanded in b around 0 83.9%
Taylor expanded in a around inf 83.9%
if -4.20000000000000018e-204 < y < 3.80000000000000008e-32Initial program 82.0%
Taylor expanded in y around 0 71.5%
Simplified73.6%
Final simplification72.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -4.2e+74)
t_2
(if (<= z -6.2e-170)
(* a (- (* c j) (* x t)))
(if (<= z 3.7e-252)
t_1
(if (<= z 4e-174)
(+ (* x (- (* y z) (* t a))) (* j (* a c)))
(if (<= z 1.05e+53) 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 = i * ((t * b) - (y * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.2e+74) {
tmp = t_2;
} else if (z <= -6.2e-170) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 3.7e-252) {
tmp = t_1;
} else if (z <= 4e-174) {
tmp = (x * ((y * z) - (t * a))) + (j * (a * c));
} else if (z <= 1.05e+53) {
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 = i * ((t * b) - (y * j))
t_2 = z * ((x * y) - (b * c))
if (z <= (-4.2d+74)) then
tmp = t_2
else if (z <= (-6.2d-170)) then
tmp = a * ((c * j) - (x * t))
else if (z <= 3.7d-252) then
tmp = t_1
else if (z <= 4d-174) then
tmp = (x * ((y * z) - (t * a))) + (j * (a * c))
else if (z <= 1.05d+53) 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 = i * ((t * b) - (y * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.2e+74) {
tmp = t_2;
} else if (z <= -6.2e-170) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 3.7e-252) {
tmp = t_1;
} else if (z <= 4e-174) {
tmp = (x * ((y * z) - (t * a))) + (j * (a * c));
} else if (z <= 1.05e+53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -4.2e+74: tmp = t_2 elif z <= -6.2e-170: tmp = a * ((c * j) - (x * t)) elif z <= 3.7e-252: tmp = t_1 elif z <= 4e-174: tmp = (x * ((y * z) - (t * a))) + (j * (a * c)) elif z <= 1.05e+53: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -4.2e+74) tmp = t_2; elseif (z <= -6.2e-170) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= 3.7e-252) tmp = t_1; elseif (z <= 4e-174) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(a * c))); elseif (z <= 1.05e+53) 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 = i * ((t * b) - (y * j)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -4.2e+74) tmp = t_2; elseif (z <= -6.2e-170) tmp = a * ((c * j) - (x * t)); elseif (z <= 3.7e-252) tmp = t_1; elseif (z <= 4e-174) tmp = (x * ((y * z) - (t * a))) + (j * (a * c)); elseif (z <= 1.05e+53) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+74], t$95$2, If[LessEqual[z, -6.2e-170], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e-252], t$95$1, If[LessEqual[z, 4e-174], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+53], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-170}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{-252}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-174}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -4.1999999999999998e74 or 1.0500000000000001e53 < z Initial program 62.7%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
if -4.1999999999999998e74 < z < -6.19999999999999971e-170Initial program 78.1%
Taylor expanded in a around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
*-commutative58.2%
Simplified58.2%
if -6.19999999999999971e-170 < z < 3.7000000000000001e-252 or 4e-174 < z < 1.0500000000000001e53Initial program 84.2%
Taylor expanded in i around 0 83.0%
Taylor expanded in i around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
Simplified63.1%
if 3.7000000000000001e-252 < z < 4e-174Initial program 81.5%
Taylor expanded in b around 0 75.9%
Taylor expanded in a around inf 69.7%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -3.5e+75)
t_1
(if (<= z -2.5e-167)
(* a (- (* c j) (* x t)))
(if (<= z 2.4e-243)
(* i (- (* t b) (* y j)))
(if (<= z 5.6e+49)
(+ (* j (- (* a c) (* y i))) (* 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.5e+75) {
tmp = t_1;
} else if (z <= -2.5e-167) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 2.4e-243) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5.6e+49) {
tmp = (j * ((a * c) - (y * i))) + (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 = z * ((x * y) - (b * c))
if (z <= (-3.5d+75)) then
tmp = t_1
else if (z <= (-2.5d-167)) then
tmp = a * ((c * j) - (x * t))
else if (z <= 2.4d-243) then
tmp = i * ((t * b) - (y * j))
else if (z <= 5.6d+49) then
tmp = (j * ((a * c) - (y * i))) + (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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.5e+75) {
tmp = t_1;
} else if (z <= -2.5e-167) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 2.4e-243) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 5.6e+49) {
tmp = (j * ((a * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -3.5e+75: tmp = t_1 elif z <= -2.5e-167: tmp = a * ((c * j) - (x * t)) elif z <= 2.4e-243: tmp = i * ((t * b) - (y * j)) elif z <= 5.6e+49: tmp = (j * ((a * c) - (y * i))) + (x * (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -3.5e+75) tmp = t_1; elseif (z <= -2.5e-167) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= 2.4e-243) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 5.6e+49) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + 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 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -3.5e+75) tmp = t_1; elseif (z <= -2.5e-167) tmp = a * ((c * j) - (x * t)); elseif (z <= 2.4e-243) tmp = i * ((t * b) - (y * j)); elseif (z <= 5.6e+49) tmp = (j * ((a * c) - (y * i))) + (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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+75], t$95$1, If[LessEqual[z, -2.5e-167], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-243], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e+49], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-243}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{+49}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.4999999999999998e75 or 5.5999999999999996e49 < z Initial program 62.1%
Taylor expanded in z around inf 72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
if -3.4999999999999998e75 < z < -2.5000000000000001e-167Initial program 78.1%
Taylor expanded in a around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
*-commutative58.2%
Simplified58.2%
if -2.5000000000000001e-167 < z < 2.4000000000000001e-243Initial program 83.6%
Taylor expanded in i around 0 83.6%
Taylor expanded in i around inf 73.2%
+-commutative73.2%
mul-1-neg73.2%
unsub-neg73.2%
*-commutative73.2%
Simplified73.2%
if 2.4000000000000001e-243 < z < 5.5999999999999996e49Initial program 85.2%
Taylor expanded in i around 0 83.5%
Taylor expanded in y around inf 55.4%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -2.4e+73)
t_1
(if (<= z -3.5e-170)
(* a (- (* c j) (* x t)))
(if (<= z -1.35e-201)
(* i (- (* t b) (* y j)))
(if (<= z 1.7e+42)
(- (* j (- (* a c) (* y i))) (* a (* x t)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.4e+73) {
tmp = t_1;
} else if (z <= -3.5e-170) {
tmp = a * ((c * j) - (x * t));
} else if (z <= -1.35e-201) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 1.7e+42) {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-2.4d+73)) then
tmp = t_1
else if (z <= (-3.5d-170)) then
tmp = a * ((c * j) - (x * t))
else if (z <= (-1.35d-201)) then
tmp = i * ((t * b) - (y * j))
else if (z <= 1.7d+42) then
tmp = (j * ((a * c) - (y * i))) - (a * (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.4e+73) {
tmp = t_1;
} else if (z <= -3.5e-170) {
tmp = a * ((c * j) - (x * t));
} else if (z <= -1.35e-201) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 1.7e+42) {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -2.4e+73: tmp = t_1 elif z <= -3.5e-170: tmp = a * ((c * j) - (x * t)) elif z <= -1.35e-201: tmp = i * ((t * b) - (y * j)) elif z <= 1.7e+42: tmp = (j * ((a * c) - (y * i))) - (a * (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -2.4e+73) tmp = t_1; elseif (z <= -3.5e-170) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= -1.35e-201) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 1.7e+42) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(a * Float64(x * t))); 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) - (b * c)); tmp = 0.0; if (z <= -2.4e+73) tmp = t_1; elseif (z <= -3.5e-170) tmp = a * ((c * j) - (x * t)); elseif (z <= -1.35e-201) tmp = i * ((t * b) - (y * j)); elseif (z <= 1.7e+42) tmp = (j * ((a * c) - (y * i))) - (a * (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+73], t$95$1, If[LessEqual[z, -3.5e-170], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-201], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+42], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-170}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-201}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+42}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.40000000000000002e73 or 1.69999999999999988e42 < z Initial program 62.8%
Taylor expanded in z around inf 72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
if -2.40000000000000002e73 < z < -3.49999999999999985e-170Initial program 78.1%
Taylor expanded in a around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
*-commutative58.2%
Simplified58.2%
if -3.49999999999999985e-170 < z < -1.35000000000000003e-201Initial program 87.5%
Taylor expanded in i around 0 87.5%
Taylor expanded in i around inf 87.6%
+-commutative87.6%
mul-1-neg87.6%
unsub-neg87.6%
*-commutative87.6%
Simplified87.6%
if -1.35000000000000003e-201 < z < 1.69999999999999988e42Initial program 84.0%
Taylor expanded in i around 0 82.8%
Taylor expanded in a around inf 63.9%
associate-*r*63.9%
neg-mul-163.9%
*-commutative63.9%
Simplified63.9%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= b -5.3e+185)
(* b (* z (- c)))
(if (<= b -2.5e+61)
(* i (* t b))
(if (<= b -3.4e-162)
t_1
(if (<= b -3.3e-228)
(* x (* y z))
(if (<= b 2.15e+43) t_1 (* c (* 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 = a * ((c * j) - (x * t));
double tmp;
if (b <= -5.3e+185) {
tmp = b * (z * -c);
} else if (b <= -2.5e+61) {
tmp = i * (t * b);
} else if (b <= -3.4e-162) {
tmp = t_1;
} else if (b <= -3.3e-228) {
tmp = x * (y * z);
} else if (b <= 2.15e+43) {
tmp = t_1;
} else {
tmp = c * (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 = a * ((c * j) - (x * t))
if (b <= (-5.3d+185)) then
tmp = b * (z * -c)
else if (b <= (-2.5d+61)) then
tmp = i * (t * b)
else if (b <= (-3.4d-162)) then
tmp = t_1
else if (b <= (-3.3d-228)) then
tmp = x * (y * z)
else if (b <= 2.15d+43) then
tmp = t_1
else
tmp = c * (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 = a * ((c * j) - (x * t));
double tmp;
if (b <= -5.3e+185) {
tmp = b * (z * -c);
} else if (b <= -2.5e+61) {
tmp = i * (t * b);
} else if (b <= -3.4e-162) {
tmp = t_1;
} else if (b <= -3.3e-228) {
tmp = x * (y * z);
} else if (b <= 2.15e+43) {
tmp = t_1;
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if b <= -5.3e+185: tmp = b * (z * -c) elif b <= -2.5e+61: tmp = i * (t * b) elif b <= -3.4e-162: tmp = t_1 elif b <= -3.3e-228: tmp = x * (y * z) elif b <= 2.15e+43: tmp = t_1 else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (b <= -5.3e+185) tmp = Float64(b * Float64(z * Float64(-c))); elseif (b <= -2.5e+61) tmp = Float64(i * Float64(t * b)); elseif (b <= -3.4e-162) tmp = t_1; elseif (b <= -3.3e-228) tmp = Float64(x * Float64(y * z)); elseif (b <= 2.15e+43) tmp = t_1; else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (b <= -5.3e+185) tmp = b * (z * -c); elseif (b <= -2.5e+61) tmp = i * (t * b); elseif (b <= -3.4e-162) tmp = t_1; elseif (b <= -3.3e-228) tmp = x * (y * z); elseif (b <= 2.15e+43) tmp = t_1; else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.3e+185], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e+61], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.4e-162], t$95$1, If[LessEqual[b, -3.3e-228], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.15e+43], t$95$1, N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -5.3 \cdot 10^{+185}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{+61}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-228}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if b < -5.30000000000000007e185Initial program 66.6%
Taylor expanded in i around 0 53.2%
Taylor expanded in z around inf 36.9%
Taylor expanded in b around inf 76.9%
*-commutative76.9%
*-commutative76.9%
associate-*l*73.9%
*-commutative73.9%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in t around 0 63.8%
associate-*r*63.8%
mul-1-neg63.8%
Simplified63.8%
if -5.30000000000000007e185 < b < -2.50000000000000009e61Initial program 77.3%
Taylor expanded in t around inf 55.4%
distribute-lft-out--55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around 0 48.0%
neg-mul-148.0%
*-commutative48.0%
distribute-rgt-neg-in48.0%
Simplified48.0%
Taylor expanded in t around 0 51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in b around 0 51.3%
*-commutative51.3%
associate-*r*51.4%
Simplified51.4%
if -2.50000000000000009e61 < b < -3.4e-162 or -3.30000000000000006e-228 < b < 2.15e43Initial program 76.3%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
*-commutative43.3%
Simplified43.3%
if -3.4e-162 < b < -3.30000000000000006e-228Initial program 70.0%
Taylor expanded in x around inf 51.8%
Taylor expanded in y around inf 51.1%
if 2.15e43 < b Initial program 66.5%
Taylor expanded in i around 0 62.1%
Taylor expanded in z around inf 62.4%
Taylor expanded in b around inf 67.3%
*-commutative67.3%
*-commutative67.3%
associate-*l*71.6%
*-commutative71.6%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in t around 0 50.1%
neg-mul-150.1%
Simplified50.1%
Final simplification48.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -1.75e-48)
t_3
(if (<= c -7.7e-261)
t_2
(if (<= c 8.5e-261)
t_1
(if (<= c 1.9e-129) t_2 (if (<= c 1.55e+157) 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 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.75e-48) {
tmp = t_3;
} else if (c <= -7.7e-261) {
tmp = t_2;
} else if (c <= 8.5e-261) {
tmp = t_1;
} else if (c <= 1.9e-129) {
tmp = t_2;
} else if (c <= 1.55e+157) {
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 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-1.75d-48)) then
tmp = t_3
else if (c <= (-7.7d-261)) then
tmp = t_2
else if (c <= 8.5d-261) then
tmp = t_1
else if (c <= 1.9d-129) then
tmp = t_2
else if (c <= 1.55d+157) 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 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.75e-48) {
tmp = t_3;
} else if (c <= -7.7e-261) {
tmp = t_2;
} else if (c <= 8.5e-261) {
tmp = t_1;
} else if (c <= 1.9e-129) {
tmp = t_2;
} else if (c <= 1.55e+157) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.75e-48: tmp = t_3 elif c <= -7.7e-261: tmp = t_2 elif c <= 8.5e-261: tmp = t_1 elif c <= 1.9e-129: tmp = t_2 elif c <= 1.55e+157: tmp = t_1 else: tmp = t_3 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(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.75e-48) tmp = t_3; elseif (c <= -7.7e-261) tmp = t_2; elseif (c <= 8.5e-261) tmp = t_1; elseif (c <= 1.9e-129) tmp = t_2; elseif (c <= 1.55e+157) 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 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.75e-48) tmp = t_3; elseif (c <= -7.7e-261) tmp = t_2; elseif (c <= 8.5e-261) tmp = t_1; elseif (c <= 1.9e-129) tmp = t_2; elseif (c <= 1.55e+157) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.75e-48], t$95$3, If[LessEqual[c, -7.7e-261], t$95$2, If[LessEqual[c, 8.5e-261], t$95$1, If[LessEqual[c, 1.9e-129], t$95$2, If[LessEqual[c, 1.55e+157], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.75 \cdot 10^{-48}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -7.7 \cdot 10^{-261}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+157}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -1.74999999999999996e-48 or 1.5499999999999999e157 < c Initial program 64.5%
Taylor expanded in c around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -1.74999999999999996e-48 < c < -7.6999999999999997e-261 or 8.4999999999999996e-261 < c < 1.89999999999999992e-129Initial program 78.7%
Taylor expanded in i around 0 75.8%
Taylor expanded in i around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
*-commutative62.6%
Simplified62.6%
if -7.6999999999999997e-261 < c < 8.4999999999999996e-261 or 1.89999999999999992e-129 < c < 1.5499999999999999e157Initial program 79.5%
Taylor expanded in x around inf 60.7%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -9e+74)
t_3
(if (<= z -1.5e-167)
t_2
(if (<= z 1.8e-250)
t_1
(if (<= z 4e-171) t_2 (if (<= z 1.02e+51) 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 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e+74) {
tmp = t_3;
} else if (z <= -1.5e-167) {
tmp = t_2;
} else if (z <= 1.8e-250) {
tmp = t_1;
} else if (z <= 4e-171) {
tmp = t_2;
} else if (z <= 1.02e+51) {
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 = i * ((t * b) - (y * j))
t_2 = a * ((c * j) - (x * t))
t_3 = z * ((x * y) - (b * c))
if (z <= (-9d+74)) then
tmp = t_3
else if (z <= (-1.5d-167)) then
tmp = t_2
else if (z <= 1.8d-250) then
tmp = t_1
else if (z <= 4d-171) then
tmp = t_2
else if (z <= 1.02d+51) 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 = i * ((t * b) - (y * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e+74) {
tmp = t_3;
} else if (z <= -1.5e-167) {
tmp = t_2;
} else if (z <= 1.8e-250) {
tmp = t_1;
} else if (z <= 4e-171) {
tmp = t_2;
} else if (z <= 1.02e+51) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = a * ((c * j) - (x * t)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -9e+74: tmp = t_3 elif z <= -1.5e-167: tmp = t_2 elif z <= 1.8e-250: tmp = t_1 elif z <= 4e-171: tmp = t_2 elif z <= 1.02e+51: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -9e+74) tmp = t_3; elseif (z <= -1.5e-167) tmp = t_2; elseif (z <= 1.8e-250) tmp = t_1; elseif (z <= 4e-171) tmp = t_2; elseif (z <= 1.02e+51) 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 = i * ((t * b) - (y * j)); t_2 = a * ((c * j) - (x * t)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -9e+74) tmp = t_3; elseif (z <= -1.5e-167) tmp = t_2; elseif (z <= 1.8e-250) tmp = t_1; elseif (z <= 4e-171) tmp = t_2; elseif (z <= 1.02e+51) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+74], t$95$3, If[LessEqual[z, -1.5e-167], t$95$2, If[LessEqual[z, 1.8e-250], t$95$1, If[LessEqual[z, 4e-171], t$95$2, If[LessEqual[z, 1.02e+51], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -9 \cdot 10^{+74}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-167}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-250}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-171}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -8.9999999999999999e74 or 1.02e51 < z Initial program 62.7%
Taylor expanded in z around inf 73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
if -8.9999999999999999e74 < z < -1.4999999999999999e-167 or 1.79999999999999991e-250 < z < 3.9999999999999999e-171Initial program 79.0%
Taylor expanded in a around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
Simplified56.4%
if -1.4999999999999999e-167 < z < 1.79999999999999991e-250 or 3.9999999999999999e-171 < z < 1.02e51Initial program 84.2%
Taylor expanded in i around 0 83.0%
Taylor expanded in i around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
Simplified63.1%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))) (t_2 (* y (* x z))))
(if (<= z -5.1e+73)
t_2
(if (<= z -5.5e-169)
(* c (* a j))
(if (<= z 2.7e-306)
t_1
(if (<= z 1.4e-73) (* t (* b i)) (if (<= z 3.5e+76) 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 = y * (i * -j);
double t_2 = y * (x * z);
double tmp;
if (z <= -5.1e+73) {
tmp = t_2;
} else if (z <= -5.5e-169) {
tmp = c * (a * j);
} else if (z <= 2.7e-306) {
tmp = t_1;
} else if (z <= 1.4e-73) {
tmp = t * (b * i);
} else if (z <= 3.5e+76) {
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 = y * (i * -j)
t_2 = y * (x * z)
if (z <= (-5.1d+73)) then
tmp = t_2
else if (z <= (-5.5d-169)) then
tmp = c * (a * j)
else if (z <= 2.7d-306) then
tmp = t_1
else if (z <= 1.4d-73) then
tmp = t * (b * i)
else if (z <= 3.5d+76) 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 = y * (i * -j);
double t_2 = y * (x * z);
double tmp;
if (z <= -5.1e+73) {
tmp = t_2;
} else if (z <= -5.5e-169) {
tmp = c * (a * j);
} else if (z <= 2.7e-306) {
tmp = t_1;
} else if (z <= 1.4e-73) {
tmp = t * (b * i);
} else if (z <= 3.5e+76) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) t_2 = y * (x * z) tmp = 0 if z <= -5.1e+73: tmp = t_2 elif z <= -5.5e-169: tmp = c * (a * j) elif z <= 2.7e-306: tmp = t_1 elif z <= 1.4e-73: tmp = t * (b * i) elif z <= 3.5e+76: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) t_2 = Float64(y * Float64(x * z)) tmp = 0.0 if (z <= -5.1e+73) tmp = t_2; elseif (z <= -5.5e-169) tmp = Float64(c * Float64(a * j)); elseif (z <= 2.7e-306) tmp = t_1; elseif (z <= 1.4e-73) tmp = Float64(t * Float64(b * i)); elseif (z <= 3.5e+76) 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 = y * (i * -j); t_2 = y * (x * z); tmp = 0.0; if (z <= -5.1e+73) tmp = t_2; elseif (z <= -5.5e-169) tmp = c * (a * j); elseif (z <= 2.7e-306) tmp = t_1; elseif (z <= 1.4e-73) tmp = t * (b * i); elseif (z <= 3.5e+76) 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[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.1e+73], t$95$2, If[LessEqual[z, -5.5e-169], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e-306], t$95$1, If[LessEqual[z, 1.4e-73], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+76], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
t_2 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -5.1 \cdot 10^{+73}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-169}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-73}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -5.10000000000000024e73 or 3.5e76 < z Initial program 63.1%
Taylor expanded in y around inf 46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in z around inf 41.8%
if -5.10000000000000024e73 < z < -5.4999999999999994e-169Initial program 78.1%
Taylor expanded in a around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in j around inf 39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in a around 0 39.4%
associate-*r*40.9%
*-commutative40.9%
associate-*l*43.1%
Simplified43.1%
if -5.4999999999999994e-169 < z < 2.70000000000000009e-306 or 1.40000000000000006e-73 < z < 3.5e76Initial program 85.6%
Taylor expanded in y around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in z around 0 45.9%
neg-mul-145.9%
distribute-lft-neg-in45.9%
Simplified45.9%
if 2.70000000000000009e-306 < z < 1.40000000000000006e-73Initial program 77.3%
Taylor expanded in t around inf 50.2%
distribute-lft-out--50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in a around 0 29.5%
neg-mul-129.5%
*-commutative29.5%
distribute-rgt-neg-in29.5%
Simplified29.5%
Taylor expanded in t around 0 24.8%
*-commutative24.8%
associate-*r*24.5%
*-commutative24.5%
associate-*r*29.5%
Simplified29.5%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* b (* z (- c)))))
(if (<= z -2.35e+180)
t_2
(if (<= z -3.3e+140)
t_1
(if (<= z -4.9e+38)
t_2
(if (<= z -4e-169)
(* c (* a j))
(if (<= z 7e+78) (* y (* i (- j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = b * (z * -c);
double tmp;
if (z <= -2.35e+180) {
tmp = t_2;
} else if (z <= -3.3e+140) {
tmp = t_1;
} else if (z <= -4.9e+38) {
tmp = t_2;
} else if (z <= -4e-169) {
tmp = c * (a * j);
} else if (z <= 7e+78) {
tmp = y * (i * -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) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = b * (z * -c)
if (z <= (-2.35d+180)) then
tmp = t_2
else if (z <= (-3.3d+140)) then
tmp = t_1
else if (z <= (-4.9d+38)) then
tmp = t_2
else if (z <= (-4d-169)) then
tmp = c * (a * j)
else if (z <= 7d+78) then
tmp = y * (i * -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 = y * (x * z);
double t_2 = b * (z * -c);
double tmp;
if (z <= -2.35e+180) {
tmp = t_2;
} else if (z <= -3.3e+140) {
tmp = t_1;
} else if (z <= -4.9e+38) {
tmp = t_2;
} else if (z <= -4e-169) {
tmp = c * (a * j);
} else if (z <= 7e+78) {
tmp = y * (i * -j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = b * (z * -c) tmp = 0 if z <= -2.35e+180: tmp = t_2 elif z <= -3.3e+140: tmp = t_1 elif z <= -4.9e+38: tmp = t_2 elif z <= -4e-169: tmp = c * (a * j) elif z <= 7e+78: tmp = y * (i * -j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (z <= -2.35e+180) tmp = t_2; elseif (z <= -3.3e+140) tmp = t_1; elseif (z <= -4.9e+38) tmp = t_2; elseif (z <= -4e-169) tmp = Float64(c * Float64(a * j)); elseif (z <= 7e+78) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = b * (z * -c); tmp = 0.0; if (z <= -2.35e+180) tmp = t_2; elseif (z <= -3.3e+140) tmp = t_1; elseif (z <= -4.9e+38) tmp = t_2; elseif (z <= -4e-169) tmp = c * (a * j); elseif (z <= 7e+78) tmp = y * (i * -j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.35e+180], t$95$2, If[LessEqual[z, -3.3e+140], t$95$1, If[LessEqual[z, -4.9e+38], t$95$2, If[LessEqual[z, -4e-169], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+78], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -2.35 \cdot 10^{+180}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{+38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-169}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+78}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.34999999999999986e180 or -3.3000000000000002e140 < z < -4.90000000000000002e38Initial program 64.5%
Taylor expanded in i around 0 60.9%
Taylor expanded in z around inf 75.1%
Taylor expanded in b around inf 61.6%
*-commutative61.6%
*-commutative61.6%
associate-*l*63.4%
*-commutative63.4%
associate-/l*63.3%
Simplified63.3%
Taylor expanded in t around 0 50.5%
associate-*r*50.5%
mul-1-neg50.5%
Simplified50.5%
if -2.34999999999999986e180 < z < -3.3000000000000002e140 or 7.0000000000000003e78 < z Initial program 65.4%
Taylor expanded in y around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in z around inf 50.4%
if -4.90000000000000002e38 < z < -4.00000000000000008e-169Initial program 74.4%
Taylor expanded in a around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in j around inf 42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in a around 0 42.9%
associate-*r*44.7%
*-commutative44.7%
associate-*l*47.3%
Simplified47.3%
if -4.00000000000000008e-169 < z < 7.0000000000000003e78Initial program 82.4%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around 0 35.2%
neg-mul-135.2%
distribute-lft-neg-in35.2%
Simplified35.2%
Final simplification43.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= z -4.6e+181)
(* c (* z (- b)))
(if (<= z -5.4e+140)
t_1
(if (<= z -5.4e+37)
(* b (* z (- c)))
(if (<= z -7.2e-167)
(* c (* a j))
(if (<= z 2.4e+84) (* y (* i (- j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -4.6e+181) {
tmp = c * (z * -b);
} else if (z <= -5.4e+140) {
tmp = t_1;
} else if (z <= -5.4e+37) {
tmp = b * (z * -c);
} else if (z <= -7.2e-167) {
tmp = c * (a * j);
} else if (z <= 2.4e+84) {
tmp = y * (i * -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 = y * (x * z)
if (z <= (-4.6d+181)) then
tmp = c * (z * -b)
else if (z <= (-5.4d+140)) then
tmp = t_1
else if (z <= (-5.4d+37)) then
tmp = b * (z * -c)
else if (z <= (-7.2d-167)) then
tmp = c * (a * j)
else if (z <= 2.4d+84) then
tmp = y * (i * -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 = y * (x * z);
double tmp;
if (z <= -4.6e+181) {
tmp = c * (z * -b);
} else if (z <= -5.4e+140) {
tmp = t_1;
} else if (z <= -5.4e+37) {
tmp = b * (z * -c);
} else if (z <= -7.2e-167) {
tmp = c * (a * j);
} else if (z <= 2.4e+84) {
tmp = y * (i * -j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if z <= -4.6e+181: tmp = c * (z * -b) elif z <= -5.4e+140: tmp = t_1 elif z <= -5.4e+37: tmp = b * (z * -c) elif z <= -7.2e-167: tmp = c * (a * j) elif z <= 2.4e+84: tmp = y * (i * -j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (z <= -4.6e+181) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= -5.4e+140) tmp = t_1; elseif (z <= -5.4e+37) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= -7.2e-167) tmp = Float64(c * Float64(a * j)); elseif (z <= 2.4e+84) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (z <= -4.6e+181) tmp = c * (z * -b); elseif (z <= -5.4e+140) tmp = t_1; elseif (z <= -5.4e+37) tmp = b * (z * -c); elseif (z <= -7.2e-167) tmp = c * (a * j); elseif (z <= 2.4e+84) tmp = y * (i * -j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.6e+181], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.4e+140], t$95$1, If[LessEqual[z, -5.4e+37], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.2e-167], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+84], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+181}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{+37}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-167}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+84}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.5999999999999998e181Initial program 50.4%
Taylor expanded in i around 0 47.3%
Taylor expanded in z around inf 69.1%
Taylor expanded in b around inf 63.6%
*-commutative63.6%
*-commutative63.6%
associate-*l*66.7%
*-commutative66.7%
associate-/l*69.4%
Simplified69.4%
Taylor expanded in t around 0 57.0%
neg-mul-157.0%
Simplified57.0%
if -4.5999999999999998e181 < z < -5.40000000000000036e140 or 2.4e84 < z Initial program 65.4%
Taylor expanded in y around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in z around inf 50.4%
if -5.40000000000000036e140 < z < -5.39999999999999973e37Initial program 83.3%
Taylor expanded in i around 0 79.1%
Taylor expanded in z around inf 83.1%
Taylor expanded in b around inf 59.1%
*-commutative59.1%
*-commutative59.1%
associate-*l*59.0%
*-commutative59.0%
associate-/l*55.1%
Simplified55.1%
Taylor expanded in t around 0 45.9%
associate-*r*45.9%
mul-1-neg45.9%
Simplified45.9%
if -5.39999999999999973e37 < z < -7.2000000000000002e-167Initial program 74.4%
Taylor expanded in a around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in j around inf 42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in a around 0 42.9%
associate-*r*44.7%
*-commutative44.7%
associate-*l*47.3%
Simplified47.3%
if -7.2000000000000002e-167 < z < 2.4e84Initial program 82.4%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around 0 35.2%
neg-mul-135.2%
distribute-lft-neg-in35.2%
Simplified35.2%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= z -1.56e+180)
(* c (* z (- b)))
(if (<= z -4.4e+140)
t_1
(if (<= z -4.5e+39)
(* b (* z (- c)))
(if (<= z -5.4e-167)
(* c (* a j))
(if (<= z 2e+84) (* i (* y (- j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -1.56e+180) {
tmp = c * (z * -b);
} else if (z <= -4.4e+140) {
tmp = t_1;
} else if (z <= -4.5e+39) {
tmp = b * (z * -c);
} else if (z <= -5.4e-167) {
tmp = c * (a * j);
} else if (z <= 2e+84) {
tmp = i * (y * -j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (z <= (-1.56d+180)) then
tmp = c * (z * -b)
else if (z <= (-4.4d+140)) then
tmp = t_1
else if (z <= (-4.5d+39)) then
tmp = b * (z * -c)
else if (z <= (-5.4d-167)) then
tmp = c * (a * j)
else if (z <= 2d+84) then
tmp = i * (y * -j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -1.56e+180) {
tmp = c * (z * -b);
} else if (z <= -4.4e+140) {
tmp = t_1;
} else if (z <= -4.5e+39) {
tmp = b * (z * -c);
} else if (z <= -5.4e-167) {
tmp = c * (a * j);
} else if (z <= 2e+84) {
tmp = i * (y * -j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if z <= -1.56e+180: tmp = c * (z * -b) elif z <= -4.4e+140: tmp = t_1 elif z <= -4.5e+39: tmp = b * (z * -c) elif z <= -5.4e-167: tmp = c * (a * j) elif z <= 2e+84: tmp = i * (y * -j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (z <= -1.56e+180) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= -4.4e+140) tmp = t_1; elseif (z <= -4.5e+39) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= -5.4e-167) tmp = Float64(c * Float64(a * j)); elseif (z <= 2e+84) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (z <= -1.56e+180) tmp = c * (z * -b); elseif (z <= -4.4e+140) tmp = t_1; elseif (z <= -4.5e+39) tmp = b * (z * -c); elseif (z <= -5.4e-167) tmp = c * (a * j); elseif (z <= 2e+84) tmp = i * (y * -j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.56e+180], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.4e+140], t$95$1, If[LessEqual[z, -4.5e+39], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.4e-167], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+84], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -1.56 \cdot 10^{+180}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{+39}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-167}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+84}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.55999999999999989e180Initial program 50.4%
Taylor expanded in i around 0 47.3%
Taylor expanded in z around inf 69.1%
Taylor expanded in b around inf 63.6%
*-commutative63.6%
*-commutative63.6%
associate-*l*66.7%
*-commutative66.7%
associate-/l*69.4%
Simplified69.4%
Taylor expanded in t around 0 57.0%
neg-mul-157.0%
Simplified57.0%
if -1.55999999999999989e180 < z < -4.3999999999999997e140 or 2.00000000000000012e84 < z Initial program 65.4%
Taylor expanded in y around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in z around inf 50.4%
if -4.3999999999999997e140 < z < -4.49999999999999996e39Initial program 83.3%
Taylor expanded in i around 0 79.1%
Taylor expanded in z around inf 83.1%
Taylor expanded in b around inf 59.1%
*-commutative59.1%
*-commutative59.1%
associate-*l*59.0%
*-commutative59.0%
associate-/l*55.1%
Simplified55.1%
Taylor expanded in t around 0 45.9%
associate-*r*45.9%
mul-1-neg45.9%
Simplified45.9%
if -4.49999999999999996e39 < z < -5.4000000000000001e-167Initial program 74.4%
Taylor expanded in a around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in j around inf 42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in a around 0 42.9%
associate-*r*44.7%
*-commutative44.7%
associate-*l*47.3%
Simplified47.3%
if -5.4000000000000001e-167 < z < 2.00000000000000012e84Initial program 82.4%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around 0 38.8%
associate-*r*38.8%
neg-mul-138.8%
Simplified38.8%
Final simplification45.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -2.3e-49)
t_1
(if (<= c 9.5e-284)
(* y (- (* x z) (* i j)))
(if (<= c 9.5e-129)
(* i (- (* t b) (* y j)))
(if (<= c 1.55e+157) (* x (- (* y z) (* t a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.3e-49) {
tmp = t_1;
} else if (c <= 9.5e-284) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 9.5e-129) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 1.55e+157) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-2.3d-49)) then
tmp = t_1
else if (c <= 9.5d-284) then
tmp = y * ((x * z) - (i * j))
else if (c <= 9.5d-129) then
tmp = i * ((t * b) - (y * j))
else if (c <= 1.55d+157) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.3e-49) {
tmp = t_1;
} else if (c <= 9.5e-284) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 9.5e-129) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 1.55e+157) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.3e-49: tmp = t_1 elif c <= 9.5e-284: tmp = y * ((x * z) - (i * j)) elif c <= 9.5e-129: tmp = i * ((t * b) - (y * j)) elif c <= 1.55e+157: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.3e-49) tmp = t_1; elseif (c <= 9.5e-284) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 9.5e-129) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 1.55e+157) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.3e-49) tmp = t_1; elseif (c <= 9.5e-284) tmp = y * ((x * z) - (i * j)); elseif (c <= 9.5e-129) tmp = i * ((t * b) - (y * j)); elseif (c <= 1.55e+157) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.3e-49], t$95$1, If[LessEqual[c, 9.5e-284], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-129], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e+157], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.3 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-284}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-129}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+157}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.2999999999999999e-49 or 1.5499999999999999e157 < c Initial program 64.5%
Taylor expanded in c around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -2.2999999999999999e-49 < c < 9.5000000000000003e-284Initial program 83.5%
Taylor expanded in y around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
if 9.5000000000000003e-284 < c < 9.5000000000000006e-129Initial program 83.9%
Taylor expanded in i around 0 80.6%
Taylor expanded in i around inf 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
Simplified69.0%
if 9.5000000000000006e-129 < c < 1.5499999999999999e157Initial program 71.2%
Taylor expanded in x around inf 56.2%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -5e+51)
t_1
(if (<= b -8e-87)
(* c (- (* a j) (* z b)))
(if (<= b 1.65e-70) (* a (- (* c j) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5e+51) {
tmp = t_1;
} else if (b <= -8e-87) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 1.65e-70) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-5d+51)) then
tmp = t_1
else if (b <= (-8d-87)) then
tmp = c * ((a * j) - (z * b))
else if (b <= 1.65d-70) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5e+51) {
tmp = t_1;
} else if (b <= -8e-87) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 1.65e-70) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5e+51: tmp = t_1 elif b <= -8e-87: tmp = c * ((a * j) - (z * b)) elif b <= 1.65e-70: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5e+51) tmp = t_1; elseif (b <= -8e-87) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (b <= 1.65e-70) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5e+51) tmp = t_1; elseif (b <= -8e-87) tmp = c * ((a * j) - (z * b)); elseif (b <= 1.65e-70) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e+51], t$95$1, If[LessEqual[b, -8e-87], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e-70], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-87}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-70}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5e51 or 1.65000000000000008e-70 < b Initial program 70.1%
Taylor expanded in b around inf 63.5%
if -5e51 < b < -8.00000000000000014e-87Initial program 72.0%
Taylor expanded in c around inf 55.8%
*-commutative55.8%
Simplified55.8%
if -8.00000000000000014e-87 < b < 1.65000000000000008e-70Initial program 77.4%
Taylor expanded in a around inf 45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
Simplified45.2%
Final simplification55.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= t -2.3e+232)
t_1
(if (<= t -1.2e-14)
(* b (* t i))
(if (<= t 2.25e-32) (* 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 = a * (x * -t);
double tmp;
if (t <= -2.3e+232) {
tmp = t_1;
} else if (t <= -1.2e-14) {
tmp = b * (t * i);
} else if (t <= 2.25e-32) {
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 = a * (x * -t)
if (t <= (-2.3d+232)) then
tmp = t_1
else if (t <= (-1.2d-14)) then
tmp = b * (t * i)
else if (t <= 2.25d-32) 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 = a * (x * -t);
double tmp;
if (t <= -2.3e+232) {
tmp = t_1;
} else if (t <= -1.2e-14) {
tmp = b * (t * i);
} else if (t <= 2.25e-32) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if t <= -2.3e+232: tmp = t_1 elif t <= -1.2e-14: tmp = b * (t * i) elif t <= 2.25e-32: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (t <= -2.3e+232) tmp = t_1; elseif (t <= -1.2e-14) tmp = Float64(b * Float64(t * i)); elseif (t <= 2.25e-32) 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 = a * (x * -t); tmp = 0.0; if (t <= -2.3e+232) tmp = t_1; elseif (t <= -1.2e-14) tmp = b * (t * i); elseif (t <= 2.25e-32) 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[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.3e+232], t$95$1, If[LessEqual[t, -1.2e-14], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e-32], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{+232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{-14}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-32}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.30000000000000006e232 or 2.25000000000000002e-32 < t Initial program 64.6%
Taylor expanded in a around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in j around 0 38.1%
neg-mul-138.1%
distribute-lft-neg-in38.1%
*-commutative38.1%
Simplified38.1%
if -2.30000000000000006e232 < t < -1.2e-14Initial program 61.0%
Taylor expanded in t around inf 59.8%
distribute-lft-out--59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in a around 0 42.9%
neg-mul-142.9%
*-commutative42.9%
distribute-rgt-neg-in42.9%
Simplified42.9%
Taylor expanded in t around 0 45.2%
*-commutative45.2%
Simplified45.2%
if -1.2e-14 < t < 2.25000000000000002e-32Initial program 83.0%
Taylor expanded in x around inf 33.2%
Taylor expanded in y around inf 30.8%
Final simplification35.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))))
(if (<= t -1.1e+232)
t_1
(if (<= t -1.5e-13)
(* b (* t i))
(if (<= t 3.2e-34) (* 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 = x * (t * -a);
double tmp;
if (t <= -1.1e+232) {
tmp = t_1;
} else if (t <= -1.5e-13) {
tmp = b * (t * i);
} else if (t <= 3.2e-34) {
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 = x * (t * -a)
if (t <= (-1.1d+232)) then
tmp = t_1
else if (t <= (-1.5d-13)) then
tmp = b * (t * i)
else if (t <= 3.2d-34) 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 = x * (t * -a);
double tmp;
if (t <= -1.1e+232) {
tmp = t_1;
} else if (t <= -1.5e-13) {
tmp = b * (t * i);
} else if (t <= 3.2e-34) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) tmp = 0 if t <= -1.1e+232: tmp = t_1 elif t <= -1.5e-13: tmp = b * (t * i) elif t <= 3.2e-34: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) tmp = 0.0 if (t <= -1.1e+232) tmp = t_1; elseif (t <= -1.5e-13) tmp = Float64(b * Float64(t * i)); elseif (t <= 3.2e-34) 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 = x * (t * -a); tmp = 0.0; if (t <= -1.1e+232) tmp = t_1; elseif (t <= -1.5e-13) tmp = b * (t * i); elseif (t <= 3.2e-34) 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[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e+232], t$95$1, If[LessEqual[t, -1.5e-13], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-34], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{+232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-13}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-34}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.1e232 or 3.20000000000000003e-34 < t Initial program 64.6%
Taylor expanded in x around inf 48.1%
Taylor expanded in y around 0 41.4%
mul-1-neg41.4%
distribute-lft-neg-out41.4%
*-commutative41.4%
Simplified41.4%
if -1.1e232 < t < -1.49999999999999992e-13Initial program 61.0%
Taylor expanded in t around inf 59.8%
distribute-lft-out--59.8%
*-commutative59.8%
Simplified59.8%
Taylor expanded in a around 0 42.9%
neg-mul-142.9%
*-commutative42.9%
distribute-rgt-neg-in42.9%
Simplified42.9%
Taylor expanded in t around 0 45.2%
*-commutative45.2%
Simplified45.2%
if -1.49999999999999992e-13 < t < 3.20000000000000003e-34Initial program 83.0%
Taylor expanded in x around inf 33.2%
Taylor expanded in y around inf 30.8%
Final simplification36.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2e-80) (not (<= b 1.65e-70))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2e-80) || !(b <= 1.65e-70)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2d-80)) .or. (.not. (b <= 1.65d-70))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2e-80) || !(b <= 1.65e-70)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2e-80) or not (b <= 1.65e-70): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2e-80) || !(b <= 1.65e-70)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2e-80) || ~((b <= 1.65e-70))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2e-80], N[Not[LessEqual[b, 1.65e-70]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2 \cdot 10^{-80} \lor \neg \left(b \leq 1.65 \cdot 10^{-70}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -1.99999999999999992e-80 or 1.65000000000000008e-70 < b Initial program 70.5%
Taylor expanded in b around inf 59.0%
if -1.99999999999999992e-80 < b < 1.65000000000000008e-70Initial program 77.4%
Taylor expanded in a around inf 45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
Simplified45.2%
Final simplification53.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -5.8e+53) (not (<= t 5.2e-68))) (* b (* t i)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5.8e+53) || !(t <= 5.2e-68)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-5.8d+53)) .or. (.not. (t <= 5.2d-68))) then
tmp = b * (t * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5.8e+53) || !(t <= 5.2e-68)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -5.8e+53) or not (t <= 5.2e-68): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -5.8e+53) || !(t <= 5.2e-68)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -5.8e+53) || ~((t <= 5.2e-68))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -5.8e+53], N[Not[LessEqual[t, 5.2e-68]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{+53} \lor \neg \left(t \leq 5.2 \cdot 10^{-68}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -5.8000000000000004e53 or 5.1999999999999996e-68 < t Initial program 61.6%
Taylor expanded in t around inf 56.5%
distribute-lft-out--56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in a around 0 34.1%
neg-mul-134.1%
*-commutative34.1%
distribute-rgt-neg-in34.1%
Simplified34.1%
Taylor expanded in t around 0 34.1%
*-commutative34.1%
Simplified34.1%
if -5.8000000000000004e53 < t < 5.1999999999999996e-68Initial program 83.7%
Taylor expanded in a around inf 30.6%
+-commutative30.6%
mul-1-neg30.6%
unsub-neg30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in j around inf 26.2%
*-commutative26.2%
Simplified26.2%
Final simplification30.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1e+197) (not (<= j 1.9e-42))) (* c (* a j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1e+197) || !(j <= 1.9e-42)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1d+197)) .or. (.not. (j <= 1.9d-42))) then
tmp = c * (a * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1e+197) || !(j <= 1.9e-42)) {
tmp = c * (a * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1e+197) or not (j <= 1.9e-42): tmp = c * (a * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1e+197) || !(j <= 1.9e-42)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1e+197) || ~((j <= 1.9e-42))) tmp = c * (a * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1e+197], N[Not[LessEqual[j, 1.9e-42]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1 \cdot 10^{+197} \lor \neg \left(j \leq 1.9 \cdot 10^{-42}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -9.9999999999999995e196 or 1.90000000000000009e-42 < j Initial program 67.5%
Taylor expanded in a around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in j around inf 36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in a around 0 36.0%
associate-*r*38.1%
*-commutative38.1%
associate-*l*39.2%
Simplified39.2%
if -9.9999999999999995e196 < j < 1.90000000000000009e-42Initial program 76.2%
Taylor expanded in t around inf 43.3%
distribute-lft-out--43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in a around 0 25.7%
neg-mul-125.7%
*-commutative25.7%
distribute-rgt-neg-in25.7%
Simplified25.7%
Taylor expanded in t around 0 25.1%
*-commutative25.1%
Simplified25.1%
Final simplification30.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.08e+197) (not (<= j 4.6e-43))) (* c (* a j)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.08e+197) || !(j <= 4.6e-43)) {
tmp = c * (a * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.08d+197)) .or. (.not. (j <= 4.6d-43))) then
tmp = c * (a * j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.08e+197) || !(j <= 4.6e-43)) {
tmp = c * (a * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.08e+197) or not (j <= 4.6e-43): tmp = c * (a * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.08e+197) || !(j <= 4.6e-43)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.08e+197) || ~((j <= 4.6e-43))) tmp = c * (a * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.08e+197], N[Not[LessEqual[j, 4.6e-43]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.08 \cdot 10^{+197} \lor \neg \left(j \leq 4.6 \cdot 10^{-43}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if j < -1.07999999999999998e197 or 4.5999999999999998e-43 < j Initial program 67.5%
Taylor expanded in a around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in j around inf 36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in a around 0 36.0%
associate-*r*38.1%
*-commutative38.1%
associate-*l*39.2%
Simplified39.2%
if -1.07999999999999998e197 < j < 4.5999999999999998e-43Initial program 76.2%
Taylor expanded in t around inf 43.3%
distribute-lft-out--43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in a around 0 25.7%
neg-mul-125.7%
*-commutative25.7%
distribute-rgt-neg-in25.7%
Simplified25.7%
Taylor expanded in t around 0 25.1%
*-commutative25.1%
associate-*r*25.1%
*-commutative25.1%
associate-*r*25.7%
Simplified25.7%
Final simplification30.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -6e+54) (* b (* t i)) (if (<= t 2.1e-68) (* a (* c j)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6e+54) {
tmp = b * (t * i);
} else if (t <= 2.1e-68) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-6d+54)) then
tmp = b * (t * i)
else if (t <= 2.1d-68) then
tmp = a * (c * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6e+54) {
tmp = b * (t * i);
} else if (t <= 2.1e-68) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6e+54: tmp = b * (t * i) elif t <= 2.1e-68: tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6e+54) tmp = Float64(b * Float64(t * i)); elseif (t <= 2.1e-68) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6e+54) tmp = b * (t * i); elseif (t <= 2.1e-68) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6e+54], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e-68], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6 \cdot 10^{+54}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-68}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -5.9999999999999998e54Initial program 57.4%
Taylor expanded in t around inf 64.9%
distribute-lft-out--64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in a around 0 40.1%
neg-mul-140.1%
*-commutative40.1%
distribute-rgt-neg-in40.1%
Simplified40.1%
Taylor expanded in t around 0 40.3%
*-commutative40.3%
Simplified40.3%
if -5.9999999999999998e54 < t < 2.10000000000000008e-68Initial program 83.7%
Taylor expanded in a around inf 30.6%
+-commutative30.6%
mul-1-neg30.6%
unsub-neg30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in j around inf 26.2%
*-commutative26.2%
Simplified26.2%
if 2.10000000000000008e-68 < t Initial program 64.3%
Taylor expanded in t around inf 51.1%
distribute-lft-out--51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in a around 0 30.3%
neg-mul-130.3%
*-commutative30.3%
distribute-rgt-neg-in30.3%
Simplified30.3%
Taylor expanded in t around 0 30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in b around 0 30.3%
*-commutative30.3%
associate-*r*31.6%
Simplified31.6%
Final simplification30.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -8.5e-20) (* b (* t i)) (if (<= t 1.32e-18) (* x (* y z)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -8.5e-20) {
tmp = b * (t * i);
} else if (t <= 1.32e-18) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-8.5d-20)) then
tmp = b * (t * i)
else if (t <= 1.32d-18) then
tmp = x * (y * z)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -8.5e-20) {
tmp = b * (t * i);
} else if (t <= 1.32e-18) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -8.5e-20: tmp = b * (t * i) elif t <= 1.32e-18: tmp = x * (y * z) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -8.5e-20) tmp = Float64(b * Float64(t * i)); elseif (t <= 1.32e-18) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -8.5e-20) tmp = b * (t * i); elseif (t <= 1.32e-18) tmp = x * (y * z); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -8.5e-20], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.32e-18], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{-20}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-18}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -8.5000000000000005e-20Initial program 63.3%
Taylor expanded in t around inf 61.1%
distribute-lft-out--61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in a around 0 38.3%
neg-mul-138.3%
*-commutative38.3%
distribute-rgt-neg-in38.3%
Simplified38.3%
Taylor expanded in t around 0 38.5%
*-commutative38.5%
Simplified38.5%
if -8.5000000000000005e-20 < t < 1.3199999999999999e-18Initial program 83.2%
Taylor expanded in x around inf 34.2%
Taylor expanded in y around inf 31.1%
if 1.3199999999999999e-18 < t Initial program 62.5%
Taylor expanded in t around inf 56.2%
distribute-lft-out--56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in a around 0 32.5%
neg-mul-132.5%
*-commutative32.5%
distribute-rgt-neg-in32.5%
Simplified32.5%
Taylor expanded in t around 0 32.5%
*-commutative32.5%
Simplified32.5%
Taylor expanded in b around 0 32.5%
*-commutative32.5%
associate-*r*34.0%
Simplified34.0%
Final simplification33.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 73.2%
Taylor expanded in a around inf 34.3%
+-commutative34.3%
mul-1-neg34.3%
unsub-neg34.3%
*-commutative34.3%
Simplified34.3%
Taylor expanded in j around inf 18.9%
*-commutative18.9%
Simplified18.9%
Final simplification18.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024066
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))