
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* (- (* c (/ j x)) t) (* x a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = ((c * (j / x)) - t) * (x * a);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = ((c * (j / x)) - t) * (x * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = ((c * (j / x)) - t) * (x * a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(c * Float64(j / x)) - t) * Float64(x * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = ((c * (j / x)) - t) * (x * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(c * N[(j / x), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision] * N[(x * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot \frac{j}{x} - t\right) \cdot \left(x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 94.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in x around inf 8.9%
Taylor expanded in a around inf 49.4%
associate-*r*47.3%
*-commutative47.3%
associate-/l*51.7%
Simplified51.7%
Final simplification86.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -8e-23)
t_2
(if (<= y 9e-302)
t_1
(if (<= y 1.5e-196)
(* b (- (* t i) (* z c)))
(if (<= y 4.9e-87)
t_1
(if (<= y 1.5e-63)
(* (* x b) (- (* i (/ t x)) (* c (/ z x))))
(if (<= y 1.5e+20) 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 * ((c * j) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -8e-23) {
tmp = t_2;
} else if (y <= 9e-302) {
tmp = t_1;
} else if (y <= 1.5e-196) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 4.9e-87) {
tmp = t_1;
} else if (y <= 1.5e-63) {
tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
} else if (y <= 1.5e+20) {
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 * ((c * j) - (x * t))
t_2 = y * ((x * z) - (i * j))
if (y <= (-8d-23)) then
tmp = t_2
else if (y <= 9d-302) then
tmp = t_1
else if (y <= 1.5d-196) then
tmp = b * ((t * i) - (z * c))
else if (y <= 4.9d-87) then
tmp = t_1
else if (y <= 1.5d-63) then
tmp = (x * b) * ((i * (t / x)) - (c * (z / x)))
else if (y <= 1.5d+20) 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 * ((c * j) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -8e-23) {
tmp = t_2;
} else if (y <= 9e-302) {
tmp = t_1;
} else if (y <= 1.5e-196) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 4.9e-87) {
tmp = t_1;
} else if (y <= 1.5e-63) {
tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
} else if (y <= 1.5e+20) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -8e-23: tmp = t_2 elif y <= 9e-302: tmp = t_1 elif y <= 1.5e-196: tmp = b * ((t * i) - (z * c)) elif y <= 4.9e-87: tmp = t_1 elif y <= 1.5e-63: tmp = (x * b) * ((i * (t / x)) - (c * (z / x))) elif y <= 1.5e+20: 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(c * j) - Float64(x * t))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -8e-23) tmp = t_2; elseif (y <= 9e-302) tmp = t_1; elseif (y <= 1.5e-196) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= 4.9e-87) tmp = t_1; elseif (y <= 1.5e-63) tmp = Float64(Float64(x * b) * Float64(Float64(i * Float64(t / x)) - Float64(c * Float64(z / x)))); elseif (y <= 1.5e+20) 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 * ((c * j) - (x * t)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -8e-23) tmp = t_2; elseif (y <= 9e-302) tmp = t_1; elseif (y <= 1.5e-196) tmp = b * ((t * i) - (z * c)); elseif (y <= 4.9e-87) tmp = t_1; elseif (y <= 1.5e-63) tmp = (x * b) * ((i * (t / x)) - (c * (z / x))); elseif (y <= 1.5e+20) 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[(c * j), $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, -8e-23], t$95$2, If[LessEqual[y, 9e-302], t$95$1, If[LessEqual[y, 1.5e-196], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.9e-87], t$95$1, If[LessEqual[y, 1.5e-63], N[(N[(x * b), $MachinePrecision] * N[(N[(i * N[(t / x), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+20], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -8 \cdot 10^{-23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-196}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{-87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-63}:\\
\;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -7.99999999999999968e-23 or 1.5e20 < y Initial program 73.7%
Taylor expanded in y around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
if -7.99999999999999968e-23 < y < 9.00000000000000018e-302 or 1.5e-196 < y < 4.8999999999999997e-87 or 1.4999999999999999e-63 < y < 1.5e20Initial program 81.1%
Taylor expanded in a around inf 65.4%
+-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
*-commutative65.4%
Simplified65.4%
if 9.00000000000000018e-302 < y < 1.5e-196Initial program 76.4%
Taylor expanded in b around inf 83.4%
if 4.8999999999999997e-87 < y < 1.4999999999999999e-63Initial program 99.7%
Taylor expanded in x around inf 88.7%
Taylor expanded in b around inf 72.0%
associate-*r*72.0%
*-commutative72.0%
associate-/l*72.2%
associate-/l*72.2%
Simplified72.2%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -8e-24)
t_3
(if (<= y 6.4e-300)
t_2
(if (<= y 9.6e-197)
t_1
(if (<= y 4.4e-87)
t_2
(if (<= y 1.16e-63) t_1 (if (<= y 1.7e+20) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -8e-24) {
tmp = t_3;
} else if (y <= 6.4e-300) {
tmp = t_2;
} else if (y <= 9.6e-197) {
tmp = t_1;
} else if (y <= 4.4e-87) {
tmp = t_2;
} else if (y <= 1.16e-63) {
tmp = t_1;
} else if (y <= 1.7e+20) {
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 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
t_3 = y * ((x * z) - (i * j))
if (y <= (-8d-24)) then
tmp = t_3
else if (y <= 6.4d-300) then
tmp = t_2
else if (y <= 9.6d-197) then
tmp = t_1
else if (y <= 4.4d-87) then
tmp = t_2
else if (y <= 1.16d-63) then
tmp = t_1
else if (y <= 1.7d+20) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -8e-24) {
tmp = t_3;
} else if (y <= 6.4e-300) {
tmp = t_2;
} else if (y <= 9.6e-197) {
tmp = t_1;
} else if (y <= 4.4e-87) {
tmp = t_2;
} else if (y <= 1.16e-63) {
tmp = t_1;
} else if (y <= 1.7e+20) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -8e-24: tmp = t_3 elif y <= 6.4e-300: tmp = t_2 elif y <= 9.6e-197: tmp = t_1 elif y <= 4.4e-87: tmp = t_2 elif y <= 1.16e-63: tmp = t_1 elif y <= 1.7e+20: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -8e-24) tmp = t_3; elseif (y <= 6.4e-300) tmp = t_2; elseif (y <= 9.6e-197) tmp = t_1; elseif (y <= 4.4e-87) tmp = t_2; elseif (y <= 1.16e-63) tmp = t_1; elseif (y <= 1.7e+20) 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 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -8e-24) tmp = t_3; elseif (y <= 6.4e-300) tmp = t_2; elseif (y <= 9.6e-197) tmp = t_1; elseif (y <= 4.4e-87) tmp = t_2; elseif (y <= 1.16e-63) tmp = t_1; elseif (y <= 1.7e+20) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8e-24], t$95$3, If[LessEqual[y, 6.4e-300], t$95$2, If[LessEqual[y, 9.6e-197], t$95$1, If[LessEqual[y, 4.4e-87], t$95$2, If[LessEqual[y, 1.16e-63], t$95$1, If[LessEqual[y, 1.7e+20], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -8 \cdot 10^{-24}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{-300}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-197}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-87}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -7.99999999999999939e-24 or 1.7e20 < y Initial program 73.7%
Taylor expanded in y around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
if -7.99999999999999939e-24 < y < 6.40000000000000043e-300 or 9.6000000000000003e-197 < y < 4.39999999999999976e-87 or 1.16e-63 < y < 1.7e20Initial program 81.1%
Taylor expanded in a around inf 65.4%
+-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
*-commutative65.4%
Simplified65.4%
if 6.40000000000000043e-300 < y < 9.6000000000000003e-197 or 4.39999999999999976e-87 < y < 1.16e-63Initial program 83.4%
Taylor expanded in b around inf 80.0%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* x (* y z))))
(if (<= z -2.9e+94)
t_2
(if (<= z -2.3e-85)
t_1
(if (<= z 7.2e-239)
(* i (* t b))
(if (<= z 1.86e-118)
t_1
(if (<= z 6.6e-12) (* b (* t i)) (if (<= z 9.5e+56) 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 * (c * j);
double t_2 = x * (y * z);
double tmp;
if (z <= -2.9e+94) {
tmp = t_2;
} else if (z <= -2.3e-85) {
tmp = t_1;
} else if (z <= 7.2e-239) {
tmp = i * (t * b);
} else if (z <= 1.86e-118) {
tmp = t_1;
} else if (z <= 6.6e-12) {
tmp = b * (t * i);
} else if (z <= 9.5e+56) {
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 * (c * j)
t_2 = x * (y * z)
if (z <= (-2.9d+94)) then
tmp = t_2
else if (z <= (-2.3d-85)) then
tmp = t_1
else if (z <= 7.2d-239) then
tmp = i * (t * b)
else if (z <= 1.86d-118) then
tmp = t_1
else if (z <= 6.6d-12) then
tmp = b * (t * i)
else if (z <= 9.5d+56) 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 * (c * j);
double t_2 = x * (y * z);
double tmp;
if (z <= -2.9e+94) {
tmp = t_2;
} else if (z <= -2.3e-85) {
tmp = t_1;
} else if (z <= 7.2e-239) {
tmp = i * (t * b);
} else if (z <= 1.86e-118) {
tmp = t_1;
} else if (z <= 6.6e-12) {
tmp = b * (t * i);
} else if (z <= 9.5e+56) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = x * (y * z) tmp = 0 if z <= -2.9e+94: tmp = t_2 elif z <= -2.3e-85: tmp = t_1 elif z <= 7.2e-239: tmp = i * (t * b) elif z <= 1.86e-118: tmp = t_1 elif z <= 6.6e-12: tmp = b * (t * i) elif z <= 9.5e+56: 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(c * j)) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -2.9e+94) tmp = t_2; elseif (z <= -2.3e-85) tmp = t_1; elseif (z <= 7.2e-239) tmp = Float64(i * Float64(t * b)); elseif (z <= 1.86e-118) tmp = t_1; elseif (z <= 6.6e-12) tmp = Float64(b * Float64(t * i)); elseif (z <= 9.5e+56) 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 * (c * j); t_2 = x * (y * z); tmp = 0.0; if (z <= -2.9e+94) tmp = t_2; elseif (z <= -2.3e-85) tmp = t_1; elseif (z <= 7.2e-239) tmp = i * (t * b); elseif (z <= 1.86e-118) tmp = t_1; elseif (z <= 6.6e-12) tmp = b * (t * i); elseif (z <= 9.5e+56) 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[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.9e+94], t$95$2, If[LessEqual[z, -2.3e-85], t$95$1, If[LessEqual[z, 7.2e-239], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.86e-118], t$95$1, If[LessEqual[z, 6.6e-12], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+56], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -2.9 \cdot 10^{+94}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-239}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 1.86 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.8999999999999998e94 or 9.4999999999999997e56 < z Initial program 70.3%
Taylor expanded in y around inf 59.5%
+-commutative59.5%
mul-1-neg59.5%
unsub-neg59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in z around inf 49.0%
if -2.8999999999999998e94 < z < -2.3e-85 or 7.2000000000000002e-239 < z < 1.86e-118 or 6.6000000000000001e-12 < z < 9.4999999999999997e56Initial program 82.1%
Taylor expanded in a around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in j around inf 38.2%
*-commutative38.2%
Simplified38.2%
if -2.3e-85 < z < 7.2000000000000002e-239Initial program 85.3%
Taylor expanded in t around inf 54.3%
distribute-lft-out--54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around 0 35.4%
pow135.4%
*-commutative35.4%
associate-*l*38.9%
Applied egg-rr38.9%
unpow138.9%
Simplified38.9%
if 1.86e-118 < z < 6.6000000000000001e-12Initial program 71.3%
Taylor expanded in t around inf 64.8%
distribute-lft-out--64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in a around 0 45.3%
Final simplification42.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= z -6.3e+93)
(* y (* x z))
(if (<= z -1.1e-84)
t_1
(if (<= z 6.7e-236)
(* i (* t b))
(if (<= z 1.18e-116)
t_1
(if (<= z 1.5e-11)
(* b (* t i))
(if (<= z 7.8e+51) t_1 (* x (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (z <= -6.3e+93) {
tmp = y * (x * z);
} else if (z <= -1.1e-84) {
tmp = t_1;
} else if (z <= 6.7e-236) {
tmp = i * (t * b);
} else if (z <= 1.18e-116) {
tmp = t_1;
} else if (z <= 1.5e-11) {
tmp = b * (t * i);
} else if (z <= 7.8e+51) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (z <= (-6.3d+93)) then
tmp = y * (x * z)
else if (z <= (-1.1d-84)) then
tmp = t_1
else if (z <= 6.7d-236) then
tmp = i * (t * b)
else if (z <= 1.18d-116) then
tmp = t_1
else if (z <= 1.5d-11) then
tmp = b * (t * i)
else if (z <= 7.8d+51) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (z <= -6.3e+93) {
tmp = y * (x * z);
} else if (z <= -1.1e-84) {
tmp = t_1;
} else if (z <= 6.7e-236) {
tmp = i * (t * b);
} else if (z <= 1.18e-116) {
tmp = t_1;
} else if (z <= 1.5e-11) {
tmp = b * (t * i);
} else if (z <= 7.8e+51) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if z <= -6.3e+93: tmp = y * (x * z) elif z <= -1.1e-84: tmp = t_1 elif z <= 6.7e-236: tmp = i * (t * b) elif z <= 1.18e-116: tmp = t_1 elif z <= 1.5e-11: tmp = b * (t * i) elif z <= 7.8e+51: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (z <= -6.3e+93) tmp = Float64(y * Float64(x * z)); elseif (z <= -1.1e-84) tmp = t_1; elseif (z <= 6.7e-236) tmp = Float64(i * Float64(t * b)); elseif (z <= 1.18e-116) tmp = t_1; elseif (z <= 1.5e-11) tmp = Float64(b * Float64(t * i)); elseif (z <= 7.8e+51) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (z <= -6.3e+93) tmp = y * (x * z); elseif (z <= -1.1e-84) tmp = t_1; elseif (z <= 6.7e-236) tmp = i * (t * b); elseif (z <= 1.18e-116) tmp = t_1; elseif (z <= 1.5e-11) tmp = b * (t * i); elseif (z <= 7.8e+51) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.3e+93], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e-84], t$95$1, If[LessEqual[z, 6.7e-236], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.18e-116], t$95$1, If[LessEqual[z, 1.5e-11], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e+51], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;z \leq -6.3 \cdot 10^{+93}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.7 \cdot 10^{-236}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 1.18 \cdot 10^{-116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-11}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -6.29999999999999987e93Initial program 76.2%
Taylor expanded in y around inf 58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in z around inf 48.5%
if -6.29999999999999987e93 < z < -1.0999999999999999e-84 or 6.7000000000000003e-236 < z < 1.1800000000000001e-116 or 1.5e-11 < z < 7.79999999999999968e51Initial program 82.1%
Taylor expanded in a around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in j around inf 38.2%
*-commutative38.2%
Simplified38.2%
if -1.0999999999999999e-84 < z < 6.7000000000000003e-236Initial program 85.3%
Taylor expanded in t around inf 54.3%
distribute-lft-out--54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around 0 35.4%
pow135.4%
*-commutative35.4%
associate-*l*38.9%
Applied egg-rr38.9%
unpow138.9%
Simplified38.9%
if 1.1800000000000001e-116 < z < 1.5e-11Initial program 71.3%
Taylor expanded in t around inf 64.8%
distribute-lft-out--64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in a around 0 45.3%
if 7.79999999999999968e51 < z Initial program 64.1%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in z around inf 54.6%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= z -3.55e+93)
(* y (* x z))
(if (<= z -1.5e-87)
t_1
(if (<= z 1.05e-236)
(* i (* t b))
(if (<= z 2.2e-115)
(* a (* c j))
(if (<= z 1.8e-11)
(* b (* t i))
(if (<= z 9.2e+51) t_1 (* x (* y z))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (z <= -3.55e+93) {
tmp = y * (x * z);
} else if (z <= -1.5e-87) {
tmp = t_1;
} else if (z <= 1.05e-236) {
tmp = i * (t * b);
} else if (z <= 2.2e-115) {
tmp = a * (c * j);
} else if (z <= 1.8e-11) {
tmp = b * (t * i);
} else if (z <= 9.2e+51) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (a * c)
if (z <= (-3.55d+93)) then
tmp = y * (x * z)
else if (z <= (-1.5d-87)) then
tmp = t_1
else if (z <= 1.05d-236) then
tmp = i * (t * b)
else if (z <= 2.2d-115) then
tmp = a * (c * j)
else if (z <= 1.8d-11) then
tmp = b * (t * i)
else if (z <= 9.2d+51) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (a * c);
double tmp;
if (z <= -3.55e+93) {
tmp = y * (x * z);
} else if (z <= -1.5e-87) {
tmp = t_1;
} else if (z <= 1.05e-236) {
tmp = i * (t * b);
} else if (z <= 2.2e-115) {
tmp = a * (c * j);
} else if (z <= 1.8e-11) {
tmp = b * (t * i);
} else if (z <= 9.2e+51) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if z <= -3.55e+93: tmp = y * (x * z) elif z <= -1.5e-87: tmp = t_1 elif z <= 1.05e-236: tmp = i * (t * b) elif z <= 2.2e-115: tmp = a * (c * j) elif z <= 1.8e-11: tmp = b * (t * i) elif z <= 9.2e+51: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (z <= -3.55e+93) tmp = Float64(y * Float64(x * z)); elseif (z <= -1.5e-87) tmp = t_1; elseif (z <= 1.05e-236) tmp = Float64(i * Float64(t * b)); elseif (z <= 2.2e-115) tmp = Float64(a * Float64(c * j)); elseif (z <= 1.8e-11) tmp = Float64(b * Float64(t * i)); elseif (z <= 9.2e+51) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (z <= -3.55e+93) tmp = y * (x * z); elseif (z <= -1.5e-87) tmp = t_1; elseif (z <= 1.05e-236) tmp = i * (t * b); elseif (z <= 2.2e-115) tmp = a * (c * j); elseif (z <= 1.8e-11) tmp = b * (t * i); elseif (z <= 9.2e+51) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.55e+93], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.5e-87], t$95$1, If[LessEqual[z, 1.05e-236], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-115], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-11], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e+51], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;z \leq -3.55 \cdot 10^{+93}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-236}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-115}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-11}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -3.5500000000000002e93Initial program 76.2%
Taylor expanded in y around inf 58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in z around inf 48.5%
if -3.5500000000000002e93 < z < -1.50000000000000008e-87 or 1.79999999999999992e-11 < z < 9.2000000000000002e51Initial program 78.1%
Taylor expanded in a around inf 59.3%
+-commutative59.3%
mul-1-neg59.3%
unsub-neg59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in j around inf 43.4%
associate-*r*44.9%
Simplified44.9%
if -1.50000000000000008e-87 < z < 1.04999999999999989e-236Initial program 85.3%
Taylor expanded in t around inf 54.3%
distribute-lft-out--54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around 0 35.4%
pow135.4%
*-commutative35.4%
associate-*l*38.9%
Applied egg-rr38.9%
unpow138.9%
Simplified38.9%
if 1.04999999999999989e-236 < z < 2.1999999999999999e-115Initial program 90.0%
Taylor expanded in a around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in j around inf 27.9%
*-commutative27.9%
Simplified27.9%
if 2.1999999999999999e-115 < z < 1.79999999999999992e-11Initial program 71.3%
Taylor expanded in t around inf 64.8%
distribute-lft-out--64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in a around 0 45.3%
if 9.2000000000000002e51 < z Initial program 64.1%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in z around inf 54.6%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* x (* y z))))
(t_2 (* t (- (* b i) (* x a)))))
(if (<= t -1.25e+157)
t_2
(if (<= t -2.6e-291)
t_1
(if (<= t 1.7e-215)
(* z (- (* x y) (* b c)))
(if (<= t 2.8e+136) 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 * ((a * c) - (y * i))) + (x * (y * z));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.25e+157) {
tmp = t_2;
} else if (t <= -2.6e-291) {
tmp = t_1;
} else if (t <= 1.7e-215) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 2.8e+136) {
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 * ((a * c) - (y * i))) + (x * (y * z))
t_2 = t * ((b * i) - (x * a))
if (t <= (-1.25d+157)) then
tmp = t_2
else if (t <= (-2.6d-291)) then
tmp = t_1
else if (t <= 1.7d-215) then
tmp = z * ((x * y) - (b * c))
else if (t <= 2.8d+136) 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 * ((a * c) - (y * i))) + (x * (y * z));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.25e+157) {
tmp = t_2;
} else if (t <= -2.6e-291) {
tmp = t_1;
} else if (t <= 1.7e-215) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 2.8e+136) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (x * (y * z)) t_2 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.25e+157: tmp = t_2 elif t <= -2.6e-291: tmp = t_1 elif t <= 1.7e-215: tmp = z * ((x * y) - (b * c)) elif t <= 2.8e+136: 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(a * c) - Float64(y * i))) + Float64(x * Float64(y * z))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.25e+157) tmp = t_2; elseif (t <= -2.6e-291) tmp = t_1; elseif (t <= 1.7e-215) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 2.8e+136) 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 * ((a * c) - (y * i))) + (x * (y * z)); t_2 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.25e+157) tmp = t_2; elseif (t <= -2.6e-291) tmp = t_1; elseif (t <= 1.7e-215) tmp = z * ((x * y) - (b * c)); elseif (t <= 2.8e+136) 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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+157], t$95$2, If[LessEqual[t, -2.6e-291], t$95$1, If[LessEqual[t, 1.7e-215], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+136], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+157}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-215}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+136}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.24999999999999994e157 or 2.8000000000000002e136 < t Initial program 59.8%
Taylor expanded in t around inf 74.1%
distribute-lft-out--74.1%
*-commutative74.1%
Simplified74.1%
if -1.24999999999999994e157 < t < -2.5999999999999999e-291 or 1.70000000000000001e-215 < t < 2.8000000000000002e136Initial program 84.8%
Taylor expanded in b around 0 72.4%
Taylor expanded in t around 0 65.5%
if -2.5999999999999999e-291 < t < 1.70000000000000001e-215Initial program 77.5%
Taylor expanded in z around inf 79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -1.05e-41)
(+ t_2 t_1)
(if (<= x 1.1e-108)
(+ t_1 (* b (- (* t i) (* z c))))
(+ t_1 (+ t_2 (* i (* t b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.05e-41) {
tmp = t_2 + t_1;
} else if (x <= 1.1e-108) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (t_2 + (i * (t * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-1.05d-41)) then
tmp = t_2 + t_1
else if (x <= 1.1d-108) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else
tmp = t_1 + (t_2 + (i * (t * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.05e-41) {
tmp = t_2 + t_1;
} else if (x <= 1.1e-108) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (t_2 + (i * (t * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.05e-41: tmp = t_2 + t_1 elif x <= 1.1e-108: tmp = t_1 + (b * ((t * i) - (z * c))) else: tmp = t_1 + (t_2 + (i * (t * b))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.05e-41) tmp = Float64(t_2 + t_1); elseif (x <= 1.1e-108) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 + Float64(t_2 + Float64(i * Float64(t * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.05e-41) tmp = t_2 + t_1; elseif (x <= 1.1e-108) tmp = t_1 + (b * ((t * i) - (z * c))); else tmp = t_1 + (t_2 + (i * (t * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.05e-41], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[x, 1.1e-108], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(t$95$2 + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.05 \cdot 10^{-41}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-108}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + \left(t\_2 + i \cdot \left(t \cdot b\right)\right)\\
\end{array}
\end{array}
if x < -1.05000000000000006e-41Initial program 79.9%
Taylor expanded in b around 0 73.8%
if -1.05000000000000006e-41 < x < 1.1000000000000001e-108Initial program 77.4%
Taylor expanded in x around 0 81.2%
if 1.1000000000000001e-108 < x Initial program 75.6%
Taylor expanded in c around 0 78.3%
mul-1-neg78.3%
associate-*r*78.1%
distribute-rgt-neg-in78.1%
*-commutative78.1%
associate-*l*80.6%
Simplified80.6%
Final simplification78.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* i (* y (- j)))))
(if (<= y -2.6e-23)
t_2
(if (<= y 2.2e-296)
t_1
(if (<= y 9.6e-197)
(* i (* t b))
(if (<= y 1.85e+20) t_1 (if (<= y 2.15e+229) (* y (* x z)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * (y * -j);
double tmp;
if (y <= -2.6e-23) {
tmp = t_2;
} else if (y <= 2.2e-296) {
tmp = t_1;
} else if (y <= 9.6e-197) {
tmp = i * (t * b);
} else if (y <= 1.85e+20) {
tmp = t_1;
} else if (y <= 2.15e+229) {
tmp = y * (x * z);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = i * (y * -j)
if (y <= (-2.6d-23)) then
tmp = t_2
else if (y <= 2.2d-296) then
tmp = t_1
else if (y <= 9.6d-197) then
tmp = i * (t * b)
else if (y <= 1.85d+20) then
tmp = t_1
else if (y <= 2.15d+229) then
tmp = y * (x * z)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * (y * -j);
double tmp;
if (y <= -2.6e-23) {
tmp = t_2;
} else if (y <= 2.2e-296) {
tmp = t_1;
} else if (y <= 9.6e-197) {
tmp = i * (t * b);
} else if (y <= 1.85e+20) {
tmp = t_1;
} else if (y <= 2.15e+229) {
tmp = y * (x * z);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = i * (y * -j) tmp = 0 if y <= -2.6e-23: tmp = t_2 elif y <= 2.2e-296: tmp = t_1 elif y <= 9.6e-197: tmp = i * (t * b) elif y <= 1.85e+20: tmp = t_1 elif y <= 2.15e+229: tmp = y * (x * z) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -2.6e-23) tmp = t_2; elseif (y <= 2.2e-296) tmp = t_1; elseif (y <= 9.6e-197) tmp = Float64(i * Float64(t * b)); elseif (y <= 1.85e+20) tmp = t_1; elseif (y <= 2.15e+229) tmp = Float64(y * Float64(x * z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = i * (y * -j); tmp = 0.0; if (y <= -2.6e-23) tmp = t_2; elseif (y <= 2.2e-296) tmp = t_1; elseif (y <= 9.6e-197) tmp = i * (t * b); elseif (y <= 1.85e+20) tmp = t_1; elseif (y <= 2.15e+229) tmp = y * (x * z); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e-23], t$95$2, If[LessEqual[y, 2.2e-296], t$95$1, If[LessEqual[y, 9.6e-197], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.85e+20], t$95$1, If[LessEqual[y, 2.15e+229], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{-23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-296}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-197}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{+229}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.6e-23 or 2.14999999999999996e229 < y Initial program 74.5%
Taylor expanded in y around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in z around 0 44.2%
associate-*r*44.2%
neg-mul-144.2%
Simplified44.2%
if -2.6e-23 < y < 2.20000000000000012e-296 or 9.6000000000000003e-197 < y < 1.85e20Initial program 82.1%
Taylor expanded in a around inf 61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
if 2.20000000000000012e-296 < y < 9.6000000000000003e-197Initial program 79.2%
Taylor expanded in t around inf 44.3%
distribute-lft-out--44.3%
*-commutative44.3%
Simplified44.3%
Taylor expanded in a around 0 45.9%
pow145.9%
*-commutative45.9%
associate-*l*51.0%
Applied egg-rr51.0%
unpow151.0%
Simplified51.0%
if 1.85e20 < y < 2.14999999999999996e229Initial program 71.9%
Taylor expanded in y around inf 71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in z around inf 48.4%
Final simplification53.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.4e+118)
t_1
(if (<= b -3.6e+68)
(* a (- (* c j) (* x t)))
(if (or (<= b -1.45e-8) (not (<= b 5e+99)))
t_1
(* j (- (* a c) (* y i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.4e+118) {
tmp = t_1;
} else if (b <= -3.6e+68) {
tmp = a * ((c * j) - (x * t));
} else if ((b <= -1.45e-8) || !(b <= 5e+99)) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.4d+118)) then
tmp = t_1
else if (b <= (-3.6d+68)) then
tmp = a * ((c * j) - (x * t))
else if ((b <= (-1.45d-8)) .or. (.not. (b <= 5d+99))) then
tmp = t_1
else
tmp = j * ((a * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.4e+118) {
tmp = t_1;
} else if (b <= -3.6e+68) {
tmp = a * ((c * j) - (x * t));
} else if ((b <= -1.45e-8) || !(b <= 5e+99)) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.4e+118: tmp = t_1 elif b <= -3.6e+68: tmp = a * ((c * j) - (x * t)) elif (b <= -1.45e-8) or not (b <= 5e+99): tmp = t_1 else: tmp = j * ((a * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.4e+118) tmp = t_1; elseif (b <= -3.6e+68) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif ((b <= -1.45e-8) || !(b <= 5e+99)) tmp = t_1; else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.4e+118) tmp = t_1; elseif (b <= -3.6e+68) tmp = a * ((c * j) - (x * t)); elseif ((b <= -1.45e-8) || ~((b <= 5e+99))) tmp = t_1; else tmp = j * ((a * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e+118], t$95$1, If[LessEqual[b, -3.6e+68], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -1.45e-8], N[Not[LessEqual[b, 5e+99]], $MachinePrecision]], t$95$1, N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{+68}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-8} \lor \neg \left(b \leq 5 \cdot 10^{+99}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -3.39999999999999986e118 or -3.5999999999999999e68 < b < -1.4500000000000001e-8 or 5.00000000000000008e99 < b Initial program 75.9%
Taylor expanded in b around inf 63.9%
if -3.39999999999999986e118 < b < -3.5999999999999999e68Initial program 64.2%
Taylor expanded in a around inf 72.3%
+-commutative72.3%
mul-1-neg72.3%
unsub-neg72.3%
*-commutative72.3%
Simplified72.3%
if -1.4500000000000001e-8 < b < 5.00000000000000008e99Initial program 80.2%
Taylor expanded in x around inf 74.4%
Taylor expanded in j around -inf 51.4%
Final simplification57.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -5.6e-39)
t_2
(if (<= a -1.55e-180)
t_1
(if (<= a -6.8e-264) (* x (* y z)) (if (<= a 2.1e+40) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.6e-39) {
tmp = t_2;
} else if (a <= -1.55e-180) {
tmp = t_1;
} else if (a <= -6.8e-264) {
tmp = x * (y * z);
} else if (a <= 2.1e+40) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-5.6d-39)) then
tmp = t_2
else if (a <= (-1.55d-180)) then
tmp = t_1
else if (a <= (-6.8d-264)) then
tmp = x * (y * z)
else if (a <= 2.1d+40) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.6e-39) {
tmp = t_2;
} else if (a <= -1.55e-180) {
tmp = t_1;
} else if (a <= -6.8e-264) {
tmp = x * (y * z);
} else if (a <= 2.1e+40) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -5.6e-39: tmp = t_2 elif a <= -1.55e-180: tmp = t_1 elif a <= -6.8e-264: tmp = x * (y * z) elif a <= 2.1e+40: 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(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -5.6e-39) tmp = t_2; elseif (a <= -1.55e-180) tmp = t_1; elseif (a <= -6.8e-264) tmp = Float64(x * Float64(y * z)); elseif (a <= 2.1e+40) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -5.6e-39) tmp = t_2; elseif (a <= -1.55e-180) tmp = t_1; elseif (a <= -6.8e-264) tmp = x * (y * z); elseif (a <= 2.1e+40) 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.6e-39], t$95$2, If[LessEqual[a, -1.55e-180], t$95$1, If[LessEqual[a, -6.8e-264], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e+40], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{-39}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{-180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-264}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -5.6000000000000003e-39 or 2.1000000000000001e40 < a Initial program 70.9%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
Simplified62.9%
if -5.6000000000000003e-39 < a < -1.5499999999999999e-180 or -6.7999999999999997e-264 < a < 2.1000000000000001e40Initial program 83.2%
Taylor expanded in b around inf 47.2%
if -1.5499999999999999e-180 < a < -6.7999999999999997e-264Initial program 95.9%
Taylor expanded in y around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in z around inf 52.1%
Final simplification56.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (or (<= x -1.9e-53) (not (<= x 2e+80)))
(+ (* x (- (* y z) (* t a))) t_1)
(+ t_1 (* b (- (* t i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if ((x <= -1.9e-53) || !(x <= 2e+80)) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if ((x <= (-1.9d-53)) .or. (.not. (x <= 2d+80))) then
tmp = (x * ((y * z) - (t * a))) + t_1
else
tmp = t_1 + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if ((x <= -1.9e-53) || !(x <= 2e+80)) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if (x <= -1.9e-53) or not (x <= 2e+80): tmp = (x * ((y * z) - (t * a))) + t_1 else: tmp = t_1 + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if ((x <= -1.9e-53) || !(x <= 2e+80)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); else tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if ((x <= -1.9e-53) || ~((x <= 2e+80))) tmp = (x * ((y * z) - (t * a))) + t_1; else tmp = t_1 + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -1.9e-53], N[Not[LessEqual[x, 2e+80]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{-53} \lor \neg \left(x \leq 2 \cdot 10^{+80}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -1.8999999999999999e-53 or 2e80 < x Initial program 80.3%
Taylor expanded in b around 0 77.0%
if -1.8999999999999999e-53 < x < 2e80Initial program 74.5%
Taylor expanded in x around 0 76.5%
Final simplification76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -5e+51)
(* (* x b) (- (* i (/ t x)) (* c (/ z x))))
(if (<= b 2.5e+152)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(* b (- (* t i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5e+51) {
tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
} else if (b <= 2.5e+152) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-5d+51)) then
tmp = (x * b) * ((i * (t / x)) - (c * (z / x)))
else if (b <= 2.5d+152) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5e+51) {
tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
} else if (b <= 2.5e+152) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5e+51: tmp = (x * b) * ((i * (t / x)) - (c * (z / x))) elif b <= 2.5e+152: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5e+51) tmp = Float64(Float64(x * b) * Float64(Float64(i * Float64(t / x)) - Float64(c * Float64(z / x)))); elseif (b <= 2.5e+152) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -5e+51) tmp = (x * b) * ((i * (t / x)) - (c * (z / x))); elseif (b <= 2.5e+152) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5e+51], N[(N[(x * b), $MachinePrecision] * N[(N[(i * N[(t / x), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e+152], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+51}:\\
\;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+152}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -5e51Initial program 69.9%
Taylor expanded in x around inf 62.2%
Taylor expanded in b around inf 59.3%
associate-*r*64.9%
*-commutative64.9%
associate-/l*62.9%
associate-/l*62.8%
Simplified62.8%
if -5e51 < b < 2.5e152Initial program 80.0%
Taylor expanded in b around 0 73.7%
if 2.5e152 < b Initial program 78.1%
Taylor expanded in b around inf 72.2%
Final simplification71.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))))
(if (<= a -1.55e+141)
t_1
(if (<= a -3e-284)
(* y (* x z))
(if (<= a 6.5e-165)
(* (* i j) (- y))
(if (<= a 1.35e+45) (* i (* t b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double tmp;
if (a <= -1.55e+141) {
tmp = t_1;
} else if (a <= -3e-284) {
tmp = y * (x * z);
} else if (a <= 6.5e-165) {
tmp = (i * j) * -y;
} else if (a <= 1.35e+45) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (t * -a)
if (a <= (-1.55d+141)) then
tmp = t_1
else if (a <= (-3d-284)) then
tmp = y * (x * z)
else if (a <= 6.5d-165) then
tmp = (i * j) * -y
else if (a <= 1.35d+45) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double tmp;
if (a <= -1.55e+141) {
tmp = t_1;
} else if (a <= -3e-284) {
tmp = y * (x * z);
} else if (a <= 6.5e-165) {
tmp = (i * j) * -y;
} else if (a <= 1.35e+45) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) tmp = 0 if a <= -1.55e+141: tmp = t_1 elif a <= -3e-284: tmp = y * (x * z) elif a <= 6.5e-165: tmp = (i * j) * -y elif a <= 1.35e+45: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) tmp = 0.0 if (a <= -1.55e+141) tmp = t_1; elseif (a <= -3e-284) tmp = Float64(y * Float64(x * z)); elseif (a <= 6.5e-165) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (a <= 1.35e+45) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (t * -a); tmp = 0.0; if (a <= -1.55e+141) tmp = t_1; elseif (a <= -3e-284) tmp = y * (x * z); elseif (a <= 6.5e-165) tmp = (i * j) * -y; elseif (a <= 1.35e+45) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.55e+141], t$95$1, If[LessEqual[a, -3e-284], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-165], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[a, 1.35e+45], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-284}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-165}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+45}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.55000000000000002e141 or 1.34999999999999992e45 < a Initial program 70.3%
Taylor expanded in x around inf 59.2%
Taylor expanded in y around 0 53.0%
neg-mul-153.0%
distribute-lft-neg-in53.0%
*-commutative53.0%
Simplified53.0%
if -1.55000000000000002e141 < a < -3e-284Initial program 81.0%
Taylor expanded in y around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in z around inf 33.7%
if -3e-284 < a < 6.5000000000000004e-165Initial program 82.8%
Taylor expanded in y around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around 0 38.9%
mul-1-neg38.9%
distribute-rgt-neg-in38.9%
Simplified38.9%
if 6.5000000000000004e-165 < a < 1.34999999999999992e45Initial program 84.6%
Taylor expanded in t around inf 39.3%
distribute-lft-out--39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in a around 0 37.4%
pow137.4%
*-commutative37.4%
associate-*l*37.5%
Applied egg-rr37.5%
unpow137.5%
Simplified37.5%
Final simplification41.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))))
(if (<= a -7e+141)
t_1
(if (<= a -9.5e-285)
(* y (* x z))
(if (<= a 1.3e-166)
(* i (* y (- j)))
(if (<= a 6e+44) (* i (* t b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double tmp;
if (a <= -7e+141) {
tmp = t_1;
} else if (a <= -9.5e-285) {
tmp = y * (x * z);
} else if (a <= 1.3e-166) {
tmp = i * (y * -j);
} else if (a <= 6e+44) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (t * -a)
if (a <= (-7d+141)) then
tmp = t_1
else if (a <= (-9.5d-285)) then
tmp = y * (x * z)
else if (a <= 1.3d-166) then
tmp = i * (y * -j)
else if (a <= 6d+44) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double tmp;
if (a <= -7e+141) {
tmp = t_1;
} else if (a <= -9.5e-285) {
tmp = y * (x * z);
} else if (a <= 1.3e-166) {
tmp = i * (y * -j);
} else if (a <= 6e+44) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) tmp = 0 if a <= -7e+141: tmp = t_1 elif a <= -9.5e-285: tmp = y * (x * z) elif a <= 1.3e-166: tmp = i * (y * -j) elif a <= 6e+44: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) tmp = 0.0 if (a <= -7e+141) tmp = t_1; elseif (a <= -9.5e-285) tmp = Float64(y * Float64(x * z)); elseif (a <= 1.3e-166) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 6e+44) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (t * -a); tmp = 0.0; if (a <= -7e+141) tmp = t_1; elseif (a <= -9.5e-285) tmp = y * (x * z); elseif (a <= 1.3e-166) tmp = i * (y * -j); elseif (a <= 6e+44) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7e+141], t$95$1, If[LessEqual[a, -9.5e-285], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e-166], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e+44], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -7 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-285}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-166}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+44}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.9999999999999999e141 or 5.99999999999999974e44 < a Initial program 70.3%
Taylor expanded in x around inf 59.2%
Taylor expanded in y around 0 53.0%
neg-mul-153.0%
distribute-lft-neg-in53.0%
*-commutative53.0%
Simplified53.0%
if -6.9999999999999999e141 < a < -9.4999999999999997e-285Initial program 81.0%
Taylor expanded in y around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in z around inf 33.7%
if -9.4999999999999997e-285 < a < 1.29999999999999995e-166Initial program 82.8%
Taylor expanded in y around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around 0 41.2%
associate-*r*41.2%
neg-mul-141.2%
Simplified41.2%
if 1.29999999999999995e-166 < a < 5.99999999999999974e44Initial program 84.6%
Taylor expanded in t around inf 39.3%
distribute-lft-out--39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in a around 0 37.4%
pow137.4%
*-commutative37.4%
associate-*l*37.5%
Applied egg-rr37.5%
unpow137.5%
Simplified37.5%
Final simplification42.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.7e+76)
(* t (* a (- x)))
(if (<= a -4e-282)
(* y (* x z))
(if (<= a 4.3e-164)
(* i (* y (- j)))
(if (<= a 2.5e+45) (* i (* t b)) (* x (* t (- a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.7e+76) {
tmp = t * (a * -x);
} else if (a <= -4e-282) {
tmp = y * (x * z);
} else if (a <= 4.3e-164) {
tmp = i * (y * -j);
} else if (a <= 2.5e+45) {
tmp = i * (t * b);
} else {
tmp = 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) :: tmp
if (a <= (-1.7d+76)) then
tmp = t * (a * -x)
else if (a <= (-4d-282)) then
tmp = y * (x * z)
else if (a <= 4.3d-164) then
tmp = i * (y * -j)
else if (a <= 2.5d+45) then
tmp = i * (t * b)
else
tmp = 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 tmp;
if (a <= -1.7e+76) {
tmp = t * (a * -x);
} else if (a <= -4e-282) {
tmp = y * (x * z);
} else if (a <= 4.3e-164) {
tmp = i * (y * -j);
} else if (a <= 2.5e+45) {
tmp = i * (t * b);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.7e+76: tmp = t * (a * -x) elif a <= -4e-282: tmp = y * (x * z) elif a <= 4.3e-164: tmp = i * (y * -j) elif a <= 2.5e+45: tmp = i * (t * b) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.7e+76) tmp = Float64(t * Float64(a * Float64(-x))); elseif (a <= -4e-282) tmp = Float64(y * Float64(x * z)); elseif (a <= 4.3e-164) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 2.5e+45) tmp = Float64(i * Float64(t * b)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.7e+76) tmp = t * (a * -x); elseif (a <= -4e-282) tmp = y * (x * z); elseif (a <= 4.3e-164) tmp = i * (y * -j); elseif (a <= 2.5e+45) tmp = i * (t * b); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.7e+76], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4e-282], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e-164], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.5e+45], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{+76}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-282}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-164}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+45}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if a < -1.6999999999999999e76Initial program 59.2%
Taylor expanded in t around inf 49.3%
distribute-lft-out--49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in a around inf 47.6%
if -1.6999999999999999e76 < a < -4.0000000000000001e-282Initial program 85.5%
Taylor expanded in y around inf 48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
*-commutative48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around inf 35.6%
if -4.0000000000000001e-282 < a < 4.2999999999999998e-164Initial program 82.8%
Taylor expanded in y around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around 0 41.2%
associate-*r*41.2%
neg-mul-141.2%
Simplified41.2%
if 4.2999999999999998e-164 < a < 2.5e45Initial program 84.6%
Taylor expanded in t around inf 39.3%
distribute-lft-out--39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in a around 0 37.4%
pow137.4%
*-commutative37.4%
associate-*l*37.5%
Applied egg-rr37.5%
unpow137.5%
Simplified37.5%
if 2.5e45 < a Initial program 78.1%
Taylor expanded in x around inf 58.8%
Taylor expanded in y around 0 49.8%
neg-mul-149.8%
distribute-lft-neg-in49.8%
*-commutative49.8%
Simplified49.8%
Final simplification42.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -3.7e+112)
t_1
(if (<= x 3.8e-223)
(* c (- (* a j) (* z b)))
(if (<= x 650000.0) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -3.7e+112) {
tmp = t_1;
} else if (x <= 3.8e-223) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 650000.0) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-3.7d+112)) then
tmp = t_1
else if (x <= 3.8d-223) then
tmp = c * ((a * j) - (z * b))
else if (x <= 650000.0d0) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -3.7e+112) {
tmp = t_1;
} else if (x <= 3.8e-223) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 650000.0) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -3.7e+112: tmp = t_1 elif x <= 3.8e-223: tmp = c * ((a * j) - (z * b)) elif x <= 650000.0: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -3.7e+112) tmp = t_1; elseif (x <= 3.8e-223) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (x <= 650000.0) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -3.7e+112) tmp = t_1; elseif (x <= 3.8e-223) tmp = c * ((a * j) - (z * b)); elseif (x <= 650000.0) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+112], t$95$1, If[LessEqual[x, 3.8e-223], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 650000.0], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-223}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 650000:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.70000000000000004e112 or 6.5e5 < x Initial program 77.8%
Taylor expanded in x around inf 68.3%
if -3.70000000000000004e112 < x < 3.80000000000000012e-223Initial program 77.9%
Taylor expanded in c around inf 53.4%
*-commutative53.4%
Simplified53.4%
if 3.80000000000000012e-223 < x < 6.5e5Initial program 77.1%
Taylor expanded in b around inf 56.4%
Final simplification60.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (* t a)))))
(if (<= a -1.8e+141)
t_1
(if (<= a 6.8e-169) (* y (* x z)) (if (<= a 7e+44) (* i (* t b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -(x * (t * a));
double tmp;
if (a <= -1.8e+141) {
tmp = t_1;
} else if (a <= 6.8e-169) {
tmp = y * (x * z);
} else if (a <= 7e+44) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = -(x * (t * a))
if (a <= (-1.8d+141)) then
tmp = t_1
else if (a <= 6.8d-169) then
tmp = y * (x * z)
else if (a <= 7d+44) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -(x * (t * a));
double tmp;
if (a <= -1.8e+141) {
tmp = t_1;
} else if (a <= 6.8e-169) {
tmp = y * (x * z);
} else if (a <= 7e+44) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(x * (t * a)) tmp = 0 if a <= -1.8e+141: tmp = t_1 elif a <= 6.8e-169: tmp = y * (x * z) elif a <= 7e+44: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(x * Float64(t * a))) tmp = 0.0 if (a <= -1.8e+141) tmp = t_1; elseif (a <= 6.8e-169) tmp = Float64(y * Float64(x * z)); elseif (a <= 7e+44) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -(x * (t * a)); tmp = 0.0; if (a <= -1.8e+141) tmp = t_1; elseif (a <= 6.8e-169) tmp = y * (x * z); elseif (a <= 7e+44) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = (-N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[a, -1.8e+141], t$95$1, If[LessEqual[a, 6.8e-169], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+44], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -x \cdot \left(t \cdot a\right)\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-169}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+44}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.8000000000000001e141 or 6.9999999999999998e44 < a Initial program 70.3%
Taylor expanded in x around inf 59.2%
Taylor expanded in y around 0 53.0%
neg-mul-153.0%
distribute-lft-neg-in53.0%
*-commutative53.0%
Simplified53.0%
if -1.8000000000000001e141 < a < 6.8e-169Initial program 81.3%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in z around inf 31.4%
if 6.8e-169 < a < 6.9999999999999998e44Initial program 85.1%
Taylor expanded in t around inf 38.2%
distribute-lft-out--38.2%
*-commutative38.2%
Simplified38.2%
Taylor expanded in a around 0 36.4%
pow136.4%
*-commutative36.4%
associate-*l*36.5%
Applied egg-rr36.5%
unpow136.5%
Simplified36.5%
Final simplification40.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -9.5e+43) (not (<= j 2.7e-76))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -9.5e+43) || !(j <= 2.7e-76)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-9.5d+43)) .or. (.not. (j <= 2.7d-76))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -9.5e+43) || !(j <= 2.7e-76)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -9.5e+43) or not (j <= 2.7e-76): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -9.5e+43) || !(j <= 2.7e-76)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -9.5e+43) || ~((j <= 2.7e-76))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -9.5e+43], N[Not[LessEqual[j, 2.7e-76]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+43} \lor \neg \left(j \leq 2.7 \cdot 10^{-76}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -9.5000000000000004e43 or 2.7e-76 < j Initial program 79.0%
Taylor expanded in a around inf 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in j around inf 37.0%
*-commutative37.0%
Simplified37.0%
if -9.5000000000000004e43 < j < 2.7e-76Initial program 76.3%
Taylor expanded in t around inf 42.8%
distribute-lft-out--42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in a around 0 25.9%
Final simplification31.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -6.8e+43) (not (<= j 5e-63))) (* a (* c j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.8e+43) || !(j <= 5e-63)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-6.8d+43)) .or. (.not. (j <= 5d-63))) then
tmp = a * (c * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.8e+43) || !(j <= 5e-63)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -6.8e+43) or not (j <= 5e-63): tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -6.8e+43) || !(j <= 5e-63)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -6.8e+43) || ~((j <= 5e-63))) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.8e+43], N[Not[LessEqual[j, 5e-63]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.8 \cdot 10^{+43} \lor \neg \left(j \leq 5 \cdot 10^{-63}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if j < -6.80000000000000024e43 or 5.0000000000000002e-63 < j Initial program 79.8%
Taylor expanded in a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in j around inf 37.3%
*-commutative37.3%
Simplified37.3%
if -6.80000000000000024e43 < j < 5.0000000000000002e-63Initial program 75.5%
Taylor expanded in t around inf 43.0%
distribute-lft-out--43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in a around 0 25.2%
pow125.2%
*-commutative25.2%
associate-*l*29.0%
Applied egg-rr29.0%
unpow129.0%
Simplified29.0%
Final simplification33.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 77.8%
Taylor expanded in a around inf 41.1%
+-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in j around inf 22.2%
*-commutative22.2%
Simplified22.2%
Final simplification22.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024089
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))