
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= (+ t_2 (- (* b t_1) (* x (- (* t a) (* y z))))) INFINITY)
(fma b t_1 (fma x (- (* y z) (* t a)) t_2))
(* t (- (* b i) (* x a))))))
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) - (z * c);
double t_2 = j * ((a * c) - (y * i));
double tmp;
if ((t_2 + ((b * t_1) - (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(b, t_1, fma(x, ((y * z) - (t * a)), t_2));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (Float64(t_2 + Float64(Float64(b * t_1) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(b, t_1, fma(x, Float64(Float64(y * z) - Float64(t * a)), t_2)); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 + N[(N[(b * t$95$1), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_2 + \left(b \cdot t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(b, t_1, \mathsf{fma}\left(x, y \cdot z - t \cdot a, t_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\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 89.9%
sub-neg89.9%
+-commutative89.9%
associate-+l+89.9%
distribute-rgt-neg-in89.9%
+-commutative89.9%
fma-def89.9%
sub-neg89.9%
+-commutative89.9%
distribute-neg-in89.9%
unsub-neg89.9%
remove-double-neg89.9%
*-commutative89.9%
Simplified89.9%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
add-cube-cbrt0.0%
Applied egg-rr0.0%
Taylor expanded in t around inf 56.3%
*-commutative56.3%
mul-1-neg56.3%
*-commutative56.3%
associate-*r*56.3%
neg-mul-156.3%
cancel-sign-sub56.3%
*-commutative56.3%
+-commutative56.3%
unsub-neg56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
Final simplification82.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ (* j t_2) t_1) INFINITY)
(fma j t_2 t_1)
(* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = (a * c) - (y * i);
double tmp;
if (((j * t_2) + t_1) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_2) + t_1) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$2), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t_2 + t_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\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 89.9%
+-commutative89.9%
fma-def89.9%
*-commutative89.9%
*-commutative89.9%
Simplified89.9%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
add-cube-cbrt0.0%
Applied egg-rr0.0%
Taylor expanded in t around inf 56.3%
*-commutative56.3%
mul-1-neg56.3%
*-commutative56.3%
associate-*r*56.3%
neg-mul-156.3%
cancel-sign-sub56.3%
*-commutative56.3%
+-commutative56.3%
unsub-neg56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
Final simplification82.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* a c) (* y i)))
(- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
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) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\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 89.9%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
add-cube-cbrt0.0%
Applied egg-rr0.0%
Taylor expanded in t around inf 56.3%
*-commutative56.3%
mul-1-neg56.3%
*-commutative56.3%
associate-*r*56.3%
neg-mul-156.3%
cancel-sign-sub56.3%
*-commutative56.3%
+-commutative56.3%
unsub-neg56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
Final simplification82.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z))))
(t_2 (- (* b (- (* t i) (* z c))) t_1))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -0.046)
(- t_3 (+ (* z (* b c)) t_1))
(if (<= j -1.25e-176)
t_2
(if (<= j 5.6e-101)
(+ (- (* z (- (* x y) (* b c))) (* a (* x t))) (* i (* t b)))
(if (<= j 2.45e+17)
t_2
(if (<= j 1.06e+144)
(- (* t (* b i)) (* j (- (* y i) (* a c))))
(if (<= j 8.5e+171) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -0.046) {
tmp = t_3 - ((z * (b * c)) + t_1);
} else if (j <= -1.25e-176) {
tmp = t_2;
} else if (j <= 5.6e-101) {
tmp = ((z * ((x * y) - (b * c))) - (a * (x * t))) + (i * (t * b));
} else if (j <= 2.45e+17) {
tmp = t_2;
} else if (j <= 1.06e+144) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 8.5e+171) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((t * a) - (y * z))
t_2 = (b * ((t * i) - (z * c))) - t_1
t_3 = j * ((a * c) - (y * i))
if (j <= (-0.046d0)) then
tmp = t_3 - ((z * (b * c)) + t_1)
else if (j <= (-1.25d-176)) then
tmp = t_2
else if (j <= 5.6d-101) then
tmp = ((z * ((x * y) - (b * c))) - (a * (x * t))) + (i * (t * b))
else if (j <= 2.45d+17) then
tmp = t_2
else if (j <= 1.06d+144) then
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)))
else if (j <= 8.5d+171) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -0.046) {
tmp = t_3 - ((z * (b * c)) + t_1);
} else if (j <= -1.25e-176) {
tmp = t_2;
} else if (j <= 5.6e-101) {
tmp = ((z * ((x * y) - (b * c))) - (a * (x * t))) + (i * (t * b));
} else if (j <= 2.45e+17) {
tmp = t_2;
} else if (j <= 1.06e+144) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 8.5e+171) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = (b * ((t * i) - (z * c))) - t_1 t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -0.046: tmp = t_3 - ((z * (b * c)) + t_1) elif j <= -1.25e-176: tmp = t_2 elif j <= 5.6e-101: tmp = ((z * ((x * y) - (b * c))) - (a * (x * t))) + (i * (t * b)) elif j <= 2.45e+17: tmp = t_2 elif j <= 1.06e+144: tmp = (t * (b * i)) - (j * ((y * i) - (a * c))) elif j <= 8.5e+171: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -0.046) tmp = Float64(t_3 - Float64(Float64(z * Float64(b * c)) + t_1)); elseif (j <= -1.25e-176) tmp = t_2; elseif (j <= 5.6e-101) tmp = Float64(Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - Float64(a * Float64(x * t))) + Float64(i * Float64(t * b))); elseif (j <= 2.45e+17) tmp = t_2; elseif (j <= 1.06e+144) tmp = Float64(Float64(t * Float64(b * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (j <= 8.5e+171) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = (b * ((t * i) - (z * c))) - t_1; t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -0.046) tmp = t_3 - ((z * (b * c)) + t_1); elseif (j <= -1.25e-176) tmp = t_2; elseif (j <= 5.6e-101) tmp = ((z * ((x * y) - (b * c))) - (a * (x * t))) + (i * (t * b)); elseif (j <= 2.45e+17) tmp = t_2; elseif (j <= 1.06e+144) tmp = (t * (b * i)) - (j * ((y * i) - (a * c))); elseif (j <= 8.5e+171) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -0.046], N[(t$95$3 - N[(N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.25e-176], t$95$2, If[LessEqual[j, 5.6e-101], N[(N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.45e+17], t$95$2, If[LessEqual[j, 1.06e+144], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+171], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - t_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -0.046:\\
\;\;\;\;t_3 - \left(z \cdot \left(b \cdot c\right) + t_1\right)\\
\mathbf{elif}\;j \leq -1.25 \cdot 10^{-176}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{-101}:\\
\;\;\;\;\left(z \cdot \left(x \cdot y - b \cdot c\right) - a \cdot \left(x \cdot t\right)\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 2.45 \cdot 10^{+17}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.06 \cdot 10^{+144}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+171}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -0.045999999999999999Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in z around inf 70.2%
associate-*r*68.2%
*-commutative68.2%
associate-*l*68.3%
Simplified68.3%
if -0.045999999999999999 < j < -1.25e-176 or 5.59999999999999978e-101 < j < 2.45e17 or 1.06e144 < j < 8.4999999999999995e171Initial program 75.6%
+-commutative75.6%
fma-def77.3%
*-commutative77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in j around 0 75.8%
if -1.25e-176 < j < 5.59999999999999978e-101Initial program 71.9%
+-commutative71.9%
fma-def71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in j around 0 78.0%
Taylor expanded in z around 0 85.3%
if 2.45e17 < j < 1.06e144Initial program 50.7%
cancel-sign-sub50.7%
cancel-sign-sub-inv50.7%
*-commutative50.7%
remove-double-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in i around inf 62.5%
associate-*r*57.4%
*-commutative57.4%
associate-*r*66.6%
Simplified66.6%
if 8.4999999999999995e171 < j Initial program 71.4%
+-commutative71.4%
fma-def76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around inf 79.7%
Final simplification77.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t (* b i)) (* j (- (* y i) (* a c)))))
(t_2 (- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z))))))
(if (<= j -9.2e+68)
t_1
(if (<= j 2.6e+18)
t_2
(if (<= j 3.2e+143)
t_1
(if (<= j 8.6e+170) t_2 (* j (- (* a c) (* y i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * (b * i)) - (j * ((y * i) - (a * c)));
double t_2 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double tmp;
if (j <= -9.2e+68) {
tmp = t_1;
} else if (j <= 2.6e+18) {
tmp = t_2;
} else if (j <= 3.2e+143) {
tmp = t_1;
} else if (j <= 8.6e+170) {
tmp = t_2;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t * (b * i)) - (j * ((y * i) - (a * c)))
t_2 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))
if (j <= (-9.2d+68)) then
tmp = t_1
else if (j <= 2.6d+18) then
tmp = t_2
else if (j <= 3.2d+143) then
tmp = t_1
else if (j <= 8.6d+170) then
tmp = t_2
else
tmp = j * ((a * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * (b * i)) - (j * ((y * i) - (a * c)));
double t_2 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double tmp;
if (j <= -9.2e+68) {
tmp = t_1;
} else if (j <= 2.6e+18) {
tmp = t_2;
} else if (j <= 3.2e+143) {
tmp = t_1;
} else if (j <= 8.6e+170) {
tmp = t_2;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * (b * i)) - (j * ((y * i) - (a * c))) t_2 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))) tmp = 0 if j <= -9.2e+68: tmp = t_1 elif j <= 2.6e+18: tmp = t_2 elif j <= 3.2e+143: tmp = t_1 elif j <= 8.6e+170: tmp = t_2 else: tmp = j * ((a * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(b * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) tmp = 0.0 if (j <= -9.2e+68) tmp = t_1; elseif (j <= 2.6e+18) tmp = t_2; elseif (j <= 3.2e+143) tmp = t_1; elseif (j <= 8.6e+170) tmp = t_2; else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * (b * i)) - (j * ((y * i) - (a * c))); t_2 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))); tmp = 0.0; if (j <= -9.2e+68) tmp = t_1; elseif (j <= 2.6e+18) tmp = t_2; elseif (j <= 3.2e+143) tmp = t_1; elseif (j <= 8.6e+170) tmp = t_2; else tmp = j * ((a * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.2e+68], t$95$1, If[LessEqual[j, 2.6e+18], t$95$2, If[LessEqual[j, 3.2e+143], t$95$1, If[LessEqual[j, 8.6e+170], t$95$2, N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;j \leq -9.2 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{+18}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{+143}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 8.6 \cdot 10^{+170}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if j < -9.1999999999999999e68 or 2.6e18 < j < 3.20000000000000016e143Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in i around inf 64.7%
associate-*r*63.0%
*-commutative63.0%
associate-*r*64.4%
Simplified64.4%
if -9.1999999999999999e68 < j < 2.6e18 or 3.20000000000000016e143 < j < 8.5999999999999997e170Initial program 72.9%
+-commutative72.9%
fma-def74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in j around 0 75.5%
if 8.5999999999999997e170 < j Initial program 71.4%
+-commutative71.4%
fma-def76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around inf 79.7%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))
(t_2 (* j (- (* a c) (* y i)))))
(if (<= j -1.6e+67)
(- (+ t_2 (* y (* x z))) (* c (* z b)))
(if (<= j 6.2e+17)
t_1
(if (<= j 4.3e+142)
(- (* t (* b i)) (* j (- (* y i) (* a c))))
(if (<= j 4.6e+174) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.6e+67) {
tmp = (t_2 + (y * (x * z))) - (c * (z * b));
} else if (j <= 6.2e+17) {
tmp = t_1;
} else if (j <= 4.3e+142) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 4.6e+174) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))
t_2 = j * ((a * c) - (y * i))
if (j <= (-1.6d+67)) then
tmp = (t_2 + (y * (x * z))) - (c * (z * b))
else if (j <= 6.2d+17) then
tmp = t_1
else if (j <= 4.3d+142) then
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)))
else if (j <= 4.6d+174) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.6e+67) {
tmp = (t_2 + (y * (x * z))) - (c * (z * b));
} else if (j <= 6.2e+17) {
tmp = t_1;
} else if (j <= 4.3e+142) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 4.6e+174) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.6e+67: tmp = (t_2 + (y * (x * z))) - (c * (z * b)) elif j <= 6.2e+17: tmp = t_1 elif j <= 4.3e+142: tmp = (t * (b * i)) - (j * ((y * i) - (a * c))) elif j <= 4.6e+174: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.6e+67) tmp = Float64(Float64(t_2 + Float64(y * Float64(x * z))) - Float64(c * Float64(z * b))); elseif (j <= 6.2e+17) tmp = t_1; elseif (j <= 4.3e+142) tmp = Float64(Float64(t * Float64(b * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (j <= 4.6e+174) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.6e+67) tmp = (t_2 + (y * (x * z))) - (c * (z * b)); elseif (j <= 6.2e+17) tmp = t_1; elseif (j <= 4.3e+142) tmp = (t * (b * i)) - (j * ((y * i) - (a * c))); elseif (j <= 4.6e+174) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.6e+67], N[(N[(t$95$2 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.2e+17], t$95$1, If[LessEqual[j, 4.3e+142], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.6e+174], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.6 \cdot 10^{+67}:\\
\;\;\;\;\left(t_2 + y \cdot \left(x \cdot z\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{+142}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+174}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.59999999999999991e67Initial program 72.7%
+-commutative72.7%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around 0 68.7%
if -1.59999999999999991e67 < j < 6.2e17 or 4.30000000000000012e142 < j < 4.5999999999999996e174Initial program 72.9%
+-commutative72.9%
fma-def74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in j around 0 75.5%
if 6.2e17 < j < 4.30000000000000012e142Initial program 50.7%
cancel-sign-sub50.7%
cancel-sign-sub-inv50.7%
*-commutative50.7%
remove-double-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in i around inf 62.5%
associate-*r*57.4%
*-commutative57.4%
associate-*r*66.6%
Simplified66.6%
if 4.5999999999999996e174 < j Initial program 71.4%
+-commutative71.4%
fma-def76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around inf 79.7%
Final simplification74.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z))))
(t_2 (- (* b (- (* t i) (* z c))) t_1))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -0.056)
(- t_3 (+ (* z (* b c)) t_1))
(if (<= j 3e+18)
t_2
(if (<= j 4e+142)
(- (* t (* b i)) (* j (- (* y i) (* a c))))
(if (<= j 3e+170) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -0.056) {
tmp = t_3 - ((z * (b * c)) + t_1);
} else if (j <= 3e+18) {
tmp = t_2;
} else if (j <= 4e+142) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 3e+170) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((t * a) - (y * z))
t_2 = (b * ((t * i) - (z * c))) - t_1
t_3 = j * ((a * c) - (y * i))
if (j <= (-0.056d0)) then
tmp = t_3 - ((z * (b * c)) + t_1)
else if (j <= 3d+18) then
tmp = t_2
else if (j <= 4d+142) then
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)))
else if (j <= 3d+170) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -0.056) {
tmp = t_3 - ((z * (b * c)) + t_1);
} else if (j <= 3e+18) {
tmp = t_2;
} else if (j <= 4e+142) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 3e+170) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = (b * ((t * i) - (z * c))) - t_1 t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -0.056: tmp = t_3 - ((z * (b * c)) + t_1) elif j <= 3e+18: tmp = t_2 elif j <= 4e+142: tmp = (t * (b * i)) - (j * ((y * i) - (a * c))) elif j <= 3e+170: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -0.056) tmp = Float64(t_3 - Float64(Float64(z * Float64(b * c)) + t_1)); elseif (j <= 3e+18) tmp = t_2; elseif (j <= 4e+142) tmp = Float64(Float64(t * Float64(b * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (j <= 3e+170) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = (b * ((t * i) - (z * c))) - t_1; t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -0.056) tmp = t_3 - ((z * (b * c)) + t_1); elseif (j <= 3e+18) tmp = t_2; elseif (j <= 4e+142) tmp = (t * (b * i)) - (j * ((y * i) - (a * c))); elseif (j <= 3e+170) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -0.056], N[(t$95$3 - N[(N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e+18], t$95$2, If[LessEqual[j, 4e+142], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e+170], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - t_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -0.056:\\
\;\;\;\;t_3 - \left(z \cdot \left(b \cdot c\right) + t_1\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{+18}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4 \cdot 10^{+142}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{+170}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -0.0560000000000000012Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in z around inf 70.2%
associate-*r*68.2%
*-commutative68.2%
associate-*l*68.3%
Simplified68.3%
if -0.0560000000000000012 < j < 3e18 or 4.0000000000000002e142 < j < 2.99999999999999997e170Initial program 73.5%
+-commutative73.5%
fma-def74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in j around 0 77.0%
if 3e18 < j < 4.0000000000000002e142Initial program 50.7%
cancel-sign-sub50.7%
cancel-sign-sub-inv50.7%
*-commutative50.7%
remove-double-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in i around inf 62.5%
associate-*r*57.4%
*-commutative57.4%
associate-*r*66.6%
Simplified66.6%
if 2.99999999999999997e170 < j Initial program 71.4%
+-commutative71.4%
fma-def76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around inf 79.7%
Final simplification74.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -6.3e+25)
t_2
(if (<= a -2e-17)
t_1
(if (<= a -1.05e-37)
t_2
(if (<= a -1.25e-192)
(* x (* y z))
(if (<= a -4.2e-271)
(* i (* y (- j)))
(if (<= a 8.2e-278)
(* t (* b i))
(if (<= a 5.5e-100)
(* z (* x y))
(if (<= a 1.85e+117) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -6.3e+25) {
tmp = t_2;
} else if (a <= -2e-17) {
tmp = t_1;
} else if (a <= -1.05e-37) {
tmp = t_2;
} else if (a <= -1.25e-192) {
tmp = x * (y * z);
} else if (a <= -4.2e-271) {
tmp = i * (y * -j);
} else if (a <= 8.2e-278) {
tmp = t * (b * i);
} else if (a <= 5.5e-100) {
tmp = z * (x * y);
} else if (a <= 1.85e+117) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (t * i)
t_2 = a * ((c * j) - (x * t))
if (a <= (-6.3d+25)) then
tmp = t_2
else if (a <= (-2d-17)) then
tmp = t_1
else if (a <= (-1.05d-37)) then
tmp = t_2
else if (a <= (-1.25d-192)) then
tmp = x * (y * z)
else if (a <= (-4.2d-271)) then
tmp = i * (y * -j)
else if (a <= 8.2d-278) then
tmp = t * (b * i)
else if (a <= 5.5d-100) then
tmp = z * (x * y)
else if (a <= 1.85d+117) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -6.3e+25) {
tmp = t_2;
} else if (a <= -2e-17) {
tmp = t_1;
} else if (a <= -1.05e-37) {
tmp = t_2;
} else if (a <= -1.25e-192) {
tmp = x * (y * z);
} else if (a <= -4.2e-271) {
tmp = i * (y * -j);
} else if (a <= 8.2e-278) {
tmp = t * (b * i);
} else if (a <= 5.5e-100) {
tmp = z * (x * y);
} else if (a <= 1.85e+117) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -6.3e+25: tmp = t_2 elif a <= -2e-17: tmp = t_1 elif a <= -1.05e-37: tmp = t_2 elif a <= -1.25e-192: tmp = x * (y * z) elif a <= -4.2e-271: tmp = i * (y * -j) elif a <= 8.2e-278: tmp = t * (b * i) elif a <= 5.5e-100: tmp = z * (x * y) elif a <= 1.85e+117: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -6.3e+25) tmp = t_2; elseif (a <= -2e-17) tmp = t_1; elseif (a <= -1.05e-37) tmp = t_2; elseif (a <= -1.25e-192) tmp = Float64(x * Float64(y * z)); elseif (a <= -4.2e-271) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 8.2e-278) tmp = Float64(t * Float64(b * i)); elseif (a <= 5.5e-100) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.85e+117) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -6.3e+25) tmp = t_2; elseif (a <= -2e-17) tmp = t_1; elseif (a <= -1.05e-37) tmp = t_2; elseif (a <= -1.25e-192) tmp = x * (y * z); elseif (a <= -4.2e-271) tmp = i * (y * -j); elseif (a <= 8.2e-278) tmp = t * (b * i); elseif (a <= 5.5e-100) tmp = z * (x * y); elseif (a <= 1.85e+117) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.3e+25], t$95$2, If[LessEqual[a, -2e-17], t$95$1, If[LessEqual[a, -1.05e-37], t$95$2, If[LessEqual[a, -1.25e-192], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.2e-271], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.2e-278], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-100], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e+117], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.3 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-192}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-271}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{-278}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-100}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+117}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -6.29999999999999973e25 or -2.00000000000000014e-17 < a < -1.05e-37 or 1.8499999999999999e117 < a Initial program 60.2%
+-commutative60.2%
fma-def63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in a around inf 65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
if -6.29999999999999973e25 < a < -2.00000000000000014e-17 or 5.50000000000000011e-100 < a < 1.8499999999999999e117Initial program 75.7%
+-commutative75.7%
fma-def79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in j around 0 65.8%
Taylor expanded in i around inf 35.9%
*-commutative35.9%
*-commutative35.9%
associate-*l*39.8%
Simplified39.8%
if -1.05e-37 < a < -1.25e-192Initial program 68.9%
sub-neg68.9%
+-commutative68.9%
associate-+l+68.9%
distribute-rgt-neg-in68.9%
+-commutative68.9%
fma-def69.1%
sub-neg69.1%
+-commutative69.1%
distribute-neg-in69.1%
unsub-neg69.1%
remove-double-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in i around 0 75.6%
Taylor expanded in y around inf 37.4%
associate-*r*44.5%
Simplified44.5%
if -1.25e-192 < a < -4.2000000000000001e-271Initial program 83.6%
+-commutative83.6%
fma-def83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in j around inf 54.8%
Taylor expanded in c around 0 49.9%
neg-mul-149.9%
associate-*r*46.2%
*-commutative46.2%
associate-*r*50.3%
distribute-rgt-neg-in50.3%
*-commutative50.3%
distribute-rgt-neg-in50.3%
Simplified50.3%
if -4.2000000000000001e-271 < a < 8.20000000000000002e-278Initial program 69.7%
sub-neg69.7%
+-commutative69.7%
associate-+l+69.7%
distribute-rgt-neg-in69.7%
+-commutative69.7%
fma-def69.7%
sub-neg69.7%
+-commutative69.7%
distribute-neg-in69.7%
unsub-neg69.7%
remove-double-neg69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in t around inf 62.6%
Taylor expanded in i around inf 62.5%
if 8.20000000000000002e-278 < a < 5.50000000000000011e-100Initial program 86.1%
sub-neg86.1%
+-commutative86.1%
associate-+l+86.1%
distribute-rgt-neg-in86.1%
+-commutative86.1%
fma-def86.1%
sub-neg86.1%
+-commutative86.1%
distribute-neg-in86.1%
unsub-neg86.1%
remove-double-neg86.1%
*-commutative86.1%
Simplified88.9%
Taylor expanded in i around 0 75.5%
Taylor expanded in y around inf 40.6%
*-commutative40.6%
associate-*l*43.1%
*-commutative43.1%
Simplified43.1%
Final simplification52.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* t i) (* z c))) (* i (* y j))))
(t_2 (* x (- (* y z) (* t a)))))
(if (<= x -5.2e+70)
t_2
(if (<= x -6.6e-174)
t_1
(if (<= x -5.8e-296)
(* i (- (* t b) (* y j)))
(if (<= x 4.1e+15) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (i * (y * j));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.2e+70) {
tmp = t_2;
} else if (x <= -6.6e-174) {
tmp = t_1;
} else if (x <= -5.8e-296) {
tmp = i * ((t * b) - (y * j));
} else if (x <= 4.1e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * ((t * i) - (z * c))) - (i * (y * j))
t_2 = x * ((y * z) - (t * a))
if (x <= (-5.2d+70)) then
tmp = t_2
else if (x <= (-6.6d-174)) then
tmp = t_1
else if (x <= (-5.8d-296)) then
tmp = i * ((t * b) - (y * j))
else if (x <= 4.1d+15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * ((t * i) - (z * c))) - (i * (y * j));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5.2e+70) {
tmp = t_2;
} else if (x <= -6.6e-174) {
tmp = t_1;
} else if (x <= -5.8e-296) {
tmp = i * ((t * b) - (y * j));
} else if (x <= 4.1e+15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * ((t * i) - (z * c))) - (i * (y * j)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -5.2e+70: tmp = t_2 elif x <= -6.6e-174: tmp = t_1 elif x <= -5.8e-296: tmp = i * ((t * b) - (y * j)) elif x <= 4.1e+15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(i * Float64(y * j))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -5.2e+70) tmp = t_2; elseif (x <= -6.6e-174) tmp = t_1; elseif (x <= -5.8e-296) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (x <= 4.1e+15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * ((t * i) - (z * c))) - (i * (y * j)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -5.2e+70) tmp = t_2; elseif (x <= -6.6e-174) tmp = t_1; elseif (x <= -5.8e-296) tmp = i * ((t * b) - (y * j)); elseif (x <= 4.1e+15) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+70], t$95$2, If[LessEqual[x, -6.6e-174], t$95$1, If[LessEqual[x, -5.8e-296], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.1e+15], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - i \cdot \left(y \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+70}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-174}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{-296}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -5.2000000000000001e70 or 4.1e15 < x Initial program 73.8%
+-commutative73.8%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in x around inf 67.2%
if -5.2000000000000001e70 < x < -6.6000000000000002e-174 or -5.79999999999999965e-296 < x < 4.1e15Initial program 71.7%
+-commutative71.7%
fma-def75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in a around 0 72.4%
Taylor expanded in x around 0 65.8%
sub-neg65.8%
+-commutative65.8%
mul-1-neg65.8%
associate-*r*64.5%
*-commutative64.5%
associate-*r*66.7%
unsub-neg66.7%
Simplified65.8%
if -6.6000000000000002e-174 < x < -5.79999999999999965e-296Initial program 57.3%
+-commutative57.3%
fma-def60.4%
*-commutative60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in i around inf 75.7%
sub-neg75.7%
mul-1-neg75.7%
remove-double-neg75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
Simplified75.7%
Final simplification67.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2.4e+107) (not (<= t 3.2e+101))) (* t (- (* b i) (* x a))) (+ (* b (- (* t i) (* z c))) (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -2.4e+107) || !(t <= 3.2e+101)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-2.4d+107)) .or. (.not. (t <= 3.2d+101))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -2.4e+107) || !(t <= 3.2e+101)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -2.4e+107) or not (t <= 3.2e+101): tmp = t * ((b * i) - (x * a)) else: tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -2.4e+107) || !(t <= 3.2e+101)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -2.4e+107) || ~((t <= 3.2e+101))) tmp = t * ((b * i) - (x * a)); else tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -2.4e+107], N[Not[LessEqual[t, 3.2e+101]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+107} \lor \neg \left(t \leq 3.2 \cdot 10^{+101}\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if t < -2.4000000000000001e107 or 3.20000000000000005e101 < t Initial program 57.2%
cancel-sign-sub57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
remove-double-neg57.2%
*-commutative57.2%
Simplified57.2%
add-cube-cbrt57.1%
Applied egg-rr57.1%
Taylor expanded in t around inf 71.9%
*-commutative71.9%
mul-1-neg71.9%
*-commutative71.9%
associate-*r*71.9%
neg-mul-171.9%
cancel-sign-sub71.9%
*-commutative71.9%
+-commutative71.9%
unsub-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
if -2.4000000000000001e107 < t < 3.20000000000000005e101Initial program 79.3%
+-commutative79.3%
fma-def79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in a around 0 64.9%
Taylor expanded in y around -inf 66.1%
fma-udef66.1%
mul-1-neg66.1%
fma-neg66.1%
mul-1-neg66.1%
*-commutative66.1%
*-commutative66.1%
*-commutative66.1%
distribute-rgt-neg-in66.1%
neg-sub066.1%
*-commutative66.1%
*-commutative66.1%
associate--r-66.1%
neg-sub066.1%
+-commutative66.1%
sub-neg66.1%
Simplified66.1%
Final simplification68.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -2.25e+82)
t_2
(if (<= c -5.2e-141)
(* a (- (* c j) (* x t)))
(if (<= c -8.4e-293)
(* i (* t b))
(if (<= c 1.05e-182)
t_1
(if (<= c 2.9e-121) (* b (* t i)) (if (<= c 7e-73) 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 = z * (x * y);
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.25e+82) {
tmp = t_2;
} else if (c <= -5.2e-141) {
tmp = a * ((c * j) - (x * t));
} else if (c <= -8.4e-293) {
tmp = i * (t * b);
} else if (c <= 1.05e-182) {
tmp = t_1;
} else if (c <= 2.9e-121) {
tmp = b * (t * i);
} else if (c <= 7e-73) {
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 = z * (x * y)
t_2 = c * ((a * j) - (z * b))
if (c <= (-2.25d+82)) then
tmp = t_2
else if (c <= (-5.2d-141)) then
tmp = a * ((c * j) - (x * t))
else if (c <= (-8.4d-293)) then
tmp = i * (t * b)
else if (c <= 1.05d-182) then
tmp = t_1
else if (c <= 2.9d-121) then
tmp = b * (t * i)
else if (c <= 7d-73) 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 = z * (x * y);
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.25e+82) {
tmp = t_2;
} else if (c <= -5.2e-141) {
tmp = a * ((c * j) - (x * t));
} else if (c <= -8.4e-293) {
tmp = i * (t * b);
} else if (c <= 1.05e-182) {
tmp = t_1;
} else if (c <= 2.9e-121) {
tmp = b * (t * i);
} else if (c <= 7e-73) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.25e+82: tmp = t_2 elif c <= -5.2e-141: tmp = a * ((c * j) - (x * t)) elif c <= -8.4e-293: tmp = i * (t * b) elif c <= 1.05e-182: tmp = t_1 elif c <= 2.9e-121: tmp = b * (t * i) elif c <= 7e-73: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.25e+82) tmp = t_2; elseif (c <= -5.2e-141) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (c <= -8.4e-293) tmp = Float64(i * Float64(t * b)); elseif (c <= 1.05e-182) tmp = t_1; elseif (c <= 2.9e-121) tmp = Float64(b * Float64(t * i)); elseif (c <= 7e-73) 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 = z * (x * y); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.25e+82) tmp = t_2; elseif (c <= -5.2e-141) tmp = a * ((c * j) - (x * t)); elseif (c <= -8.4e-293) tmp = i * (t * b); elseif (c <= 1.05e-182) tmp = t_1; elseif (c <= 2.9e-121) tmp = b * (t * i); elseif (c <= 7e-73) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.25e+82], t$95$2, If[LessEqual[c, -5.2e-141], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.4e-293], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e-182], t$95$1, If[LessEqual[c, 2.9e-121], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7e-73], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.25 \cdot 10^{+82}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-141}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;c \leq -8.4 \cdot 10^{-293}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-182}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-121}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-73}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.2499999999999998e82 or 6.9999999999999995e-73 < c Initial program 58.4%
+-commutative58.4%
fma-def61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in c around inf 56.9%
*-commutative56.9%
Simplified56.9%
if -2.2499999999999998e82 < c < -5.20000000000000022e-141Initial program 87.2%
+-commutative87.2%
fma-def89.1%
*-commutative89.1%
*-commutative89.1%
Simplified89.1%
Taylor expanded in a around inf 46.0%
mul-1-neg46.0%
unsub-neg46.0%
Simplified46.0%
if -5.20000000000000022e-141 < c < -8.40000000000000021e-293Initial program 82.3%
sub-neg82.3%
+-commutative82.3%
associate-+l+82.3%
distribute-rgt-neg-in82.3%
+-commutative82.3%
fma-def85.6%
sub-neg85.6%
+-commutative85.6%
distribute-neg-in85.6%
unsub-neg85.6%
remove-double-neg85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in t around inf 61.0%
Taylor expanded in i around inf 54.3%
if -8.40000000000000021e-293 < c < 1.05e-182 or 2.9e-121 < c < 6.9999999999999995e-73Initial program 71.6%
sub-neg71.6%
+-commutative71.6%
associate-+l+71.6%
distribute-rgt-neg-in71.6%
+-commutative71.6%
fma-def71.6%
sub-neg71.6%
+-commutative71.6%
distribute-neg-in71.6%
unsub-neg71.6%
remove-double-neg71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in i around 0 52.7%
Taylor expanded in y around inf 44.0%
*-commutative44.0%
associate-*l*50.9%
*-commutative50.9%
Simplified50.9%
if 1.05e-182 < c < 2.9e-121Initial program 80.7%
+-commutative80.7%
fma-def87.4%
*-commutative87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in j around 0 91.7%
Taylor expanded in i around inf 52.1%
*-commutative52.1%
*-commutative52.1%
associate-*l*61.7%
Simplified61.7%
Final simplification53.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y)))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -3.8e+42)
t_3
(if (<= c -5.2e-117)
t_2
(if (<= c -1.08e-128)
t_1
(if (<= c -5.5e-293)
t_2
(if (<= c 2.05e-296) t_1 (if (<= c 9.2e+30) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.8e+42) {
tmp = t_3;
} else if (c <= -5.2e-117) {
tmp = t_2;
} else if (c <= -1.08e-128) {
tmp = t_1;
} else if (c <= -5.5e-293) {
tmp = t_2;
} else if (c <= 2.05e-296) {
tmp = t_1;
} else if (c <= 9.2e+30) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (x * y)
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-3.8d+42)) then
tmp = t_3
else if (c <= (-5.2d-117)) then
tmp = t_2
else if (c <= (-1.08d-128)) then
tmp = t_1
else if (c <= (-5.5d-293)) then
tmp = t_2
else if (c <= 2.05d-296) then
tmp = t_1
else if (c <= 9.2d+30) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.8e+42) {
tmp = t_3;
} else if (c <= -5.2e-117) {
tmp = t_2;
} else if (c <= -1.08e-128) {
tmp = t_1;
} else if (c <= -5.5e-293) {
tmp = t_2;
} else if (c <= 2.05e-296) {
tmp = t_1;
} else if (c <= 9.2e+30) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -3.8e+42: tmp = t_3 elif c <= -5.2e-117: tmp = t_2 elif c <= -1.08e-128: tmp = t_1 elif c <= -5.5e-293: tmp = t_2 elif c <= 2.05e-296: tmp = t_1 elif c <= 9.2e+30: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.8e+42) tmp = t_3; elseif (c <= -5.2e-117) tmp = t_2; elseif (c <= -1.08e-128) tmp = t_1; elseif (c <= -5.5e-293) tmp = t_2; elseif (c <= 2.05e-296) tmp = t_1; elseif (c <= 9.2e+30) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.8e+42) tmp = t_3; elseif (c <= -5.2e-117) tmp = t_2; elseif (c <= -1.08e-128) tmp = t_1; elseif (c <= -5.5e-293) tmp = t_2; elseif (c <= 2.05e-296) tmp = t_1; elseif (c <= 9.2e+30) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.8e+42], t$95$3, If[LessEqual[c, -5.2e-117], t$95$2, If[LessEqual[c, -1.08e-128], t$95$1, If[LessEqual[c, -5.5e-293], t$95$2, If[LessEqual[c, 2.05e-296], t$95$1, If[LessEqual[c, 9.2e+30], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.8 \cdot 10^{+42}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-117}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.08 \cdot 10^{-128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-293}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{-296}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{+30}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -3.7999999999999998e42 or 9.2e30 < c Initial program 61.7%
+-commutative61.7%
fma-def64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in c around inf 60.4%
*-commutative60.4%
Simplified60.4%
if -3.7999999999999998e42 < c < -5.19999999999999966e-117 or -1.08e-128 < c < -5.50000000000000028e-293 or 2.04999999999999997e-296 < c < 9.2e30Initial program 75.5%
+-commutative75.5%
fma-def77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in i around inf 56.9%
sub-neg56.9%
mul-1-neg56.9%
remove-double-neg56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
Simplified56.9%
if -5.19999999999999966e-117 < c < -1.08e-128 or -5.50000000000000028e-293 < c < 2.04999999999999997e-296Initial program 93.6%
sub-neg93.6%
+-commutative93.6%
associate-+l+93.6%
distribute-rgt-neg-in93.6%
+-commutative93.6%
fma-def93.6%
sub-neg93.6%
+-commutative93.6%
distribute-neg-in93.6%
unsub-neg93.6%
remove-double-neg93.6%
*-commutative93.6%
Simplified93.6%
Taylor expanded in i around 0 75.5%
Taylor expanded in y around inf 46.5%
*-commutative46.5%
associate-*l*78.0%
*-commutative78.0%
Simplified78.0%
Final simplification59.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -4.2e+95)
t_3
(if (<= b -5.3e-108)
t_2
(if (<= b 7.7e-177)
t_1
(if (<= b 3.4e-104)
t_2
(if (<= b 7.8e-16)
t_1
(if (<= b 3.8e+136) (* t (- (* b i) (* x a))) 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) - (i * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.2e+95) {
tmp = t_3;
} else if (b <= -5.3e-108) {
tmp = t_2;
} else if (b <= 7.7e-177) {
tmp = t_1;
} else if (b <= 3.4e-104) {
tmp = t_2;
} else if (b <= 7.8e-16) {
tmp = t_1;
} else if (b <= 3.8e+136) {
tmp = t * ((b * i) - (x * a));
} 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) - (i * j))
t_2 = a * ((c * j) - (x * t))
t_3 = b * ((t * i) - (z * c))
if (b <= (-4.2d+95)) then
tmp = t_3
else if (b <= (-5.3d-108)) then
tmp = t_2
else if (b <= 7.7d-177) then
tmp = t_1
else if (b <= 3.4d-104) then
tmp = t_2
else if (b <= 7.8d-16) then
tmp = t_1
else if (b <= 3.8d+136) then
tmp = t * ((b * i) - (x * a))
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) - (i * j));
double t_2 = a * ((c * j) - (x * t));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.2e+95) {
tmp = t_3;
} else if (b <= -5.3e-108) {
tmp = t_2;
} else if (b <= 7.7e-177) {
tmp = t_1;
} else if (b <= 3.4e-104) {
tmp = t_2;
} else if (b <= 7.8e-16) {
tmp = t_1;
} else if (b <= 3.8e+136) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = a * ((c * j) - (x * t)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.2e+95: tmp = t_3 elif b <= -5.3e-108: tmp = t_2 elif b <= 7.7e-177: tmp = t_1 elif b <= 3.4e-104: tmp = t_2 elif b <= 7.8e-16: tmp = t_1 elif b <= 3.8e+136: tmp = t * ((b * i) - (x * a)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.2e+95) tmp = t_3; elseif (b <= -5.3e-108) tmp = t_2; elseif (b <= 7.7e-177) tmp = t_1; elseif (b <= 3.4e-104) tmp = t_2; elseif (b <= 7.8e-16) tmp = t_1; elseif (b <= 3.8e+136) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); 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) - (i * j)); t_2 = a * ((c * j) - (x * t)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.2e+95) tmp = t_3; elseif (b <= -5.3e-108) tmp = t_2; elseif (b <= 7.7e-177) tmp = t_1; elseif (b <= 3.4e-104) tmp = t_2; elseif (b <= 7.8e-16) tmp = t_1; elseif (b <= 3.8e+136) tmp = t * ((b * i) - (x * a)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+95], t$95$3, If[LessEqual[b, -5.3e-108], t$95$2, If[LessEqual[b, 7.7e-177], t$95$1, If[LessEqual[b, 3.4e-104], t$95$2, If[LessEqual[b, 7.8e-16], t$95$1, If[LessEqual[b, 3.8e+136], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+95}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -5.3 \cdot 10^{-108}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 7.7 \cdot 10^{-177}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-104}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+136}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -4.2e95 or 3.80000000000000015e136 < b Initial program 72.1%
+-commutative72.1%
fma-def76.1%
*-commutative76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in b around inf 63.8%
if -4.2e95 < b < -5.29999999999999989e-108 or 7.7000000000000002e-177 < b < 3.40000000000000015e-104Initial program 76.2%
+-commutative76.2%
fma-def78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in a around inf 60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
if -5.29999999999999989e-108 < b < 7.7000000000000002e-177 or 3.40000000000000015e-104 < b < 7.79999999999999954e-16Initial program 66.4%
+-commutative66.4%
fma-def67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in y around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
Simplified63.7%
if 7.79999999999999954e-16 < b < 3.80000000000000015e136Initial program 70.9%
cancel-sign-sub70.9%
cancel-sign-sub-inv70.9%
*-commutative70.9%
remove-double-neg70.9%
*-commutative70.9%
Simplified70.9%
add-cube-cbrt70.4%
Applied egg-rr70.4%
Taylor expanded in t around inf 59.1%
*-commutative59.1%
mul-1-neg59.1%
*-commutative59.1%
associate-*r*59.1%
neg-mul-159.1%
cancel-sign-sub59.1%
*-commutative59.1%
+-commutative59.1%
unsub-neg59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -2.9e+65)
t_2
(if (<= i -5e-105)
t_1
(if (<= i 1.8e-163)
(* c (- (* a j) (* z b)))
(if (<= i 1.2e+113)
t_1
(if (<= i 1.4e+128) (* a (- (* c j) (* x 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 * ((b * i) - (x * a));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.9e+65) {
tmp = t_2;
} else if (i <= -5e-105) {
tmp = t_1;
} else if (i <= 1.8e-163) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.2e+113) {
tmp = t_1;
} else if (i <= 1.4e+128) {
tmp = a * ((c * j) - (x * 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 * ((b * i) - (x * a))
t_2 = i * ((t * b) - (y * j))
if (i <= (-2.9d+65)) then
tmp = t_2
else if (i <= (-5d-105)) then
tmp = t_1
else if (i <= 1.8d-163) then
tmp = c * ((a * j) - (z * b))
else if (i <= 1.2d+113) then
tmp = t_1
else if (i <= 1.4d+128) then
tmp = a * ((c * j) - (x * 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 * ((b * i) - (x * a));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.9e+65) {
tmp = t_2;
} else if (i <= -5e-105) {
tmp = t_1;
} else if (i <= 1.8e-163) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.2e+113) {
tmp = t_1;
} else if (i <= 1.4e+128) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.9e+65: tmp = t_2 elif i <= -5e-105: tmp = t_1 elif i <= 1.8e-163: tmp = c * ((a * j) - (z * b)) elif i <= 1.2e+113: tmp = t_1 elif i <= 1.4e+128: tmp = a * ((c * j) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.9e+65) tmp = t_2; elseif (i <= -5e-105) tmp = t_1; elseif (i <= 1.8e-163) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 1.2e+113) tmp = t_1; elseif (i <= 1.4e+128) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * 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 * ((b * i) - (x * a)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.9e+65) tmp = t_2; elseif (i <= -5e-105) tmp = t_1; elseif (i <= 1.8e-163) tmp = c * ((a * j) - (z * b)); elseif (i <= 1.2e+113) tmp = t_1; elseif (i <= 1.4e+128) tmp = a * ((c * j) - (x * 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[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.9e+65], t$95$2, If[LessEqual[i, -5e-105], t$95$1, If[LessEqual[i, 1.8e-163], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.2e+113], t$95$1, If[LessEqual[i, 1.4e+128], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.9 \cdot 10^{+65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -5 \cdot 10^{-105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{-163}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+128}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -2.9e65 or 1.39999999999999991e128 < i Initial program 56.5%
+-commutative56.5%
fma-def60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in i around inf 71.1%
sub-neg71.1%
mul-1-neg71.1%
remove-double-neg71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
Simplified71.1%
if -2.9e65 < i < -4.99999999999999963e-105 or 1.7999999999999999e-163 < i < 1.19999999999999992e113Initial program 76.1%
cancel-sign-sub76.1%
cancel-sign-sub-inv76.1%
*-commutative76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
add-cube-cbrt75.6%
Applied egg-rr75.6%
Taylor expanded in t around inf 50.1%
*-commutative50.1%
mul-1-neg50.1%
*-commutative50.1%
associate-*r*50.1%
neg-mul-150.1%
cancel-sign-sub50.1%
*-commutative50.1%
+-commutative50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
if -4.99999999999999963e-105 < i < 1.7999999999999999e-163Initial program 85.4%
+-commutative85.4%
fma-def85.4%
*-commutative85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in c around inf 53.2%
*-commutative53.2%
Simplified53.2%
if 1.19999999999999992e113 < i < 1.39999999999999991e128Initial program 71.4%
+-commutative71.4%
fma-def71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in a around inf 86.0%
mul-1-neg86.0%
unsub-neg86.0%
Simplified86.0%
Final simplification59.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -42000000.0)
t_2
(if (<= z 6.5e-220)
t_1
(if (<= z 1.6e-185)
(* a (- (* c j) (* x t)))
(if (<= z 1.65e-130)
t_1
(if (<= z 2.4e+34) (* t (- (* b i) (* x a))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -42000000.0) {
tmp = t_2;
} else if (z <= 6.5e-220) {
tmp = t_1;
} else if (z <= 1.6e-185) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 1.65e-130) {
tmp = t_1;
} else if (z <= 2.4e+34) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = z * ((x * y) - (b * c))
if (z <= (-42000000.0d0)) then
tmp = t_2
else if (z <= 6.5d-220) then
tmp = t_1
else if (z <= 1.6d-185) then
tmp = a * ((c * j) - (x * t))
else if (z <= 1.65d-130) then
tmp = t_1
else if (z <= 2.4d+34) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -42000000.0) {
tmp = t_2;
} else if (z <= 6.5e-220) {
tmp = t_1;
} else if (z <= 1.6e-185) {
tmp = a * ((c * j) - (x * t));
} else if (z <= 1.65e-130) {
tmp = t_1;
} else if (z <= 2.4e+34) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -42000000.0: tmp = t_2 elif z <= 6.5e-220: tmp = t_1 elif z <= 1.6e-185: tmp = a * ((c * j) - (x * t)) elif z <= 1.65e-130: tmp = t_1 elif z <= 2.4e+34: tmp = t * ((b * i) - (x * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -42000000.0) tmp = t_2; elseif (z <= 6.5e-220) tmp = t_1; elseif (z <= 1.6e-185) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (z <= 1.65e-130) tmp = t_1; elseif (z <= 2.4e+34) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -42000000.0) tmp = t_2; elseif (z <= 6.5e-220) tmp = t_1; elseif (z <= 1.6e-185) tmp = a * ((c * j) - (x * t)); elseif (z <= 1.65e-130) tmp = t_1; elseif (z <= 2.4e+34) tmp = t * ((b * i) - (x * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -42000000.0], t$95$2, If[LessEqual[z, 6.5e-220], t$95$1, If[LessEqual[z, 1.6e-185], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-130], t$95$1, If[LessEqual[z, 2.4e+34], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -42000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-185}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+34}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -4.2e7 or 2.39999999999999987e34 < z Initial program 62.4%
+-commutative62.4%
fma-def62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in z around inf 67.7%
if -4.2e7 < z < 6.50000000000000005e-220 or 1.5999999999999999e-185 < z < 1.6499999999999999e-130Initial program 82.6%
+-commutative82.6%
fma-def86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in i around inf 61.7%
sub-neg61.7%
mul-1-neg61.7%
remove-double-neg61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
if 6.50000000000000005e-220 < z < 1.5999999999999999e-185Initial program 67.8%
+-commutative67.8%
fma-def67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in a around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if 1.6499999999999999e-130 < z < 2.39999999999999987e34Initial program 72.0%
cancel-sign-sub72.0%
cancel-sign-sub-inv72.0%
*-commutative72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified72.0%
add-cube-cbrt71.5%
Applied egg-rr71.5%
Taylor expanded in t around inf 61.7%
*-commutative61.7%
mul-1-neg61.7%
*-commutative61.7%
associate-*r*61.7%
neg-mul-161.7%
cancel-sign-sub61.7%
*-commutative61.7%
+-commutative61.7%
unsub-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
Final simplification65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -5e+70)
t_3
(if (<= x -2.3e-127)
t_2
(if (<= x 5.2e-272)
t_1
(if (<= x 4.6e-219) t_2 (if (<= x 5.6e+16) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = b * ((t * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5e+70) {
tmp = t_3;
} else if (x <= -2.3e-127) {
tmp = t_2;
} else if (x <= 5.2e-272) {
tmp = t_1;
} else if (x <= 4.6e-219) {
tmp = t_2;
} else if (x <= 5.6e+16) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = b * ((t * i) - (z * c))
t_3 = x * ((y * z) - (t * a))
if (x <= (-5d+70)) then
tmp = t_3
else if (x <= (-2.3d-127)) then
tmp = t_2
else if (x <= 5.2d-272) then
tmp = t_1
else if (x <= 4.6d-219) then
tmp = t_2
else if (x <= 5.6d+16) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = b * ((t * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -5e+70) {
tmp = t_3;
} else if (x <= -2.3e-127) {
tmp = t_2;
} else if (x <= 5.2e-272) {
tmp = t_1;
} else if (x <= 4.6e-219) {
tmp = t_2;
} else if (x <= 5.6e+16) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = b * ((t * i) - (z * c)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -5e+70: tmp = t_3 elif x <= -2.3e-127: tmp = t_2 elif x <= 5.2e-272: tmp = t_1 elif x <= 4.6e-219: tmp = t_2 elif x <= 5.6e+16: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -5e+70) tmp = t_3; elseif (x <= -2.3e-127) tmp = t_2; elseif (x <= 5.2e-272) tmp = t_1; elseif (x <= 4.6e-219) tmp = t_2; elseif (x <= 5.6e+16) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = b * ((t * i) - (z * c)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -5e+70) tmp = t_3; elseif (x <= -2.3e-127) tmp = t_2; elseif (x <= 5.2e-272) tmp = t_1; elseif (x <= 4.6e-219) tmp = t_2; elseif (x <= 5.6e+16) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5e+70], t$95$3, If[LessEqual[x, -2.3e-127], t$95$2, If[LessEqual[x, 5.2e-272], t$95$1, If[LessEqual[x, 4.6e-219], t$95$2, If[LessEqual[x, 5.6e+16], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -5 \cdot 10^{+70}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-127}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-272}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-219}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -5.0000000000000002e70 or 5.6e16 < x Initial program 73.8%
+-commutative73.8%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in x around inf 67.2%
if -5.0000000000000002e70 < x < -2.30000000000000019e-127 or 5.19999999999999983e-272 < x < 4.59999999999999977e-219Initial program 77.6%
+-commutative77.6%
fma-def82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in b around inf 71.0%
if -2.30000000000000019e-127 < x < 5.19999999999999983e-272 or 4.59999999999999977e-219 < x < 5.6e16Initial program 64.3%
+-commutative64.3%
fma-def67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in i around inf 63.5%
sub-neg63.5%
mul-1-neg63.5%
remove-double-neg63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
Simplified63.5%
Final simplification66.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -2.9e+24) (not (<= x 3.6e+15))) (- (* x (- (* y z) (* t a))) (* b (* z c))) (- (* b (- (* t i) (* z c))) (* i (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -2.9e+24) || !(x <= 3.6e+15)) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else {
tmp = (b * ((t * i) - (z * c))) - (i * (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-2.9d+24)) .or. (.not. (x <= 3.6d+15))) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else
tmp = (b * ((t * i) - (z * c))) - (i * (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -2.9e+24) || !(x <= 3.6e+15)) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else {
tmp = (b * ((t * i) - (z * c))) - (i * (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -2.9e+24) or not (x <= 3.6e+15): tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) else: tmp = (b * ((t * i) - (z * c))) - (i * (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -2.9e+24) || !(x <= 3.6e+15)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(i * Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -2.9e+24) || ~((x <= 3.6e+15))) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); else tmp = (b * ((t * i) - (z * c))) - (i * (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -2.9e+24], N[Not[LessEqual[x, 3.6e+15]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.9 \cdot 10^{+24} \lor \neg \left(x \leq 3.6 \cdot 10^{+15}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - i \cdot \left(y \cdot j\right)\\
\end{array}
\end{array}
if x < -2.89999999999999979e24 or 3.6e15 < x Initial program 74.0%
+-commutative74.0%
fma-def75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in j around 0 70.1%
Taylor expanded in c around inf 69.5%
if -2.89999999999999979e24 < x < 3.6e15Initial program 67.5%
+-commutative67.5%
fma-def70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in a around 0 69.0%
Taylor expanded in x around 0 64.3%
sub-neg64.3%
+-commutative64.3%
mul-1-neg64.3%
associate-*r*62.4%
*-commutative62.4%
associate-*r*65.8%
unsub-neg65.8%
Simplified64.3%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -7000000.0)
t_1
(if (<= z 2.1e-108)
(- (* t (* b i)) (* j (- (* y i) (* a c))))
(if (<= z 5.4e+33) (* t (- (* b i) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7000000.0) {
tmp = t_1;
} else if (z <= 2.1e-108) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (z <= 5.4e+33) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-7000000.0d0)) then
tmp = t_1
else if (z <= 2.1d-108) then
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)))
else if (z <= 5.4d+33) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7000000.0) {
tmp = t_1;
} else if (z <= 2.1e-108) {
tmp = (t * (b * i)) - (j * ((y * i) - (a * c)));
} else if (z <= 5.4e+33) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -7000000.0: tmp = t_1 elif z <= 2.1e-108: tmp = (t * (b * i)) - (j * ((y * i) - (a * c))) elif z <= 5.4e+33: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -7000000.0) tmp = t_1; elseif (z <= 2.1e-108) tmp = Float64(Float64(t * Float64(b * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (z <= 5.4e+33) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -7000000.0) tmp = t_1; elseif (z <= 2.1e-108) tmp = (t * (b * i)) - (j * ((y * i) - (a * c))); elseif (z <= 5.4e+33) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7000000.0], t$95$1, If[LessEqual[z, 2.1e-108], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e+33], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -7000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-108}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+33}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -7e6 or 5.39999999999999982e33 < z Initial program 62.4%
+-commutative62.4%
fma-def62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in z around inf 67.7%
if -7e6 < z < 2.0999999999999999e-108Initial program 81.4%
cancel-sign-sub81.4%
cancel-sign-sub-inv81.4%
*-commutative81.4%
remove-double-neg81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in i around inf 65.6%
associate-*r*64.5%
*-commutative64.5%
associate-*r*60.4%
Simplified60.4%
if 2.0999999999999999e-108 < z < 5.39999999999999982e33Initial program 71.8%
cancel-sign-sub71.8%
cancel-sign-sub-inv71.8%
*-commutative71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified71.8%
add-cube-cbrt71.3%
Applied egg-rr71.3%
Taylor expanded in t around inf 62.8%
*-commutative62.8%
mul-1-neg62.8%
*-commutative62.8%
associate-*r*62.8%
neg-mul-162.8%
cancel-sign-sub62.8%
*-commutative62.8%
+-commutative62.8%
unsub-neg62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -5.8e+203)
(* y (* x z))
(if (<= x -4.2e+99)
(* a (* x (- t)))
(if (<= x -5e-17)
(* b (* z (- c)))
(if (<= x -2.3e-214)
(* a (* c j))
(if (<= x -2.8e-282)
(* i (* t b))
(if (<= x 75000000000.0) (* b (* t i)) (* z (* x y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -5.8e+203) {
tmp = y * (x * z);
} else if (x <= -4.2e+99) {
tmp = a * (x * -t);
} else if (x <= -5e-17) {
tmp = b * (z * -c);
} else if (x <= -2.3e-214) {
tmp = a * (c * j);
} else if (x <= -2.8e-282) {
tmp = i * (t * b);
} else if (x <= 75000000000.0) {
tmp = b * (t * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-5.8d+203)) then
tmp = y * (x * z)
else if (x <= (-4.2d+99)) then
tmp = a * (x * -t)
else if (x <= (-5d-17)) then
tmp = b * (z * -c)
else if (x <= (-2.3d-214)) then
tmp = a * (c * j)
else if (x <= (-2.8d-282)) then
tmp = i * (t * b)
else if (x <= 75000000000.0d0) then
tmp = b * (t * i)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -5.8e+203) {
tmp = y * (x * z);
} else if (x <= -4.2e+99) {
tmp = a * (x * -t);
} else if (x <= -5e-17) {
tmp = b * (z * -c);
} else if (x <= -2.3e-214) {
tmp = a * (c * j);
} else if (x <= -2.8e-282) {
tmp = i * (t * b);
} else if (x <= 75000000000.0) {
tmp = b * (t * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -5.8e+203: tmp = y * (x * z) elif x <= -4.2e+99: tmp = a * (x * -t) elif x <= -5e-17: tmp = b * (z * -c) elif x <= -2.3e-214: tmp = a * (c * j) elif x <= -2.8e-282: tmp = i * (t * b) elif x <= 75000000000.0: tmp = b * (t * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -5.8e+203) tmp = Float64(y * Float64(x * z)); elseif (x <= -4.2e+99) tmp = Float64(a * Float64(x * Float64(-t))); elseif (x <= -5e-17) tmp = Float64(b * Float64(z * Float64(-c))); elseif (x <= -2.3e-214) tmp = Float64(a * Float64(c * j)); elseif (x <= -2.8e-282) tmp = Float64(i * Float64(t * b)); elseif (x <= 75000000000.0) tmp = Float64(b * Float64(t * i)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -5.8e+203) tmp = y * (x * z); elseif (x <= -4.2e+99) tmp = a * (x * -t); elseif (x <= -5e-17) tmp = b * (z * -c); elseif (x <= -2.3e-214) tmp = a * (c * j); elseif (x <= -2.8e-282) tmp = i * (t * b); elseif (x <= 75000000000.0) tmp = b * (t * i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -5.8e+203], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.2e+99], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5e-17], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.3e-214], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.8e-282], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 75000000000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.8 \cdot 10^{+203}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{+99}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-17}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-214}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-282}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;x \leq 75000000000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -5.80000000000000021e203Initial program 73.4%
sub-neg73.4%
+-commutative73.4%
associate-+l+73.4%
distribute-rgt-neg-in73.4%
+-commutative73.4%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in i around 0 77.1%
Taylor expanded in y around inf 57.4%
if -5.80000000000000021e203 < x < -4.2000000000000002e99Initial program 73.9%
+-commutative73.9%
fma-def73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in a around inf 63.9%
mul-1-neg63.9%
unsub-neg63.9%
Simplified63.9%
Taylor expanded in c around 0 56.3%
mul-1-neg56.3%
distribute-lft-neg-out56.3%
*-commutative56.3%
Simplified56.3%
if -4.2000000000000002e99 < x < -4.9999999999999999e-17Initial program 78.6%
+-commutative78.6%
fma-def82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in a around 0 78.4%
Taylor expanded in c around inf 37.4%
mul-1-neg37.4%
*-commutative37.4%
associate-*r*47.2%
distribute-rgt-neg-in47.2%
Simplified47.2%
if -4.9999999999999999e-17 < x < -2.30000000000000011e-214Initial program 72.3%
+-commutative72.3%
fma-def72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in a around inf 58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 40.0%
if -2.30000000000000011e-214 < x < -2.7999999999999999e-282Initial program 67.3%
sub-neg67.3%
+-commutative67.3%
associate-+l+67.3%
distribute-rgt-neg-in67.3%
+-commutative67.3%
fma-def67.3%
sub-neg67.3%
+-commutative67.3%
distribute-neg-in67.3%
unsub-neg67.3%
remove-double-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in t around inf 59.8%
Taylor expanded in i around inf 59.3%
if -2.7999999999999999e-282 < x < 7.5e10Initial program 62.8%
+-commutative62.8%
fma-def68.8%
*-commutative68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in j around 0 48.6%
Taylor expanded in i around inf 38.1%
*-commutative38.1%
*-commutative38.1%
associate-*l*40.2%
Simplified40.2%
if 7.5e10 < x Initial program 74.8%
sub-neg74.8%
+-commutative74.8%
associate-+l+74.8%
distribute-rgt-neg-in74.8%
+-commutative74.8%
fma-def74.8%
sub-neg74.8%
+-commutative74.8%
distribute-neg-in74.8%
unsub-neg74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified76.5%
Taylor expanded in i around 0 64.7%
Taylor expanded in y around inf 37.2%
*-commutative37.2%
associate-*l*42.2%
*-commutative42.2%
Simplified42.2%
Final simplification46.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.05e+249)
(* z (* x y))
(if (<= x -5.2e+120)
(* a (- (* c j) (* x t)))
(if (or (<= x -1.12e+44) (not (<= x 68000000000.0)))
(* y (- (* x z) (* i j)))
(* i (- (* t b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.05e+249) {
tmp = z * (x * y);
} else if (x <= -5.2e+120) {
tmp = a * ((c * j) - (x * t));
} else if ((x <= -1.12e+44) || !(x <= 68000000000.0)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-1.05d+249)) then
tmp = z * (x * y)
else if (x <= (-5.2d+120)) then
tmp = a * ((c * j) - (x * t))
else if ((x <= (-1.12d+44)) .or. (.not. (x <= 68000000000.0d0))) then
tmp = y * ((x * z) - (i * j))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.05e+249) {
tmp = z * (x * y);
} else if (x <= -5.2e+120) {
tmp = a * ((c * j) - (x * t));
} else if ((x <= -1.12e+44) || !(x <= 68000000000.0)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.05e+249: tmp = z * (x * y) elif x <= -5.2e+120: tmp = a * ((c * j) - (x * t)) elif (x <= -1.12e+44) or not (x <= 68000000000.0): tmp = y * ((x * z) - (i * j)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.05e+249) tmp = Float64(z * Float64(x * y)); elseif (x <= -5.2e+120) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif ((x <= -1.12e+44) || !(x <= 68000000000.0)) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.05e+249) tmp = z * (x * y); elseif (x <= -5.2e+120) tmp = a * ((c * j) - (x * t)); elseif ((x <= -1.12e+44) || ~((x <= 68000000000.0))) tmp = y * ((x * z) - (i * j)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.05e+249], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.2e+120], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -1.12e+44], N[Not[LessEqual[x, 68000000000.0]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.05 \cdot 10^{+249}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{+120}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;x \leq -1.12 \cdot 10^{+44} \lor \neg \left(x \leq 68000000000\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if x < -1.0499999999999999e249Initial program 64.9%
sub-neg64.9%
+-commutative64.9%
associate-+l+64.9%
distribute-rgt-neg-in64.9%
+-commutative64.9%
fma-def65.1%
sub-neg65.1%
+-commutative65.1%
distribute-neg-in65.1%
unsub-neg65.1%
remove-double-neg65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in i around 0 65.5%
Taylor expanded in y around inf 59.7%
*-commutative59.7%
associate-*l*61.6%
*-commutative61.6%
Simplified61.6%
if -1.0499999999999999e249 < x < -5.1999999999999998e120Initial program 82.2%
+-commutative82.2%
fma-def82.2%
*-commutative82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in a around inf 65.8%
mul-1-neg65.8%
unsub-neg65.8%
Simplified65.8%
if -5.1999999999999998e120 < x < -1.12000000000000008e44 or 6.8e10 < x Initial program 73.3%
+-commutative73.3%
fma-def74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in y around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
Simplified54.8%
if -1.12000000000000008e44 < x < 6.8e10Initial program 67.0%
+-commutative67.0%
fma-def71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in i around inf 57.7%
sub-neg57.7%
mul-1-neg57.7%
remove-double-neg57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -5.2e+70)
t_1
(if (<= x -3.6e+16)
(* (* z b) (- c))
(if (<= x -21500.0)
(* b (* t i))
(if (<= x -1.2e-211)
(* a (* c j))
(if (<= x 27500000000.0) (* i (* t 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 = z * (x * y);
double tmp;
if (x <= -5.2e+70) {
tmp = t_1;
} else if (x <= -3.6e+16) {
tmp = (z * b) * -c;
} else if (x <= -21500.0) {
tmp = b * (t * i);
} else if (x <= -1.2e-211) {
tmp = a * (c * j);
} else if (x <= 27500000000.0) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-5.2d+70)) then
tmp = t_1
else if (x <= (-3.6d+16)) then
tmp = (z * b) * -c
else if (x <= (-21500.0d0)) then
tmp = b * (t * i)
else if (x <= (-1.2d-211)) then
tmp = a * (c * j)
else if (x <= 27500000000.0d0) then
tmp = i * (t * 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 = z * (x * y);
double tmp;
if (x <= -5.2e+70) {
tmp = t_1;
} else if (x <= -3.6e+16) {
tmp = (z * b) * -c;
} else if (x <= -21500.0) {
tmp = b * (t * i);
} else if (x <= -1.2e-211) {
tmp = a * (c * j);
} else if (x <= 27500000000.0) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -5.2e+70: tmp = t_1 elif x <= -3.6e+16: tmp = (z * b) * -c elif x <= -21500.0: tmp = b * (t * i) elif x <= -1.2e-211: tmp = a * (c * j) elif x <= 27500000000.0: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -5.2e+70) tmp = t_1; elseif (x <= -3.6e+16) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (x <= -21500.0) tmp = Float64(b * Float64(t * i)); elseif (x <= -1.2e-211) tmp = Float64(a * Float64(c * j)); elseif (x <= 27500000000.0) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -5.2e+70) tmp = t_1; elseif (x <= -3.6e+16) tmp = (z * b) * -c; elseif (x <= -21500.0) tmp = b * (t * i); elseif (x <= -1.2e-211) tmp = a * (c * j); elseif (x <= 27500000000.0) tmp = i * (t * 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+70], t$95$1, If[LessEqual[x, -3.6e+16], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[x, -21500.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.2e-211], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 27500000000.0], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{+16}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;x \leq -21500:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{-211}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 27500000000:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -5.2000000000000001e70 or 2.75e10 < x Initial program 74.2%
sub-neg74.2%
+-commutative74.2%
associate-+l+74.2%
distribute-rgt-neg-in74.2%
+-commutative74.2%
fma-def75.9%
sub-neg75.9%
+-commutative75.9%
distribute-neg-in75.9%
unsub-neg75.9%
remove-double-neg75.9%
*-commutative75.9%
Simplified76.7%
Taylor expanded in i around 0 71.3%
Taylor expanded in y around inf 40.1%
*-commutative40.1%
associate-*l*43.5%
*-commutative43.5%
Simplified43.5%
if -5.2000000000000001e70 < x < -3.6e16Initial program 80.3%
+-commutative80.3%
fma-def87.0%
*-commutative87.0%
*-commutative87.0%
Simplified87.0%
Taylor expanded in a around 0 86.6%
Taylor expanded in c around inf 55.1%
mul-1-neg55.1%
*-commutative55.1%
Simplified55.1%
if -3.6e16 < x < -21500Initial program 66.7%
+-commutative66.7%
fma-def66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in j around 0 66.7%
Taylor expanded in i around inf 66.9%
*-commutative66.9%
*-commutative66.9%
associate-*l*66.9%
Simplified66.9%
if -21500 < x < -1.2000000000000001e-211Initial program 74.6%
+-commutative74.6%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in a around inf 57.9%
mul-1-neg57.9%
unsub-neg57.9%
Simplified57.9%
Taylor expanded in c around inf 41.1%
if -1.2000000000000001e-211 < x < 2.75e10Initial program 64.0%
sub-neg64.0%
+-commutative64.0%
associate-+l+64.0%
distribute-rgt-neg-in64.0%
+-commutative64.0%
fma-def65.1%
sub-neg65.1%
+-commutative65.1%
distribute-neg-in65.1%
unsub-neg65.1%
remove-double-neg65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in t around inf 47.2%
Taylor expanded in i around inf 43.7%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -1.55e+203)
t_1
(if (<= x -4.4e+98)
(* a (* x (- t)))
(if (<= x -3e+39)
t_1
(if (<= x 100000000000.0) (* b (* t i)) (* 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 = y * (x * z);
double tmp;
if (x <= -1.55e+203) {
tmp = t_1;
} else if (x <= -4.4e+98) {
tmp = a * (x * -t);
} else if (x <= -3e+39) {
tmp = t_1;
} else if (x <= 100000000000.0) {
tmp = b * (t * i);
} 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) :: tmp
t_1 = y * (x * z)
if (x <= (-1.55d+203)) then
tmp = t_1
else if (x <= (-4.4d+98)) then
tmp = a * (x * -t)
else if (x <= (-3d+39)) then
tmp = t_1
else if (x <= 100000000000.0d0) then
tmp = b * (t * i)
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 = y * (x * z);
double tmp;
if (x <= -1.55e+203) {
tmp = t_1;
} else if (x <= -4.4e+98) {
tmp = a * (x * -t);
} else if (x <= -3e+39) {
tmp = t_1;
} else if (x <= 100000000000.0) {
tmp = b * (t * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -1.55e+203: tmp = t_1 elif x <= -4.4e+98: tmp = a * (x * -t) elif x <= -3e+39: tmp = t_1 elif x <= 100000000000.0: tmp = b * (t * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -1.55e+203) tmp = t_1; elseif (x <= -4.4e+98) tmp = Float64(a * Float64(x * Float64(-t))); elseif (x <= -3e+39) tmp = t_1; elseif (x <= 100000000000.0) tmp = Float64(b * Float64(t * i)); 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 = y * (x * z); tmp = 0.0; if (x <= -1.55e+203) tmp = t_1; elseif (x <= -4.4e+98) tmp = a * (x * -t); elseif (x <= -3e+39) tmp = t_1; elseif (x <= 100000000000.0) tmp = b * (t * i); 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e+203], t$95$1, If[LessEqual[x, -4.4e+98], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3e+39], t$95$1, If[LessEqual[x, 100000000000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+203}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{+98}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq -3 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 100000000000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.55e203 or -4.40000000000000017e98 < x < -3e39Initial program 74.1%
sub-neg74.1%
+-commutative74.1%
associate-+l+74.1%
distribute-rgt-neg-in74.1%
+-commutative74.1%
fma-def74.1%
sub-neg74.1%
+-commutative74.1%
distribute-neg-in74.1%
unsub-neg74.1%
remove-double-neg74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in i around 0 75.4%
Taylor expanded in y around inf 56.6%
if -1.55e203 < x < -4.40000000000000017e98Initial program 75.6%
+-commutative75.6%
fma-def75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in a around inf 63.0%
mul-1-neg63.0%
unsub-neg63.0%
Simplified63.0%
Taylor expanded in c around 0 55.9%
mul-1-neg55.9%
distribute-lft-neg-out55.9%
*-commutative55.9%
Simplified55.9%
if -3e39 < x < 1e11Initial program 66.7%
+-commutative66.7%
fma-def70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in j around 0 52.0%
Taylor expanded in i around inf 38.9%
*-commutative38.9%
*-commutative38.9%
associate-*l*40.1%
Simplified40.1%
if 1e11 < x Initial program 74.8%
sub-neg74.8%
+-commutative74.8%
associate-+l+74.8%
distribute-rgt-neg-in74.8%
+-commutative74.8%
fma-def74.8%
sub-neg74.8%
+-commutative74.8%
distribute-neg-in74.8%
unsub-neg74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified76.5%
Taylor expanded in i around 0 64.7%
Taylor expanded in y around inf 37.2%
*-commutative37.2%
associate-*l*42.2%
*-commutative42.2%
Simplified42.2%
Final simplification45.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -8e+41) (not (<= c 6.8e+25))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8e+41) || !(c <= 6.8e+25)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-8d+41)) .or. (.not. (c <= 6.8d+25))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8e+41) || !(c <= 6.8e+25)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -8e+41) or not (c <= 6.8e+25): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -8e+41) || !(c <= 6.8e+25)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -8e+41) || ~((c <= 6.8e+25))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -8e+41], N[Not[LessEqual[c, 6.8e+25]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8 \cdot 10^{+41} \lor \neg \left(c \leq 6.8 \cdot 10^{+25}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -8.00000000000000005e41 or 6.79999999999999967e25 < c Initial program 62.1%
+-commutative62.1%
fma-def64.9%
*-commutative64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in a around inf 47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
Taylor expanded in c around inf 37.6%
if -8.00000000000000005e41 < c < 6.79999999999999967e25Initial program 77.2%
+-commutative77.2%
fma-def79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in j around 0 66.4%
Taylor expanded in i around inf 34.3%
*-commutative34.3%
*-commutative34.3%
associate-*l*35.2%
Simplified35.2%
Final simplification36.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -2.2e+39) (not (<= x 7200000000.0))) (* y (* x z)) (* 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 ((x <= -2.2e+39) || !(x <= 7200000000.0)) {
tmp = y * (x * z);
} 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 ((x <= (-2.2d+39)) .or. (.not. (x <= 7200000000.0d0))) then
tmp = y * (x * z)
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 ((x <= -2.2e+39) || !(x <= 7200000000.0)) {
tmp = y * (x * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -2.2e+39) or not (x <= 7200000000.0): tmp = y * (x * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -2.2e+39) || !(x <= 7200000000.0)) tmp = Float64(y * Float64(x * z)); 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 ((x <= -2.2e+39) || ~((x <= 7200000000.0))) tmp = y * (x * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -2.2e+39], N[Not[LessEqual[x, 7200000000.0]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+39} \lor \neg \left(x \leq 7200000000\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if x < -2.2000000000000001e39 or 7.2e9 < x Initial program 74.7%
sub-neg74.7%
+-commutative74.7%
associate-+l+74.7%
distribute-rgt-neg-in74.7%
+-commutative74.7%
fma-def76.2%
sub-neg76.2%
+-commutative76.2%
distribute-neg-in76.2%
unsub-neg76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified77.0%
Taylor expanded in i around 0 71.7%
Taylor expanded in y around inf 40.7%
if -2.2000000000000001e39 < x < 7.2e9Initial program 66.7%
+-commutative66.7%
fma-def70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in j around 0 52.0%
Taylor expanded in i around inf 38.9%
*-commutative38.9%
*-commutative38.9%
associate-*l*40.1%
Simplified40.1%
Final simplification40.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -2.7e+39) (not (<= x 42000000000.0))) (* z (* x y)) (* 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 ((x <= -2.7e+39) || !(x <= 42000000000.0)) {
tmp = z * (x * y);
} 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 ((x <= (-2.7d+39)) .or. (.not. (x <= 42000000000.0d0))) then
tmp = z * (x * y)
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 ((x <= -2.7e+39) || !(x <= 42000000000.0)) {
tmp = z * (x * y);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -2.7e+39) or not (x <= 42000000000.0): tmp = z * (x * y) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -2.7e+39) || !(x <= 42000000000.0)) tmp = Float64(z * Float64(x * y)); 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 ((x <= -2.7e+39) || ~((x <= 42000000000.0))) tmp = z * (x * y); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -2.7e+39], N[Not[LessEqual[x, 42000000000.0]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+39} \lor \neg \left(x \leq 42000000000\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if x < -2.70000000000000003e39 or 4.2e10 < x Initial program 74.7%
sub-neg74.7%
+-commutative74.7%
associate-+l+74.7%
distribute-rgt-neg-in74.7%
+-commutative74.7%
fma-def76.2%
sub-neg76.2%
+-commutative76.2%
distribute-neg-in76.2%
unsub-neg76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified77.0%
Taylor expanded in i around 0 71.7%
Taylor expanded in y around inf 40.7%
*-commutative40.7%
associate-*l*43.2%
*-commutative43.2%
Simplified43.2%
if -2.70000000000000003e39 < x < 4.2e10Initial program 66.7%
+-commutative66.7%
fma-def70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in j around 0 52.0%
Taylor expanded in i around inf 38.9%
*-commutative38.9%
*-commutative38.9%
associate-*l*40.1%
Simplified40.1%
Final simplification41.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.28e-77) (* b (* t i)) (if (<= t 7e+56) (* c (* a j)) (* i (* t b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.28e-77) {
tmp = b * (t * i);
} else if (t <= 7e+56) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.28d-77)) then
tmp = b * (t * i)
else if (t <= 7d+56) then
tmp = c * (a * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.28e-77) {
tmp = b * (t * i);
} else if (t <= 7e+56) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.28e-77: tmp = b * (t * i) elif t <= 7e+56: tmp = c * (a * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.28e-77) tmp = Float64(b * Float64(t * i)); elseif (t <= 7e+56) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.28e-77) tmp = b * (t * i); elseif (t <= 7e+56) tmp = c * (a * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.28e-77], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e+56], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.28 \cdot 10^{-77}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+56}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -1.28e-77Initial program 63.5%
+-commutative63.5%
fma-def68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 35.9%
*-commutative35.9%
*-commutative35.9%
associate-*l*36.9%
Simplified36.9%
if -1.28e-77 < t < 6.99999999999999999e56Initial program 82.5%
+-commutative82.5%
fma-def82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in a around inf 34.4%
mul-1-neg34.4%
unsub-neg34.4%
Simplified34.4%
Taylor expanded in c around inf 28.7%
if 6.99999999999999999e56 < t Initial program 58.9%
sub-neg58.9%
+-commutative58.9%
associate-+l+58.9%
distribute-rgt-neg-in58.9%
+-commutative58.9%
fma-def62.1%
sub-neg62.1%
+-commutative62.1%
distribute-neg-in62.1%
unsub-neg62.1%
remove-double-neg62.1%
*-commutative62.1%
Simplified63.7%
Taylor expanded in t around inf 71.7%
Taylor expanded in i around inf 45.1%
Final simplification35.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 70.9%
+-commutative70.9%
fma-def73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in a around inf 36.8%
mul-1-neg36.8%
unsub-neg36.8%
Simplified36.8%
Taylor expanded in c around inf 20.7%
Final simplification20.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 2023230
(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)))))