
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (- t_1 (* b (- (* z c) (* t i)))))
(t_3 (- (* a c) (* y i))))
(if (<= (+ t_2 (* j t_3)) INFINITY) (fma j t_3 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 = x * ((y * z) - (t * a));
double t_2 = t_1 - (b * ((z * c) - (t * i)));
double t_3 = (a * c) - (y * i);
double tmp;
if ((t_2 + (j * t_3)) <= ((double) INFINITY)) {
tmp = fma(j, t_3, t_2);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) t_3 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_2 + Float64(j * t_3)) <= Inf) tmp = fma(j, t_3, t_2); else tmp = t_1; end return 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[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$3 + t$95$2), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t\_1 - b \cdot \left(z \cdot c - t \cdot i\right)\\
t_3 := a \cdot c - y \cdot i\\
\mathbf{if}\;t\_2 + j \cdot t\_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_3, t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.2%
+-commutative92.2%
fma-define92.2%
*-commutative92.2%
*-commutative92.2%
Simplified92.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in x around inf 50.5%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* t b) (- i (* a (/ x b)))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (+ t_2 (* x (* y z))))
(t_4 (* c (- (* a j) (* z b)))))
(if (<= t -3.3e+95)
(* t (- (* b i) (* x a)))
(if (<= t -6.6e+65)
t_2
(if (<= t -13200000000000.0)
t_1
(if (<= t -1.8e-81)
t_3
(if (<= t -6.5e-130)
(* z (- (* x y) (* b c)))
(if (<= t -9.5e-267)
t_3
(if (<= t 1.65e-304)
t_4
(if (<= t 3.2e-188)
t_3
(if (<= t 1.12e-138)
t_4
(if (<= t 6.2e-40)
t_3
(if (<= t 1.56e+40)
(* x (- (* y z) (* t a)))
(if (<= t 1.85e+226)
(* i (- (* t b) (* y 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 = (t * b) * (i - (a * (x / b)));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t_2 + (x * (y * z));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (t <= -3.3e+95) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -6.6e+65) {
tmp = t_2;
} else if (t <= -13200000000000.0) {
tmp = t_1;
} else if (t <= -1.8e-81) {
tmp = t_3;
} else if (t <= -6.5e-130) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -9.5e-267) {
tmp = t_3;
} else if (t <= 1.65e-304) {
tmp = t_4;
} else if (t <= 3.2e-188) {
tmp = t_3;
} else if (t <= 1.12e-138) {
tmp = t_4;
} else if (t <= 6.2e-40) {
tmp = t_3;
} else if (t <= 1.56e+40) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 1.85e+226) {
tmp = i * ((t * b) - (y * 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) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (t * b) * (i - (a * (x / b)))
t_2 = j * ((a * c) - (y * i))
t_3 = t_2 + (x * (y * z))
t_4 = c * ((a * j) - (z * b))
if (t <= (-3.3d+95)) then
tmp = t * ((b * i) - (x * a))
else if (t <= (-6.6d+65)) then
tmp = t_2
else if (t <= (-13200000000000.0d0)) then
tmp = t_1
else if (t <= (-1.8d-81)) then
tmp = t_3
else if (t <= (-6.5d-130)) then
tmp = z * ((x * y) - (b * c))
else if (t <= (-9.5d-267)) then
tmp = t_3
else if (t <= 1.65d-304) then
tmp = t_4
else if (t <= 3.2d-188) then
tmp = t_3
else if (t <= 1.12d-138) then
tmp = t_4
else if (t <= 6.2d-40) then
tmp = t_3
else if (t <= 1.56d+40) then
tmp = x * ((y * z) - (t * a))
else if (t <= 1.85d+226) then
tmp = i * ((t * b) - (y * 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 = (t * b) * (i - (a * (x / b)));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t_2 + (x * (y * z));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (t <= -3.3e+95) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -6.6e+65) {
tmp = t_2;
} else if (t <= -13200000000000.0) {
tmp = t_1;
} else if (t <= -1.8e-81) {
tmp = t_3;
} else if (t <= -6.5e-130) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -9.5e-267) {
tmp = t_3;
} else if (t <= 1.65e-304) {
tmp = t_4;
} else if (t <= 3.2e-188) {
tmp = t_3;
} else if (t <= 1.12e-138) {
tmp = t_4;
} else if (t <= 6.2e-40) {
tmp = t_3;
} else if (t <= 1.56e+40) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 1.85e+226) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * b) * (i - (a * (x / b))) t_2 = j * ((a * c) - (y * i)) t_3 = t_2 + (x * (y * z)) t_4 = c * ((a * j) - (z * b)) tmp = 0 if t <= -3.3e+95: tmp = t * ((b * i) - (x * a)) elif t <= -6.6e+65: tmp = t_2 elif t <= -13200000000000.0: tmp = t_1 elif t <= -1.8e-81: tmp = t_3 elif t <= -6.5e-130: tmp = z * ((x * y) - (b * c)) elif t <= -9.5e-267: tmp = t_3 elif t <= 1.65e-304: tmp = t_4 elif t <= 3.2e-188: tmp = t_3 elif t <= 1.12e-138: tmp = t_4 elif t <= 6.2e-40: tmp = t_3 elif t <= 1.56e+40: tmp = x * ((y * z) - (t * a)) elif t <= 1.85e+226: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * b) * Float64(i - Float64(a * Float64(x / b)))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(t_2 + Float64(x * Float64(y * z))) t_4 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (t <= -3.3e+95) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= -6.6e+65) tmp = t_2; elseif (t <= -13200000000000.0) tmp = t_1; elseif (t <= -1.8e-81) tmp = t_3; elseif (t <= -6.5e-130) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= -9.5e-267) tmp = t_3; elseif (t <= 1.65e-304) tmp = t_4; elseif (t <= 3.2e-188) tmp = t_3; elseif (t <= 1.12e-138) tmp = t_4; elseif (t <= 6.2e-40) tmp = t_3; elseif (t <= 1.56e+40) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 1.85e+226) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * b) * (i - (a * (x / b))); t_2 = j * ((a * c) - (y * i)); t_3 = t_2 + (x * (y * z)); t_4 = c * ((a * j) - (z * b)); tmp = 0.0; if (t <= -3.3e+95) tmp = t * ((b * i) - (x * a)); elseif (t <= -6.6e+65) tmp = t_2; elseif (t <= -13200000000000.0) tmp = t_1; elseif (t <= -1.8e-81) tmp = t_3; elseif (t <= -6.5e-130) tmp = z * ((x * y) - (b * c)); elseif (t <= -9.5e-267) tmp = t_3; elseif (t <= 1.65e-304) tmp = t_4; elseif (t <= 3.2e-188) tmp = t_3; elseif (t <= 1.12e-138) tmp = t_4; elseif (t <= 6.2e-40) tmp = t_3; elseif (t <= 1.56e+40) tmp = x * ((y * z) - (t * a)); elseif (t <= 1.85e+226) tmp = i * ((t * b) - (y * 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[(N[(t * b), $MachinePrecision] * N[(i - N[(a * N[(x / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.3e+95], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.6e+65], t$95$2, If[LessEqual[t, -13200000000000.0], t$95$1, If[LessEqual[t, -1.8e-81], t$95$3, If[LessEqual[t, -6.5e-130], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e-267], t$95$3, If[LessEqual[t, 1.65e-304], t$95$4, If[LessEqual[t, 3.2e-188], t$95$3, If[LessEqual[t, 1.12e-138], t$95$4, If[LessEqual[t, 6.2e-40], t$95$3, If[LessEqual[t, 1.56e+40], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+226], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t \cdot b\right) \cdot \left(i - a \cdot \frac{x}{b}\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := t\_2 + x \cdot \left(y \cdot z\right)\\
t_4 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;t \leq -3.3 \cdot 10^{+95}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq -6.6 \cdot 10^{+65}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -13200000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-81}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{-130}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-267}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-304}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-188}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{-138}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-40}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+226}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.2999999999999998e95Initial program 60.8%
Taylor expanded in t around inf 71.6%
distribute-lft-out--71.6%
*-commutative71.6%
Simplified71.6%
if -3.2999999999999998e95 < t < -6.60000000000000046e65Initial program 34.0%
Taylor expanded in j around inf 78.2%
if -6.60000000000000046e65 < t < -1.32e13 or 1.84999999999999991e226 < t Initial program 70.3%
Taylor expanded in b around inf 66.4%
fma-define70.1%
associate-/l*66.6%
Simplified66.6%
Taylor expanded in t around inf 70.6%
associate-*r*74.2%
*-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
associate-/l*77.8%
Simplified77.8%
if -1.32e13 < t < -1.7999999999999999e-81 or -6.5000000000000002e-130 < t < -9.49999999999999985e-267 or 1.65000000000000006e-304 < t < 3.20000000000000022e-188 or 1.1199999999999999e-138 < t < 6.20000000000000021e-40Initial program 85.0%
Taylor expanded in b around 0 86.1%
Taylor expanded in y around inf 76.5%
if -1.7999999999999999e-81 < t < -6.5000000000000002e-130Initial program 67.3%
Taylor expanded in z around inf 89.6%
*-commutative89.6%
*-commutative89.6%
Simplified89.6%
if -9.49999999999999985e-267 < t < 1.65000000000000006e-304 or 3.20000000000000022e-188 < t < 1.1199999999999999e-138Initial program 60.5%
Taylor expanded in c around inf 85.8%
*-commutative85.8%
Simplified85.8%
if 6.20000000000000021e-40 < t < 1.56e40Initial program 92.1%
Taylor expanded in x around inf 77.3%
if 1.56e40 < t < 1.84999999999999991e226Initial program 67.0%
Taylor expanded in i around -inf 67.4%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ t_1 (* x (* y z))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= t -6.8e+95)
(* t (- (* b i) (* x a)))
(if (<= t -7e+65)
t_1
(if (<= t -4.2e+23)
(* b (- (* t i) (* z c)))
(if (<= t -3.7e-81)
(- t_1 (* a (* x t)))
(if (<= t -1.05e-130)
(* z (- (* x y) (* b c)))
(if (<= t -8.5e-264)
t_2
(if (<= t 1.65e-304)
t_3
(if (<= t 1.7e-188)
t_2
(if (<= t 6e-139)
t_3
(if (<= t 7e-40)
t_2
(if (<= t 1.02e+39)
(* x (- (* y z) (* t a)))
(if (<= t 2.2e+226)
(* i (- (* t b) (* y j)))
(* (* t b) (- i (* a (/ x b))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 + (x * (y * z));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (t <= -6.8e+95) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -7e+65) {
tmp = t_1;
} else if (t <= -4.2e+23) {
tmp = b * ((t * i) - (z * c));
} else if (t <= -3.7e-81) {
tmp = t_1 - (a * (x * t));
} else if (t <= -1.05e-130) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -8.5e-264) {
tmp = t_2;
} else if (t <= 1.65e-304) {
tmp = t_3;
} else if (t <= 1.7e-188) {
tmp = t_2;
} else if (t <= 6e-139) {
tmp = t_3;
} else if (t <= 7e-40) {
tmp = t_2;
} else if (t <= 1.02e+39) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 2.2e+226) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (t * b) * (i - (a * (x / b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t_1 + (x * (y * z))
t_3 = c * ((a * j) - (z * b))
if (t <= (-6.8d+95)) then
tmp = t * ((b * i) - (x * a))
else if (t <= (-7d+65)) then
tmp = t_1
else if (t <= (-4.2d+23)) then
tmp = b * ((t * i) - (z * c))
else if (t <= (-3.7d-81)) then
tmp = t_1 - (a * (x * t))
else if (t <= (-1.05d-130)) then
tmp = z * ((x * y) - (b * c))
else if (t <= (-8.5d-264)) then
tmp = t_2
else if (t <= 1.65d-304) then
tmp = t_3
else if (t <= 1.7d-188) then
tmp = t_2
else if (t <= 6d-139) then
tmp = t_3
else if (t <= 7d-40) then
tmp = t_2
else if (t <= 1.02d+39) then
tmp = x * ((y * z) - (t * a))
else if (t <= 2.2d+226) then
tmp = i * ((t * b) - (y * j))
else
tmp = (t * b) * (i - (a * (x / b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 + (x * (y * z));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (t <= -6.8e+95) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -7e+65) {
tmp = t_1;
} else if (t <= -4.2e+23) {
tmp = b * ((t * i) - (z * c));
} else if (t <= -3.7e-81) {
tmp = t_1 - (a * (x * t));
} else if (t <= -1.05e-130) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -8.5e-264) {
tmp = t_2;
} else if (t <= 1.65e-304) {
tmp = t_3;
} else if (t <= 1.7e-188) {
tmp = t_2;
} else if (t <= 6e-139) {
tmp = t_3;
} else if (t <= 7e-40) {
tmp = t_2;
} else if (t <= 1.02e+39) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 2.2e+226) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (t * b) * (i - (a * (x / b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 + (x * (y * z)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if t <= -6.8e+95: tmp = t * ((b * i) - (x * a)) elif t <= -7e+65: tmp = t_1 elif t <= -4.2e+23: tmp = b * ((t * i) - (z * c)) elif t <= -3.7e-81: tmp = t_1 - (a * (x * t)) elif t <= -1.05e-130: tmp = z * ((x * y) - (b * c)) elif t <= -8.5e-264: tmp = t_2 elif t <= 1.65e-304: tmp = t_3 elif t <= 1.7e-188: tmp = t_2 elif t <= 6e-139: tmp = t_3 elif t <= 7e-40: tmp = t_2 elif t <= 1.02e+39: tmp = x * ((y * z) - (t * a)) elif t <= 2.2e+226: tmp = i * ((t * b) - (y * j)) else: tmp = (t * b) * (i - (a * (x / b))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(x * Float64(y * z))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (t <= -6.8e+95) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= -7e+65) tmp = t_1; elseif (t <= -4.2e+23) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (t <= -3.7e-81) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (t <= -1.05e-130) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= -8.5e-264) tmp = t_2; elseif (t <= 1.65e-304) tmp = t_3; elseif (t <= 1.7e-188) tmp = t_2; elseif (t <= 6e-139) tmp = t_3; elseif (t <= 7e-40) tmp = t_2; elseif (t <= 1.02e+39) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 2.2e+226) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(t * b) * Float64(i - Float64(a * Float64(x / b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t_1 + (x * (y * z)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (t <= -6.8e+95) tmp = t * ((b * i) - (x * a)); elseif (t <= -7e+65) tmp = t_1; elseif (t <= -4.2e+23) tmp = b * ((t * i) - (z * c)); elseif (t <= -3.7e-81) tmp = t_1 - (a * (x * t)); elseif (t <= -1.05e-130) tmp = z * ((x * y) - (b * c)); elseif (t <= -8.5e-264) tmp = t_2; elseif (t <= 1.65e-304) tmp = t_3; elseif (t <= 1.7e-188) tmp = t_2; elseif (t <= 6e-139) tmp = t_3; elseif (t <= 7e-40) tmp = t_2; elseif (t <= 1.02e+39) tmp = x * ((y * z) - (t * a)); elseif (t <= 2.2e+226) tmp = i * ((t * b) - (y * j)); else tmp = (t * b) * (i - (a * (x / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.8e+95], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7e+65], t$95$1, If[LessEqual[t, -4.2e+23], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.7e-81], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-130], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.5e-264], t$95$2, If[LessEqual[t, 1.65e-304], t$95$3, If[LessEqual[t, 1.7e-188], t$95$2, If[LessEqual[t, 6e-139], t$95$3, If[LessEqual[t, 7e-40], t$95$2, If[LessEqual[t, 1.02e+39], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e+226], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * b), $MachinePrecision] * N[(i - N[(a * N[(x / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t\_1 + x \cdot \left(y \cdot z\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{+95}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq -7 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{+23}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{-81}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-130}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-264}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-304}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-188}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-139}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+39}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+226}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(i - a \cdot \frac{x}{b}\right)\\
\end{array}
\end{array}
if t < -6.80000000000000043e95Initial program 60.8%
Taylor expanded in t around inf 71.6%
distribute-lft-out--71.6%
*-commutative71.6%
Simplified71.6%
if -6.80000000000000043e95 < t < -7.0000000000000002e65Initial program 34.0%
Taylor expanded in j around inf 78.2%
if -7.0000000000000002e65 < t < -4.2000000000000003e23Initial program 79.4%
Taylor expanded in b around inf 97.0%
if -4.2000000000000003e23 < t < -3.69999999999999986e-81Initial program 82.1%
Taylor expanded in b around 0 88.0%
Taylor expanded in z around 0 82.2%
+-commutative82.2%
mul-1-neg82.2%
unsub-neg82.2%
*-commutative82.2%
Simplified82.2%
if -3.69999999999999986e-81 < t < -1.05000000000000001e-130Initial program 67.3%
Taylor expanded in z around inf 89.6%
*-commutative89.6%
*-commutative89.6%
Simplified89.6%
if -1.05000000000000001e-130 < t < -8.5000000000000001e-264 or 1.65000000000000006e-304 < t < 1.70000000000000014e-188 or 5.9999999999999998e-139 < t < 7.0000000000000003e-40Initial program 85.9%
Taylor expanded in b around 0 85.9%
Taylor expanded in y around inf 76.8%
if -8.5000000000000001e-264 < t < 1.65000000000000006e-304 or 1.70000000000000014e-188 < t < 5.9999999999999998e-139Initial program 60.5%
Taylor expanded in c around inf 85.8%
*-commutative85.8%
Simplified85.8%
if 7.0000000000000003e-40 < t < 1.02e39Initial program 92.1%
Taylor expanded in x around inf 77.3%
if 1.02e39 < t < 2.19999999999999994e226Initial program 67.0%
Taylor expanded in i around -inf 67.4%
if 2.19999999999999994e226 < t Initial program 66.8%
Taylor expanded in b around inf 61.9%
fma-define66.6%
associate-/l*61.9%
Simplified61.9%
Taylor expanded in t around inf 67.5%
associate-*r*71.9%
*-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
associate-/l*76.5%
Simplified76.5%
Final simplification76.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= t -4e+95)
(* t (- (* b i) (* x a)))
(if (<= t -9e+65)
t_1
(if (<= t -2.7e+26)
(* b (- (* t i) (* z c)))
(if (<= t -2.9e-81)
t_2
(if (<= t -3.5e-129)
(* z (- (* x y) (* b c)))
(if (<= t -1.1e-258)
t_2
(if (<= t 1.55e-304)
t_3
(if (<= t 5.8e-190)
t_2
(if (<= t 2.2e-138)
t_3
(if (<= t 5.2e+40)
t_2
(if (<= t 1.85e+226)
(* i (- (* t b) (* y j)))
(* (* t b) (- i (* a (/ x b)))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (t <= -4e+95) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -9e+65) {
tmp = t_1;
} else if (t <= -2.7e+26) {
tmp = b * ((t * i) - (z * c));
} else if (t <= -2.9e-81) {
tmp = t_2;
} else if (t <= -3.5e-129) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -1.1e-258) {
tmp = t_2;
} else if (t <= 1.55e-304) {
tmp = t_3;
} else if (t <= 5.8e-190) {
tmp = t_2;
} else if (t <= 2.2e-138) {
tmp = t_3;
} else if (t <= 5.2e+40) {
tmp = t_2;
} else if (t <= 1.85e+226) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (t * b) * (i - (a * (x / b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = (x * ((y * z) - (t * a))) + t_1
t_3 = c * ((a * j) - (z * b))
if (t <= (-4d+95)) then
tmp = t * ((b * i) - (x * a))
else if (t <= (-9d+65)) then
tmp = t_1
else if (t <= (-2.7d+26)) then
tmp = b * ((t * i) - (z * c))
else if (t <= (-2.9d-81)) then
tmp = t_2
else if (t <= (-3.5d-129)) then
tmp = z * ((x * y) - (b * c))
else if (t <= (-1.1d-258)) then
tmp = t_2
else if (t <= 1.55d-304) then
tmp = t_3
else if (t <= 5.8d-190) then
tmp = t_2
else if (t <= 2.2d-138) then
tmp = t_3
else if (t <= 5.2d+40) then
tmp = t_2
else if (t <= 1.85d+226) then
tmp = i * ((t * b) - (y * j))
else
tmp = (t * b) * (i - (a * (x / b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (t <= -4e+95) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -9e+65) {
tmp = t_1;
} else if (t <= -2.7e+26) {
tmp = b * ((t * i) - (z * c));
} else if (t <= -2.9e-81) {
tmp = t_2;
} else if (t <= -3.5e-129) {
tmp = z * ((x * y) - (b * c));
} else if (t <= -1.1e-258) {
tmp = t_2;
} else if (t <= 1.55e-304) {
tmp = t_3;
} else if (t <= 5.8e-190) {
tmp = t_2;
} else if (t <= 2.2e-138) {
tmp = t_3;
} else if (t <= 5.2e+40) {
tmp = t_2;
} else if (t <= 1.85e+226) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (t * b) * (i - (a * (x / b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = (x * ((y * z) - (t * a))) + t_1 t_3 = c * ((a * j) - (z * b)) tmp = 0 if t <= -4e+95: tmp = t * ((b * i) - (x * a)) elif t <= -9e+65: tmp = t_1 elif t <= -2.7e+26: tmp = b * ((t * i) - (z * c)) elif t <= -2.9e-81: tmp = t_2 elif t <= -3.5e-129: tmp = z * ((x * y) - (b * c)) elif t <= -1.1e-258: tmp = t_2 elif t <= 1.55e-304: tmp = t_3 elif t <= 5.8e-190: tmp = t_2 elif t <= 2.2e-138: tmp = t_3 elif t <= 5.2e+40: tmp = t_2 elif t <= 1.85e+226: tmp = i * ((t * b) - (y * j)) else: tmp = (t * b) * (i - (a * (x / b))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (t <= -4e+95) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= -9e+65) tmp = t_1; elseif (t <= -2.7e+26) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (t <= -2.9e-81) tmp = t_2; elseif (t <= -3.5e-129) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= -1.1e-258) tmp = t_2; elseif (t <= 1.55e-304) tmp = t_3; elseif (t <= 5.8e-190) tmp = t_2; elseif (t <= 2.2e-138) tmp = t_3; elseif (t <= 5.2e+40) tmp = t_2; elseif (t <= 1.85e+226) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(t * b) * Float64(i - Float64(a * Float64(x / b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = (x * ((y * z) - (t * a))) + t_1; t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (t <= -4e+95) tmp = t * ((b * i) - (x * a)); elseif (t <= -9e+65) tmp = t_1; elseif (t <= -2.7e+26) tmp = b * ((t * i) - (z * c)); elseif (t <= -2.9e-81) tmp = t_2; elseif (t <= -3.5e-129) tmp = z * ((x * y) - (b * c)); elseif (t <= -1.1e-258) tmp = t_2; elseif (t <= 1.55e-304) tmp = t_3; elseif (t <= 5.8e-190) tmp = t_2; elseif (t <= 2.2e-138) tmp = t_3; elseif (t <= 5.2e+40) tmp = t_2; elseif (t <= 1.85e+226) tmp = i * ((t * b) - (y * j)); else tmp = (t * b) * (i - (a * (x / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+95], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e+65], t$95$1, If[LessEqual[t, -2.7e+26], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.9e-81], t$95$2, If[LessEqual[t, -3.5e-129], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.1e-258], t$95$2, If[LessEqual[t, 1.55e-304], t$95$3, If[LessEqual[t, 5.8e-190], t$95$2, If[LessEqual[t, 2.2e-138], t$95$3, If[LessEqual[t, 5.2e+40], t$95$2, If[LessEqual[t, 1.85e+226], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * b), $MachinePrecision] * N[(i - N[(a * N[(x / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+95}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{+26}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{-81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-129}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-258}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-304}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-190}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-138}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+226}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(i - a \cdot \frac{x}{b}\right)\\
\end{array}
\end{array}
if t < -4.00000000000000008e95Initial program 60.8%
Taylor expanded in t around inf 71.6%
distribute-lft-out--71.6%
*-commutative71.6%
Simplified71.6%
if -4.00000000000000008e95 < t < -9e65Initial program 34.0%
Taylor expanded in j around inf 78.2%
if -9e65 < t < -2.7e26Initial program 79.4%
Taylor expanded in b around inf 97.0%
if -2.7e26 < t < -2.89999999999999989e-81 or -3.4999999999999997e-129 < t < -1.10000000000000008e-258 or 1.54999999999999992e-304 < t < 5.8000000000000004e-190 or 2.1999999999999999e-138 < t < 5.2000000000000001e40Initial program 86.1%
Taylor expanded in b around 0 85.1%
if -2.89999999999999989e-81 < t < -3.4999999999999997e-129Initial program 67.3%
Taylor expanded in z around inf 89.6%
*-commutative89.6%
*-commutative89.6%
Simplified89.6%
if -1.10000000000000008e-258 < t < 1.54999999999999992e-304 or 5.8000000000000004e-190 < t < 2.1999999999999999e-138Initial program 60.5%
Taylor expanded in c around inf 85.8%
*-commutative85.8%
Simplified85.8%
if 5.2000000000000001e40 < t < 1.84999999999999991e226Initial program 67.0%
Taylor expanded in i around -inf 67.4%
if 1.84999999999999991e226 < t Initial program 66.8%
Taylor expanded in b around inf 61.9%
fma-define66.6%
associate-/l*61.9%
Simplified61.9%
Taylor expanded in t around inf 67.5%
associate-*r*71.9%
*-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
associate-/l*76.5%
Simplified76.5%
Final simplification79.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (- t_1 (* b (- (* z c) (* t i)))) (* j (- (* a c) (* y i))))))
(if (<= t_2 INFINITY) 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 = x * ((y * z) - (t * a));
double t_2 = (t_1 - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (t_1 - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (t_1 - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (t_1 - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := \left(t\_1 - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in x around inf 50.5%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -5e+35)
t_2
(if (<= j -1.25e-115)
(* t (- (* b i) (* x a)))
(if (<= j 2.3e-183)
t_1
(if (<= j 8.5e-62)
(* b (- (* t i) (* z c)))
(if (<= j 1.26e+56)
t_1
(if (<= j 8e+152)
(* i (- (* t b) (* y j)))
(if (<= j 3.9e+198)
(* z (- (* x y) (* b c)))
(if (<= j 1.6e+210) (* a (- (* c j) (* x t))) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5e+35) {
tmp = t_2;
} else if (j <= -1.25e-115) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 2.3e-183) {
tmp = t_1;
} else if (j <= 8.5e-62) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 1.26e+56) {
tmp = t_1;
} else if (j <= 8e+152) {
tmp = i * ((t * b) - (y * j));
} else if (j <= 3.9e+198) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 1.6e+210) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-5d+35)) then
tmp = t_2
else if (j <= (-1.25d-115)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 2.3d-183) then
tmp = t_1
else if (j <= 8.5d-62) then
tmp = b * ((t * i) - (z * c))
else if (j <= 1.26d+56) then
tmp = t_1
else if (j <= 8d+152) then
tmp = i * ((t * b) - (y * j))
else if (j <= 3.9d+198) then
tmp = z * ((x * y) - (b * c))
else if (j <= 1.6d+210) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5e+35) {
tmp = t_2;
} else if (j <= -1.25e-115) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 2.3e-183) {
tmp = t_1;
} else if (j <= 8.5e-62) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 1.26e+56) {
tmp = t_1;
} else if (j <= 8e+152) {
tmp = i * ((t * b) - (y * j));
} else if (j <= 3.9e+198) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 1.6e+210) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -5e+35: tmp = t_2 elif j <= -1.25e-115: tmp = t * ((b * i) - (x * a)) elif j <= 2.3e-183: tmp = t_1 elif j <= 8.5e-62: tmp = b * ((t * i) - (z * c)) elif j <= 1.26e+56: tmp = t_1 elif j <= 8e+152: tmp = i * ((t * b) - (y * j)) elif j <= 3.9e+198: tmp = z * ((x * y) - (b * c)) elif j <= 1.6e+210: tmp = a * ((c * j) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -5e+35) tmp = t_2; elseif (j <= -1.25e-115) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 2.3e-183) tmp = t_1; elseif (j <= 8.5e-62) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 1.26e+56) tmp = t_1; elseif (j <= 8e+152) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (j <= 3.9e+198) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 1.6e+210) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -5e+35) tmp = t_2; elseif (j <= -1.25e-115) tmp = t * ((b * i) - (x * a)); elseif (j <= 2.3e-183) tmp = t_1; elseif (j <= 8.5e-62) tmp = b * ((t * i) - (z * c)); elseif (j <= 1.26e+56) tmp = t_1; elseif (j <= 8e+152) tmp = i * ((t * b) - (y * j)); elseif (j <= 3.9e+198) tmp = z * ((x * y) - (b * c)); elseif (j <= 1.6e+210) tmp = a * ((c * j) - (x * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5e+35], t$95$2, If[LessEqual[j, -1.25e-115], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-183], t$95$1, If[LessEqual[j, 8.5e-62], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.26e+56], t$95$1, If[LessEqual[j, 8e+152], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.9e+198], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.6e+210], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -5 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.25 \cdot 10^{-115}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-183}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.26 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 8 \cdot 10^{+152}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 3.9 \cdot 10^{+198}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+210}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -5.00000000000000021e35 or 1.6000000000000001e210 < j Initial program 69.4%
Taylor expanded in j around inf 68.7%
if -5.00000000000000021e35 < j < -1.2500000000000001e-115Initial program 82.4%
Taylor expanded in t around inf 68.7%
distribute-lft-out--68.7%
*-commutative68.7%
Simplified68.7%
if -1.2500000000000001e-115 < j < 2.30000000000000016e-183 or 8.4999999999999995e-62 < j < 1.2599999999999999e56Initial program 76.4%
Taylor expanded in x around inf 61.8%
if 2.30000000000000016e-183 < j < 8.4999999999999995e-62Initial program 75.2%
Taylor expanded in b around inf 64.7%
if 1.2599999999999999e56 < j < 8.0000000000000004e152Initial program 68.5%
Taylor expanded in i around -inf 56.3%
if 8.0000000000000004e152 < j < 3.9e198Initial program 36.2%
Taylor expanded in z around inf 72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if 3.9e198 < j < 1.6000000000000001e210Initial program 59.7%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* (* x t) (- a))) (t_3 (* c (* z (- b)))))
(if (<= b -3.4e-13)
t_3
(if (<= b -5.4e-167)
(* a (* c j))
(if (<= b -6.2e-243)
t_2
(if (<= b -1.2e-249)
t_1
(if (<= b 5.7e-294)
(* j (- (* y i)))
(if (<= b 7.2e-94)
t_2
(if (<= b 3.7e+40)
t_1
(if (<= b 1.3e+147) (* t (* b i)) t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = (x * t) * -a;
double t_3 = c * (z * -b);
double tmp;
if (b <= -3.4e-13) {
tmp = t_3;
} else if (b <= -5.4e-167) {
tmp = a * (c * j);
} else if (b <= -6.2e-243) {
tmp = t_2;
} else if (b <= -1.2e-249) {
tmp = t_1;
} else if (b <= 5.7e-294) {
tmp = j * -(y * i);
} else if (b <= 7.2e-94) {
tmp = t_2;
} else if (b <= 3.7e+40) {
tmp = t_1;
} else if (b <= 1.3e+147) {
tmp = t * (b * i);
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (x * y)
t_2 = (x * t) * -a
t_3 = c * (z * -b)
if (b <= (-3.4d-13)) then
tmp = t_3
else if (b <= (-5.4d-167)) then
tmp = a * (c * j)
else if (b <= (-6.2d-243)) then
tmp = t_2
else if (b <= (-1.2d-249)) then
tmp = t_1
else if (b <= 5.7d-294) then
tmp = j * -(y * i)
else if (b <= 7.2d-94) then
tmp = t_2
else if (b <= 3.7d+40) then
tmp = t_1
else if (b <= 1.3d+147) then
tmp = t * (b * i)
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = (x * t) * -a;
double t_3 = c * (z * -b);
double tmp;
if (b <= -3.4e-13) {
tmp = t_3;
} else if (b <= -5.4e-167) {
tmp = a * (c * j);
} else if (b <= -6.2e-243) {
tmp = t_2;
} else if (b <= -1.2e-249) {
tmp = t_1;
} else if (b <= 5.7e-294) {
tmp = j * -(y * i);
} else if (b <= 7.2e-94) {
tmp = t_2;
} else if (b <= 3.7e+40) {
tmp = t_1;
} else if (b <= 1.3e+147) {
tmp = t * (b * i);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = (x * t) * -a t_3 = c * (z * -b) tmp = 0 if b <= -3.4e-13: tmp = t_3 elif b <= -5.4e-167: tmp = a * (c * j) elif b <= -6.2e-243: tmp = t_2 elif b <= -1.2e-249: tmp = t_1 elif b <= 5.7e-294: tmp = j * -(y * i) elif b <= 7.2e-94: tmp = t_2 elif b <= 3.7e+40: tmp = t_1 elif b <= 1.3e+147: tmp = t * (b * i) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(Float64(x * t) * Float64(-a)) t_3 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (b <= -3.4e-13) tmp = t_3; elseif (b <= -5.4e-167) tmp = Float64(a * Float64(c * j)); elseif (b <= -6.2e-243) tmp = t_2; elseif (b <= -1.2e-249) tmp = t_1; elseif (b <= 5.7e-294) tmp = Float64(j * Float64(-Float64(y * i))); elseif (b <= 7.2e-94) tmp = t_2; elseif (b <= 3.7e+40) tmp = t_1; elseif (b <= 1.3e+147) tmp = Float64(t * Float64(b * i)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = (x * t) * -a; t_3 = c * (z * -b); tmp = 0.0; if (b <= -3.4e-13) tmp = t_3; elseif (b <= -5.4e-167) tmp = a * (c * j); elseif (b <= -6.2e-243) tmp = t_2; elseif (b <= -1.2e-249) tmp = t_1; elseif (b <= 5.7e-294) tmp = j * -(y * i); elseif (b <= 7.2e-94) tmp = t_2; elseif (b <= 3.7e+40) tmp = t_1; elseif (b <= 1.3e+147) tmp = t * (b * i); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e-13], t$95$3, If[LessEqual[b, -5.4e-167], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e-243], t$95$2, If[LessEqual[b, -1.2e-249], t$95$1, If[LessEqual[b, 5.7e-294], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 7.2e-94], t$95$2, If[LessEqual[b, 3.7e+40], t$95$1, If[LessEqual[b, 1.3e+147], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := \left(x \cdot t\right) \cdot \left(-a\right)\\
t_3 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{-13}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -5.4 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-243}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{-294}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-94}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+147}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -3.40000000000000015e-13 or 1.2999999999999999e147 < b Initial program 70.5%
Taylor expanded in c around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in j around 0 44.9%
mul-1-neg44.9%
*-commutative44.9%
distribute-lft-neg-in44.9%
Simplified44.9%
if -3.40000000000000015e-13 < b < -5.4000000000000001e-167Initial program 77.6%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in j around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -5.4000000000000001e-167 < b < -6.1999999999999999e-243 or 5.70000000000000032e-294 < b < 7.2e-94Initial program 72.4%
Taylor expanded in a around inf 60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in j around 0 39.8%
neg-mul-139.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
Simplified39.8%
if -6.1999999999999999e-243 < b < -1.20000000000000006e-249 or 7.2e-94 < b < 3.7e40Initial program 73.2%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around inf 44.3%
*-commutative44.3%
Simplified44.3%
if -1.20000000000000006e-249 < b < 5.70000000000000032e-294Initial program 63.3%
Taylor expanded in j around inf 69.3%
Taylor expanded in a around 0 59.5%
neg-mul-159.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
if 3.7e40 < b < 1.2999999999999999e147Initial program 73.7%
Taylor expanded in b around inf 55.1%
Taylor expanded in i around inf 46.5%
associate-*r*50.6%
*-commutative50.6%
Simplified50.6%
Final simplification44.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* c (* z (- b)))))
(if (<= b -1.1e-13)
t_2
(if (<= b -3.4e-167)
(* a (* c j))
(if (<= b -7e-245)
(* (* x a) (- t))
(if (<= b -2.15e-249)
t_1
(if (<= b 9.2e-298)
(* j (- (* y i)))
(if (<= b 6.8e-94)
(* (* x t) (- a))
(if (<= b 6e+40)
t_1
(if (<= b 4e+146) (* t (* b i)) t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = c * (z * -b);
double tmp;
if (b <= -1.1e-13) {
tmp = t_2;
} else if (b <= -3.4e-167) {
tmp = a * (c * j);
} else if (b <= -7e-245) {
tmp = (x * a) * -t;
} else if (b <= -2.15e-249) {
tmp = t_1;
} else if (b <= 9.2e-298) {
tmp = j * -(y * i);
} else if (b <= 6.8e-94) {
tmp = (x * t) * -a;
} else if (b <= 6e+40) {
tmp = t_1;
} else if (b <= 4e+146) {
tmp = t * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (x * y)
t_2 = c * (z * -b)
if (b <= (-1.1d-13)) then
tmp = t_2
else if (b <= (-3.4d-167)) then
tmp = a * (c * j)
else if (b <= (-7d-245)) then
tmp = (x * a) * -t
else if (b <= (-2.15d-249)) then
tmp = t_1
else if (b <= 9.2d-298) then
tmp = j * -(y * i)
else if (b <= 6.8d-94) then
tmp = (x * t) * -a
else if (b <= 6d+40) then
tmp = t_1
else if (b <= 4d+146) then
tmp = t * (b * i)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = c * (z * -b);
double tmp;
if (b <= -1.1e-13) {
tmp = t_2;
} else if (b <= -3.4e-167) {
tmp = a * (c * j);
} else if (b <= -7e-245) {
tmp = (x * a) * -t;
} else if (b <= -2.15e-249) {
tmp = t_1;
} else if (b <= 9.2e-298) {
tmp = j * -(y * i);
} else if (b <= 6.8e-94) {
tmp = (x * t) * -a;
} else if (b <= 6e+40) {
tmp = t_1;
} else if (b <= 4e+146) {
tmp = t * (b * i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = c * (z * -b) tmp = 0 if b <= -1.1e-13: tmp = t_2 elif b <= -3.4e-167: tmp = a * (c * j) elif b <= -7e-245: tmp = (x * a) * -t elif b <= -2.15e-249: tmp = t_1 elif b <= 9.2e-298: tmp = j * -(y * i) elif b <= 6.8e-94: tmp = (x * t) * -a elif b <= 6e+40: tmp = t_1 elif b <= 4e+146: tmp = t * (b * i) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (b <= -1.1e-13) tmp = t_2; elseif (b <= -3.4e-167) tmp = Float64(a * Float64(c * j)); elseif (b <= -7e-245) tmp = Float64(Float64(x * a) * Float64(-t)); elseif (b <= -2.15e-249) tmp = t_1; elseif (b <= 9.2e-298) tmp = Float64(j * Float64(-Float64(y * i))); elseif (b <= 6.8e-94) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 6e+40) tmp = t_1; elseif (b <= 4e+146) tmp = Float64(t * Float64(b * i)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = c * (z * -b); tmp = 0.0; if (b <= -1.1e-13) tmp = t_2; elseif (b <= -3.4e-167) tmp = a * (c * j); elseif (b <= -7e-245) tmp = (x * a) * -t; elseif (b <= -2.15e-249) tmp = t_1; elseif (b <= 9.2e-298) tmp = j * -(y * i); elseif (b <= 6.8e-94) tmp = (x * t) * -a; elseif (b <= 6e+40) tmp = t_1; elseif (b <= 4e+146) tmp = t * (b * i); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.1e-13], t$95$2, If[LessEqual[b, -3.4e-167], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7e-245], N[(N[(x * a), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[b, -2.15e-249], t$95$1, If[LessEqual[b, 9.2e-298], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 6.8e-94], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 6e+40], t$95$1, If[LessEqual[b, 4e+146], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{-13}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-245}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(-t\right)\\
\mathbf{elif}\;b \leq -2.15 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-298}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-94}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+146}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.09999999999999998e-13 or 3.99999999999999973e146 < b Initial program 70.5%
Taylor expanded in c around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in j around 0 44.9%
mul-1-neg44.9%
*-commutative44.9%
distribute-lft-neg-in44.9%
Simplified44.9%
if -1.09999999999999998e-13 < b < -3.3999999999999997e-167Initial program 77.6%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in j around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -3.3999999999999997e-167 < b < -7.00000000000000033e-245Initial program 56.6%
Taylor expanded in t around inf 56.9%
distribute-lft-out--56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 39.6%
mul-1-neg39.6%
*-commutative39.6%
associate-*l*45.6%
*-commutative45.6%
distribute-rgt-neg-out45.6%
distribute-rgt-neg-in45.6%
Simplified45.6%
if -7.00000000000000033e-245 < b < -2.1500000000000001e-249 or 6.7999999999999996e-94 < b < 6.0000000000000004e40Initial program 73.2%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around inf 44.3%
*-commutative44.3%
Simplified44.3%
if -2.1500000000000001e-249 < b < 9.2000000000000003e-298Initial program 63.3%
Taylor expanded in j around inf 69.3%
Taylor expanded in a around 0 59.5%
neg-mul-159.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
if 9.2000000000000003e-298 < b < 6.7999999999999996e-94Initial program 80.5%
Taylor expanded in a around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in j around 0 40.0%
neg-mul-140.0%
distribute-lft-neg-in40.0%
*-commutative40.0%
Simplified40.0%
if 6.0000000000000004e40 < b < 3.99999999999999973e146Initial program 73.7%
Taylor expanded in b around inf 55.1%
Taylor expanded in i around inf 46.5%
associate-*r*50.6%
*-commutative50.6%
Simplified50.6%
Final simplification44.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= b -6.2e-15)
(* c (* z (- b)))
(if (<= b -5.8e-167)
(* a (* c j))
(if (<= b -2.5e-243)
(* (* x a) (- t))
(if (<= b -3.1e-249)
t_1
(if (<= b 1.3e-296)
(* j (- (* y i)))
(if (<= b 4.7e-94)
(* (* x t) (- a))
(if (<= b 3.8e+40)
t_1
(if (<= b 5.5e+148) (* t (* b i)) (* b (* c (- z)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (b <= -6.2e-15) {
tmp = c * (z * -b);
} else if (b <= -5.8e-167) {
tmp = a * (c * j);
} else if (b <= -2.5e-243) {
tmp = (x * a) * -t;
} else if (b <= -3.1e-249) {
tmp = t_1;
} else if (b <= 1.3e-296) {
tmp = j * -(y * i);
} else if (b <= 4.7e-94) {
tmp = (x * t) * -a;
} else if (b <= 3.8e+40) {
tmp = t_1;
} else if (b <= 5.5e+148) {
tmp = t * (b * i);
} else {
tmp = b * (c * -z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (b <= (-6.2d-15)) then
tmp = c * (z * -b)
else if (b <= (-5.8d-167)) then
tmp = a * (c * j)
else if (b <= (-2.5d-243)) then
tmp = (x * a) * -t
else if (b <= (-3.1d-249)) then
tmp = t_1
else if (b <= 1.3d-296) then
tmp = j * -(y * i)
else if (b <= 4.7d-94) then
tmp = (x * t) * -a
else if (b <= 3.8d+40) then
tmp = t_1
else if (b <= 5.5d+148) then
tmp = t * (b * i)
else
tmp = b * (c * -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 = z * (x * y);
double tmp;
if (b <= -6.2e-15) {
tmp = c * (z * -b);
} else if (b <= -5.8e-167) {
tmp = a * (c * j);
} else if (b <= -2.5e-243) {
tmp = (x * a) * -t;
} else if (b <= -3.1e-249) {
tmp = t_1;
} else if (b <= 1.3e-296) {
tmp = j * -(y * i);
} else if (b <= 4.7e-94) {
tmp = (x * t) * -a;
} else if (b <= 3.8e+40) {
tmp = t_1;
} else if (b <= 5.5e+148) {
tmp = t * (b * i);
} else {
tmp = b * (c * -z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if b <= -6.2e-15: tmp = c * (z * -b) elif b <= -5.8e-167: tmp = a * (c * j) elif b <= -2.5e-243: tmp = (x * a) * -t elif b <= -3.1e-249: tmp = t_1 elif b <= 1.3e-296: tmp = j * -(y * i) elif b <= 4.7e-94: tmp = (x * t) * -a elif b <= 3.8e+40: tmp = t_1 elif b <= 5.5e+148: tmp = t * (b * i) else: tmp = b * (c * -z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (b <= -6.2e-15) tmp = Float64(c * Float64(z * Float64(-b))); elseif (b <= -5.8e-167) tmp = Float64(a * Float64(c * j)); elseif (b <= -2.5e-243) tmp = Float64(Float64(x * a) * Float64(-t)); elseif (b <= -3.1e-249) tmp = t_1; elseif (b <= 1.3e-296) tmp = Float64(j * Float64(-Float64(y * i))); elseif (b <= 4.7e-94) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 3.8e+40) tmp = t_1; elseif (b <= 5.5e+148) tmp = Float64(t * Float64(b * i)); else tmp = Float64(b * Float64(c * Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (b <= -6.2e-15) tmp = c * (z * -b); elseif (b <= -5.8e-167) tmp = a * (c * j); elseif (b <= -2.5e-243) tmp = (x * a) * -t; elseif (b <= -3.1e-249) tmp = t_1; elseif (b <= 1.3e-296) tmp = j * -(y * i); elseif (b <= 4.7e-94) tmp = (x * t) * -a; elseif (b <= 3.8e+40) tmp = t_1; elseif (b <= 5.5e+148) tmp = t * (b * i); else tmp = b * (c * -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e-15], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.8e-167], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-243], N[(N[(x * a), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[b, -3.1e-249], t$95$1, If[LessEqual[b, 1.3e-296], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 4.7e-94], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 3.8e+40], t$95$1, If[LessEqual[b, 5.5e+148], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{-15}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-243}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(-t\right)\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-296}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{-94}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+148}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\end{array}
\end{array}
if b < -6.1999999999999998e-15Initial program 76.0%
Taylor expanded in c around inf 53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in j around 0 43.8%
mul-1-neg43.8%
*-commutative43.8%
distribute-lft-neg-in43.8%
Simplified43.8%
if -6.1999999999999998e-15 < b < -5.80000000000000005e-167Initial program 77.6%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in j around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -5.80000000000000005e-167 < b < -2.5e-243Initial program 56.6%
Taylor expanded in t around inf 56.9%
distribute-lft-out--56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in a around inf 39.6%
mul-1-neg39.6%
*-commutative39.6%
associate-*l*45.6%
*-commutative45.6%
distribute-rgt-neg-out45.6%
distribute-rgt-neg-in45.6%
Simplified45.6%
if -2.5e-243 < b < -3.09999999999999986e-249 or 4.70000000000000003e-94 < b < 3.80000000000000004e40Initial program 73.2%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around inf 44.3%
*-commutative44.3%
Simplified44.3%
if -3.09999999999999986e-249 < b < 1.3e-296Initial program 63.3%
Taylor expanded in j around inf 69.3%
Taylor expanded in a around 0 59.5%
neg-mul-159.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
if 1.3e-296 < b < 4.70000000000000003e-94Initial program 80.5%
Taylor expanded in a around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in j around 0 40.0%
neg-mul-140.0%
distribute-lft-neg-in40.0%
*-commutative40.0%
Simplified40.0%
if 3.80000000000000004e40 < b < 5.5e148Initial program 73.7%
Taylor expanded in b around inf 55.1%
Taylor expanded in i around inf 46.5%
associate-*r*50.6%
*-commutative50.6%
Simplified50.6%
if 5.5e148 < b Initial program 62.5%
Taylor expanded in z around inf 46.8%
*-commutative46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in y around 0 48.6%
associate-*r*48.6%
neg-mul-148.6%
Simplified48.6%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3.9e-11)
(* c (* z (- b)))
(if (<= b -4e-167)
(* a (* c j))
(if (<= b -1.08e-238)
(* (* x a) (- t))
(if (<= b -1e-259)
(* i (* y (- j)))
(if (<= b 1e-290)
(* y (* i (- j)))
(if (<= b 5.5e-94)
(* (* x t) (- a))
(if (<= b 4.1e+40)
(* z (* x y))
(if (<= b 4.7e+145) (* t (* b i)) (* b (* c (- z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.9e-11) {
tmp = c * (z * -b);
} else if (b <= -4e-167) {
tmp = a * (c * j);
} else if (b <= -1.08e-238) {
tmp = (x * a) * -t;
} else if (b <= -1e-259) {
tmp = i * (y * -j);
} else if (b <= 1e-290) {
tmp = y * (i * -j);
} else if (b <= 5.5e-94) {
tmp = (x * t) * -a;
} else if (b <= 4.1e+40) {
tmp = z * (x * y);
} else if (b <= 4.7e+145) {
tmp = t * (b * i);
} else {
tmp = b * (c * -z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3.9d-11)) then
tmp = c * (z * -b)
else if (b <= (-4d-167)) then
tmp = a * (c * j)
else if (b <= (-1.08d-238)) then
tmp = (x * a) * -t
else if (b <= (-1d-259)) then
tmp = i * (y * -j)
else if (b <= 1d-290) then
tmp = y * (i * -j)
else if (b <= 5.5d-94) then
tmp = (x * t) * -a
else if (b <= 4.1d+40) then
tmp = z * (x * y)
else if (b <= 4.7d+145) then
tmp = t * (b * i)
else
tmp = b * (c * -z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.9e-11) {
tmp = c * (z * -b);
} else if (b <= -4e-167) {
tmp = a * (c * j);
} else if (b <= -1.08e-238) {
tmp = (x * a) * -t;
} else if (b <= -1e-259) {
tmp = i * (y * -j);
} else if (b <= 1e-290) {
tmp = y * (i * -j);
} else if (b <= 5.5e-94) {
tmp = (x * t) * -a;
} else if (b <= 4.1e+40) {
tmp = z * (x * y);
} else if (b <= 4.7e+145) {
tmp = t * (b * i);
} else {
tmp = b * (c * -z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.9e-11: tmp = c * (z * -b) elif b <= -4e-167: tmp = a * (c * j) elif b <= -1.08e-238: tmp = (x * a) * -t elif b <= -1e-259: tmp = i * (y * -j) elif b <= 1e-290: tmp = y * (i * -j) elif b <= 5.5e-94: tmp = (x * t) * -a elif b <= 4.1e+40: tmp = z * (x * y) elif b <= 4.7e+145: tmp = t * (b * i) else: tmp = b * (c * -z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.9e-11) tmp = Float64(c * Float64(z * Float64(-b))); elseif (b <= -4e-167) tmp = Float64(a * Float64(c * j)); elseif (b <= -1.08e-238) tmp = Float64(Float64(x * a) * Float64(-t)); elseif (b <= -1e-259) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= 1e-290) tmp = Float64(y * Float64(i * Float64(-j))); elseif (b <= 5.5e-94) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 4.1e+40) tmp = Float64(z * Float64(x * y)); elseif (b <= 4.7e+145) tmp = Float64(t * Float64(b * i)); else tmp = Float64(b * Float64(c * Float64(-z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.9e-11) tmp = c * (z * -b); elseif (b <= -4e-167) tmp = a * (c * j); elseif (b <= -1.08e-238) tmp = (x * a) * -t; elseif (b <= -1e-259) tmp = i * (y * -j); elseif (b <= 1e-290) tmp = y * (i * -j); elseif (b <= 5.5e-94) tmp = (x * t) * -a; elseif (b <= 4.1e+40) tmp = z * (x * y); elseif (b <= 4.7e+145) tmp = t * (b * i); else tmp = b * (c * -z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.9e-11], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4e-167], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.08e-238], N[(N[(x * a), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[b, -1e-259], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-290], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-94], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 4.1e+40], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.7e+145], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.9 \cdot 10^{-11}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -1.08 \cdot 10^{-238}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(-t\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-259}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 10^{-290}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-94}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{+40}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{+145}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\end{array}
\end{array}
if b < -3.9000000000000001e-11Initial program 76.0%
Taylor expanded in c around inf 53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in j around 0 43.8%
mul-1-neg43.8%
*-commutative43.8%
distribute-lft-neg-in43.8%
Simplified43.8%
if -3.9000000000000001e-11 < b < -4.00000000000000001e-167Initial program 77.6%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in j around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -4.00000000000000001e-167 < b < -1.08e-238Initial program 57.6%
Taylor expanded in t around inf 64.8%
distribute-lft-out--64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in a around inf 44.6%
mul-1-neg44.6%
*-commutative44.6%
associate-*l*51.5%
*-commutative51.5%
distribute-rgt-neg-out51.5%
distribute-rgt-neg-in51.5%
Simplified51.5%
if -1.08e-238 < b < -1.0000000000000001e-259Initial program 57.7%
Taylor expanded in j around inf 45.9%
Taylor expanded in a around 0 59.4%
associate-*r*59.4%
neg-mul-159.4%
Simplified59.4%
if -1.0000000000000001e-259 < b < 1.0000000000000001e-290Initial program 66.7%
Taylor expanded in j around inf 72.4%
Taylor expanded in a around 0 46.0%
mul-1-neg46.0%
associate-*r*56.6%
distribute-rgt-neg-in56.6%
*-commutative56.6%
Simplified56.6%
if 1.0000000000000001e-290 < b < 5.49999999999999989e-94Initial program 79.2%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in j around 0 42.5%
neg-mul-142.5%
distribute-lft-neg-in42.5%
*-commutative42.5%
Simplified42.5%
if 5.49999999999999989e-94 < b < 4.1000000000000002e40Initial program 74.9%
Taylor expanded in z around inf 47.3%
*-commutative47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in y around inf 40.4%
*-commutative40.4%
Simplified40.4%
if 4.1000000000000002e40 < b < 4.7000000000000002e145Initial program 73.7%
Taylor expanded in b around inf 55.1%
Taylor expanded in i around inf 46.5%
associate-*r*50.6%
*-commutative50.6%
Simplified50.6%
if 4.7000000000000002e145 < b Initial program 62.5%
Taylor expanded in z around inf 46.8%
*-commutative46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in y around 0 48.6%
associate-*r*48.6%
neg-mul-148.6%
Simplified48.6%
Final simplification45.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -1.56e+29)
t_2
(if (<= j 3.6e-185)
t_1
(if (<= j 2.1e-63)
(* b (- (* t i) (* z c)))
(if (<= j 1.65e+14)
t_1
(if (<= j 1.15e+153)
t_2
(if (<= j 2.2e+198)
t_1
(if (<= j 8e+282) (* a (- (* c j) (* x t))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.56e+29) {
tmp = t_2;
} else if (j <= 3.6e-185) {
tmp = t_1;
} else if (j <= 2.1e-63) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 1.65e+14) {
tmp = t_1;
} else if (j <= 1.15e+153) {
tmp = t_2;
} else if (j <= 2.2e+198) {
tmp = t_1;
} else if (j <= 8e+282) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-1.56d+29)) then
tmp = t_2
else if (j <= 3.6d-185) then
tmp = t_1
else if (j <= 2.1d-63) then
tmp = b * ((t * i) - (z * c))
else if (j <= 1.65d+14) then
tmp = t_1
else if (j <= 1.15d+153) then
tmp = t_2
else if (j <= 2.2d+198) then
tmp = t_1
else if (j <= 8d+282) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.56e+29) {
tmp = t_2;
} else if (j <= 3.6e-185) {
tmp = t_1;
} else if (j <= 2.1e-63) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 1.65e+14) {
tmp = t_1;
} else if (j <= 1.15e+153) {
tmp = t_2;
} else if (j <= 2.2e+198) {
tmp = t_1;
} else if (j <= 8e+282) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.56e+29: tmp = t_2 elif j <= 3.6e-185: tmp = t_1 elif j <= 2.1e-63: tmp = b * ((t * i) - (z * c)) elif j <= 1.65e+14: tmp = t_1 elif j <= 1.15e+153: tmp = t_2 elif j <= 2.2e+198: tmp = t_1 elif j <= 8e+282: tmp = a * ((c * j) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.56e+29) tmp = t_2; elseif (j <= 3.6e-185) tmp = t_1; elseif (j <= 2.1e-63) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 1.65e+14) tmp = t_1; elseif (j <= 1.15e+153) tmp = t_2; elseif (j <= 2.2e+198) tmp = t_1; elseif (j <= 8e+282) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.56e+29) tmp = t_2; elseif (j <= 3.6e-185) tmp = t_1; elseif (j <= 2.1e-63) tmp = b * ((t * i) - (z * c)); elseif (j <= 1.65e+14) tmp = t_1; elseif (j <= 1.15e+153) tmp = t_2; elseif (j <= 2.2e+198) tmp = t_1; elseif (j <= 8e+282) tmp = a * ((c * j) - (x * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.56e+29], t$95$2, If[LessEqual[j, 3.6e-185], t$95$1, If[LessEqual[j, 2.1e-63], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.65e+14], t$95$1, If[LessEqual[j, 1.15e+153], t$95$2, If[LessEqual[j, 2.2e+198], t$95$1, If[LessEqual[j, 8e+282], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.56 \cdot 10^{+29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{-185}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.1 \cdot 10^{-63}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.65 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+153}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 8 \cdot 10^{+282}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -1.5599999999999999e29 or 1.65e14 < j < 1.1500000000000001e153 or 8.00000000000000026e282 < j Initial program 74.8%
Taylor expanded in j around inf 60.9%
if -1.5599999999999999e29 < j < 3.5999999999999998e-185 or 2.1e-63 < j < 1.65e14 or 1.1500000000000001e153 < j < 2.2e198Initial program 72.3%
Taylor expanded in x around inf 61.3%
if 3.5999999999999998e-185 < j < 2.1e-63Initial program 75.2%
Taylor expanded in b around inf 64.7%
if 2.2e198 < j < 8.00000000000000026e282Initial program 49.9%
Taylor expanded in a around inf 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
*-commutative73.1%
Simplified73.1%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.6e+32)
t_2
(if (<= j 3.6e-186)
t_1
(if (<= j 1.1e-60)
(* b (- (* t i) (* z c)))
(if (<= j 4.75e+55)
t_1
(if (<= j 1.3e+152)
(* i (- (* t b) (* y j)))
(if (<= j 2e+198)
(* z (- (* x y) (* b c)))
(if (<= j 3.15e+211) (* a (- (* c j) (* x t))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.6e+32) {
tmp = t_2;
} else if (j <= 3.6e-186) {
tmp = t_1;
} else if (j <= 1.1e-60) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 4.75e+55) {
tmp = t_1;
} else if (j <= 1.3e+152) {
tmp = i * ((t * b) - (y * j));
} else if (j <= 2e+198) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.15e+211) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-2.6d+32)) then
tmp = t_2
else if (j <= 3.6d-186) then
tmp = t_1
else if (j <= 1.1d-60) then
tmp = b * ((t * i) - (z * c))
else if (j <= 4.75d+55) then
tmp = t_1
else if (j <= 1.3d+152) then
tmp = i * ((t * b) - (y * j))
else if (j <= 2d+198) then
tmp = z * ((x * y) - (b * c))
else if (j <= 3.15d+211) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.6e+32) {
tmp = t_2;
} else if (j <= 3.6e-186) {
tmp = t_1;
} else if (j <= 1.1e-60) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 4.75e+55) {
tmp = t_1;
} else if (j <= 1.3e+152) {
tmp = i * ((t * b) - (y * j));
} else if (j <= 2e+198) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 3.15e+211) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.6e+32: tmp = t_2 elif j <= 3.6e-186: tmp = t_1 elif j <= 1.1e-60: tmp = b * ((t * i) - (z * c)) elif j <= 4.75e+55: tmp = t_1 elif j <= 1.3e+152: tmp = i * ((t * b) - (y * j)) elif j <= 2e+198: tmp = z * ((x * y) - (b * c)) elif j <= 3.15e+211: tmp = a * ((c * j) - (x * t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.6e+32) tmp = t_2; elseif (j <= 3.6e-186) tmp = t_1; elseif (j <= 1.1e-60) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 4.75e+55) tmp = t_1; elseif (j <= 1.3e+152) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (j <= 2e+198) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 3.15e+211) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.6e+32) tmp = t_2; elseif (j <= 3.6e-186) tmp = t_1; elseif (j <= 1.1e-60) tmp = b * ((t * i) - (z * c)); elseif (j <= 4.75e+55) tmp = t_1; elseif (j <= 1.3e+152) tmp = i * ((t * b) - (y * j)); elseif (j <= 2e+198) tmp = z * ((x * y) - (b * c)); elseif (j <= 3.15e+211) tmp = a * ((c * j) - (x * t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.6e+32], t$95$2, If[LessEqual[j, 3.6e-186], t$95$1, If[LessEqual[j, 1.1e-60], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.75e+55], t$95$1, If[LessEqual[j, 1.3e+152], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+198], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.15e+211], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.6 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{-186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 4.75 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+152}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+198}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 3.15 \cdot 10^{+211}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.6000000000000002e32 or 3.1500000000000002e211 < j Initial program 69.8%
Taylor expanded in j around inf 69.1%
if -2.6000000000000002e32 < j < 3.5999999999999998e-186 or 1.0999999999999999e-60 < j < 4.74999999999999995e55Initial program 77.7%
Taylor expanded in x around inf 58.9%
if 3.5999999999999998e-186 < j < 1.0999999999999999e-60Initial program 75.2%
Taylor expanded in b around inf 64.7%
if 4.74999999999999995e55 < j < 1.3e152Initial program 68.5%
Taylor expanded in i around -inf 56.3%
if 1.3e152 < j < 2.00000000000000004e198Initial program 36.2%
Taylor expanded in z around inf 72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if 2.00000000000000004e198 < j < 3.1500000000000002e211Initial program 59.7%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Final simplification63.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -6e+35)
t_2
(if (<= j -8.2e-116)
(* t (- (* b i) (* x a)))
(if (<= j 3.45e-183)
t_1
(if (<= j 4.3e-62)
(* b (- (* t i) (* z c)))
(if (<= j 9.5e+55)
t_1
(if (<= j 4.5e+198) (* (* b i) (- t (* j (/ y 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 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -6e+35) {
tmp = t_2;
} else if (j <= -8.2e-116) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 3.45e-183) {
tmp = t_1;
} else if (j <= 4.3e-62) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 9.5e+55) {
tmp = t_1;
} else if (j <= 4.5e+198) {
tmp = (b * i) * (t - (j * (y / 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 = x * ((y * z) - (t * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-6d+35)) then
tmp = t_2
else if (j <= (-8.2d-116)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 3.45d-183) then
tmp = t_1
else if (j <= 4.3d-62) then
tmp = b * ((t * i) - (z * c))
else if (j <= 9.5d+55) then
tmp = t_1
else if (j <= 4.5d+198) then
tmp = (b * i) * (t - (j * (y / 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 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -6e+35) {
tmp = t_2;
} else if (j <= -8.2e-116) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 3.45e-183) {
tmp = t_1;
} else if (j <= 4.3e-62) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 9.5e+55) {
tmp = t_1;
} else if (j <= 4.5e+198) {
tmp = (b * i) * (t - (j * (y / b)));
} else {
tmp = 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 * ((a * c) - (y * i)) tmp = 0 if j <= -6e+35: tmp = t_2 elif j <= -8.2e-116: tmp = t * ((b * i) - (x * a)) elif j <= 3.45e-183: tmp = t_1 elif j <= 4.3e-62: tmp = b * ((t * i) - (z * c)) elif j <= 9.5e+55: tmp = t_1 elif j <= 4.5e+198: tmp = (b * i) * (t - (j * (y / b))) else: tmp = 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(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -6e+35) tmp = t_2; elseif (j <= -8.2e-116) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 3.45e-183) tmp = t_1; elseif (j <= 4.3e-62) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 9.5e+55) tmp = t_1; elseif (j <= 4.5e+198) tmp = Float64(Float64(b * i) * Float64(t - Float64(j * Float64(y / b)))); 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)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -6e+35) tmp = t_2; elseif (j <= -8.2e-116) tmp = t * ((b * i) - (x * a)); elseif (j <= 3.45e-183) tmp = t_1; elseif (j <= 4.3e-62) tmp = b * ((t * i) - (z * c)); elseif (j <= 9.5e+55) tmp = t_1; elseif (j <= 4.5e+198) tmp = (b * i) * (t - (j * (y / 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6e+35], t$95$2, If[LessEqual[j, -8.2e-116], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.45e-183], t$95$1, If[LessEqual[j, 4.3e-62], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e+55], t$95$1, If[LessEqual[j, 4.5e+198], N[(N[(b * i), $MachinePrecision] * N[(t - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -6 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-116}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 3.45 \cdot 10^{-183}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+198}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(t - j \cdot \frac{y}{b}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -5.99999999999999981e35 or 4.50000000000000001e198 < j Initial program 68.8%
Taylor expanded in j around inf 68.2%
if -5.99999999999999981e35 < j < -8.1999999999999998e-116Initial program 82.4%
Taylor expanded in t around inf 68.7%
distribute-lft-out--68.7%
*-commutative68.7%
Simplified68.7%
if -8.1999999999999998e-116 < j < 3.45e-183 or 4.2999999999999997e-62 < j < 9.49999999999999989e55Initial program 76.4%
Taylor expanded in x around inf 61.8%
if 3.45e-183 < j < 4.2999999999999997e-62Initial program 75.2%
Taylor expanded in b around inf 64.7%
if 9.49999999999999989e55 < j < 4.50000000000000001e198Initial program 57.8%
Taylor expanded in b around inf 54.6%
fma-define57.6%
associate-/l*63.8%
Simplified63.8%
Taylor expanded in i around inf 53.4%
associate-*r*56.0%
*-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
associate-/l*61.9%
Simplified61.9%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -3.8e+29)
t_2
(if (<= j 3.1e-187)
t_1
(if (<= j 1.5e-60)
(* b (- (* t i) (* z c)))
(if (<= j 1.9e+16)
t_1
(if (or (<= j 3.6e+149) (not (<= j 1.8e+198)))
t_2
(* z (- (* x y) (* b c))))))))))
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 * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+29) {
tmp = t_2;
} else if (j <= 3.1e-187) {
tmp = t_1;
} else if (j <= 1.5e-60) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 1.9e+16) {
tmp = t_1;
} else if ((j <= 3.6e+149) || !(j <= 1.8e+198)) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-3.8d+29)) then
tmp = t_2
else if (j <= 3.1d-187) then
tmp = t_1
else if (j <= 1.5d-60) then
tmp = b * ((t * i) - (z * c))
else if (j <= 1.9d+16) then
tmp = t_1
else if ((j <= 3.6d+149) .or. (.not. (j <= 1.8d+198))) then
tmp = t_2
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+29) {
tmp = t_2;
} else if (j <= 3.1e-187) {
tmp = t_1;
} else if (j <= 1.5e-60) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 1.9e+16) {
tmp = t_1;
} else if ((j <= 3.6e+149) || !(j <= 1.8e+198)) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -3.8e+29: tmp = t_2 elif j <= 3.1e-187: tmp = t_1 elif j <= 1.5e-60: tmp = b * ((t * i) - (z * c)) elif j <= 1.9e+16: tmp = t_1 elif (j <= 3.6e+149) or not (j <= 1.8e+198): tmp = t_2 else: tmp = z * ((x * y) - (b * c)) 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(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.8e+29) tmp = t_2; elseif (j <= 3.1e-187) tmp = t_1; elseif (j <= 1.5e-60) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 1.9e+16) tmp = t_1; elseif ((j <= 3.6e+149) || !(j <= 1.8e+198)) tmp = t_2; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); 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 * ((a * c) - (y * i)); tmp = 0.0; if (j <= -3.8e+29) tmp = t_2; elseif (j <= 3.1e-187) tmp = t_1; elseif (j <= 1.5e-60) tmp = b * ((t * i) - (z * c)); elseif (j <= 1.9e+16) tmp = t_1; elseif ((j <= 3.6e+149) || ~((j <= 1.8e+198))) tmp = t_2; else tmp = z * ((x * y) - (b * c)); 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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+29], t$95$2, If[LessEqual[j, 3.1e-187], t$95$1, If[LessEqual[j, 1.5e-60], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.9e+16], t$95$1, If[Or[LessEqual[j, 3.6e+149], N[Not[LessEqual[j, 1.8e+198]], $MachinePrecision]], t$95$2, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.9 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{+149} \lor \neg \left(j \leq 1.8 \cdot 10^{+198}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if j < -3.79999999999999971e29 or 1.9e16 < j < 3.59999999999999995e149 or 1.8000000000000001e198 < j Initial program 71.1%
Taylor expanded in j around inf 61.9%
if -3.79999999999999971e29 < j < 3.10000000000000019e-187 or 1.50000000000000009e-60 < j < 1.9e16Initial program 76.3%
Taylor expanded in x around inf 61.0%
if 3.10000000000000019e-187 < j < 1.50000000000000009e-60Initial program 75.2%
Taylor expanded in b around inf 64.7%
if 3.59999999999999995e149 < j < 1.8000000000000001e198Initial program 36.2%
Taylor expanded in z around inf 72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -2.1e+28)
t_3
(if (<= j 2.45e-186)
t_2
(if (<= j 1.06e-61)
t_1
(if (<= j 6.4e+63)
t_2
(if (<= j 1.75e+145)
t_1
(if (<= j 2.15e+198) (* y (- (* x z) (* i j))) t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.1e+28) {
tmp = t_3;
} else if (j <= 2.45e-186) {
tmp = t_2;
} else if (j <= 1.06e-61) {
tmp = t_1;
} else if (j <= 6.4e+63) {
tmp = t_2;
} else if (j <= 1.75e+145) {
tmp = t_1;
} else if (j <= 2.15e+198) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = j * ((a * c) - (y * i))
if (j <= (-2.1d+28)) then
tmp = t_3
else if (j <= 2.45d-186) then
tmp = t_2
else if (j <= 1.06d-61) then
tmp = t_1
else if (j <= 6.4d+63) then
tmp = t_2
else if (j <= 1.75d+145) then
tmp = t_1
else if (j <= 2.15d+198) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.1e+28) {
tmp = t_3;
} else if (j <= 2.45e-186) {
tmp = t_2;
} else if (j <= 1.06e-61) {
tmp = t_1;
} else if (j <= 6.4e+63) {
tmp = t_2;
} else if (j <= 1.75e+145) {
tmp = t_1;
} else if (j <= 2.15e+198) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.1e+28: tmp = t_3 elif j <= 2.45e-186: tmp = t_2 elif j <= 1.06e-61: tmp = t_1 elif j <= 6.4e+63: tmp = t_2 elif j <= 1.75e+145: tmp = t_1 elif j <= 2.15e+198: tmp = y * ((x * z) - (i * j)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.1e+28) tmp = t_3; elseif (j <= 2.45e-186) tmp = t_2; elseif (j <= 1.06e-61) tmp = t_1; elseif (j <= 6.4e+63) tmp = t_2; elseif (j <= 1.75e+145) tmp = t_1; elseif (j <= 2.15e+198) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.1e+28) tmp = t_3; elseif (j <= 2.45e-186) tmp = t_2; elseif (j <= 1.06e-61) tmp = t_1; elseif (j <= 6.4e+63) tmp = t_2; elseif (j <= 1.75e+145) tmp = t_1; elseif (j <= 2.15e+198) tmp = y * ((x * z) - (i * j)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.1e+28], t$95$3, If[LessEqual[j, 2.45e-186], t$95$2, If[LessEqual[j, 1.06e-61], t$95$1, If[LessEqual[j, 6.4e+63], t$95$2, If[LessEqual[j, 1.75e+145], t$95$1, If[LessEqual[j, 2.15e+198], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.1 \cdot 10^{+28}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 2.45 \cdot 10^{-186}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.06 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6.4 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.15 \cdot 10^{+198}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -2.09999999999999989e28 or 2.14999999999999991e198 < j Initial program 69.2%
Taylor expanded in j around inf 68.5%
if -2.09999999999999989e28 < j < 2.4499999999999998e-186 or 1.0599999999999999e-61 < j < 6.40000000000000022e63Initial program 77.4%
Taylor expanded in x around inf 58.2%
if 2.4499999999999998e-186 < j < 1.0599999999999999e-61 or 6.40000000000000022e63 < j < 1.7500000000000001e145Initial program 74.1%
Taylor expanded in b around inf 58.8%
if 1.7500000000000001e145 < j < 2.14999999999999991e198Initial program 33.2%
Taylor expanded in y around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
*-commutative67.1%
Simplified67.1%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= b -1.12e-10)
t_1
(if (<= b -6.3e-167)
(* a (* c j))
(if (<= b -1.2e-240)
(* (* x t) (- a))
(if (<= b 1.65e-59)
(* c (* a j))
(if (<= b 3.8e+40)
(* z (* x y))
(if (<= b 8.6e+145) (* t (* b i)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (b <= -1.12e-10) {
tmp = t_1;
} else if (b <= -6.3e-167) {
tmp = a * (c * j);
} else if (b <= -1.2e-240) {
tmp = (x * t) * -a;
} else if (b <= 1.65e-59) {
tmp = c * (a * j);
} else if (b <= 3.8e+40) {
tmp = z * (x * y);
} else if (b <= 8.6e+145) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (b <= (-1.12d-10)) then
tmp = t_1
else if (b <= (-6.3d-167)) then
tmp = a * (c * j)
else if (b <= (-1.2d-240)) then
tmp = (x * t) * -a
else if (b <= 1.65d-59) then
tmp = c * (a * j)
else if (b <= 3.8d+40) then
tmp = z * (x * y)
else if (b <= 8.6d+145) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (b <= -1.12e-10) {
tmp = t_1;
} else if (b <= -6.3e-167) {
tmp = a * (c * j);
} else if (b <= -1.2e-240) {
tmp = (x * t) * -a;
} else if (b <= 1.65e-59) {
tmp = c * (a * j);
} else if (b <= 3.8e+40) {
tmp = z * (x * y);
} else if (b <= 8.6e+145) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if b <= -1.12e-10: tmp = t_1 elif b <= -6.3e-167: tmp = a * (c * j) elif b <= -1.2e-240: tmp = (x * t) * -a elif b <= 1.65e-59: tmp = c * (a * j) elif b <= 3.8e+40: tmp = z * (x * y) elif b <= 8.6e+145: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (b <= -1.12e-10) tmp = t_1; elseif (b <= -6.3e-167) tmp = Float64(a * Float64(c * j)); elseif (b <= -1.2e-240) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (b <= 1.65e-59) tmp = Float64(c * Float64(a * j)); elseif (b <= 3.8e+40) tmp = Float64(z * Float64(x * y)); elseif (b <= 8.6e+145) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (b <= -1.12e-10) tmp = t_1; elseif (b <= -6.3e-167) tmp = a * (c * j); elseif (b <= -1.2e-240) tmp = (x * t) * -a; elseif (b <= 1.65e-59) tmp = c * (a * j); elseif (b <= 3.8e+40) tmp = z * (x * y); elseif (b <= 8.6e+145) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.12e-10], t$95$1, If[LessEqual[b, -6.3e-167], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.2e-240], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[b, 1.65e-59], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+40], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e+145], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;b \leq -1.12 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.3 \cdot 10^{-167}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-240}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-59}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+40}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{+145}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.12e-10 or 8.59999999999999996e145 < b Initial program 70.5%
Taylor expanded in c around inf 52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in j around 0 44.9%
mul-1-neg44.9%
*-commutative44.9%
distribute-lft-neg-in44.9%
Simplified44.9%
if -1.12e-10 < b < -6.3000000000000001e-167Initial program 77.6%
Taylor expanded in a around inf 54.7%
+-commutative54.7%
mul-1-neg54.7%
unsub-neg54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in j around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -6.3000000000000001e-167 < b < -1.2e-240Initial program 57.6%
Taylor expanded in a around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in j around 0 44.6%
neg-mul-144.6%
distribute-lft-neg-in44.6%
*-commutative44.6%
Simplified44.6%
if -1.2e-240 < b < 1.64999999999999991e-59Initial program 75.4%
Taylor expanded in c around inf 37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in j around inf 32.8%
*-commutative32.8%
Simplified32.8%
if 1.64999999999999991e-59 < b < 3.80000000000000004e40Initial program 66.7%
Taylor expanded in z around inf 48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in y around inf 43.9%
*-commutative43.9%
Simplified43.9%
if 3.80000000000000004e40 < b < 8.59999999999999996e145Initial program 73.7%
Taylor expanded in b around inf 55.1%
Taylor expanded in i around inf 46.5%
associate-*r*50.6%
*-commutative50.6%
Simplified50.6%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -2.15e-110)
t_2
(if (<= a -1.8e-264)
(* j (- (* y i)))
(if (<= a 2.95e-213)
t_1
(if (<= a 6.9e-100)
(* c (* z (- b)))
(if (<= a 1.8e+49) 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 = t * (b * i);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.15e-110) {
tmp = t_2;
} else if (a <= -1.8e-264) {
tmp = j * -(y * i);
} else if (a <= 2.95e-213) {
tmp = t_1;
} else if (a <= 6.9e-100) {
tmp = c * (z * -b);
} else if (a <= 1.8e+49) {
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 = t * (b * i)
t_2 = a * ((c * j) - (x * t))
if (a <= (-2.15d-110)) then
tmp = t_2
else if (a <= (-1.8d-264)) then
tmp = j * -(y * i)
else if (a <= 2.95d-213) then
tmp = t_1
else if (a <= 6.9d-100) then
tmp = c * (z * -b)
else if (a <= 1.8d+49) 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 = t * (b * i);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.15e-110) {
tmp = t_2;
} else if (a <= -1.8e-264) {
tmp = j * -(y * i);
} else if (a <= 2.95e-213) {
tmp = t_1;
} else if (a <= 6.9e-100) {
tmp = c * (z * -b);
} else if (a <= 1.8e+49) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.15e-110: tmp = t_2 elif a <= -1.8e-264: tmp = j * -(y * i) elif a <= 2.95e-213: tmp = t_1 elif a <= 6.9e-100: tmp = c * (z * -b) elif a <= 1.8e+49: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.15e-110) tmp = t_2; elseif (a <= -1.8e-264) tmp = Float64(j * Float64(-Float64(y * i))); elseif (a <= 2.95e-213) tmp = t_1; elseif (a <= 6.9e-100) tmp = Float64(c * Float64(z * Float64(-b))); elseif (a <= 1.8e+49) 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 = t * (b * i); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.15e-110) tmp = t_2; elseif (a <= -1.8e-264) tmp = j * -(y * i); elseif (a <= 2.95e-213) tmp = t_1; elseif (a <= 6.9e-100) tmp = c * (z * -b); elseif (a <= 1.8e+49) 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[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.15e-110], t$95$2, If[LessEqual[a, -1.8e-264], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 2.95e-213], t$95$1, If[LessEqual[a, 6.9e-100], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e+49], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.15 \cdot 10^{-110}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{-264}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;a \leq 2.95 \cdot 10^{-213}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.9 \cdot 10^{-100}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.15000000000000012e-110 or 1.79999999999999998e49 < a Initial program 67.3%
Taylor expanded in a around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
*-commutative64.9%
Simplified64.9%
if -2.15000000000000012e-110 < a < -1.8000000000000001e-264Initial program 82.0%
Taylor expanded in j around inf 47.7%
Taylor expanded in a around 0 39.6%
neg-mul-139.6%
distribute-rgt-neg-in39.6%
Simplified39.6%
if -1.8000000000000001e-264 < a < 2.9499999999999999e-213 or 6.9e-100 < a < 1.79999999999999998e49Initial program 69.0%
Taylor expanded in b around inf 42.6%
Taylor expanded in i around inf 33.8%
associate-*r*38.9%
*-commutative38.9%
Simplified38.9%
if 2.9499999999999999e-213 < a < 6.9e-100Initial program 87.9%
Taylor expanded in c around inf 53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in j around 0 41.4%
mul-1-neg41.4%
*-commutative41.4%
distribute-lft-neg-in41.4%
Simplified41.4%
Final simplification52.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.2e-11)
t_2
(if (<= b -1.8e-240)
t_1
(if (<= b 2.1e-306)
(* y (* i (- j)))
(if (<= b 1.46e-59) t_1 (if (<= b 3.7e+40) (* z (* x y)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e-11) {
tmp = t_2;
} else if (b <= -1.8e-240) {
tmp = t_1;
} else if (b <= 2.1e-306) {
tmp = y * (i * -j);
} else if (b <= 1.46e-59) {
tmp = t_1;
} else if (b <= 3.7e+40) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.2d-11)) then
tmp = t_2
else if (b <= (-1.8d-240)) then
tmp = t_1
else if (b <= 2.1d-306) then
tmp = y * (i * -j)
else if (b <= 1.46d-59) then
tmp = t_1
else if (b <= 3.7d+40) then
tmp = z * (x * y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e-11) {
tmp = t_2;
} else if (b <= -1.8e-240) {
tmp = t_1;
} else if (b <= 2.1e-306) {
tmp = y * (i * -j);
} else if (b <= 1.46e-59) {
tmp = t_1;
} else if (b <= 3.7e+40) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.2e-11: tmp = t_2 elif b <= -1.8e-240: tmp = t_1 elif b <= 2.1e-306: tmp = y * (i * -j) elif b <= 1.46e-59: tmp = t_1 elif b <= 3.7e+40: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.2e-11) tmp = t_2; elseif (b <= -1.8e-240) tmp = t_1; elseif (b <= 2.1e-306) tmp = Float64(y * Float64(i * Float64(-j))); elseif (b <= 1.46e-59) tmp = t_1; elseif (b <= 3.7e+40) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.2e-11) tmp = t_2; elseif (b <= -1.8e-240) tmp = t_1; elseif (b <= 2.1e-306) tmp = y * (i * -j); elseif (b <= 1.46e-59) tmp = t_1; elseif (b <= 3.7e+40) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e-11], t$95$2, If[LessEqual[b, -1.8e-240], t$95$1, If[LessEqual[b, 2.1e-306], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.46e-59], t$95$1, If[LessEqual[b, 3.7e+40], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{-11}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-240}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-306}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq 1.46 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+40}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.2000000000000001e-11 or 3.7e40 < b Initial program 71.1%
Taylor expanded in b around inf 63.2%
if -5.2000000000000001e-11 < b < -1.7999999999999999e-240 or 2.1000000000000001e-306 < b < 1.45999999999999994e-59Initial program 76.9%
Taylor expanded in a around inf 57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
*-commutative57.3%
Simplified57.3%
if -1.7999999999999999e-240 < b < 2.1000000000000001e-306Initial program 60.2%
Taylor expanded in j around inf 56.2%
Taylor expanded in a around 0 51.9%
mul-1-neg51.9%
associate-*r*61.0%
distribute-rgt-neg-in61.0%
*-commutative61.0%
Simplified61.0%
if 1.45999999999999994e-59 < b < 3.7e40Initial program 66.7%
Taylor expanded in z around inf 48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in y around inf 43.9%
*-commutative43.9%
Simplified43.9%
Final simplification59.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.6e-11)
t_2
(if (<= b -5e-243)
t_1
(if (<= b 4.4e-292)
(* j (- (* a c) (* y i)))
(if (<= b 2.3e-59) t_1 (if (<= b 4.8e+40) (* z (* x y)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.6e-11) {
tmp = t_2;
} else if (b <= -5e-243) {
tmp = t_1;
} else if (b <= 4.4e-292) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 2.3e-59) {
tmp = t_1;
} else if (b <= 4.8e+40) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.6d-11)) then
tmp = t_2
else if (b <= (-5d-243)) then
tmp = t_1
else if (b <= 4.4d-292) then
tmp = j * ((a * c) - (y * i))
else if (b <= 2.3d-59) then
tmp = t_1
else if (b <= 4.8d+40) then
tmp = z * (x * y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.6e-11) {
tmp = t_2;
} else if (b <= -5e-243) {
tmp = t_1;
} else if (b <= 4.4e-292) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 2.3e-59) {
tmp = t_1;
} else if (b <= 4.8e+40) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.6e-11: tmp = t_2 elif b <= -5e-243: tmp = t_1 elif b <= 4.4e-292: tmp = j * ((a * c) - (y * i)) elif b <= 2.3e-59: tmp = t_1 elif b <= 4.8e+40: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.6e-11) tmp = t_2; elseif (b <= -5e-243) tmp = t_1; elseif (b <= 4.4e-292) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 2.3e-59) tmp = t_1; elseif (b <= 4.8e+40) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.6e-11) tmp = t_2; elseif (b <= -5e-243) tmp = t_1; elseif (b <= 4.4e-292) tmp = j * ((a * c) - (y * i)); elseif (b <= 2.3e-59) tmp = t_1; elseif (b <= 4.8e+40) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.6e-11], t$95$2, If[LessEqual[b, -5e-243], t$95$1, If[LessEqual[b, 4.4e-292], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-59], t$95$1, If[LessEqual[b, 4.8e+40], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{-11}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-243}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-292}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{+40}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.6e-11 or 4.8e40 < b Initial program 71.1%
Taylor expanded in b around inf 63.2%
if -5.6e-11 < b < -5e-243 or 4.40000000000000023e-292 < b < 2.29999999999999979e-59Initial program 76.3%
Taylor expanded in a around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
Simplified56.4%
if -5e-243 < b < 4.40000000000000023e-292Initial program 63.8%
Taylor expanded in j around inf 64.5%
if 2.29999999999999979e-59 < b < 4.8e40Initial program 66.7%
Taylor expanded in z around inf 48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in y around inf 43.9%
*-commutative43.9%
Simplified43.9%
Final simplification59.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -1.2e-49) (not (<= z 2e-57))) (+ (* x (- (* y z) (* t a))) (* z (* b (- (* i (/ t z)) c)))) (- (* b (* t i)) (+ (* a (* x t)) (* j (- (* y i) (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.2e-49) || !(z <= 2e-57)) {
tmp = (x * ((y * z) - (t * a))) + (z * (b * ((i * (t / z)) - c)));
} else {
tmp = (b * (t * i)) - ((a * (x * t)) + (j * ((y * i) - (a * c))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-1.2d-49)) .or. (.not. (z <= 2d-57))) then
tmp = (x * ((y * z) - (t * a))) + (z * (b * ((i * (t / z)) - c)))
else
tmp = (b * (t * i)) - ((a * (x * t)) + (j * ((y * i) - (a * c))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.2e-49) || !(z <= 2e-57)) {
tmp = (x * ((y * z) - (t * a))) + (z * (b * ((i * (t / z)) - c)));
} else {
tmp = (b * (t * i)) - ((a * (x * t)) + (j * ((y * i) - (a * c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -1.2e-49) or not (z <= 2e-57): tmp = (x * ((y * z) - (t * a))) + (z * (b * ((i * (t / z)) - c))) else: tmp = (b * (t * i)) - ((a * (x * t)) + (j * ((y * i) - (a * c)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -1.2e-49) || !(z <= 2e-57)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(z * Float64(b * Float64(Float64(i * Float64(t / z)) - c)))); else tmp = Float64(Float64(b * Float64(t * i)) - Float64(Float64(a * Float64(x * t)) + Float64(j * Float64(Float64(y * i) - Float64(a * c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -1.2e-49) || ~((z <= 2e-57))) tmp = (x * ((y * z) - (t * a))) + (z * (b * ((i * (t / z)) - c))); else tmp = (b * (t * i)) - ((a * (x * t)) + (j * ((y * i) - (a * c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.2e-49], N[Not[LessEqual[z, 2e-57]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(b * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{-49} \lor \neg \left(z \leq 2 \cdot 10^{-57}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + z \cdot \left(b \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - \left(a \cdot \left(x \cdot t\right) + j \cdot \left(y \cdot i - a \cdot c\right)\right)\\
\end{array}
\end{array}
if z < -1.19999999999999996e-49 or 1.99999999999999991e-57 < z Initial program 64.4%
Taylor expanded in z around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
*-commutative65.7%
associate-/l*65.7%
Simplified65.7%
Taylor expanded in j around 0 65.7%
*-commutative65.7%
*-commutative65.7%
sub-neg65.7%
sub-neg65.7%
associate-/l*65.7%
associate-*r/69.5%
distribute-lft-out--71.5%
Simplified71.5%
if -1.19999999999999996e-49 < z < 1.99999999999999991e-57Initial program 83.8%
Taylor expanded in z around 0 79.2%
Final simplification74.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= z -4.8e-52)
(+ t_1 (* z (* b (- (* i (/ t z)) c))))
(if (<= z 9e+86)
(+ t_1 (* j (- (* a c) (* y i))))
(* z (- (* x y) (* b c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (z <= -4.8e-52) {
tmp = t_1 + (z * (b * ((i * (t / z)) - c)));
} else if (z <= 9e+86) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (z <= (-4.8d-52)) then
tmp = t_1 + (z * (b * ((i * (t / z)) - c)))
else if (z <= 9d+86) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (z <= -4.8e-52) {
tmp = t_1 + (z * (b * ((i * (t / z)) - c)));
} else if (z <= 9e+86) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if z <= -4.8e-52: tmp = t_1 + (z * (b * ((i * (t / z)) - c))) elif z <= 9e+86: tmp = t_1 + (j * ((a * c) - (y * i))) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (z <= -4.8e-52) tmp = Float64(t_1 + Float64(z * Float64(b * Float64(Float64(i * Float64(t / z)) - c)))); elseif (z <= 9e+86) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (z <= -4.8e-52) tmp = t_1 + (z * (b * ((i * (t / z)) - c))); elseif (z <= 9e+86) tmp = t_1 + (j * ((a * c) - (y * i))); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.8e-52], N[(t$95$1 + N[(z * N[(b * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+86], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{-52}:\\
\;\;\;\;t\_1 + z \cdot \left(b \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+86}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -4.8000000000000003e-52Initial program 64.0%
Taylor expanded in z around inf 66.3%
+-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
*-commutative66.3%
associate-/l*66.3%
Simplified66.3%
Taylor expanded in j around 0 66.6%
*-commutative66.6%
*-commutative66.6%
sub-neg66.6%
sub-neg66.6%
associate-/l*66.5%
associate-*r/72.2%
distribute-lft-out--74.6%
Simplified74.6%
if -4.8000000000000003e-52 < z < 8.99999999999999986e86Initial program 81.8%
Taylor expanded in b around 0 67.6%
if 8.99999999999999986e86 < z Initial program 59.4%
Taylor expanded in z around inf 72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Final simplification70.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.2e-108) (not (<= c 8.6e+67))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.2e-108) || !(c <= 8.6e+67)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.2d-108)) .or. (.not. (c <= 8.6d+67))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.2e-108) || !(c <= 8.6e+67)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.2e-108) or not (c <= 8.6e+67): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.2e-108) || !(c <= 8.6e+67)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.2e-108) || ~((c <= 8.6e+67))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.2e-108], N[Not[LessEqual[c, 8.6e+67]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{-108} \lor \neg \left(c \leq 8.6 \cdot 10^{+67}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -3.2e-108 or 8.6000000000000002e67 < c Initial program 67.2%
Taylor expanded in a around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in j around inf 36.2%
*-commutative36.2%
Simplified36.2%
if -3.2e-108 < c < 8.6000000000000002e67Initial program 77.0%
Taylor expanded in b around inf 36.7%
Taylor expanded in i around inf 31.3%
Final simplification33.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -3.2e-108) (* c (* a j)) (if (<= c 5.1e+68) (* b (* t i)) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3.2e-108) {
tmp = c * (a * j);
} else if (c <= 5.1e+68) {
tmp = b * (t * i);
} else {
tmp = a * (c * 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 (c <= (-3.2d-108)) then
tmp = c * (a * j)
else if (c <= 5.1d+68) then
tmp = b * (t * i)
else
tmp = a * (c * 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 (c <= -3.2e-108) {
tmp = c * (a * j);
} else if (c <= 5.1e+68) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -3.2e-108: tmp = c * (a * j) elif c <= 5.1e+68: tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3.2e-108) tmp = Float64(c * Float64(a * j)); elseif (c <= 5.1e+68) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -3.2e-108) tmp = c * (a * j); elseif (c <= 5.1e+68) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3.2e-108], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.1e+68], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{-108}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;c \leq 5.1 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -3.2e-108Initial program 69.7%
Taylor expanded in c around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in j around inf 33.6%
*-commutative33.6%
Simplified33.6%
if -3.2e-108 < c < 5.1e68Initial program 77.0%
Taylor expanded in b around inf 36.7%
Taylor expanded in i around inf 31.3%
if 5.1e68 < c Initial program 63.9%
Taylor expanded in a around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
*-commutative49.5%
Simplified49.5%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification33.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -2.5e-112) (* c (* a j)) (if (<= c 5.6e+68) (* t (* b i)) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.5e-112) {
tmp = c * (a * j);
} else if (c <= 5.6e+68) {
tmp = t * (b * i);
} else {
tmp = a * (c * 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 (c <= (-2.5d-112)) then
tmp = c * (a * j)
else if (c <= 5.6d+68) then
tmp = t * (b * i)
else
tmp = a * (c * 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 (c <= -2.5e-112) {
tmp = c * (a * j);
} else if (c <= 5.6e+68) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.5e-112: tmp = c * (a * j) elif c <= 5.6e+68: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.5e-112) tmp = Float64(c * Float64(a * j)); elseif (c <= 5.6e+68) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.5e-112) tmp = c * (a * j); elseif (c <= 5.6e+68) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.5e-112], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e+68], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.5 \cdot 10^{-112}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{+68}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -2.50000000000000022e-112Initial program 69.7%
Taylor expanded in c around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in j around inf 33.6%
*-commutative33.6%
Simplified33.6%
if -2.50000000000000022e-112 < c < 5.6e68Initial program 77.0%
Taylor expanded in b around inf 36.7%
Taylor expanded in i around inf 31.3%
associate-*r*33.1%
*-commutative33.1%
Simplified33.1%
if 5.6e68 < c Initial program 63.9%
Taylor expanded in a around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
*-commutative49.5%
Simplified49.5%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -2.5e-108) (* j (* a c)) (if (<= c 5.8e+68) (* t (* b i)) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.5e-108) {
tmp = j * (a * c);
} else if (c <= 5.8e+68) {
tmp = t * (b * i);
} else {
tmp = a * (c * 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 (c <= (-2.5d-108)) then
tmp = j * (a * c)
else if (c <= 5.8d+68) then
tmp = t * (b * i)
else
tmp = a * (c * 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 (c <= -2.5e-108) {
tmp = j * (a * c);
} else if (c <= 5.8e+68) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.5e-108: tmp = j * (a * c) elif c <= 5.8e+68: tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.5e-108) tmp = Float64(j * Float64(a * c)); elseif (c <= 5.8e+68) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.5e-108) tmp = j * (a * c); elseif (c <= 5.8e+68) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.5e-108], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.8e+68], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.5 \cdot 10^{-108}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{+68}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -2.5e-108Initial program 69.7%
Taylor expanded in a around inf 49.8%
+-commutative49.8%
mul-1-neg49.8%
unsub-neg49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in j around inf 33.5%
associate-*r*36.2%
Simplified36.2%
if -2.5e-108 < c < 5.80000000000000023e68Initial program 77.0%
Taylor expanded in b around inf 36.7%
Taylor expanded in i around inf 31.3%
associate-*r*33.1%
*-commutative33.1%
Simplified33.1%
if 5.80000000000000023e68 < c Initial program 63.9%
Taylor expanded in a around inf 49.5%
+-commutative49.5%
mul-1-neg49.5%
unsub-neg49.5%
*-commutative49.5%
Simplified49.5%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification35.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 72.0%
Taylor expanded in a around inf 39.3%
+-commutative39.3%
mul-1-neg39.3%
unsub-neg39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in j around inf 23.0%
*-commutative23.0%
Simplified23.0%
Final simplification23.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024067
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))