
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))))
(if (<=
(- (* j t_1) (+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))
INFINITY)
(fma j t_1 (+ (* x (fma y z (* t (- a)))) (* b (- (* a i) (* z c)))))
(* y (* z (- x (* i (/ j z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * c) - (y * i);
double tmp;
if (((j * t_1) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(j, t_1, ((x * fma(y, z, (t * -a))) + (b * ((a * i) - (z * c)))));
} else {
tmp = y * (z * (x - (i * (j / z))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_1) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(j, t_1, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))); else tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$1), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$1 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t\_1 - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.6%
+-commutative91.6%
fma-define91.6%
*-commutative91.6%
*-commutative91.6%
cancel-sign-sub-inv91.6%
cancel-sign-sub91.6%
sub-neg91.6%
sub-neg91.6%
*-commutative91.6%
fma-neg91.6%
*-commutative91.6%
distribute-rgt-neg-out91.6%
remove-double-neg91.6%
*-commutative91.6%
*-commutative91.6%
Simplified91.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
*-commutative48.4%
Simplified48.4%
Taylor expanded in z around inf 53.2%
mul-1-neg53.2%
unsub-neg53.2%
associate-/l*54.4%
Simplified54.4%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* y (* z (- x (* i (/ j z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * (z * (x - (i * (j / z))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * (z * (x - (i * (j / z))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * (z * (x - (i * (j / z)))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * (z * (x - (i * (j / z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
*-commutative48.4%
Simplified48.4%
Taylor expanded in z around inf 53.2%
mul-1-neg53.2%
unsub-neg53.2%
associate-/l*54.4%
Simplified54.4%
Final simplification83.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y)))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (* b (- (* a i) (* z c))))
(t_4 (* t (- (* c j) (* x a)))))
(if (<= b -2.8e-52)
t_3
(if (<= b -8e-175)
t_1
(if (<= b -5.4e-208)
t_2
(if (<= b -2.3e-240)
(* y (* x z))
(if (<= b -2.4e-275)
t_4
(if (<= b 3.2e-292)
t_1
(if (<= b 3.75e-32)
t_2
(if (or (<= b 1e+109) (not (<= b 1.6e+162))) t_3 t_4))))))))))
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 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double t_4 = t * ((c * j) - (x * a));
double tmp;
if (b <= -2.8e-52) {
tmp = t_3;
} else if (b <= -8e-175) {
tmp = t_1;
} else if (b <= -5.4e-208) {
tmp = t_2;
} else if (b <= -2.3e-240) {
tmp = y * (x * z);
} else if (b <= -2.4e-275) {
tmp = t_4;
} else if (b <= 3.2e-292) {
tmp = t_1;
} else if (b <= 3.75e-32) {
tmp = t_2;
} else if ((b <= 1e+109) || !(b <= 1.6e+162)) {
tmp = t_3;
} else {
tmp = t_4;
}
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 = z * (x * y)
t_2 = j * ((t * c) - (y * i))
t_3 = b * ((a * i) - (z * c))
t_4 = t * ((c * j) - (x * a))
if (b <= (-2.8d-52)) then
tmp = t_3
else if (b <= (-8d-175)) then
tmp = t_1
else if (b <= (-5.4d-208)) then
tmp = t_2
else if (b <= (-2.3d-240)) then
tmp = y * (x * z)
else if (b <= (-2.4d-275)) then
tmp = t_4
else if (b <= 3.2d-292) then
tmp = t_1
else if (b <= 3.75d-32) then
tmp = t_2
else if ((b <= 1d+109) .or. (.not. (b <= 1.6d+162))) then
tmp = t_3
else
tmp = t_4
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 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double t_4 = t * ((c * j) - (x * a));
double tmp;
if (b <= -2.8e-52) {
tmp = t_3;
} else if (b <= -8e-175) {
tmp = t_1;
} else if (b <= -5.4e-208) {
tmp = t_2;
} else if (b <= -2.3e-240) {
tmp = y * (x * z);
} else if (b <= -2.4e-275) {
tmp = t_4;
} else if (b <= 3.2e-292) {
tmp = t_1;
} else if (b <= 3.75e-32) {
tmp = t_2;
} else if ((b <= 1e+109) || !(b <= 1.6e+162)) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = j * ((t * c) - (y * i)) t_3 = b * ((a * i) - (z * c)) t_4 = t * ((c * j) - (x * a)) tmp = 0 if b <= -2.8e-52: tmp = t_3 elif b <= -8e-175: tmp = t_1 elif b <= -5.4e-208: tmp = t_2 elif b <= -2.3e-240: tmp = y * (x * z) elif b <= -2.4e-275: tmp = t_4 elif b <= 3.2e-292: tmp = t_1 elif b <= 3.75e-32: tmp = t_2 elif (b <= 1e+109) or not (b <= 1.6e+162): tmp = t_3 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_4 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (b <= -2.8e-52) tmp = t_3; elseif (b <= -8e-175) tmp = t_1; elseif (b <= -5.4e-208) tmp = t_2; elseif (b <= -2.3e-240) tmp = Float64(y * Float64(x * z)); elseif (b <= -2.4e-275) tmp = t_4; elseif (b <= 3.2e-292) tmp = t_1; elseif (b <= 3.75e-32) tmp = t_2; elseif ((b <= 1e+109) || !(b <= 1.6e+162)) tmp = t_3; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = j * ((t * c) - (y * i)); t_3 = b * ((a * i) - (z * c)); t_4 = t * ((c * j) - (x * a)); tmp = 0.0; if (b <= -2.8e-52) tmp = t_3; elseif (b <= -8e-175) tmp = t_1; elseif (b <= -5.4e-208) tmp = t_2; elseif (b <= -2.3e-240) tmp = y * (x * z); elseif (b <= -2.4e-275) tmp = t_4; elseif (b <= 3.2e-292) tmp = t_1; elseif (b <= 3.75e-32) tmp = t_2; elseif ((b <= 1e+109) || ~((b <= 1.6e+162))) tmp = t_3; else tmp = t_4; 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.8e-52], t$95$3, If[LessEqual[b, -8e-175], t$95$1, If[LessEqual[b, -5.4e-208], t$95$2, If[LessEqual[b, -2.3e-240], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.4e-275], t$95$4, If[LessEqual[b, 3.2e-292], t$95$1, If[LessEqual[b, 3.75e-32], t$95$2, If[Or[LessEqual[b, 1e+109], N[Not[LessEqual[b, 1.6e+162]], $MachinePrecision]], t$95$3, t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_4 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{-52}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.4 \cdot 10^{-208}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-275}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-292}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.75 \cdot 10^{-32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 10^{+109} \lor \neg \left(b \leq 1.6 \cdot 10^{+162}\right):\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if b < -2.79999999999999995e-52 or 3.74999999999999977e-32 < b < 9.99999999999999982e108 or 1.6000000000000001e162 < b Initial program 66.6%
Taylor expanded in b around inf 60.5%
*-commutative60.5%
Simplified60.5%
if -2.79999999999999995e-52 < b < -8e-175 or -2.39999999999999991e-275 < b < 3.2000000000000002e-292Initial program 82.4%
Taylor expanded in t around 0 68.0%
*-commutative68.0%
associate-*r*63.2%
associate-*r*63.2%
associate-*r*63.2%
distribute-rgt-in63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in x around inf 54.6%
associate-*r*54.7%
*-commutative54.7%
Simplified54.7%
if -8e-175 < b < -5.4e-208 or 3.2000000000000002e-292 < b < 3.74999999999999977e-32Initial program 67.1%
Taylor expanded in j around inf 62.0%
sub-neg62.0%
*-commutative62.0%
*-commutative62.0%
sub-neg62.0%
Simplified62.0%
if -5.4e-208 < b < -2.29999999999999993e-240Initial program 63.8%
Taylor expanded in y around inf 70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around inf 60.9%
if -2.29999999999999993e-240 < b < -2.39999999999999991e-275 or 9.99999999999999982e108 < b < 1.6000000000000001e162Initial program 88.3%
Taylor expanded in t around inf 71.4%
+-commutative71.4%
mul-1-neg71.4%
unsub-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (+ (* x (* y z)) (* b (- (* a i) (* z c)))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= y -3e+54)
(* y (* z (- x (* i (/ j z)))))
(if (<= y -3.9e-168)
t_2
(if (<= y -4.2e-225)
t_1
(if (<= y 5.5e-208)
t_3
(if (<= y 6.2e-92)
t_1
(if (<= y 1.7e-7)
t_3
(if (<= y 1.85e+81)
t_2
(if (<= y 7.8e+167)
(* a (* i (- b (/ (* y j) a))))
(* y (- (* x z) (* i j)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = (x * (y * z)) + (b * ((a * i) - (z * c)));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (y <= -3e+54) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -3.9e-168) {
tmp = t_2;
} else if (y <= -4.2e-225) {
tmp = t_1;
} else if (y <= 5.5e-208) {
tmp = t_3;
} else if (y <= 6.2e-92) {
tmp = t_1;
} else if (y <= 1.7e-7) {
tmp = t_3;
} else if (y <= 1.85e+81) {
tmp = t_2;
} else if (y <= 7.8e+167) {
tmp = a * (i * (b - ((y * j) / a)));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = (x * (y * z)) + (b * ((a * i) - (z * c)))
t_3 = a * ((b * i) - (x * t))
if (y <= (-3d+54)) then
tmp = y * (z * (x - (i * (j / z))))
else if (y <= (-3.9d-168)) then
tmp = t_2
else if (y <= (-4.2d-225)) then
tmp = t_1
else if (y <= 5.5d-208) then
tmp = t_3
else if (y <= 6.2d-92) then
tmp = t_1
else if (y <= 1.7d-7) then
tmp = t_3
else if (y <= 1.85d+81) then
tmp = t_2
else if (y <= 7.8d+167) then
tmp = a * (i * (b - ((y * j) / a)))
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = (x * (y * z)) + (b * ((a * i) - (z * c)));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (y <= -3e+54) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -3.9e-168) {
tmp = t_2;
} else if (y <= -4.2e-225) {
tmp = t_1;
} else if (y <= 5.5e-208) {
tmp = t_3;
} else if (y <= 6.2e-92) {
tmp = t_1;
} else if (y <= 1.7e-7) {
tmp = t_3;
} else if (y <= 1.85e+81) {
tmp = t_2;
} else if (y <= 7.8e+167) {
tmp = a * (i * (b - ((y * j) / a)));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = (x * (y * z)) + (b * ((a * i) - (z * c))) t_3 = a * ((b * i) - (x * t)) tmp = 0 if y <= -3e+54: tmp = y * (z * (x - (i * (j / z)))) elif y <= -3.9e-168: tmp = t_2 elif y <= -4.2e-225: tmp = t_1 elif y <= 5.5e-208: tmp = t_3 elif y <= 6.2e-92: tmp = t_1 elif y <= 1.7e-7: tmp = t_3 elif y <= 1.85e+81: tmp = t_2 elif y <= 7.8e+167: tmp = a * (i * (b - ((y * j) / a))) else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (y <= -3e+54) tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); elseif (y <= -3.9e-168) tmp = t_2; elseif (y <= -4.2e-225) tmp = t_1; elseif (y <= 5.5e-208) tmp = t_3; elseif (y <= 6.2e-92) tmp = t_1; elseif (y <= 1.7e-7) tmp = t_3; elseif (y <= 1.85e+81) tmp = t_2; elseif (y <= 7.8e+167) tmp = Float64(a * Float64(i * Float64(b - Float64(Float64(y * j) / a)))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = (x * (y * z)) + (b * ((a * i) - (z * c))); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (y <= -3e+54) tmp = y * (z * (x - (i * (j / z)))); elseif (y <= -3.9e-168) tmp = t_2; elseif (y <= -4.2e-225) tmp = t_1; elseif (y <= 5.5e-208) tmp = t_3; elseif (y <= 6.2e-92) tmp = t_1; elseif (y <= 1.7e-7) tmp = t_3; elseif (y <= 1.85e+81) tmp = t_2; elseif (y <= 7.8e+167) tmp = a * (i * (b - ((y * j) / a))); else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+54], N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.9e-168], t$95$2, If[LessEqual[y, -4.2e-225], t$95$1, If[LessEqual[y, 5.5e-208], t$95$3, If[LessEqual[y, 6.2e-92], t$95$1, If[LessEqual[y, 1.7e-7], t$95$3, If[LessEqual[y, 1.85e+81], t$95$2, If[LessEqual[y, 7.8e+167], N[(a * N[(i * N[(b - N[(N[(y * j), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\mathbf{elif}\;y \leq -3.9 \cdot 10^{-168}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-208}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-7}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+167}:\\
\;\;\;\;a \cdot \left(i \cdot \left(b - \frac{y \cdot j}{a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -2.9999999999999999e54Initial program 68.0%
Taylor expanded in y around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*72.5%
Simplified72.5%
if -2.9999999999999999e54 < y < -3.90000000000000012e-168 or 1.69999999999999987e-7 < y < 1.85e81Initial program 76.0%
Taylor expanded in j around 0 67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around inf 63.4%
if -3.90000000000000012e-168 < y < -4.20000000000000001e-225 or 5.4999999999999997e-208 < y < 6.2000000000000002e-92Initial program 76.7%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if -4.20000000000000001e-225 < y < 5.4999999999999997e-208 or 6.2000000000000002e-92 < y < 1.69999999999999987e-7Initial program 73.4%
Taylor expanded in a around inf 70.1%
distribute-lft-out--70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
if 1.85e81 < y < 7.7999999999999996e167Initial program 60.6%
Taylor expanded in a around -inf 61.7%
Taylor expanded in i around inf 65.0%
if 7.7999999999999996e167 < y Initial program 58.5%
Taylor expanded in y around inf 88.0%
+-commutative88.0%
mul-1-neg88.0%
unsub-neg88.0%
*-commutative88.0%
Simplified88.0%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= y -2.55e+54)
(* y (* z (- x (* i (/ j z)))))
(if (<= y -1.3e-167)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(if (<= y -1.85e-228)
t_1
(if (<= y 4.1e-209)
t_3
(if (<= y 3.1e-92)
t_1
(if (<= y 2.15e+54)
t_3
(if (<= y 1e+125)
(- t_2 (* b (* z c)))
(if (<= y 7.9e+167)
(* a (* i (- b (/ (* y j) a))))
t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (y <= -2.55e+54) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -1.3e-167) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (y <= -1.85e-228) {
tmp = t_1;
} else if (y <= 4.1e-209) {
tmp = t_3;
} else if (y <= 3.1e-92) {
tmp = t_1;
} else if (y <= 2.15e+54) {
tmp = t_3;
} else if (y <= 1e+125) {
tmp = t_2 - (b * (z * c));
} else if (y <= 7.9e+167) {
tmp = a * (i * (b - ((y * j) / a)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = y * ((x * z) - (i * j))
t_3 = a * ((b * i) - (x * t))
if (y <= (-2.55d+54)) then
tmp = y * (z * (x - (i * (j / z))))
else if (y <= (-1.3d-167)) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else if (y <= (-1.85d-228)) then
tmp = t_1
else if (y <= 4.1d-209) then
tmp = t_3
else if (y <= 3.1d-92) then
tmp = t_1
else if (y <= 2.15d+54) then
tmp = t_3
else if (y <= 1d+125) then
tmp = t_2 - (b * (z * c))
else if (y <= 7.9d+167) then
tmp = a * (i * (b - ((y * j) / a)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (y <= -2.55e+54) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -1.3e-167) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (y <= -1.85e-228) {
tmp = t_1;
} else if (y <= 4.1e-209) {
tmp = t_3;
} else if (y <= 3.1e-92) {
tmp = t_1;
} else if (y <= 2.15e+54) {
tmp = t_3;
} else if (y <= 1e+125) {
tmp = t_2 - (b * (z * c));
} else if (y <= 7.9e+167) {
tmp = a * (i * (b - ((y * j) / a)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = y * ((x * z) - (i * j)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if y <= -2.55e+54: tmp = y * (z * (x - (i * (j / z)))) elif y <= -1.3e-167: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) elif y <= -1.85e-228: tmp = t_1 elif y <= 4.1e-209: tmp = t_3 elif y <= 3.1e-92: tmp = t_1 elif y <= 2.15e+54: tmp = t_3 elif y <= 1e+125: tmp = t_2 - (b * (z * c)) elif y <= 7.9e+167: tmp = a * (i * (b - ((y * j) / a))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (y <= -2.55e+54) tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); elseif (y <= -1.3e-167) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (y <= -1.85e-228) tmp = t_1; elseif (y <= 4.1e-209) tmp = t_3; elseif (y <= 3.1e-92) tmp = t_1; elseif (y <= 2.15e+54) tmp = t_3; elseif (y <= 1e+125) tmp = Float64(t_2 - Float64(b * Float64(z * c))); elseif (y <= 7.9e+167) tmp = Float64(a * Float64(i * Float64(b - Float64(Float64(y * j) / a)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = y * ((x * z) - (i * j)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (y <= -2.55e+54) tmp = y * (z * (x - (i * (j / z)))); elseif (y <= -1.3e-167) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); elseif (y <= -1.85e-228) tmp = t_1; elseif (y <= 4.1e-209) tmp = t_3; elseif (y <= 3.1e-92) tmp = t_1; elseif (y <= 2.15e+54) tmp = t_3; elseif (y <= 1e+125) tmp = t_2 - (b * (z * c)); elseif (y <= 7.9e+167) tmp = a * (i * (b - ((y * j) / a))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.55e+54], N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.3e-167], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.85e-228], t$95$1, If[LessEqual[y, 4.1e-209], t$95$3, If[LessEqual[y, 3.1e-92], t$95$1, If[LessEqual[y, 2.15e+54], t$95$3, If[LessEqual[y, 1e+125], N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.9e+167], N[(a * N[(i * N[(b - N[(N[(y * j), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;y \leq -2.55 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-167}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq -1.85 \cdot 10^{-228}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{-209}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{+54}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 10^{+125}:\\
\;\;\;\;t\_2 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 7.9 \cdot 10^{+167}:\\
\;\;\;\;a \cdot \left(i \cdot \left(b - \frac{y \cdot j}{a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.55000000000000005e54Initial program 68.0%
Taylor expanded in y around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*72.5%
Simplified72.5%
if -2.55000000000000005e54 < y < -1.2999999999999999e-167Initial program 75.7%
Taylor expanded in j around 0 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in y around inf 61.2%
if -1.2999999999999999e-167 < y < -1.85e-228 or 4.09999999999999977e-209 < y < 3.1000000000000001e-92Initial program 76.7%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if -1.85e-228 < y < 4.09999999999999977e-209 or 3.1000000000000001e-92 < y < 2.14999999999999988e54Initial program 74.8%
Taylor expanded in a around inf 66.9%
distribute-lft-out--66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
if 2.14999999999999988e54 < y < 9.9999999999999992e124Initial program 71.2%
Taylor expanded in t around 0 59.6%
*-commutative59.6%
associate-*r*65.6%
associate-*r*70.7%
associate-*r*70.7%
distribute-rgt-in76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in a around 0 76.6%
*-commutative76.6%
Simplified76.6%
if 9.9999999999999992e124 < y < 7.89999999999999994e167Initial program 51.2%
Taylor expanded in a around -inf 58.4%
Taylor expanded in i around inf 78.9%
if 7.89999999999999994e167 < y Initial program 58.5%
Taylor expanded in y around inf 88.0%
+-commutative88.0%
mul-1-neg88.0%
unsub-neg88.0%
*-commutative88.0%
Simplified88.0%
Final simplification70.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= y -3.5e+54)
(* y (* z (- x (* i (/ j z)))))
(if (<= y -2.4e-167)
(- (* z (* x y)) (* b (- (* z c) (* a i))))
(if (<= y -3.5e-225)
t_1
(if (<= y 3.9e-208)
t_3
(if (<= y 3.2e-92)
t_1
(if (<= y 3.7e+53)
t_3
(if (<= y 5.8e+125)
(- t_2 (* b (* z c)))
(if (<= y 7.8e+167)
(* a (* i (- b (/ (* y j) a))))
t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (y <= -3.5e+54) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -2.4e-167) {
tmp = (z * (x * y)) - (b * ((z * c) - (a * i)));
} else if (y <= -3.5e-225) {
tmp = t_1;
} else if (y <= 3.9e-208) {
tmp = t_3;
} else if (y <= 3.2e-92) {
tmp = t_1;
} else if (y <= 3.7e+53) {
tmp = t_3;
} else if (y <= 5.8e+125) {
tmp = t_2 - (b * (z * c));
} else if (y <= 7.8e+167) {
tmp = a * (i * (b - ((y * j) / a)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = y * ((x * z) - (i * j))
t_3 = a * ((b * i) - (x * t))
if (y <= (-3.5d+54)) then
tmp = y * (z * (x - (i * (j / z))))
else if (y <= (-2.4d-167)) then
tmp = (z * (x * y)) - (b * ((z * c) - (a * i)))
else if (y <= (-3.5d-225)) then
tmp = t_1
else if (y <= 3.9d-208) then
tmp = t_3
else if (y <= 3.2d-92) then
tmp = t_1
else if (y <= 3.7d+53) then
tmp = t_3
else if (y <= 5.8d+125) then
tmp = t_2 - (b * (z * c))
else if (y <= 7.8d+167) then
tmp = a * (i * (b - ((y * j) / a)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (y <= -3.5e+54) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -2.4e-167) {
tmp = (z * (x * y)) - (b * ((z * c) - (a * i)));
} else if (y <= -3.5e-225) {
tmp = t_1;
} else if (y <= 3.9e-208) {
tmp = t_3;
} else if (y <= 3.2e-92) {
tmp = t_1;
} else if (y <= 3.7e+53) {
tmp = t_3;
} else if (y <= 5.8e+125) {
tmp = t_2 - (b * (z * c));
} else if (y <= 7.8e+167) {
tmp = a * (i * (b - ((y * j) / a)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = y * ((x * z) - (i * j)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if y <= -3.5e+54: tmp = y * (z * (x - (i * (j / z)))) elif y <= -2.4e-167: tmp = (z * (x * y)) - (b * ((z * c) - (a * i))) elif y <= -3.5e-225: tmp = t_1 elif y <= 3.9e-208: tmp = t_3 elif y <= 3.2e-92: tmp = t_1 elif y <= 3.7e+53: tmp = t_3 elif y <= 5.8e+125: tmp = t_2 - (b * (z * c)) elif y <= 7.8e+167: tmp = a * (i * (b - ((y * j) / a))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (y <= -3.5e+54) tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); elseif (y <= -2.4e-167) tmp = Float64(Float64(z * Float64(x * y)) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); elseif (y <= -3.5e-225) tmp = t_1; elseif (y <= 3.9e-208) tmp = t_3; elseif (y <= 3.2e-92) tmp = t_1; elseif (y <= 3.7e+53) tmp = t_3; elseif (y <= 5.8e+125) tmp = Float64(t_2 - Float64(b * Float64(z * c))); elseif (y <= 7.8e+167) tmp = Float64(a * Float64(i * Float64(b - Float64(Float64(y * j) / a)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = y * ((x * z) - (i * j)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (y <= -3.5e+54) tmp = y * (z * (x - (i * (j / z)))); elseif (y <= -2.4e-167) tmp = (z * (x * y)) - (b * ((z * c) - (a * i))); elseif (y <= -3.5e-225) tmp = t_1; elseif (y <= 3.9e-208) tmp = t_3; elseif (y <= 3.2e-92) tmp = t_1; elseif (y <= 3.7e+53) tmp = t_3; elseif (y <= 5.8e+125) tmp = t_2 - (b * (z * c)); elseif (y <= 7.8e+167) tmp = a * (i * (b - ((y * j) / a))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+54], N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.4e-167], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.5e-225], t$95$1, If[LessEqual[y, 3.9e-208], t$95$3, If[LessEqual[y, 3.2e-92], t$95$1, If[LessEqual[y, 3.7e+53], t$95$3, If[LessEqual[y, 5.8e+125], N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e+167], N[(a * N[(i * N[(b - N[(N[(y * j), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-167}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-225}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-208}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+53}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+125}:\\
\;\;\;\;t\_2 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+167}:\\
\;\;\;\;a \cdot \left(i \cdot \left(b - \frac{y \cdot j}{a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.5000000000000001e54Initial program 68.0%
Taylor expanded in y around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
associate-/l*72.5%
Simplified72.5%
if -3.5000000000000001e54 < y < -2.39999999999999993e-167Initial program 75.7%
Taylor expanded in t around 0 71.6%
*-commutative71.6%
associate-*r*68.4%
associate-*r*65.9%
associate-*r*65.9%
distribute-rgt-in65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in j around 0 61.2%
associate-*r*63.7%
*-commutative63.7%
Simplified63.7%
if -2.39999999999999993e-167 < y < -3.4999999999999997e-225 or 3.90000000000000004e-208 < y < 3.1999999999999997e-92Initial program 76.7%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if -3.4999999999999997e-225 < y < 3.90000000000000004e-208 or 3.1999999999999997e-92 < y < 3.7e53Initial program 74.8%
Taylor expanded in a around inf 66.9%
distribute-lft-out--66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
if 3.7e53 < y < 5.79999999999999986e125Initial program 71.2%
Taylor expanded in t around 0 59.6%
*-commutative59.6%
associate-*r*65.6%
associate-*r*70.7%
associate-*r*70.7%
distribute-rgt-in76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in a around 0 76.6%
*-commutative76.6%
Simplified76.6%
if 5.79999999999999986e125 < y < 7.7999999999999996e167Initial program 51.2%
Taylor expanded in a around -inf 58.4%
Taylor expanded in i around inf 78.9%
if 7.7999999999999996e167 < y Initial program 58.5%
Taylor expanded in y around inf 88.0%
+-commutative88.0%
mul-1-neg88.0%
unsub-neg88.0%
*-commutative88.0%
Simplified88.0%
Final simplification70.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y)))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= b -4.4e-52)
t_2
(if (<= b -7.4e-175)
t_1
(if (<= b -2.7e-207)
t_3
(if (<= b -1.32e-240)
(* y (* x z))
(if (<= b -3e-275)
(* a (* t (- x)))
(if (<= b 5.5e-292)
t_1
(if (<= b 4e-286)
(* c (- (* t j) (* z b)))
(if (<= b 1.7e-37) t_3 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 = b * ((a * i) - (z * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (b <= -4.4e-52) {
tmp = t_2;
} else if (b <= -7.4e-175) {
tmp = t_1;
} else if (b <= -2.7e-207) {
tmp = t_3;
} else if (b <= -1.32e-240) {
tmp = y * (x * z);
} else if (b <= -3e-275) {
tmp = a * (t * -x);
} else if (b <= 5.5e-292) {
tmp = t_1;
} else if (b <= 4e-286) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 1.7e-37) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = z * (x * y)
t_2 = b * ((a * i) - (z * c))
t_3 = j * ((t * c) - (y * i))
if (b <= (-4.4d-52)) then
tmp = t_2
else if (b <= (-7.4d-175)) then
tmp = t_1
else if (b <= (-2.7d-207)) then
tmp = t_3
else if (b <= (-1.32d-240)) then
tmp = y * (x * z)
else if (b <= (-3d-275)) then
tmp = a * (t * -x)
else if (b <= 5.5d-292) then
tmp = t_1
else if (b <= 4d-286) then
tmp = c * ((t * j) - (z * b))
else if (b <= 1.7d-37) then
tmp = t_3
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 = b * ((a * i) - (z * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (b <= -4.4e-52) {
tmp = t_2;
} else if (b <= -7.4e-175) {
tmp = t_1;
} else if (b <= -2.7e-207) {
tmp = t_3;
} else if (b <= -1.32e-240) {
tmp = y * (x * z);
} else if (b <= -3e-275) {
tmp = a * (t * -x);
} else if (b <= 5.5e-292) {
tmp = t_1;
} else if (b <= 4e-286) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 1.7e-37) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = b * ((a * i) - (z * c)) t_3 = j * ((t * c) - (y * i)) tmp = 0 if b <= -4.4e-52: tmp = t_2 elif b <= -7.4e-175: tmp = t_1 elif b <= -2.7e-207: tmp = t_3 elif b <= -1.32e-240: tmp = y * (x * z) elif b <= -3e-275: tmp = a * (t * -x) elif b <= 5.5e-292: tmp = t_1 elif b <= 4e-286: tmp = c * ((t * j) - (z * b)) elif b <= 1.7e-37: tmp = t_3 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(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (b <= -4.4e-52) tmp = t_2; elseif (b <= -7.4e-175) tmp = t_1; elseif (b <= -2.7e-207) tmp = t_3; elseif (b <= -1.32e-240) tmp = Float64(y * Float64(x * z)); elseif (b <= -3e-275) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 5.5e-292) tmp = t_1; elseif (b <= 4e-286) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 1.7e-37) tmp = t_3; 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 = b * ((a * i) - (z * c)); t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (b <= -4.4e-52) tmp = t_2; elseif (b <= -7.4e-175) tmp = t_1; elseif (b <= -2.7e-207) tmp = t_3; elseif (b <= -1.32e-240) tmp = y * (x * z); elseif (b <= -3e-275) tmp = a * (t * -x); elseif (b <= 5.5e-292) tmp = t_1; elseif (b <= 4e-286) tmp = c * ((t * j) - (z * b)); elseif (b <= 1.7e-37) tmp = t_3; 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e-52], t$95$2, If[LessEqual[b, -7.4e-175], t$95$1, If[LessEqual[b, -2.7e-207], t$95$3, If[LessEqual[b, -1.32e-240], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3e-275], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-292], t$95$1, If[LessEqual[b, 4e-286], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-37], t$95$3, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{-52}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7.4 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-207}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-292}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-286}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-37}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.40000000000000018e-52 or 1.70000000000000009e-37 < b Initial program 68.1%
Taylor expanded in b around inf 57.9%
*-commutative57.9%
Simplified57.9%
if -4.40000000000000018e-52 < b < -7.39999999999999997e-175 or -3e-275 < b < 5.50000000000000006e-292Initial program 82.4%
Taylor expanded in t around 0 68.0%
*-commutative68.0%
associate-*r*63.2%
associate-*r*63.2%
associate-*r*63.2%
distribute-rgt-in63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in x around inf 54.6%
associate-*r*54.7%
*-commutative54.7%
Simplified54.7%
if -7.39999999999999997e-175 < b < -2.7e-207 or 4.0000000000000002e-286 < b < 1.70000000000000009e-37Initial program 69.9%
Taylor expanded in j around inf 61.0%
sub-neg61.0%
*-commutative61.0%
*-commutative61.0%
sub-neg61.0%
Simplified61.0%
if -2.7e-207 < b < -1.32e-240Initial program 63.8%
Taylor expanded in y around inf 70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around inf 60.9%
if -1.32e-240 < b < -3e-275Initial program 87.8%
Taylor expanded in z around inf 87.8%
+-commutative87.8%
fma-define87.8%
mul-1-neg87.8%
associate-/l*75.9%
distribute-lft-neg-in75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in z around 0 64.9%
associate-*r*64.9%
neg-mul-164.9%
*-commutative64.9%
Simplified64.9%
if 5.50000000000000006e-292 < b < 4.0000000000000002e-286Initial program 26.2%
Taylor expanded in c around inf 99.6%
*-commutative99.6%
*-commutative99.6%
Simplified99.6%
Final simplification59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= y -9.8e+91)
(* y (* z (- x (* i (/ j z)))))
(if (<= y -6.6e-45)
(* t (- (* c j) (* x a)))
(if (<= y -1.7e-98)
(* i (- (* a b) (* y j)))
(if (<= y -2.55e-167)
(* b (- (* a i) (* z c)))
(if (<= y -9.5e-224)
t_1
(if (<= y 3.8e-209)
t_2
(if (<= y 3.4e-92)
t_1
(if (<= y 5e+49) t_2 (* y (- (* x z) (* i j)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (y <= -9.8e+91) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -6.6e-45) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -1.7e-98) {
tmp = i * ((a * b) - (y * j));
} else if (y <= -2.55e-167) {
tmp = b * ((a * i) - (z * c));
} else if (y <= -9.5e-224) {
tmp = t_1;
} else if (y <= 3.8e-209) {
tmp = t_2;
} else if (y <= 3.4e-92) {
tmp = t_1;
} else if (y <= 5e+49) {
tmp = t_2;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (y <= (-9.8d+91)) then
tmp = y * (z * (x - (i * (j / z))))
else if (y <= (-6.6d-45)) then
tmp = t * ((c * j) - (x * a))
else if (y <= (-1.7d-98)) then
tmp = i * ((a * b) - (y * j))
else if (y <= (-2.55d-167)) then
tmp = b * ((a * i) - (z * c))
else if (y <= (-9.5d-224)) then
tmp = t_1
else if (y <= 3.8d-209) then
tmp = t_2
else if (y <= 3.4d-92) then
tmp = t_1
else if (y <= 5d+49) then
tmp = t_2
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (y <= -9.8e+91) {
tmp = y * (z * (x - (i * (j / z))));
} else if (y <= -6.6e-45) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -1.7e-98) {
tmp = i * ((a * b) - (y * j));
} else if (y <= -2.55e-167) {
tmp = b * ((a * i) - (z * c));
} else if (y <= -9.5e-224) {
tmp = t_1;
} else if (y <= 3.8e-209) {
tmp = t_2;
} else if (y <= 3.4e-92) {
tmp = t_1;
} else if (y <= 5e+49) {
tmp = t_2;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if y <= -9.8e+91: tmp = y * (z * (x - (i * (j / z)))) elif y <= -6.6e-45: tmp = t * ((c * j) - (x * a)) elif y <= -1.7e-98: tmp = i * ((a * b) - (y * j)) elif y <= -2.55e-167: tmp = b * ((a * i) - (z * c)) elif y <= -9.5e-224: tmp = t_1 elif y <= 3.8e-209: tmp = t_2 elif y <= 3.4e-92: tmp = t_1 elif y <= 5e+49: tmp = t_2 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (y <= -9.8e+91) tmp = Float64(y * Float64(z * Float64(x - Float64(i * Float64(j / z))))); elseif (y <= -6.6e-45) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= -1.7e-98) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (y <= -2.55e-167) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= -9.5e-224) tmp = t_1; elseif (y <= 3.8e-209) tmp = t_2; elseif (y <= 3.4e-92) tmp = t_1; elseif (y <= 5e+49) tmp = t_2; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (y <= -9.8e+91) tmp = y * (z * (x - (i * (j / z)))); elseif (y <= -6.6e-45) tmp = t * ((c * j) - (x * a)); elseif (y <= -1.7e-98) tmp = i * ((a * b) - (y * j)); elseif (y <= -2.55e-167) tmp = b * ((a * i) - (z * c)); elseif (y <= -9.5e-224) tmp = t_1; elseif (y <= 3.8e-209) tmp = t_2; elseif (y <= 3.4e-92) tmp = t_1; elseif (y <= 5e+49) tmp = t_2; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.8e+91], N[(y * N[(z * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.6e-45], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.7e-98], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.55e-167], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.5e-224], t$95$1, If[LessEqual[y, 3.8e-209], t$95$2, If[LessEqual[y, 3.4e-92], t$95$1, If[LessEqual[y, 5e+49], t$95$2, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;y \leq -9.8 \cdot 10^{+91}:\\
\;\;\;\;y \cdot \left(z \cdot \left(x - i \cdot \frac{j}{z}\right)\right)\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{-45}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-98}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq -2.55 \cdot 10^{-167}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-209}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -9.8000000000000006e91Initial program 70.4%
Taylor expanded in y around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in z around inf 75.5%
mul-1-neg75.5%
unsub-neg75.5%
associate-/l*75.5%
Simplified75.5%
if -9.8000000000000006e91 < y < -6.6000000000000001e-45Initial program 63.6%
Taylor expanded in t around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
if -6.6000000000000001e-45 < y < -1.7000000000000001e-98Initial program 90.0%
Taylor expanded in i around inf 60.6%
distribute-lft-out--60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in i around 0 60.6%
cancel-sign-sub-inv60.6%
fma-define60.6%
associate-*r*60.6%
mul-1-neg60.6%
fma-define60.6%
cancel-sign-sub-inv60.6%
*-commutative60.6%
*-commutative60.6%
Simplified60.6%
if -1.7000000000000001e-98 < y < -2.55000000000000019e-167Initial program 71.0%
Taylor expanded in b around inf 65.4%
*-commutative65.4%
Simplified65.4%
if -2.55000000000000019e-167 < y < -9.5000000000000003e-224 or 3.7999999999999999e-209 < y < 3.4000000000000003e-92Initial program 76.7%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if -9.5000000000000003e-224 < y < 3.7999999999999999e-209 or 3.4000000000000003e-92 < y < 5.0000000000000004e49Initial program 75.9%
Taylor expanded in a around inf 67.8%
distribute-lft-out--67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
if 5.0000000000000004e49 < y Initial program 59.4%
Taylor expanded in y around inf 67.2%
+-commutative67.2%
mul-1-neg67.2%
unsub-neg67.2%
*-commutative67.2%
Simplified67.2%
Final simplification67.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))
(t_2 (* j (- (* t c) (* y i)))))
(if (<= j -2.9e+138)
t_2
(if (<= j -5.5e+101)
t_1
(if (<= j -2.8e+36)
(* c (* t (- j (* b (/ z t)))))
(if (<= j 5e-81)
t_1
(if (<= j 5.1e-25)
(* z (* c (- (* x (/ y c)) b)))
(if (<= j 1.1e+162) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.9e+138) {
tmp = t_2;
} else if (j <= -5.5e+101) {
tmp = t_1;
} else if (j <= -2.8e+36) {
tmp = c * (t * (j - (b * (z / t))));
} else if (j <= 5e-81) {
tmp = t_1;
} else if (j <= 5.1e-25) {
tmp = z * (c * ((x * (y / c)) - b));
} else if (j <= 1.1e+162) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
t_2 = j * ((t * c) - (y * i))
if (j <= (-2.9d+138)) then
tmp = t_2
else if (j <= (-5.5d+101)) then
tmp = t_1
else if (j <= (-2.8d+36)) then
tmp = c * (t * (j - (b * (z / t))))
else if (j <= 5d-81) then
tmp = t_1
else if (j <= 5.1d-25) then
tmp = z * (c * ((x * (y / c)) - b))
else if (j <= 1.1d+162) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.9e+138) {
tmp = t_2;
} else if (j <= -5.5e+101) {
tmp = t_1;
} else if (j <= -2.8e+36) {
tmp = c * (t * (j - (b * (z / t))));
} else if (j <= 5e-81) {
tmp = t_1;
} else if (j <= 5.1e-25) {
tmp = z * (c * ((x * (y / c)) - b));
} else if (j <= 1.1e+162) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.9e+138: tmp = t_2 elif j <= -5.5e+101: tmp = t_1 elif j <= -2.8e+36: tmp = c * (t * (j - (b * (z / t)))) elif j <= 5e-81: tmp = t_1 elif j <= 5.1e-25: tmp = z * (c * ((x * (y / c)) - b)) elif j <= 1.1e+162: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.9e+138) tmp = t_2; elseif (j <= -5.5e+101) tmp = t_1; elseif (j <= -2.8e+36) tmp = Float64(c * Float64(t * Float64(j - Float64(b * Float64(z / t))))); elseif (j <= 5e-81) tmp = t_1; elseif (j <= 5.1e-25) tmp = Float64(z * Float64(c * Float64(Float64(x * Float64(y / c)) - b))); elseif (j <= 1.1e+162) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.9e+138) tmp = t_2; elseif (j <= -5.5e+101) tmp = t_1; elseif (j <= -2.8e+36) tmp = c * (t * (j - (b * (z / t)))); elseif (j <= 5e-81) tmp = t_1; elseif (j <= 5.1e-25) tmp = z * (c * ((x * (y / c)) - b)); elseif (j <= 1.1e+162) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.9e+138], t$95$2, If[LessEqual[j, -5.5e+101], t$95$1, If[LessEqual[j, -2.8e+36], N[(c * N[(t * N[(j - N[(b * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-81], t$95$1, If[LessEqual[j, 5.1e-25], N[(z * N[(c * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e+162], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.9 \cdot 10^{+138}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.8 \cdot 10^{+36}:\\
\;\;\;\;c \cdot \left(t \cdot \left(j - b \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 5.1 \cdot 10^{-25}:\\
\;\;\;\;z \cdot \left(c \cdot \left(x \cdot \frac{y}{c} - b\right)\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.9000000000000001e138 or 1.1000000000000001e162 < j Initial program 69.2%
Taylor expanded in j around inf 74.2%
sub-neg74.2%
*-commutative74.2%
*-commutative74.2%
sub-neg74.2%
Simplified74.2%
if -2.9000000000000001e138 < j < -5.50000000000000018e101 or -2.8000000000000001e36 < j < 4.99999999999999981e-81 or 5.1000000000000003e-25 < j < 1.1000000000000001e162Initial program 75.5%
Taylor expanded in j around 0 71.1%
*-commutative71.1%
Simplified71.1%
if -5.50000000000000018e101 < j < -2.8000000000000001e36Initial program 30.7%
Taylor expanded in c around inf 70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in t around inf 70.8%
mul-1-neg70.8%
unsub-neg70.8%
associate-/l*70.8%
Simplified70.8%
if 4.99999999999999981e-81 < j < 5.1000000000000003e-25Initial program 41.9%
Taylor expanded in z around inf 59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in c around inf 67.6%
associate-/l*75.8%
Simplified75.8%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* t (- (* c j) (* x a))))
(t_4 (* i (- (* a b) (* y j)))))
(if (<= t -6.2e+87)
t_3
(if (<= t -1.68e-140)
t_2
(if (<= t -4.4e-243)
t_1
(if (<= t 6.2e-279)
t_2
(if (<= t 1.52e-214)
t_4
(if (<= t 2.35e-119) t_1 (if (<= t 9.5e+23) t_4 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((c * j) - (x * a));
double t_4 = i * ((a * b) - (y * j));
double tmp;
if (t <= -6.2e+87) {
tmp = t_3;
} else if (t <= -1.68e-140) {
tmp = t_2;
} else if (t <= -4.4e-243) {
tmp = t_1;
} else if (t <= 6.2e-279) {
tmp = t_2;
} else if (t <= 1.52e-214) {
tmp = t_4;
} else if (t <= 2.35e-119) {
tmp = t_1;
} else if (t <= 9.5e+23) {
tmp = t_4;
} 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) :: t_4
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = y * ((x * z) - (i * j))
t_3 = t * ((c * j) - (x * a))
t_4 = i * ((a * b) - (y * j))
if (t <= (-6.2d+87)) then
tmp = t_3
else if (t <= (-1.68d-140)) then
tmp = t_2
else if (t <= (-4.4d-243)) then
tmp = t_1
else if (t <= 6.2d-279) then
tmp = t_2
else if (t <= 1.52d-214) then
tmp = t_4
else if (t <= 2.35d-119) then
tmp = t_1
else if (t <= 9.5d+23) then
tmp = t_4
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((c * j) - (x * a));
double t_4 = i * ((a * b) - (y * j));
double tmp;
if (t <= -6.2e+87) {
tmp = t_3;
} else if (t <= -1.68e-140) {
tmp = t_2;
} else if (t <= -4.4e-243) {
tmp = t_1;
} else if (t <= 6.2e-279) {
tmp = t_2;
} else if (t <= 1.52e-214) {
tmp = t_4;
} else if (t <= 2.35e-119) {
tmp = t_1;
} else if (t <= 9.5e+23) {
tmp = t_4;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = y * ((x * z) - (i * j)) t_3 = t * ((c * j) - (x * a)) t_4 = i * ((a * b) - (y * j)) tmp = 0 if t <= -6.2e+87: tmp = t_3 elif t <= -1.68e-140: tmp = t_2 elif t <= -4.4e-243: tmp = t_1 elif t <= 6.2e-279: tmp = t_2 elif t <= 1.52e-214: tmp = t_4 elif t <= 2.35e-119: tmp = t_1 elif t <= 9.5e+23: tmp = t_4 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_4 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (t <= -6.2e+87) tmp = t_3; elseif (t <= -1.68e-140) tmp = t_2; elseif (t <= -4.4e-243) tmp = t_1; elseif (t <= 6.2e-279) tmp = t_2; elseif (t <= 1.52e-214) tmp = t_4; elseif (t <= 2.35e-119) tmp = t_1; elseif (t <= 9.5e+23) tmp = t_4; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = y * ((x * z) - (i * j)); t_3 = t * ((c * j) - (x * a)); t_4 = i * ((a * b) - (y * j)); tmp = 0.0; if (t <= -6.2e+87) tmp = t_3; elseif (t <= -1.68e-140) tmp = t_2; elseif (t <= -4.4e-243) tmp = t_1; elseif (t <= 6.2e-279) tmp = t_2; elseif (t <= 1.52e-214) tmp = t_4; elseif (t <= 2.35e-119) tmp = t_1; elseif (t <= 9.5e+23) tmp = t_4; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e+87], t$95$3, If[LessEqual[t, -1.68e-140], t$95$2, If[LessEqual[t, -4.4e-243], t$95$1, If[LessEqual[t, 6.2e-279], t$95$2, If[LessEqual[t, 1.52e-214], t$95$4, If[LessEqual[t, 2.35e-119], t$95$1, If[LessEqual[t, 9.5e+23], t$95$4, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_4 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+87}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1.68 \cdot 10^{-140}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-243}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-279}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.52 \cdot 10^{-214}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+23}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -6.1999999999999999e87 or 9.50000000000000038e23 < t Initial program 55.5%
Taylor expanded in t around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if -6.1999999999999999e87 < t < -1.68e-140 or -4.3999999999999998e-243 < t < 6.1999999999999998e-279Initial program 77.2%
Taylor expanded in y around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
if -1.68e-140 < t < -4.3999999999999998e-243 or 1.51999999999999991e-214 < t < 2.35000000000000001e-119Initial program 81.2%
Taylor expanded in z around inf 67.8%
*-commutative67.8%
Simplified67.8%
if 6.1999999999999998e-279 < t < 1.51999999999999991e-214 or 2.35000000000000001e-119 < t < 9.50000000000000038e23Initial program 79.3%
Taylor expanded in i around inf 64.6%
distribute-lft-out--64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in i around 0 64.6%
cancel-sign-sub-inv64.6%
fma-define64.6%
associate-*r*64.6%
mul-1-neg64.6%
fma-define64.6%
cancel-sign-sub-inv64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -7.2e+91)
t_3
(if (<= y -4.1e-38)
(* t (- (* c j) (* x a)))
(if (<= y -2.8e-168)
(* b (- (* a i) (* z c)))
(if (<= y -1.5e-221)
t_2
(if (<= y 2e-209)
t_1
(if (<= y 1.8e-91) t_2 (if (<= y 3e+51) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7.2e+91) {
tmp = t_3;
} else if (y <= -4.1e-38) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -2.8e-168) {
tmp = b * ((a * i) - (z * c));
} else if (y <= -1.5e-221) {
tmp = t_2;
} else if (y <= 2e-209) {
tmp = t_1;
} else if (y <= 1.8e-91) {
tmp = t_2;
} else if (y <= 3e+51) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
t_3 = y * ((x * z) - (i * j))
if (y <= (-7.2d+91)) then
tmp = t_3
else if (y <= (-4.1d-38)) then
tmp = t * ((c * j) - (x * a))
else if (y <= (-2.8d-168)) then
tmp = b * ((a * i) - (z * c))
else if (y <= (-1.5d-221)) then
tmp = t_2
else if (y <= 2d-209) then
tmp = t_1
else if (y <= 1.8d-91) then
tmp = t_2
else if (y <= 3d+51) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7.2e+91) {
tmp = t_3;
} else if (y <= -4.1e-38) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -2.8e-168) {
tmp = b * ((a * i) - (z * c));
} else if (y <= -1.5e-221) {
tmp = t_2;
} else if (y <= 2e-209) {
tmp = t_1;
} else if (y <= 1.8e-91) {
tmp = t_2;
} else if (y <= 3e+51) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -7.2e+91: tmp = t_3 elif y <= -4.1e-38: tmp = t * ((c * j) - (x * a)) elif y <= -2.8e-168: tmp = b * ((a * i) - (z * c)) elif y <= -1.5e-221: tmp = t_2 elif y <= 2e-209: tmp = t_1 elif y <= 1.8e-91: tmp = t_2 elif y <= 3e+51: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -7.2e+91) tmp = t_3; elseif (y <= -4.1e-38) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= -2.8e-168) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= -1.5e-221) tmp = t_2; elseif (y <= 2e-209) tmp = t_1; elseif (y <= 1.8e-91) tmp = t_2; elseif (y <= 3e+51) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -7.2e+91) tmp = t_3; elseif (y <= -4.1e-38) tmp = t * ((c * j) - (x * a)); elseif (y <= -2.8e-168) tmp = b * ((a * i) - (z * c)); elseif (y <= -1.5e-221) tmp = t_2; elseif (y <= 2e-209) tmp = t_1; elseif (y <= 1.8e-91) tmp = t_2; elseif (y <= 3e+51) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e+91], t$95$3, If[LessEqual[y, -4.1e-38], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.8e-168], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-221], t$95$2, If[LessEqual[y, 2e-209], t$95$1, If[LessEqual[y, 1.8e-91], t$95$2, If[LessEqual[y, 3e+51], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{+91}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-38}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-168}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-221}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-91}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 3 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -7.2e91 or 3e51 < y Initial program 64.0%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
Simplified70.7%
if -7.2e91 < y < -4.0999999999999998e-38Initial program 63.6%
Taylor expanded in t around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
if -4.0999999999999998e-38 < y < -2.8000000000000002e-168Initial program 78.9%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
if -2.8000000000000002e-168 < y < -1.5000000000000001e-221 or 2.0000000000000001e-209 < y < 1.8e-91Initial program 76.7%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if -1.5000000000000001e-221 < y < 2.0000000000000001e-209 or 1.8e-91 < y < 3e51Initial program 75.9%
Taylor expanded in a around inf 67.8%
distribute-lft-out--67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -1.12e+92)
t_3
(if (<= y -9.2e-39)
(* t (- (* c j) (* x a)))
(if (<= y -2.2e-167)
(* b (* i (- a (* c (/ z i)))))
(if (<= y -2e-224)
t_2
(if (<= y 8.8e-209)
t_1
(if (<= y 1.8e-91) t_2 (if (<= y 7.5e+52) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.12e+92) {
tmp = t_3;
} else if (y <= -9.2e-39) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -2.2e-167) {
tmp = b * (i * (a - (c * (z / i))));
} else if (y <= -2e-224) {
tmp = t_2;
} else if (y <= 8.8e-209) {
tmp = t_1;
} else if (y <= 1.8e-91) {
tmp = t_2;
} else if (y <= 7.5e+52) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
t_3 = y * ((x * z) - (i * j))
if (y <= (-1.12d+92)) then
tmp = t_3
else if (y <= (-9.2d-39)) then
tmp = t * ((c * j) - (x * a))
else if (y <= (-2.2d-167)) then
tmp = b * (i * (a - (c * (z / i))))
else if (y <= (-2d-224)) then
tmp = t_2
else if (y <= 8.8d-209) then
tmp = t_1
else if (y <= 1.8d-91) then
tmp = t_2
else if (y <= 7.5d+52) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.12e+92) {
tmp = t_3;
} else if (y <= -9.2e-39) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -2.2e-167) {
tmp = b * (i * (a - (c * (z / i))));
} else if (y <= -2e-224) {
tmp = t_2;
} else if (y <= 8.8e-209) {
tmp = t_1;
} else if (y <= 1.8e-91) {
tmp = t_2;
} else if (y <= 7.5e+52) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.12e+92: tmp = t_3 elif y <= -9.2e-39: tmp = t * ((c * j) - (x * a)) elif y <= -2.2e-167: tmp = b * (i * (a - (c * (z / i)))) elif y <= -2e-224: tmp = t_2 elif y <= 8.8e-209: tmp = t_1 elif y <= 1.8e-91: tmp = t_2 elif y <= 7.5e+52: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.12e+92) tmp = t_3; elseif (y <= -9.2e-39) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= -2.2e-167) tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i))))); elseif (y <= -2e-224) tmp = t_2; elseif (y <= 8.8e-209) tmp = t_1; elseif (y <= 1.8e-91) tmp = t_2; elseif (y <= 7.5e+52) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.12e+92) tmp = t_3; elseif (y <= -9.2e-39) tmp = t * ((c * j) - (x * a)); elseif (y <= -2.2e-167) tmp = b * (i * (a - (c * (z / i)))); elseif (y <= -2e-224) tmp = t_2; elseif (y <= 8.8e-209) tmp = t_1; elseif (y <= 1.8e-91) tmp = t_2; elseif (y <= 7.5e+52) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+92], t$95$3, If[LessEqual[y, -9.2e-39], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.2e-167], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2e-224], t$95$2, If[LessEqual[y, 8.8e-209], t$95$1, If[LessEqual[y, 1.8e-91], t$95$2, If[LessEqual[y, 7.5e+52], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+92}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{-39}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq -2.2 \cdot 10^{-167}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{elif}\;y \leq -2 \cdot 10^{-224}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-91}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -1.1199999999999999e92 or 7.49999999999999995e52 < y Initial program 64.0%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
Simplified70.7%
if -1.1199999999999999e92 < y < -9.20000000000000033e-39Initial program 63.6%
Taylor expanded in t around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
if -9.20000000000000033e-39 < y < -2.2e-167Initial program 78.9%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
Taylor expanded in i around inf 55.2%
mul-1-neg55.2%
unsub-neg55.2%
associate-/l*55.3%
Simplified55.3%
if -2.2e-167 < y < -2e-224 or 8.80000000000000039e-209 < y < 1.8e-91Initial program 76.7%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if -2e-224 < y < 8.80000000000000039e-209 or 1.8e-91 < y < 7.49999999999999995e52Initial program 75.9%
Taylor expanded in a around inf 67.8%
distribute-lft-out--67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.3e-52)
t_1
(if (<= b -4.3e-241)
(* x (* y z))
(if (<= b -3.6e-275)
(* a (* t (- x)))
(if (<= b 9.5e-292)
(* z (* x y))
(if (<= b 8.2e-221)
(* c (* t j))
(if (<= b 2.7e-35) (* (* y j) (- 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.3e-52) {
tmp = t_1;
} else if (b <= -4.3e-241) {
tmp = x * (y * z);
} else if (b <= -3.6e-275) {
tmp = a * (t * -x);
} else if (b <= 9.5e-292) {
tmp = z * (x * y);
} else if (b <= 8.2e-221) {
tmp = c * (t * j);
} else if (b <= 2.7e-35) {
tmp = (y * j) * -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 = b * ((a * i) - (z * c))
if (b <= (-1.3d-52)) then
tmp = t_1
else if (b <= (-4.3d-241)) then
tmp = x * (y * z)
else if (b <= (-3.6d-275)) then
tmp = a * (t * -x)
else if (b <= 9.5d-292) then
tmp = z * (x * y)
else if (b <= 8.2d-221) then
tmp = c * (t * j)
else if (b <= 2.7d-35) then
tmp = (y * j) * -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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.3e-52) {
tmp = t_1;
} else if (b <= -4.3e-241) {
tmp = x * (y * z);
} else if (b <= -3.6e-275) {
tmp = a * (t * -x);
} else if (b <= 9.5e-292) {
tmp = z * (x * y);
} else if (b <= 8.2e-221) {
tmp = c * (t * j);
} else if (b <= 2.7e-35) {
tmp = (y * j) * -i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.3e-52: tmp = t_1 elif b <= -4.3e-241: tmp = x * (y * z) elif b <= -3.6e-275: tmp = a * (t * -x) elif b <= 9.5e-292: tmp = z * (x * y) elif b <= 8.2e-221: tmp = c * (t * j) elif b <= 2.7e-35: tmp = (y * j) * -i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.3e-52) tmp = t_1; elseif (b <= -4.3e-241) tmp = Float64(x * Float64(y * z)); elseif (b <= -3.6e-275) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 9.5e-292) tmp = Float64(z * Float64(x * y)); elseif (b <= 8.2e-221) tmp = Float64(c * Float64(t * j)); elseif (b <= 2.7e-35) tmp = Float64(Float64(y * j) * Float64(-i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.3e-52) tmp = t_1; elseif (b <= -4.3e-241) tmp = x * (y * z); elseif (b <= -3.6e-275) tmp = a * (t * -x); elseif (b <= 9.5e-292) tmp = z * (x * y); elseif (b <= 8.2e-221) tmp = c * (t * j); elseif (b <= 2.7e-35) tmp = (y * j) * -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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.3e-52], t$95$1, If[LessEqual[b, -4.3e-241], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-275], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-292], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-221], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e-35], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.3 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.3 \cdot 10^{-241}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-221}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-35}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.2999999999999999e-52 or 2.6999999999999997e-35 < b Initial program 68.1%
Taylor expanded in b around inf 57.9%
*-commutative57.9%
Simplified57.9%
if -1.2999999999999999e-52 < b < -4.2999999999999999e-241Initial program 75.9%
Taylor expanded in y around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in x around inf 63.1%
+-commutative63.1%
*-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
associate-*r*64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in x around inf 48.3%
if -4.2999999999999999e-241 < b < -3.5999999999999997e-275Initial program 87.8%
Taylor expanded in z around inf 87.8%
+-commutative87.8%
fma-define87.8%
mul-1-neg87.8%
associate-/l*75.9%
distribute-lft-neg-in75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in z around 0 64.9%
associate-*r*64.9%
neg-mul-164.9%
*-commutative64.9%
Simplified64.9%
if -3.5999999999999997e-275 < b < 9.4999999999999994e-292Initial program 77.1%
Taylor expanded in t around 0 67.1%
*-commutative67.1%
associate-*r*56.7%
associate-*r*56.9%
associate-*r*56.9%
distribute-rgt-in56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in x around inf 67.7%
associate-*r*68.1%
*-commutative68.1%
Simplified68.1%
if 9.4999999999999994e-292 < b < 8.19999999999999962e-221Initial program 70.6%
Taylor expanded in c around inf 49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in t around inf 44.5%
if 8.19999999999999962e-221 < b < 2.6999999999999997e-35Initial program 65.6%
Taylor expanded in y around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in x around 0 48.3%
associate-*r*48.3%
neg-mul-148.3%
Simplified48.3%
Final simplification54.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -7e-52)
t_1
(if (<= b -2.05e-241)
(* x (* y z))
(if (<= b -2.8e-275)
(* a (* t (- x)))
(if (<= b 8e-292)
(* z (* x y))
(if (<= b 1.9e-226)
(* c (- (* t j) (* z b)))
(if (<= b 5.8e-38) (* (* y j) (- 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7e-52) {
tmp = t_1;
} else if (b <= -2.05e-241) {
tmp = x * (y * z);
} else if (b <= -2.8e-275) {
tmp = a * (t * -x);
} else if (b <= 8e-292) {
tmp = z * (x * y);
} else if (b <= 1.9e-226) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 5.8e-38) {
tmp = (y * j) * -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 = b * ((a * i) - (z * c))
if (b <= (-7d-52)) then
tmp = t_1
else if (b <= (-2.05d-241)) then
tmp = x * (y * z)
else if (b <= (-2.8d-275)) then
tmp = a * (t * -x)
else if (b <= 8d-292) then
tmp = z * (x * y)
else if (b <= 1.9d-226) then
tmp = c * ((t * j) - (z * b))
else if (b <= 5.8d-38) then
tmp = (y * j) * -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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7e-52) {
tmp = t_1;
} else if (b <= -2.05e-241) {
tmp = x * (y * z);
} else if (b <= -2.8e-275) {
tmp = a * (t * -x);
} else if (b <= 8e-292) {
tmp = z * (x * y);
} else if (b <= 1.9e-226) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 5.8e-38) {
tmp = (y * j) * -i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7e-52: tmp = t_1 elif b <= -2.05e-241: tmp = x * (y * z) elif b <= -2.8e-275: tmp = a * (t * -x) elif b <= 8e-292: tmp = z * (x * y) elif b <= 1.9e-226: tmp = c * ((t * j) - (z * b)) elif b <= 5.8e-38: tmp = (y * j) * -i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7e-52) tmp = t_1; elseif (b <= -2.05e-241) tmp = Float64(x * Float64(y * z)); elseif (b <= -2.8e-275) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 8e-292) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.9e-226) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 5.8e-38) tmp = Float64(Float64(y * j) * Float64(-i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7e-52) tmp = t_1; elseif (b <= -2.05e-241) tmp = x * (y * z); elseif (b <= -2.8e-275) tmp = a * (t * -x); elseif (b <= 8e-292) tmp = z * (x * y); elseif (b <= 1.9e-226) tmp = c * ((t * j) - (z * b)); elseif (b <= 5.8e-38) tmp = (y * j) * -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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e-52], t$95$1, If[LessEqual[b, -2.05e-241], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.8e-275], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-292], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-226], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e-38], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-241}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-226}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-38}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.0000000000000001e-52 or 5.79999999999999988e-38 < b Initial program 68.1%
Taylor expanded in b around inf 57.9%
*-commutative57.9%
Simplified57.9%
if -7.0000000000000001e-52 < b < -2.0499999999999999e-241Initial program 75.9%
Taylor expanded in y around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in x around inf 63.1%
+-commutative63.1%
*-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
associate-*r*64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in x around inf 48.3%
if -2.0499999999999999e-241 < b < -2.79999999999999994e-275Initial program 87.8%
Taylor expanded in z around inf 87.8%
+-commutative87.8%
fma-define87.8%
mul-1-neg87.8%
associate-/l*75.9%
distribute-lft-neg-in75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in z around 0 64.9%
associate-*r*64.9%
neg-mul-164.9%
*-commutative64.9%
Simplified64.9%
if -2.79999999999999994e-275 < b < 8.0000000000000004e-292Initial program 77.1%
Taylor expanded in t around 0 67.1%
*-commutative67.1%
associate-*r*56.7%
associate-*r*56.9%
associate-*r*56.9%
distribute-rgt-in56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in x around inf 67.7%
associate-*r*68.1%
*-commutative68.1%
Simplified68.1%
if 8.0000000000000004e-292 < b < 1.89999999999999991e-226Initial program 70.6%
Taylor expanded in c around inf 49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
if 1.89999999999999991e-226 < b < 5.79999999999999988e-38Initial program 65.6%
Taylor expanded in y around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in x around 0 48.3%
associate-*r*48.3%
neg-mul-148.3%
Simplified48.3%
Final simplification54.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* y (- (* x z) (* i j))) t_1))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -1.35e+112)
t_3
(if (<= t -2.42e-60)
t_2
(if (<= t -1e-170)
(+ (* x (- (* y z) (* t a))) t_1)
(if (<= t 3.4e+25) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (y * ((x * z) - (i * j))) + t_1;
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.35e+112) {
tmp = t_3;
} else if (t <= -2.42e-60) {
tmp = t_2;
} else if (t <= -1e-170) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (t <= 3.4e+25) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = (y * ((x * z) - (i * j))) + t_1
t_3 = t * ((c * j) - (x * a))
if (t <= (-1.35d+112)) then
tmp = t_3
else if (t <= (-2.42d-60)) then
tmp = t_2
else if (t <= (-1d-170)) then
tmp = (x * ((y * z) - (t * a))) + t_1
else if (t <= 3.4d+25) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (y * ((x * z) - (i * j))) + t_1;
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.35e+112) {
tmp = t_3;
} else if (t <= -2.42e-60) {
tmp = t_2;
} else if (t <= -1e-170) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (t <= 3.4e+25) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (y * ((x * z) - (i * j))) + t_1 t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.35e+112: tmp = t_3 elif t <= -2.42e-60: tmp = t_2 elif t <= -1e-170: tmp = (x * ((y * z) - (t * a))) + t_1 elif t <= 3.4e+25: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.35e+112) tmp = t_3; elseif (t <= -2.42e-60) tmp = t_2; elseif (t <= -1e-170) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); elseif (t <= 3.4e+25) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = (y * ((x * z) - (i * j))) + t_1; t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.35e+112) tmp = t_3; elseif (t <= -2.42e-60) tmp = t_2; elseif (t <= -1e-170) tmp = (x * ((y * z) - (t * a))) + t_1; elseif (t <= 3.4e+25) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.35e+112], t$95$3, If[LessEqual[t, -2.42e-60], t$95$2, If[LessEqual[t, -1e-170], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[t, 3.4e+25], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{+112}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -2.42 \cdot 10^{-60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-170}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+25}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -1.3500000000000001e112 or 3.39999999999999984e25 < t Initial program 55.6%
Taylor expanded in t around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
if -1.3500000000000001e112 < t < -2.41999999999999992e-60 or -9.99999999999999983e-171 < t < 3.39999999999999984e25Initial program 80.2%
Taylor expanded in t around 0 70.3%
*-commutative70.3%
associate-*r*72.9%
associate-*r*72.2%
associate-*r*72.2%
distribute-rgt-in75.1%
+-commutative75.1%
mul-1-neg75.1%
unsub-neg75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
if -2.41999999999999992e-60 < t < -9.99999999999999983e-171Initial program 70.5%
Taylor expanded in j around 0 67.3%
*-commutative67.3%
Simplified67.3%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= b -3.7e-46)
t_1
(if (<= b -2.05e-241)
(* x (* y z))
(if (<= b -3.4e-275)
(* a (* t (- x)))
(if (<= b 5.5e-292)
(* z (* x y))
(if (<= b 3.05e-230)
(* c (* t j))
(if (<= b 2.7e+44) (* (* y j) (- i)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -3.7e-46) {
tmp = t_1;
} else if (b <= -2.05e-241) {
tmp = x * (y * z);
} else if (b <= -3.4e-275) {
tmp = a * (t * -x);
} else if (b <= 5.5e-292) {
tmp = z * (x * y);
} else if (b <= 3.05e-230) {
tmp = c * (t * j);
} else if (b <= 2.7e+44) {
tmp = (y * j) * -i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (b <= (-3.7d-46)) then
tmp = t_1
else if (b <= (-2.05d-241)) then
tmp = x * (y * z)
else if (b <= (-3.4d-275)) then
tmp = a * (t * -x)
else if (b <= 5.5d-292) then
tmp = z * (x * y)
else if (b <= 3.05d-230) then
tmp = c * (t * j)
else if (b <= 2.7d+44) then
tmp = (y * j) * -i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -3.7e-46) {
tmp = t_1;
} else if (b <= -2.05e-241) {
tmp = x * (y * z);
} else if (b <= -3.4e-275) {
tmp = a * (t * -x);
} else if (b <= 5.5e-292) {
tmp = z * (x * y);
} else if (b <= 3.05e-230) {
tmp = c * (t * j);
} else if (b <= 2.7e+44) {
tmp = (y * j) * -i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if b <= -3.7e-46: tmp = t_1 elif b <= -2.05e-241: tmp = x * (y * z) elif b <= -3.4e-275: tmp = a * (t * -x) elif b <= 5.5e-292: tmp = z * (x * y) elif b <= 3.05e-230: tmp = c * (t * j) elif b <= 2.7e+44: tmp = (y * j) * -i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (b <= -3.7e-46) tmp = t_1; elseif (b <= -2.05e-241) tmp = Float64(x * Float64(y * z)); elseif (b <= -3.4e-275) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 5.5e-292) tmp = Float64(z * Float64(x * y)); elseif (b <= 3.05e-230) tmp = Float64(c * Float64(t * j)); elseif (b <= 2.7e+44) tmp = Float64(Float64(y * j) * Float64(-i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (b <= -3.7e-46) tmp = t_1; elseif (b <= -2.05e-241) tmp = x * (y * z); elseif (b <= -3.4e-275) tmp = a * (t * -x); elseif (b <= 5.5e-292) tmp = z * (x * y); elseif (b <= 3.05e-230) tmp = c * (t * j); elseif (b <= 2.7e+44) tmp = (y * j) * -i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e-46], t$95$1, If[LessEqual[b, -2.05e-241], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.4e-275], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e-292], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.05e-230], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e+44], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{-46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-241}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 3.05 \cdot 10^{-230}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+44}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.69999999999999983e-46 or 2.7e44 < b Initial program 68.9%
Taylor expanded in b around inf 60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in a around inf 42.4%
*-commutative42.4%
Simplified42.4%
if -3.69999999999999983e-46 < b < -2.0499999999999999e-241Initial program 74.6%
Taylor expanded in y around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in x around inf 62.0%
+-commutative62.0%
*-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
*-commutative62.0%
associate-*r*63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 47.5%
if -2.0499999999999999e-241 < b < -3.39999999999999968e-275Initial program 87.8%
Taylor expanded in z around inf 87.8%
+-commutative87.8%
fma-define87.8%
mul-1-neg87.8%
associate-/l*75.9%
distribute-lft-neg-in75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in z around 0 64.9%
associate-*r*64.9%
neg-mul-164.9%
*-commutative64.9%
Simplified64.9%
if -3.39999999999999968e-275 < b < 5.50000000000000006e-292Initial program 77.1%
Taylor expanded in t around 0 67.1%
*-commutative67.1%
associate-*r*56.7%
associate-*r*56.9%
associate-*r*56.9%
distribute-rgt-in56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in x around inf 67.7%
associate-*r*68.1%
*-commutative68.1%
Simplified68.1%
if 5.50000000000000006e-292 < b < 3.04999999999999978e-230Initial program 70.6%
Taylor expanded in c around inf 49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in t around inf 44.5%
if 3.04999999999999978e-230 < b < 2.7e44Initial program 65.6%
Taylor expanded in y around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in x around 0 41.3%
associate-*r*41.3%
neg-mul-141.3%
Simplified41.3%
Final simplification45.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (+ t_1 (* b (- (* a i) (* z c))))))
(if (<= y -4e-112)
t_2
(if (<= y 1.7e-7)
(*
z
(+ (- (* x y) (* a (* x (/ t z)))) (- (* a (/ (* b i) z)) (* b c))))
(if (<= y 4.6e+168) 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 = y * ((x * z) - (i * j));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double tmp;
if (y <= -4e-112) {
tmp = t_2;
} else if (y <= 1.7e-7) {
tmp = z * (((x * y) - (a * (x * (t / z)))) + ((a * ((b * i) / z)) - (b * c)));
} else if (y <= 4.6e+168) {
tmp = t_2;
} 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) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = t_1 + (b * ((a * i) - (z * c)))
if (y <= (-4d-112)) then
tmp = t_2
else if (y <= 1.7d-7) then
tmp = z * (((x * y) - (a * (x * (t / z)))) + ((a * ((b * i) / z)) - (b * c)))
else if (y <= 4.6d+168) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double tmp;
if (y <= -4e-112) {
tmp = t_2;
} else if (y <= 1.7e-7) {
tmp = z * (((x * y) - (a * (x * (t / z)))) + ((a * ((b * i) / z)) - (b * c)));
} else if (y <= 4.6e+168) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t_1 + (b * ((a * i) - (z * c))) tmp = 0 if y <= -4e-112: tmp = t_2 elif y <= 1.7e-7: tmp = z * (((x * y) - (a * (x * (t / z)))) + ((a * ((b * i) / z)) - (b * c))) elif y <= 4.6e+168: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (y <= -4e-112) tmp = t_2; elseif (y <= 1.7e-7) tmp = Float64(z * Float64(Float64(Float64(x * y) - Float64(a * Float64(x * Float64(t / z)))) + Float64(Float64(a * Float64(Float64(b * i) / z)) - Float64(b * c)))); elseif (y <= 4.6e+168) 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 = y * ((x * z) - (i * j)); t_2 = t_1 + (b * ((a * i) - (z * c))); tmp = 0.0; if (y <= -4e-112) tmp = t_2; elseif (y <= 1.7e-7) tmp = z * (((x * y) - (a * (x * (t / z)))) + ((a * ((b * i) / z)) - (b * c))); elseif (y <= 4.6e+168) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4e-112], t$95$2, If[LessEqual[y, 1.7e-7], N[(z * N[(N[(N[(x * y), $MachinePrecision] - N[(a * N[(x * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(N[(b * i), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+168], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -4 \cdot 10^{-112}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-7}:\\
\;\;\;\;z \cdot \left(\left(x \cdot y - a \cdot \left(x \cdot \frac{t}{z}\right)\right) + \left(a \cdot \frac{b \cdot i}{z} - b \cdot c\right)\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+168}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.9999999999999998e-112 or 1.69999999999999987e-7 < y < 4.5999999999999999e168Initial program 69.5%
Taylor expanded in t around 0 62.3%
*-commutative62.3%
associate-*r*65.2%
associate-*r*66.0%
associate-*r*66.0%
distribute-rgt-in69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
if -3.9999999999999998e-112 < y < 1.69999999999999987e-7Initial program 75.5%
Taylor expanded in j around 0 57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in z around inf 68.0%
+-commutative68.0%
mul-1-neg68.0%
unsub-neg68.0%
associate-/l*64.9%
*-commutative64.9%
associate-*r/67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
associate-/l*66.8%
*-commutative66.8%
Simplified66.8%
if 4.5999999999999999e168 < y Initial program 57.0%
Taylor expanded in y around inf 89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
*-commutative89.6%
Simplified89.6%
Final simplification70.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -4.4e-52)
t_1
(if (<= b -2.8e-252)
(* y (- (* x z) (* i j)))
(if (<= b 9.2e-34)
(* j (- (* t c) (* y i)))
(if (or (<= b 1.8e+114) (not (<= b 2.8e+160)))
t_1
(* t (- (* c j) (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.4e-52) {
tmp = t_1;
} else if (b <= -2.8e-252) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 9.2e-34) {
tmp = j * ((t * c) - (y * i));
} else if ((b <= 1.8e+114) || !(b <= 2.8e+160)) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-4.4d-52)) then
tmp = t_1
else if (b <= (-2.8d-252)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 9.2d-34) then
tmp = j * ((t * c) - (y * i))
else if ((b <= 1.8d+114) .or. (.not. (b <= 2.8d+160))) then
tmp = t_1
else
tmp = t * ((c * j) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.4e-52) {
tmp = t_1;
} else if (b <= -2.8e-252) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 9.2e-34) {
tmp = j * ((t * c) - (y * i));
} else if ((b <= 1.8e+114) || !(b <= 2.8e+160)) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -4.4e-52: tmp = t_1 elif b <= -2.8e-252: tmp = y * ((x * z) - (i * j)) elif b <= 9.2e-34: tmp = j * ((t * c) - (y * i)) elif (b <= 1.8e+114) or not (b <= 2.8e+160): tmp = t_1 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.4e-52) tmp = t_1; elseif (b <= -2.8e-252) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 9.2e-34) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif ((b <= 1.8e+114) || !(b <= 2.8e+160)) tmp = t_1; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -4.4e-52) tmp = t_1; elseif (b <= -2.8e-252) tmp = y * ((x * z) - (i * j)); elseif (b <= 9.2e-34) tmp = j * ((t * c) - (y * i)); elseif ((b <= 1.8e+114) || ~((b <= 2.8e+160))) tmp = t_1; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e-52], t$95$1, If[LessEqual[b, -2.8e-252], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e-34], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.8e+114], N[Not[LessEqual[b, 2.8e+160]], $MachinePrecision]], t$95$1, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-252}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-34}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{+114} \lor \neg \left(b \leq 2.8 \cdot 10^{+160}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if b < -4.40000000000000018e-52 or 9.20000000000000045e-34 < b < 1.8e114 or 2.8e160 < b Initial program 66.6%
Taylor expanded in b around inf 60.5%
*-commutative60.5%
Simplified60.5%
if -4.40000000000000018e-52 < b < -2.80000000000000018e-252Initial program 75.1%
Taylor expanded in y around inf 63.8%
+-commutative63.8%
mul-1-neg63.8%
unsub-neg63.8%
*-commutative63.8%
Simplified63.8%
if -2.80000000000000018e-252 < b < 9.20000000000000045e-34Initial program 71.5%
Taylor expanded in j around inf 56.6%
sub-neg56.6%
*-commutative56.6%
*-commutative56.6%
sub-neg56.6%
Simplified56.6%
if 1.8e114 < b < 2.8e160Initial program 88.7%
Taylor expanded in t around inf 67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= b -2.55e-45)
t_1
(if (<= b -5.9e-241)
(* x (* y z))
(if (<= b -4.7e-275)
(* a (* t (- x)))
(if (<= b 4.2e-292)
(* z (* x y))
(if (<= b 1.35e-105) (* c (* t j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -2.55e-45) {
tmp = t_1;
} else if (b <= -5.9e-241) {
tmp = x * (y * z);
} else if (b <= -4.7e-275) {
tmp = a * (t * -x);
} else if (b <= 4.2e-292) {
tmp = z * (x * y);
} else if (b <= 1.35e-105) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (b <= (-2.55d-45)) then
tmp = t_1
else if (b <= (-5.9d-241)) then
tmp = x * (y * z)
else if (b <= (-4.7d-275)) then
tmp = a * (t * -x)
else if (b <= 4.2d-292) then
tmp = z * (x * y)
else if (b <= 1.35d-105) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -2.55e-45) {
tmp = t_1;
} else if (b <= -5.9e-241) {
tmp = x * (y * z);
} else if (b <= -4.7e-275) {
tmp = a * (t * -x);
} else if (b <= 4.2e-292) {
tmp = z * (x * y);
} else if (b <= 1.35e-105) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if b <= -2.55e-45: tmp = t_1 elif b <= -5.9e-241: tmp = x * (y * z) elif b <= -4.7e-275: tmp = a * (t * -x) elif b <= 4.2e-292: tmp = z * (x * y) elif b <= 1.35e-105: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (b <= -2.55e-45) tmp = t_1; elseif (b <= -5.9e-241) tmp = Float64(x * Float64(y * z)); elseif (b <= -4.7e-275) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 4.2e-292) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.35e-105) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (b <= -2.55e-45) tmp = t_1; elseif (b <= -5.9e-241) tmp = x * (y * z); elseif (b <= -4.7e-275) tmp = a * (t * -x); elseif (b <= 4.2e-292) tmp = z * (x * y); elseif (b <= 1.35e-105) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.55e-45], t$95$1, If[LessEqual[b, -5.9e-241], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.7e-275], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-292], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-105], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -2.55 \cdot 10^{-45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.9 \cdot 10^{-241}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -4.7 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.5499999999999999e-45 or 1.34999999999999996e-105 < b Initial program 67.5%
Taylor expanded in b around inf 53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in a around inf 38.9%
*-commutative38.9%
Simplified38.9%
if -2.5499999999999999e-45 < b < -5.8999999999999998e-241Initial program 74.6%
Taylor expanded in y around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in x around inf 62.0%
+-commutative62.0%
*-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
*-commutative62.0%
associate-*r*63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 47.5%
if -5.8999999999999998e-241 < b < -4.6999999999999998e-275Initial program 87.8%
Taylor expanded in z around inf 87.8%
+-commutative87.8%
fma-define87.8%
mul-1-neg87.8%
associate-/l*75.9%
distribute-lft-neg-in75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around inf 65.4%
associate-*r*65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in z around 0 64.9%
associate-*r*64.9%
neg-mul-164.9%
*-commutative64.9%
Simplified64.9%
if -4.6999999999999998e-275 < b < 4.19999999999999977e-292Initial program 77.1%
Taylor expanded in t around 0 67.1%
*-commutative67.1%
associate-*r*56.7%
associate-*r*56.9%
associate-*r*56.9%
distribute-rgt-in56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in x around inf 67.7%
associate-*r*68.1%
*-commutative68.1%
Simplified68.1%
if 4.19999999999999977e-292 < b < 1.34999999999999996e-105Initial program 70.9%
Taylor expanded in c around inf 46.8%
*-commutative46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in t around inf 41.6%
Final simplification43.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= b -1.35e-49)
t_1
(if (<= b 8.5e-292)
(* x (* y z))
(if (<= b 1.35e-105) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -1.35e-49) {
tmp = t_1;
} else if (b <= 8.5e-292) {
tmp = x * (y * z);
} else if (b <= 1.35e-105) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (b <= (-1.35d-49)) then
tmp = t_1
else if (b <= 8.5d-292) then
tmp = x * (y * z)
else if (b <= 1.35d-105) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -1.35e-49) {
tmp = t_1;
} else if (b <= 8.5e-292) {
tmp = x * (y * z);
} else if (b <= 1.35e-105) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if b <= -1.35e-49: tmp = t_1 elif b <= 8.5e-292: tmp = x * (y * z) elif b <= 1.35e-105: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (b <= -1.35e-49) tmp = t_1; elseif (b <= 8.5e-292) tmp = Float64(x * Float64(y * z)); elseif (b <= 1.35e-105) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (b <= -1.35e-49) tmp = t_1; elseif (b <= 8.5e-292) tmp = x * (y * z); elseif (b <= 1.35e-105) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.35e-49], t$95$1, If[LessEqual[b, 8.5e-292], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-105], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -1.35 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-292}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.35e-49 or 1.34999999999999996e-105 < b Initial program 67.5%
Taylor expanded in b around inf 53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in a around inf 38.9%
*-commutative38.9%
Simplified38.9%
if -1.35e-49 < b < 8.50000000000000066e-292Initial program 76.4%
Taylor expanded in y around inf 59.7%
+-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in x around inf 60.1%
+-commutative60.1%
*-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
associate-*r*61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in x around inf 46.4%
if 8.50000000000000066e-292 < b < 1.34999999999999996e-105Initial program 70.9%
Taylor expanded in c around inf 46.8%
*-commutative46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in t around inf 41.6%
Final simplification41.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.3e-53) (not (<= b 1.35e-105))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.3e-53) || !(b <= 1.35e-105)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-6.3d-53)) .or. (.not. (b <= 1.35d-105))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.3e-53) || !(b <= 1.35e-105)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -6.3e-53) or not (b <= 1.35e-105): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -6.3e-53) || !(b <= 1.35e-105)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -6.3e-53) || ~((b <= 1.35e-105))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.3e-53], N[Not[LessEqual[b, 1.35e-105]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.3 \cdot 10^{-53} \lor \neg \left(b \leq 1.35 \cdot 10^{-105}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -6.29999999999999979e-53 or 1.34999999999999996e-105 < b Initial program 67.3%
Taylor expanded in b around inf 53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in a around inf 38.4%
*-commutative38.4%
Simplified38.4%
if -6.29999999999999979e-53 < b < 1.34999999999999996e-105Initial program 74.9%
Taylor expanded in c around inf 30.9%
*-commutative30.9%
*-commutative30.9%
Simplified30.9%
Taylor expanded in t around inf 26.3%
Final simplification33.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 70.5%
Taylor expanded in b around inf 35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in a around inf 24.1%
*-commutative24.1%
Simplified24.1%
Final simplification24.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024059
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))