
(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 32 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 (- (* y (- (* x z) (* j i))) (* a (- (* x t) (* j c)))))
(t_2 (* b (- (* t i) (* c z))))
(t_3 (- (* j (- (* a c) (* i y))) (- (* x (- (* a t) (* z y))) t_2))))
(if (<= t_3 (- INFINITY)) (+ t_1 t_2) (if (<= t_3 INFINITY) t_3 t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
double t_2 = b * ((t * i) - (c * z));
double t_3 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - t_2);
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = t_1 + t_2;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
double t_2 = b * ((t * i) - (c * z));
double t_3 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - t_2);
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = t_1 + t_2;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))) t_2 = b * ((t * i) - (c * z)) t_3 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - t_2) tmp = 0 if t_3 <= -math.inf: tmp = t_1 + t_2 elif t_3 <= math.inf: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(j * i))) - Float64(a * Float64(Float64(x * t) - Float64(j * c)))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(c * z))) t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(i * y))) - Float64(Float64(x * Float64(Float64(a * t) - Float64(z * y))) - t_2)) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(t_1 + t_2); elseif (t_3 <= Inf) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))); t_2 = b * ((t * i) - (c * z)); t_3 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - t_2); tmp = 0.0; if (t_3 <= -Inf) tmp = t_1 + t_2; elseif (t_3 <= Inf) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(j * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(t$95$1 + t$95$2), $MachinePrecision], If[LessEqual[t$95$3, Infinity], t$95$3, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - j \cdot i\right) - a \cdot \left(x \cdot t - j \cdot c\right)\\
t_2 := b \cdot \left(t \cdot i - c \cdot z\right)\\
t_3 := j \cdot \left(a \cdot c - i \cdot y\right) - \left(x \cdot \left(a \cdot t - z \cdot y\right) - t_2\right)\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;t_1 + t_2\\
\mathbf{elif}\;t_3 \leq \infty:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < -inf.0Initial program 83.6%
*-commutative83.6%
*-commutative83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in y around -inf 92.3%
Simplified92.3%
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)))) < +inf.0Initial program 95.1%
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%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around -inf 18.9%
Simplified29.7%
Taylor expanded in b around 0 51.5%
Final simplification88.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j 3e+55)
(+
(- (* y (- (* x z) (* j i))) (* a (- (* x t) (* j c))))
(* b (- (* t i) (* c z))))
(fma
j
(- (* a c) (* i y))
(- (* x (- (* z y) (* a t))) (* b (fma z c (* t (- i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= 3e+55) {
tmp = ((y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)))) + (b * ((t * i) - (c * z)));
} else {
tmp = fma(j, ((a * c) - (i * y)), ((x * ((z * y) - (a * t))) - (b * fma(z, c, (t * -i)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= 3e+55) tmp = Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(j * i))) - Float64(a * Float64(Float64(x * t) - Float64(j * c)))) + Float64(b * Float64(Float64(t * i) - Float64(c * z)))); else tmp = fma(j, Float64(Float64(a * c) - Float64(i * y)), Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(b * fma(z, c, Float64(t * Float64(-i)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, 3e+55], N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(j * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c + N[(t * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq 3 \cdot 10^{+55}:\\
\;\;\;\;\left(y \cdot \left(x \cdot z - j \cdot i\right) - a \cdot \left(x \cdot t - j \cdot c\right)\right) + b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - i \cdot y, x \cdot \left(z \cdot y - a \cdot t\right) - b \cdot \mathsf{fma}\left(z, c, t \cdot \left(-i\right)\right)\right)\\
\end{array}
\end{array}
if j < 3.00000000000000017e55Initial program 79.1%
*-commutative79.1%
*-commutative79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in y around -inf 84.6%
Simplified86.5%
if 3.00000000000000017e55 < j Initial program 79.0%
+-commutative79.0%
fma-def89.4%
*-commutative89.4%
*-commutative89.4%
fma-neg91.5%
distribute-lft-neg-out91.5%
*-commutative91.5%
Simplified91.5%
Final simplification87.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* c z)))))
(if (<= j 5e+55)
(+ (- (* y (- (* x z) (* j i))) (* a (- (* x t) (* j c)))) t_1)
(fma j (- (* a c) (* i y)) (+ (* x (- (* z y) (* a 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) - (c * z));
double tmp;
if (j <= 5e+55) {
tmp = ((y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)))) + t_1;
} else {
tmp = fma(j, ((a * c) - (i * y)), ((x * ((z * y) - (a * t))) + t_1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(c * z))) tmp = 0.0 if (j <= 5e+55) tmp = Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(j * i))) - Float64(a * Float64(Float64(x * t) - Float64(j * c)))) + t_1); else tmp = fma(j, Float64(Float64(a * c) - Float64(i * y)), Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) + t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, 5e+55], N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(j * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{if}\;j \leq 5 \cdot 10^{+55}:\\
\;\;\;\;\left(y \cdot \left(x \cdot z - j \cdot i\right) - a \cdot \left(x \cdot t - j \cdot c\right)\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - i \cdot y, x \cdot \left(z \cdot y - a \cdot t\right) + t_1\right)\\
\end{array}
\end{array}
if j < 5.00000000000000046e55Initial program 79.1%
*-commutative79.1%
*-commutative79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in y around -inf 84.6%
Simplified86.5%
if 5.00000000000000046e55 < j Initial program 79.0%
+-commutative79.0%
fma-def89.4%
*-commutative89.4%
*-commutative89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Final simplification87.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* i y)))
(- (* x (- (* a t) (* z y))) (* b (- (* t i) (* c z)))))))
(if (<= t_1 INFINITY)
t_1
(- (* y (- (* x z) (* j i))) (* a (- (* x t) (* j c)))))))
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) - (i * y))) - ((x * ((a * t) - (z * y))) - (b * ((t * i) - (c * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - (b * ((t * i) - (c * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - (b * ((t * i) - (c * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(i * y))) - Float64(Float64(x * Float64(Float64(a * t) - Float64(z * y))) - Float64(b * Float64(Float64(t * i) - Float64(c * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(j * i))) - Float64(a * Float64(Float64(x * t) - Float64(j * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (i * y))) - ((x * ((a * t) - (z * y))) - (b * ((t * i) - (c * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))); 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[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(j * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - i \cdot y\right) - \left(x \cdot \left(a \cdot t - z \cdot y\right) - b \cdot \left(t \cdot i - c \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - j \cdot i\right) - a \cdot \left(x \cdot t - j \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around -inf 18.9%
Simplified29.7%
Taylor expanded in b around 0 51.5%
Final simplification86.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* j i))) (* a (- (* x t) (* j c)))))
(t_2 (* x (- (* z y) (* a t))))
(t_3 (+ t_2 (* b (- (* t i) (* c z))))))
(if (<= b -2.5e+29)
t_3
(if (<= b -4.3e-281)
t_1
(if (<= b 1.2e-181)
(+ t_2 (* j (- (* a c) (* i y))))
(if (<= b 1.65e-52) 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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
double t_2 = x * ((z * y) - (a * t));
double t_3 = t_2 + (b * ((t * i) - (c * z)));
double tmp;
if (b <= -2.5e+29) {
tmp = t_3;
} else if (b <= -4.3e-281) {
tmp = t_1;
} else if (b <= 1.2e-181) {
tmp = t_2 + (j * ((a * c) - (i * y)));
} else if (b <= 1.65e-52) {
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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)))
t_2 = x * ((z * y) - (a * t))
t_3 = t_2 + (b * ((t * i) - (c * z)))
if (b <= (-2.5d+29)) then
tmp = t_3
else if (b <= (-4.3d-281)) then
tmp = t_1
else if (b <= 1.2d-181) then
tmp = t_2 + (j * ((a * c) - (i * y)))
else if (b <= 1.65d-52) 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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
double t_2 = x * ((z * y) - (a * t));
double t_3 = t_2 + (b * ((t * i) - (c * z)));
double tmp;
if (b <= -2.5e+29) {
tmp = t_3;
} else if (b <= -4.3e-281) {
tmp = t_1;
} else if (b <= 1.2e-181) {
tmp = t_2 + (j * ((a * c) - (i * y)));
} else if (b <= 1.65e-52) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))) t_2 = x * ((z * y) - (a * t)) t_3 = t_2 + (b * ((t * i) - (c * z))) tmp = 0 if b <= -2.5e+29: tmp = t_3 elif b <= -4.3e-281: tmp = t_1 elif b <= 1.2e-181: tmp = t_2 + (j * ((a * c) - (i * y))) elif b <= 1.65e-52: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(j * i))) - Float64(a * Float64(Float64(x * t) - Float64(j * c)))) t_2 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) t_3 = Float64(t_2 + Float64(b * Float64(Float64(t * i) - Float64(c * z)))) tmp = 0.0 if (b <= -2.5e+29) tmp = t_3; elseif (b <= -4.3e-281) tmp = t_1; elseif (b <= 1.2e-181) tmp = Float64(t_2 + Float64(j * Float64(Float64(a * c) - Float64(i * y)))); elseif (b <= 1.65e-52) 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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))); t_2 = x * ((z * y) - (a * t)); t_3 = t_2 + (b * ((t * i) - (c * z))); tmp = 0.0; if (b <= -2.5e+29) tmp = t_3; elseif (b <= -4.3e-281) tmp = t_1; elseif (b <= 1.2e-181) tmp = t_2 + (j * ((a * c) - (i * y))); elseif (b <= 1.65e-52) 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[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(j * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+29], t$95$3, If[LessEqual[b, -4.3e-281], t$95$1, If[LessEqual[b, 1.2e-181], N[(t$95$2 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e-52], t$95$1, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - j \cdot i\right) - a \cdot \left(x \cdot t - j \cdot c\right)\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right)\\
t_3 := t_2 + b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+29}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -4.3 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-181}:\\
\;\;\;\;t_2 + j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.5e29 or 1.64999999999999998e-52 < b Initial program 80.8%
*-commutative80.8%
*-commutative80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in j around 0 75.4%
if -2.5e29 < b < -4.30000000000000023e-281 or 1.2000000000000001e-181 < b < 1.64999999999999998e-52Initial program 78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in y around -inf 83.0%
Simplified86.0%
Taylor expanded in b around 0 86.6%
if -4.30000000000000023e-281 < b < 1.2000000000000001e-181Initial program 74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 80.5%
Final simplification80.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* j i))) (* a (- (* x t) (* j c)))))
(t_2 (+ (* x (- (* z y) (* a t))) (* b (- (* t i) (* c z))))))
(if (<= b -3.2e+29)
t_2
(if (<= b -4e-281)
t_1
(if (<= b 8.5e-182)
(+ (* j (- (* a c) (* i y))) (- (* x (* z y)) (* x (* a t))))
(if (<= b 9e-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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
double t_2 = (x * ((z * y) - (a * t))) + (b * ((t * i) - (c * z)));
double tmp;
if (b <= -3.2e+29) {
tmp = t_2;
} else if (b <= -4e-281) {
tmp = t_1;
} else if (b <= 8.5e-182) {
tmp = (j * ((a * c) - (i * y))) + ((x * (z * y)) - (x * (a * t)));
} else if (b <= 9e-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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)))
t_2 = (x * ((z * y) - (a * t))) + (b * ((t * i) - (c * z)))
if (b <= (-3.2d+29)) then
tmp = t_2
else if (b <= (-4d-281)) then
tmp = t_1
else if (b <= 8.5d-182) then
tmp = (j * ((a * c) - (i * y))) + ((x * (z * y)) - (x * (a * t)))
else if (b <= 9d-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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c)));
double t_2 = (x * ((z * y) - (a * t))) + (b * ((t * i) - (c * z)));
double tmp;
if (b <= -3.2e+29) {
tmp = t_2;
} else if (b <= -4e-281) {
tmp = t_1;
} else if (b <= 8.5e-182) {
tmp = (j * ((a * c) - (i * y))) + ((x * (z * y)) - (x * (a * t)));
} else if (b <= 9e-53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))) t_2 = (x * ((z * y) - (a * t))) + (b * ((t * i) - (c * z))) tmp = 0 if b <= -3.2e+29: tmp = t_2 elif b <= -4e-281: tmp = t_1 elif b <= 8.5e-182: tmp = (j * ((a * c) - (i * y))) + ((x * (z * y)) - (x * (a * t))) elif b <= 9e-53: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(j * i))) - Float64(a * Float64(Float64(x * t) - Float64(j * c)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) + Float64(b * Float64(Float64(t * i) - Float64(c * z)))) tmp = 0.0 if (b <= -3.2e+29) tmp = t_2; elseif (b <= -4e-281) tmp = t_1; elseif (b <= 8.5e-182) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(i * y))) + Float64(Float64(x * Float64(z * y)) - Float64(x * Float64(a * t)))); elseif (b <= 9e-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 = (y * ((x * z) - (j * i))) - (a * ((x * t) - (j * c))); t_2 = (x * ((z * y) - (a * t))) + (b * ((t * i) - (c * z))); tmp = 0.0; if (b <= -3.2e+29) tmp = t_2; elseif (b <= -4e-281) tmp = t_1; elseif (b <= 8.5e-182) tmp = (j * ((a * c) - (i * y))) + ((x * (z * y)) - (x * (a * t))); elseif (b <= 9e-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[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * t), $MachinePrecision] - N[(j * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+29], t$95$2, If[LessEqual[b, -4e-281], t$95$1, If[LessEqual[b, 8.5e-182], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] - N[(x * N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-53], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - j \cdot i\right) - a \cdot \left(x \cdot t - j \cdot c\right)\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) + b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-182}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right) + \left(x \cdot \left(z \cdot y\right) - x \cdot \left(a \cdot t\right)\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.19999999999999987e29 or 8.9999999999999997e-53 < b Initial program 80.8%
*-commutative80.8%
*-commutative80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in j around 0 75.4%
if -3.19999999999999987e29 < b < -4.0000000000000001e-281 or 8.5000000000000001e-182 < b < 8.9999999999999997e-53Initial program 78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in y around -inf 83.0%
Simplified86.0%
Taylor expanded in b around 0 86.6%
if -4.0000000000000001e-281 < b < 8.5000000000000001e-182Initial program 74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 80.5%
cancel-sign-sub-inv80.5%
distribute-rgt-in80.5%
*-commutative80.5%
distribute-lft-neg-in80.5%
distribute-rgt-neg-in80.5%
Applied egg-rr80.5%
Final simplification80.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* z y) (* a t))) (* b (* c z))))
(t_2 (* j (- (* a c) (* i y))))
(t_3 (+ t_2 (* t (* i b)))))
(if (<= x -4e+85)
t_1
(if (<= x -1e-21)
(+ t_2 (* x (* z y)))
(if (<= x -3.6e-228)
t_3
(if (<= x 6.6e-306)
(- t_2 (* z (* c b)))
(if (<= x 2.5e-83) t_3 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((z * y) - (a * t))) - (b * (c * z));
double t_2 = j * ((a * c) - (i * y));
double t_3 = t_2 + (t * (i * b));
double tmp;
if (x <= -4e+85) {
tmp = t_1;
} else if (x <= -1e-21) {
tmp = t_2 + (x * (z * y));
} else if (x <= -3.6e-228) {
tmp = t_3;
} else if (x <= 6.6e-306) {
tmp = t_2 - (z * (c * b));
} else if (x <= 2.5e-83) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x * ((z * y) - (a * t))) - (b * (c * z))
t_2 = j * ((a * c) - (i * y))
t_3 = t_2 + (t * (i * b))
if (x <= (-4d+85)) then
tmp = t_1
else if (x <= (-1d-21)) then
tmp = t_2 + (x * (z * y))
else if (x <= (-3.6d-228)) then
tmp = t_3
else if (x <= 6.6d-306) then
tmp = t_2 - (z * (c * b))
else if (x <= 2.5d-83) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((z * y) - (a * t))) - (b * (c * z));
double t_2 = j * ((a * c) - (i * y));
double t_3 = t_2 + (t * (i * b));
double tmp;
if (x <= -4e+85) {
tmp = t_1;
} else if (x <= -1e-21) {
tmp = t_2 + (x * (z * y));
} else if (x <= -3.6e-228) {
tmp = t_3;
} else if (x <= 6.6e-306) {
tmp = t_2 - (z * (c * b));
} else if (x <= 2.5e-83) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((z * y) - (a * t))) - (b * (c * z)) t_2 = j * ((a * c) - (i * y)) t_3 = t_2 + (t * (i * b)) tmp = 0 if x <= -4e+85: tmp = t_1 elif x <= -1e-21: tmp = t_2 + (x * (z * y)) elif x <= -3.6e-228: tmp = t_3 elif x <= 6.6e-306: tmp = t_2 - (z * (c * b)) elif x <= 2.5e-83: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(b * Float64(c * z))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(i * y))) t_3 = Float64(t_2 + Float64(t * Float64(i * b))) tmp = 0.0 if (x <= -4e+85) tmp = t_1; elseif (x <= -1e-21) tmp = Float64(t_2 + Float64(x * Float64(z * y))); elseif (x <= -3.6e-228) tmp = t_3; elseif (x <= 6.6e-306) tmp = Float64(t_2 - Float64(z * Float64(c * b))); elseif (x <= 2.5e-83) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((z * y) - (a * t))) - (b * (c * z)); t_2 = j * ((a * c) - (i * y)); t_3 = t_2 + (t * (i * b)); tmp = 0.0; if (x <= -4e+85) tmp = t_1; elseif (x <= -1e-21) tmp = t_2 + (x * (z * y)); elseif (x <= -3.6e-228) tmp = t_3; elseif (x <= 6.6e-306) tmp = t_2 - (z * (c * b)); elseif (x <= 2.5e-83) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+85], t$95$1, If[LessEqual[x, -1e-21], N[(t$95$2 + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.6e-228], t$95$3, If[LessEqual[x, 6.6e-306], N[(t$95$2 - N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-83], t$95$3, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - a \cdot t\right) - b \cdot \left(c \cdot z\right)\\
t_2 := j \cdot \left(a \cdot c - i \cdot y\right)\\
t_3 := t_2 + t \cdot \left(i \cdot b\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-21}:\\
\;\;\;\;t_2 + x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{-228}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-306}:\\
\;\;\;\;t_2 - z \cdot \left(c \cdot b\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-83}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.0000000000000001e85 or 2.5e-83 < x Initial program 85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in j around 0 77.2%
Taylor expanded in c around inf 74.3%
if -4.0000000000000001e85 < x < -9.99999999999999908e-22Initial program 86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in b around 0 84.4%
Taylor expanded in t around 0 73.5%
if -9.99999999999999908e-22 < x < -3.6000000000000002e-228 or 6.6000000000000002e-306 < x < 2.5e-83Initial program 71.7%
*-commutative71.7%
*-commutative71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in i around inf 69.9%
*-commutative69.9%
*-commutative69.9%
associate-*l*71.3%
Simplified71.3%
if -3.6000000000000002e-228 < x < 6.6000000000000002e-306Initial program 57.5%
*-commutative57.5%
*-commutative57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in c around inf 64.0%
associate-*r*69.9%
*-commutative69.9%
associate-*r*69.9%
mul-1-neg69.9%
*-commutative69.9%
Simplified69.9%
Final simplification72.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* i b) (* a x)))) (t_2 (* c (- (* j a) (* z b)))))
(if (<= c -2.8e-9)
t_2
(if (<= c -5.3e-107)
t_1
(if (<= c -3.9e-237)
(* y (- (* x z) (* j i)))
(if (<= c 1.6e-260)
t_1
(if (<= c 1.8e-92)
(* i (- (* t b) (* j y)))
(if (<= c 9.2e-57)
(* z (- (* x y) (* c b)))
(if (<= c 3.2e+118) (* x (- (* z y) (* a t))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (a * x));
double t_2 = c * ((j * a) - (z * b));
double tmp;
if (c <= -2.8e-9) {
tmp = t_2;
} else if (c <= -5.3e-107) {
tmp = t_1;
} else if (c <= -3.9e-237) {
tmp = y * ((x * z) - (j * i));
} else if (c <= 1.6e-260) {
tmp = t_1;
} else if (c <= 1.8e-92) {
tmp = i * ((t * b) - (j * y));
} else if (c <= 9.2e-57) {
tmp = z * ((x * y) - (c * b));
} else if (c <= 3.2e+118) {
tmp = x * ((z * y) - (a * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((i * b) - (a * x))
t_2 = c * ((j * a) - (z * b))
if (c <= (-2.8d-9)) then
tmp = t_2
else if (c <= (-5.3d-107)) then
tmp = t_1
else if (c <= (-3.9d-237)) then
tmp = y * ((x * z) - (j * i))
else if (c <= 1.6d-260) then
tmp = t_1
else if (c <= 1.8d-92) then
tmp = i * ((t * b) - (j * y))
else if (c <= 9.2d-57) then
tmp = z * ((x * y) - (c * b))
else if (c <= 3.2d+118) then
tmp = x * ((z * y) - (a * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (a * x));
double t_2 = c * ((j * a) - (z * b));
double tmp;
if (c <= -2.8e-9) {
tmp = t_2;
} else if (c <= -5.3e-107) {
tmp = t_1;
} else if (c <= -3.9e-237) {
tmp = y * ((x * z) - (j * i));
} else if (c <= 1.6e-260) {
tmp = t_1;
} else if (c <= 1.8e-92) {
tmp = i * ((t * b) - (j * y));
} else if (c <= 9.2e-57) {
tmp = z * ((x * y) - (c * b));
} else if (c <= 3.2e+118) {
tmp = x * ((z * y) - (a * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((i * b) - (a * x)) t_2 = c * ((j * a) - (z * b)) tmp = 0 if c <= -2.8e-9: tmp = t_2 elif c <= -5.3e-107: tmp = t_1 elif c <= -3.9e-237: tmp = y * ((x * z) - (j * i)) elif c <= 1.6e-260: tmp = t_1 elif c <= 1.8e-92: tmp = i * ((t * b) - (j * y)) elif c <= 9.2e-57: tmp = z * ((x * y) - (c * b)) elif c <= 3.2e+118: tmp = x * ((z * y) - (a * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(i * b) - Float64(a * x))) t_2 = Float64(c * Float64(Float64(j * a) - Float64(z * b))) tmp = 0.0 if (c <= -2.8e-9) tmp = t_2; elseif (c <= -5.3e-107) tmp = t_1; elseif (c <= -3.9e-237) tmp = Float64(y * Float64(Float64(x * z) - Float64(j * i))); elseif (c <= 1.6e-260) tmp = t_1; elseif (c <= 1.8e-92) tmp = Float64(i * Float64(Float64(t * b) - Float64(j * y))); elseif (c <= 9.2e-57) tmp = Float64(z * Float64(Float64(x * y) - Float64(c * b))); elseif (c <= 3.2e+118) tmp = Float64(x * Float64(Float64(z * y) - Float64(a * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((i * b) - (a * x)); t_2 = c * ((j * a) - (z * b)); tmp = 0.0; if (c <= -2.8e-9) tmp = t_2; elseif (c <= -5.3e-107) tmp = t_1; elseif (c <= -3.9e-237) tmp = y * ((x * z) - (j * i)); elseif (c <= 1.6e-260) tmp = t_1; elseif (c <= 1.8e-92) tmp = i * ((t * b) - (j * y)); elseif (c <= 9.2e-57) tmp = z * ((x * y) - (c * b)); elseif (c <= 3.2e+118) tmp = x * ((z * y) - (a * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.8e-9], t$95$2, If[LessEqual[c, -5.3e-107], t$95$1, If[LessEqual[c, -3.9e-237], N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e-260], t$95$1, If[LessEqual[c, 1.8e-92], N[(i * N[(N[(t * b), $MachinePrecision] - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e-57], N[(z * N[(N[(x * y), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+118], N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - a \cdot x\right)\\
t_2 := c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.8 \cdot 10^{-9}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -5.3 \cdot 10^{-107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -3.9 \cdot 10^{-237}:\\
\;\;\;\;y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{-260}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-92}:\\
\;\;\;\;i \cdot \left(t \cdot b - j \cdot y\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-57}:\\
\;\;\;\;z \cdot \left(x \cdot y - c \cdot b\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+118}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.79999999999999984e-9 or 3.20000000000000016e118 < c Initial program 75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
Simplified78.0%
if -2.79999999999999984e-9 < c < -5.3e-107 or -3.8999999999999998e-237 < c < 1.59999999999999997e-260Initial program 75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in t around inf 59.8%
distribute-lft-out--59.8%
*-commutative59.8%
*-commutative59.8%
Simplified59.8%
mul-1-neg59.8%
distribute-rgt-neg-out59.8%
*-commutative59.8%
Applied egg-rr59.8%
if -5.3e-107 < c < -3.8999999999999998e-237Initial program 74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in y around -inf 65.6%
associate-*r*65.6%
neg-mul-165.6%
*-commutative65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
if 1.59999999999999997e-260 < c < 1.80000000000000008e-92Initial program 83.7%
*-commutative83.7%
*-commutative83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in i around inf 56.1%
distribute-lft-out--56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
if 1.80000000000000008e-92 < c < 9.2000000000000001e-57Initial program 83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in z around inf 65.1%
*-commutative65.1%
Simplified65.1%
if 9.2000000000000001e-57 < c < 3.20000000000000016e118Initial program 89.4%
*-commutative89.4%
*-commutative89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in y around -inf 86.9%
Simplified89.6%
Taylor expanded in x around inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
sub-neg52.3%
Simplified52.3%
Final simplification65.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -8.2e+29) (not (<= b 3.3e-88))) (- (* b (- (* t i) (* c z))) (* a (* x t))) (+ (* x (- (* z y) (* a t))) (* j (- (* a c) (* i y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -8.2e+29) || !(b <= 3.3e-88)) {
tmp = (b * ((t * i) - (c * z))) - (a * (x * t));
} else {
tmp = (x * ((z * y) - (a * t))) + (j * ((a * c) - (i * y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-8.2d+29)) .or. (.not. (b <= 3.3d-88))) then
tmp = (b * ((t * i) - (c * z))) - (a * (x * t))
else
tmp = (x * ((z * y) - (a * t))) + (j * ((a * c) - (i * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -8.2e+29) || !(b <= 3.3e-88)) {
tmp = (b * ((t * i) - (c * z))) - (a * (x * t));
} else {
tmp = (x * ((z * y) - (a * t))) + (j * ((a * c) - (i * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -8.2e+29) or not (b <= 3.3e-88): tmp = (b * ((t * i) - (c * z))) - (a * (x * t)) else: tmp = (x * ((z * y) - (a * t))) + (j * ((a * c) - (i * y))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -8.2e+29) || !(b <= 3.3e-88)) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(c * z))) - Float64(a * Float64(x * t))); else tmp = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) + Float64(j * Float64(Float64(a * c) - Float64(i * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -8.2e+29) || ~((b <= 3.3e-88))) tmp = (b * ((t * i) - (c * z))) - (a * (x * t)); else tmp = (x * ((z * y) - (a * t))) + (j * ((a * c) - (i * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -8.2e+29], N[Not[LessEqual[b, 3.3e-88]], $MachinePrecision]], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{+29} \lor \neg \left(b \leq 3.3 \cdot 10^{-88}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right) + j \cdot \left(a \cdot c - i \cdot y\right)\\
\end{array}
\end{array}
if b < -8.2000000000000007e29 or 3.29999999999999994e-88 < b Initial program 80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in j around 0 75.0%
Taylor expanded in y around 0 70.7%
mul-1-neg70.7%
distribute-rgt-neg-in70.7%
Simplified70.7%
if -8.2000000000000007e29 < b < 3.29999999999999994e-88Initial program 77.8%
*-commutative77.8%
*-commutative77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in b around 0 78.1%
Final simplification74.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* a t)))))
(if (or (<= b -6.4e+30) (not (<= b 9.5e-90)))
(+ t_1 (* b (- (* t i) (* c z))))
(+ t_1 (* j (- (* a c) (* i y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (a * t));
double tmp;
if ((b <= -6.4e+30) || !(b <= 9.5e-90)) {
tmp = t_1 + (b * ((t * i) - (c * z)));
} else {
tmp = t_1 + (j * ((a * c) - (i * y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((z * y) - (a * t))
if ((b <= (-6.4d+30)) .or. (.not. (b <= 9.5d-90))) then
tmp = t_1 + (b * ((t * i) - (c * z)))
else
tmp = t_1 + (j * ((a * c) - (i * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (a * t));
double tmp;
if ((b <= -6.4e+30) || !(b <= 9.5e-90)) {
tmp = t_1 + (b * ((t * i) - (c * z)));
} else {
tmp = t_1 + (j * ((a * c) - (i * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (a * t)) tmp = 0 if (b <= -6.4e+30) or not (b <= 9.5e-90): tmp = t_1 + (b * ((t * i) - (c * z))) else: tmp = t_1 + (j * ((a * c) - (i * y))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) tmp = 0.0 if ((b <= -6.4e+30) || !(b <= 9.5e-90)) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(c * z)))); else tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(i * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (a * t)); tmp = 0.0; if ((b <= -6.4e+30) || ~((b <= 9.5e-90))) tmp = t_1 + (b * ((t * i) - (c * z))); else tmp = t_1 + (j * ((a * c) - (i * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[b, -6.4e+30], N[Not[LessEqual[b, 9.5e-90]], $MachinePrecision]], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;b \leq -6.4 \cdot 10^{+30} \lor \neg \left(b \leq 9.5 \cdot 10^{-90}\right):\\
\;\;\;\;t_1 + b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + j \cdot \left(a \cdot c - i \cdot y\right)\\
\end{array}
\end{array}
if b < -6.39999999999999945e30 or 9.5000000000000003e-90 < b Initial program 80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in j around 0 75.0%
if -6.39999999999999945e30 < b < 9.5000000000000003e-90Initial program 77.8%
*-commutative77.8%
*-commutative77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in b around 0 78.1%
Final simplification76.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* i y)))) (t_2 (* x (- (* z y) (* a t)))))
(if (<= x -2.5e+85)
t_2
(if (<= x -5.6e-30)
(+ t_1 (* x (* z y)))
(if (<= x 170000000000.0)
(+ t_1 (* t (* i b)))
(if (<= x 4.6e+109) (* b (- (* t i) (* c z))) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (i * y));
double t_2 = x * ((z * y) - (a * t));
double tmp;
if (x <= -2.5e+85) {
tmp = t_2;
} else if (x <= -5.6e-30) {
tmp = t_1 + (x * (z * y));
} else if (x <= 170000000000.0) {
tmp = t_1 + (t * (i * b));
} else if (x <= 4.6e+109) {
tmp = b * ((t * i) - (c * z));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (i * y))
t_2 = x * ((z * y) - (a * t))
if (x <= (-2.5d+85)) then
tmp = t_2
else if (x <= (-5.6d-30)) then
tmp = t_1 + (x * (z * y))
else if (x <= 170000000000.0d0) then
tmp = t_1 + (t * (i * b))
else if (x <= 4.6d+109) then
tmp = b * ((t * i) - (c * z))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (i * y));
double t_2 = x * ((z * y) - (a * t));
double tmp;
if (x <= -2.5e+85) {
tmp = t_2;
} else if (x <= -5.6e-30) {
tmp = t_1 + (x * (z * y));
} else if (x <= 170000000000.0) {
tmp = t_1 + (t * (i * b));
} else if (x <= 4.6e+109) {
tmp = b * ((t * i) - (c * z));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (i * y)) t_2 = x * ((z * y) - (a * t)) tmp = 0 if x <= -2.5e+85: tmp = t_2 elif x <= -5.6e-30: tmp = t_1 + (x * (z * y)) elif x <= 170000000000.0: tmp = t_1 + (t * (i * b)) elif x <= 4.6e+109: tmp = b * ((t * i) - (c * z)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(i * y))) t_2 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) tmp = 0.0 if (x <= -2.5e+85) tmp = t_2; elseif (x <= -5.6e-30) tmp = Float64(t_1 + Float64(x * Float64(z * y))); elseif (x <= 170000000000.0) tmp = Float64(t_1 + Float64(t * Float64(i * b))); elseif (x <= 4.6e+109) tmp = Float64(b * Float64(Float64(t * i) - Float64(c * z))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (i * y)); t_2 = x * ((z * y) - (a * t)); tmp = 0.0; if (x <= -2.5e+85) tmp = t_2; elseif (x <= -5.6e-30) tmp = t_1 + (x * (z * y)); elseif (x <= 170000000000.0) tmp = t_1 + (t * (i * b)); elseif (x <= 4.6e+109) tmp = b * ((t * i) - (c * z)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+85], t$95$2, If[LessEqual[x, -5.6e-30], N[(t$95$1 + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 170000000000.0], N[(t$95$1 + N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e+109], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - i \cdot y\right)\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-30}:\\
\;\;\;\;t_1 + x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;x \leq 170000000000:\\
\;\;\;\;t_1 + t \cdot \left(i \cdot b\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+109}:\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -2.5e85 or 4.60000000000000021e109 < x Initial program 86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in y around -inf 77.9%
Simplified79.0%
Taylor expanded in x around inf 74.1%
+-commutative74.1%
mul-1-neg74.1%
sub-neg74.1%
Simplified74.1%
if -2.5e85 < x < -5.59999999999999977e-30Initial program 86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in b around 0 84.4%
Taylor expanded in t around 0 73.5%
if -5.59999999999999977e-30 < x < 1.7e11Initial program 71.9%
*-commutative71.9%
*-commutative71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in i around inf 64.2%
*-commutative64.2%
*-commutative64.2%
associate-*l*64.8%
Simplified64.8%
if 1.7e11 < x < 4.60000000000000021e109Initial program 80.1%
*-commutative80.1%
*-commutative80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in b around inf 69.6%
*-commutative69.6%
*-commutative69.6%
Simplified69.6%
Final simplification69.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* z y) (* a t))) (* b (* c z))))
(t_2 (* j (- (* a c) (* i y)))))
(if (<= x -2.06e+86)
t_1
(if (<= x -1.25e-21)
(+ t_2 (* x (* z y)))
(if (<= x 4.8e-83) (+ t_2 (* t (* i b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((z * y) - (a * t))) - (b * (c * z));
double t_2 = j * ((a * c) - (i * y));
double tmp;
if (x <= -2.06e+86) {
tmp = t_1;
} else if (x <= -1.25e-21) {
tmp = t_2 + (x * (z * y));
} else if (x <= 4.8e-83) {
tmp = t_2 + (t * (i * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((z * y) - (a * t))) - (b * (c * z))
t_2 = j * ((a * c) - (i * y))
if (x <= (-2.06d+86)) then
tmp = t_1
else if (x <= (-1.25d-21)) then
tmp = t_2 + (x * (z * y))
else if (x <= 4.8d-83) then
tmp = t_2 + (t * (i * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((z * y) - (a * t))) - (b * (c * z));
double t_2 = j * ((a * c) - (i * y));
double tmp;
if (x <= -2.06e+86) {
tmp = t_1;
} else if (x <= -1.25e-21) {
tmp = t_2 + (x * (z * y));
} else if (x <= 4.8e-83) {
tmp = t_2 + (t * (i * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((z * y) - (a * t))) - (b * (c * z)) t_2 = j * ((a * c) - (i * y)) tmp = 0 if x <= -2.06e+86: tmp = t_1 elif x <= -1.25e-21: tmp = t_2 + (x * (z * y)) elif x <= 4.8e-83: tmp = t_2 + (t * (i * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(b * Float64(c * z))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(i * y))) tmp = 0.0 if (x <= -2.06e+86) tmp = t_1; elseif (x <= -1.25e-21) tmp = Float64(t_2 + Float64(x * Float64(z * y))); elseif (x <= 4.8e-83) tmp = Float64(t_2 + Float64(t * Float64(i * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((z * y) - (a * t))) - (b * (c * z)); t_2 = j * ((a * c) - (i * y)); tmp = 0.0; if (x <= -2.06e+86) tmp = t_1; elseif (x <= -1.25e-21) tmp = t_2 + (x * (z * y)); elseif (x <= 4.8e-83) tmp = t_2 + (t * (i * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.06e+86], t$95$1, If[LessEqual[x, -1.25e-21], N[(t$95$2 + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-83], N[(t$95$2 + N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - a \cdot t\right) - b \cdot \left(c \cdot z\right)\\
t_2 := j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{if}\;x \leq -2.06 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.25 \cdot 10^{-21}:\\
\;\;\;\;t_2 + x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-83}:\\
\;\;\;\;t_2 + t \cdot \left(i \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.06e86 or 4.8000000000000002e-83 < x Initial program 85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in j around 0 77.2%
Taylor expanded in c around inf 74.3%
if -2.06e86 < x < -1.24999999999999993e-21Initial program 86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in b around 0 84.4%
Taylor expanded in t around 0 73.5%
if -1.24999999999999993e-21 < x < 4.8000000000000002e-83Initial program 69.5%
*-commutative69.5%
*-commutative69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in i around inf 65.2%
*-commutative65.2%
*-commutative65.2%
associate-*l*66.9%
Simplified66.9%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.8e+161)
(* i (* t b))
(if (<= b -5.2e-12)
(* b (* c (- z)))
(if (<= b -3.3e-130)
(* y (* j (- i)))
(if (<= b -6.8e-236)
(* z (* x y))
(if (<= b -2.5e-260)
(* i (* y (- j)))
(if (<= b 3.9e-175)
(* j (* a c))
(if (<= b 280000000000.0)
(* a (* x (- t)))
(* (- z) (* c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.8e+161) {
tmp = i * (t * b);
} else if (b <= -5.2e-12) {
tmp = b * (c * -z);
} else if (b <= -3.3e-130) {
tmp = y * (j * -i);
} else if (b <= -6.8e-236) {
tmp = z * (x * y);
} else if (b <= -2.5e-260) {
tmp = i * (y * -j);
} else if (b <= 3.9e-175) {
tmp = j * (a * c);
} else if (b <= 280000000000.0) {
tmp = a * (x * -t);
} else {
tmp = -z * (c * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-4.8d+161)) then
tmp = i * (t * b)
else if (b <= (-5.2d-12)) then
tmp = b * (c * -z)
else if (b <= (-3.3d-130)) then
tmp = y * (j * -i)
else if (b <= (-6.8d-236)) then
tmp = z * (x * y)
else if (b <= (-2.5d-260)) then
tmp = i * (y * -j)
else if (b <= 3.9d-175) then
tmp = j * (a * c)
else if (b <= 280000000000.0d0) then
tmp = a * (x * -t)
else
tmp = -z * (c * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.8e+161) {
tmp = i * (t * b);
} else if (b <= -5.2e-12) {
tmp = b * (c * -z);
} else if (b <= -3.3e-130) {
tmp = y * (j * -i);
} else if (b <= -6.8e-236) {
tmp = z * (x * y);
} else if (b <= -2.5e-260) {
tmp = i * (y * -j);
} else if (b <= 3.9e-175) {
tmp = j * (a * c);
} else if (b <= 280000000000.0) {
tmp = a * (x * -t);
} else {
tmp = -z * (c * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.8e+161: tmp = i * (t * b) elif b <= -5.2e-12: tmp = b * (c * -z) elif b <= -3.3e-130: tmp = y * (j * -i) elif b <= -6.8e-236: tmp = z * (x * y) elif b <= -2.5e-260: tmp = i * (y * -j) elif b <= 3.9e-175: tmp = j * (a * c) elif b <= 280000000000.0: tmp = a * (x * -t) else: tmp = -z * (c * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.8e+161) tmp = Float64(i * Float64(t * b)); elseif (b <= -5.2e-12) tmp = Float64(b * Float64(c * Float64(-z))); elseif (b <= -3.3e-130) tmp = Float64(y * Float64(j * Float64(-i))); elseif (b <= -6.8e-236) tmp = Float64(z * Float64(x * y)); elseif (b <= -2.5e-260) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 3.9e-175) tmp = Float64(j * Float64(a * c)); elseif (b <= 280000000000.0) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(Float64(-z) * Float64(c * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.8e+161) tmp = i * (t * b); elseif (b <= -5.2e-12) tmp = b * (c * -z); elseif (b <= -3.3e-130) tmp = y * (j * -i); elseif (b <= -6.8e-236) tmp = z * (x * y); elseif (b <= -2.5e-260) tmp = i * (y * -j); elseif (b <= 3.9e-175) tmp = j * (a * c); elseif (b <= 280000000000.0) tmp = a * (x * -t); else tmp = -z * (c * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.8e+161], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.2e-12], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.3e-130], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.8e-236], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-260], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.9e-175], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 280000000000.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[((-z) * N[(c * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{+161}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-130}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{-236}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-260}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-175}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;b \leq 280000000000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot b\right)\\
\end{array}
\end{array}
if b < -4.7999999999999998e161Initial program 86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in j around 0 76.8%
Taylor expanded in i around inf 40.1%
*-commutative40.1%
associate-*l*43.6%
Simplified43.6%
if -4.7999999999999998e161 < b < -5.19999999999999965e-12Initial program 78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in j around 0 69.5%
Taylor expanded in c around inf 40.9%
associate-*r*40.9%
neg-mul-140.9%
Simplified40.9%
if -5.19999999999999965e-12 < b < -3.2999999999999998e-130Initial program 82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in i around inf 63.4%
*-commutative63.4%
*-commutative63.4%
associate-*l*60.3%
Simplified60.3%
Taylor expanded in y around inf 44.1%
Simplified44.1%
Taylor expanded in i around 0 44.1%
associate-*r*47.4%
mul-1-neg47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if -3.2999999999999998e-130 < b < -6.79999999999999961e-236Initial program 89.5%
*-commutative89.5%
*-commutative89.5%
*-commutative89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in z around inf 43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in x around inf 44.0%
if -6.79999999999999961e-236 < b < -2.5000000000000002e-260Initial program 78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in i around inf 57.7%
*-commutative57.7%
*-commutative57.7%
associate-*l*57.7%
Simplified57.7%
Taylor expanded in y around inf 67.6%
Simplified67.6%
if -2.5000000000000002e-260 < b < 3.89999999999999998e-175Initial program 70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in y around -inf 68.2%
Simplified70.5%
Taylor expanded in j around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
sub-neg56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in a around inf 38.3%
associate-*r*43.9%
*-commutative43.9%
Simplified43.9%
if 3.89999999999999998e-175 < b < 2.8e11Initial program 74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in j around 0 58.5%
associate-*r*58.5%
neg-mul-158.5%
*-commutative58.5%
Simplified58.5%
if 2.8e11 < b Initial program 79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in z around inf 52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in x around 0 46.8%
associate-*r*46.8%
neg-mul-146.8%
*-commutative46.8%
Simplified46.8%
Final simplification46.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -6.8e+163)
(* t (* i b))
(if (<= b -5.2e-10)
(* b (* c (- z)))
(if (<= b -1.7e-129)
(* y (* j (- i)))
(if (<= b -5.2e-235)
(* z (* x y))
(if (<= b -6.1e-260)
(* i (* y (- j)))
(if (<= b 2.9e-173)
(* j (* a c))
(if (<= b 28500000.0) (* a (* x (- t))) (* (- z) (* c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -6.8e+163) {
tmp = t * (i * b);
} else if (b <= -5.2e-10) {
tmp = b * (c * -z);
} else if (b <= -1.7e-129) {
tmp = y * (j * -i);
} else if (b <= -5.2e-235) {
tmp = z * (x * y);
} else if (b <= -6.1e-260) {
tmp = i * (y * -j);
} else if (b <= 2.9e-173) {
tmp = j * (a * c);
} else if (b <= 28500000.0) {
tmp = a * (x * -t);
} else {
tmp = -z * (c * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-6.8d+163)) then
tmp = t * (i * b)
else if (b <= (-5.2d-10)) then
tmp = b * (c * -z)
else if (b <= (-1.7d-129)) then
tmp = y * (j * -i)
else if (b <= (-5.2d-235)) then
tmp = z * (x * y)
else if (b <= (-6.1d-260)) then
tmp = i * (y * -j)
else if (b <= 2.9d-173) then
tmp = j * (a * c)
else if (b <= 28500000.0d0) then
tmp = a * (x * -t)
else
tmp = -z * (c * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -6.8e+163) {
tmp = t * (i * b);
} else if (b <= -5.2e-10) {
tmp = b * (c * -z);
} else if (b <= -1.7e-129) {
tmp = y * (j * -i);
} else if (b <= -5.2e-235) {
tmp = z * (x * y);
} else if (b <= -6.1e-260) {
tmp = i * (y * -j);
} else if (b <= 2.9e-173) {
tmp = j * (a * c);
} else if (b <= 28500000.0) {
tmp = a * (x * -t);
} else {
tmp = -z * (c * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -6.8e+163: tmp = t * (i * b) elif b <= -5.2e-10: tmp = b * (c * -z) elif b <= -1.7e-129: tmp = y * (j * -i) elif b <= -5.2e-235: tmp = z * (x * y) elif b <= -6.1e-260: tmp = i * (y * -j) elif b <= 2.9e-173: tmp = j * (a * c) elif b <= 28500000.0: tmp = a * (x * -t) else: tmp = -z * (c * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -6.8e+163) tmp = Float64(t * Float64(i * b)); elseif (b <= -5.2e-10) tmp = Float64(b * Float64(c * Float64(-z))); elseif (b <= -1.7e-129) tmp = Float64(y * Float64(j * Float64(-i))); elseif (b <= -5.2e-235) tmp = Float64(z * Float64(x * y)); elseif (b <= -6.1e-260) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 2.9e-173) tmp = Float64(j * Float64(a * c)); elseif (b <= 28500000.0) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(Float64(-z) * Float64(c * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -6.8e+163) tmp = t * (i * b); elseif (b <= -5.2e-10) tmp = b * (c * -z); elseif (b <= -1.7e-129) tmp = y * (j * -i); elseif (b <= -5.2e-235) tmp = z * (x * y); elseif (b <= -6.1e-260) tmp = i * (y * -j); elseif (b <= 2.9e-173) tmp = j * (a * c); elseif (b <= 28500000.0) tmp = a * (x * -t); else tmp = -z * (c * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -6.8e+163], N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.2e-10], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-129], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.2e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.1e-260], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e-173], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 28500000.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[((-z) * N[(c * b), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.8 \cdot 10^{+163}:\\
\;\;\;\;t \cdot \left(i \cdot b\right)\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq -6.1 \cdot 10^{-260}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-173}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;b \leq 28500000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot b\right)\\
\end{array}
\end{array}
if b < -6.8000000000000002e163Initial program 86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in t around inf 61.3%
distribute-lft-out--61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in x around 0 46.5%
associate-*r*46.5%
neg-mul-146.5%
*-commutative46.5%
Simplified46.5%
if -6.8000000000000002e163 < b < -5.19999999999999962e-10Initial program 78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in j around 0 69.5%
Taylor expanded in c around inf 40.9%
associate-*r*40.9%
neg-mul-140.9%
Simplified40.9%
if -5.19999999999999962e-10 < b < -1.70000000000000007e-129Initial program 82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in i around inf 63.4%
*-commutative63.4%
*-commutative63.4%
associate-*l*60.3%
Simplified60.3%
Taylor expanded in y around inf 44.1%
Simplified44.1%
Taylor expanded in i around 0 44.1%
associate-*r*47.4%
mul-1-neg47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if -1.70000000000000007e-129 < b < -5.2000000000000001e-235Initial program 88.9%
*-commutative88.9%
*-commutative88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in z around inf 45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in x around inf 46.0%
if -5.2000000000000001e-235 < b < -6.1000000000000003e-260Initial program 80.5%
*-commutative80.5%
*-commutative80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in i around inf 61.9%
*-commutative61.9%
*-commutative61.9%
associate-*l*61.9%
Simplified61.9%
Taylor expanded in y around inf 61.7%
Simplified61.7%
if -6.1000000000000003e-260 < b < 2.8999999999999998e-173Initial program 70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in y around -inf 68.2%
Simplified70.5%
Taylor expanded in j around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
sub-neg56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in a around inf 38.3%
associate-*r*43.9%
*-commutative43.9%
Simplified43.9%
if 2.8999999999999998e-173 < b < 2.85e7Initial program 74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in j around 0 58.5%
associate-*r*58.5%
neg-mul-158.5%
*-commutative58.5%
Simplified58.5%
if 2.85e7 < b Initial program 79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in z around inf 52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in x around 0 46.8%
associate-*r*46.8%
neg-mul-146.8%
*-commutative46.8%
Simplified46.8%
Final simplification47.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* i b) (* a x)))) (t_2 (* c (- (* j a) (* z b)))))
(if (<= c -7.5e-8)
t_2
(if (<= c -1.35e-108)
t_1
(if (<= c -1.15e-236)
(* y (- (* x z) (* j i)))
(if (<= c 2.1e-236)
t_1
(if (<= c 3.5e+118) (* x (- (* z y) (* a t))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (a * x));
double t_2 = c * ((j * a) - (z * b));
double tmp;
if (c <= -7.5e-8) {
tmp = t_2;
} else if (c <= -1.35e-108) {
tmp = t_1;
} else if (c <= -1.15e-236) {
tmp = y * ((x * z) - (j * i));
} else if (c <= 2.1e-236) {
tmp = t_1;
} else if (c <= 3.5e+118) {
tmp = x * ((z * y) - (a * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((i * b) - (a * x))
t_2 = c * ((j * a) - (z * b))
if (c <= (-7.5d-8)) then
tmp = t_2
else if (c <= (-1.35d-108)) then
tmp = t_1
else if (c <= (-1.15d-236)) then
tmp = y * ((x * z) - (j * i))
else if (c <= 2.1d-236) then
tmp = t_1
else if (c <= 3.5d+118) then
tmp = x * ((z * y) - (a * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((i * b) - (a * x));
double t_2 = c * ((j * a) - (z * b));
double tmp;
if (c <= -7.5e-8) {
tmp = t_2;
} else if (c <= -1.35e-108) {
tmp = t_1;
} else if (c <= -1.15e-236) {
tmp = y * ((x * z) - (j * i));
} else if (c <= 2.1e-236) {
tmp = t_1;
} else if (c <= 3.5e+118) {
tmp = x * ((z * y) - (a * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((i * b) - (a * x)) t_2 = c * ((j * a) - (z * b)) tmp = 0 if c <= -7.5e-8: tmp = t_2 elif c <= -1.35e-108: tmp = t_1 elif c <= -1.15e-236: tmp = y * ((x * z) - (j * i)) elif c <= 2.1e-236: tmp = t_1 elif c <= 3.5e+118: tmp = x * ((z * y) - (a * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(i * b) - Float64(a * x))) t_2 = Float64(c * Float64(Float64(j * a) - Float64(z * b))) tmp = 0.0 if (c <= -7.5e-8) tmp = t_2; elseif (c <= -1.35e-108) tmp = t_1; elseif (c <= -1.15e-236) tmp = Float64(y * Float64(Float64(x * z) - Float64(j * i))); elseif (c <= 2.1e-236) tmp = t_1; elseif (c <= 3.5e+118) tmp = Float64(x * Float64(Float64(z * y) - Float64(a * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((i * b) - (a * x)); t_2 = c * ((j * a) - (z * b)); tmp = 0.0; if (c <= -7.5e-8) tmp = t_2; elseif (c <= -1.35e-108) tmp = t_1; elseif (c <= -1.15e-236) tmp = y * ((x * z) - (j * i)); elseif (c <= 2.1e-236) tmp = t_1; elseif (c <= 3.5e+118) tmp = x * ((z * y) - (a * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(i * b), $MachinePrecision] - N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.5e-8], t$95$2, If[LessEqual[c, -1.35e-108], t$95$1, If[LessEqual[c, -1.15e-236], N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e-236], t$95$1, If[LessEqual[c, 3.5e+118], N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(i \cdot b - a \cdot x\right)\\
t_2 := c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.35 \cdot 10^{-108}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-236}:\\
\;\;\;\;y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{-236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{+118}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -7.4999999999999997e-8 or 3.50000000000000016e118 < c Initial program 75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
Simplified78.0%
if -7.4999999999999997e-8 < c < -1.35000000000000002e-108 or -1.15000000000000003e-236 < c < 2.09999999999999979e-236Initial program 78.9%
*-commutative78.9%
*-commutative78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in t around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
mul-1-neg57.8%
distribute-rgt-neg-out57.8%
*-commutative57.8%
Applied egg-rr57.8%
if -1.35000000000000002e-108 < c < -1.15000000000000003e-236Initial program 74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in y around -inf 65.6%
associate-*r*65.6%
neg-mul-165.6%
*-commutative65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
if 2.09999999999999979e-236 < c < 3.50000000000000016e118Initial program 84.9%
*-commutative84.9%
*-commutative84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y around -inf 88.7%
Simplified89.9%
Taylor expanded in x around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
sub-neg50.9%
Simplified50.9%
Final simplification63.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.15e+30) (not (<= b 9e-180))) (- (* b (- (* t i) (* c z))) (* a (* x t))) (+ (* j (- (* a c) (* i y))) (* x (* z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.15e+30) || !(b <= 9e-180)) {
tmp = (b * ((t * i) - (c * z))) - (a * (x * t));
} else {
tmp = (j * ((a * c) - (i * y))) + (x * (z * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.15d+30)) .or. (.not. (b <= 9d-180))) then
tmp = (b * ((t * i) - (c * z))) - (a * (x * t))
else
tmp = (j * ((a * c) - (i * y))) + (x * (z * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.15e+30) || !(b <= 9e-180)) {
tmp = (b * ((t * i) - (c * z))) - (a * (x * t));
} else {
tmp = (j * ((a * c) - (i * y))) + (x * (z * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.15e+30) or not (b <= 9e-180): tmp = (b * ((t * i) - (c * z))) - (a * (x * t)) else: tmp = (j * ((a * c) - (i * y))) + (x * (z * y)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.15e+30) || !(b <= 9e-180)) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(c * z))) - Float64(a * Float64(x * t))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(i * y))) + Float64(x * Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.15e+30) || ~((b <= 9e-180))) tmp = (b * ((t * i) - (c * z))) - (a * (x * t)); else tmp = (j * ((a * c) - (i * y))) + (x * (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.15e+30], N[Not[LessEqual[b, 9e-180]], $MachinePrecision]], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+30} \lor \neg \left(b \leq 9 \cdot 10^{-180}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right) + x \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if b < -1.15e30 or 9.00000000000000019e-180 < b Initial program 79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in j around 0 73.4%
Taylor expanded in y around 0 69.7%
mul-1-neg69.7%
distribute-rgt-neg-in69.7%
Simplified69.7%
if -1.15e30 < b < 9.00000000000000019e-180Initial program 78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in b around 0 79.7%
Taylor expanded in t around 0 67.8%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* c z)))))
(if (<= b -2.8e+30)
t_1
(if (<= b 7.5e-166)
(+ (* j (- (* a c) (* i y))) (* x (* z y)))
(if (<= b 900000000000.0) (* a (- (* j c) (* 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) - (c * z));
double tmp;
if (b <= -2.8e+30) {
tmp = t_1;
} else if (b <= 7.5e-166) {
tmp = (j * ((a * c) - (i * y))) + (x * (z * y));
} else if (b <= 900000000000.0) {
tmp = a * ((j * c) - (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) - (c * z))
if (b <= (-2.8d+30)) then
tmp = t_1
else if (b <= 7.5d-166) then
tmp = (j * ((a * c) - (i * y))) + (x * (z * y))
else if (b <= 900000000000.0d0) then
tmp = a * ((j * c) - (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) - (c * z));
double tmp;
if (b <= -2.8e+30) {
tmp = t_1;
} else if (b <= 7.5e-166) {
tmp = (j * ((a * c) - (i * y))) + (x * (z * y));
} else if (b <= 900000000000.0) {
tmp = a * ((j * c) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (c * z)) tmp = 0 if b <= -2.8e+30: tmp = t_1 elif b <= 7.5e-166: tmp = (j * ((a * c) - (i * y))) + (x * (z * y)) elif b <= 900000000000.0: tmp = a * ((j * c) - (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(c * z))) tmp = 0.0 if (b <= -2.8e+30) tmp = t_1; elseif (b <= 7.5e-166) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(i * y))) + Float64(x * Float64(z * y))); elseif (b <= 900000000000.0) tmp = Float64(a * Float64(Float64(j * c) - 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) - (c * z)); tmp = 0.0; if (b <= -2.8e+30) tmp = t_1; elseif (b <= 7.5e-166) tmp = (j * ((a * c) - (i * y))) + (x * (z * y)); elseif (b <= 900000000000.0) tmp = a * ((j * c) - (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[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.8e+30], t$95$1, If[LessEqual[b, 7.5e-166], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 900000000000.0], N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-166}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right) + x \cdot \left(z \cdot y\right)\\
\mathbf{elif}\;b \leq 900000000000:\\
\;\;\;\;a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.79999999999999983e30 or 9e11 < b Initial program 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in b around inf 61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
if -2.79999999999999983e30 < b < 7.49999999999999947e-166Initial program 78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in b around 0 78.9%
Taylor expanded in t around 0 66.7%
if 7.49999999999999947e-166 < b < 9e11Initial program 71.9%
*-commutative71.9%
*-commutative71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))) (t_2 (* b (* t i))) (t_3 (* x (* a (- t)))))
(if (<= x -2.8e+85)
t_3
(if (<= x 2.4e-201)
t_1
(if (<= x 1.7e-105)
t_2
(if (<= x 1.1e+33)
t_1
(if (<= x 1.55e+105)
t_2
(if (<= x 2.9e+204) t_3 (* z (* x y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double t_2 = b * (t * i);
double t_3 = x * (a * -t);
double tmp;
if (x <= -2.8e+85) {
tmp = t_3;
} else if (x <= 2.4e-201) {
tmp = t_1;
} else if (x <= 1.7e-105) {
tmp = t_2;
} else if (x <= 1.1e+33) {
tmp = t_1;
} else if (x <= 1.55e+105) {
tmp = t_2;
} else if (x <= 2.9e+204) {
tmp = t_3;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (a * c)
t_2 = b * (t * i)
t_3 = x * (a * -t)
if (x <= (-2.8d+85)) then
tmp = t_3
else if (x <= 2.4d-201) then
tmp = t_1
else if (x <= 1.7d-105) then
tmp = t_2
else if (x <= 1.1d+33) then
tmp = t_1
else if (x <= 1.55d+105) then
tmp = t_2
else if (x <= 2.9d+204) then
tmp = t_3
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double t_2 = b * (t * i);
double t_3 = x * (a * -t);
double tmp;
if (x <= -2.8e+85) {
tmp = t_3;
} else if (x <= 2.4e-201) {
tmp = t_1;
} else if (x <= 1.7e-105) {
tmp = t_2;
} else if (x <= 1.1e+33) {
tmp = t_1;
} else if (x <= 1.55e+105) {
tmp = t_2;
} else if (x <= 2.9e+204) {
tmp = t_3;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) t_2 = b * (t * i) t_3 = x * (a * -t) tmp = 0 if x <= -2.8e+85: tmp = t_3 elif x <= 2.4e-201: tmp = t_1 elif x <= 1.7e-105: tmp = t_2 elif x <= 1.1e+33: tmp = t_1 elif x <= 1.55e+105: tmp = t_2 elif x <= 2.9e+204: tmp = t_3 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) t_2 = Float64(b * Float64(t * i)) t_3 = Float64(x * Float64(a * Float64(-t))) tmp = 0.0 if (x <= -2.8e+85) tmp = t_3; elseif (x <= 2.4e-201) tmp = t_1; elseif (x <= 1.7e-105) tmp = t_2; elseif (x <= 1.1e+33) tmp = t_1; elseif (x <= 1.55e+105) tmp = t_2; elseif (x <= 2.9e+204) tmp = t_3; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); t_2 = b * (t * i); t_3 = x * (a * -t); tmp = 0.0; if (x <= -2.8e+85) tmp = t_3; elseif (x <= 2.4e-201) tmp = t_1; elseif (x <= 1.7e-105) tmp = t_2; elseif (x <= 1.1e+33) tmp = t_1; elseif (x <= 1.55e+105) tmp = t_2; elseif (x <= 2.9e+204) tmp = t_3; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.8e+85], t$95$3, If[LessEqual[x, 2.4e-201], t$95$1, If[LessEqual[x, 1.7e-105], t$95$2, If[LessEqual[x, 1.1e+33], t$95$1, If[LessEqual[x, 1.55e+105], t$95$2, If[LessEqual[x, 2.9e+204], t$95$3, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
t_2 := b \cdot \left(t \cdot i\right)\\
t_3 := x \cdot \left(a \cdot \left(-t\right)\right)\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+85}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+204}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.7999999999999999e85 or 1.55000000000000002e105 < x < 2.90000000000000004e204Initial program 82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in a around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
*-commutative58.4%
*-commutative58.4%
Simplified58.4%
Taylor expanded in j around 0 51.7%
mul-1-neg51.7%
associate-*r*51.8%
Simplified51.8%
if -2.7999999999999999e85 < x < 2.40000000000000009e-201 or 1.69999999999999996e-105 < x < 1.09999999999999997e33Initial program 75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in y around -inf 80.0%
Simplified82.4%
Taylor expanded in j around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
sub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in a around inf 29.2%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
if 2.40000000000000009e-201 < x < 1.69999999999999996e-105 or 1.09999999999999997e33 < x < 1.55000000000000002e105Initial program 75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in j around 0 65.2%
Taylor expanded in i around inf 42.2%
if 2.90000000000000004e204 < x Initial program 94.8%
*-commutative94.8%
*-commutative94.8%
*-commutative94.8%
*-commutative94.8%
Simplified94.8%
Taylor expanded in z around inf 56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in x around inf 56.1%
Final simplification42.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))) (t_2 (* b (* t i))))
(if (<= x -2.6e+85)
(* a (* x (- t)))
(if (<= x 7.8e-197)
t_1
(if (<= x 6.2e-107)
t_2
(if (<= x 5.5e+32)
t_1
(if (<= x 4.6e+104)
t_2
(if (<= x 1.45e+205) (* x (* a (- t))) (* z (* x y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double t_2 = b * (t * i);
double tmp;
if (x <= -2.6e+85) {
tmp = a * (x * -t);
} else if (x <= 7.8e-197) {
tmp = t_1;
} else if (x <= 6.2e-107) {
tmp = t_2;
} else if (x <= 5.5e+32) {
tmp = t_1;
} else if (x <= 4.6e+104) {
tmp = t_2;
} else if (x <= 1.45e+205) {
tmp = x * (a * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (a * c)
t_2 = b * (t * i)
if (x <= (-2.6d+85)) then
tmp = a * (x * -t)
else if (x <= 7.8d-197) then
tmp = t_1
else if (x <= 6.2d-107) then
tmp = t_2
else if (x <= 5.5d+32) then
tmp = t_1
else if (x <= 4.6d+104) then
tmp = t_2
else if (x <= 1.45d+205) then
tmp = x * (a * -t)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double t_2 = b * (t * i);
double tmp;
if (x <= -2.6e+85) {
tmp = a * (x * -t);
} else if (x <= 7.8e-197) {
tmp = t_1;
} else if (x <= 6.2e-107) {
tmp = t_2;
} else if (x <= 5.5e+32) {
tmp = t_1;
} else if (x <= 4.6e+104) {
tmp = t_2;
} else if (x <= 1.45e+205) {
tmp = x * (a * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) t_2 = b * (t * i) tmp = 0 if x <= -2.6e+85: tmp = a * (x * -t) elif x <= 7.8e-197: tmp = t_1 elif x <= 6.2e-107: tmp = t_2 elif x <= 5.5e+32: tmp = t_1 elif x <= 4.6e+104: tmp = t_2 elif x <= 1.45e+205: tmp = x * (a * -t) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) t_2 = Float64(b * Float64(t * i)) tmp = 0.0 if (x <= -2.6e+85) tmp = Float64(a * Float64(x * Float64(-t))); elseif (x <= 7.8e-197) tmp = t_1; elseif (x <= 6.2e-107) tmp = t_2; elseif (x <= 5.5e+32) tmp = t_1; elseif (x <= 4.6e+104) tmp = t_2; elseif (x <= 1.45e+205) tmp = Float64(x * Float64(a * Float64(-t))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); t_2 = b * (t * i); tmp = 0.0; if (x <= -2.6e+85) tmp = a * (x * -t); elseif (x <= 7.8e-197) tmp = t_1; elseif (x <= 6.2e-107) tmp = t_2; elseif (x <= 5.5e+32) tmp = t_1; elseif (x <= 4.6e+104) tmp = t_2; elseif (x <= 1.45e+205) tmp = x * (a * -t); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.6e+85], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-197], t$95$1, If[LessEqual[x, 6.2e-107], t$95$2, If[LessEqual[x, 5.5e+32], t$95$1, If[LessEqual[x, 4.6e+104], t$95$2, If[LessEqual[x, 1.45e+205], N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
t_2 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+85}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-197}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+104}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+205}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.60000000000000011e85Initial program 78.7%
*-commutative78.7%
*-commutative78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in a around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
*-commutative54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in j around 0 47.3%
associate-*r*47.3%
neg-mul-147.3%
*-commutative47.3%
Simplified47.3%
if -2.60000000000000011e85 < x < 7.7999999999999998e-197 or 6.20000000000000043e-107 < x < 5.49999999999999984e32Initial program 75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in y around -inf 80.0%
Simplified82.4%
Taylor expanded in j around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
sub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in a around inf 29.2%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
if 7.7999999999999998e-197 < x < 6.20000000000000043e-107 or 5.49999999999999984e32 < x < 4.59999999999999969e104Initial program 75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in j around 0 65.2%
Taylor expanded in i around inf 42.2%
if 4.59999999999999969e104 < x < 1.4500000000000001e205Initial program 91.4%
*-commutative91.4%
*-commutative91.4%
*-commutative91.4%
*-commutative91.4%
Simplified91.4%
Taylor expanded in a around inf 66.3%
+-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
*-commutative66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in j around 0 61.8%
mul-1-neg61.8%
associate-*r*65.9%
Simplified65.9%
if 1.4500000000000001e205 < x Initial program 94.8%
*-commutative94.8%
*-commutative94.8%
*-commutative94.8%
*-commutative94.8%
Simplified94.8%
Taylor expanded in z around inf 56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in x around inf 56.1%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= b -1.48e+168)
(* i (* t b))
(if (<= b -5.1e-42)
(* b (* c (- z)))
(if (<= b -3.15e-254)
t_1
(if (<= b 2.2e-174)
(* j (* a c))
(if (<= b 48000000000000.0) t_1 (* (- z) (* c 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 * (x * -t);
double tmp;
if (b <= -1.48e+168) {
tmp = i * (t * b);
} else if (b <= -5.1e-42) {
tmp = b * (c * -z);
} else if (b <= -3.15e-254) {
tmp = t_1;
} else if (b <= 2.2e-174) {
tmp = j * (a * c);
} else if (b <= 48000000000000.0) {
tmp = t_1;
} else {
tmp = -z * (c * 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 * (x * -t)
if (b <= (-1.48d+168)) then
tmp = i * (t * b)
else if (b <= (-5.1d-42)) then
tmp = b * (c * -z)
else if (b <= (-3.15d-254)) then
tmp = t_1
else if (b <= 2.2d-174) then
tmp = j * (a * c)
else if (b <= 48000000000000.0d0) then
tmp = t_1
else
tmp = -z * (c * 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 * (x * -t);
double tmp;
if (b <= -1.48e+168) {
tmp = i * (t * b);
} else if (b <= -5.1e-42) {
tmp = b * (c * -z);
} else if (b <= -3.15e-254) {
tmp = t_1;
} else if (b <= 2.2e-174) {
tmp = j * (a * c);
} else if (b <= 48000000000000.0) {
tmp = t_1;
} else {
tmp = -z * (c * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if b <= -1.48e+168: tmp = i * (t * b) elif b <= -5.1e-42: tmp = b * (c * -z) elif b <= -3.15e-254: tmp = t_1 elif b <= 2.2e-174: tmp = j * (a * c) elif b <= 48000000000000.0: tmp = t_1 else: tmp = -z * (c * b) 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 (b <= -1.48e+168) tmp = Float64(i * Float64(t * b)); elseif (b <= -5.1e-42) tmp = Float64(b * Float64(c * Float64(-z))); elseif (b <= -3.15e-254) tmp = t_1; elseif (b <= 2.2e-174) tmp = Float64(j * Float64(a * c)); elseif (b <= 48000000000000.0) tmp = t_1; else tmp = Float64(Float64(-z) * Float64(c * b)); 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 (b <= -1.48e+168) tmp = i * (t * b); elseif (b <= -5.1e-42) tmp = b * (c * -z); elseif (b <= -3.15e-254) tmp = t_1; elseif (b <= 2.2e-174) tmp = j * (a * c); elseif (b <= 48000000000000.0) tmp = t_1; else tmp = -z * (c * b); 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[b, -1.48e+168], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.1e-42], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.15e-254], t$95$1, If[LessEqual[b, 2.2e-174], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 48000000000000.0], t$95$1, N[((-z) * N[(c * b), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;b \leq -1.48 \cdot 10^{+168}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -5.1 \cdot 10^{-42}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq -3.15 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-174}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;b \leq 48000000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot b\right)\\
\end{array}
\end{array}
if b < -1.48e168Initial program 86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in j around 0 76.8%
Taylor expanded in i around inf 40.1%
*-commutative40.1%
associate-*l*43.6%
Simplified43.6%
if -1.48e168 < b < -5.1e-42Initial program 79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in j around 0 63.7%
Taylor expanded in c around inf 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
if -5.1e-42 < b < -3.1500000000000001e-254 or 2.20000000000000022e-174 < b < 4.8e13Initial program 81.4%
*-commutative81.4%
*-commutative81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in a around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in j around 0 47.0%
associate-*r*47.0%
neg-mul-147.0%
*-commutative47.0%
Simplified47.0%
if -3.1500000000000001e-254 < b < 2.20000000000000022e-174Initial program 68.9%
*-commutative68.9%
*-commutative68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in y around -inf 66.8%
Simplified69.0%
Taylor expanded in j around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
sub-neg55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in a around inf 37.5%
associate-*r*43.0%
*-commutative43.0%
Simplified43.0%
if 4.8e13 < b Initial program 79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in z around inf 52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in x around 0 46.8%
associate-*r*46.8%
neg-mul-146.8%
*-commutative46.8%
Simplified46.8%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -7.5e+166)
(* i (* t b))
(if (<= b -1.6e-12)
(* b (* c (- z)))
(if (<= b -4.6e-256)
(* i (* y (- j)))
(if (<= b 2.2e-175)
(* j (* a c))
(if (<= b 28000000000.0) (* a (* x (- t))) (* (- z) (* c b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7.5e+166) {
tmp = i * (t * b);
} else if (b <= -1.6e-12) {
tmp = b * (c * -z);
} else if (b <= -4.6e-256) {
tmp = i * (y * -j);
} else if (b <= 2.2e-175) {
tmp = j * (a * c);
} else if (b <= 28000000000.0) {
tmp = a * (x * -t);
} else {
tmp = -z * (c * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-7.5d+166)) then
tmp = i * (t * b)
else if (b <= (-1.6d-12)) then
tmp = b * (c * -z)
else if (b <= (-4.6d-256)) then
tmp = i * (y * -j)
else if (b <= 2.2d-175) then
tmp = j * (a * c)
else if (b <= 28000000000.0d0) then
tmp = a * (x * -t)
else
tmp = -z * (c * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -7.5e+166) {
tmp = i * (t * b);
} else if (b <= -1.6e-12) {
tmp = b * (c * -z);
} else if (b <= -4.6e-256) {
tmp = i * (y * -j);
} else if (b <= 2.2e-175) {
tmp = j * (a * c);
} else if (b <= 28000000000.0) {
tmp = a * (x * -t);
} else {
tmp = -z * (c * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -7.5e+166: tmp = i * (t * b) elif b <= -1.6e-12: tmp = b * (c * -z) elif b <= -4.6e-256: tmp = i * (y * -j) elif b <= 2.2e-175: tmp = j * (a * c) elif b <= 28000000000.0: tmp = a * (x * -t) else: tmp = -z * (c * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -7.5e+166) tmp = Float64(i * Float64(t * b)); elseif (b <= -1.6e-12) tmp = Float64(b * Float64(c * Float64(-z))); elseif (b <= -4.6e-256) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 2.2e-175) tmp = Float64(j * Float64(a * c)); elseif (b <= 28000000000.0) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(Float64(-z) * Float64(c * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -7.5e+166) tmp = i * (t * b); elseif (b <= -1.6e-12) tmp = b * (c * -z); elseif (b <= -4.6e-256) tmp = i * (y * -j); elseif (b <= 2.2e-175) tmp = j * (a * c); elseif (b <= 28000000000.0) tmp = a * (x * -t); else tmp = -z * (c * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -7.5e+166], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.6e-12], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.6e-256], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e-175], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 28000000000.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[((-z) * N[(c * b), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+166}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq -4.6 \cdot 10^{-256}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-175}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;b \leq 28000000000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot b\right)\\
\end{array}
\end{array}
if b < -7.50000000000000029e166Initial program 86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in j around 0 76.8%
Taylor expanded in i around inf 40.1%
*-commutative40.1%
associate-*l*43.6%
Simplified43.6%
if -7.50000000000000029e166 < b < -1.6e-12Initial program 78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in j around 0 69.5%
Taylor expanded in c around inf 40.9%
associate-*r*40.9%
neg-mul-140.9%
Simplified40.9%
if -1.6e-12 < b < -4.6e-256Initial program 84.2%
*-commutative84.2%
*-commutative84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in i around inf 57.4%
*-commutative57.4%
*-commutative57.4%
associate-*l*54.1%
Simplified54.1%
Taylor expanded in y around inf 41.6%
Simplified41.6%
if -4.6e-256 < b < 2.2e-175Initial program 70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in y around -inf 68.2%
Simplified70.5%
Taylor expanded in j around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
sub-neg56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in a around inf 38.3%
associate-*r*43.9%
*-commutative43.9%
Simplified43.9%
if 2.2e-175 < b < 2.8e10Initial program 74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in j around 0 58.5%
associate-*r*58.5%
neg-mul-158.5%
*-commutative58.5%
Simplified58.5%
if 2.8e10 < b Initial program 79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in z around inf 52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in x around 0 46.8%
associate-*r*46.8%
neg-mul-146.8%
*-commutative46.8%
Simplified46.8%
Final simplification45.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.1e+168)
(* t (* i b))
(if (<= b -1.3e+19)
(* b (* c (- z)))
(if (<= b 5e+16) (* a (- (* j c) (* x t))) (* (- z) (* c b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.1e+168) {
tmp = t * (i * b);
} else if (b <= -1.3e+19) {
tmp = b * (c * -z);
} else if (b <= 5e+16) {
tmp = a * ((j * c) - (x * t));
} else {
tmp = -z * (c * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-4.1d+168)) then
tmp = t * (i * b)
else if (b <= (-1.3d+19)) then
tmp = b * (c * -z)
else if (b <= 5d+16) then
tmp = a * ((j * c) - (x * t))
else
tmp = -z * (c * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.1e+168) {
tmp = t * (i * b);
} else if (b <= -1.3e+19) {
tmp = b * (c * -z);
} else if (b <= 5e+16) {
tmp = a * ((j * c) - (x * t));
} else {
tmp = -z * (c * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.1e+168: tmp = t * (i * b) elif b <= -1.3e+19: tmp = b * (c * -z) elif b <= 5e+16: tmp = a * ((j * c) - (x * t)) else: tmp = -z * (c * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.1e+168) tmp = Float64(t * Float64(i * b)); elseif (b <= -1.3e+19) tmp = Float64(b * Float64(c * Float64(-z))); elseif (b <= 5e+16) tmp = Float64(a * Float64(Float64(j * c) - Float64(x * t))); else tmp = Float64(Float64(-z) * Float64(c * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.1e+168) tmp = t * (i * b); elseif (b <= -1.3e+19) tmp = b * (c * -z); elseif (b <= 5e+16) tmp = a * ((j * c) - (x * t)); else tmp = -z * (c * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.1e+168], N[(t * N[(i * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.3e+19], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e+16], N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-z) * N[(c * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.1 \cdot 10^{+168}:\\
\;\;\;\;t \cdot \left(i \cdot b\right)\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{+19}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{+16}:\\
\;\;\;\;a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot b\right)\\
\end{array}
\end{array}
if b < -4.1000000000000003e168Initial program 86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in t around inf 61.3%
distribute-lft-out--61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in x around 0 46.5%
associate-*r*46.5%
neg-mul-146.5%
*-commutative46.5%
Simplified46.5%
if -4.1000000000000003e168 < b < -1.3e19Initial program 75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in j around 0 73.8%
Taylor expanded in c around inf 44.5%
associate-*r*44.5%
neg-mul-144.5%
Simplified44.5%
if -1.3e19 < b < 5e16Initial program 77.5%
*-commutative77.5%
*-commutative77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in a around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
if 5e16 < b Initial program 80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in z around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in x around 0 47.5%
associate-*r*47.5%
neg-mul-147.5%
*-commutative47.5%
Simplified47.5%
Final simplification48.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* c z)))))
(if (<= b -2.5e+29)
t_1
(if (<= b 1.6e-172)
(* j (- (* a c) (* i y)))
(if (<= b 8400000000000.0) (* a (- (* j c) (* 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) - (c * z));
double tmp;
if (b <= -2.5e+29) {
tmp = t_1;
} else if (b <= 1.6e-172) {
tmp = j * ((a * c) - (i * y));
} else if (b <= 8400000000000.0) {
tmp = a * ((j * c) - (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) - (c * z))
if (b <= (-2.5d+29)) then
tmp = t_1
else if (b <= 1.6d-172) then
tmp = j * ((a * c) - (i * y))
else if (b <= 8400000000000.0d0) then
tmp = a * ((j * c) - (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) - (c * z));
double tmp;
if (b <= -2.5e+29) {
tmp = t_1;
} else if (b <= 1.6e-172) {
tmp = j * ((a * c) - (i * y));
} else if (b <= 8400000000000.0) {
tmp = a * ((j * c) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (c * z)) tmp = 0 if b <= -2.5e+29: tmp = t_1 elif b <= 1.6e-172: tmp = j * ((a * c) - (i * y)) elif b <= 8400000000000.0: tmp = a * ((j * c) - (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(c * z))) tmp = 0.0 if (b <= -2.5e+29) tmp = t_1; elseif (b <= 1.6e-172) tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); elseif (b <= 8400000000000.0) tmp = Float64(a * Float64(Float64(j * c) - 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) - (c * z)); tmp = 0.0; if (b <= -2.5e+29) tmp = t_1; elseif (b <= 1.6e-172) tmp = j * ((a * c) - (i * y)); elseif (b <= 8400000000000.0) tmp = a * ((j * c) - (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[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+29], t$95$1, If[LessEqual[b, 1.6e-172], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8400000000000.0], N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-172}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;b \leq 8400000000000:\\
\;\;\;\;a \cdot \left(j \cdot c - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.5e29 or 8.4e12 < b Initial program 81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in b around inf 60.9%
*-commutative60.9%
*-commutative60.9%
Simplified60.9%
if -2.5e29 < b < 1.6000000000000001e-172Initial program 77.9%
*-commutative77.9%
*-commutative77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in y around -inf 78.0%
Simplified79.8%
Taylor expanded in j around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
sub-neg53.4%
*-commutative53.4%
Simplified53.4%
if 1.6000000000000001e-172 < b < 8.4e12Initial program 74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* j a) (* z b)))))
(if (<= c -1.95e-7)
t_1
(if (<= c 1.3e-243)
(* t (- (* i b) (* a x)))
(if (<= c 6.8e+118) (* x (- (* z y) (* a 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 = c * ((j * a) - (z * b));
double tmp;
if (c <= -1.95e-7) {
tmp = t_1;
} else if (c <= 1.3e-243) {
tmp = t * ((i * b) - (a * x));
} else if (c <= 6.8e+118) {
tmp = x * ((z * y) - (a * 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 = c * ((j * a) - (z * b))
if (c <= (-1.95d-7)) then
tmp = t_1
else if (c <= 1.3d-243) then
tmp = t * ((i * b) - (a * x))
else if (c <= 6.8d+118) then
tmp = x * ((z * y) - (a * 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 = c * ((j * a) - (z * b));
double tmp;
if (c <= -1.95e-7) {
tmp = t_1;
} else if (c <= 1.3e-243) {
tmp = t * ((i * b) - (a * x));
} else if (c <= 6.8e+118) {
tmp = x * ((z * y) - (a * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((j * a) - (z * b)) tmp = 0 if c <= -1.95e-7: tmp = t_1 elif c <= 1.3e-243: tmp = t * ((i * b) - (a * x)) elif c <= 6.8e+118: tmp = x * ((z * y) - (a * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(j * a) - Float64(z * b))) tmp = 0.0 if (c <= -1.95e-7) tmp = t_1; elseif (c <= 1.3e-243) tmp = Float64(t * Float64(Float64(i * b) - Float64(a * x))); elseif (c <= 6.8e+118) tmp = Float64(x * Float64(Float64(z * y) - Float64(a * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((j * a) - (z * b)); tmp = 0.0; if (c <= -1.95e-7) tmp = t_1; elseif (c <= 1.3e-243) tmp = t * ((i * b) - (a * x)); elseif (c <= 6.8e+118) tmp = x * ((z * y) - (a * 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[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.95e-7], t$95$1, If[LessEqual[c, 1.3e-243], N[(t * N[(N[(i * b), $MachinePrecision] - N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.8e+118], N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.95 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-243}:\\
\;\;\;\;t \cdot \left(i \cdot b - a \cdot x\right)\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{+118}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.95000000000000012e-7 or 6.79999999999999973e118 < c Initial program 75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
Simplified78.0%
if -1.95000000000000012e-7 < c < 1.2999999999999999e-243Initial program 77.1%
*-commutative77.1%
*-commutative77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in t around inf 51.4%
distribute-lft-out--51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
mul-1-neg51.4%
distribute-rgt-neg-out51.4%
*-commutative51.4%
Applied egg-rr51.4%
if 1.2999999999999999e-243 < c < 6.79999999999999973e118Initial program 84.9%
*-commutative84.9%
*-commutative84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y around -inf 88.7%
Simplified89.9%
Taylor expanded in x around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
sub-neg50.9%
Simplified50.9%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- z) (* c b))))
(if (<= b -8.2e+30)
t_1
(if (<= b -3.3e-255)
(* z (* x y))
(if (<= b 2.8e-175)
(* j (* a c))
(if (<= b 7400000000.0) (* 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 * (c * b);
double tmp;
if (b <= -8.2e+30) {
tmp = t_1;
} else if (b <= -3.3e-255) {
tmp = z * (x * y);
} else if (b <= 2.8e-175) {
tmp = j * (a * c);
} else if (b <= 7400000000.0) {
tmp = 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 * (c * b)
if (b <= (-8.2d+30)) then
tmp = t_1
else if (b <= (-3.3d-255)) then
tmp = z * (x * y)
else if (b <= 2.8d-175) then
tmp = j * (a * c)
else if (b <= 7400000000.0d0) then
tmp = 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 * (c * b);
double tmp;
if (b <= -8.2e+30) {
tmp = t_1;
} else if (b <= -3.3e-255) {
tmp = z * (x * y);
} else if (b <= 2.8e-175) {
tmp = j * (a * c);
} else if (b <= 7400000000.0) {
tmp = a * (x * -t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -z * (c * b) tmp = 0 if b <= -8.2e+30: tmp = t_1 elif b <= -3.3e-255: tmp = z * (x * y) elif b <= 2.8e-175: tmp = j * (a * c) elif b <= 7400000000.0: tmp = a * (x * -t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-z) * Float64(c * b)) tmp = 0.0 if (b <= -8.2e+30) tmp = t_1; elseif (b <= -3.3e-255) tmp = Float64(z * Float64(x * y)); elseif (b <= 2.8e-175) tmp = Float64(j * Float64(a * c)); elseif (b <= 7400000000.0) tmp = Float64(a * Float64(x * Float64(-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 * (c * b); tmp = 0.0; if (b <= -8.2e+30) tmp = t_1; elseif (b <= -3.3e-255) tmp = z * (x * y); elseif (b <= 2.8e-175) tmp = j * (a * c); elseif (b <= 7400000000.0) tmp = 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[(c * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.2e+30], t$95$1, If[LessEqual[b, -3.3e-255], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-175], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7400000000.0], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-z\right) \cdot \left(c \cdot b\right)\\
\mathbf{if}\;b \leq -8.2 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-255}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-175}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;b \leq 7400000000:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -8.20000000000000011e30 or 7.4e9 < b Initial program 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in z around inf 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in x around 0 42.8%
associate-*r*42.8%
neg-mul-142.8%
*-commutative42.8%
Simplified42.8%
if -8.20000000000000011e30 < b < -3.29999999999999988e-255Initial program 83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in z around inf 38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in x around inf 32.8%
if -3.29999999999999988e-255 < b < 2.8e-175Initial program 70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in y around -inf 68.2%
Simplified70.5%
Taylor expanded in j around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
sub-neg56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in a around inf 38.3%
associate-*r*43.9%
*-commutative43.9%
Simplified43.9%
if 2.8e-175 < b < 7.4e9Initial program 74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in j around 0 58.5%
associate-*r*58.5%
neg-mul-158.5%
*-commutative58.5%
Simplified58.5%
Final simplification41.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.4e+19) (not (<= b 2900000000000.0))) (* b (- (* t i) (* c z))) (* a (- (* j c) (* 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 <= -3.4e+19) || !(b <= 2900000000000.0)) {
tmp = b * ((t * i) - (c * z));
} else {
tmp = a * ((j * c) - (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 <= (-3.4d+19)) .or. (.not. (b <= 2900000000000.0d0))) then
tmp = b * ((t * i) - (c * z))
else
tmp = a * ((j * c) - (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 <= -3.4e+19) || !(b <= 2900000000000.0)) {
tmp = b * ((t * i) - (c * z));
} else {
tmp = a * ((j * c) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.4e+19) or not (b <= 2900000000000.0): tmp = b * ((t * i) - (c * z)) else: tmp = a * ((j * c) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.4e+19) || !(b <= 2900000000000.0)) tmp = Float64(b * Float64(Float64(t * i) - Float64(c * z))); else tmp = Float64(a * Float64(Float64(j * c) - 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 <= -3.4e+19) || ~((b <= 2900000000000.0))) tmp = b * ((t * i) - (c * z)); else tmp = a * ((j * c) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.4e+19], N[Not[LessEqual[b, 2900000000000.0]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(j * c), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{+19} \lor \neg \left(b \leq 2900000000000\right):\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(j \cdot c - x \cdot t\right)\\
\end{array}
\end{array}
if b < -3.4e19 or 2.9e12 < b Initial program 80.2%
*-commutative80.2%
*-commutative80.2%
*-commutative80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in b around inf 59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
if -3.4e19 < b < 2.9e12Initial program 78.0%
*-commutative78.0%
*-commutative78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
*-commutative50.7%
Simplified50.7%
Final simplification55.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.5e-23) (not (<= c 3.2e+118))) (* c (- (* j a) (* z b))) (* x (- (* z y) (* a t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.5e-23) || !(c <= 3.2e+118)) {
tmp = c * ((j * a) - (z * b));
} else {
tmp = x * ((z * y) - (a * 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 ((c <= (-2.5d-23)) .or. (.not. (c <= 3.2d+118))) then
tmp = c * ((j * a) - (z * b))
else
tmp = x * ((z * y) - (a * 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 ((c <= -2.5e-23) || !(c <= 3.2e+118)) {
tmp = c * ((j * a) - (z * b));
} else {
tmp = x * ((z * y) - (a * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.5e-23) or not (c <= 3.2e+118): tmp = c * ((j * a) - (z * b)) else: tmp = x * ((z * y) - (a * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.5e-23) || !(c <= 3.2e+118)) tmp = Float64(c * Float64(Float64(j * a) - Float64(z * b))); else tmp = Float64(x * Float64(Float64(z * y) - Float64(a * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.5e-23) || ~((c <= 3.2e+118))) tmp = c * ((j * a) - (z * b)); else tmp = x * ((z * y) - (a * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.5e-23], N[Not[LessEqual[c, 3.2e+118]], $MachinePrecision]], N[(c * N[(N[(j * a), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.5 \cdot 10^{-23} \lor \neg \left(c \leq 3.2 \cdot 10^{+118}\right):\\
\;\;\;\;c \cdot \left(j \cdot a - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\
\end{array}
\end{array}
if c < -2.5000000000000001e-23 or 3.20000000000000016e118 < c Initial program 75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in c around inf 76.6%
*-commutative76.6%
Simplified76.6%
if -2.5000000000000001e-23 < c < 3.20000000000000016e118Initial program 81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around -inf 87.7%
Simplified88.3%
Taylor expanded in x around inf 46.0%
+-commutative46.0%
mul-1-neg46.0%
sub-neg46.0%
Simplified46.0%
Final simplification57.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -7.2e-76) (not (<= c 6e-101))) (* a (* j c)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7.2e-76) || !(c <= 6e-101)) {
tmp = a * (j * c);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-7.2d-76)) .or. (.not. (c <= 6d-101))) then
tmp = a * (j * c)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7.2e-76) || !(c <= 6e-101)) {
tmp = a * (j * c);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -7.2e-76) or not (c <= 6e-101): tmp = a * (j * c) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -7.2e-76) || !(c <= 6e-101)) tmp = Float64(a * Float64(j * c)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -7.2e-76) || ~((c <= 6e-101))) tmp = a * (j * c); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -7.2e-76], N[Not[LessEqual[c, 6e-101]], $MachinePrecision]], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.2 \cdot 10^{-76} \lor \neg \left(c \leq 6 \cdot 10^{-101}\right):\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -7.2000000000000001e-76 or 6.0000000000000006e-101 < c Initial program 78.7%
*-commutative78.7%
*-commutative78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in a around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in j around inf 32.2%
if -7.2000000000000001e-76 < c < 6.0000000000000006e-101Initial program 79.6%
*-commutative79.6%
*-commutative79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 28.3%
Final simplification30.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -9e+32) (not (<= y 1.45e+62))) (* z (* x y)) (* j (* a c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -9e+32) || !(y <= 1.45e+62)) {
tmp = z * (x * y);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-9d+32)) .or. (.not. (y <= 1.45d+62))) then
tmp = z * (x * y)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -9e+32) || !(y <= 1.45e+62)) {
tmp = z * (x * y);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -9e+32) or not (y <= 1.45e+62): tmp = z * (x * y) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -9e+32) || !(y <= 1.45e+62)) tmp = Float64(z * Float64(x * y)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -9e+32) || ~((y <= 1.45e+62))) tmp = z * (x * y); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -9e+32], N[Not[LessEqual[y, 1.45e+62]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+32} \lor \neg \left(y \leq 1.45 \cdot 10^{+62}\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if y < -9.0000000000000007e32 or 1.44999999999999992e62 < y Initial program 67.9%
*-commutative67.9%
*-commutative67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in z around inf 47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in x around inf 42.3%
if -9.0000000000000007e32 < y < 1.44999999999999992e62Initial program 85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in y around -inf 79.5%
Simplified81.9%
Taylor expanded in j around inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
sub-neg41.5%
*-commutative41.5%
Simplified41.5%
Taylor expanded in a around inf 26.9%
associate-*r*30.1%
*-commutative30.1%
Simplified30.1%
Final simplification34.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -1.9e-75) (* a (* j c)) (if (<= c 3.8e-101) (* b (* t i)) (* c (* j a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.9e-75) {
tmp = a * (j * c);
} else if (c <= 3.8e-101) {
tmp = b * (t * i);
} else {
tmp = c * (j * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-1.9d-75)) then
tmp = a * (j * c)
else if (c <= 3.8d-101) then
tmp = b * (t * i)
else
tmp = c * (j * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.9e-75) {
tmp = a * (j * c);
} else if (c <= 3.8e-101) {
tmp = b * (t * i);
} else {
tmp = c * (j * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.9e-75: tmp = a * (j * c) elif c <= 3.8e-101: tmp = b * (t * i) else: tmp = c * (j * a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.9e-75) tmp = Float64(a * Float64(j * c)); elseif (c <= 3.8e-101) tmp = Float64(b * Float64(t * i)); else tmp = Float64(c * Float64(j * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.9e-75) tmp = a * (j * c); elseif (c <= 3.8e-101) tmp = b * (t * i); else tmp = c * (j * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.9e-75], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e-101], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.9 \cdot 10^{-75}:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot a\right)\\
\end{array}
\end{array}
if c < -1.89999999999999997e-75Initial program 75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in a around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in j around inf 41.2%
if -1.89999999999999997e-75 < c < 3.8000000000000001e-101Initial program 79.6%
*-commutative79.6%
*-commutative79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 28.3%
if 3.8000000000000001e-101 < c Initial program 82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around -inf 76.2%
Simplified79.8%
Taylor expanded in j around inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
sub-neg45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in a around inf 24.1%
*-commutative24.1%
associate-*r*29.2%
*-commutative29.2%
Simplified29.2%
Final simplification32.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -1.8e-75) (* a (* j c)) (if (<= c 6.6e-101) (* b (* t i)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.8e-75) {
tmp = a * (j * c);
} else if (c <= 6.6e-101) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-1.8d-75)) then
tmp = a * (j * c)
else if (c <= 6.6d-101) then
tmp = b * (t * i)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.8e-75) {
tmp = a * (j * c);
} else if (c <= 6.6e-101) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.8e-75: tmp = a * (j * c) elif c <= 6.6e-101: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.8e-75) tmp = Float64(a * Float64(j * c)); elseif (c <= 6.6e-101) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.8e-75) tmp = a * (j * c); elseif (c <= 6.6e-101) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.8e-75], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.6e-101], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.8 \cdot 10^{-75}:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{elif}\;c \leq 6.6 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -1.8e-75Initial program 75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in a around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in j around inf 41.2%
if -1.8e-75 < c < 6.59999999999999968e-101Initial program 79.6%
*-commutative79.6%
*-commutative79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 28.3%
if 6.59999999999999968e-101 < c Initial program 82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around -inf 76.2%
Simplified79.8%
Taylor expanded in j around inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
sub-neg45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in a around inf 24.1%
associate-*r*32.7%
*-commutative32.7%
Simplified32.7%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* j c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (j * c);
}
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 * (j * c)
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 * (j * c);
}
def code(x, y, z, t, a, b, c, i, j): return a * (j * c)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(j * c)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (j * c); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(j \cdot c\right)
\end{array}
Initial program 79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in a around inf 40.4%
+-commutative40.4%
mul-1-neg40.4%
unsub-neg40.4%
*-commutative40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in j around inf 22.7%
Final simplification22.7%
(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 2023301
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(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)))))