
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (* i (- (* x (/ z i)) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * (i * ((x * (z / i)) - j));
}
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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * (i * ((x * (z / i)) - j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * (i * ((x * (z / i)) - j)) 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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(i * Float64(Float64(x * Float64(z / i)) - j))); 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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * (i * ((x * (z / i)) - j)); 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(i * N[(N[(x * N[(z / i), $MachinePrecision]), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(x \cdot \frac{z}{i} - j\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 49.8%
Taylor expanded in i around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
associate-/l*63.5%
Simplified63.5%
Final simplification85.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t))))
(t_2 (* z (- (* x (- y (* a (/ t z)))) (* b c))))
(t_3 (- (* t c) (* y i))))
(if (<= j -1.48e+149)
(* j t_3)
(if (<= j -3.2e-74)
t_2
(if (<= j -5e-155)
t_1
(if (<= j 2.7e-305)
t_2
(if (<= j 1.9e-279)
t_1
(if (<= j 8e+97) t_2 (* (* z j) (/ t_3 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 * ((b * i) - (x * t));
double t_2 = z * ((x * (y - (a * (t / z)))) - (b * c));
double t_3 = (t * c) - (y * i);
double tmp;
if (j <= -1.48e+149) {
tmp = j * t_3;
} else if (j <= -3.2e-74) {
tmp = t_2;
} else if (j <= -5e-155) {
tmp = t_1;
} else if (j <= 2.7e-305) {
tmp = t_2;
} else if (j <= 1.9e-279) {
tmp = t_1;
} else if (j <= 8e+97) {
tmp = t_2;
} else {
tmp = (z * j) * (t_3 / 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = z * ((x * (y - (a * (t / z)))) - (b * c))
t_3 = (t * c) - (y * i)
if (j <= (-1.48d+149)) then
tmp = j * t_3
else if (j <= (-3.2d-74)) then
tmp = t_2
else if (j <= (-5d-155)) then
tmp = t_1
else if (j <= 2.7d-305) then
tmp = t_2
else if (j <= 1.9d-279) then
tmp = t_1
else if (j <= 8d+97) then
tmp = t_2
else
tmp = (z * j) * (t_3 / 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 * ((b * i) - (x * t));
double t_2 = z * ((x * (y - (a * (t / z)))) - (b * c));
double t_3 = (t * c) - (y * i);
double tmp;
if (j <= -1.48e+149) {
tmp = j * t_3;
} else if (j <= -3.2e-74) {
tmp = t_2;
} else if (j <= -5e-155) {
tmp = t_1;
} else if (j <= 2.7e-305) {
tmp = t_2;
} else if (j <= 1.9e-279) {
tmp = t_1;
} else if (j <= 8e+97) {
tmp = t_2;
} else {
tmp = (z * j) * (t_3 / z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = z * ((x * (y - (a * (t / z)))) - (b * c)) t_3 = (t * c) - (y * i) tmp = 0 if j <= -1.48e+149: tmp = j * t_3 elif j <= -3.2e-74: tmp = t_2 elif j <= -5e-155: tmp = t_1 elif j <= 2.7e-305: tmp = t_2 elif j <= 1.9e-279: tmp = t_1 elif j <= 8e+97: tmp = t_2 else: tmp = (z * j) * (t_3 / z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * Float64(y - Float64(a * Float64(t / z)))) - Float64(b * c))) t_3 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (j <= -1.48e+149) tmp = Float64(j * t_3); elseif (j <= -3.2e-74) tmp = t_2; elseif (j <= -5e-155) tmp = t_1; elseif (j <= 2.7e-305) tmp = t_2; elseif (j <= 1.9e-279) tmp = t_1; elseif (j <= 8e+97) tmp = t_2; else tmp = Float64(Float64(z * j) * Float64(t_3 / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = z * ((x * (y - (a * (t / z)))) - (b * c)); t_3 = (t * c) - (y * i); tmp = 0.0; if (j <= -1.48e+149) tmp = j * t_3; elseif (j <= -3.2e-74) tmp = t_2; elseif (j <= -5e-155) tmp = t_1; elseif (j <= 2.7e-305) tmp = t_2; elseif (j <= 1.9e-279) tmp = t_1; elseif (j <= 8e+97) tmp = t_2; else tmp = (z * j) * (t_3 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.48e+149], N[(j * t$95$3), $MachinePrecision], If[LessEqual[j, -3.2e-74], t$95$2, If[LessEqual[j, -5e-155], t$95$1, If[LessEqual[j, 2.7e-305], t$95$2, If[LessEqual[j, 1.9e-279], t$95$1, If[LessEqual[j, 8e+97], t$95$2, N[(N[(z * j), $MachinePrecision] * N[(t$95$3 / z), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot \left(y - a \cdot \frac{t}{z}\right) - b \cdot c\right)\\
t_3 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -1.48 \cdot 10^{+149}:\\
\;\;\;\;j \cdot t\_3\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{-74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.7 \cdot 10^{-305}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.9 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 8 \cdot 10^{+97}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot j\right) \cdot \frac{t\_3}{z}\\
\end{array}
\end{array}
if j < -1.4800000000000001e149Initial program 67.4%
Taylor expanded in j around inf 80.1%
if -1.4800000000000001e149 < j < -3.1999999999999999e-74 or -4.9999999999999999e-155 < j < 2.6999999999999999e-305 or 1.90000000000000016e-279 < j < 8.0000000000000006e97Initial program 74.0%
Taylor expanded in z around inf 64.7%
Simplified67.4%
Taylor expanded in x around inf 64.6%
mul-1-neg64.6%
unsub-neg64.6%
associate-/l*63.2%
Simplified63.2%
if -3.1999999999999999e-74 < j < -4.9999999999999999e-155 or 2.6999999999999999e-305 < j < 1.90000000000000016e-279Initial program 86.2%
Taylor expanded in z around inf 68.7%
Simplified73.2%
Taylor expanded in a around -inf 83.6%
+-commutative83.6%
mul-1-neg83.6%
unsub-neg83.6%
Simplified83.6%
if 8.0000000000000006e97 < j Initial program 71.9%
Taylor expanded in z around inf 62.4%
Simplified68.4%
Taylor expanded in j around inf 76.2%
div-sub78.2%
associate-*r*79.9%
*-commutative79.9%
Simplified79.9%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -7.5e+129)
t_1
(if (<= a -3.8e+90)
(* y (* x z))
(if (<= a -2600000000000.0)
t_1
(if (<= a -3.2e-216)
(* c (* t j))
(if (<= a -2.35e-303)
(* i (- (* y j)))
(if (<= a 1.35e-213)
(* b (- (* a i) (* z c)))
(if (<= a 7.4e-122) (* x (* y z)) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+129) {
tmp = t_1;
} else if (a <= -3.8e+90) {
tmp = y * (x * z);
} else if (a <= -2600000000000.0) {
tmp = t_1;
} else if (a <= -3.2e-216) {
tmp = c * (t * j);
} else if (a <= -2.35e-303) {
tmp = i * -(y * j);
} else if (a <= 1.35e-213) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 7.4e-122) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-7.5d+129)) then
tmp = t_1
else if (a <= (-3.8d+90)) then
tmp = y * (x * z)
else if (a <= (-2600000000000.0d0)) then
tmp = t_1
else if (a <= (-3.2d-216)) then
tmp = c * (t * j)
else if (a <= (-2.35d-303)) then
tmp = i * -(y * j)
else if (a <= 1.35d-213) then
tmp = b * ((a * i) - (z * c))
else if (a <= 7.4d-122) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+129) {
tmp = t_1;
} else if (a <= -3.8e+90) {
tmp = y * (x * z);
} else if (a <= -2600000000000.0) {
tmp = t_1;
} else if (a <= -3.2e-216) {
tmp = c * (t * j);
} else if (a <= -2.35e-303) {
tmp = i * -(y * j);
} else if (a <= 1.35e-213) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 7.4e-122) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.5e+129: tmp = t_1 elif a <= -3.8e+90: tmp = y * (x * z) elif a <= -2600000000000.0: tmp = t_1 elif a <= -3.2e-216: tmp = c * (t * j) elif a <= -2.35e-303: tmp = i * -(y * j) elif a <= 1.35e-213: tmp = b * ((a * i) - (z * c)) elif a <= 7.4e-122: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.5e+129) tmp = t_1; elseif (a <= -3.8e+90) tmp = Float64(y * Float64(x * z)); elseif (a <= -2600000000000.0) tmp = t_1; elseif (a <= -3.2e-216) tmp = Float64(c * Float64(t * j)); elseif (a <= -2.35e-303) tmp = Float64(i * Float64(-Float64(y * j))); elseif (a <= 1.35e-213) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (a <= 7.4e-122) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.5e+129) tmp = t_1; elseif (a <= -3.8e+90) tmp = y * (x * z); elseif (a <= -2600000000000.0) tmp = t_1; elseif (a <= -3.2e-216) tmp = c * (t * j); elseif (a <= -2.35e-303) tmp = i * -(y * j); elseif (a <= 1.35e-213) tmp = b * ((a * i) - (z * c)); elseif (a <= 7.4e-122) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+129], t$95$1, If[LessEqual[a, -3.8e+90], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2600000000000.0], t$95$1, If[LessEqual[a, -3.2e-216], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.35e-303], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 1.35e-213], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.4e-122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{+90}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -2600000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-216}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{-303}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-213}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 7.4 \cdot 10^{-122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.4999999999999998e129 or -3.8000000000000001e90 < a < -2.6e12 or 7.3999999999999995e-122 < a Initial program 70.2%
Taylor expanded in z around inf 61.7%
Simplified69.8%
Taylor expanded in a around -inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
Simplified56.7%
if -7.4999999999999998e129 < a < -3.8000000000000001e90Initial program 63.4%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 53.1%
*-commutative53.1%
associate-*r*76.2%
Simplified76.2%
if -2.6e12 < a < -3.20000000000000026e-216Initial program 84.4%
Taylor expanded in z around inf 66.9%
Simplified67.0%
Taylor expanded in t around inf 45.6%
associate-*r*39.7%
+-commutative39.7%
mul-1-neg39.7%
unsub-neg39.7%
div-sub42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in j around inf 43.7%
if -3.20000000000000026e-216 < a < -2.3499999999999999e-303Initial program 88.1%
Taylor expanded in y around inf 66.5%
Taylor expanded in i around inf 55.2%
mul-1-neg55.2%
distribute-rgt-neg-in55.2%
*-commutative55.2%
distribute-rgt-neg-in55.2%
Simplified55.2%
if -2.3499999999999999e-303 < a < 1.35e-213Initial program 68.7%
Taylor expanded in b around inf 47.0%
*-commutative47.0%
Simplified47.0%
if 1.35e-213 < a < 7.3999999999999995e-122Initial program 75.1%
Taylor expanded in x around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around inf 50.9%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -7.5e+129)
t_1
(if (<= a -3.8e+90)
(* y (* x z))
(if (<= a -520000000000.0)
t_1
(if (<= a -4.9e-216)
(* c (* t j))
(if (<= a -5e-302)
(* i (- (* y j)))
(if (<= a 6.8e-216)
(* (* b c) (- z))
(if (<= a 2.5e-123) (* x (* y z)) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+129) {
tmp = t_1;
} else if (a <= -3.8e+90) {
tmp = y * (x * z);
} else if (a <= -520000000000.0) {
tmp = t_1;
} else if (a <= -4.9e-216) {
tmp = c * (t * j);
} else if (a <= -5e-302) {
tmp = i * -(y * j);
} else if (a <= 6.8e-216) {
tmp = (b * c) * -z;
} else if (a <= 2.5e-123) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-7.5d+129)) then
tmp = t_1
else if (a <= (-3.8d+90)) then
tmp = y * (x * z)
else if (a <= (-520000000000.0d0)) then
tmp = t_1
else if (a <= (-4.9d-216)) then
tmp = c * (t * j)
else if (a <= (-5d-302)) then
tmp = i * -(y * j)
else if (a <= 6.8d-216) then
tmp = (b * c) * -z
else if (a <= 2.5d-123) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+129) {
tmp = t_1;
} else if (a <= -3.8e+90) {
tmp = y * (x * z);
} else if (a <= -520000000000.0) {
tmp = t_1;
} else if (a <= -4.9e-216) {
tmp = c * (t * j);
} else if (a <= -5e-302) {
tmp = i * -(y * j);
} else if (a <= 6.8e-216) {
tmp = (b * c) * -z;
} else if (a <= 2.5e-123) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.5e+129: tmp = t_1 elif a <= -3.8e+90: tmp = y * (x * z) elif a <= -520000000000.0: tmp = t_1 elif a <= -4.9e-216: tmp = c * (t * j) elif a <= -5e-302: tmp = i * -(y * j) elif a <= 6.8e-216: tmp = (b * c) * -z elif a <= 2.5e-123: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.5e+129) tmp = t_1; elseif (a <= -3.8e+90) tmp = Float64(y * Float64(x * z)); elseif (a <= -520000000000.0) tmp = t_1; elseif (a <= -4.9e-216) tmp = Float64(c * Float64(t * j)); elseif (a <= -5e-302) tmp = Float64(i * Float64(-Float64(y * j))); elseif (a <= 6.8e-216) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (a <= 2.5e-123) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.5e+129) tmp = t_1; elseif (a <= -3.8e+90) tmp = y * (x * z); elseif (a <= -520000000000.0) tmp = t_1; elseif (a <= -4.9e-216) tmp = c * (t * j); elseif (a <= -5e-302) tmp = i * -(y * j); elseif (a <= 6.8e-216) tmp = (b * c) * -z; elseif (a <= 2.5e-123) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+129], t$95$1, If[LessEqual[a, -3.8e+90], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -520000000000.0], t$95$1, If[LessEqual[a, -4.9e-216], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e-302], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 6.8e-216], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[a, 2.5e-123], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{+90}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -520000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.9 \cdot 10^{-216}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-302}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-216}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-123}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.4999999999999998e129 or -3.8000000000000001e90 < a < -5.2e11 or 2.50000000000000015e-123 < a Initial program 70.2%
Taylor expanded in z around inf 61.7%
Simplified69.8%
Taylor expanded in a around -inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
Simplified56.7%
if -7.4999999999999998e129 < a < -3.8000000000000001e90Initial program 63.4%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 53.1%
*-commutative53.1%
associate-*r*76.2%
Simplified76.2%
if -5.2e11 < a < -4.9000000000000001e-216Initial program 84.4%
Taylor expanded in z around inf 66.9%
Simplified67.0%
Taylor expanded in t around inf 45.6%
associate-*r*39.7%
+-commutative39.7%
mul-1-neg39.7%
unsub-neg39.7%
div-sub42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in j around inf 43.7%
if -4.9000000000000001e-216 < a < -5.00000000000000033e-302Initial program 88.1%
Taylor expanded in y around inf 66.5%
Taylor expanded in i around inf 55.2%
mul-1-neg55.2%
distribute-rgt-neg-in55.2%
*-commutative55.2%
distribute-rgt-neg-in55.2%
Simplified55.2%
if -5.00000000000000033e-302 < a < 6.7999999999999995e-216Initial program 67.2%
Taylor expanded in b around inf 44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in c around inf 44.5%
Taylor expanded in c around inf 35.5%
mul-1-neg35.5%
associate-*r*43.0%
Simplified43.0%
if 6.7999999999999995e-216 < a < 2.50000000000000015e-123Initial program 76.1%
Taylor expanded in x around inf 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in y around inf 49.1%
Final simplification53.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -1.8e+196)
t_1
(if (<= a -5.8e+89)
(* (- y (* a (/ t z))) (* x z))
(if (<= a -48000000000000.0)
(* i (- (* a b) (* y j)))
(if (<= a 5e-232)
(* j (- (* t c) (* y i)))
(if (<= a 6.8e-88)
(* z (- (* x y) (* b c)))
(if (<= a 4.3e+33) (* (* c j) (- t (* b (/ z j)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.8e+196) {
tmp = t_1;
} else if (a <= -5.8e+89) {
tmp = (y - (a * (t / z))) * (x * z);
} else if (a <= -48000000000000.0) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 5e-232) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 6.8e-88) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 4.3e+33) {
tmp = (c * j) * (t - (b * (z / j)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-1.8d+196)) then
tmp = t_1
else if (a <= (-5.8d+89)) then
tmp = (y - (a * (t / z))) * (x * z)
else if (a <= (-48000000000000.0d0)) then
tmp = i * ((a * b) - (y * j))
else if (a <= 5d-232) then
tmp = j * ((t * c) - (y * i))
else if (a <= 6.8d-88) then
tmp = z * ((x * y) - (b * c))
else if (a <= 4.3d+33) then
tmp = (c * j) * (t - (b * (z / j)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.8e+196) {
tmp = t_1;
} else if (a <= -5.8e+89) {
tmp = (y - (a * (t / z))) * (x * z);
} else if (a <= -48000000000000.0) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 5e-232) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 6.8e-88) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 4.3e+33) {
tmp = (c * j) * (t - (b * (z / j)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.8e+196: tmp = t_1 elif a <= -5.8e+89: tmp = (y - (a * (t / z))) * (x * z) elif a <= -48000000000000.0: tmp = i * ((a * b) - (y * j)) elif a <= 5e-232: tmp = j * ((t * c) - (y * i)) elif a <= 6.8e-88: tmp = z * ((x * y) - (b * c)) elif a <= 4.3e+33: tmp = (c * j) * (t - (b * (z / j))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.8e+196) tmp = t_1; elseif (a <= -5.8e+89) tmp = Float64(Float64(y - Float64(a * Float64(t / z))) * Float64(x * z)); elseif (a <= -48000000000000.0) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 5e-232) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 6.8e-88) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (a <= 4.3e+33) tmp = Float64(Float64(c * j) * Float64(t - Float64(b * Float64(z / j)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.8e+196) tmp = t_1; elseif (a <= -5.8e+89) tmp = (y - (a * (t / z))) * (x * z); elseif (a <= -48000000000000.0) tmp = i * ((a * b) - (y * j)); elseif (a <= 5e-232) tmp = j * ((t * c) - (y * i)); elseif (a <= 6.8e-88) tmp = z * ((x * y) - (b * c)); elseif (a <= 4.3e+33) tmp = (c * j) * (t - (b * (z / j))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.8e+196], t$95$1, If[LessEqual[a, -5.8e+89], N[(N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -48000000000000.0], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-232], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-88], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e+33], N[(N[(c * j), $MachinePrecision] * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+196}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{+89}:\\
\;\;\;\;\left(y - a \cdot \frac{t}{z}\right) \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -48000000000000:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-232}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-88}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{+33}:\\
\;\;\;\;\left(c \cdot j\right) \cdot \left(t - b \cdot \frac{z}{j}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.80000000000000004e196 or 4.30000000000000028e33 < a Initial program 68.7%
Taylor expanded in z around inf 58.6%
Simplified67.8%
Taylor expanded in a around -inf 70.9%
+-commutative70.9%
mul-1-neg70.9%
unsub-neg70.9%
Simplified70.9%
if -1.80000000000000004e196 < a < -5.80000000000000051e89Initial program 75.1%
Taylor expanded in z around inf 54.2%
Simplified58.4%
Taylor expanded in x around inf 66.7%
associate-*r*70.3%
mul-1-neg70.3%
unsub-neg70.3%
associate-/l*70.4%
Simplified70.4%
if -5.80000000000000051e89 < a < -4.8e13Initial program 60.0%
Taylor expanded in i around inf 60.9%
distribute-lft-out--60.9%
*-commutative60.9%
Simplified60.9%
if -4.8e13 < a < 4.9999999999999999e-232Initial program 79.5%
Taylor expanded in j around inf 59.9%
if 4.9999999999999999e-232 < a < 6.79999999999999949e-88Initial program 79.2%
Taylor expanded in z around inf 64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
if 6.79999999999999949e-88 < a < 4.30000000000000028e33Initial program 73.5%
Taylor expanded in z around inf 67.1%
Simplified70.4%
Taylor expanded in j around -inf 67.3%
Simplified64.1%
Taylor expanded in c around inf 54.8%
associate-*r*54.8%
*-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
associate-/l*61.1%
Simplified61.1%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -8.8e+165)
t_2
(if (<= a -2.15e+89)
t_1
(if (<= a -1.65e+14)
(* i (- (* a b) (* y j)))
(if (<= a 7e-233)
(* j (- (* t c) (* y i)))
(if (<= a 1.85e-88)
t_1
(if (<= a 3.7e+30) (* (* c j) (- t (* b (/ z j)))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.8e+165) {
tmp = t_2;
} else if (a <= -2.15e+89) {
tmp = t_1;
} else if (a <= -1.65e+14) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 7e-233) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 1.85e-88) {
tmp = t_1;
} else if (a <= 3.7e+30) {
tmp = (c * j) * (t - (b * (z / j)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = a * ((b * i) - (x * t))
if (a <= (-8.8d+165)) then
tmp = t_2
else if (a <= (-2.15d+89)) then
tmp = t_1
else if (a <= (-1.65d+14)) then
tmp = i * ((a * b) - (y * j))
else if (a <= 7d-233) then
tmp = j * ((t * c) - (y * i))
else if (a <= 1.85d-88) then
tmp = t_1
else if (a <= 3.7d+30) then
tmp = (c * j) * (t - (b * (z / j)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.8e+165) {
tmp = t_2;
} else if (a <= -2.15e+89) {
tmp = t_1;
} else if (a <= -1.65e+14) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 7e-233) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 1.85e-88) {
tmp = t_1;
} else if (a <= 3.7e+30) {
tmp = (c * j) * (t - (b * (z / j)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -8.8e+165: tmp = t_2 elif a <= -2.15e+89: tmp = t_1 elif a <= -1.65e+14: tmp = i * ((a * b) - (y * j)) elif a <= 7e-233: tmp = j * ((t * c) - (y * i)) elif a <= 1.85e-88: tmp = t_1 elif a <= 3.7e+30: tmp = (c * j) * (t - (b * (z / j))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -8.8e+165) tmp = t_2; elseif (a <= -2.15e+89) tmp = t_1; elseif (a <= -1.65e+14) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 7e-233) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 1.85e-88) tmp = t_1; elseif (a <= 3.7e+30) tmp = Float64(Float64(c * j) * Float64(t - Float64(b * Float64(z / j)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -8.8e+165) tmp = t_2; elseif (a <= -2.15e+89) tmp = t_1; elseif (a <= -1.65e+14) tmp = i * ((a * b) - (y * j)); elseif (a <= 7e-233) tmp = j * ((t * c) - (y * i)); elseif (a <= 1.85e-88) tmp = t_1; elseif (a <= 3.7e+30) tmp = (c * j) * (t - (b * (z / j))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.8e+165], t$95$2, If[LessEqual[a, -2.15e+89], t$95$1, If[LessEqual[a, -1.65e+14], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e-233], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-88], t$95$1, If[LessEqual[a, 3.7e+30], N[(N[(c * j), $MachinePrecision] * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+165}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.15 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{+14}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-233}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{+30}:\\
\;\;\;\;\left(c \cdot j\right) \cdot \left(t - b \cdot \frac{z}{j}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.7999999999999996e165 or 3.70000000000000016e30 < a Initial program 69.2%
Taylor expanded in z around inf 60.2%
Simplified68.4%
Taylor expanded in a around -inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -8.7999999999999996e165 < a < -2.1500000000000001e89 or 6.99999999999999982e-233 < a < 1.8499999999999999e-88Initial program 78.1%
Taylor expanded in z around inf 65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
if -2.1500000000000001e89 < a < -1.65e14Initial program 60.0%
Taylor expanded in i around inf 60.9%
distribute-lft-out--60.9%
*-commutative60.9%
Simplified60.9%
if -1.65e14 < a < 6.99999999999999982e-233Initial program 79.5%
Taylor expanded in j around inf 59.9%
if 1.8499999999999999e-88 < a < 3.70000000000000016e30Initial program 73.5%
Taylor expanded in z around inf 67.1%
Simplified70.4%
Taylor expanded in j around -inf 67.3%
Simplified64.1%
Taylor expanded in c around inf 54.8%
associate-*r*54.8%
*-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
associate-/l*61.1%
Simplified61.1%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= i -2.6e+145)
t_2
(if (<= i -1.75e+41)
(* y (* i (- j)))
(if (<= i -2.1e-43)
t_1
(if (<= i -2.9e-118)
(* (* b c) (- z))
(if (<= i -2.85e-273)
(* a (* t (- x)))
(if (<= i 3.1e-274)
(* y (* x z))
(if (<= i 2.8e+22) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -2.6e+145) {
tmp = t_2;
} else if (i <= -1.75e+41) {
tmp = y * (i * -j);
} else if (i <= -2.1e-43) {
tmp = t_1;
} else if (i <= -2.9e-118) {
tmp = (b * c) * -z;
} else if (i <= -2.85e-273) {
tmp = a * (t * -x);
} else if (i <= 3.1e-274) {
tmp = y * (x * z);
} else if (i <= 2.8e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (i <= (-2.6d+145)) then
tmp = t_2
else if (i <= (-1.75d+41)) then
tmp = y * (i * -j)
else if (i <= (-2.1d-43)) then
tmp = t_1
else if (i <= (-2.9d-118)) then
tmp = (b * c) * -z
else if (i <= (-2.85d-273)) then
tmp = a * (t * -x)
else if (i <= 3.1d-274) then
tmp = y * (x * z)
else if (i <= 2.8d+22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -2.6e+145) {
tmp = t_2;
} else if (i <= -1.75e+41) {
tmp = y * (i * -j);
} else if (i <= -2.1e-43) {
tmp = t_1;
} else if (i <= -2.9e-118) {
tmp = (b * c) * -z;
} else if (i <= -2.85e-273) {
tmp = a * (t * -x);
} else if (i <= 3.1e-274) {
tmp = y * (x * z);
} else if (i <= 2.8e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if i <= -2.6e+145: tmp = t_2 elif i <= -1.75e+41: tmp = y * (i * -j) elif i <= -2.1e-43: tmp = t_1 elif i <= -2.9e-118: tmp = (b * c) * -z elif i <= -2.85e-273: tmp = a * (t * -x) elif i <= 3.1e-274: tmp = y * (x * z) elif i <= 2.8e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -2.6e+145) tmp = t_2; elseif (i <= -1.75e+41) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= -2.1e-43) tmp = t_1; elseif (i <= -2.9e-118) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (i <= -2.85e-273) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 3.1e-274) tmp = Float64(y * Float64(x * z)); elseif (i <= 2.8e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (i <= -2.6e+145) tmp = t_2; elseif (i <= -1.75e+41) tmp = y * (i * -j); elseif (i <= -2.1e-43) tmp = t_1; elseif (i <= -2.9e-118) tmp = (b * c) * -z; elseif (i <= -2.85e-273) tmp = a * (t * -x); elseif (i <= 3.1e-274) tmp = y * (x * z); elseif (i <= 2.8e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e+145], t$95$2, If[LessEqual[i, -1.75e+41], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.1e-43], t$95$1, If[LessEqual[i, -2.9e-118], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[i, -2.85e-273], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e-274], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.8e+22], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{+145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.75 \cdot 10^{+41}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.9 \cdot 10^{-118}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;i \leq -2.85 \cdot 10^{-273}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{-274}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.60000000000000003e145 or 2.8e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -2.60000000000000003e145 < i < -1.75e41Initial program 73.3%
Taylor expanded in y around inf 73.8%
Taylor expanded in i around inf 54.3%
mul-1-neg54.3%
associate-*r*54.3%
*-commutative54.3%
distribute-lft-neg-out54.3%
*-commutative54.3%
distribute-lft-neg-in54.3%
Simplified54.3%
if -1.75e41 < i < -2.1000000000000001e-43 or 3.09999999999999978e-274 < i < 2.8e22Initial program 72.2%
Taylor expanded in z around inf 69.8%
Simplified69.8%
Taylor expanded in t around inf 43.9%
associate-*r*40.3%
+-commutative40.3%
mul-1-neg40.3%
unsub-neg40.3%
div-sub41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in j around inf 37.2%
if -2.1000000000000001e-43 < i < -2.8999999999999998e-118Initial program 61.0%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in c around inf 35.1%
Taylor expanded in c around inf 35.1%
mul-1-neg35.1%
associate-*r*54.2%
Simplified54.2%
if -2.8999999999999998e-118 < i < -2.84999999999999986e-273Initial program 87.0%
Taylor expanded in x around inf 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in y around 0 49.6%
mul-1-neg49.6%
distribute-rgt-neg-in49.6%
distribute-rgt-neg-in49.6%
Simplified49.6%
if -2.84999999999999986e-273 < i < 3.09999999999999978e-274Initial program 82.4%
Taylor expanded in x around inf 64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in y around inf 48.2%
*-commutative48.2%
associate-*r*53.7%
Simplified53.7%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= i -3e+146)
t_2
(if (<= i -4.4e+45)
(* i (- (* y j)))
(if (<= i -1.1e-42)
t_1
(if (<= i -2.4e-118)
(* (* b c) (- z))
(if (<= i -2.8e-272)
(* a (* t (- x)))
(if (<= i 8.2e-274)
(* y (* x z))
(if (<= i 2.5e+22) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -3e+146) {
tmp = t_2;
} else if (i <= -4.4e+45) {
tmp = i * -(y * j);
} else if (i <= -1.1e-42) {
tmp = t_1;
} else if (i <= -2.4e-118) {
tmp = (b * c) * -z;
} else if (i <= -2.8e-272) {
tmp = a * (t * -x);
} else if (i <= 8.2e-274) {
tmp = y * (x * z);
} else if (i <= 2.5e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (i <= (-3d+146)) then
tmp = t_2
else if (i <= (-4.4d+45)) then
tmp = i * -(y * j)
else if (i <= (-1.1d-42)) then
tmp = t_1
else if (i <= (-2.4d-118)) then
tmp = (b * c) * -z
else if (i <= (-2.8d-272)) then
tmp = a * (t * -x)
else if (i <= 8.2d-274) then
tmp = y * (x * z)
else if (i <= 2.5d+22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -3e+146) {
tmp = t_2;
} else if (i <= -4.4e+45) {
tmp = i * -(y * j);
} else if (i <= -1.1e-42) {
tmp = t_1;
} else if (i <= -2.4e-118) {
tmp = (b * c) * -z;
} else if (i <= -2.8e-272) {
tmp = a * (t * -x);
} else if (i <= 8.2e-274) {
tmp = y * (x * z);
} else if (i <= 2.5e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if i <= -3e+146: tmp = t_2 elif i <= -4.4e+45: tmp = i * -(y * j) elif i <= -1.1e-42: tmp = t_1 elif i <= -2.4e-118: tmp = (b * c) * -z elif i <= -2.8e-272: tmp = a * (t * -x) elif i <= 8.2e-274: tmp = y * (x * z) elif i <= 2.5e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -3e+146) tmp = t_2; elseif (i <= -4.4e+45) tmp = Float64(i * Float64(-Float64(y * j))); elseif (i <= -1.1e-42) tmp = t_1; elseif (i <= -2.4e-118) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (i <= -2.8e-272) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 8.2e-274) tmp = Float64(y * Float64(x * z)); elseif (i <= 2.5e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (i <= -3e+146) tmp = t_2; elseif (i <= -4.4e+45) tmp = i * -(y * j); elseif (i <= -1.1e-42) tmp = t_1; elseif (i <= -2.4e-118) tmp = (b * c) * -z; elseif (i <= -2.8e-272) tmp = a * (t * -x); elseif (i <= 8.2e-274) tmp = y * (x * z); elseif (i <= 2.5e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3e+146], t$95$2, If[LessEqual[i, -4.4e+45], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, -1.1e-42], t$95$1, If[LessEqual[i, -2.4e-118], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[i, -2.8e-272], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.2e-274], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e+22], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -3 \cdot 10^{+146}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{+45}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;i \leq -1.1 \cdot 10^{-42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.4 \cdot 10^{-118}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-272}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{-274}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -3.00000000000000002e146 or 2.4999999999999998e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -3.00000000000000002e146 < i < -4.4000000000000001e45Initial program 73.3%
Taylor expanded in y around inf 73.8%
Taylor expanded in i around inf 54.3%
mul-1-neg54.3%
distribute-rgt-neg-in54.3%
*-commutative54.3%
distribute-rgt-neg-in54.3%
Simplified54.3%
if -4.4000000000000001e45 < i < -1.10000000000000003e-42 or 8.19999999999999975e-274 < i < 2.4999999999999998e22Initial program 72.2%
Taylor expanded in z around inf 69.8%
Simplified69.8%
Taylor expanded in t around inf 43.9%
associate-*r*40.3%
+-commutative40.3%
mul-1-neg40.3%
unsub-neg40.3%
div-sub41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in j around inf 37.2%
if -1.10000000000000003e-42 < i < -2.4000000000000001e-118Initial program 61.0%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in c around inf 35.1%
Taylor expanded in c around inf 35.1%
mul-1-neg35.1%
associate-*r*54.2%
Simplified54.2%
if -2.4000000000000001e-118 < i < -2.79999999999999994e-272Initial program 87.0%
Taylor expanded in x around inf 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in y around 0 49.6%
mul-1-neg49.6%
distribute-rgt-neg-in49.6%
distribute-rgt-neg-in49.6%
Simplified49.6%
if -2.79999999999999994e-272 < i < 8.19999999999999975e-274Initial program 82.4%
Taylor expanded in x around inf 64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in y around inf 48.2%
*-commutative48.2%
associate-*r*53.7%
Simplified53.7%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -8.8e+165)
t_2
(if (<= a -2.1e+88)
t_1
(if (<= a -92000000000000.0)
(* i (- (* a b) (* y j)))
(if (<= a 2e-232)
(* j (- (* t c) (* y i)))
(if (<= a 5.9e-89)
t_1
(if (<= a 3.7e+27) (* c (- (* t j) (* z b))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.8e+165) {
tmp = t_2;
} else if (a <= -2.1e+88) {
tmp = t_1;
} else if (a <= -92000000000000.0) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 2e-232) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 5.9e-89) {
tmp = t_1;
} else if (a <= 3.7e+27) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = a * ((b * i) - (x * t))
if (a <= (-8.8d+165)) then
tmp = t_2
else if (a <= (-2.1d+88)) then
tmp = t_1
else if (a <= (-92000000000000.0d0)) then
tmp = i * ((a * b) - (y * j))
else if (a <= 2d-232) then
tmp = j * ((t * c) - (y * i))
else if (a <= 5.9d-89) then
tmp = t_1
else if (a <= 3.7d+27) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.8e+165) {
tmp = t_2;
} else if (a <= -2.1e+88) {
tmp = t_1;
} else if (a <= -92000000000000.0) {
tmp = i * ((a * b) - (y * j));
} else if (a <= 2e-232) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 5.9e-89) {
tmp = t_1;
} else if (a <= 3.7e+27) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -8.8e+165: tmp = t_2 elif a <= -2.1e+88: tmp = t_1 elif a <= -92000000000000.0: tmp = i * ((a * b) - (y * j)) elif a <= 2e-232: tmp = j * ((t * c) - (y * i)) elif a <= 5.9e-89: tmp = t_1 elif a <= 3.7e+27: tmp = c * ((t * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -8.8e+165) tmp = t_2; elseif (a <= -2.1e+88) tmp = t_1; elseif (a <= -92000000000000.0) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (a <= 2e-232) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 5.9e-89) tmp = t_1; elseif (a <= 3.7e+27) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -8.8e+165) tmp = t_2; elseif (a <= -2.1e+88) tmp = t_1; elseif (a <= -92000000000000.0) tmp = i * ((a * b) - (y * j)); elseif (a <= 2e-232) tmp = j * ((t * c) - (y * i)); elseif (a <= 5.9e-89) tmp = t_1; elseif (a <= 3.7e+27) tmp = c * ((t * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.8e+165], t$95$2, If[LessEqual[a, -2.1e+88], t$95$1, If[LessEqual[a, -92000000000000.0], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-232], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.9e-89], t$95$1, If[LessEqual[a, 3.7e+27], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+165}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -92000000000000:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-232}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 5.9 \cdot 10^{-89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{+27}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.7999999999999996e165 or 3.70000000000000002e27 < a Initial program 69.2%
Taylor expanded in z around inf 60.2%
Simplified68.4%
Taylor expanded in a around -inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -8.7999999999999996e165 < a < -2.1e88 or 2.00000000000000005e-232 < a < 5.90000000000000021e-89Initial program 78.1%
Taylor expanded in z around inf 65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
if -2.1e88 < a < -9.2e13Initial program 60.0%
Taylor expanded in i around inf 60.9%
distribute-lft-out--60.9%
*-commutative60.9%
Simplified60.9%
if -9.2e13 < a < 2.00000000000000005e-232Initial program 79.5%
Taylor expanded in j around inf 59.9%
if 5.90000000000000021e-89 < a < 3.70000000000000002e27Initial program 73.5%
Taylor expanded in c around inf 57.9%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -4.6e+166)
t_2
(if (<= a -1.3e+89)
t_1
(if (<= a -1950000000000.0)
t_2
(if (<= a 2.6e-232)
(* j (- (* t c) (* y i)))
(if (<= a 5e-88)
t_1
(if (<= a 2.8e+32) (* c (- (* t j) (* z b))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.6e+166) {
tmp = t_2;
} else if (a <= -1.3e+89) {
tmp = t_1;
} else if (a <= -1950000000000.0) {
tmp = t_2;
} else if (a <= 2.6e-232) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 5e-88) {
tmp = t_1;
} else if (a <= 2.8e+32) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = a * ((b * i) - (x * t))
if (a <= (-4.6d+166)) then
tmp = t_2
else if (a <= (-1.3d+89)) then
tmp = t_1
else if (a <= (-1950000000000.0d0)) then
tmp = t_2
else if (a <= 2.6d-232) then
tmp = j * ((t * c) - (y * i))
else if (a <= 5d-88) then
tmp = t_1
else if (a <= 2.8d+32) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.6e+166) {
tmp = t_2;
} else if (a <= -1.3e+89) {
tmp = t_1;
} else if (a <= -1950000000000.0) {
tmp = t_2;
} else if (a <= 2.6e-232) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 5e-88) {
tmp = t_1;
} else if (a <= 2.8e+32) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4.6e+166: tmp = t_2 elif a <= -1.3e+89: tmp = t_1 elif a <= -1950000000000.0: tmp = t_2 elif a <= 2.6e-232: tmp = j * ((t * c) - (y * i)) elif a <= 5e-88: tmp = t_1 elif a <= 2.8e+32: tmp = c * ((t * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4.6e+166) tmp = t_2; elseif (a <= -1.3e+89) tmp = t_1; elseif (a <= -1950000000000.0) tmp = t_2; elseif (a <= 2.6e-232) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 5e-88) tmp = t_1; elseif (a <= 2.8e+32) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4.6e+166) tmp = t_2; elseif (a <= -1.3e+89) tmp = t_1; elseif (a <= -1950000000000.0) tmp = t_2; elseif (a <= 2.6e-232) tmp = j * ((t * c) - (y * i)); elseif (a <= 5e-88) tmp = t_1; elseif (a <= 2.8e+32) tmp = c * ((t * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.6e+166], t$95$2, If[LessEqual[a, -1.3e+89], t$95$1, If[LessEqual[a, -1950000000000.0], t$95$2, If[LessEqual[a, 2.6e-232], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-88], t$95$1, If[LessEqual[a, 2.8e+32], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.6 \cdot 10^{+166}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1950000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-232}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+32}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.60000000000000015e166 or -1.3e89 < a < -1.95e12 or 2.8e32 < a Initial program 67.5%
Taylor expanded in z around inf 60.1%
Simplified68.7%
Taylor expanded in a around -inf 67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
if -4.60000000000000015e166 < a < -1.3e89 or 2.59999999999999996e-232 < a < 5.00000000000000009e-88Initial program 78.1%
Taylor expanded in z around inf 65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
if -1.95e12 < a < 2.59999999999999996e-232Initial program 79.5%
Taylor expanded in j around inf 59.9%
if 5.00000000000000009e-88 < a < 2.8e32Initial program 73.5%
Taylor expanded in c around inf 57.9%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= j -8.3e+148)
t_1
(if (<= j -2.8e+64)
(* z (- (* x (- y (* a (/ t z)))) (* b c)))
(if (<= j -1.56e+50)
(- t_1 (* a (- (* x t) (* b i))))
(if (<= j 1.52e-33)
(+ t_2 (* b (- (* a i) (* z c))))
(+ t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (j <= -8.3e+148) {
tmp = t_1;
} else if (j <= -2.8e+64) {
tmp = z * ((x * (y - (a * (t / z)))) - (b * c));
} else if (j <= -1.56e+50) {
tmp = t_1 - (a * ((x * t) - (b * i)));
} else if (j <= 1.52e-33) {
tmp = t_2 + (b * ((a * i) - (z * c)));
} else {
tmp = t_2 + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (j <= (-8.3d+148)) then
tmp = t_1
else if (j <= (-2.8d+64)) then
tmp = z * ((x * (y - (a * (t / z)))) - (b * c))
else if (j <= (-1.56d+50)) then
tmp = t_1 - (a * ((x * t) - (b * i)))
else if (j <= 1.52d-33) then
tmp = t_2 + (b * ((a * i) - (z * c)))
else
tmp = t_2 + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (j <= -8.3e+148) {
tmp = t_1;
} else if (j <= -2.8e+64) {
tmp = z * ((x * (y - (a * (t / z)))) - (b * c));
} else if (j <= -1.56e+50) {
tmp = t_1 - (a * ((x * t) - (b * i)));
} else if (j <= 1.52e-33) {
tmp = t_2 + (b * ((a * i) - (z * c)));
} else {
tmp = t_2 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if j <= -8.3e+148: tmp = t_1 elif j <= -2.8e+64: tmp = z * ((x * (y - (a * (t / z)))) - (b * c)) elif j <= -1.56e+50: tmp = t_1 - (a * ((x * t) - (b * i))) elif j <= 1.52e-33: tmp = t_2 + (b * ((a * i) - (z * c))) else: tmp = t_2 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (j <= -8.3e+148) tmp = t_1; elseif (j <= -2.8e+64) tmp = Float64(z * Float64(Float64(x * Float64(y - Float64(a * Float64(t / z)))) - Float64(b * c))); elseif (j <= -1.56e+50) tmp = Float64(t_1 - Float64(a * Float64(Float64(x * t) - Float64(b * i)))); elseif (j <= 1.52e-33) tmp = Float64(t_2 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_2 + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (j <= -8.3e+148) tmp = t_1; elseif (j <= -2.8e+64) tmp = z * ((x * (y - (a * (t / z)))) - (b * c)); elseif (j <= -1.56e+50) tmp = t_1 - (a * ((x * t) - (b * i))); elseif (j <= 1.52e-33) tmp = t_2 + (b * ((a * i) - (z * c))); else tmp = t_2 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.3e+148], t$95$1, If[LessEqual[j, -2.8e+64], N[(z * N[(N[(x * N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.56e+50], N[(t$95$1 - N[(a * N[(N[(x * t), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.52e-33], N[(t$95$2 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -8.3 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.8 \cdot 10^{+64}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - a \cdot \frac{t}{z}\right) - b \cdot c\right)\\
\mathbf{elif}\;j \leq -1.56 \cdot 10^{+50}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t - b \cdot i\right)\\
\mathbf{elif}\;j \leq 1.52 \cdot 10^{-33}:\\
\;\;\;\;t\_2 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 + t\_1\\
\end{array}
\end{array}
if j < -8.3000000000000003e148Initial program 67.4%
Taylor expanded in j around inf 80.1%
if -8.3000000000000003e148 < j < -2.80000000000000024e64Initial program 47.9%
Taylor expanded in z around inf 47.1%
Simplified70.5%
Taylor expanded in x around inf 65.5%
mul-1-neg65.5%
unsub-neg65.5%
associate-/l*71.0%
Simplified71.0%
if -2.80000000000000024e64 < j < -1.56e50Initial program 100.0%
Taylor expanded in z around inf 34.6%
Simplified67.9%
Taylor expanded in z around 0 99.5%
if -1.56e50 < j < 1.52e-33Initial program 78.4%
Taylor expanded in j around 0 77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
if 1.52e-33 < j Initial program 73.9%
Taylor expanded in b around 0 79.4%
Final simplification78.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= i -3e+144)
t_2
(if (<= i -2.3e-43)
t_1
(if (<= i -2.3e-118)
(* (* b c) (- z))
(if (<= i -2.85e-273)
(* a (* t (- x)))
(if (<= i 2.15e-272) (* y (* x z)) (if (<= i 3e+22) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -3e+144) {
tmp = t_2;
} else if (i <= -2.3e-43) {
tmp = t_1;
} else if (i <= -2.3e-118) {
tmp = (b * c) * -z;
} else if (i <= -2.85e-273) {
tmp = a * (t * -x);
} else if (i <= 2.15e-272) {
tmp = y * (x * z);
} else if (i <= 3e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (i <= (-3d+144)) then
tmp = t_2
else if (i <= (-2.3d-43)) then
tmp = t_1
else if (i <= (-2.3d-118)) then
tmp = (b * c) * -z
else if (i <= (-2.85d-273)) then
tmp = a * (t * -x)
else if (i <= 2.15d-272) then
tmp = y * (x * z)
else if (i <= 3d+22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -3e+144) {
tmp = t_2;
} else if (i <= -2.3e-43) {
tmp = t_1;
} else if (i <= -2.3e-118) {
tmp = (b * c) * -z;
} else if (i <= -2.85e-273) {
tmp = a * (t * -x);
} else if (i <= 2.15e-272) {
tmp = y * (x * z);
} else if (i <= 3e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if i <= -3e+144: tmp = t_2 elif i <= -2.3e-43: tmp = t_1 elif i <= -2.3e-118: tmp = (b * c) * -z elif i <= -2.85e-273: tmp = a * (t * -x) elif i <= 2.15e-272: tmp = y * (x * z) elif i <= 3e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -3e+144) tmp = t_2; elseif (i <= -2.3e-43) tmp = t_1; elseif (i <= -2.3e-118) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (i <= -2.85e-273) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.15e-272) tmp = Float64(y * Float64(x * z)); elseif (i <= 3e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (i <= -3e+144) tmp = t_2; elseif (i <= -2.3e-43) tmp = t_1; elseif (i <= -2.3e-118) tmp = (b * c) * -z; elseif (i <= -2.85e-273) tmp = a * (t * -x); elseif (i <= 2.15e-272) tmp = y * (x * z); elseif (i <= 3e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3e+144], t$95$2, If[LessEqual[i, -2.3e-43], t$95$1, If[LessEqual[i, -2.3e-118], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[i, -2.85e-273], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.15e-272], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+22], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -3 \cdot 10^{+144}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -2.3 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.3 \cdot 10^{-118}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;i \leq -2.85 \cdot 10^{-273}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.15 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.9999999999999999e144 or 3e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -2.9999999999999999e144 < i < -2.2999999999999999e-43 or 2.1499999999999999e-272 < i < 3e22Initial program 72.4%
Taylor expanded in z around inf 65.0%
Simplified67.2%
Taylor expanded in t around inf 43.4%
associate-*r*40.4%
+-commutative40.4%
mul-1-neg40.4%
unsub-neg40.4%
div-sub41.5%
*-commutative41.5%
Simplified41.5%
Taylor expanded in j around inf 34.6%
if -2.2999999999999999e-43 < i < -2.30000000000000021e-118Initial program 61.0%
Taylor expanded in b around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in c around inf 35.1%
Taylor expanded in c around inf 35.1%
mul-1-neg35.1%
associate-*r*54.2%
Simplified54.2%
if -2.30000000000000021e-118 < i < -2.84999999999999986e-273Initial program 87.0%
Taylor expanded in x around inf 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in y around 0 49.6%
mul-1-neg49.6%
distribute-rgt-neg-in49.6%
distribute-rgt-neg-in49.6%
Simplified49.6%
if -2.84999999999999986e-273 < i < 2.1499999999999999e-272Initial program 82.4%
Taylor expanded in x around inf 64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in y around inf 48.2%
*-commutative48.2%
associate-*r*53.7%
Simplified53.7%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= i -1.6e+145)
t_2
(if (<= i -5.6e-43)
t_1
(if (<= i -7.6e-124)
(* (* b c) (- z))
(if (<= i -1.1e-237)
t_1
(if (<= i 1.95e-272)
(* y (* x z))
(if (<= i 1.85e+22) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -1.6e+145) {
tmp = t_2;
} else if (i <= -5.6e-43) {
tmp = t_1;
} else if (i <= -7.6e-124) {
tmp = (b * c) * -z;
} else if (i <= -1.1e-237) {
tmp = t_1;
} else if (i <= 1.95e-272) {
tmp = y * (x * z);
} else if (i <= 1.85e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (i <= (-1.6d+145)) then
tmp = t_2
else if (i <= (-5.6d-43)) then
tmp = t_1
else if (i <= (-7.6d-124)) then
tmp = (b * c) * -z
else if (i <= (-1.1d-237)) then
tmp = t_1
else if (i <= 1.95d-272) then
tmp = y * (x * z)
else if (i <= 1.85d+22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -1.6e+145) {
tmp = t_2;
} else if (i <= -5.6e-43) {
tmp = t_1;
} else if (i <= -7.6e-124) {
tmp = (b * c) * -z;
} else if (i <= -1.1e-237) {
tmp = t_1;
} else if (i <= 1.95e-272) {
tmp = y * (x * z);
} else if (i <= 1.85e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if i <= -1.6e+145: tmp = t_2 elif i <= -5.6e-43: tmp = t_1 elif i <= -7.6e-124: tmp = (b * c) * -z elif i <= -1.1e-237: tmp = t_1 elif i <= 1.95e-272: tmp = y * (x * z) elif i <= 1.85e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -1.6e+145) tmp = t_2; elseif (i <= -5.6e-43) tmp = t_1; elseif (i <= -7.6e-124) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (i <= -1.1e-237) tmp = t_1; elseif (i <= 1.95e-272) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.85e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (i <= -1.6e+145) tmp = t_2; elseif (i <= -5.6e-43) tmp = t_1; elseif (i <= -7.6e-124) tmp = (b * c) * -z; elseif (i <= -1.1e-237) tmp = t_1; elseif (i <= 1.95e-272) tmp = y * (x * z); elseif (i <= 1.85e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.6e+145], t$95$2, If[LessEqual[i, -5.6e-43], t$95$1, If[LessEqual[i, -7.6e-124], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[i, -1.1e-237], t$95$1, If[LessEqual[i, 1.95e-272], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.85e+22], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.6 \cdot 10^{+145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -5.6 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -7.6 \cdot 10^{-124}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;i \leq -1.1 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.85 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.60000000000000004e145 or 1.8499999999999999e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -1.60000000000000004e145 < i < -5.5999999999999996e-43 or -7.60000000000000025e-124 < i < -1.09999999999999999e-237 or 1.9499999999999999e-272 < i < 1.8499999999999999e22Initial program 76.0%
Taylor expanded in z around inf 68.6%
Simplified71.1%
Taylor expanded in t around inf 50.9%
associate-*r*48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
div-sub50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in j around inf 38.3%
if -5.5999999999999996e-43 < i < -7.60000000000000025e-124Initial program 65.6%
Taylor expanded in b around inf 37.1%
*-commutative37.1%
Simplified37.1%
Taylor expanded in c around inf 37.0%
Taylor expanded in c around inf 37.0%
mul-1-neg37.0%
associate-*r*53.9%
Simplified53.9%
if -1.09999999999999999e-237 < i < 1.9499999999999999e-272Initial program 82.2%
Taylor expanded in x around inf 67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around inf 44.1%
*-commutative44.1%
associate-*r*47.5%
Simplified47.5%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (* b i))))
(if (<= i -5e+145)
t_2
(if (<= i -1e-70)
t_1
(if (<= i -3.1e-124)
(* x (* y z))
(if (<= i -8.8e-240)
t_1
(if (<= i 1.3e-274) (* y (* x z)) (if (<= i 2.3e+22) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -5e+145) {
tmp = t_2;
} else if (i <= -1e-70) {
tmp = t_1;
} else if (i <= -3.1e-124) {
tmp = x * (y * z);
} else if (i <= -8.8e-240) {
tmp = t_1;
} else if (i <= 1.3e-274) {
tmp = y * (x * z);
} else if (i <= 2.3e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = a * (b * i)
if (i <= (-5d+145)) then
tmp = t_2
else if (i <= (-1d-70)) then
tmp = t_1
else if (i <= (-3.1d-124)) then
tmp = x * (y * z)
else if (i <= (-8.8d-240)) then
tmp = t_1
else if (i <= 1.3d-274) then
tmp = y * (x * z)
else if (i <= 2.3d+22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = a * (b * i);
double tmp;
if (i <= -5e+145) {
tmp = t_2;
} else if (i <= -1e-70) {
tmp = t_1;
} else if (i <= -3.1e-124) {
tmp = x * (y * z);
} else if (i <= -8.8e-240) {
tmp = t_1;
} else if (i <= 1.3e-274) {
tmp = y * (x * z);
} else if (i <= 2.3e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * (b * i) tmp = 0 if i <= -5e+145: tmp = t_2 elif i <= -1e-70: tmp = t_1 elif i <= -3.1e-124: tmp = x * (y * z) elif i <= -8.8e-240: tmp = t_1 elif i <= 1.3e-274: tmp = y * (x * z) elif i <= 2.3e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -5e+145) tmp = t_2; elseif (i <= -1e-70) tmp = t_1; elseif (i <= -3.1e-124) tmp = Float64(x * Float64(y * z)); elseif (i <= -8.8e-240) tmp = t_1; elseif (i <= 1.3e-274) tmp = Float64(y * Float64(x * z)); elseif (i <= 2.3e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = a * (b * i); tmp = 0.0; if (i <= -5e+145) tmp = t_2; elseif (i <= -1e-70) tmp = t_1; elseif (i <= -3.1e-124) tmp = x * (y * z); elseif (i <= -8.8e-240) tmp = t_1; elseif (i <= 1.3e-274) tmp = y * (x * z); elseif (i <= 2.3e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5e+145], t$95$2, If[LessEqual[i, -1e-70], t$95$1, If[LessEqual[i, -3.1e-124], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.8e-240], t$95$1, If[LessEqual[i, 1.3e-274], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+22], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -5 \cdot 10^{+145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -3.1 \cdot 10^{-124}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq -8.8 \cdot 10^{-240}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-274}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -4.99999999999999967e145 or 2.3000000000000002e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -4.99999999999999967e145 < i < -9.99999999999999996e-71 or -3.0999999999999998e-124 < i < -8.7999999999999997e-240 or 1.3e-274 < i < 2.3000000000000002e22Initial program 75.3%
Taylor expanded in z around inf 69.0%
Simplified71.5%
Taylor expanded in t around inf 49.9%
associate-*r*47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
div-sub49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in j around inf 38.4%
if -9.99999999999999996e-71 < i < -3.0999999999999998e-124Initial program 67.9%
Taylor expanded in x around inf 51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in y around inf 39.2%
if -8.7999999999999997e-240 < i < 1.3e-274Initial program 82.2%
Taylor expanded in x around inf 67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around inf 44.1%
*-commutative44.1%
associate-*r*47.5%
Simplified47.5%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* x (* y z))) (t_3 (* a (* b i))))
(if (<= i -3e+144)
t_3
(if (<= i -1.5e-68)
t_1
(if (<= i -1e-124)
t_2
(if (<= i -2.8e-239)
t_1
(if (<= i 1.3e-274) t_2 (if (<= i 3e+22) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = x * (y * z);
double t_3 = a * (b * i);
double tmp;
if (i <= -3e+144) {
tmp = t_3;
} else if (i <= -1.5e-68) {
tmp = t_1;
} else if (i <= -1e-124) {
tmp = t_2;
} else if (i <= -2.8e-239) {
tmp = t_1;
} else if (i <= 1.3e-274) {
tmp = t_2;
} else if (i <= 3e+22) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * (t * j)
t_2 = x * (y * z)
t_3 = a * (b * i)
if (i <= (-3d+144)) then
tmp = t_3
else if (i <= (-1.5d-68)) then
tmp = t_1
else if (i <= (-1d-124)) then
tmp = t_2
else if (i <= (-2.8d-239)) then
tmp = t_1
else if (i <= 1.3d-274) then
tmp = t_2
else if (i <= 3d+22) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = x * (y * z);
double t_3 = a * (b * i);
double tmp;
if (i <= -3e+144) {
tmp = t_3;
} else if (i <= -1.5e-68) {
tmp = t_1;
} else if (i <= -1e-124) {
tmp = t_2;
} else if (i <= -2.8e-239) {
tmp = t_1;
} else if (i <= 1.3e-274) {
tmp = t_2;
} else if (i <= 3e+22) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = x * (y * z) t_3 = a * (b * i) tmp = 0 if i <= -3e+144: tmp = t_3 elif i <= -1.5e-68: tmp = t_1 elif i <= -1e-124: tmp = t_2 elif i <= -2.8e-239: tmp = t_1 elif i <= 1.3e-274: tmp = t_2 elif i <= 3e+22: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(x * Float64(y * z)) t_3 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -3e+144) tmp = t_3; elseif (i <= -1.5e-68) tmp = t_1; elseif (i <= -1e-124) tmp = t_2; elseif (i <= -2.8e-239) tmp = t_1; elseif (i <= 1.3e-274) tmp = t_2; elseif (i <= 3e+22) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = x * (y * z); t_3 = a * (b * i); tmp = 0.0; if (i <= -3e+144) tmp = t_3; elseif (i <= -1.5e-68) tmp = t_1; elseif (i <= -1e-124) tmp = t_2; elseif (i <= -2.8e-239) tmp = t_1; elseif (i <= 1.3e-274) tmp = t_2; elseif (i <= 3e+22) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3e+144], t$95$3, If[LessEqual[i, -1.5e-68], t$95$1, If[LessEqual[i, -1e-124], t$95$2, If[LessEqual[i, -2.8e-239], t$95$1, If[LessEqual[i, 1.3e-274], t$95$2, If[LessEqual[i, 3e+22], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
t_3 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -3 \cdot 10^{+144}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -1.5 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1 \cdot 10^{-124}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-239}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-274}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -2.9999999999999999e144 or 3e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -2.9999999999999999e144 < i < -1.5e-68 or -9.99999999999999933e-125 < i < -2.80000000000000013e-239 or 1.3e-274 < i < 3e22Initial program 75.3%
Taylor expanded in z around inf 69.0%
Simplified71.5%
Taylor expanded in t around inf 49.9%
associate-*r*47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
div-sub49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in j around inf 38.4%
if -1.5e-68 < i < -9.99999999999999933e-125 or -2.80000000000000013e-239 < i < 1.3e-274Initial program 77.9%
Taylor expanded in x around inf 63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in y around inf 42.7%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -1.75e+196)
t_1
(if (<= a -1.5e+90)
(* x (- (* y z) (* t a)))
(if (<= a -1.1e+14)
t_1
(if (<= a 8.6e-79)
(* j (- (* t c) (* y i)))
(if (<= a 5.8e+30) (* c (- (* t j) (* z 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 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.75e+196) {
tmp = t_1;
} else if (a <= -1.5e+90) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -1.1e+14) {
tmp = t_1;
} else if (a <= 8.6e-79) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 5.8e+30) {
tmp = c * ((t * j) - (z * 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 = a * ((b * i) - (x * t))
if (a <= (-1.75d+196)) then
tmp = t_1
else if (a <= (-1.5d+90)) then
tmp = x * ((y * z) - (t * a))
else if (a <= (-1.1d+14)) then
tmp = t_1
else if (a <= 8.6d-79) then
tmp = j * ((t * c) - (y * i))
else if (a <= 5.8d+30) then
tmp = c * ((t * j) - (z * 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 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.75e+196) {
tmp = t_1;
} else if (a <= -1.5e+90) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -1.1e+14) {
tmp = t_1;
} else if (a <= 8.6e-79) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 5.8e+30) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.75e+196: tmp = t_1 elif a <= -1.5e+90: tmp = x * ((y * z) - (t * a)) elif a <= -1.1e+14: tmp = t_1 elif a <= 8.6e-79: tmp = j * ((t * c) - (y * i)) elif a <= 5.8e+30: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.75e+196) tmp = t_1; elseif (a <= -1.5e+90) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (a <= -1.1e+14) tmp = t_1; elseif (a <= 8.6e-79) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 5.8e+30) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.75e+196) tmp = t_1; elseif (a <= -1.5e+90) tmp = x * ((y * z) - (t * a)); elseif (a <= -1.1e+14) tmp = t_1; elseif (a <= 8.6e-79) tmp = j * ((t * c) - (y * i)); elseif (a <= 5.8e+30) tmp = c * ((t * j) - (z * 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.75e+196], t$95$1, If[LessEqual[a, -1.5e+90], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.1e+14], t$95$1, If[LessEqual[a, 8.6e-79], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.8e+30], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.75 \cdot 10^{+196}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-79}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+30}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.7499999999999999e196 or -1.49999999999999989e90 < a < -1.1e14 or 5.7999999999999996e30 < a Initial program 66.9%
Taylor expanded in z around inf 58.9%
Simplified68.2%
Taylor expanded in a around -inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
Simplified67.8%
if -1.7499999999999999e196 < a < -1.49999999999999989e90Initial program 75.1%
Taylor expanded in x around inf 62.7%
*-commutative62.7%
Simplified62.7%
if -1.1e14 < a < 8.59999999999999963e-79Initial program 78.9%
Taylor expanded in j around inf 54.5%
if 8.59999999999999963e-79 < a < 5.7999999999999996e30Initial program 75.2%
Taylor expanded in c around inf 62.0%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -7.5e+129)
t_1
(if (<= a -3.8e+90)
(* y (* x z))
(if (<= a -1.75e+14)
t_1
(if (<= a 1.35e-83)
(* j (- (* t c) (* y i)))
(if (<= a 1.25e+28) (* c (- (* t j) (* z 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 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+129) {
tmp = t_1;
} else if (a <= -3.8e+90) {
tmp = y * (x * z);
} else if (a <= -1.75e+14) {
tmp = t_1;
} else if (a <= 1.35e-83) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 1.25e+28) {
tmp = c * ((t * j) - (z * 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 = a * ((b * i) - (x * t))
if (a <= (-7.5d+129)) then
tmp = t_1
else if (a <= (-3.8d+90)) then
tmp = y * (x * z)
else if (a <= (-1.75d+14)) then
tmp = t_1
else if (a <= 1.35d-83) then
tmp = j * ((t * c) - (y * i))
else if (a <= 1.25d+28) then
tmp = c * ((t * j) - (z * 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 = a * ((b * i) - (x * t));
double tmp;
if (a <= -7.5e+129) {
tmp = t_1;
} else if (a <= -3.8e+90) {
tmp = y * (x * z);
} else if (a <= -1.75e+14) {
tmp = t_1;
} else if (a <= 1.35e-83) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 1.25e+28) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -7.5e+129: tmp = t_1 elif a <= -3.8e+90: tmp = y * (x * z) elif a <= -1.75e+14: tmp = t_1 elif a <= 1.35e-83: tmp = j * ((t * c) - (y * i)) elif a <= 1.25e+28: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -7.5e+129) tmp = t_1; elseif (a <= -3.8e+90) tmp = Float64(y * Float64(x * z)); elseif (a <= -1.75e+14) tmp = t_1; elseif (a <= 1.35e-83) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 1.25e+28) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -7.5e+129) tmp = t_1; elseif (a <= -3.8e+90) tmp = y * (x * z); elseif (a <= -1.75e+14) tmp = t_1; elseif (a <= 1.35e-83) tmp = j * ((t * c) - (y * i)); elseif (a <= 1.25e+28) tmp = c * ((t * j) - (z * 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+129], t$95$1, If[LessEqual[a, -3.8e+90], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.75e+14], t$95$1, If[LessEqual[a, 1.35e-83], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e+28], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{+90}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-83}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{+28}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.4999999999999998e129 or -3.8000000000000001e90 < a < -1.75e14 or 1.24999999999999989e28 < a Initial program 68.9%
Taylor expanded in z around inf 59.4%
Simplified68.3%
Taylor expanded in a around -inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
if -7.4999999999999998e129 < a < -3.8000000000000001e90Initial program 63.4%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 53.1%
*-commutative53.1%
associate-*r*76.2%
Simplified76.2%
if -1.75e14 < a < 1.34999999999999996e-83Initial program 78.9%
Taylor expanded in j around inf 54.5%
if 1.34999999999999996e-83 < a < 1.24999999999999989e28Initial program 75.2%
Taylor expanded in c around inf 62.0%
Final simplification61.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -4.5e-45)
t_2
(if (<= c -1.46e-301)
t_1
(if (<= c 4.2e-295) (* x (* y z)) (if (<= c 3e-23) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.5e-45) {
tmp = t_2;
} else if (c <= -1.46e-301) {
tmp = t_1;
} else if (c <= 4.2e-295) {
tmp = x * (y * z);
} else if (c <= 3e-23) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
if (c <= (-4.5d-45)) then
tmp = t_2
else if (c <= (-1.46d-301)) then
tmp = t_1
else if (c <= 4.2d-295) then
tmp = x * (y * z)
else if (c <= 3d-23) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.5e-45) {
tmp = t_2;
} else if (c <= -1.46e-301) {
tmp = t_1;
} else if (c <= 4.2e-295) {
tmp = x * (y * z);
} else if (c <= 3e-23) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -4.5e-45: tmp = t_2 elif c <= -1.46e-301: tmp = t_1 elif c <= 4.2e-295: tmp = x * (y * z) elif c <= 3e-23: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -4.5e-45) tmp = t_2; elseif (c <= -1.46e-301) tmp = t_1; elseif (c <= 4.2e-295) tmp = Float64(x * Float64(y * z)); elseif (c <= 3e-23) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -4.5e-45) tmp = t_2; elseif (c <= -1.46e-301) tmp = t_1; elseif (c <= 4.2e-295) tmp = x * (y * z); elseif (c <= 3e-23) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e-45], t$95$2, If[LessEqual[c, -1.46e-301], t$95$1, If[LessEqual[c, 4.2e-295], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e-23], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4.5 \cdot 10^{-45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.46 \cdot 10^{-301}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-295}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-23}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -4.4999999999999999e-45 or 3.00000000000000003e-23 < c Initial program 62.4%
Taylor expanded in c around inf 61.4%
if -4.4999999999999999e-45 < c < -1.46000000000000002e-301 or 4.19999999999999986e-295 < c < 3.00000000000000003e-23Initial program 85.1%
Taylor expanded in z around inf 69.3%
Simplified71.9%
Taylor expanded in a around -inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
Simplified54.1%
if -1.46000000000000002e-301 < c < 4.19999999999999986e-295Initial program 100.0%
Taylor expanded in x around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 78.3%
Final simplification58.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -9.5e+102) (not (<= z 2.75e+63))) (* z (- (* x (- y (* a (/ t z)))) (* b c))) (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -9.5e+102) || !(z <= 2.75e+63)) {
tmp = z * ((x * (y - (a * (t / z)))) - (b * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * 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) :: tmp
if ((z <= (-9.5d+102)) .or. (.not. (z <= 2.75d+63))) then
tmp = z * ((x * (y - (a * (t / z)))) - (b * c))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * 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 tmp;
if ((z <= -9.5e+102) || !(z <= 2.75e+63)) {
tmp = z * ((x * (y - (a * (t / z)))) - (b * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -9.5e+102) or not (z <= 2.75e+63): tmp = z * ((x * (y - (a * (t / z)))) - (b * c)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -9.5e+102) || !(z <= 2.75e+63)) tmp = Float64(z * Float64(Float64(x * Float64(y - Float64(a * Float64(t / z)))) - Float64(b * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -9.5e+102) || ~((z <= 2.75e+63))) tmp = z * ((x * (y - (a * (t / z)))) - (b * c)); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -9.5e+102], N[Not[LessEqual[z, 2.75e+63]], $MachinePrecision]], N[(z * N[(N[(x * N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+102} \lor \neg \left(z \leq 2.75 \cdot 10^{+63}\right):\\
\;\;\;\;z \cdot \left(x \cdot \left(y - a \cdot \frac{t}{z}\right) - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if z < -9.4999999999999992e102 or 2.75000000000000002e63 < z Initial program 59.0%
Taylor expanded in z around inf 68.4%
Simplified76.3%
Taylor expanded in x around inf 71.6%
mul-1-neg71.6%
unsub-neg71.6%
associate-/l*68.9%
Simplified68.9%
if -9.4999999999999992e102 < z < 2.75000000000000002e63Initial program 83.2%
Taylor expanded in b around 0 72.3%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -1.7e+149)
t_2
(if (<= j 2.25e-33) (+ t_1 (* b (- (* a i) (* z c)))) (+ t_1 t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.7e+149) {
tmp = t_2;
} else if (j <= 2.25e-33) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((t * c) - (y * i))
if (j <= (-1.7d+149)) then
tmp = t_2
else if (j <= 2.25d-33) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = t_1 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.7e+149) {
tmp = t_2;
} else if (j <= 2.25e-33) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.7e+149: tmp = t_2 elif j <= 2.25e-33: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = t_1 + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.7e+149) tmp = t_2; elseif (j <= 2.25e-33) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_1 + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.7e+149) tmp = t_2; elseif (j <= 2.25e-33) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = t_1 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e+149], t$95$2, If[LessEqual[j, 2.25e-33], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{+149}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 2.25 \cdot 10^{-33}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + t\_2\\
\end{array}
\end{array}
if j < -1.6999999999999999e149Initial program 67.4%
Taylor expanded in j around inf 80.1%
if -1.6999999999999999e149 < j < 2.24999999999999995e-33Initial program 75.2%
Taylor expanded in j around 0 73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
if 2.24999999999999995e-33 < j Initial program 73.9%
Taylor expanded in b around 0 79.4%
Final simplification76.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -4e+145) (not (<= i 2.8e+22))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -4e+145) || !(i <= 2.8e+22)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-4d+145)) .or. (.not. (i <= 2.8d+22))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -4e+145) || !(i <= 2.8e+22)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -4e+145) or not (i <= 2.8e+22): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -4e+145) || !(i <= 2.8e+22)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -4e+145) || ~((i <= 2.8e+22))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -4e+145], N[Not[LessEqual[i, 2.8e+22]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4 \cdot 10^{+145} \lor \neg \left(i \leq 2.8 \cdot 10^{+22}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -4e145 or 2.8e22 < i Initial program 69.7%
Taylor expanded in b around inf 49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 42.9%
Taylor expanded in b around 0 47.7%
*-commutative47.7%
Simplified47.7%
if -4e145 < i < 2.8e22Initial program 76.0%
Taylor expanded in z around inf 68.7%
Simplified73.7%
Taylor expanded in t around inf 44.2%
associate-*r*43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
div-sub45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in j around inf 31.2%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 73.6%
Taylor expanded in b around inf 33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in i around inf 21.1%
Taylor expanded in b around 0 22.4%
*-commutative22.4%
Simplified22.4%
Final simplification22.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024086
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))