
(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 24 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 (- (* y x) (* c b))))
(if (<= z -6e+175)
(* z t_1)
(if (<= z 2.2e+158)
(-
(+
(- (* c (* j t)) (* x (- (* a t) (* z y))))
(* i (- (* b a) (* y j))))
(* c (* z b)))
(fma z t_1 (* i (* b a)))))))
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) - (c * b);
double tmp;
if (z <= -6e+175) {
tmp = z * t_1;
} else if (z <= 2.2e+158) {
tmp = (((c * (j * t)) - (x * ((a * t) - (z * y)))) + (i * ((b * a) - (y * j)))) - (c * (z * b));
} else {
tmp = fma(z, t_1, (i * (b * a)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * x) - Float64(c * b)) tmp = 0.0 if (z <= -6e+175) tmp = Float64(z * t_1); elseif (z <= 2.2e+158) tmp = Float64(Float64(Float64(Float64(c * Float64(j * t)) - Float64(x * Float64(Float64(a * t) - Float64(z * y)))) + Float64(i * Float64(Float64(b * a) - Float64(y * j)))) - Float64(c * Float64(z * b))); else tmp = fma(z, t_1, Float64(i * Float64(b * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * x), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6e+175], N[(z * t$95$1), $MachinePrecision], If[LessEqual[z, 2.2e+158], N[(N[(N[(N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * t$95$1 + N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot x - c \cdot b\\
\mathbf{if}\;z \leq -6 \cdot 10^{+175}:\\
\;\;\;\;z \cdot t_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+158}:\\
\;\;\;\;\left(\left(c \cdot \left(j \cdot t\right) - x \cdot \left(a \cdot t - z \cdot y\right)\right) + i \cdot \left(b \cdot a - y \cdot j\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t_1, i \cdot \left(b \cdot a\right)\right)\\
\end{array}
\end{array}
if z < -6.0000000000000003e175Initial program 52.9%
cancel-sign-sub52.9%
cancel-sign-sub-inv52.9%
*-commutative52.9%
*-commutative52.9%
remove-double-neg52.9%
*-commutative52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in z around inf 80.2%
if -6.0000000000000003e175 < z < 2.2000000000000001e158Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in i around -inf 83.4%
if 2.2000000000000001e158 < z Initial program 57.2%
+-commutative57.2%
fma-def57.2%
*-commutative57.2%
*-commutative57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in j around 0 60.0%
Taylor expanded in y around inf 64.3%
Taylor expanded in y around 0 63.9%
Simplified72.6%
Final simplification81.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* a t) (* z y)))) (t_2 (* i (- (* b a) (* y j)))))
(if (<=
(+ (- (* b (- (* i a) (* z c))) t_1) (* j (- (* c t) (* y i))))
INFINITY)
(- (+ (- (* c (* j t)) t_1) t_2) (* c (* z b)))
(- t_2 (* t (- (* x a) (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((a * t) - (z * y));
double t_2 = i * ((b * a) - (y * j));
double tmp;
if ((((b * ((i * a) - (z * c))) - t_1) + (j * ((c * t) - (y * i)))) <= ((double) INFINITY)) {
tmp = (((c * (j * t)) - t_1) + t_2) - (c * (z * b));
} else {
tmp = t_2 - (t * ((x * a) - (c * j)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((a * t) - (z * y));
double t_2 = i * ((b * a) - (y * j));
double tmp;
if ((((b * ((i * a) - (z * c))) - t_1) + (j * ((c * t) - (y * i)))) <= Double.POSITIVE_INFINITY) {
tmp = (((c * (j * t)) - t_1) + t_2) - (c * (z * b));
} else {
tmp = t_2 - (t * ((x * a) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((a * t) - (z * y)) t_2 = i * ((b * a) - (y * j)) tmp = 0 if (((b * ((i * a) - (z * c))) - t_1) + (j * ((c * t) - (y * i)))) <= math.inf: tmp = (((c * (j * t)) - t_1) + t_2) - (c * (z * b)) else: tmp = t_2 - (t * ((x * a) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(a * t) - Float64(z * y))) t_2 = Float64(i * Float64(Float64(b * a) - Float64(y * j))) tmp = 0.0 if (Float64(Float64(Float64(b * Float64(Float64(i * a) - Float64(z * c))) - t_1) + Float64(j * Float64(Float64(c * t) - Float64(y * i)))) <= Inf) tmp = Float64(Float64(Float64(Float64(c * Float64(j * t)) - t_1) + t_2) - Float64(c * Float64(z * b))); else tmp = Float64(t_2 - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((a * t) - (z * y)); t_2 = i * ((b * a) - (y * j)); tmp = 0.0; if ((((b * ((i * a) - (z * c))) - t_1) + (j * ((c * t) - (y * i)))) <= Inf) tmp = (((c * (j * t)) - t_1) + t_2) - (c * (z * b)); else tmp = t_2 - (t * ((x * a) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot t - z \cdot y\right)\\
t_2 := i \cdot \left(b \cdot a - y \cdot j\right)\\
\mathbf{if}\;\left(b \cdot \left(i \cdot a - z \cdot c\right) - t_1\right) + j \cdot \left(c \cdot t - y \cdot i\right) \leq \infty:\\
\;\;\;\;\left(\left(c \cdot \left(j \cdot t\right) - t_1\right) + t_2\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 - t \cdot \left(x \cdot a - c \cdot j\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 88.8%
cancel-sign-sub88.8%
cancel-sign-sub-inv88.8%
*-commutative88.8%
*-commutative88.8%
remove-double-neg88.8%
*-commutative88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in i around -inf 89.1%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in i around -inf 29.3%
Taylor expanded in z around 0 43.3%
+-commutative43.3%
+-commutative43.3%
mul-1-neg43.3%
sub-neg43.3%
*-commutative43.3%
sub-neg43.3%
unsub-neg43.3%
Simplified50.3%
Final simplification80.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* b (- (* i a) (* z c))) (* x (- (* a t) (* z y))))
(* j (- (* c t) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(- (* i (- (* b a) (* y j))) (* t (- (* x a) (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)))) + (j * ((c * t) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)))) + (j * ((c * t) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)))) + (j * ((c * t) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(i * a) - Float64(z * c))) - Float64(x * Float64(Float64(a * t) - Float64(z * y)))) + Float64(j * Float64(Float64(c * t) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(i * Float64(Float64(b * a) - Float64(y * j))) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)))) + (j * ((c * t) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(i \cdot a - z \cdot c\right) - x \cdot \left(a \cdot t - z \cdot y\right)\right) + j \cdot \left(c \cdot t - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\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 88.8%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in i around -inf 29.3%
Taylor expanded in z around 0 43.3%
+-commutative43.3%
+-commutative43.3%
mul-1-neg43.3%
sub-neg43.3%
*-commutative43.3%
sub-neg43.3%
unsub-neg43.3%
Simplified50.3%
Final simplification80.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* c t) (* y i))) (* c (* z b))))
(t_2 (- (* i (- (* b a) (* y j))) (* t (- (* x a) (* c j)))))
(t_3 (* z (- (* y x) (* c b)))))
(if (<= z -1.4e+176)
t_3
(if (<= z -4.4e+158)
t_1
(if (<= z -2.1e+109)
(* c (* z (- b)))
(if (<= z 2.2e+50)
t_2
(if (<= z 1.3e+84) t_1 (if (<= z 5.9e+187) t_2 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
double t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
double t_3 = z * ((y * x) - (c * b));
double tmp;
if (z <= -1.4e+176) {
tmp = t_3;
} else if (z <= -4.4e+158) {
tmp = t_1;
} else if (z <= -2.1e+109) {
tmp = c * (z * -b);
} else if (z <= 2.2e+50) {
tmp = t_2;
} else if (z <= 1.3e+84) {
tmp = t_1;
} else if (z <= 5.9e+187) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (j * ((c * t) - (y * i))) - (c * (z * b))
t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)))
t_3 = z * ((y * x) - (c * b))
if (z <= (-1.4d+176)) then
tmp = t_3
else if (z <= (-4.4d+158)) then
tmp = t_1
else if (z <= (-2.1d+109)) then
tmp = c * (z * -b)
else if (z <= 2.2d+50) then
tmp = t_2
else if (z <= 1.3d+84) then
tmp = t_1
else if (z <= 5.9d+187) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
double t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
double t_3 = z * ((y * x) - (c * b));
double tmp;
if (z <= -1.4e+176) {
tmp = t_3;
} else if (z <= -4.4e+158) {
tmp = t_1;
} else if (z <= -2.1e+109) {
tmp = c * (z * -b);
} else if (z <= 2.2e+50) {
tmp = t_2;
} else if (z <= 1.3e+84) {
tmp = t_1;
} else if (z <= 5.9e+187) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((c * t) - (y * i))) - (c * (z * b)) t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j))) t_3 = z * ((y * x) - (c * b)) tmp = 0 if z <= -1.4e+176: tmp = t_3 elif z <= -4.4e+158: tmp = t_1 elif z <= -2.1e+109: tmp = c * (z * -b) elif z <= 2.2e+50: tmp = t_2 elif z <= 1.3e+84: tmp = t_1 elif z <= 5.9e+187: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(c * t) - Float64(y * i))) - Float64(c * Float64(z * b))) t_2 = Float64(Float64(i * Float64(Float64(b * a) - Float64(y * j))) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))) t_3 = Float64(z * Float64(Float64(y * x) - Float64(c * b))) tmp = 0.0 if (z <= -1.4e+176) tmp = t_3; elseif (z <= -4.4e+158) tmp = t_1; elseif (z <= -2.1e+109) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= 2.2e+50) tmp = t_2; elseif (z <= 1.3e+84) tmp = t_1; elseif (z <= 5.9e+187) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((c * t) - (y * i))) - (c * (z * b)); t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j))); t_3 = z * ((y * x) - (c * b)); tmp = 0.0; if (z <= -1.4e+176) tmp = t_3; elseif (z <= -4.4e+158) tmp = t_1; elseif (z <= -2.1e+109) tmp = c * (z * -b); elseif (z <= 2.2e+50) tmp = t_2; elseif (z <= 1.3e+84) tmp = t_1; elseif (z <= 5.9e+187) 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[(N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(y * x), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+176], t$95$3, If[LessEqual[z, -4.4e+158], t$95$1, If[LessEqual[z, -2.1e+109], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+50], t$95$2, If[LessEqual[z, 1.3e+84], t$95$1, If[LessEqual[z, 5.9e+187], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
t_2 := i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
t_3 := z \cdot \left(y \cdot x - c \cdot b\right)\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+176}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+109}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 5.9 \cdot 10^{+187}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if z < -1.4000000000000001e176 or 5.9e187 < z Initial program 54.8%
cancel-sign-sub54.8%
cancel-sign-sub-inv54.8%
*-commutative54.8%
*-commutative54.8%
remove-double-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in z around inf 77.6%
if -1.4000000000000001e176 < z < -4.4000000000000002e158 or 2.20000000000000017e50 < z < 1.3000000000000001e84Initial program 72.8%
cancel-sign-sub72.8%
cancel-sign-sub-inv72.8%
*-commutative72.8%
*-commutative72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in c around inf 99.7%
*-commutative99.7%
associate-*r*99.7%
*-commutative99.7%
*-commutative99.7%
mul-1-neg99.7%
distribute-rgt-neg-in99.7%
Simplified99.7%
if -4.4000000000000002e158 < z < -2.1000000000000001e109Initial program 77.6%
cancel-sign-sub77.6%
cancel-sign-sub-inv77.6%
*-commutative77.6%
*-commutative77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in b around inf 89.4%
Taylor expanded in a around 0 89.4%
associate-*r*89.4%
neg-mul-189.4%
*-commutative89.4%
associate-*r*89.2%
Simplified89.2%
Taylor expanded in c around 0 89.4%
associate-*r*89.4%
*-commutative89.4%
associate-*r*89.4%
mul-1-neg89.4%
distribute-rgt-neg-in89.4%
*-commutative89.4%
Simplified89.4%
if -2.1000000000000001e109 < z < 2.20000000000000017e50 or 1.3000000000000001e84 < z < 5.9e187Initial program 72.6%
cancel-sign-sub72.6%
cancel-sign-sub-inv72.6%
*-commutative72.6%
*-commutative72.6%
remove-double-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in i around -inf 83.0%
Taylor expanded in z around 0 67.2%
+-commutative67.2%
+-commutative67.2%
mul-1-neg67.2%
sub-neg67.2%
*-commutative67.2%
sub-neg67.2%
unsub-neg67.2%
Simplified73.5%
Final simplification76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* c t) (* y i))) (* c (* z b))))
(t_2 (+ (* x (* z y)) (* b (- (* i a) (* z c)))))
(t_3 (* x (- (* z y) (* a t)))))
(if (<= x -3.6e+50)
t_3
(if (<= x -2.3e+24)
t_2
(if (<= x -4.2e-81)
t_1
(if (<= x -1.95e-233)
t_2
(if (<= x 3e-298)
t_1
(if (<= x 3.3e-288)
(* b (* i a))
(if (<= x 2.8e+70)
(+ (* t (* c j)) (* i (- (* b a) (* y j))))
t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
double t_3 = x * ((z * y) - (a * t));
double tmp;
if (x <= -3.6e+50) {
tmp = t_3;
} else if (x <= -2.3e+24) {
tmp = t_2;
} else if (x <= -4.2e-81) {
tmp = t_1;
} else if (x <= -1.95e-233) {
tmp = t_2;
} else if (x <= 3e-298) {
tmp = t_1;
} else if (x <= 3.3e-288) {
tmp = b * (i * a);
} else if (x <= 2.8e+70) {
tmp = (t * (c * j)) + (i * ((b * a) - (y * j)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (j * ((c * t) - (y * i))) - (c * (z * b))
t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)))
t_3 = x * ((z * y) - (a * t))
if (x <= (-3.6d+50)) then
tmp = t_3
else if (x <= (-2.3d+24)) then
tmp = t_2
else if (x <= (-4.2d-81)) then
tmp = t_1
else if (x <= (-1.95d-233)) then
tmp = t_2
else if (x <= 3d-298) then
tmp = t_1
else if (x <= 3.3d-288) then
tmp = b * (i * a)
else if (x <= 2.8d+70) then
tmp = (t * (c * j)) + (i * ((b * a) - (y * j)))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
double t_3 = x * ((z * y) - (a * t));
double tmp;
if (x <= -3.6e+50) {
tmp = t_3;
} else if (x <= -2.3e+24) {
tmp = t_2;
} else if (x <= -4.2e-81) {
tmp = t_1;
} else if (x <= -1.95e-233) {
tmp = t_2;
} else if (x <= 3e-298) {
tmp = t_1;
} else if (x <= 3.3e-288) {
tmp = b * (i * a);
} else if (x <= 2.8e+70) {
tmp = (t * (c * j)) + (i * ((b * a) - (y * j)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((c * t) - (y * i))) - (c * (z * b)) t_2 = (x * (z * y)) + (b * ((i * a) - (z * c))) t_3 = x * ((z * y) - (a * t)) tmp = 0 if x <= -3.6e+50: tmp = t_3 elif x <= -2.3e+24: tmp = t_2 elif x <= -4.2e-81: tmp = t_1 elif x <= -1.95e-233: tmp = t_2 elif x <= 3e-298: tmp = t_1 elif x <= 3.3e-288: tmp = b * (i * a) elif x <= 2.8e+70: tmp = (t * (c * j)) + (i * ((b * a) - (y * j))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(c * t) - Float64(y * i))) - Float64(c * Float64(z * b))) t_2 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(i * a) - Float64(z * c)))) t_3 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) tmp = 0.0 if (x <= -3.6e+50) tmp = t_3; elseif (x <= -2.3e+24) tmp = t_2; elseif (x <= -4.2e-81) tmp = t_1; elseif (x <= -1.95e-233) tmp = t_2; elseif (x <= 3e-298) tmp = t_1; elseif (x <= 3.3e-288) tmp = Float64(b * Float64(i * a)); elseif (x <= 2.8e+70) tmp = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(Float64(b * a) - Float64(y * j)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((c * t) - (y * i))) - (c * (z * b)); t_2 = (x * (z * y)) + (b * ((i * a) - (z * c))); t_3 = x * ((z * y) - (a * t)); tmp = 0.0; if (x <= -3.6e+50) tmp = t_3; elseif (x <= -2.3e+24) tmp = t_2; elseif (x <= -4.2e-81) tmp = t_1; elseif (x <= -1.95e-233) tmp = t_2; elseif (x <= 3e-298) tmp = t_1; elseif (x <= 3.3e-288) tmp = b * (i * a); elseif (x <= 2.8e+70) tmp = (t * (c * j)) + (i * ((b * a) - (y * j))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e+50], t$95$3, If[LessEqual[x, -2.3e+24], t$95$2, If[LessEqual[x, -4.2e-81], t$95$1, If[LessEqual[x, -1.95e-233], t$95$2, If[LessEqual[x, 3e-298], t$95$1, If[LessEqual[x, 3.3e-288], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e+70], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
t_2 := x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\
t_3 := x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;x \leq -3.6 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.95 \cdot 10^{-233}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-288}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{+70}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -3.59999999999999986e50 or 2.7999999999999999e70 < x Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in i around -inf 68.9%
Taylor expanded in x around inf 68.2%
if -3.59999999999999986e50 < x < -2.2999999999999999e24 or -4.1999999999999998e-81 < x < -1.9500000000000001e-233Initial program 69.3%
+-commutative69.3%
fma-def69.3%
*-commutative69.3%
*-commutative69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in j around 0 73.3%
Taylor expanded in y around inf 70.2%
if -2.2999999999999999e24 < x < -4.1999999999999998e-81 or -1.9500000000000001e-233 < x < 2.9999999999999999e-298Initial program 79.8%
cancel-sign-sub79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
*-commutative79.8%
remove-double-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in c around inf 85.5%
*-commutative85.5%
associate-*r*85.5%
*-commutative85.5%
*-commutative85.5%
mul-1-neg85.5%
distribute-rgt-neg-in85.5%
Simplified85.5%
if 2.9999999999999999e-298 < x < 3.29999999999999988e-288Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in b around inf 100.0%
Taylor expanded in a around inf 100.0%
if 3.29999999999999988e-288 < x < 2.7999999999999999e70Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in i around -inf 78.4%
Taylor expanded in z around 0 72.3%
+-commutative72.3%
+-commutative72.3%
mul-1-neg72.3%
sub-neg72.3%
*-commutative72.3%
sub-neg72.3%
unsub-neg72.3%
Simplified78.3%
Taylor expanded in j around inf 64.1%
*-commutative64.1%
associate-*l*67.0%
*-commutative67.0%
Simplified67.0%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (* b a)) (* j (- (* y i) (* c t)))))
(t_2 (* z (- (* y x) (* c b)))))
(if (<= j -3.5e-88)
t_1
(if (<= j 8e-302)
t_2
(if (<= j 3.3e-171)
(+ (* x (* z y)) (* b (* i a)))
(if (<= j 1.1e-50)
t_2
(if (or (<= j 4.5e+42) (not (<= j 1.95e+108)))
t_1
(* b (- (* i a) (* z c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)));
double t_2 = z * ((y * x) - (c * b));
double tmp;
if (j <= -3.5e-88) {
tmp = t_1;
} else if (j <= 8e-302) {
tmp = t_2;
} else if (j <= 3.3e-171) {
tmp = (x * (z * y)) + (b * (i * a));
} else if (j <= 1.1e-50) {
tmp = t_2;
} else if ((j <= 4.5e+42) || !(j <= 1.95e+108)) {
tmp = t_1;
} else {
tmp = b * ((i * a) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)))
t_2 = z * ((y * x) - (c * b))
if (j <= (-3.5d-88)) then
tmp = t_1
else if (j <= 8d-302) then
tmp = t_2
else if (j <= 3.3d-171) then
tmp = (x * (z * y)) + (b * (i * a))
else if (j <= 1.1d-50) then
tmp = t_2
else if ((j <= 4.5d+42) .or. (.not. (j <= 1.95d+108))) then
tmp = t_1
else
tmp = b * ((i * a) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)));
double t_2 = z * ((y * x) - (c * b));
double tmp;
if (j <= -3.5e-88) {
tmp = t_1;
} else if (j <= 8e-302) {
tmp = t_2;
} else if (j <= 3.3e-171) {
tmp = (x * (z * y)) + (b * (i * a));
} else if (j <= 1.1e-50) {
tmp = t_2;
} else if ((j <= 4.5e+42) || !(j <= 1.95e+108)) {
tmp = t_1;
} else {
tmp = b * ((i * a) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * (b * a)) - (j * ((y * i) - (c * t))) t_2 = z * ((y * x) - (c * b)) tmp = 0 if j <= -3.5e-88: tmp = t_1 elif j <= 8e-302: tmp = t_2 elif j <= 3.3e-171: tmp = (x * (z * y)) + (b * (i * a)) elif j <= 1.1e-50: tmp = t_2 elif (j <= 4.5e+42) or not (j <= 1.95e+108): tmp = t_1 else: tmp = b * ((i * a) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * Float64(b * a)) - Float64(j * Float64(Float64(y * i) - Float64(c * t)))) t_2 = Float64(z * Float64(Float64(y * x) - Float64(c * b))) tmp = 0.0 if (j <= -3.5e-88) tmp = t_1; elseif (j <= 8e-302) tmp = t_2; elseif (j <= 3.3e-171) tmp = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(i * a))); elseif (j <= 1.1e-50) tmp = t_2; elseif ((j <= 4.5e+42) || !(j <= 1.95e+108)) tmp = t_1; else tmp = Float64(b * Float64(Float64(i * a) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * (b * a)) - (j * ((y * i) - (c * t))); t_2 = z * ((y * x) - (c * b)); tmp = 0.0; if (j <= -3.5e-88) tmp = t_1; elseif (j <= 8e-302) tmp = t_2; elseif (j <= 3.3e-171) tmp = (x * (z * y)) + (b * (i * a)); elseif (j <= 1.1e-50) tmp = t_2; elseif ((j <= 4.5e+42) || ~((j <= 1.95e+108))) tmp = t_1; else tmp = b * ((i * a) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(y * x), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e-88], t$95$1, If[LessEqual[j, 8e-302], t$95$2, If[LessEqual[j, 3.3e-171], N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e-50], t$95$2, If[Or[LessEqual[j, 4.5e+42], N[Not[LessEqual[j, 1.95e+108]], $MachinePrecision]], t$95$1, N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(b \cdot a\right) - j \cdot \left(y \cdot i - c \cdot t\right)\\
t_2 := z \cdot \left(y \cdot x - c \cdot b\right)\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-302}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 3.3 \cdot 10^{-171}:\\
\;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+42} \lor \neg \left(j \leq 1.95 \cdot 10^{+108}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\
\end{array}
\end{array}
if j < -3.5000000000000001e-88 or 1.0999999999999999e-50 < j < 4.50000000000000012e42 or 1.94999999999999992e108 < j Initial program 70.5%
cancel-sign-sub70.5%
cancel-sign-sub-inv70.5%
*-commutative70.5%
*-commutative70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in i around inf 65.8%
*-commutative65.8%
associate-*r*67.2%
Simplified67.2%
if -3.5000000000000001e-88 < j < 7.9999999999999997e-302 or 3.3000000000000002e-171 < j < 1.0999999999999999e-50Initial program 63.7%
cancel-sign-sub63.7%
cancel-sign-sub-inv63.7%
*-commutative63.7%
*-commutative63.7%
remove-double-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in z around inf 58.1%
if 7.9999999999999997e-302 < j < 3.3000000000000002e-171Initial program 72.6%
+-commutative72.6%
fma-def72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in j around 0 83.7%
Taylor expanded in y around inf 68.8%
Taylor expanded in c around 0 60.7%
neg-mul-160.7%
distribute-rgt-neg-in60.7%
Simplified60.7%
if 4.50000000000000012e42 < j < 1.94999999999999992e108Initial program 69.1%
cancel-sign-sub69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
*-commutative69.1%
remove-double-neg69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in b around inf 69.8%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (* c j)) (* i (- (* b a) (* y j)))))
(t_2 (+ (* x (* z y)) (* b (- (* i a) (* z c)))))
(t_3 (* x (- (* z y) (* a t)))))
(if (<= x -1.45e+51)
t_3
(if (<= x -3e+24)
t_2
(if (<= x -1.65e-74)
t_1
(if (<= x -4.9e-296) t_2 (if (<= x 8.1e+65) 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 = (t * (c * j)) + (i * ((b * a) - (y * j)));
double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
double t_3 = x * ((z * y) - (a * t));
double tmp;
if (x <= -1.45e+51) {
tmp = t_3;
} else if (x <= -3e+24) {
tmp = t_2;
} else if (x <= -1.65e-74) {
tmp = t_1;
} else if (x <= -4.9e-296) {
tmp = t_2;
} else if (x <= 8.1e+65) {
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 = (t * (c * j)) + (i * ((b * a) - (y * j)))
t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)))
t_3 = x * ((z * y) - (a * t))
if (x <= (-1.45d+51)) then
tmp = t_3
else if (x <= (-3d+24)) then
tmp = t_2
else if (x <= (-1.65d-74)) then
tmp = t_1
else if (x <= (-4.9d-296)) then
tmp = t_2
else if (x <= 8.1d+65) 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 = (t * (c * j)) + (i * ((b * a) - (y * j)));
double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
double t_3 = x * ((z * y) - (a * t));
double tmp;
if (x <= -1.45e+51) {
tmp = t_3;
} else if (x <= -3e+24) {
tmp = t_2;
} else if (x <= -1.65e-74) {
tmp = t_1;
} else if (x <= -4.9e-296) {
tmp = t_2;
} else if (x <= 8.1e+65) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * (c * j)) + (i * ((b * a) - (y * j))) t_2 = (x * (z * y)) + (b * ((i * a) - (z * c))) t_3 = x * ((z * y) - (a * t)) tmp = 0 if x <= -1.45e+51: tmp = t_3 elif x <= -3e+24: tmp = t_2 elif x <= -1.65e-74: tmp = t_1 elif x <= -4.9e-296: tmp = t_2 elif x <= 8.1e+65: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(Float64(b * a) - Float64(y * j)))) t_2 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(i * a) - Float64(z * c)))) t_3 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) tmp = 0.0 if (x <= -1.45e+51) tmp = t_3; elseif (x <= -3e+24) tmp = t_2; elseif (x <= -1.65e-74) tmp = t_1; elseif (x <= -4.9e-296) tmp = t_2; elseif (x <= 8.1e+65) 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 = (t * (c * j)) + (i * ((b * a) - (y * j))); t_2 = (x * (z * y)) + (b * ((i * a) - (z * c))); t_3 = x * ((z * y) - (a * t)); tmp = 0.0; if (x <= -1.45e+51) tmp = t_3; elseif (x <= -3e+24) tmp = t_2; elseif (x <= -1.65e-74) tmp = t_1; elseif (x <= -4.9e-296) tmp = t_2; elseif (x <= 8.1e+65) 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[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.45e+51], t$95$3, If[LessEqual[x, -3e+24], t$95$2, If[LessEqual[x, -1.65e-74], t$95$1, If[LessEqual[x, -4.9e-296], t$95$2, If[LessEqual[x, 8.1e+65], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\
t_2 := x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\
t_3 := x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;x \leq -1.45 \cdot 10^{+51}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -3 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.9 \cdot 10^{-296}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 8.1 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -1.4499999999999999e51 or 8.1000000000000001e65 < x Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in i around -inf 68.9%
Taylor expanded in x around inf 68.2%
if -1.4499999999999999e51 < x < -2.99999999999999995e24 or -1.64999999999999998e-74 < x < -4.8999999999999998e-296Initial program 71.6%
+-commutative71.6%
fma-def71.6%
*-commutative71.6%
*-commutative71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around 0 70.8%
Taylor expanded in y around inf 69.7%
if -2.99999999999999995e24 < x < -1.64999999999999998e-74 or -4.8999999999999998e-296 < x < 8.1000000000000001e65Initial program 71.5%
cancel-sign-sub71.5%
cancel-sign-sub-inv71.5%
*-commutative71.5%
*-commutative71.5%
remove-double-neg71.5%
*-commutative71.5%
*-commutative71.5%
Simplified71.5%
Taylor expanded in i around -inf 78.8%
Taylor expanded in z around 0 73.6%
+-commutative73.6%
+-commutative73.6%
mul-1-neg73.6%
sub-neg73.6%
*-commutative73.6%
sub-neg73.6%
unsub-neg73.6%
Simplified79.7%
Taylor expanded in j around inf 65.8%
*-commutative65.8%
associate-*l*68.8%
*-commutative68.8%
Simplified68.8%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c t) (* y i))))
(t_2 (* b (- (* i a) (* z c))))
(t_3 (* x (- (* z y) (* a t)))))
(if (<= x -4.3e+50)
t_3
(if (<= x -1.15e+29)
t_2
(if (<= x -2.75e-36)
t_1
(if (<= x 3.1e-287)
t_2
(if (<= x 3.3e-35)
(+ (* t (* c j)) (* i (* b a)))
(if (or (<= x 9.5e+28) (not (<= x 8.4e+80))) t_3 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * t) - (y * i));
double t_2 = b * ((i * a) - (z * c));
double t_3 = x * ((z * y) - (a * t));
double tmp;
if (x <= -4.3e+50) {
tmp = t_3;
} else if (x <= -1.15e+29) {
tmp = t_2;
} else if (x <= -2.75e-36) {
tmp = t_1;
} else if (x <= 3.1e-287) {
tmp = t_2;
} else if (x <= 3.3e-35) {
tmp = (t * (c * j)) + (i * (b * a));
} else if ((x <= 9.5e+28) || !(x <= 8.4e+80)) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((c * t) - (y * i))
t_2 = b * ((i * a) - (z * c))
t_3 = x * ((z * y) - (a * t))
if (x <= (-4.3d+50)) then
tmp = t_3
else if (x <= (-1.15d+29)) then
tmp = t_2
else if (x <= (-2.75d-36)) then
tmp = t_1
else if (x <= 3.1d-287) then
tmp = t_2
else if (x <= 3.3d-35) then
tmp = (t * (c * j)) + (i * (b * a))
else if ((x <= 9.5d+28) .or. (.not. (x <= 8.4d+80))) then
tmp = t_3
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 = j * ((c * t) - (y * i));
double t_2 = b * ((i * a) - (z * c));
double t_3 = x * ((z * y) - (a * t));
double tmp;
if (x <= -4.3e+50) {
tmp = t_3;
} else if (x <= -1.15e+29) {
tmp = t_2;
} else if (x <= -2.75e-36) {
tmp = t_1;
} else if (x <= 3.1e-287) {
tmp = t_2;
} else if (x <= 3.3e-35) {
tmp = (t * (c * j)) + (i * (b * a));
} else if ((x <= 9.5e+28) || !(x <= 8.4e+80)) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * t) - (y * i)) t_2 = b * ((i * a) - (z * c)) t_3 = x * ((z * y) - (a * t)) tmp = 0 if x <= -4.3e+50: tmp = t_3 elif x <= -1.15e+29: tmp = t_2 elif x <= -2.75e-36: tmp = t_1 elif x <= 3.1e-287: tmp = t_2 elif x <= 3.3e-35: tmp = (t * (c * j)) + (i * (b * a)) elif (x <= 9.5e+28) or not (x <= 8.4e+80): tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * t) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(i * a) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) tmp = 0.0 if (x <= -4.3e+50) tmp = t_3; elseif (x <= -1.15e+29) tmp = t_2; elseif (x <= -2.75e-36) tmp = t_1; elseif (x <= 3.1e-287) tmp = t_2; elseif (x <= 3.3e-35) tmp = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(b * a))); elseif ((x <= 9.5e+28) || !(x <= 8.4e+80)) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * t) - (y * i)); t_2 = b * ((i * a) - (z * c)); t_3 = x * ((z * y) - (a * t)); tmp = 0.0; if (x <= -4.3e+50) tmp = t_3; elseif (x <= -1.15e+29) tmp = t_2; elseif (x <= -2.75e-36) tmp = t_1; elseif (x <= 3.1e-287) tmp = t_2; elseif (x <= 3.3e-35) tmp = (t * (c * j)) + (i * (b * a)); elseif ((x <= 9.5e+28) || ~((x <= 8.4e+80))) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.3e+50], t$95$3, If[LessEqual[x, -1.15e+29], t$95$2, If[LessEqual[x, -2.75e-36], t$95$1, If[LessEqual[x, 3.1e-287], t$95$2, If[LessEqual[x, 3.3e-35], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 9.5e+28], N[Not[LessEqual[x, 8.4e+80]], $MachinePrecision]], t$95$3, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot t - y \cdot i\right)\\
t_2 := b \cdot \left(i \cdot a - z \cdot c\right)\\
t_3 := x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{+29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.75 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-287}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-35}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+28} \lor \neg \left(x \leq 8.4 \cdot 10^{+80}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.2999999999999997e50 or 3.3e-35 < x < 9.49999999999999927e28 or 8.40000000000000005e80 < x Initial program 64.1%
cancel-sign-sub64.1%
cancel-sign-sub-inv64.1%
*-commutative64.1%
*-commutative64.1%
remove-double-neg64.1%
*-commutative64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in i around -inf 70.1%
Taylor expanded in x around inf 70.3%
if -4.2999999999999997e50 < x < -1.1500000000000001e29 or -2.74999999999999992e-36 < x < 3.1000000000000001e-287Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in b around inf 60.1%
if -1.1500000000000001e29 < x < -2.74999999999999992e-36 or 9.49999999999999927e28 < x < 8.40000000000000005e80Initial program 78.1%
cancel-sign-sub78.1%
cancel-sign-sub-inv78.1%
*-commutative78.1%
*-commutative78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in i around inf 65.5%
*-commutative65.5%
associate-*r*61.1%
Simplified61.1%
Taylor expanded in j around inf 74.4%
if 3.1000000000000001e-287 < x < 3.3e-35Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in i around inf 57.1%
*-commutative57.1%
associate-*r*59.3%
Simplified59.3%
Taylor expanded in t around inf 60.5%
associate-*r*50.0%
*-commutative50.0%
associate-*l*62.6%
Simplified62.6%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (* c j)) (* i (- (* b a) (* y j)))))
(t_2 (* x (- (* z y) (* a t)))))
(if (<= x -1.2e+44)
t_2
(if (<= x -1.1e-242)
t_1
(if (<= x -1.75e-295)
(* c (- (* j t) (* z b)))
(if (<= x 1.9e+70) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)));
double t_2 = x * ((z * y) - (a * t));
double tmp;
if (x <= -1.2e+44) {
tmp = t_2;
} else if (x <= -1.1e-242) {
tmp = t_1;
} else if (x <= -1.75e-295) {
tmp = c * ((j * t) - (z * b));
} else if (x <= 1.9e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)))
t_2 = x * ((z * y) - (a * t))
if (x <= (-1.2d+44)) then
tmp = t_2
else if (x <= (-1.1d-242)) then
tmp = t_1
else if (x <= (-1.75d-295)) then
tmp = c * ((j * t) - (z * b))
else if (x <= 1.9d+70) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)));
double t_2 = x * ((z * y) - (a * t));
double tmp;
if (x <= -1.2e+44) {
tmp = t_2;
} else if (x <= -1.1e-242) {
tmp = t_1;
} else if (x <= -1.75e-295) {
tmp = c * ((j * t) - (z * b));
} else if (x <= 1.9e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * (c * j)) + (i * ((b * a) - (y * j))) t_2 = x * ((z * y) - (a * t)) tmp = 0 if x <= -1.2e+44: tmp = t_2 elif x <= -1.1e-242: tmp = t_1 elif x <= -1.75e-295: tmp = c * ((j * t) - (z * b)) elif x <= 1.9e+70: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(Float64(b * a) - Float64(y * j)))) t_2 = Float64(x * Float64(Float64(z * y) - Float64(a * t))) tmp = 0.0 if (x <= -1.2e+44) tmp = t_2; elseif (x <= -1.1e-242) tmp = t_1; elseif (x <= -1.75e-295) tmp = Float64(c * Float64(Float64(j * t) - Float64(z * b))); elseif (x <= 1.9e+70) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * (c * j)) + (i * ((b * a) - (y * j))); t_2 = x * ((z * y) - (a * t)); tmp = 0.0; if (x <= -1.2e+44) tmp = t_2; elseif (x <= -1.1e-242) tmp = t_1; elseif (x <= -1.75e-295) tmp = c * ((j * t) - (z * b)); elseif (x <= 1.9e+70) 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[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.2e+44], t$95$2, If[LessEqual[x, -1.1e-242], t$95$1, If[LessEqual[x, -1.75e-295], N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+70], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right)\\
\mathbf{if}\;x \leq -1.2 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-242}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.75 \cdot 10^{-295}:\\
\;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.20000000000000007e44 or 1.8999999999999999e70 < x Initial program 64.7%
cancel-sign-sub64.7%
cancel-sign-sub-inv64.7%
*-commutative64.7%
*-commutative64.7%
remove-double-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in i around -inf 68.8%
Taylor expanded in x around inf 67.2%
if -1.20000000000000007e44 < x < -1.10000000000000001e-242 or -1.74999999999999994e-295 < x < 1.8999999999999999e70Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in i around -inf 77.8%
Taylor expanded in z around 0 65.7%
+-commutative65.7%
+-commutative65.7%
mul-1-neg65.7%
sub-neg65.7%
*-commutative65.7%
sub-neg65.7%
unsub-neg65.7%
Simplified70.1%
Taylor expanded in j around inf 60.4%
*-commutative60.4%
associate-*l*63.0%
*-commutative63.0%
Simplified63.0%
if -1.10000000000000001e-242 < x < -1.74999999999999994e-295Initial program 84.2%
cancel-sign-sub84.2%
cancel-sign-sub-inv84.2%
*-commutative84.2%
*-commutative84.2%
remove-double-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in c around inf 83.2%
Final simplification65.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.4e-76) (not (<= j 7e-16))) (- (* i (- (* b a) (* y j))) (* t (- (* x a) (* c j)))) (- (* b (- (* i a) (* z c))) (* x (- (* a t) (* z y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.4e-76) || !(j <= 7e-16)) {
tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
} else {
tmp = (b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.4d-76)) .or. (.not. (j <= 7d-16))) then
tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)))
else
tmp = (b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.4e-76) || !(j <= 7e-16)) {
tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
} else {
tmp = (b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.4e-76) or not (j <= 7e-16): tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j))) else: tmp = (b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.4e-76) || !(j <= 7e-16)) tmp = Float64(Float64(i * Float64(Float64(b * a) - Float64(y * j))) - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); else tmp = Float64(Float64(b * Float64(Float64(i * a) - Float64(z * c))) - Float64(x * Float64(Float64(a * t) - Float64(z * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.4e-76) || ~((j <= 7e-16))) tmp = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j))); else tmp = (b * ((i * a) - (z * c))) - (x * ((a * t) - (z * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.4e-76], N[Not[LessEqual[j, 7e-16]], $MachinePrecision]], N[(N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.4 \cdot 10^{-76} \lor \neg \left(j \leq 7 \cdot 10^{-16}\right):\\
\;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right) - x \cdot \left(a \cdot t - z \cdot y\right)\\
\end{array}
\end{array}
if j < -1.40000000000000005e-76 or 7.00000000000000035e-16 < j Initial program 69.3%
cancel-sign-sub69.3%
cancel-sign-sub-inv69.3%
*-commutative69.3%
*-commutative69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in i around -inf 70.9%
Taylor expanded in z around 0 67.1%
+-commutative67.1%
+-commutative67.1%
mul-1-neg67.1%
sub-neg67.1%
*-commutative67.1%
sub-neg67.1%
unsub-neg67.1%
Simplified74.0%
if -1.40000000000000005e-76 < j < 7.00000000000000035e-16Initial program 68.0%
+-commutative68.0%
fma-def68.0%
*-commutative68.0%
*-commutative68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in j around 0 75.0%
Final simplification74.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* j t) (* z b))))
(t_2 (* i (- (* b a) (* y j))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -3.8e+125)
t_3
(if (<= a -1.16e-55)
t_2
(if (<= a 0.026)
t_1
(if (<= a 7.2e+21) t_2 (if (<= a 1.2e+108) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((j * t) - (z * b));
double t_2 = i * ((b * a) - (y * j));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -3.8e+125) {
tmp = t_3;
} else if (a <= -1.16e-55) {
tmp = t_2;
} else if (a <= 0.026) {
tmp = t_1;
} else if (a <= 7.2e+21) {
tmp = t_2;
} else if (a <= 1.2e+108) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((j * t) - (z * b))
t_2 = i * ((b * a) - (y * j))
t_3 = a * ((b * i) - (x * t))
if (a <= (-3.8d+125)) then
tmp = t_3
else if (a <= (-1.16d-55)) then
tmp = t_2
else if (a <= 0.026d0) then
tmp = t_1
else if (a <= 7.2d+21) then
tmp = t_2
else if (a <= 1.2d+108) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((j * t) - (z * b));
double t_2 = i * ((b * a) - (y * j));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -3.8e+125) {
tmp = t_3;
} else if (a <= -1.16e-55) {
tmp = t_2;
} else if (a <= 0.026) {
tmp = t_1;
} else if (a <= 7.2e+21) {
tmp = t_2;
} else if (a <= 1.2e+108) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((j * t) - (z * b)) t_2 = i * ((b * a) - (y * j)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -3.8e+125: tmp = t_3 elif a <= -1.16e-55: tmp = t_2 elif a <= 0.026: tmp = t_1 elif a <= 7.2e+21: tmp = t_2 elif a <= 1.2e+108: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(j * t) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(b * a) - Float64(y * j))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -3.8e+125) tmp = t_3; elseif (a <= -1.16e-55) tmp = t_2; elseif (a <= 0.026) tmp = t_1; elseif (a <= 7.2e+21) tmp = t_2; elseif (a <= 1.2e+108) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((j * t) - (z * b)); t_2 = i * ((b * a) - (y * j)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -3.8e+125) tmp = t_3; elseif (a <= -1.16e-55) tmp = t_2; elseif (a <= 0.026) tmp = t_1; elseif (a <= 7.2e+21) tmp = t_2; elseif (a <= 1.2e+108) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.8e+125], t$95$3, If[LessEqual[a, -1.16e-55], t$95$2, If[LessEqual[a, 0.026], t$95$1, If[LessEqual[a, 7.2e+21], t$95$2, If[LessEqual[a, 1.2e+108], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(j \cdot t - z \cdot b\right)\\
t_2 := i \cdot \left(b \cdot a - y \cdot j\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+125}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -1.16 \cdot 10^{-55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 0.026:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+108}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -3.80000000000000002e125 or 1.20000000000000009e108 < a Initial program 57.8%
cancel-sign-sub57.8%
cancel-sign-sub-inv57.8%
*-commutative57.8%
*-commutative57.8%
remove-double-neg57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in a around inf 76.5%
distribute-lft-out--76.5%
distribute-lft-out--76.5%
sub-neg76.5%
mul-1-neg76.5%
remove-double-neg76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
if -3.80000000000000002e125 < a < -1.15999999999999996e-55 or 0.0259999999999999988 < a < 7.2e21Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in i around -inf 72.6%
Taylor expanded in z around 0 63.9%
+-commutative63.9%
+-commutative63.9%
mul-1-neg63.9%
sub-neg63.9%
*-commutative63.9%
sub-neg63.9%
unsub-neg63.9%
Simplified71.4%
Taylor expanded in i around inf 55.8%
if -1.15999999999999996e-55 < a < 0.0259999999999999988 or 7.2e21 < a < 1.20000000000000009e108Initial program 73.5%
cancel-sign-sub73.5%
cancel-sign-sub-inv73.5%
*-commutative73.5%
*-commutative73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in c around inf 57.4%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* z x) (* i j)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -1.52e+94)
t_2
(if (<= a -1.72e-15)
t_1
(if (<= a -1.15e-135)
(* b (- (* i a) (* z c)))
(if (<= a 3.1e-60)
(* c (- (* j t) (* z b)))
(if (<= a 4.4e+70) 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 = y * ((z * x) - (i * j));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.52e+94) {
tmp = t_2;
} else if (a <= -1.72e-15) {
tmp = t_1;
} else if (a <= -1.15e-135) {
tmp = b * ((i * a) - (z * c));
} else if (a <= 3.1e-60) {
tmp = c * ((j * t) - (z * b));
} else if (a <= 4.4e+70) {
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 = y * ((z * x) - (i * j))
t_2 = a * ((b * i) - (x * t))
if (a <= (-1.52d+94)) then
tmp = t_2
else if (a <= (-1.72d-15)) then
tmp = t_1
else if (a <= (-1.15d-135)) then
tmp = b * ((i * a) - (z * c))
else if (a <= 3.1d-60) then
tmp = c * ((j * t) - (z * b))
else if (a <= 4.4d+70) 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 = y * ((z * x) - (i * j));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.52e+94) {
tmp = t_2;
} else if (a <= -1.72e-15) {
tmp = t_1;
} else if (a <= -1.15e-135) {
tmp = b * ((i * a) - (z * c));
} else if (a <= 3.1e-60) {
tmp = c * ((j * t) - (z * b));
} else if (a <= 4.4e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((z * x) - (i * j)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.52e+94: tmp = t_2 elif a <= -1.72e-15: tmp = t_1 elif a <= -1.15e-135: tmp = b * ((i * a) - (z * c)) elif a <= 3.1e-60: tmp = c * ((j * t) - (z * b)) elif a <= 4.4e+70: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(z * x) - Float64(i * j))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.52e+94) tmp = t_2; elseif (a <= -1.72e-15) tmp = t_1; elseif (a <= -1.15e-135) tmp = Float64(b * Float64(Float64(i * a) - Float64(z * c))); elseif (a <= 3.1e-60) tmp = Float64(c * Float64(Float64(j * t) - Float64(z * b))); elseif (a <= 4.4e+70) 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 = y * ((z * x) - (i * j)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.52e+94) tmp = t_2; elseif (a <= -1.72e-15) tmp = t_1; elseif (a <= -1.15e-135) tmp = b * ((i * a) - (z * c)); elseif (a <= 3.1e-60) tmp = c * ((j * t) - (z * b)); elseif (a <= 4.4e+70) 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[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.52e+94], t$95$2, If[LessEqual[a, -1.72e-15], t$95$1, If[LessEqual[a, -1.15e-135], N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-60], N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+70], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot x - i \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.52 \cdot 10^{+94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.72 \cdot 10^{-15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-135}:\\
\;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-60}:\\
\;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.5199999999999999e94 or 4.40000000000000001e70 < a Initial program 57.4%
cancel-sign-sub57.4%
cancel-sign-sub-inv57.4%
*-commutative57.4%
*-commutative57.4%
remove-double-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in a around inf 71.3%
distribute-lft-out--71.3%
distribute-lft-out--71.3%
sub-neg71.3%
mul-1-neg71.3%
remove-double-neg71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
Simplified71.3%
if -1.5199999999999999e94 < a < -1.7199999999999999e-15 or 3.09999999999999988e-60 < a < 4.40000000000000001e70Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in y around inf 54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
Simplified54.6%
if -1.7199999999999999e-15 < a < -1.15e-135Initial program 79.9%
cancel-sign-sub79.9%
cancel-sign-sub-inv79.9%
*-commutative79.9%
*-commutative79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in b around inf 80.4%
if -1.15e-135 < a < 3.09999999999999988e-60Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in c around inf 59.1%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -1.52e+94)
t_1
(if (<= a -2.9e-14)
(* y (- (* z x) (* i j)))
(if (<= a -7.9e-137)
(* b (- (* i a) (* z c)))
(if (<= a 3.5e-27)
(* c (- (* j t) (* z b)))
(if (<= a 1850.0) (* j (- (* c t) (* y i))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.52e+94) {
tmp = t_1;
} else if (a <= -2.9e-14) {
tmp = y * ((z * x) - (i * j));
} else if (a <= -7.9e-137) {
tmp = b * ((i * a) - (z * c));
} else if (a <= 3.5e-27) {
tmp = c * ((j * t) - (z * b));
} else if (a <= 1850.0) {
tmp = j * ((c * t) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-1.52d+94)) then
tmp = t_1
else if (a <= (-2.9d-14)) then
tmp = y * ((z * x) - (i * j))
else if (a <= (-7.9d-137)) then
tmp = b * ((i * a) - (z * c))
else if (a <= 3.5d-27) then
tmp = c * ((j * t) - (z * b))
else if (a <= 1850.0d0) then
tmp = j * ((c * t) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.52e+94) {
tmp = t_1;
} else if (a <= -2.9e-14) {
tmp = y * ((z * x) - (i * j));
} else if (a <= -7.9e-137) {
tmp = b * ((i * a) - (z * c));
} else if (a <= 3.5e-27) {
tmp = c * ((j * t) - (z * b));
} else if (a <= 1850.0) {
tmp = j * ((c * t) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.52e+94: tmp = t_1 elif a <= -2.9e-14: tmp = y * ((z * x) - (i * j)) elif a <= -7.9e-137: tmp = b * ((i * a) - (z * c)) elif a <= 3.5e-27: tmp = c * ((j * t) - (z * b)) elif a <= 1850.0: tmp = j * ((c * t) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.52e+94) tmp = t_1; elseif (a <= -2.9e-14) tmp = Float64(y * Float64(Float64(z * x) - Float64(i * j))); elseif (a <= -7.9e-137) tmp = Float64(b * Float64(Float64(i * a) - Float64(z * c))); elseif (a <= 3.5e-27) tmp = Float64(c * Float64(Float64(j * t) - Float64(z * b))); elseif (a <= 1850.0) tmp = Float64(j * Float64(Float64(c * t) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.52e+94) tmp = t_1; elseif (a <= -2.9e-14) tmp = y * ((z * x) - (i * j)); elseif (a <= -7.9e-137) tmp = b * ((i * a) - (z * c)); elseif (a <= 3.5e-27) tmp = c * ((j * t) - (z * b)); elseif (a <= 1850.0) tmp = j * ((c * t) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.52e+94], t$95$1, If[LessEqual[a, -2.9e-14], N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.9e-137], N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-27], N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1850.0], N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.52 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.9 \cdot 10^{-14}:\\
\;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\
\mathbf{elif}\;a \leq -7.9 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\
\mathbf{elif}\;a \leq 1850:\\
\;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.5199999999999999e94 or 1850 < a Initial program 61.6%
cancel-sign-sub61.6%
cancel-sign-sub-inv61.6%
*-commutative61.6%
*-commutative61.6%
remove-double-neg61.6%
*-commutative61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in a around inf 66.3%
distribute-lft-out--66.3%
distribute-lft-out--66.3%
sub-neg66.3%
mul-1-neg66.3%
remove-double-neg66.3%
+-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
Simplified66.3%
if -1.5199999999999999e94 < a < -2.9000000000000003e-14Initial program 71.9%
cancel-sign-sub71.9%
cancel-sign-sub-inv71.9%
*-commutative71.9%
*-commutative71.9%
remove-double-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in y around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
Simplified57.6%
if -2.9000000000000003e-14 < a < -7.90000000000000034e-137Initial program 79.9%
cancel-sign-sub79.9%
cancel-sign-sub-inv79.9%
*-commutative79.9%
*-commutative79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in b around inf 80.4%
if -7.90000000000000034e-137 < a < 3.5000000000000001e-27Initial program 74.6%
cancel-sign-sub74.6%
cancel-sign-sub-inv74.6%
*-commutative74.6%
*-commutative74.6%
remove-double-neg74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in c around inf 57.5%
if 3.5000000000000001e-27 < a < 1850Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in i around inf 77.8%
*-commutative77.8%
associate-*r*77.8%
Simplified77.8%
Taylor expanded in j around inf 89.3%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= a -1.08e-51)
(not (or (<= a 0.012) (and (not (<= a 2.35e+36)) (<= a 8.8e+107)))))
(* a (- (* b i) (* x t)))
(* c (- (* j t) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.08e-51) || !((a <= 0.012) || (!(a <= 2.35e+36) && (a <= 8.8e+107)))) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((j * t) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.08d-51)) .or. (.not. (a <= 0.012d0) .or. (.not. (a <= 2.35d+36)) .and. (a <= 8.8d+107))) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((j * t) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.08e-51) || !((a <= 0.012) || (!(a <= 2.35e+36) && (a <= 8.8e+107)))) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((j * t) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.08e-51) or not ((a <= 0.012) or (not (a <= 2.35e+36) and (a <= 8.8e+107))): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((j * t) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.08e-51) || !((a <= 0.012) || (!(a <= 2.35e+36) && (a <= 8.8e+107)))) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(j * t) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.08e-51) || ~(((a <= 0.012) || (~((a <= 2.35e+36)) && (a <= 8.8e+107))))) tmp = a * ((b * i) - (x * t)); else tmp = c * ((j * t) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.08e-51], N[Not[Or[LessEqual[a, 0.012], And[N[Not[LessEqual[a, 2.35e+36]], $MachinePrecision], LessEqual[a, 8.8e+107]]]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.08 \cdot 10^{-51} \lor \neg \left(a \leq 0.012 \lor \neg \left(a \leq 2.35 \cdot 10^{+36}\right) \land a \leq 8.8 \cdot 10^{+107}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\
\end{array}
\end{array}
if a < -1.08000000000000004e-51 or 0.012 < a < 2.34999999999999994e36 or 8.8e107 < a Initial program 64.8%
cancel-sign-sub64.8%
cancel-sign-sub-inv64.8%
*-commutative64.8%
*-commutative64.8%
remove-double-neg64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in a around inf 62.8%
distribute-lft-out--62.8%
distribute-lft-out--62.8%
sub-neg62.8%
mul-1-neg62.8%
remove-double-neg62.8%
+-commutative62.8%
mul-1-neg62.8%
unsub-neg62.8%
Simplified62.8%
if -1.08000000000000004e-51 < a < 0.012 or 2.34999999999999994e36 < a < 8.8e107Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in c around inf 58.3%
Final simplification60.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -6.5e-56)
t_1
(if (<= a 4.9e-107)
(* (* c b) (- z))
(if (<= a 2.1e-24)
(* y (* z x))
(if (<= a 2050.0) (* 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) - (x * t));
double tmp;
if (a <= -6.5e-56) {
tmp = t_1;
} else if (a <= 4.9e-107) {
tmp = (c * b) * -z;
} else if (a <= 2.1e-24) {
tmp = y * (z * x);
} else if (a <= 2050.0) {
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) - (x * t))
if (a <= (-6.5d-56)) then
tmp = t_1
else if (a <= 4.9d-107) then
tmp = (c * b) * -z
else if (a <= 2.1d-24) then
tmp = y * (z * x)
else if (a <= 2050.0d0) 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) - (x * t));
double tmp;
if (a <= -6.5e-56) {
tmp = t_1;
} else if (a <= 4.9e-107) {
tmp = (c * b) * -z;
} else if (a <= 2.1e-24) {
tmp = y * (z * x);
} else if (a <= 2050.0) {
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) - (x * t)) tmp = 0 if a <= -6.5e-56: tmp = t_1 elif a <= 4.9e-107: tmp = (c * b) * -z elif a <= 2.1e-24: tmp = y * (z * x) elif a <= 2050.0: 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(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -6.5e-56) tmp = t_1; elseif (a <= 4.9e-107) tmp = Float64(Float64(c * b) * Float64(-z)); elseif (a <= 2.1e-24) tmp = Float64(y * Float64(z * x)); elseif (a <= 2050.0) tmp = Float64(y * Float64(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) - (x * t)); tmp = 0.0; if (a <= -6.5e-56) tmp = t_1; elseif (a <= 4.9e-107) tmp = (c * b) * -z; elseif (a <= 2.1e-24) tmp = y * (z * x); elseif (a <= 2050.0) 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[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e-56], t$95$1, If[LessEqual[a, 4.9e-107], N[(N[(c * b), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[a, 2.1e-24], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2050.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{-107}:\\
\;\;\;\;\left(c \cdot b\right) \cdot \left(-z\right)\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-24}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;a \leq 2050:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -6.4999999999999997e-56 or 2050 < a Initial program 63.8%
cancel-sign-sub63.8%
cancel-sign-sub-inv63.8%
*-commutative63.8%
*-commutative63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in a around inf 60.5%
distribute-lft-out--60.5%
distribute-lft-out--60.5%
sub-neg60.5%
mul-1-neg60.5%
remove-double-neg60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
if -6.4999999999999997e-56 < a < 4.8999999999999998e-107Initial program 76.4%
cancel-sign-sub76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
*-commutative76.4%
remove-double-neg76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in b around inf 45.7%
Taylor expanded in a around 0 38.1%
associate-*r*38.1%
neg-mul-138.1%
*-commutative38.1%
associate-*r*38.1%
Simplified38.1%
if 4.8999999999999998e-107 < a < 2.0999999999999999e-24Initial program 62.0%
cancel-sign-sub62.0%
cancel-sign-sub-inv62.0%
*-commutative62.0%
*-commutative62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in z around inf 48.2%
Taylor expanded in y around inf 47.4%
if 2.0999999999999999e-24 < a < 2050Initial program 75.0%
cancel-sign-sub75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
*-commutative75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in y around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
Simplified62.4%
Taylor expanded in z around 0 75.5%
mul-1-neg75.5%
distribute-lft-neg-out75.5%
*-commutative75.5%
Simplified75.5%
Final simplification52.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* z x) (* i j)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -2e+94)
t_2
(if (<= a -1.96e-13)
t_1
(if (<= a 7.2e-59)
(* c (- (* j t) (* z b)))
(if (<= a 4.4e+70) 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 = y * ((z * x) - (i * j));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2e+94) {
tmp = t_2;
} else if (a <= -1.96e-13) {
tmp = t_1;
} else if (a <= 7.2e-59) {
tmp = c * ((j * t) - (z * b));
} else if (a <= 4.4e+70) {
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 = y * ((z * x) - (i * j))
t_2 = a * ((b * i) - (x * t))
if (a <= (-2d+94)) then
tmp = t_2
else if (a <= (-1.96d-13)) then
tmp = t_1
else if (a <= 7.2d-59) then
tmp = c * ((j * t) - (z * b))
else if (a <= 4.4d+70) 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 = y * ((z * x) - (i * j));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2e+94) {
tmp = t_2;
} else if (a <= -1.96e-13) {
tmp = t_1;
} else if (a <= 7.2e-59) {
tmp = c * ((j * t) - (z * b));
} else if (a <= 4.4e+70) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((z * x) - (i * j)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2e+94: tmp = t_2 elif a <= -1.96e-13: tmp = t_1 elif a <= 7.2e-59: tmp = c * ((j * t) - (z * b)) elif a <= 4.4e+70: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(z * x) - Float64(i * j))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2e+94) tmp = t_2; elseif (a <= -1.96e-13) tmp = t_1; elseif (a <= 7.2e-59) tmp = Float64(c * Float64(Float64(j * t) - Float64(z * b))); elseif (a <= 4.4e+70) 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 = y * ((z * x) - (i * j)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2e+94) tmp = t_2; elseif (a <= -1.96e-13) tmp = t_1; elseif (a <= 7.2e-59) tmp = c * ((j * t) - (z * b)); elseif (a <= 4.4e+70) 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[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2e+94], t$95$2, If[LessEqual[a, -1.96e-13], t$95$1, If[LessEqual[a, 7.2e-59], N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+70], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot x - i \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2 \cdot 10^{+94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.96 \cdot 10^{-13}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-59}:\\
\;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+70}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2e94 or 4.40000000000000001e70 < a Initial program 57.4%
cancel-sign-sub57.4%
cancel-sign-sub-inv57.4%
*-commutative57.4%
*-commutative57.4%
remove-double-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in a around inf 71.3%
distribute-lft-out--71.3%
distribute-lft-out--71.3%
sub-neg71.3%
mul-1-neg71.3%
remove-double-neg71.3%
+-commutative71.3%
mul-1-neg71.3%
unsub-neg71.3%
Simplified71.3%
if -2e94 < a < -1.95999999999999998e-13 or 7.20000000000000001e-59 < a < 4.40000000000000001e70Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in y around inf 54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
Simplified54.6%
if -1.95999999999999998e-13 < a < 7.20000000000000001e-59Initial program 76.7%
cancel-sign-sub76.7%
cancel-sign-sub-inv76.7%
*-commutative76.7%
*-commutative76.7%
remove-double-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in c around inf 58.3%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= z -2.8e+170)
(* y (* z x))
(if (<= z -6.2e+88)
t_1
(if (<= z -6200.0)
(* y (* j (- i)))
(if (<= z -1.1e-207)
(* a (* x (- t)))
(if (<= z 8e-62) (* b (* i a)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.8e+170) {
tmp = y * (z * x);
} else if (z <= -6.2e+88) {
tmp = t_1;
} else if (z <= -6200.0) {
tmp = y * (j * -i);
} else if (z <= -1.1e-207) {
tmp = a * (x * -t);
} else if (z <= 8e-62) {
tmp = b * (i * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (z <= (-2.8d+170)) then
tmp = y * (z * x)
else if (z <= (-6.2d+88)) then
tmp = t_1
else if (z <= (-6200.0d0)) then
tmp = y * (j * -i)
else if (z <= (-1.1d-207)) then
tmp = a * (x * -t)
else if (z <= 8d-62) then
tmp = b * (i * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.8e+170) {
tmp = y * (z * x);
} else if (z <= -6.2e+88) {
tmp = t_1;
} else if (z <= -6200.0) {
tmp = y * (j * -i);
} else if (z <= -1.1e-207) {
tmp = a * (x * -t);
} else if (z <= 8e-62) {
tmp = b * (i * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if z <= -2.8e+170: tmp = y * (z * x) elif z <= -6.2e+88: tmp = t_1 elif z <= -6200.0: tmp = y * (j * -i) elif z <= -1.1e-207: tmp = a * (x * -t) elif z <= 8e-62: tmp = b * (i * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (z <= -2.8e+170) tmp = Float64(y * Float64(z * x)); elseif (z <= -6.2e+88) tmp = t_1; elseif (z <= -6200.0) tmp = Float64(y * Float64(j * Float64(-i))); elseif (z <= -1.1e-207) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 8e-62) tmp = Float64(b * Float64(i * a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (z <= -2.8e+170) tmp = y * (z * x); elseif (z <= -6.2e+88) tmp = t_1; elseif (z <= -6200.0) tmp = y * (j * -i); elseif (z <= -1.1e-207) tmp = a * (x * -t); elseif (z <= 8e-62) tmp = b * (i * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.8e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e+88], t$95$1, If[LessEqual[z, -6200.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e-62], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{+88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6200:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.80000000000000015e170Initial program 57.2%
cancel-sign-sub57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
*-commutative57.2%
remove-double-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in z around inf 75.3%
Taylor expanded in y around inf 50.9%
if -2.80000000000000015e170 < z < -6.2000000000000003e88 or 8.0000000000000003e-62 < z Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in b around inf 51.0%
Taylor expanded in a around 0 39.5%
associate-*r*39.5%
neg-mul-139.5%
*-commutative39.5%
associate-*r*40.5%
Simplified40.5%
Taylor expanded in c around 0 39.5%
associate-*r*39.5%
*-commutative39.5%
associate-*r*39.5%
mul-1-neg39.5%
distribute-rgt-neg-in39.5%
*-commutative39.5%
Simplified39.5%
if -6.2000000000000003e88 < z < -6200Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in y around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
Taylor expanded in z around 0 45.9%
mul-1-neg45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
Simplified45.9%
if -6200 < z < -1.0999999999999999e-207Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in a around inf 61.1%
distribute-lft-out--61.1%
distribute-lft-out--61.1%
sub-neg61.1%
mul-1-neg61.1%
remove-double-neg61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
Simplified61.1%
Taylor expanded in i around 0 45.4%
neg-mul-145.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -1.0999999999999999e-207 < z < 8.0000000000000003e-62Initial program 76.8%
cancel-sign-sub76.8%
cancel-sign-sub-inv76.8%
*-commutative76.8%
*-commutative76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in b around inf 38.0%
Taylor expanded in a around inf 34.0%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -7e+170)
(* y (* z x))
(if (<= z -8.1e+89)
(* c (* z (- b)))
(if (<= z -66000.0)
(* y (* j (- i)))
(if (<= z -8e-207)
(* a (* x (- t)))
(if (<= z 6.6e-62) (* b (* i a)) (* b (* z (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7e+170) {
tmp = y * (z * x);
} else if (z <= -8.1e+89) {
tmp = c * (z * -b);
} else if (z <= -66000.0) {
tmp = y * (j * -i);
} else if (z <= -8e-207) {
tmp = a * (x * -t);
} else if (z <= 6.6e-62) {
tmp = b * (i * a);
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-7d+170)) then
tmp = y * (z * x)
else if (z <= (-8.1d+89)) then
tmp = c * (z * -b)
else if (z <= (-66000.0d0)) then
tmp = y * (j * -i)
else if (z <= (-8d-207)) then
tmp = a * (x * -t)
else if (z <= 6.6d-62) then
tmp = b * (i * a)
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7e+170) {
tmp = y * (z * x);
} else if (z <= -8.1e+89) {
tmp = c * (z * -b);
} else if (z <= -66000.0) {
tmp = y * (j * -i);
} else if (z <= -8e-207) {
tmp = a * (x * -t);
} else if (z <= 6.6e-62) {
tmp = b * (i * a);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -7e+170: tmp = y * (z * x) elif z <= -8.1e+89: tmp = c * (z * -b) elif z <= -66000.0: tmp = y * (j * -i) elif z <= -8e-207: tmp = a * (x * -t) elif z <= 6.6e-62: tmp = b * (i * a) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7e+170) tmp = Float64(y * Float64(z * x)); elseif (z <= -8.1e+89) tmp = Float64(c * Float64(z * Float64(-b))); elseif (z <= -66000.0) tmp = Float64(y * Float64(j * Float64(-i))); elseif (z <= -8e-207) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 6.6e-62) tmp = Float64(b * Float64(i * a)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -7e+170) tmp = y * (z * x); elseif (z <= -8.1e+89) tmp = c * (z * -b); elseif (z <= -66000.0) tmp = y * (j * -i); elseif (z <= -8e-207) tmp = a * (x * -t); elseif (z <= 6.6e-62) tmp = b * (i * a); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.1e+89], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -66000.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-62], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;z \leq -8.1 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;z \leq -66000:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -7.00000000000000011e170Initial program 57.2%
cancel-sign-sub57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
*-commutative57.2%
remove-double-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in z around inf 75.3%
Taylor expanded in y around inf 50.9%
if -7.00000000000000011e170 < z < -8.1e89Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in b around inf 77.1%
Taylor expanded in a around 0 71.8%
associate-*r*71.8%
neg-mul-171.8%
*-commutative71.8%
associate-*r*71.8%
Simplified71.8%
Taylor expanded in c around 0 71.8%
associate-*r*71.8%
*-commutative71.8%
associate-*r*71.8%
mul-1-neg71.8%
distribute-rgt-neg-in71.8%
*-commutative71.8%
Simplified71.8%
if -8.1e89 < z < -66000Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in y around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
Taylor expanded in z around 0 45.9%
mul-1-neg45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
Simplified45.9%
if -66000 < z < -7.9999999999999994e-207Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in a around inf 61.1%
distribute-lft-out--61.1%
distribute-lft-out--61.1%
sub-neg61.1%
mul-1-neg61.1%
remove-double-neg61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
Simplified61.1%
Taylor expanded in i around 0 45.4%
neg-mul-145.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -7.9999999999999994e-207 < z < 6.60000000000000009e-62Initial program 76.8%
cancel-sign-sub76.8%
cancel-sign-sub-inv76.8%
*-commutative76.8%
*-commutative76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in b around inf 38.0%
Taylor expanded in a around inf 34.0%
if 6.60000000000000009e-62 < z Initial program 61.7%
cancel-sign-sub61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
*-commutative61.7%
remove-double-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in b around inf 45.0%
Taylor expanded in a around 0 33.4%
neg-mul-133.4%
distribute-lft-neg-in33.4%
*-commutative33.4%
Simplified33.4%
Final simplification41.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -5.8e+170)
(* y (* z x))
(if (<= z -5.5e+88)
(* (* c b) (- z))
(if (<= z -11500.0)
(* y (* j (- i)))
(if (<= z -8e-207)
(* a (* x (- t)))
(if (<= z 7.7e-62) (* b (* i a)) (* b (* z (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -5.8e+170) {
tmp = y * (z * x);
} else if (z <= -5.5e+88) {
tmp = (c * b) * -z;
} else if (z <= -11500.0) {
tmp = y * (j * -i);
} else if (z <= -8e-207) {
tmp = a * (x * -t);
} else if (z <= 7.7e-62) {
tmp = b * (i * a);
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-5.8d+170)) then
tmp = y * (z * x)
else if (z <= (-5.5d+88)) then
tmp = (c * b) * -z
else if (z <= (-11500.0d0)) then
tmp = y * (j * -i)
else if (z <= (-8d-207)) then
tmp = a * (x * -t)
else if (z <= 7.7d-62) then
tmp = b * (i * a)
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -5.8e+170) {
tmp = y * (z * x);
} else if (z <= -5.5e+88) {
tmp = (c * b) * -z;
} else if (z <= -11500.0) {
tmp = y * (j * -i);
} else if (z <= -8e-207) {
tmp = a * (x * -t);
} else if (z <= 7.7e-62) {
tmp = b * (i * a);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -5.8e+170: tmp = y * (z * x) elif z <= -5.5e+88: tmp = (c * b) * -z elif z <= -11500.0: tmp = y * (j * -i) elif z <= -8e-207: tmp = a * (x * -t) elif z <= 7.7e-62: tmp = b * (i * a) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -5.8e+170) tmp = Float64(y * Float64(z * x)); elseif (z <= -5.5e+88) tmp = Float64(Float64(c * b) * Float64(-z)); elseif (z <= -11500.0) tmp = Float64(y * Float64(j * Float64(-i))); elseif (z <= -8e-207) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 7.7e-62) tmp = Float64(b * Float64(i * a)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -5.8e+170) tmp = y * (z * x); elseif (z <= -5.5e+88) tmp = (c * b) * -z; elseif (z <= -11500.0) tmp = y * (j * -i); elseif (z <= -8e-207) tmp = a * (x * -t); elseif (z <= 7.7e-62) tmp = b * (i * a); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5.8e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.5e+88], N[(N[(c * b), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[z, -11500.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.7e-62], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{+88}:\\
\;\;\;\;\left(c \cdot b\right) \cdot \left(-z\right)\\
\mathbf{elif}\;z \leq -11500:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 7.7 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -5.8000000000000001e170Initial program 57.2%
cancel-sign-sub57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
*-commutative57.2%
remove-double-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in z around inf 75.3%
Taylor expanded in y around inf 50.9%
if -5.8000000000000001e170 < z < -5.5e88Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in b around inf 77.1%
Taylor expanded in a around 0 71.8%
associate-*r*71.8%
neg-mul-171.8%
*-commutative71.8%
associate-*r*71.8%
Simplified71.8%
if -5.5e88 < z < -11500Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in y around inf 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
Taylor expanded in z around 0 45.9%
mul-1-neg45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
Simplified45.9%
if -11500 < z < -7.9999999999999994e-207Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in a around inf 61.1%
distribute-lft-out--61.1%
distribute-lft-out--61.1%
sub-neg61.1%
mul-1-neg61.1%
remove-double-neg61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
Simplified61.1%
Taylor expanded in i around 0 45.4%
neg-mul-145.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -7.9999999999999994e-207 < z < 7.69999999999999996e-62Initial program 76.8%
cancel-sign-sub76.8%
cancel-sign-sub-inv76.8%
*-commutative76.8%
*-commutative76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in b around inf 38.0%
Taylor expanded in a around inf 34.0%
if 7.69999999999999996e-62 < z Initial program 61.7%
cancel-sign-sub61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
*-commutative61.7%
remove-double-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in b around inf 45.0%
Taylor expanded in a around 0 33.4%
neg-mul-133.4%
distribute-lft-neg-in33.4%
*-commutative33.4%
Simplified33.4%
Final simplification41.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))))
(if (<= x -5.2e+171)
t_1
(if (<= x -5.4e+42)
(* y (* z x))
(if (or (<= x -6.8e-36) (not (<= x 3.5e-17))) t_1 (* b (* i a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double tmp;
if (x <= -5.2e+171) {
tmp = t_1;
} else if (x <= -5.4e+42) {
tmp = y * (z * x);
} else if ((x <= -6.8e-36) || !(x <= 3.5e-17)) {
tmp = t_1;
} else {
tmp = b * (i * 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 = a * (x * -t)
if (x <= (-5.2d+171)) then
tmp = t_1
else if (x <= (-5.4d+42)) then
tmp = y * (z * x)
else if ((x <= (-6.8d-36)) .or. (.not. (x <= 3.5d-17))) then
tmp = t_1
else
tmp = b * (i * 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 = a * (x * -t);
double tmp;
if (x <= -5.2e+171) {
tmp = t_1;
} else if (x <= -5.4e+42) {
tmp = y * (z * x);
} else if ((x <= -6.8e-36) || !(x <= 3.5e-17)) {
tmp = t_1;
} else {
tmp = b * (i * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) tmp = 0 if x <= -5.2e+171: tmp = t_1 elif x <= -5.4e+42: tmp = y * (z * x) elif (x <= -6.8e-36) or not (x <= 3.5e-17): tmp = t_1 else: tmp = b * (i * a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (x <= -5.2e+171) tmp = t_1; elseif (x <= -5.4e+42) tmp = Float64(y * Float64(z * x)); elseif ((x <= -6.8e-36) || !(x <= 3.5e-17)) tmp = t_1; else tmp = Float64(b * Float64(i * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); tmp = 0.0; if (x <= -5.2e+171) tmp = t_1; elseif (x <= -5.4e+42) tmp = y * (z * x); elseif ((x <= -6.8e-36) || ~((x <= 3.5e-17))) tmp = t_1; else tmp = b * (i * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+171], t$95$1, If[LessEqual[x, -5.4e+42], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -6.8e-36], N[Not[LessEqual[x, 3.5e-17]], $MachinePrecision]], t$95$1, N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{+42}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-36} \lor \neg \left(x \leq 3.5 \cdot 10^{-17}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\
\end{array}
\end{array}
if x < -5.2e171 or -5.4000000000000001e42 < x < -6.8000000000000005e-36 or 3.5000000000000002e-17 < x Initial program 65.3%
cancel-sign-sub65.3%
cancel-sign-sub-inv65.3%
*-commutative65.3%
*-commutative65.3%
remove-double-neg65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in a around inf 49.1%
distribute-lft-out--49.1%
distribute-lft-out--49.1%
sub-neg49.1%
mul-1-neg49.1%
remove-double-neg49.1%
+-commutative49.1%
mul-1-neg49.1%
unsub-neg49.1%
Simplified49.1%
Taylor expanded in i around 0 42.8%
neg-mul-142.8%
distribute-rgt-neg-in42.8%
Simplified42.8%
if -5.2e171 < x < -5.4000000000000001e42Initial program 78.3%
cancel-sign-sub78.3%
cancel-sign-sub-inv78.3%
*-commutative78.3%
*-commutative78.3%
remove-double-neg78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in z around inf 49.9%
Taylor expanded in y around inf 47.3%
if -6.8000000000000005e-36 < x < 3.5000000000000002e-17Initial program 69.3%
cancel-sign-sub69.3%
cancel-sign-sub-inv69.3%
*-commutative69.3%
*-commutative69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in b around inf 50.3%
Taylor expanded in a around inf 28.6%
Final simplification36.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= z -2.25e+170)
(* y (* z x))
(if (<= z -7000.0)
t_1
(if (<= z -1.45e-207)
(* a (* x (- t)))
(if (<= z 1.4e-61) (* b (* i a)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.25e+170) {
tmp = y * (z * x);
} else if (z <= -7000.0) {
tmp = t_1;
} else if (z <= -1.45e-207) {
tmp = a * (x * -t);
} else if (z <= 1.4e-61) {
tmp = b * (i * a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (z <= (-2.25d+170)) then
tmp = y * (z * x)
else if (z <= (-7000.0d0)) then
tmp = t_1
else if (z <= (-1.45d-207)) then
tmp = a * (x * -t)
else if (z <= 1.4d-61) then
tmp = b * (i * a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -2.25e+170) {
tmp = y * (z * x);
} else if (z <= -7000.0) {
tmp = t_1;
} else if (z <= -1.45e-207) {
tmp = a * (x * -t);
} else if (z <= 1.4e-61) {
tmp = b * (i * a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if z <= -2.25e+170: tmp = y * (z * x) elif z <= -7000.0: tmp = t_1 elif z <= -1.45e-207: tmp = a * (x * -t) elif z <= 1.4e-61: tmp = b * (i * a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (z <= -2.25e+170) tmp = Float64(y * Float64(z * x)); elseif (z <= -7000.0) tmp = t_1; elseif (z <= -1.45e-207) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 1.4e-61) tmp = Float64(b * Float64(i * a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (z <= -2.25e+170) tmp = y * (z * x); elseif (z <= -7000.0) tmp = t_1; elseif (z <= -1.45e-207) tmp = a * (x * -t); elseif (z <= 1.4e-61) tmp = b * (i * a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.25e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7000.0], t$95$1, If[LessEqual[z, -1.45e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e-61], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -2.25 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;z \leq -7000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.45 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-61}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.25000000000000011e170Initial program 57.2%
cancel-sign-sub57.2%
cancel-sign-sub-inv57.2%
*-commutative57.2%
*-commutative57.2%
remove-double-neg57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in z around inf 75.3%
Taylor expanded in y around inf 50.9%
if -2.25000000000000011e170 < z < -7e3 or 1.4000000000000001e-61 < z Initial program 68.2%
cancel-sign-sub68.2%
cancel-sign-sub-inv68.2%
*-commutative68.2%
*-commutative68.2%
remove-double-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in b around inf 46.4%
Taylor expanded in a around 0 36.4%
associate-*r*36.4%
neg-mul-136.4%
*-commutative36.4%
associate-*r*37.3%
Simplified37.3%
Taylor expanded in c around 0 36.4%
associate-*r*36.4%
*-commutative36.4%
associate-*r*36.4%
mul-1-neg36.4%
distribute-rgt-neg-in36.4%
*-commutative36.4%
Simplified36.4%
if -7e3 < z < -1.45000000000000006e-207Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in a around inf 61.1%
distribute-lft-out--61.1%
distribute-lft-out--61.1%
sub-neg61.1%
mul-1-neg61.1%
remove-double-neg61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
Simplified61.1%
Taylor expanded in i around 0 45.4%
neg-mul-145.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -1.45000000000000006e-207 < z < 1.4000000000000001e-61Initial program 76.8%
cancel-sign-sub76.8%
cancel-sign-sub-inv76.8%
*-commutative76.8%
*-commutative76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in b around inf 38.0%
Taylor expanded in a around inf 34.0%
Final simplification39.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -7e+91) (not (<= y 5e+56))) (* y (* z x)) (* i (* b a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -7e+91) || !(y <= 5e+56)) {
tmp = y * (z * x);
} else {
tmp = i * (b * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-7d+91)) .or. (.not. (y <= 5d+56))) then
tmp = y * (z * x)
else
tmp = i * (b * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -7e+91) || !(y <= 5e+56)) {
tmp = y * (z * x);
} else {
tmp = i * (b * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -7e+91) or not (y <= 5e+56): tmp = y * (z * x) else: tmp = i * (b * a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -7e+91) || !(y <= 5e+56)) tmp = Float64(y * Float64(z * x)); else tmp = Float64(i * Float64(b * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -7e+91) || ~((y <= 5e+56))) tmp = y * (z * x); else tmp = i * (b * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -7e+91], N[Not[LessEqual[y, 5e+56]], $MachinePrecision]], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+91} \lor \neg \left(y \leq 5 \cdot 10^{+56}\right):\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot a\right)\\
\end{array}
\end{array}
if y < -7.00000000000000001e91 or 5.00000000000000024e56 < y Initial program 64.3%
cancel-sign-sub64.3%
cancel-sign-sub-inv64.3%
*-commutative64.3%
*-commutative64.3%
remove-double-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around inf 45.8%
Taylor expanded in y around inf 41.7%
if -7.00000000000000001e91 < y < 5.00000000000000024e56Initial program 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in a around inf 46.5%
distribute-lft-out--46.5%
distribute-lft-out--46.5%
sub-neg46.5%
mul-1-neg46.5%
remove-double-neg46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
Simplified46.5%
Taylor expanded in i around inf 23.1%
associate-*r*24.2%
*-commutative24.2%
associate-*r*26.5%
Simplified26.5%
Final simplification31.9%
(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 68.7%
cancel-sign-sub68.7%
cancel-sign-sub-inv68.7%
*-commutative68.7%
*-commutative68.7%
remove-double-neg68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in a around inf 39.1%
distribute-lft-out--39.1%
distribute-lft-out--39.1%
sub-neg39.1%
mul-1-neg39.1%
remove-double-neg39.1%
+-commutative39.1%
mul-1-neg39.1%
unsub-neg39.1%
Simplified39.1%
Taylor expanded in i around inf 20.3%
Final simplification20.3%
(FPCore (x y z t a b c i j) :precision binary64 (* i (* b a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return i * (b * a);
}
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 = i * (b * a)
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 i * (b * a);
}
def code(x, y, z, t, a, b, c, i, j): return i * (b * a)
function code(x, y, z, t, a, b, c, i, j) return Float64(i * Float64(b * a)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = i * (b * a); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(b \cdot a\right)
\end{array}
Initial program 68.7%
cancel-sign-sub68.7%
cancel-sign-sub-inv68.7%
*-commutative68.7%
*-commutative68.7%
remove-double-neg68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in a around inf 39.1%
distribute-lft-out--39.1%
distribute-lft-out--39.1%
sub-neg39.1%
mul-1-neg39.1%
remove-double-neg39.1%
+-commutative39.1%
mul-1-neg39.1%
unsub-neg39.1%
Simplified39.1%
Taylor expanded in i around inf 20.3%
associate-*r*21.8%
*-commutative21.8%
associate-*r*21.8%
Simplified21.8%
Final simplification21.8%
(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 2023200
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(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)))))