
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c) (* a i)))) (t_2 (- (* t c) (* y i))))
(if (<= (- (* j t_2) (+ t_1 (* x (- (* t a) (* y z))))) INFINITY)
(fma j t_2 (- (* x (fma y z (* t (- a)))) t_1))
(*
x
(*
z
(- (+ y (* a (* b (/ i (* x z))))) (fma a (/ t z) (* c (/ b x)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((z * c) - (a * i));
double t_2 = (t * c) - (y * i);
double tmp;
if (((j * t_2) - (t_1 + (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) - t_1));
} else {
tmp = x * (z * ((y + (a * (b * (i / (x * z))))) - fma(a, (t / z), (c * (b / x)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(z * c) - Float64(a * i))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_2) - Float64(t_1 + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) - t_1)); else tmp = Float64(x * Float64(z * Float64(Float64(y + Float64(a * Float64(b * Float64(i / Float64(x * z))))) - fma(a, Float64(t / z), Float64(c * Float64(b / x)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$2), $MachinePrecision] - N[(t$95$1 + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], N[(x * N[(z * N[(N[(y + N[(a * N[(b * N[(i / N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t / z), $MachinePrecision] + N[(c * N[(b / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c - a \cdot i\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t\_2 - \left(t\_1 + x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot \left(\left(y + a \cdot \left(b \cdot \frac{i}{x \cdot z}\right)\right) - \mathsf{fma}\left(a, \frac{t}{z}, c \cdot \frac{b}{x}\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.6%
+-commutative89.6%
fma-define89.6%
*-commutative89.6%
*-commutative89.6%
cancel-sign-sub-inv89.6%
cancel-sign-sub89.6%
sub-neg89.6%
sub-neg89.6%
*-commutative89.6%
fma-neg89.6%
*-commutative89.6%
distribute-rgt-neg-out89.6%
remove-double-neg89.6%
*-commutative89.6%
*-commutative89.6%
Simplified89.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in j around 0 28.9%
*-commutative28.9%
Simplified28.9%
Taylor expanded in x around inf 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
associate-/l*48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around -inf 46.7%
mul-1-neg46.7%
distribute-rgt-neg-in46.7%
associate-+r+46.7%
associate--l+46.7%
Simplified62.2%
Final simplification84.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY)
t_1
(*
x
(*
z
(- (+ y (* a (* b (/ i (* x z))))) (fma a (/ t z) (* c (/ b x)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x * (z * ((y + (a * (b * (i / (x * z))))) - fma(a, (t / z), (c * (b / x)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x * Float64(z * Float64(Float64(y + Float64(a * Float64(b * Float64(i / Float64(x * z))))) - fma(a, Float64(t / z), Float64(c * Float64(b / x)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $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[(x * N[(z * N[(N[(y + N[(a * N[(b * N[(i / N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t / z), $MachinePrecision] + N[(c * N[(b / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot \left(\left(y + a \cdot \left(b \cdot \frac{i}{x \cdot z}\right)\right) - \mathsf{fma}\left(a, \frac{t}{z}, c \cdot \frac{b}{x}\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in j around 0 28.9%
*-commutative28.9%
Simplified28.9%
Taylor expanded in x around inf 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
associate-/l*48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around -inf 46.7%
mul-1-neg46.7%
distribute-rgt-neg-in46.7%
associate-+r+46.7%
associate--l+46.7%
Simplified62.2%
Final simplification84.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY)
t_1
(*
z
(+
(* x (- y (* b (/ c x))))
(* x (/ (- (* a (* b (/ i x))) (* t a)) z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z)));
}
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 * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * Float64(y - Float64(b * Float64(c / x)))) + Float64(x * Float64(Float64(Float64(a * Float64(b * Float64(i / x))) - Float64(t * a)) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $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[(z * N[(N[(x * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(N[(a * N[(b * N[(i / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - b \cdot \frac{c}{x}\right) + x \cdot \frac{a \cdot \left(b \cdot \frac{i}{x}\right) - t \cdot a}{z}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in j around 0 28.9%
*-commutative28.9%
Simplified28.9%
Taylor expanded in x around inf 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
associate-/l*48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around inf 42.2%
+-commutative42.2%
mul-1-neg42.2%
unsub-neg42.2%
associate-/l*42.2%
associate-/l*48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
associate-/l*55.6%
associate-/l*57.8%
Simplified57.8%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* a (* b i))))
(t_2 (* i (- (* a b) (* y j)))))
(if (<= i -2.6e+64)
t_2
(if (<= i -1.26e-79)
t_1
(if (<= i 6e-253)
(* t (- (* c j) (* x a)))
(if (<= i 4e-161)
(* z (- (* x y) (* b c)))
(if (<= i 6e-28)
(* x (- (* c (/ (* t j) x)) (* t a)))
(if (<= i 5.8e+34)
(* y (- (* x z) (* i j)))
(if (<= i 5.8e+98) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6e+64) {
tmp = t_2;
} else if (i <= -1.26e-79) {
tmp = t_1;
} else if (i <= 6e-253) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 4e-161) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 6e-28) {
tmp = x * ((c * ((t * j) / x)) - (t * a));
} else if (i <= 5.8e+34) {
tmp = y * ((x * z) - (i * j));
} else if (i <= 5.8e+98) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (a * (b * i))
t_2 = i * ((a * b) - (y * j))
if (i <= (-2.6d+64)) then
tmp = t_2
else if (i <= (-1.26d-79)) then
tmp = t_1
else if (i <= 6d-253) then
tmp = t * ((c * j) - (x * a))
else if (i <= 4d-161) then
tmp = z * ((x * y) - (b * c))
else if (i <= 6d-28) then
tmp = x * ((c * ((t * j) / x)) - (t * a))
else if (i <= 5.8d+34) then
tmp = y * ((x * z) - (i * j))
else if (i <= 5.8d+98) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6e+64) {
tmp = t_2;
} else if (i <= -1.26e-79) {
tmp = t_1;
} else if (i <= 6e-253) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 4e-161) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 6e-28) {
tmp = x * ((c * ((t * j) / x)) - (t * a));
} else if (i <= 5.8e+34) {
tmp = y * ((x * z) - (i * j));
} else if (i <= 5.8e+98) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.6e+64: tmp = t_2 elif i <= -1.26e-79: tmp = t_1 elif i <= 6e-253: tmp = t * ((c * j) - (x * a)) elif i <= 4e-161: tmp = z * ((x * y) - (b * c)) elif i <= 6e-28: tmp = x * ((c * ((t * j) / x)) - (t * a)) elif i <= 5.8e+34: tmp = y * ((x * z) - (i * j)) elif i <= 5.8e+98: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.6e+64) tmp = t_2; elseif (i <= -1.26e-79) tmp = t_1; elseif (i <= 6e-253) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 4e-161) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 6e-28) tmp = Float64(x * Float64(Float64(c * Float64(Float64(t * j) / x)) - Float64(t * a))); elseif (i <= 5.8e+34) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= 5.8e+98) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.6e+64) tmp = t_2; elseif (i <= -1.26e-79) tmp = t_1; elseif (i <= 6e-253) tmp = t * ((c * j) - (x * a)); elseif (i <= 4e-161) tmp = z * ((x * y) - (b * c)); elseif (i <= 6e-28) tmp = x * ((c * ((t * j) / x)) - (t * a)); elseif (i <= 5.8e+34) tmp = y * ((x * z) - (i * j)); elseif (i <= 5.8e+98) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e+64], t$95$2, If[LessEqual[i, -1.26e-79], t$95$1, If[LessEqual[i, 6e-253], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4e-161], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e-28], N[(x * N[(N[(c * N[(N[(t * j), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.8e+34], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.8e+98], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{+64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.26 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-253}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 4 \cdot 10^{-161}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-28}:\\
\;\;\;\;x \cdot \left(c \cdot \frac{t \cdot j}{x} - t \cdot a\right)\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{+34}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.59999999999999997e64 or 5.8000000000000002e98 < i Initial program 63.5%
Taylor expanded in x around inf 61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
associate-/l*61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in i around inf 77.0%
+-commutative77.0%
mul-1-neg77.0%
unsub-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
if -2.59999999999999997e64 < i < -1.25999999999999993e-79 or 5.8000000000000003e34 < i < 5.8000000000000002e98Initial program 72.0%
Taylor expanded in i around inf 71.7%
*-commutative71.7%
Simplified71.7%
if -1.25999999999999993e-79 < i < 6.0000000000000004e-253Initial program 83.5%
Taylor expanded in t around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
if 6.0000000000000004e-253 < i < 4.00000000000000011e-161Initial program 73.3%
Taylor expanded in z around inf 69.7%
*-commutative69.7%
Simplified69.7%
if 4.00000000000000011e-161 < i < 6.00000000000000005e-28Initial program 88.4%
Taylor expanded in t around -inf 57.3%
mul-1-neg57.3%
distribute-rgt-neg-in57.3%
+-commutative57.3%
*-commutative57.3%
fma-define57.3%
mul-1-neg57.3%
distribute-rgt-neg-in57.3%
Simplified57.3%
Taylor expanded in x around inf 57.6%
mul-1-neg57.6%
+-commutative57.6%
unsub-neg57.6%
associate-/l*57.6%
*-commutative57.6%
Simplified57.6%
if 6.00000000000000005e-28 < i < 5.8000000000000003e34Initial program 63.0%
Taylor expanded in y around inf 63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
*-commutative63.3%
Simplified63.3%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- t_1 (* b (* z c))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -1.12e+120)
t_3
(if (<= a -2800000000.0)
(+ t_1 (* a (* b i)))
(if (<= a -5.8e-60)
(* i (- (* a b) (* y j)))
(if (<= a 1.8e-274)
t_2
(if (<= a 1.15e-159)
(* y (- (* x z) (* i j)))
(if (<= a 6200000.0) 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 = j * ((t * c) - (y * i));
double t_2 = t_1 - (b * (z * c));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.12e+120) {
tmp = t_3;
} else if (a <= -2800000000.0) {
tmp = t_1 + (a * (b * i));
} else if (a <= -5.8e-60) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 1.8e-274) {
tmp = t_2;
} else if (a <= 1.15e-159) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 6200000.0) {
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 = j * ((t * c) - (y * i))
t_2 = t_1 - (b * (z * c))
t_3 = a * ((b * i) - (x * t))
if (a <= (-1.12d+120)) then
tmp = t_3
else if (a <= (-2800000000.0d0)) then
tmp = t_1 + (a * (b * i))
else if (a <= (-5.8d-60)) then
tmp = i * ((a * b) - (y * j))
else if (a <= 1.8d-274) then
tmp = t_2
else if (a <= 1.15d-159) then
tmp = y * ((x * z) - (i * j))
else if (a <= 6200000.0d0) 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 = j * ((t * c) - (y * i));
double t_2 = t_1 - (b * (z * c));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.12e+120) {
tmp = t_3;
} else if (a <= -2800000000.0) {
tmp = t_1 + (a * (b * i));
} else if (a <= -5.8e-60) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 1.8e-274) {
tmp = t_2;
} else if (a <= 1.15e-159) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 6200000.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 - (b * (z * c)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.12e+120: tmp = t_3 elif a <= -2800000000.0: tmp = t_1 + (a * (b * i)) elif a <= -5.8e-60: tmp = i * ((a * b) - (y * j)) elif a <= 1.8e-274: tmp = t_2 elif a <= 1.15e-159: tmp = y * ((x * z) - (i * j)) elif a <= 6200000.0: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 - Float64(b * Float64(z * c))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.12e+120) tmp = t_3; elseif (a <= -2800000000.0) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (a <= -5.8e-60) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 1.8e-274) tmp = t_2; elseif (a <= 1.15e-159) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 6200000.0) 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 = j * ((t * c) - (y * i)); t_2 = t_1 - (b * (z * c)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.12e+120) tmp = t_3; elseif (a <= -2800000000.0) tmp = t_1 + (a * (b * i)); elseif (a <= -5.8e-60) tmp = i * ((a * b) - (y * j)); elseif (a <= 1.8e-274) tmp = t_2; elseif (a <= 1.15e-159) tmp = y * ((x * z) - (i * j)); elseif (a <= 6200000.0) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.12e+120], t$95$3, If[LessEqual[a, -2800000000.0], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.8e-60], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-274], t$95$2, If[LessEqual[a, 1.15e-159], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6200000.0], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 - b \cdot \left(z \cdot c\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.12 \cdot 10^{+120}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -2800000000:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-60}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-274}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 6200000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -1.12000000000000005e120 or 6.2e6 < a Initial program 69.9%
Taylor expanded in j around 0 71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in z around 0 60.7%
associate-*r*60.7%
neg-mul-160.7%
*-commutative60.7%
associate-*r*60.7%
neg-mul-160.7%
distribute-lft-out--65.5%
distribute-lft-neg-in65.5%
distribute-rgt-neg-out65.5%
neg-sub065.5%
sub-neg65.5%
+-commutative65.5%
associate--r+65.5%
neg-sub065.5%
remove-double-neg65.5%
*-commutative65.5%
Simplified65.5%
if -1.12000000000000005e120 < a < -2.8e9Initial program 78.9%
Taylor expanded in i around inf 60.0%
*-commutative60.0%
Simplified60.0%
if -2.8e9 < a < -5.7999999999999999e-60Initial program 74.5%
Taylor expanded in x around inf 68.2%
+-commutative68.2%
mul-1-neg68.2%
unsub-neg68.2%
associate-/l*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in i around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
if -5.7999999999999999e-60 < a < 1.79999999999999991e-274 or 1.14999999999999989e-159 < a < 6.2e6Initial program 78.1%
Taylor expanded in c around inf 71.0%
associate-*r*71.0%
neg-mul-171.0%
*-commutative71.0%
Simplified71.0%
if 1.79999999999999991e-274 < a < 1.14999999999999989e-159Initial program 70.8%
Taylor expanded in y around inf 78.0%
+-commutative78.0%
mul-1-neg78.0%
unsub-neg78.0%
*-commutative78.0%
Simplified78.0%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* t c) (* y i))) (* b (* z c))))
(t_2 (* a (- (* b i) (* x t)))))
(if (<= a -7.5e+118)
t_2
(if (<= a -2.5)
(- (* a (* b i)) (* j (* i (- y (* c (/ t i))))))
(if (<= a -1.95e-60)
t_2
(if (<= a 1.12e-274)
t_1
(if (<= a 1.3e-159)
(* y (- (* x z) (* i j)))
(if (<= a 2700000.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - (b * (z * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+118) {
tmp = t_2;
} else if (a <= -2.5) {
tmp = (a * (b * i)) - (j * (i * (y - (c * (t / i)))));
} else if (a <= -1.95e-60) {
tmp = t_2;
} else if (a <= 1.12e-274) {
tmp = t_1;
} else if (a <= 1.3e-159) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 2700000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) - (b * (z * c))
t_2 = a * ((b * i) - (x * t))
if (a <= (-7.5d+118)) then
tmp = t_2
else if (a <= (-2.5d0)) then
tmp = (a * (b * i)) - (j * (i * (y - (c * (t / i)))))
else if (a <= (-1.95d-60)) then
tmp = t_2
else if (a <= 1.12d-274) then
tmp = t_1
else if (a <= 1.3d-159) then
tmp = y * ((x * z) - (i * j))
else if (a <= 2700000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - (b * (z * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+118) {
tmp = t_2;
} else if (a <= -2.5) {
tmp = (a * (b * i)) - (j * (i * (y - (c * (t / i)))));
} else if (a <= -1.95e-60) {
tmp = t_2;
} else if (a <= 1.12e-274) {
tmp = t_1;
} else if (a <= 1.3e-159) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 2700000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - (b * (z * c)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.5e+118: tmp = t_2 elif a <= -2.5: tmp = (a * (b * i)) - (j * (i * (y - (c * (t / i))))) elif a <= -1.95e-60: tmp = t_2 elif a <= 1.12e-274: tmp = t_1 elif a <= 1.3e-159: tmp = y * ((x * z) - (i * j)) elif a <= 2700000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.5e+118) tmp = t_2; elseif (a <= -2.5) tmp = Float64(Float64(a * Float64(b * i)) - Float64(j * Float64(i * Float64(y - Float64(c * Float64(t / i)))))); elseif (a <= -1.95e-60) tmp = t_2; elseif (a <= 1.12e-274) tmp = t_1; elseif (a <= 1.3e-159) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 2700000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - (b * (z * c)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.5e+118) tmp = t_2; elseif (a <= -2.5) tmp = (a * (b * i)) - (j * (i * (y - (c * (t / i))))); elseif (a <= -1.95e-60) tmp = t_2; elseif (a <= 1.12e-274) tmp = t_1; elseif (a <= 1.3e-159) tmp = y * ((x * z) - (i * j)); elseif (a <= 2700000.0) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+118], t$95$2, If[LessEqual[a, -2.5], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(i * N[(y - N[(c * N[(t / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-60], t$95$2, If[LessEqual[a, 1.12e-274], t$95$1, If[LessEqual[a, 1.3e-159], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2700000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+118}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.5:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - j \cdot \left(i \cdot \left(y - c \cdot \frac{t}{i}\right)\right)\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-274}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 2700000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -7.50000000000000003e118 or -2.5 < a < -1.9500000000000001e-60 or 2.7e6 < a Initial program 71.3%
Taylor expanded in j around 0 72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in z around 0 61.4%
associate-*r*61.4%
neg-mul-161.4%
*-commutative61.4%
associate-*r*61.4%
neg-mul-161.4%
distribute-lft-out--65.7%
distribute-lft-neg-in65.7%
distribute-rgt-neg-out65.7%
neg-sub065.7%
sub-neg65.7%
+-commutative65.7%
associate--r+65.7%
neg-sub065.7%
remove-double-neg65.7%
*-commutative65.7%
Simplified65.7%
if -7.50000000000000003e118 < a < -2.5Initial program 73.1%
Taylor expanded in i around inf 56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in i around inf 56.5%
associate-/l*61.0%
Simplified61.0%
if -1.9500000000000001e-60 < a < 1.11999999999999998e-274 or 1.2999999999999999e-159 < a < 2.7e6Initial program 78.1%
Taylor expanded in c around inf 71.0%
associate-*r*71.0%
neg-mul-171.0%
*-commutative71.0%
Simplified71.0%
if 1.11999999999999998e-274 < a < 1.2999999999999999e-159Initial program 70.8%
Taylor expanded in y around inf 78.0%
+-commutative78.0%
mul-1-neg78.0%
unsub-neg78.0%
*-commutative78.0%
Simplified78.0%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* i (- (* a b) (* y j)))))
(if (<= i -8e-24)
t_3
(if (<= i -1.95e-125)
(* t (* j (- c (* a (/ x j)))))
(if (<= i -1.15e-207)
t_1
(if (<= i 2.7e-251)
t_2
(if (<= i 2.4e-149)
t_1
(if (<= i 1.95e-29)
t_2
(if (<= i 5.2e+89) (* y (- (* x z) (* i j))) t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = t * ((c * j) - (x * a));
double t_3 = i * ((a * b) - (y * j));
double tmp;
if (i <= -8e-24) {
tmp = t_3;
} else if (i <= -1.95e-125) {
tmp = t * (j * (c - (a * (x / j))));
} else if (i <= -1.15e-207) {
tmp = t_1;
} else if (i <= 2.7e-251) {
tmp = t_2;
} else if (i <= 2.4e-149) {
tmp = t_1;
} else if (i <= 1.95e-29) {
tmp = t_2;
} else if (i <= 5.2e+89) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = t * ((c * j) - (x * a))
t_3 = i * ((a * b) - (y * j))
if (i <= (-8d-24)) then
tmp = t_3
else if (i <= (-1.95d-125)) then
tmp = t * (j * (c - (a * (x / j))))
else if (i <= (-1.15d-207)) then
tmp = t_1
else if (i <= 2.7d-251) then
tmp = t_2
else if (i <= 2.4d-149) then
tmp = t_1
else if (i <= 1.95d-29) then
tmp = t_2
else if (i <= 5.2d+89) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = t * ((c * j) - (x * a));
double t_3 = i * ((a * b) - (y * j));
double tmp;
if (i <= -8e-24) {
tmp = t_3;
} else if (i <= -1.95e-125) {
tmp = t * (j * (c - (a * (x / j))));
} else if (i <= -1.15e-207) {
tmp = t_1;
} else if (i <= 2.7e-251) {
tmp = t_2;
} else if (i <= 2.4e-149) {
tmp = t_1;
} else if (i <= 1.95e-29) {
tmp = t_2;
} else if (i <= 5.2e+89) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = t * ((c * j) - (x * a)) t_3 = i * ((a * b) - (y * j)) tmp = 0 if i <= -8e-24: tmp = t_3 elif i <= -1.95e-125: tmp = t * (j * (c - (a * (x / j)))) elif i <= -1.15e-207: tmp = t_1 elif i <= 2.7e-251: tmp = t_2 elif i <= 2.4e-149: tmp = t_1 elif i <= 1.95e-29: tmp = t_2 elif i <= 5.2e+89: tmp = y * ((x * z) - (i * j)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -8e-24) tmp = t_3; elseif (i <= -1.95e-125) tmp = Float64(t * Float64(j * Float64(c - Float64(a * Float64(x / j))))); elseif (i <= -1.15e-207) tmp = t_1; elseif (i <= 2.7e-251) tmp = t_2; elseif (i <= 2.4e-149) tmp = t_1; elseif (i <= 1.95e-29) tmp = t_2; elseif (i <= 5.2e+89) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = t * ((c * j) - (x * a)); t_3 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -8e-24) tmp = t_3; elseif (i <= -1.95e-125) tmp = t * (j * (c - (a * (x / j)))); elseif (i <= -1.15e-207) tmp = t_1; elseif (i <= 2.7e-251) tmp = t_2; elseif (i <= 2.4e-149) tmp = t_1; elseif (i <= 1.95e-29) tmp = t_2; elseif (i <= 5.2e+89) tmp = y * ((x * z) - (i * j)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8e-24], t$95$3, If[LessEqual[i, -1.95e-125], N[(t * N[(j * N[(c - N[(a * N[(x / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.15e-207], t$95$1, If[LessEqual[i, 2.7e-251], t$95$2, If[LessEqual[i, 2.4e-149], t$95$1, If[LessEqual[i, 1.95e-29], t$95$2, If[LessEqual[i, 5.2e+89], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -8 \cdot 10^{-24}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -1.95 \cdot 10^{-125}:\\
\;\;\;\;t \cdot \left(j \cdot \left(c - a \cdot \frac{x}{j}\right)\right)\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-207}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-251}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{-29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+89}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -7.99999999999999939e-24 or 5.2000000000000001e89 < i Initial program 63.1%
Taylor expanded in x around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in i around inf 73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
if -7.99999999999999939e-24 < i < -1.94999999999999991e-125Initial program 75.2%
Taylor expanded in t around -inf 59.7%
mul-1-neg59.7%
distribute-rgt-neg-in59.7%
+-commutative59.7%
*-commutative59.7%
fma-define59.7%
mul-1-neg59.7%
distribute-rgt-neg-in59.7%
Simplified59.7%
Taylor expanded in j around inf 63.8%
+-commutative63.8%
neg-mul-163.8%
unsub-neg63.8%
associate-/l*63.8%
Simplified63.8%
if -1.94999999999999991e-125 < i < -1.15e-207 or 2.7000000000000001e-251 < i < 2.4000000000000001e-149Initial program 78.6%
Taylor expanded in z around inf 64.1%
*-commutative64.1%
Simplified64.1%
if -1.15e-207 < i < 2.7000000000000001e-251 or 2.4000000000000001e-149 < i < 1.9499999999999999e-29Initial program 87.5%
Taylor expanded in t around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
if 1.9499999999999999e-29 < i < 5.2000000000000001e89Initial program 70.5%
Taylor expanded in y around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
*-commutative64.1%
Simplified64.1%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -2.6e-24)
t_2
(if (<= i -3.2e-124)
(* t (* j (- c (* a (/ x j)))))
(if (<= i -5.6e-207)
t_1
(if (<= i 7.2e-254)
(* t (- (* c j) (* x a)))
(if (<= i 9.2e-160)
t_1
(if (<= i 3.5e-26)
(* x (- (* c (/ (* t j) x)) (* t a)))
(if (<= i 9.2e+89) (* y (- (* x z) (* i j))) 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) - (b * c));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6e-24) {
tmp = t_2;
} else if (i <= -3.2e-124) {
tmp = t * (j * (c - (a * (x / j))));
} else if (i <= -5.6e-207) {
tmp = t_1;
} else if (i <= 7.2e-254) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 9.2e-160) {
tmp = t_1;
} else if (i <= 3.5e-26) {
tmp = x * ((c * ((t * j) / x)) - (t * a));
} else if (i <= 9.2e+89) {
tmp = y * ((x * z) - (i * j));
} 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) - (b * c))
t_2 = i * ((a * b) - (y * j))
if (i <= (-2.6d-24)) then
tmp = t_2
else if (i <= (-3.2d-124)) then
tmp = t * (j * (c - (a * (x / j))))
else if (i <= (-5.6d-207)) then
tmp = t_1
else if (i <= 7.2d-254) then
tmp = t * ((c * j) - (x * a))
else if (i <= 9.2d-160) then
tmp = t_1
else if (i <= 3.5d-26) then
tmp = x * ((c * ((t * j) / x)) - (t * a))
else if (i <= 9.2d+89) then
tmp = y * ((x * z) - (i * j))
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) - (b * c));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6e-24) {
tmp = t_2;
} else if (i <= -3.2e-124) {
tmp = t * (j * (c - (a * (x / j))));
} else if (i <= -5.6e-207) {
tmp = t_1;
} else if (i <= 7.2e-254) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 9.2e-160) {
tmp = t_1;
} else if (i <= 3.5e-26) {
tmp = x * ((c * ((t * j) / x)) - (t * a));
} else if (i <= 9.2e+89) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.6e-24: tmp = t_2 elif i <= -3.2e-124: tmp = t * (j * (c - (a * (x / j)))) elif i <= -5.6e-207: tmp = t_1 elif i <= 7.2e-254: tmp = t * ((c * j) - (x * a)) elif i <= 9.2e-160: tmp = t_1 elif i <= 3.5e-26: tmp = x * ((c * ((t * j) / x)) - (t * a)) elif i <= 9.2e+89: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.6e-24) tmp = t_2; elseif (i <= -3.2e-124) tmp = Float64(t * Float64(j * Float64(c - Float64(a * Float64(x / j))))); elseif (i <= -5.6e-207) tmp = t_1; elseif (i <= 7.2e-254) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 9.2e-160) tmp = t_1; elseif (i <= 3.5e-26) tmp = Float64(x * Float64(Float64(c * Float64(Float64(t * j) / x)) - Float64(t * a))); elseif (i <= 9.2e+89) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); 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) - (b * c)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.6e-24) tmp = t_2; elseif (i <= -3.2e-124) tmp = t * (j * (c - (a * (x / j)))); elseif (i <= -5.6e-207) tmp = t_1; elseif (i <= 7.2e-254) tmp = t * ((c * j) - (x * a)); elseif (i <= 9.2e-160) tmp = t_1; elseif (i <= 3.5e-26) tmp = x * ((c * ((t * j) / x)) - (t * a)); elseif (i <= 9.2e+89) tmp = y * ((x * z) - (i * j)); 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[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e-24], t$95$2, If[LessEqual[i, -3.2e-124], N[(t * N[(j * N[(c - N[(a * N[(x / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5.6e-207], t$95$1, If[LessEqual[i, 7.2e-254], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.2e-160], t$95$1, If[LessEqual[i, 3.5e-26], N[(x * N[(N[(c * N[(N[(t * j), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.2e+89], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{-24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{-124}:\\
\;\;\;\;t \cdot \left(j \cdot \left(c - a \cdot \frac{x}{j}\right)\right)\\
\mathbf{elif}\;i \leq -5.6 \cdot 10^{-207}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7.2 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{-160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \left(c \cdot \frac{t \cdot j}{x} - t \cdot a\right)\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{+89}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.6e-24 or 9.1999999999999996e89 < i Initial program 63.1%
Taylor expanded in x around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in i around inf 73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
if -2.6e-24 < i < -3.20000000000000004e-124Initial program 75.2%
Taylor expanded in t around -inf 59.7%
mul-1-neg59.7%
distribute-rgt-neg-in59.7%
+-commutative59.7%
*-commutative59.7%
fma-define59.7%
mul-1-neg59.7%
distribute-rgt-neg-in59.7%
Simplified59.7%
Taylor expanded in j around inf 63.8%
+-commutative63.8%
neg-mul-163.8%
unsub-neg63.8%
associate-/l*63.8%
Simplified63.8%
if -3.20000000000000004e-124 < i < -5.59999999999999986e-207 or 7.19999999999999967e-254 < i < 9.19999999999999939e-160Initial program 79.5%
Taylor expanded in z around inf 66.0%
*-commutative66.0%
Simplified66.0%
if -5.59999999999999986e-207 < i < 7.19999999999999967e-254Initial program 85.4%
Taylor expanded in t around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if 9.19999999999999939e-160 < i < 3.49999999999999985e-26Initial program 88.4%
Taylor expanded in t around -inf 57.3%
mul-1-neg57.3%
distribute-rgt-neg-in57.3%
+-commutative57.3%
*-commutative57.3%
fma-define57.3%
mul-1-neg57.3%
distribute-rgt-neg-in57.3%
Simplified57.3%
Taylor expanded in x around inf 57.6%
mul-1-neg57.6%
+-commutative57.6%
unsub-neg57.6%
associate-/l*57.6%
*-commutative57.6%
Simplified57.6%
if 3.49999999999999985e-26 < i < 9.1999999999999996e89Initial program 70.5%
Taylor expanded in y around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
*-commutative64.1%
Simplified64.1%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.65e+219)
t_1
(if (<= b -1.18e+64)
(+ (* x (- (* y z) (* t a))) t_1)
(if (<= b -45.0)
(*
z
(+
(* x (- y (* b (/ c x))))
(* x (/ (- (* a (* b (/ i x))) (* t a)) z))))
(if (<= b 1.28e-101)
(- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))
(* x (- (- (* y z) (* b (/ (- (* z c) (* a i)) x))) (* t 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 * ((a * i) - (z * c));
double tmp;
if (b <= -1.65e+219) {
tmp = t_1;
} else if (b <= -1.18e+64) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (b <= -45.0) {
tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z)));
} else if (b <= 1.28e-101) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = x * (((y * z) - (b * (((z * c) - (a * i)) / x))) - (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.65d+219)) then
tmp = t_1
else if (b <= (-1.18d+64)) then
tmp = (x * ((y * z) - (t * a))) + t_1
else if (b <= (-45.0d0)) then
tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z)))
else if (b <= 1.28d-101) then
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
else
tmp = x * (((y * z) - (b * (((z * c) - (a * i)) / x))) - (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.65e+219) {
tmp = t_1;
} else if (b <= -1.18e+64) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (b <= -45.0) {
tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z)));
} else if (b <= 1.28e-101) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = x * (((y * z) - (b * (((z * c) - (a * i)) / x))) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.65e+219: tmp = t_1 elif b <= -1.18e+64: tmp = (x * ((y * z) - (t * a))) + t_1 elif b <= -45.0: tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z))) elif b <= 1.28e-101: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) else: tmp = x * (((y * z) - (b * (((z * c) - (a * i)) / x))) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.65e+219) tmp = t_1; elseif (b <= -1.18e+64) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); elseif (b <= -45.0) tmp = Float64(z * Float64(Float64(x * Float64(y - Float64(b * Float64(c / x)))) + Float64(x * Float64(Float64(Float64(a * Float64(b * Float64(i / x))) - Float64(t * a)) / z)))); elseif (b <= 1.28e-101) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(x * Float64(Float64(Float64(y * z) - Float64(b * Float64(Float64(Float64(z * c) - Float64(a * i)) / x))) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.65e+219) tmp = t_1; elseif (b <= -1.18e+64) tmp = (x * ((y * z) - (t * a))) + t_1; elseif (b <= -45.0) tmp = z * ((x * (y - (b * (c / x)))) + (x * (((a * (b * (i / x))) - (t * a)) / z))); elseif (b <= 1.28e-101) tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); else tmp = x * (((y * z) - (b * (((z * c) - (a * i)) / x))) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.65e+219], t$95$1, If[LessEqual[b, -1.18e+64], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -45.0], N[(z * N[(N[(x * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(N[(a * N[(b * N[(i / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.28e-101], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(y * z), $MachinePrecision] - N[(b * N[(N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.65 \cdot 10^{+219}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.18 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{elif}\;b \leq -45:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - b \cdot \frac{c}{x}\right) + x \cdot \frac{a \cdot \left(b \cdot \frac{i}{x}\right) - t \cdot a}{z}\right)\\
\mathbf{elif}\;b \leq 1.28 \cdot 10^{-101}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(y \cdot z - b \cdot \frac{z \cdot c - a \cdot i}{x}\right) - t \cdot a\right)\\
\end{array}
\end{array}
if b < -1.6500000000000001e219Initial program 62.4%
Taylor expanded in b around inf 87.7%
*-commutative87.7%
Simplified87.7%
if -1.6500000000000001e219 < b < -1.18000000000000006e64Initial program 79.8%
Taylor expanded in j around 0 82.3%
*-commutative82.3%
Simplified82.3%
if -1.18000000000000006e64 < b < -45Initial program 59.5%
Taylor expanded in j around 0 43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in x around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
associate-/l*59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in z around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
associate-/l*75.8%
associate-/l*75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
associate-/l*75.8%
associate-/l*75.8%
Simplified75.8%
if -45 < b < 1.27999999999999995e-101Initial program 77.4%
Taylor expanded in b around 0 75.5%
if 1.27999999999999995e-101 < b Initial program 69.9%
Taylor expanded in j around 0 63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in x around inf 62.0%
+-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
associate-/l*63.3%
*-commutative63.3%
Simplified63.3%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -9e+150)
t_2
(if (<= y -3.5e+122)
t_1
(if (<= y -4e-35)
t_2
(if (<= y -3.2e-294)
t_1
(if (<= y 2.4e-180)
(* c (- (* t j) (* z b)))
(if (<= y 620000000.0) 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 = a * ((b * i) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -9e+150) {
tmp = t_2;
} else if (y <= -3.5e+122) {
tmp = t_1;
} else if (y <= -4e-35) {
tmp = t_2;
} else if (y <= -3.2e-294) {
tmp = t_1;
} else if (y <= 2.4e-180) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 620000000.0) {
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 = a * ((b * i) - (x * t))
t_2 = y * ((x * z) - (i * j))
if (y <= (-9d+150)) then
tmp = t_2
else if (y <= (-3.5d+122)) then
tmp = t_1
else if (y <= (-4d-35)) then
tmp = t_2
else if (y <= (-3.2d-294)) then
tmp = t_1
else if (y <= 2.4d-180) then
tmp = c * ((t * j) - (z * b))
else if (y <= 620000000.0d0) 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 = a * ((b * i) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -9e+150) {
tmp = t_2;
} else if (y <= -3.5e+122) {
tmp = t_1;
} else if (y <= -4e-35) {
tmp = t_2;
} else if (y <= -3.2e-294) {
tmp = t_1;
} else if (y <= 2.4e-180) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 620000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -9e+150: tmp = t_2 elif y <= -3.5e+122: tmp = t_1 elif y <= -4e-35: tmp = t_2 elif y <= -3.2e-294: tmp = t_1 elif y <= 2.4e-180: tmp = c * ((t * j) - (z * b)) elif y <= 620000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -9e+150) tmp = t_2; elseif (y <= -3.5e+122) tmp = t_1; elseif (y <= -4e-35) tmp = t_2; elseif (y <= -3.2e-294) tmp = t_1; elseif (y <= 2.4e-180) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 620000000.0) 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 = a * ((b * i) - (x * t)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -9e+150) tmp = t_2; elseif (y <= -3.5e+122) tmp = t_1; elseif (y <= -4e-35) tmp = t_2; elseif (y <= -3.2e-294) tmp = t_1; elseif (y <= 2.4e-180) tmp = c * ((t * j) - (z * b)); elseif (y <= 620000000.0) 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9e+150], t$95$2, If[LessEqual[y, -3.5e+122], t$95$1, If[LessEqual[y, -4e-35], t$95$2, If[LessEqual[y, -3.2e-294], t$95$1, If[LessEqual[y, 2.4e-180], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 620000000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -9 \cdot 10^{+150}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-294}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-180}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 620000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -9.00000000000000001e150 or -3.50000000000000014e122 < y < -4.00000000000000003e-35 or 6.2e8 < y Initial program 64.8%
Taylor expanded in y around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
if -9.00000000000000001e150 < y < -3.50000000000000014e122 or -4.00000000000000003e-35 < y < -3.20000000000000019e-294 or 2.39999999999999979e-180 < y < 6.2e8Initial program 82.6%
Taylor expanded in j around 0 73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in z around 0 63.1%
associate-*r*63.1%
neg-mul-163.1%
*-commutative63.1%
associate-*r*63.1%
neg-mul-163.1%
distribute-lft-out--67.5%
distribute-lft-neg-in67.5%
distribute-rgt-neg-out67.5%
neg-sub067.5%
sub-neg67.5%
+-commutative67.5%
associate--r+67.5%
neg-sub067.5%
remove-double-neg67.5%
*-commutative67.5%
Simplified67.5%
if -3.20000000000000019e-294 < y < 2.39999999999999979e-180Initial program 83.8%
Taylor expanded in c around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z)))))
(t_2 (* i (- (* a b) (* y j)))))
(if (<= i -2.6)
t_2
(if (<= i 1.8e-249)
t_1
(if (<= i 8.2e-150)
(* z (- (* x y) (* b c)))
(if (<= i 2.6e+90) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6) {
tmp = t_2;
} else if (i <= 1.8e-249) {
tmp = t_1;
} else if (i <= 8.2e-150) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 2.6e+90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
t_2 = i * ((a * b) - (y * j))
if (i <= (-2.6d0)) then
tmp = t_2
else if (i <= 1.8d-249) then
tmp = t_1
else if (i <= 8.2d-150) then
tmp = z * ((x * y) - (b * c))
else if (i <= 2.6d+90) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6) {
tmp = t_2;
} else if (i <= 1.8e-249) {
tmp = t_1;
} else if (i <= 8.2e-150) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 2.6e+90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.6: tmp = t_2 elif i <= 1.8e-249: tmp = t_1 elif i <= 8.2e-150: tmp = z * ((x * y) - (b * c)) elif i <= 2.6e+90: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.6) tmp = t_2; elseif (i <= 1.8e-249) tmp = t_1; elseif (i <= 8.2e-150) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 2.6e+90) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.6) tmp = t_2; elseif (i <= 1.8e-249) tmp = t_1; elseif (i <= 8.2e-150) tmp = z * ((x * y) - (b * c)); elseif (i <= 2.6e+90) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6], t$95$2, If[LessEqual[i, 1.8e-249], t$95$1, If[LessEqual[i, 8.2e-150], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e+90], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.6:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{-150}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.60000000000000009 or 2.5999999999999998e90 < i Initial program 61.9%
Taylor expanded in x around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
associate-/l*59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in i around inf 74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
if -2.60000000000000009 < i < 1.79999999999999997e-249 or 8.1999999999999997e-150 < i < 2.5999999999999998e90Initial program 81.8%
Taylor expanded in b around 0 69.6%
if 1.79999999999999997e-249 < i < 8.1999999999999997e-150Initial program 72.5%
Taylor expanded in z around inf 65.8%
*-commutative65.8%
Simplified65.8%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -2.45e+125)
t_2
(if (<= c -4.5e-137)
(* t (- (* c j) (* x a)))
(if (<= c -2.3e-191)
t_1
(if (<= c 4e-217)
(* a (- (* b i) (* x t)))
(if (<= c 2.8e+80) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.45e+125) {
tmp = t_2;
} else if (c <= -4.5e-137) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -2.3e-191) {
tmp = t_1;
} else if (c <= 4e-217) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.8e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-2.45d+125)) then
tmp = t_2
else if (c <= (-4.5d-137)) then
tmp = t * ((c * j) - (x * a))
else if (c <= (-2.3d-191)) then
tmp = t_1
else if (c <= 4d-217) then
tmp = a * ((b * i) - (x * t))
else if (c <= 2.8d+80) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.45e+125) {
tmp = t_2;
} else if (c <= -4.5e-137) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -2.3e-191) {
tmp = t_1;
} else if (c <= 4e-217) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.8e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -2.45e+125: tmp = t_2 elif c <= -4.5e-137: tmp = t * ((c * j) - (x * a)) elif c <= -2.3e-191: tmp = t_1 elif c <= 4e-217: tmp = a * ((b * i) - (x * t)) elif c <= 2.8e+80: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.45e+125) tmp = t_2; elseif (c <= -4.5e-137) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= -2.3e-191) tmp = t_1; elseif (c <= 4e-217) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 2.8e+80) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -2.45e+125) tmp = t_2; elseif (c <= -4.5e-137) tmp = t * ((c * j) - (x * a)); elseif (c <= -2.3e-191) tmp = t_1; elseif (c <= 4e-217) tmp = a * ((b * i) - (x * t)); elseif (c <= 2.8e+80) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.45e+125], t$95$2, If[LessEqual[c, -4.5e-137], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.3e-191], t$95$1, If[LessEqual[c, 4e-217], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.8e+80], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.45 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-137}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq -2.3 \cdot 10^{-191}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{-217}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -2.45000000000000008e125 or 2.79999999999999984e80 < c Initial program 61.9%
Taylor expanded in c around inf 71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
if -2.45000000000000008e125 < c < -4.4999999999999997e-137Initial program 79.2%
Taylor expanded in t around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
if -4.4999999999999997e-137 < c < -2.30000000000000011e-191 or 4.00000000000000033e-217 < c < 2.79999999999999984e80Initial program 81.1%
Taylor expanded in x around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
associate-/l*76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in i around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
if -2.30000000000000011e-191 < c < 4.00000000000000033e-217Initial program 75.8%
Taylor expanded in j around 0 74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in z around 0 55.4%
associate-*r*55.4%
neg-mul-155.4%
*-commutative55.4%
associate-*r*55.4%
neg-mul-155.4%
distribute-lft-out--57.0%
distribute-lft-neg-in57.0%
distribute-rgt-neg-out57.0%
neg-sub057.0%
sub-neg57.0%
+-commutative57.0%
associate--r+57.0%
neg-sub057.0%
remove-double-neg57.0%
*-commutative57.0%
Simplified57.0%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -7.8e-24)
t_2
(if (<= i 8.8e-254)
t_1
(if (<= i 3.9e-147)
(* z (- (* x y) (* b c)))
(if (<= i 6.2e-27)
t_1
(if (<= i 9.5e+89) (* y (- (* x z) (* i j))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -7.8e-24) {
tmp = t_2;
} else if (i <= 8.8e-254) {
tmp = t_1;
} else if (i <= 3.9e-147) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 6.2e-27) {
tmp = t_1;
} else if (i <= 9.5e+89) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = i * ((a * b) - (y * j))
if (i <= (-7.8d-24)) then
tmp = t_2
else if (i <= 8.8d-254) then
tmp = t_1
else if (i <= 3.9d-147) then
tmp = z * ((x * y) - (b * c))
else if (i <= 6.2d-27) then
tmp = t_1
else if (i <= 9.5d+89) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -7.8e-24) {
tmp = t_2;
} else if (i <= 8.8e-254) {
tmp = t_1;
} else if (i <= 3.9e-147) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 6.2e-27) {
tmp = t_1;
} else if (i <= 9.5e+89) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -7.8e-24: tmp = t_2 elif i <= 8.8e-254: tmp = t_1 elif i <= 3.9e-147: tmp = z * ((x * y) - (b * c)) elif i <= 6.2e-27: tmp = t_1 elif i <= 9.5e+89: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -7.8e-24) tmp = t_2; elseif (i <= 8.8e-254) tmp = t_1; elseif (i <= 3.9e-147) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 6.2e-27) tmp = t_1; elseif (i <= 9.5e+89) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -7.8e-24) tmp = t_2; elseif (i <= 8.8e-254) tmp = t_1; elseif (i <= 3.9e-147) tmp = z * ((x * y) - (b * c)); elseif (i <= 6.2e-27) tmp = t_1; elseif (i <= 9.5e+89) tmp = y * ((x * z) - (i * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.8e-24], t$95$2, If[LessEqual[i, 8.8e-254], t$95$1, If[LessEqual[i, 3.9e-147], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.2e-27], t$95$1, If[LessEqual[i, 9.5e+89], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -7.8 \cdot 10^{-24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 8.8 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{-147}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 6.2 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{+89}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -7.8e-24 or 9.5000000000000003e89 < i Initial program 63.1%
Taylor expanded in x around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in i around inf 73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
if -7.8e-24 < i < 8.8000000000000004e-254 or 3.8999999999999998e-147 < i < 6.1999999999999997e-27Initial program 84.4%
Taylor expanded in t around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
*-commutative58.4%
*-commutative58.4%
Simplified58.4%
if 8.8000000000000004e-254 < i < 3.8999999999999998e-147Initial program 72.5%
Taylor expanded in z around inf 65.8%
*-commutative65.8%
Simplified65.8%
if 6.1999999999999997e-27 < i < 9.5000000000000003e89Initial program 70.5%
Taylor expanded in y around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
*-commutative64.1%
Simplified64.1%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.5e+156)
t_1
(if (<= y 0.25)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(if (<= y 7.8e+155)
(- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.5e+156) {
tmp = t_1;
} else if (y <= 0.25) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else if (y <= 7.8e+155) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-1.5d+156)) then
tmp = t_1
else if (y <= 0.25d0) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else if (y <= 7.8d+155) then
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.5e+156) {
tmp = t_1;
} else if (y <= 0.25) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else if (y <= 7.8e+155) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.5e+156: tmp = t_1 elif y <= 0.25: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) elif y <= 7.8e+155: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.5e+156) tmp = t_1; elseif (y <= 0.25) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (y <= 7.8e+155) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.5e+156) tmp = t_1; elseif (y <= 0.25) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); elseif (y <= 7.8e+155) tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+156], t$95$1, If[LessEqual[y, 0.25], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e+155], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.25:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+155}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.5e156 or 7.7999999999999996e155 < y Initial program 45.6%
Taylor expanded in y around inf 71.4%
+-commutative71.4%
mul-1-neg71.4%
unsub-neg71.4%
*-commutative71.4%
Simplified71.4%
if -1.5e156 < y < 0.25Initial program 84.8%
Taylor expanded in j around 0 71.5%
*-commutative71.5%
Simplified71.5%
if 0.25 < y < 7.7999999999999996e155Initial program 77.2%
Taylor expanded in b around 0 74.7%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -2.2e-97)
t_2
(if (<= a -1.05e-296)
t_1
(if (<= a 2.9e-153) (* y (* x z)) (if (<= a 4.7e-10) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.2e-97) {
tmp = t_2;
} else if (a <= -1.05e-296) {
tmp = t_1;
} else if (a <= 2.9e-153) {
tmp = y * (x * z);
} else if (a <= 4.7e-10) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = a * ((b * i) - (x * t))
if (a <= (-2.2d-97)) then
tmp = t_2
else if (a <= (-1.05d-296)) then
tmp = t_1
else if (a <= 2.9d-153) then
tmp = y * (x * z)
else if (a <= 4.7d-10) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.2e-97) {
tmp = t_2;
} else if (a <= -1.05e-296) {
tmp = t_1;
} else if (a <= 2.9e-153) {
tmp = y * (x * z);
} else if (a <= 4.7e-10) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2.2e-97: tmp = t_2 elif a <= -1.05e-296: tmp = t_1 elif a <= 2.9e-153: tmp = y * (x * z) elif a <= 4.7e-10: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2.2e-97) tmp = t_2; elseif (a <= -1.05e-296) tmp = t_1; elseif (a <= 2.9e-153) tmp = Float64(y * Float64(x * z)); elseif (a <= 4.7e-10) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2.2e-97) tmp = t_2; elseif (a <= -1.05e-296) tmp = t_1; elseif (a <= 2.9e-153) tmp = y * (x * z); elseif (a <= 4.7e-10) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e-97], t$95$2, If[LessEqual[a, -1.05e-296], t$95$1, If[LessEqual[a, 2.9e-153], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.7e-10], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{-97}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-296}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-153}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.1999999999999999e-97 or 4.7000000000000003e-10 < a Initial program 71.3%
Taylor expanded in j around 0 67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in z around 0 55.4%
associate-*r*55.4%
neg-mul-155.4%
*-commutative55.4%
associate-*r*55.4%
neg-mul-155.4%
distribute-lft-out--59.5%
distribute-lft-neg-in59.5%
distribute-rgt-neg-out59.5%
neg-sub059.5%
sub-neg59.5%
+-commutative59.5%
associate--r+59.5%
neg-sub059.5%
remove-double-neg59.5%
*-commutative59.5%
Simplified59.5%
if -2.1999999999999999e-97 < a < -1.05e-296 or 2.90000000000000002e-153 < a < 4.7000000000000003e-10Initial program 79.0%
Taylor expanded in b around inf 50.6%
*-commutative50.6%
Simplified50.6%
if -1.05e-296 < a < 2.90000000000000002e-153Initial program 74.3%
Taylor expanded in y around inf 69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in x around inf 48.7%
*-commutative48.7%
Simplified48.7%
Final simplification55.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -1e-58)
t_2
(if (<= a -1.75e-299)
t_1
(if (<= a 1.15e-159) (* y (* x z)) (if (<= a 9.5e-33) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1e-58) {
tmp = t_2;
} else if (a <= -1.75e-299) {
tmp = t_1;
} else if (a <= 1.15e-159) {
tmp = y * (x * z);
} else if (a <= 9.5e-33) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (a <= (-1d-58)) then
tmp = t_2
else if (a <= (-1.75d-299)) then
tmp = t_1
else if (a <= 1.15d-159) then
tmp = y * (x * z)
else if (a <= 9.5d-33) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1e-58) {
tmp = t_2;
} else if (a <= -1.75e-299) {
tmp = t_1;
} else if (a <= 1.15e-159) {
tmp = y * (x * z);
} else if (a <= 9.5e-33) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1e-58: tmp = t_2 elif a <= -1.75e-299: tmp = t_1 elif a <= 1.15e-159: tmp = y * (x * z) elif a <= 9.5e-33: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1e-58) tmp = t_2; elseif (a <= -1.75e-299) tmp = t_1; elseif (a <= 1.15e-159) tmp = Float64(y * Float64(x * z)); elseif (a <= 9.5e-33) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1e-58) tmp = t_2; elseif (a <= -1.75e-299) tmp = t_1; elseif (a <= 1.15e-159) tmp = y * (x * z); elseif (a <= 9.5e-33) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e-58], t$95$2, If[LessEqual[a, -1.75e-299], t$95$1, If[LessEqual[a, 1.15e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-33], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1 \cdot 10^{-58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{-299}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1e-58 or 9.50000000000000019e-33 < a Initial program 71.1%
Taylor expanded in j around 0 67.2%
*-commutative67.2%
Simplified67.2%
Taylor expanded in z around 0 55.1%
associate-*r*55.1%
neg-mul-155.1%
*-commutative55.1%
associate-*r*55.1%
neg-mul-155.1%
distribute-lft-out--59.2%
distribute-lft-neg-in59.2%
distribute-rgt-neg-out59.2%
neg-sub059.2%
sub-neg59.2%
+-commutative59.2%
associate--r+59.2%
neg-sub059.2%
remove-double-neg59.2%
*-commutative59.2%
Simplified59.2%
if -1e-58 < a < -1.74999999999999995e-299 or 1.14999999999999989e-159 < a < 9.50000000000000019e-33Initial program 79.5%
Taylor expanded in c around inf 56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
if -1.74999999999999995e-299 < a < 1.14999999999999989e-159Initial program 73.4%
Taylor expanded in y around inf 73.6%
+-commutative73.6%
mul-1-neg73.6%
unsub-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in x around inf 54.7%
*-commutative54.7%
Simplified54.7%
Final simplification57.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -2.6e-45)
t_2
(if (<= i -3.5e-229)
t_1
(if (<= i 1.45e-257) (* t (* x (- a))) (if (<= i 4.5e-16) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6e-45) {
tmp = t_2;
} else if (i <= -3.5e-229) {
tmp = t_1;
} else if (i <= 1.45e-257) {
tmp = t * (x * -a);
} else if (i <= 4.5e-16) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = i * ((a * b) - (y * j))
if (i <= (-2.6d-45)) then
tmp = t_2
else if (i <= (-3.5d-229)) then
tmp = t_1
else if (i <= 1.45d-257) then
tmp = t * (x * -a)
else if (i <= 4.5d-16) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.6e-45) {
tmp = t_2;
} else if (i <= -3.5e-229) {
tmp = t_1;
} else if (i <= 1.45e-257) {
tmp = t * (x * -a);
} else if (i <= 4.5e-16) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.6e-45: tmp = t_2 elif i <= -3.5e-229: tmp = t_1 elif i <= 1.45e-257: tmp = t * (x * -a) elif i <= 4.5e-16: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.6e-45) tmp = t_2; elseif (i <= -3.5e-229) tmp = t_1; elseif (i <= 1.45e-257) tmp = Float64(t * Float64(x * Float64(-a))); elseif (i <= 4.5e-16) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.6e-45) tmp = t_2; elseif (i <= -3.5e-229) tmp = t_1; elseif (i <= 1.45e-257) tmp = t * (x * -a); elseif (i <= 4.5e-16) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e-45], t$95$2, If[LessEqual[i, -3.5e-229], t$95$1, If[LessEqual[i, 1.45e-257], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.5e-16], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{-45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -3.5 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{-257}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 4.5 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.59999999999999987e-45 or 4.5000000000000002e-16 < i Initial program 65.5%
Taylor expanded in x around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
associate-/l*61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in i around inf 67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
if -2.59999999999999987e-45 < i < -3.5000000000000003e-229 or 1.4500000000000001e-257 < i < 4.5000000000000002e-16Initial program 81.1%
Taylor expanded in c around inf 50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
if -3.5000000000000003e-229 < i < 1.4500000000000001e-257Initial program 84.5%
Taylor expanded in t around -inf 64.9%
mul-1-neg64.9%
distribute-rgt-neg-in64.9%
+-commutative64.9%
*-commutative64.9%
fma-define65.0%
mul-1-neg65.0%
distribute-rgt-neg-in65.0%
Simplified65.0%
Taylor expanded in x around inf 46.2%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -8e-59)
t_1
(if (<= a -1.5e-299)
(* c (- (* t j) (* z b)))
(if (<= a 1.6e-159)
(* y (* x z))
(if (<= a 38000000000.0) (* j (- (* t c) (* y i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8e-59) {
tmp = t_1;
} else if (a <= -1.5e-299) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 1.6e-159) {
tmp = y * (x * z);
} else if (a <= 38000000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-8d-59)) then
tmp = t_1
else if (a <= (-1.5d-299)) then
tmp = c * ((t * j) - (z * b))
else if (a <= 1.6d-159) then
tmp = y * (x * z)
else if (a <= 38000000000.0d0) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8e-59) {
tmp = t_1;
} else if (a <= -1.5e-299) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 1.6e-159) {
tmp = y * (x * z);
} else if (a <= 38000000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -8e-59: tmp = t_1 elif a <= -1.5e-299: tmp = c * ((t * j) - (z * b)) elif a <= 1.6e-159: tmp = y * (x * z) elif a <= 38000000000.0: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -8e-59) tmp = t_1; elseif (a <= -1.5e-299) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 1.6e-159) tmp = Float64(y * Float64(x * z)); elseif (a <= 38000000000.0) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -8e-59) tmp = t_1; elseif (a <= -1.5e-299) tmp = c * ((t * j) - (z * b)); elseif (a <= 1.6e-159) tmp = y * (x * z); elseif (a <= 38000000000.0) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e-59], t$95$1, If[LessEqual[a, -1.5e-299], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-159], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 38000000000.0], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -8 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-299}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-159}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 38000000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -8.0000000000000002e-59 or 3.8e10 < a Initial program 71.9%
Taylor expanded in j around 0 69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in z around 0 56.9%
associate-*r*56.9%
neg-mul-156.9%
*-commutative56.9%
associate-*r*56.9%
neg-mul-156.9%
distribute-lft-out--61.3%
distribute-lft-neg-in61.3%
distribute-rgt-neg-out61.3%
neg-sub061.3%
sub-neg61.3%
+-commutative61.3%
associate--r+61.3%
neg-sub061.3%
remove-double-neg61.3%
*-commutative61.3%
Simplified61.3%
if -8.0000000000000002e-59 < a < -1.49999999999999992e-299Initial program 78.7%
Taylor expanded in c around inf 57.7%
*-commutative57.7%
*-commutative57.7%
Simplified57.7%
if -1.49999999999999992e-299 < a < 1.6e-159Initial program 73.4%
Taylor expanded in y around inf 73.6%
+-commutative73.6%
mul-1-neg73.6%
unsub-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in x around inf 54.7%
*-commutative54.7%
Simplified54.7%
if 1.6e-159 < a < 3.8e10Initial program 75.1%
Taylor expanded in j around inf 48.9%
*-commutative48.9%
*-commutative48.9%
Simplified48.9%
Final simplification57.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1650000000000.0)
(* b (* z (- c)))
(if (<= z -2.2e-210)
(* i (* a b))
(if (<= z 1.15e-255)
(* a (* x (- t)))
(if (<= z 12200000.0) (* a (* b i)) (* y (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1650000000000.0) {
tmp = b * (z * -c);
} else if (z <= -2.2e-210) {
tmp = i * (a * b);
} else if (z <= 1.15e-255) {
tmp = a * (x * -t);
} else if (z <= 12200000.0) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1650000000000.0d0)) then
tmp = b * (z * -c)
else if (z <= (-2.2d-210)) then
tmp = i * (a * b)
else if (z <= 1.15d-255) then
tmp = a * (x * -t)
else if (z <= 12200000.0d0) then
tmp = a * (b * i)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1650000000000.0) {
tmp = b * (z * -c);
} else if (z <= -2.2e-210) {
tmp = i * (a * b);
} else if (z <= 1.15e-255) {
tmp = a * (x * -t);
} else if (z <= 12200000.0) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1650000000000.0: tmp = b * (z * -c) elif z <= -2.2e-210: tmp = i * (a * b) elif z <= 1.15e-255: tmp = a * (x * -t) elif z <= 12200000.0: tmp = a * (b * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1650000000000.0) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= -2.2e-210) tmp = Float64(i * Float64(a * b)); elseif (z <= 1.15e-255) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 12200000.0) tmp = Float64(a * Float64(b * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1650000000000.0) tmp = b * (z * -c); elseif (z <= -2.2e-210) tmp = i * (a * b); elseif (z <= 1.15e-255) tmp = a * (x * -t); elseif (z <= 12200000.0) tmp = a * (b * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1650000000000.0], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.2e-210], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e-255], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 12200000.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1650000000000:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-210}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-255}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 12200000:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -1.65e12Initial program 66.0%
Taylor expanded in b around inf 46.7%
*-commutative46.7%
Simplified46.7%
Taylor expanded in a around 0 45.1%
mul-1-neg45.1%
*-commutative45.1%
distribute-rgt-neg-in45.1%
Simplified45.1%
if -1.65e12 < z < -2.19999999999999989e-210Initial program 74.2%
Taylor expanded in j around 0 55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in i around inf 30.5%
*-commutative30.5%
*-commutative30.5%
associate-*r*34.1%
*-commutative34.1%
Simplified34.1%
if -2.19999999999999989e-210 < z < 1.1499999999999999e-255Initial program 76.9%
Taylor expanded in j around 0 59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in x around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in t around inf 54.1%
associate-*r*54.1%
mul-1-neg54.1%
*-commutative54.1%
Simplified54.1%
if 1.1499999999999999e-255 < z < 1.22e7Initial program 86.0%
Taylor expanded in j around 0 60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in i around inf 36.6%
if 1.22e7 < z Initial program 69.2%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in x around inf 43.0%
*-commutative43.0%
Simplified43.0%
Final simplification41.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -2.05e-97)
t_1
(if (<= a -2.05e-299)
(* z (* b (- c)))
(if (<= a 2.7e-80) (* y (* x z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.05e-97) {
tmp = t_1;
} else if (a <= -2.05e-299) {
tmp = z * (b * -c);
} else if (a <= 2.7e-80) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-2.05d-97)) then
tmp = t_1
else if (a <= (-2.05d-299)) then
tmp = z * (b * -c)
else if (a <= 2.7d-80) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.05e-97) {
tmp = t_1;
} else if (a <= -2.05e-299) {
tmp = z * (b * -c);
} else if (a <= 2.7e-80) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2.05e-97: tmp = t_1 elif a <= -2.05e-299: tmp = z * (b * -c) elif a <= 2.7e-80: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2.05e-97) tmp = t_1; elseif (a <= -2.05e-299) tmp = Float64(z * Float64(b * Float64(-c))); elseif (a <= 2.7e-80) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2.05e-97) tmp = t_1; elseif (a <= -2.05e-299) tmp = z * (b * -c); elseif (a <= 2.7e-80) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.05e-97], t$95$1, If[LessEqual[a, -2.05e-299], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e-80], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.05 \cdot 10^{-97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.05 \cdot 10^{-299}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-80}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.04999999999999996e-97 or 2.7000000000000002e-80 < a Initial program 72.8%
Taylor expanded in j around 0 67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in z around 0 52.3%
associate-*r*52.3%
neg-mul-152.3%
*-commutative52.3%
associate-*r*52.3%
neg-mul-152.3%
distribute-lft-out--55.9%
distribute-lft-neg-in55.9%
distribute-rgt-neg-out55.9%
neg-sub055.9%
sub-neg55.9%
+-commutative55.9%
associate--r+55.9%
neg-sub055.9%
remove-double-neg55.9%
*-commutative55.9%
Simplified55.9%
if -2.04999999999999996e-97 < a < -2.05e-299Initial program 82.1%
Taylor expanded in j around 0 55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in c around inf 42.7%
associate-*r*42.7%
neg-mul-142.7%
*-commutative42.7%
*-commutative42.7%
associate-*l*47.6%
Simplified47.6%
if -2.05e-299 < a < 2.7000000000000002e-80Initial program 71.0%
Taylor expanded in y around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around inf 44.3%
*-commutative44.3%
Simplified44.3%
Final simplification52.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.15e+94)
(* t (* c j))
(if (<= j -1.55e-105)
(* x (* y z))
(if (<= j 1.1e+100) (* b (* a i)) (* c (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.15e+94) {
tmp = t * (c * j);
} else if (j <= -1.55e-105) {
tmp = x * (y * z);
} else if (j <= 1.1e+100) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.15d+94)) then
tmp = t * (c * j)
else if (j <= (-1.55d-105)) then
tmp = x * (y * z)
else if (j <= 1.1d+100) then
tmp = b * (a * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.15e+94) {
tmp = t * (c * j);
} else if (j <= -1.55e-105) {
tmp = x * (y * z);
} else if (j <= 1.1e+100) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.15e+94: tmp = t * (c * j) elif j <= -1.55e-105: tmp = x * (y * z) elif j <= 1.1e+100: tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.15e+94) tmp = Float64(t * Float64(c * j)); elseif (j <= -1.55e-105) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.1e+100) tmp = Float64(b * Float64(a * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.15e+94) tmp = t * (c * j); elseif (j <= -1.55e-105) tmp = x * (y * z); elseif (j <= 1.1e+100) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.15e+94], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.55e-105], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e+100], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.15 \cdot 10^{+94}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq -1.55 \cdot 10^{-105}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{+100}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -1.15e94Initial program 74.2%
Taylor expanded in t around -inf 38.4%
mul-1-neg38.4%
distribute-rgt-neg-in38.4%
+-commutative38.4%
*-commutative38.4%
fma-define41.3%
mul-1-neg41.3%
distribute-rgt-neg-in41.3%
Simplified41.3%
Taylor expanded in x around 0 41.1%
mul-1-neg41.1%
distribute-rgt-neg-out41.1%
Simplified41.1%
Taylor expanded in t around 0 38.6%
*-commutative38.6%
associate-*r*41.2%
*-commutative41.2%
associate-*r*41.1%
Simplified41.1%
if -1.15e94 < j < -1.55000000000000007e-105Initial program 66.9%
Taylor expanded in j around 0 58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in x around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
associate-/l*63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in y around inf 36.9%
*-commutative36.9%
Simplified36.9%
if -1.55000000000000007e-105 < j < 1.1e100Initial program 75.9%
Taylor expanded in b around inf 43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in a around inf 32.5%
if 1.1e100 < j Initial program 75.7%
Taylor expanded in t around -inf 60.4%
mul-1-neg60.4%
distribute-rgt-neg-in60.4%
+-commutative60.4%
*-commutative60.4%
fma-define62.7%
mul-1-neg62.7%
distribute-rgt-neg-in62.7%
Simplified62.7%
Taylor expanded in x around 0 33.4%
mul-1-neg33.4%
distribute-rgt-neg-out33.4%
Simplified33.4%
Taylor expanded in t around 0 39.3%
*-commutative39.3%
Simplified39.3%
Final simplification35.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.25e+60)
(* b (* z (- c)))
(if (<= z 6.8e-252)
(* t (* x (- a)))
(if (<= z 2200.0) (* a (* b i)) (* y (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.25e+60) {
tmp = b * (z * -c);
} else if (z <= 6.8e-252) {
tmp = t * (x * -a);
} else if (z <= 2200.0) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.25d+60)) then
tmp = b * (z * -c)
else if (z <= 6.8d-252) then
tmp = t * (x * -a)
else if (z <= 2200.0d0) then
tmp = a * (b * i)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.25e+60) {
tmp = b * (z * -c);
} else if (z <= 6.8e-252) {
tmp = t * (x * -a);
} else if (z <= 2200.0) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.25e+60: tmp = b * (z * -c) elif z <= 6.8e-252: tmp = t * (x * -a) elif z <= 2200.0: tmp = a * (b * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.25e+60) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= 6.8e-252) tmp = Float64(t * Float64(x * Float64(-a))); elseif (z <= 2200.0) tmp = Float64(a * Float64(b * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.25e+60) tmp = b * (z * -c); elseif (z <= 6.8e-252) tmp = t * (x * -a); elseif (z <= 2200.0) tmp = a * (b * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.25e+60], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e-252], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2200.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+60}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-252}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;z \leq 2200:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -1.24999999999999994e60Initial program 60.3%
Taylor expanded in b around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in a around 0 50.3%
mul-1-neg50.3%
*-commutative50.3%
distribute-rgt-neg-in50.3%
Simplified50.3%
if -1.24999999999999994e60 < z < 6.7999999999999999e-252Initial program 77.3%
Taylor expanded in t around -inf 49.3%
mul-1-neg49.3%
distribute-rgt-neg-in49.3%
+-commutative49.3%
*-commutative49.3%
fma-define51.4%
mul-1-neg51.4%
distribute-rgt-neg-in51.4%
Simplified51.4%
Taylor expanded in x around inf 34.8%
if 6.7999999999999999e-252 < z < 2200Initial program 86.0%
Taylor expanded in j around 0 60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in i around inf 36.6%
if 2200 < z Initial program 69.2%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in x around inf 43.0%
*-commutative43.0%
Simplified43.0%
Final simplification40.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -7.2e-107) (not (<= c 2.5e+132))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7.2e-107) || !(c <= 2.5e+132)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-7.2d-107)) .or. (.not. (c <= 2.5d+132))) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -7.2e-107) || !(c <= 2.5e+132)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -7.2e-107) or not (c <= 2.5e+132): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -7.2e-107) || !(c <= 2.5e+132)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -7.2e-107) || ~((c <= 2.5e+132))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -7.2e-107], N[Not[LessEqual[c, 2.5e+132]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.2 \cdot 10^{-107} \lor \neg \left(c \leq 2.5 \cdot 10^{+132}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if c < -7.19999999999999953e-107 or 2.5000000000000001e132 < c Initial program 68.9%
Taylor expanded in t around -inf 41.8%
mul-1-neg41.8%
distribute-rgt-neg-in41.8%
+-commutative41.8%
*-commutative41.8%
fma-define43.6%
mul-1-neg43.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
Taylor expanded in x around 0 32.7%
mul-1-neg32.7%
distribute-rgt-neg-out32.7%
Simplified32.7%
Taylor expanded in t around 0 33.2%
*-commutative33.2%
Simplified33.2%
if -7.19999999999999953e-107 < c < 2.5000000000000001e132Initial program 77.8%
Taylor expanded in b around inf 39.1%
*-commutative39.1%
Simplified39.1%
Taylor expanded in a around inf 32.5%
Final simplification32.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -8.2e+14) (not (<= z 105000000.0))) (* y (* x z)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -8.2e+14) || !(z <= 105000000.0)) {
tmp = y * (x * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-8.2d+14)) .or. (.not. (z <= 105000000.0d0))) then
tmp = y * (x * z)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -8.2e+14) || !(z <= 105000000.0)) {
tmp = y * (x * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -8.2e+14) or not (z <= 105000000.0): tmp = y * (x * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -8.2e+14) || !(z <= 105000000.0)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -8.2e+14) || ~((z <= 105000000.0))) tmp = y * (x * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -8.2e+14], N[Not[LessEqual[z, 105000000.0]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+14} \lor \neg \left(z \leq 105000000\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if z < -8.2e14 or 1.05e8 < z Initial program 67.5%
Taylor expanded in y around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in x around inf 41.7%
*-commutative41.7%
Simplified41.7%
if -8.2e14 < z < 1.05e8Initial program 79.2%
Taylor expanded in j around 0 58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in i around inf 28.9%
*-commutative28.9%
*-commutative28.9%
associate-*r*29.8%
*-commutative29.8%
Simplified29.8%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -2.6e-20) (* t (* c j)) (if (<= j 7.5e+97) (* b (* a i)) (* c (* t j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.6e-20) {
tmp = t * (c * j);
} else if (j <= 7.5e+97) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-2.6d-20)) then
tmp = t * (c * j)
else if (j <= 7.5d+97) then
tmp = b * (a * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.6e-20) {
tmp = t * (c * j);
} else if (j <= 7.5e+97) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.6e-20: tmp = t * (c * j) elif j <= 7.5e+97: tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.6e-20) tmp = Float64(t * Float64(c * j)); elseif (j <= 7.5e+97) tmp = Float64(b * Float64(a * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.6e-20) tmp = t * (c * j); elseif (j <= 7.5e+97) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.6e-20], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.5e+97], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.6 \cdot 10^{-20}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{+97}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -2.59999999999999995e-20Initial program 71.2%
Taylor expanded in t around -inf 40.6%
mul-1-neg40.6%
distribute-rgt-neg-in40.6%
+-commutative40.6%
*-commutative40.6%
fma-define42.1%
mul-1-neg42.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
Taylor expanded in x around 0 34.8%
mul-1-neg34.8%
distribute-rgt-neg-out34.8%
Simplified34.8%
Taylor expanded in t around 0 32.0%
*-commutative32.0%
associate-*r*33.4%
*-commutative33.4%
associate-*r*34.8%
Simplified34.8%
if -2.59999999999999995e-20 < j < 7.5000000000000004e97Initial program 74.4%
Taylor expanded in b around inf 42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in a around inf 30.4%
if 7.5000000000000004e97 < j Initial program 75.7%
Taylor expanded in t around -inf 60.4%
mul-1-neg60.4%
distribute-rgt-neg-in60.4%
+-commutative60.4%
*-commutative60.4%
fma-define62.7%
mul-1-neg62.7%
distribute-rgt-neg-in62.7%
Simplified62.7%
Taylor expanded in x around 0 33.4%
mul-1-neg33.4%
distribute-rgt-neg-out33.4%
Simplified33.4%
Taylor expanded in t around 0 39.3%
*-commutative39.3%
Simplified39.3%
Final simplification33.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -6500000000000.0) (* b (* z (- c))) (if (<= z 10000000.0) (* i (* a b)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6500000000000.0) {
tmp = b * (z * -c);
} else if (z <= 10000000.0) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6500000000000.0d0)) then
tmp = b * (z * -c)
else if (z <= 10000000.0d0) then
tmp = i * (a * b)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6500000000000.0) {
tmp = b * (z * -c);
} else if (z <= 10000000.0) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6500000000000.0: tmp = b * (z * -c) elif z <= 10000000.0: tmp = i * (a * b) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6500000000000.0) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= 10000000.0) tmp = Float64(i * Float64(a * b)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6500000000000.0) tmp = b * (z * -c); elseif (z <= 10000000.0) tmp = i * (a * b); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6500000000000.0], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 10000000.0], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6500000000000:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq 10000000:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -6.5e12Initial program 66.0%
Taylor expanded in b around inf 46.7%
*-commutative46.7%
Simplified46.7%
Taylor expanded in a around 0 45.1%
mul-1-neg45.1%
*-commutative45.1%
distribute-rgt-neg-in45.1%
Simplified45.1%
if -6.5e12 < z < 1e7Initial program 79.1%
Taylor expanded in j around 0 58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in i around inf 29.1%
*-commutative29.1%
*-commutative29.1%
associate-*r*30.0%
*-commutative30.0%
Simplified30.0%
if 1e7 < z Initial program 69.2%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in x around inf 43.0%
*-commutative43.0%
Simplified43.0%
Final simplification36.5%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 73.8%
Taylor expanded in j around 0 62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in i around inf 22.3%
Final simplification22.3%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 73.8%
Taylor expanded in b around inf 39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in a around inf 23.1%
Final simplification23.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024073
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))