
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 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) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* z y) (* t a))) (t_2 (- (* t i) (* z c))))
(if (<= b -1.6e+96)
(fma b t_2 (fma x t_1 (* j (fma y (- i) (* c a)))))
(if (<= b 9800000000000.0)
(fma
z
(- (* x y) (* b c))
(- (fma c (* a j) (* i (- (* b t) (* y j)))) (* t (* x a))))
(fma b t_2 (fma x t_1 (* j (- (* c a) (* i y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) - (t * a);
double t_2 = (t * i) - (z * c);
double tmp;
if (b <= -1.6e+96) {
tmp = fma(b, t_2, fma(x, t_1, (j * fma(y, -i, (c * a)))));
} else if (b <= 9800000000000.0) {
tmp = fma(z, ((x * y) - (b * c)), (fma(c, (a * j), (i * ((b * t) - (y * j)))) - (t * (x * a))));
} else {
tmp = fma(b, t_2, fma(x, t_1, (j * ((c * a) - (i * y)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) - Float64(t * a)) t_2 = Float64(Float64(t * i) - Float64(z * c)) tmp = 0.0 if (b <= -1.6e+96) tmp = fma(b, t_2, fma(x, t_1, Float64(j * fma(y, Float64(-i), Float64(c * a))))); elseif (b <= 9800000000000.0) tmp = fma(z, Float64(Float64(x * y) - Float64(b * c)), Float64(fma(c, Float64(a * j), Float64(i * Float64(Float64(b * t) - Float64(y * j)))) - Float64(t * Float64(x * a)))); else tmp = fma(b, t_2, fma(x, t_1, Float64(j * Float64(Float64(c * a) - Float64(i * y))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+96], N[(b * t$95$2 + N[(x * t$95$1 + N[(j * N[(y * (-i) + N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9800000000000.0], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(a * j), $MachinePrecision] + N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * t$95$2 + N[(x * t$95$1 + N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot y - t \cdot a\\
t_2 := t \cdot i - z \cdot c\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+96}:\\
\;\;\;\;\mathsf{fma}\left(b, t_2, \mathsf{fma}\left(x, t_1, j \cdot \mathsf{fma}\left(y, -i, c \cdot a\right)\right)\right)\\
\mathbf{elif}\;b \leq 9800000000000:\\
\;\;\;\;\mathsf{fma}\left(z, x \cdot y - b \cdot c, \mathsf{fma}\left(c, a \cdot j, i \cdot \left(b \cdot t - y \cdot j\right)\right) - t \cdot \left(x \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b, t_2, \mathsf{fma}\left(x, t_1, j \cdot \left(c \cdot a - i \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if b < -1.60000000000000003e96Initial program 74.9%
sub-neg74.9%
+-commutative74.9%
associate-+l+74.9%
distribute-rgt-neg-in74.9%
+-commutative74.9%
fma-def82.9%
sub-neg82.9%
+-commutative82.9%
distribute-neg-in82.9%
unsub-neg82.9%
remove-double-neg82.9%
*-commutative82.9%
Simplified82.9%
if -1.60000000000000003e96 < b < 9.8e12Initial program 68.5%
cancel-sign-sub68.5%
cancel-sign-sub-inv68.5%
*-commutative68.5%
remove-double-neg68.5%
*-commutative68.5%
Simplified68.5%
add-cube-cbrt68.0%
*-commutative68.0%
*-commutative68.0%
Applied egg-rr68.0%
Taylor expanded in z around 0 79.3%
Simplified86.3%
if 9.8e12 < b Initial program 72.4%
sub-neg72.4%
+-commutative72.4%
associate-+l+72.4%
distribute-rgt-neg-in72.4%
+-commutative72.4%
fma-def79.8%
sub-neg79.8%
+-commutative79.8%
distribute-neg-in79.8%
unsub-neg79.8%
remove-double-neg79.8%
*-commutative79.8%
Simplified85.4%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -1.25e+90) (not (<= b 11000000000000.0)))
(fma
b
(- (* t i) (* z c))
(fma x (- (* z y) (* t a)) (* j (- (* c a) (* i y)))))
(fma
z
(- (* x y) (* b c))
(- (fma c (* a j) (* i (- (* b t) (* y j)))) (* t (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.25e+90) || !(b <= 11000000000000.0)) {
tmp = fma(b, ((t * i) - (z * c)), fma(x, ((z * y) - (t * a)), (j * ((c * a) - (i * y)))));
} else {
tmp = fma(z, ((x * y) - (b * c)), (fma(c, (a * j), (i * ((b * t) - (y * j)))) - (t * (x * a))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.25e+90) || !(b <= 11000000000000.0)) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), fma(x, Float64(Float64(z * y) - Float64(t * a)), Float64(j * Float64(Float64(c * a) - Float64(i * y))))); else tmp = fma(z, Float64(Float64(x * y) - Float64(b * c)), Float64(fma(c, Float64(a * j), Float64(i * Float64(Float64(b * t) - Float64(y * j)))) - Float64(t * Float64(x * a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.25e+90], N[Not[LessEqual[b, 11000000000000.0]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(a * j), $MachinePrecision] + N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+90} \lor \neg \left(b \leq 11000000000000\right):\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, z \cdot y - t \cdot a, j \cdot \left(c \cdot a - i \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, x \cdot y - b \cdot c, \mathsf{fma}\left(c, a \cdot j, i \cdot \left(b \cdot t - y \cdot j\right)\right) - t \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -1.2500000000000001e90 or 1.1e13 < b Initial program 73.6%
sub-neg73.6%
+-commutative73.6%
associate-+l+73.6%
distribute-rgt-neg-in73.6%
+-commutative73.6%
fma-def81.3%
sub-neg81.3%
+-commutative81.3%
distribute-neg-in81.3%
unsub-neg81.3%
remove-double-neg81.3%
*-commutative81.3%
Simplified84.2%
if -1.2500000000000001e90 < b < 1.1e13Initial program 68.5%
cancel-sign-sub68.5%
cancel-sign-sub-inv68.5%
*-commutative68.5%
remove-double-neg68.5%
*-commutative68.5%
Simplified68.5%
add-cube-cbrt68.0%
*-commutative68.0%
*-commutative68.0%
Applied egg-rr68.0%
Taylor expanded in z around 0 79.3%
Simplified86.3%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* i y))))
(t_2 (+ (+ (* x (- (* z y) (* t a))) (* b (- (* t i) (* z c)))) t_1)))
(if (<= t_2 INFINITY) t_2 t_1)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (i * y));
double t_2 = ((x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1;
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (i * y));
double t_2 = ((x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1;
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (i * y)) t_2 = ((x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1 tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(i * y))) t_2 = Float64(Float64(Float64(x * Float64(Float64(z * y) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + t_1) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (i * y)); t_2 = ((x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)))) + t_1; tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - i \cdot y\right)\\
t_2 := \left(x \cdot \left(z \cdot y - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + t_1\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in j around inf 57.3%
Final simplification82.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* t x))))
(t_2 (+ (* i (- (* b t) (* y j))) (* z (- (* x y) (* b c))))))
(if (<= a -8.2e+126)
t_1
(if (<= a -1.6e+74)
(- (* i (* b t)) (* j (- (* i y) (* c a))))
(if (<= a -2.25e+18)
(* x (- (* z y) (* t a)))
(if (<= a -1.05e-209)
t_2
(if (<= a -1.26e-216)
(- (* j (- (* c a) (* i y))) (* c (* b z)))
(if (<= a -3.3e-239)
(* b (- (* t i) (* z c)))
(if (<= a 4.6e+101) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double t_2 = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c)));
double tmp;
if (a <= -8.2e+126) {
tmp = t_1;
} else if (a <= -1.6e+74) {
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)));
} else if (a <= -2.25e+18) {
tmp = x * ((z * y) - (t * a));
} else if (a <= -1.05e-209) {
tmp = t_2;
} else if (a <= -1.26e-216) {
tmp = (j * ((c * a) - (i * y))) - (c * (b * z));
} else if (a <= -3.3e-239) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 4.6e+101) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (t * x))
t_2 = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c)))
if (a <= (-8.2d+126)) then
tmp = t_1
else if (a <= (-1.6d+74)) then
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)))
else if (a <= (-2.25d+18)) then
tmp = x * ((z * y) - (t * a))
else if (a <= (-1.05d-209)) then
tmp = t_2
else if (a <= (-1.26d-216)) then
tmp = (j * ((c * a) - (i * y))) - (c * (b * z))
else if (a <= (-3.3d-239)) then
tmp = b * ((t * i) - (z * c))
else if (a <= 4.6d+101) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double t_2 = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c)));
double tmp;
if (a <= -8.2e+126) {
tmp = t_1;
} else if (a <= -1.6e+74) {
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)));
} else if (a <= -2.25e+18) {
tmp = x * ((z * y) - (t * a));
} else if (a <= -1.05e-209) {
tmp = t_2;
} else if (a <= -1.26e-216) {
tmp = (j * ((c * a) - (i * y))) - (c * (b * z));
} else if (a <= -3.3e-239) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 4.6e+101) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (t * x)) t_2 = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c))) tmp = 0 if a <= -8.2e+126: tmp = t_1 elif a <= -1.6e+74: tmp = (i * (b * t)) - (j * ((i * y) - (c * a))) elif a <= -2.25e+18: tmp = x * ((z * y) - (t * a)) elif a <= -1.05e-209: tmp = t_2 elif a <= -1.26e-216: tmp = (j * ((c * a) - (i * y))) - (c * (b * z)) elif a <= -3.3e-239: tmp = b * ((t * i) - (z * c)) elif a <= 4.6e+101: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(t * x))) t_2 = Float64(Float64(i * Float64(Float64(b * t) - Float64(y * j))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) tmp = 0.0 if (a <= -8.2e+126) tmp = t_1; elseif (a <= -1.6e+74) tmp = Float64(Float64(i * Float64(b * t)) - Float64(j * Float64(Float64(i * y) - Float64(c * a)))); elseif (a <= -2.25e+18) tmp = Float64(x * Float64(Float64(z * y) - Float64(t * a))); elseif (a <= -1.05e-209) tmp = t_2; elseif (a <= -1.26e-216) tmp = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) - Float64(c * Float64(b * z))); elseif (a <= -3.3e-239) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 4.6e+101) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (t * x)); t_2 = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c))); tmp = 0.0; if (a <= -8.2e+126) tmp = t_1; elseif (a <= -1.6e+74) tmp = (i * (b * t)) - (j * ((i * y) - (c * a))); elseif (a <= -2.25e+18) tmp = x * ((z * y) - (t * a)); elseif (a <= -1.05e-209) tmp = t_2; elseif (a <= -1.26e-216) tmp = (j * ((c * a) - (i * y))) - (c * (b * z)); elseif (a <= -3.3e-239) tmp = b * ((t * i) - (z * c)); elseif (a <= 4.6e+101) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.2e+126], t$95$1, If[LessEqual[a, -1.6e+74], N[(N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.25e+18], N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.05e-209], t$95$2, If[LessEqual[a, -1.26e-216], N[(N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.3e-239], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.6e+101], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - t \cdot x\right)\\
t_2 := i \cdot \left(b \cdot t - y \cdot j\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;a \leq -8.2 \cdot 10^{+126}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{+74}:\\
\;\;\;\;i \cdot \left(b \cdot t\right) - j \cdot \left(i \cdot y - c \cdot a\right)\\
\mathbf{elif}\;a \leq -2.25 \cdot 10^{+18}:\\
\;\;\;\;x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-209}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.26 \cdot 10^{-216}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right) - c \cdot \left(b \cdot z\right)\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{-239}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+101}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -8.2000000000000001e126 or 4.6000000000000003e101 < a Initial program 55.3%
cancel-sign-sub55.3%
cancel-sign-sub-inv55.3%
*-commutative55.3%
remove-double-neg55.3%
*-commutative55.3%
Simplified55.3%
add-cube-cbrt55.2%
*-commutative55.2%
*-commutative55.2%
Applied egg-rr55.2%
Taylor expanded in a around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
Simplified75.8%
if -8.2000000000000001e126 < a < -1.59999999999999997e74Initial program 85.5%
cancel-sign-sub85.5%
cancel-sign-sub-inv85.5%
*-commutative85.5%
remove-double-neg85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in i around inf 92.8%
if -1.59999999999999997e74 < a < -2.25e18Initial program 61.4%
cancel-sign-sub61.4%
cancel-sign-sub-inv61.4%
*-commutative61.4%
remove-double-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in x around inf 54.5%
if -2.25e18 < a < -1.04999999999999998e-209 or -3.29999999999999995e-239 < a < 4.6000000000000003e101Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
Simplified77.7%
add-cube-cbrt77.1%
*-commutative77.1%
*-commutative77.1%
Applied egg-rr77.1%
Taylor expanded in z around 0 83.1%
Simplified89.5%
Taylor expanded in a around 0 78.5%
if -1.04999999999999998e-209 < a < -1.25999999999999999e-216Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in c around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*r*100.0%
mul-1-neg100.0%
Simplified100.0%
if -1.25999999999999999e-216 < a < -3.29999999999999995e-239Initial program 75.7%
cancel-sign-sub75.7%
cancel-sign-sub-inv75.7%
*-commutative75.7%
remove-double-neg75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in b around inf 76.9%
Final simplification77.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a))))
(t_2 (+ (* x (* z y)) (* b (- (* t i) (* z c))))))
(if (<= j -3.7e-104)
(* j (- (* c a) (* i y)))
(if (<= j 5e-232)
t_2
(if (<= j 1.7e-198)
t_1
(if (<= j 8.5e-108)
t_2
(if (<= j 5.4e-82)
t_1
(if (<= j 1.4e-25)
t_2
(if (or (<= j 4.5e+42) (not (<= j 5.9e+110)))
(- (* i (* b t)) (* j (- (* i y) (* c a))))
(- (* c (* a j)) (* c (* b z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = (x * (z * y)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -3.7e-104) {
tmp = j * ((c * a) - (i * y));
} else if (j <= 5e-232) {
tmp = t_2;
} else if (j <= 1.7e-198) {
tmp = t_1;
} else if (j <= 8.5e-108) {
tmp = t_2;
} else if (j <= 5.4e-82) {
tmp = t_1;
} else if (j <= 1.4e-25) {
tmp = t_2;
} else if ((j <= 4.5e+42) || !(j <= 5.9e+110)) {
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)));
} else {
tmp = (c * (a * j)) - (c * (b * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((z * y) - (t * a))
t_2 = (x * (z * y)) + (b * ((t * i) - (z * c)))
if (j <= (-3.7d-104)) then
tmp = j * ((c * a) - (i * y))
else if (j <= 5d-232) then
tmp = t_2
else if (j <= 1.7d-198) then
tmp = t_1
else if (j <= 8.5d-108) then
tmp = t_2
else if (j <= 5.4d-82) then
tmp = t_1
else if (j <= 1.4d-25) then
tmp = t_2
else if ((j <= 4.5d+42) .or. (.not. (j <= 5.9d+110))) then
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)))
else
tmp = (c * (a * j)) - (c * (b * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = (x * (z * y)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -3.7e-104) {
tmp = j * ((c * a) - (i * y));
} else if (j <= 5e-232) {
tmp = t_2;
} else if (j <= 1.7e-198) {
tmp = t_1;
} else if (j <= 8.5e-108) {
tmp = t_2;
} else if (j <= 5.4e-82) {
tmp = t_1;
} else if (j <= 1.4e-25) {
tmp = t_2;
} else if ((j <= 4.5e+42) || !(j <= 5.9e+110)) {
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)));
} else {
tmp = (c * (a * j)) - (c * (b * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (t * a)) t_2 = (x * (z * y)) + (b * ((t * i) - (z * c))) tmp = 0 if j <= -3.7e-104: tmp = j * ((c * a) - (i * y)) elif j <= 5e-232: tmp = t_2 elif j <= 1.7e-198: tmp = t_1 elif j <= 8.5e-108: tmp = t_2 elif j <= 5.4e-82: tmp = t_1 elif j <= 1.4e-25: tmp = t_2 elif (j <= 4.5e+42) or not (j <= 5.9e+110): tmp = (i * (b * t)) - (j * ((i * y) - (c * a))) else: tmp = (c * (a * j)) - (c * (b * z)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) t_2 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (j <= -3.7e-104) tmp = Float64(j * Float64(Float64(c * a) - Float64(i * y))); elseif (j <= 5e-232) tmp = t_2; elseif (j <= 1.7e-198) tmp = t_1; elseif (j <= 8.5e-108) tmp = t_2; elseif (j <= 5.4e-82) tmp = t_1; elseif (j <= 1.4e-25) tmp = t_2; elseif ((j <= 4.5e+42) || !(j <= 5.9e+110)) tmp = Float64(Float64(i * Float64(b * t)) - Float64(j * Float64(Float64(i * y) - Float64(c * a)))); else tmp = Float64(Float64(c * Float64(a * j)) - Float64(c * Float64(b * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (t * a)); t_2 = (x * (z * y)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (j <= -3.7e-104) tmp = j * ((c * a) - (i * y)); elseif (j <= 5e-232) tmp = t_2; elseif (j <= 1.7e-198) tmp = t_1; elseif (j <= 8.5e-108) tmp = t_2; elseif (j <= 5.4e-82) tmp = t_1; elseif (j <= 1.4e-25) tmp = t_2; elseif ((j <= 4.5e+42) || ~((j <= 5.9e+110))) tmp = (i * (b * t)) - (j * ((i * y) - (c * a))); else tmp = (c * (a * j)) - (c * (b * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.7e-104], N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-232], t$95$2, If[LessEqual[j, 1.7e-198], t$95$1, If[LessEqual[j, 8.5e-108], t$95$2, If[LessEqual[j, 5.4e-82], t$95$1, If[LessEqual[j, 1.4e-25], t$95$2, If[Or[LessEqual[j, 4.5e+42], N[Not[LessEqual[j, 5.9e+110]], $MachinePrecision]], N[(N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] - N[(c * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
t_2 := x \cdot \left(z \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -3.7 \cdot 10^{-104}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-198}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{-108}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 5.4 \cdot 10^{-82}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+42} \lor \neg \left(j \leq 5.9 \cdot 10^{+110}\right):\\
\;\;\;\;i \cdot \left(b \cdot t\right) - j \cdot \left(i \cdot y - c \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right) - c \cdot \left(b \cdot z\right)\\
\end{array}
\end{array}
if j < -3.6999999999999999e-104Initial program 63.9%
cancel-sign-sub63.9%
cancel-sign-sub-inv63.9%
*-commutative63.9%
remove-double-neg63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in j around inf 64.6%
if -3.6999999999999999e-104 < j < 4.9999999999999999e-232 or 1.6999999999999999e-198 < j < 8.49999999999999986e-108 or 5.4000000000000003e-82 < j < 1.39999999999999994e-25Initial program 80.6%
cancel-sign-sub80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
remove-double-neg80.6%
*-commutative80.6%
Simplified80.6%
add-cube-cbrt79.8%
*-commutative79.8%
*-commutative79.8%
Applied egg-rr79.8%
Taylor expanded in j around 0 81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in z around inf 74.1%
if 4.9999999999999999e-232 < j < 1.6999999999999999e-198 or 8.49999999999999986e-108 < j < 5.4000000000000003e-82Initial program 75.3%
cancel-sign-sub75.3%
cancel-sign-sub-inv75.3%
*-commutative75.3%
remove-double-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in x around inf 81.4%
if 1.39999999999999994e-25 < j < 4.50000000000000012e42 or 5.8999999999999997e110 < j Initial program 61.0%
cancel-sign-sub61.0%
cancel-sign-sub-inv61.0%
*-commutative61.0%
remove-double-neg61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in i around inf 75.3%
if 4.50000000000000012e42 < j < 5.8999999999999997e110Initial program 73.0%
cancel-sign-sub73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in c around inf 71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in j around 0 71.1%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a))))
(t_2 (- (* i (* b t)) (* j (- (* i y) (* c a)))))
(t_3 (* c (- (* a j) (* b z)))))
(if (<= i -5e-42)
t_2
(if (<= i -2.45e-158)
t_3
(if (<= i -6.5e-194)
t_1
(if (<= i -2.16e-240)
(* a (- (* c j) (* t x)))
(if (<= i 3.8e-196)
t_1
(if (<= i 1.4e-22)
t_3
(if (<= i 800000000.0)
(* t (- (* b i) (* x a)))
(if (<= i 1.35e+271) t_2 (* b (- (* t i) (* z c)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = (i * (b * t)) - (j * ((i * y) - (c * a)));
double t_3 = c * ((a * j) - (b * z));
double tmp;
if (i <= -5e-42) {
tmp = t_2;
} else if (i <= -2.45e-158) {
tmp = t_3;
} else if (i <= -6.5e-194) {
tmp = t_1;
} else if (i <= -2.16e-240) {
tmp = a * ((c * j) - (t * x));
} else if (i <= 3.8e-196) {
tmp = t_1;
} else if (i <= 1.4e-22) {
tmp = t_3;
} else if (i <= 800000000.0) {
tmp = t * ((b * i) - (x * a));
} else if (i <= 1.35e+271) {
tmp = t_2;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((z * y) - (t * a))
t_2 = (i * (b * t)) - (j * ((i * y) - (c * a)))
t_3 = c * ((a * j) - (b * z))
if (i <= (-5d-42)) then
tmp = t_2
else if (i <= (-2.45d-158)) then
tmp = t_3
else if (i <= (-6.5d-194)) then
tmp = t_1
else if (i <= (-2.16d-240)) then
tmp = a * ((c * j) - (t * x))
else if (i <= 3.8d-196) then
tmp = t_1
else if (i <= 1.4d-22) then
tmp = t_3
else if (i <= 800000000.0d0) then
tmp = t * ((b * i) - (x * a))
else if (i <= 1.35d+271) then
tmp = t_2
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = (i * (b * t)) - (j * ((i * y) - (c * a)));
double t_3 = c * ((a * j) - (b * z));
double tmp;
if (i <= -5e-42) {
tmp = t_2;
} else if (i <= -2.45e-158) {
tmp = t_3;
} else if (i <= -6.5e-194) {
tmp = t_1;
} else if (i <= -2.16e-240) {
tmp = a * ((c * j) - (t * x));
} else if (i <= 3.8e-196) {
tmp = t_1;
} else if (i <= 1.4e-22) {
tmp = t_3;
} else if (i <= 800000000.0) {
tmp = t * ((b * i) - (x * a));
} else if (i <= 1.35e+271) {
tmp = t_2;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (t * a)) t_2 = (i * (b * t)) - (j * ((i * y) - (c * a))) t_3 = c * ((a * j) - (b * z)) tmp = 0 if i <= -5e-42: tmp = t_2 elif i <= -2.45e-158: tmp = t_3 elif i <= -6.5e-194: tmp = t_1 elif i <= -2.16e-240: tmp = a * ((c * j) - (t * x)) elif i <= 3.8e-196: tmp = t_1 elif i <= 1.4e-22: tmp = t_3 elif i <= 800000000.0: tmp = t * ((b * i) - (x * a)) elif i <= 1.35e+271: tmp = t_2 else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) t_2 = Float64(Float64(i * Float64(b * t)) - Float64(j * Float64(Float64(i * y) - Float64(c * a)))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (i <= -5e-42) tmp = t_2; elseif (i <= -2.45e-158) tmp = t_3; elseif (i <= -6.5e-194) tmp = t_1; elseif (i <= -2.16e-240) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); elseif (i <= 3.8e-196) tmp = t_1; elseif (i <= 1.4e-22) tmp = t_3; elseif (i <= 800000000.0) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (i <= 1.35e+271) tmp = t_2; else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (t * a)); t_2 = (i * (b * t)) - (j * ((i * y) - (c * a))); t_3 = c * ((a * j) - (b * z)); tmp = 0.0; if (i <= -5e-42) tmp = t_2; elseif (i <= -2.45e-158) tmp = t_3; elseif (i <= -6.5e-194) tmp = t_1; elseif (i <= -2.16e-240) tmp = a * ((c * j) - (t * x)); elseif (i <= 3.8e-196) tmp = t_1; elseif (i <= 1.4e-22) tmp = t_3; elseif (i <= 800000000.0) tmp = t * ((b * i) - (x * a)); elseif (i <= 1.35e+271) tmp = t_2; else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5e-42], t$95$2, If[LessEqual[i, -2.45e-158], t$95$3, If[LessEqual[i, -6.5e-194], t$95$1, If[LessEqual[i, -2.16e-240], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e-196], t$95$1, If[LessEqual[i, 1.4e-22], t$95$3, If[LessEqual[i, 800000000.0], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.35e+271], t$95$2, N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
t_2 := i \cdot \left(b \cdot t\right) - j \cdot \left(i \cdot y - c \cdot a\right)\\
t_3 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;i \leq -5 \cdot 10^{-42}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -2.45 \cdot 10^{-158}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -6.5 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -2.16 \cdot 10^{-240}:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{-22}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq 800000000:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;i \leq 1.35 \cdot 10^{+271}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if i < -5.00000000000000003e-42 or 8e8 < i < 1.34999999999999995e271Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in i around inf 67.3%
if -5.00000000000000003e-42 < i < -2.44999999999999997e-158 or 3.8000000000000001e-196 < i < 1.39999999999999997e-22Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in c around inf 61.6%
*-commutative61.6%
Simplified61.6%
if -2.44999999999999997e-158 < i < -6.50000000000000019e-194 or -2.1599999999999999e-240 < i < 3.8000000000000001e-196Initial program 86.8%
cancel-sign-sub86.8%
cancel-sign-sub-inv86.8%
*-commutative86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in x around inf 74.4%
if -6.50000000000000019e-194 < i < -2.1599999999999999e-240Initial program 56.8%
cancel-sign-sub56.8%
cancel-sign-sub-inv56.8%
*-commutative56.8%
remove-double-neg56.8%
*-commutative56.8%
Simplified56.8%
add-cube-cbrt56.7%
*-commutative56.7%
*-commutative56.7%
Applied egg-rr56.7%
Taylor expanded in a around inf 89.4%
+-commutative89.4%
mul-1-neg89.4%
unsub-neg89.4%
Simplified89.4%
if 1.39999999999999997e-22 < i < 8e8Initial program 99.4%
cancel-sign-sub99.4%
cancel-sign-sub-inv99.4%
*-commutative99.4%
remove-double-neg99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in t around inf 99.7%
*-commutative99.7%
associate-*r*99.7%
neg-mul-199.7%
cancel-sign-sub99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
Simplified99.7%
if 1.34999999999999995e271 < i Initial program 56.0%
cancel-sign-sub56.0%
cancel-sign-sub-inv56.0%
*-commutative56.0%
remove-double-neg56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in b around inf 89.3%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (* z y)) (* b (- (* t i) (* z c)))))
(t_2 (* j (- (* c a) (* i y))))
(t_3 (* x (- (* z y) (* t a)))))
(if (<= j -2.05e+191)
(- t_2 (* c (* b z)))
(if (<= j -3.7e-104)
(- t_2 (* a (* t x)))
(if (<= j 1.8e-231)
t_1
(if (<= j 2.7e-199)
t_3
(if (<= j 6.6e-108)
t_1
(if (<= j 4.3e-82)
t_3
(if (<= j 2.7e-16)
t_1
(- (* i (* b t)) (* j (- (* i y) (* c a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * (z * y)) + (b * ((t * i) - (z * c)));
double t_2 = j * ((c * a) - (i * y));
double t_3 = x * ((z * y) - (t * a));
double tmp;
if (j <= -2.05e+191) {
tmp = t_2 - (c * (b * z));
} else if (j <= -3.7e-104) {
tmp = t_2 - (a * (t * x));
} else if (j <= 1.8e-231) {
tmp = t_1;
} else if (j <= 2.7e-199) {
tmp = t_3;
} else if (j <= 6.6e-108) {
tmp = t_1;
} else if (j <= 4.3e-82) {
tmp = t_3;
} else if (j <= 2.7e-16) {
tmp = t_1;
} else {
tmp = (i * (b * t)) - (j * ((i * y) - (c * 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (x * (z * y)) + (b * ((t * i) - (z * c)))
t_2 = j * ((c * a) - (i * y))
t_3 = x * ((z * y) - (t * a))
if (j <= (-2.05d+191)) then
tmp = t_2 - (c * (b * z))
else if (j <= (-3.7d-104)) then
tmp = t_2 - (a * (t * x))
else if (j <= 1.8d-231) then
tmp = t_1
else if (j <= 2.7d-199) then
tmp = t_3
else if (j <= 6.6d-108) then
tmp = t_1
else if (j <= 4.3d-82) then
tmp = t_3
else if (j <= 2.7d-16) then
tmp = t_1
else
tmp = (i * (b * t)) - (j * ((i * y) - (c * 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 = (x * (z * y)) + (b * ((t * i) - (z * c)));
double t_2 = j * ((c * a) - (i * y));
double t_3 = x * ((z * y) - (t * a));
double tmp;
if (j <= -2.05e+191) {
tmp = t_2 - (c * (b * z));
} else if (j <= -3.7e-104) {
tmp = t_2 - (a * (t * x));
} else if (j <= 1.8e-231) {
tmp = t_1;
} else if (j <= 2.7e-199) {
tmp = t_3;
} else if (j <= 6.6e-108) {
tmp = t_1;
} else if (j <= 4.3e-82) {
tmp = t_3;
} else if (j <= 2.7e-16) {
tmp = t_1;
} else {
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * (z * y)) + (b * ((t * i) - (z * c))) t_2 = j * ((c * a) - (i * y)) t_3 = x * ((z * y) - (t * a)) tmp = 0 if j <= -2.05e+191: tmp = t_2 - (c * (b * z)) elif j <= -3.7e-104: tmp = t_2 - (a * (t * x)) elif j <= 1.8e-231: tmp = t_1 elif j <= 2.7e-199: tmp = t_3 elif j <= 6.6e-108: tmp = t_1 elif j <= 4.3e-82: tmp = t_3 elif j <= 2.7e-16: tmp = t_1 else: tmp = (i * (b * t)) - (j * ((i * y) - (c * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(j * Float64(Float64(c * a) - Float64(i * y))) t_3 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) tmp = 0.0 if (j <= -2.05e+191) tmp = Float64(t_2 - Float64(c * Float64(b * z))); elseif (j <= -3.7e-104) tmp = Float64(t_2 - Float64(a * Float64(t * x))); elseif (j <= 1.8e-231) tmp = t_1; elseif (j <= 2.7e-199) tmp = t_3; elseif (j <= 6.6e-108) tmp = t_1; elseif (j <= 4.3e-82) tmp = t_3; elseif (j <= 2.7e-16) tmp = t_1; else tmp = Float64(Float64(i * Float64(b * t)) - Float64(j * Float64(Float64(i * y) - Float64(c * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * (z * y)) + (b * ((t * i) - (z * c))); t_2 = j * ((c * a) - (i * y)); t_3 = x * ((z * y) - (t * a)); tmp = 0.0; if (j <= -2.05e+191) tmp = t_2 - (c * (b * z)); elseif (j <= -3.7e-104) tmp = t_2 - (a * (t * x)); elseif (j <= 1.8e-231) tmp = t_1; elseif (j <= 2.7e-199) tmp = t_3; elseif (j <= 6.6e-108) tmp = t_1; elseif (j <= 4.3e-82) tmp = t_3; elseif (j <= 2.7e-16) tmp = t_1; else tmp = (i * (b * t)) - (j * ((i * y) - (c * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.05e+191], N[(t$95$2 - N[(c * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.7e-104], N[(t$95$2 - N[(a * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.8e-231], t$95$1, If[LessEqual[j, 2.7e-199], t$95$3, If[LessEqual[j, 6.6e-108], t$95$1, If[LessEqual[j, 4.3e-82], t$95$3, If[LessEqual[j, 2.7e-16], t$95$1, N[(N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(c \cdot a - i \cdot y\right)\\
t_3 := x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{if}\;j \leq -2.05 \cdot 10^{+191}:\\
\;\;\;\;t_2 - c \cdot \left(b \cdot z\right)\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-104}:\\
\;\;\;\;t_2 - a \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;j \leq 1.8 \cdot 10^{-231}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.7 \cdot 10^{-199}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 6.6 \cdot 10^{-108}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{-82}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 2.7 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right) - j \cdot \left(i \cdot y - c \cdot a\right)\\
\end{array}
\end{array}
if j < -2.04999999999999995e191Initial program 58.5%
cancel-sign-sub58.5%
cancel-sign-sub-inv58.5%
*-commutative58.5%
remove-double-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in c around inf 83.5%
associate-*r*83.5%
*-commutative83.5%
associate-*r*83.5%
mul-1-neg83.5%
Simplified83.5%
if -2.04999999999999995e191 < j < -3.6999999999999999e-104Initial program 66.4%
sub-neg66.4%
+-commutative66.4%
associate-+l+66.4%
distribute-rgt-neg-in66.4%
+-commutative66.4%
fma-def70.1%
sub-neg70.1%
+-commutative70.1%
distribute-neg-in70.1%
unsub-neg70.1%
remove-double-neg70.1%
*-commutative70.1%
Simplified72.0%
Taylor expanded in z around 0 64.7%
Taylor expanded in b around 0 70.4%
if -3.6999999999999999e-104 < j < 1.79999999999999987e-231 or 2.69999999999999989e-199 < j < 6.6000000000000004e-108 or 4.30000000000000019e-82 < j < 2.69999999999999999e-16Initial program 80.6%
cancel-sign-sub80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
remove-double-neg80.6%
*-commutative80.6%
Simplified80.6%
add-cube-cbrt79.8%
*-commutative79.8%
*-commutative79.8%
Applied egg-rr79.8%
Taylor expanded in j around 0 81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in z around inf 74.1%
if 1.79999999999999987e-231 < j < 2.69999999999999989e-199 or 6.6000000000000004e-108 < j < 4.30000000000000019e-82Initial program 75.3%
cancel-sign-sub75.3%
cancel-sign-sub-inv75.3%
*-commutative75.3%
remove-double-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in x around inf 81.4%
if 2.69999999999999999e-16 < j Initial program 63.2%
cancel-sign-sub63.2%
cancel-sign-sub-inv63.2%
*-commutative63.2%
remove-double-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in i around inf 68.7%
Final simplification73.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* y (- (* z x) (* i j)))))
(if (<= y -5.2e+109)
t_3
(if (<= y -3.3e-29)
(* i (- (* b t) (* y j)))
(if (<= y -2.45e-216)
t_1
(if (<= y 3.55e-264)
(* a (- (* c j) (* t x)))
(if (<= y 2.4e-232)
(* (* b c) (- z))
(if (<= y 7e-148)
t_2
(if (<= y 48.0)
t_1
(if (<= y 2.5e+31) t_2 (if (<= y 4.5e+63) 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 * ((a * j) - (b * z));
double t_2 = t * ((b * i) - (x * a));
double t_3 = y * ((z * x) - (i * j));
double tmp;
if (y <= -5.2e+109) {
tmp = t_3;
} else if (y <= -3.3e-29) {
tmp = i * ((b * t) - (y * j));
} else if (y <= -2.45e-216) {
tmp = t_1;
} else if (y <= 3.55e-264) {
tmp = a * ((c * j) - (t * x));
} else if (y <= 2.4e-232) {
tmp = (b * c) * -z;
} else if (y <= 7e-148) {
tmp = t_2;
} else if (y <= 48.0) {
tmp = t_1;
} else if (y <= 2.5e+31) {
tmp = t_2;
} else if (y <= 4.5e+63) {
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 * ((a * j) - (b * z))
t_2 = t * ((b * i) - (x * a))
t_3 = y * ((z * x) - (i * j))
if (y <= (-5.2d+109)) then
tmp = t_3
else if (y <= (-3.3d-29)) then
tmp = i * ((b * t) - (y * j))
else if (y <= (-2.45d-216)) then
tmp = t_1
else if (y <= 3.55d-264) then
tmp = a * ((c * j) - (t * x))
else if (y <= 2.4d-232) then
tmp = (b * c) * -z
else if (y <= 7d-148) then
tmp = t_2
else if (y <= 48.0d0) then
tmp = t_1
else if (y <= 2.5d+31) then
tmp = t_2
else if (y <= 4.5d+63) 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 * ((a * j) - (b * z));
double t_2 = t * ((b * i) - (x * a));
double t_3 = y * ((z * x) - (i * j));
double tmp;
if (y <= -5.2e+109) {
tmp = t_3;
} else if (y <= -3.3e-29) {
tmp = i * ((b * t) - (y * j));
} else if (y <= -2.45e-216) {
tmp = t_1;
} else if (y <= 3.55e-264) {
tmp = a * ((c * j) - (t * x));
} else if (y <= 2.4e-232) {
tmp = (b * c) * -z;
} else if (y <= 7e-148) {
tmp = t_2;
} else if (y <= 48.0) {
tmp = t_1;
} else if (y <= 2.5e+31) {
tmp = t_2;
} else if (y <= 4.5e+63) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) t_2 = t * ((b * i) - (x * a)) t_3 = y * ((z * x) - (i * j)) tmp = 0 if y <= -5.2e+109: tmp = t_3 elif y <= -3.3e-29: tmp = i * ((b * t) - (y * j)) elif y <= -2.45e-216: tmp = t_1 elif y <= 3.55e-264: tmp = a * ((c * j) - (t * x)) elif y <= 2.4e-232: tmp = (b * c) * -z elif y <= 7e-148: tmp = t_2 elif y <= 48.0: tmp = t_1 elif y <= 2.5e+31: tmp = t_2 elif y <= 4.5e+63: 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(a * j) - Float64(b * z))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(y * Float64(Float64(z * x) - Float64(i * j))) tmp = 0.0 if (y <= -5.2e+109) tmp = t_3; elseif (y <= -3.3e-29) tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); elseif (y <= -2.45e-216) tmp = t_1; elseif (y <= 3.55e-264) tmp = Float64(a * Float64(Float64(c * j) - Float64(t * x))); elseif (y <= 2.4e-232) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (y <= 7e-148) tmp = t_2; elseif (y <= 48.0) tmp = t_1; elseif (y <= 2.5e+31) tmp = t_2; elseif (y <= 4.5e+63) 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 * ((a * j) - (b * z)); t_2 = t * ((b * i) - (x * a)); t_3 = y * ((z * x) - (i * j)); tmp = 0.0; if (y <= -5.2e+109) tmp = t_3; elseif (y <= -3.3e-29) tmp = i * ((b * t) - (y * j)); elseif (y <= -2.45e-216) tmp = t_1; elseif (y <= 3.55e-264) tmp = a * ((c * j) - (t * x)); elseif (y <= 2.4e-232) tmp = (b * c) * -z; elseif (y <= 7e-148) tmp = t_2; elseif (y <= 48.0) tmp = t_1; elseif (y <= 2.5e+31) tmp = t_2; elseif (y <= 4.5e+63) 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[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.2e+109], t$95$3, If[LessEqual[y, -3.3e-29], N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.45e-216], t$95$1, If[LessEqual[y, 3.55e-264], N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e-232], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[y, 7e-148], t$95$2, If[LessEqual[y, 48.0], t$95$1, If[LessEqual[y, 2.5e+31], t$95$2, If[LessEqual[y, 4.5e+63], t$95$1, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := y \cdot \left(z \cdot x - i \cdot j\right)\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+109}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -3.3 \cdot 10^{-29}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{elif}\;y \leq -2.45 \cdot 10^{-216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.55 \cdot 10^{-264}:\\
\;\;\;\;a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-232}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-148}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 48:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -5.1999999999999997e109 or 4.50000000000000017e63 < y Initial program 61.5%
cancel-sign-sub61.5%
cancel-sign-sub-inv61.5%
*-commutative61.5%
remove-double-neg61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in y around inf 73.1%
*-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
Simplified73.1%
if -5.1999999999999997e109 < y < -3.30000000000000028e-29Initial program 72.8%
cancel-sign-sub72.8%
cancel-sign-sub-inv72.8%
*-commutative72.8%
remove-double-neg72.8%
*-commutative72.8%
Simplified72.8%
add-cube-cbrt72.5%
*-commutative72.5%
*-commutative72.5%
Applied egg-rr72.5%
Taylor expanded in i around inf 58.3%
fma-def58.3%
neg-mul-158.3%
fma-neg58.3%
Simplified58.3%
if -3.30000000000000028e-29 < y < -2.4500000000000001e-216 or 7.0000000000000001e-148 < y < 48 or 2.50000000000000013e31 < y < 4.50000000000000017e63Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in c around inf 70.1%
*-commutative70.1%
Simplified70.1%
if -2.4500000000000001e-216 < y < 3.55000000000000013e-264Initial program 63.1%
cancel-sign-sub63.1%
cancel-sign-sub-inv63.1%
*-commutative63.1%
remove-double-neg63.1%
*-commutative63.1%
Simplified63.1%
add-cube-cbrt62.8%
*-commutative62.8%
*-commutative62.8%
Applied egg-rr62.8%
Taylor expanded in a around inf 67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
Simplified67.6%
if 3.55000000000000013e-264 < y < 2.39999999999999999e-232Initial program 78.0%
cancel-sign-sub78.0%
cancel-sign-sub-inv78.0%
*-commutative78.0%
remove-double-neg78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in z around inf 78.6%
Taylor expanded in y around 0 78.6%
mul-1-neg78.6%
distribute-lft-neg-out78.6%
*-commutative78.6%
Simplified78.6%
if 2.39999999999999999e-232 < y < 7.0000000000000001e-148 or 48 < y < 2.50000000000000013e31Initial program 93.1%
cancel-sign-sub93.1%
cancel-sign-sub-inv93.1%
*-commutative93.1%
remove-double-neg93.1%
*-commutative93.1%
Simplified93.1%
Taylor expanded in t around inf 63.4%
*-commutative63.4%
associate-*r*63.4%
neg-mul-163.4%
cancel-sign-sub63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
Simplified63.4%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a))))
(t_2 (+ (* x (* z y)) (* b (- (* t i) (* z c))))))
(if (<= j -2.45e-48)
(- (* j (- (* c a) (* i y))) (* c (* b z)))
(if (<= j 5e-232)
t_2
(if (<= j 1.15e-198)
t_1
(if (<= j 4.6e-110)
t_2
(if (<= j 1.5e-81)
t_1
(if (<= j 1.5e-27)
t_2
(- (* i (* b t)) (* j (- (* i y) (* c a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double t_2 = (x * (z * y)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -2.45e-48) {
tmp = (j * ((c * a) - (i * y))) - (c * (b * z));
} else if (j <= 5e-232) {
tmp = t_2;
} else if (j <= 1.15e-198) {
tmp = t_1;
} else if (j <= 4.6e-110) {
tmp = t_2;
} else if (j <= 1.5e-81) {
tmp = t_1;
} else if (j <= 1.5e-27) {
tmp = t_2;
} else {
tmp = (i * (b * t)) - (j * ((i * y) - (c * 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) :: t_2
real(8) :: tmp
t_1 = x * ((z * y) - (t * a))
t_2 = (x * (z * y)) + (b * ((t * i) - (z * c)))
if (j <= (-2.45d-48)) then
tmp = (j * ((c * a) - (i * y))) - (c * (b * z))
else if (j <= 5d-232) then
tmp = t_2
else if (j <= 1.15d-198) then
tmp = t_1
else if (j <= 4.6d-110) then
tmp = t_2
else if (j <= 1.5d-81) then
tmp = t_1
else if (j <= 1.5d-27) then
tmp = t_2
else
tmp = (i * (b * t)) - (j * ((i * y) - (c * 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 = x * ((z * y) - (t * a));
double t_2 = (x * (z * y)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -2.45e-48) {
tmp = (j * ((c * a) - (i * y))) - (c * (b * z));
} else if (j <= 5e-232) {
tmp = t_2;
} else if (j <= 1.15e-198) {
tmp = t_1;
} else if (j <= 4.6e-110) {
tmp = t_2;
} else if (j <= 1.5e-81) {
tmp = t_1;
} else if (j <= 1.5e-27) {
tmp = t_2;
} else {
tmp = (i * (b * t)) - (j * ((i * y) - (c * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (t * a)) t_2 = (x * (z * y)) + (b * ((t * i) - (z * c))) tmp = 0 if j <= -2.45e-48: tmp = (j * ((c * a) - (i * y))) - (c * (b * z)) elif j <= 5e-232: tmp = t_2 elif j <= 1.15e-198: tmp = t_1 elif j <= 4.6e-110: tmp = t_2 elif j <= 1.5e-81: tmp = t_1 elif j <= 1.5e-27: tmp = t_2 else: tmp = (i * (b * t)) - (j * ((i * y) - (c * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) t_2 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (j <= -2.45e-48) tmp = Float64(Float64(j * Float64(Float64(c * a) - Float64(i * y))) - Float64(c * Float64(b * z))); elseif (j <= 5e-232) tmp = t_2; elseif (j <= 1.15e-198) tmp = t_1; elseif (j <= 4.6e-110) tmp = t_2; elseif (j <= 1.5e-81) tmp = t_1; elseif (j <= 1.5e-27) tmp = t_2; else tmp = Float64(Float64(i * Float64(b * t)) - Float64(j * Float64(Float64(i * y) - Float64(c * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (t * a)); t_2 = (x * (z * y)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (j <= -2.45e-48) tmp = (j * ((c * a) - (i * y))) - (c * (b * z)); elseif (j <= 5e-232) tmp = t_2; elseif (j <= 1.15e-198) tmp = t_1; elseif (j <= 4.6e-110) tmp = t_2; elseif (j <= 1.5e-81) tmp = t_1; elseif (j <= 1.5e-27) tmp = t_2; else tmp = (i * (b * t)) - (j * ((i * y) - (c * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.45e-48], N[(N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-232], t$95$2, If[LessEqual[j, 1.15e-198], t$95$1, If[LessEqual[j, 4.6e-110], t$95$2, If[LessEqual[j, 1.5e-81], t$95$1, If[LessEqual[j, 1.5e-27], t$95$2, N[(N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
t_2 := x \cdot \left(z \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -2.45 \cdot 10^{-48}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right) - c \cdot \left(b \cdot z\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-198}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{-110}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-27}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right) - j \cdot \left(i \cdot y - c \cdot a\right)\\
\end{array}
\end{array}
if j < -2.4500000000000001e-48Initial program 63.8%
cancel-sign-sub63.8%
cancel-sign-sub-inv63.8%
*-commutative63.8%
remove-double-neg63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in c around inf 73.0%
associate-*r*73.0%
*-commutative73.0%
associate-*r*73.0%
mul-1-neg73.0%
Simplified73.0%
if -2.4500000000000001e-48 < j < 4.9999999999999999e-232 or 1.15000000000000007e-198 < j < 4.6000000000000003e-110 or 1.4999999999999999e-81 < j < 1.5000000000000001e-27Initial program 78.9%
cancel-sign-sub78.9%
cancel-sign-sub-inv78.9%
*-commutative78.9%
remove-double-neg78.9%
*-commutative78.9%
Simplified78.9%
add-cube-cbrt78.2%
*-commutative78.2%
*-commutative78.2%
Applied egg-rr78.2%
Taylor expanded in j around 0 78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in z around inf 70.2%
if 4.9999999999999999e-232 < j < 1.15000000000000007e-198 or 4.6000000000000003e-110 < j < 1.4999999999999999e-81Initial program 75.3%
cancel-sign-sub75.3%
cancel-sign-sub-inv75.3%
*-commutative75.3%
remove-double-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in x around inf 81.4%
if 1.5000000000000001e-27 < j Initial program 63.2%
cancel-sign-sub63.2%
cancel-sign-sub-inv63.2%
*-commutative63.2%
remove-double-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in i around inf 68.7%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* t x)))))
(if (<= a -7.5e+105)
t_1
(if (<= a -9e-309)
(+ (* x (- (* z y) (* t a))) (* b (- (* t i) (* z c))))
(if (<= a 5.2e+98)
(+ (* i (- (* b t) (* y j))) (* z (- (* x y) (* b c))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double tmp;
if (a <= -7.5e+105) {
tmp = t_1;
} else if (a <= -9e-309) {
tmp = (x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)));
} else if (a <= 5.2e+98) {
tmp = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (t * x))
if (a <= (-7.5d+105)) then
tmp = t_1
else if (a <= (-9d-309)) then
tmp = (x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)))
else if (a <= 5.2d+98) then
tmp = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double tmp;
if (a <= -7.5e+105) {
tmp = t_1;
} else if (a <= -9e-309) {
tmp = (x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c)));
} else if (a <= 5.2e+98) {
tmp = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (t * x)) tmp = 0 if a <= -7.5e+105: tmp = t_1 elif a <= -9e-309: tmp = (x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c))) elif a <= 5.2e+98: tmp = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(t * x))) tmp = 0.0 if (a <= -7.5e+105) tmp = t_1; elseif (a <= -9e-309) tmp = Float64(Float64(x * Float64(Float64(z * y) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (a <= 5.2e+98) tmp = Float64(Float64(i * Float64(Float64(b * t) - Float64(y * j))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (t * x)); tmp = 0.0; if (a <= -7.5e+105) tmp = t_1; elseif (a <= -9e-309) tmp = (x * ((z * y) - (t * a))) + (b * ((t * i) - (z * c))); elseif (a <= 5.2e+98) tmp = (i * ((b * t) - (y * j))) + (z * ((x * y) - (b * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+105], t$95$1, If[LessEqual[a, -9e-309], N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e+98], N[(N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-309}:\\
\;\;\;\;x \cdot \left(z \cdot y - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+98}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -7.5000000000000002e105 or 5.1999999999999999e98 < a Initial program 57.3%
cancel-sign-sub57.3%
cancel-sign-sub-inv57.3%
*-commutative57.3%
remove-double-neg57.3%
*-commutative57.3%
Simplified57.3%
add-cube-cbrt57.2%
*-commutative57.2%
*-commutative57.2%
Applied egg-rr57.2%
Taylor expanded in a around inf 75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
Simplified75.2%
if -7.5000000000000002e105 < a < -9.0000000000000021e-309Initial program 81.3%
cancel-sign-sub81.3%
cancel-sign-sub-inv81.3%
*-commutative81.3%
remove-double-neg81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in j around 0 73.3%
if -9.0000000000000021e-309 < a < 5.1999999999999999e98Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
Simplified73.4%
add-cube-cbrt72.8%
*-commutative72.8%
*-commutative72.8%
Applied egg-rr72.8%
Taylor expanded in z around 0 82.7%
Simplified89.8%
Taylor expanded in a around 0 76.7%
Final simplification75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a)))) (t_2 (* c (- (* a j) (* b z)))))
(if (<= c -2e+24)
t_2
(if (<= c -1.45e-71)
(* j (- (* c a) (* i y)))
(if (<= c -3e-196)
(* t (- (* b i) (* x a)))
(if (<= c -6e-302)
t_1
(if (<= c 1.65e-286)
(* i (- (* b t) (* y j)))
(if (<= c 1.15e-203)
t_1
(if (<= c 6.5e-40) (* b (- (* t i) (* z c))) 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 * ((z * y) - (t * a));
double t_2 = c * ((a * j) - (b * z));
double tmp;
if (c <= -2e+24) {
tmp = t_2;
} else if (c <= -1.45e-71) {
tmp = j * ((c * a) - (i * y));
} else if (c <= -3e-196) {
tmp = t * ((b * i) - (x * a));
} else if (c <= -6e-302) {
tmp = t_1;
} else if (c <= 1.65e-286) {
tmp = i * ((b * t) - (y * j));
} else if (c <= 1.15e-203) {
tmp = t_1;
} else if (c <= 6.5e-40) {
tmp = b * ((t * i) - (z * c));
} 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 * ((z * y) - (t * a))
t_2 = c * ((a * j) - (b * z))
if (c <= (-2d+24)) then
tmp = t_2
else if (c <= (-1.45d-71)) then
tmp = j * ((c * a) - (i * y))
else if (c <= (-3d-196)) then
tmp = t * ((b * i) - (x * a))
else if (c <= (-6d-302)) then
tmp = t_1
else if (c <= 1.65d-286) then
tmp = i * ((b * t) - (y * j))
else if (c <= 1.15d-203) then
tmp = t_1
else if (c <= 6.5d-40) then
tmp = b * ((t * i) - (z * c))
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 * ((z * y) - (t * a));
double t_2 = c * ((a * j) - (b * z));
double tmp;
if (c <= -2e+24) {
tmp = t_2;
} else if (c <= -1.45e-71) {
tmp = j * ((c * a) - (i * y));
} else if (c <= -3e-196) {
tmp = t * ((b * i) - (x * a));
} else if (c <= -6e-302) {
tmp = t_1;
} else if (c <= 1.65e-286) {
tmp = i * ((b * t) - (y * j));
} else if (c <= 1.15e-203) {
tmp = t_1;
} else if (c <= 6.5e-40) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (t * a)) t_2 = c * ((a * j) - (b * z)) tmp = 0 if c <= -2e+24: tmp = t_2 elif c <= -1.45e-71: tmp = j * ((c * a) - (i * y)) elif c <= -3e-196: tmp = t * ((b * i) - (x * a)) elif c <= -6e-302: tmp = t_1 elif c <= 1.65e-286: tmp = i * ((b * t) - (y * j)) elif c <= 1.15e-203: tmp = t_1 elif c <= 6.5e-40: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -2e+24) tmp = t_2; elseif (c <= -1.45e-71) tmp = Float64(j * Float64(Float64(c * a) - Float64(i * y))); elseif (c <= -3e-196) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= -6e-302) tmp = t_1; elseif (c <= 1.65e-286) tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); elseif (c <= 1.15e-203) tmp = t_1; elseif (c <= 6.5e-40) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (t * a)); t_2 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -2e+24) tmp = t_2; elseif (c <= -1.45e-71) tmp = j * ((c * a) - (i * y)); elseif (c <= -3e-196) tmp = t * ((b * i) - (x * a)); elseif (c <= -6e-302) tmp = t_1; elseif (c <= 1.65e-286) tmp = i * ((b * t) - (y * j)); elseif (c <= 1.15e-203) tmp = t_1; elseif (c <= 6.5e-40) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2e+24], t$95$2, If[LessEqual[c, -1.45e-71], N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3e-196], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6e-302], t$95$1, If[LessEqual[c, 1.65e-286], N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.15e-203], t$95$1, If[LessEqual[c, 6.5e-40], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -2 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-71}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{elif}\;c \leq -3 \cdot 10^{-196}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq -6 \cdot 10^{-302}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.65 \cdot 10^{-286}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-203}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{-40}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2e24 or 6.4999999999999999e-40 < c Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in c around inf 65.3%
*-commutative65.3%
Simplified65.3%
if -2e24 < c < -1.4499999999999999e-71Initial program 47.4%
cancel-sign-sub47.4%
cancel-sign-sub-inv47.4%
*-commutative47.4%
remove-double-neg47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in j around inf 60.3%
if -1.4499999999999999e-71 < c < -3e-196Initial program 80.4%
cancel-sign-sub80.4%
cancel-sign-sub-inv80.4%
*-commutative80.4%
remove-double-neg80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in t around inf 64.3%
*-commutative64.3%
associate-*r*64.3%
neg-mul-164.3%
cancel-sign-sub64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
Simplified64.3%
if -3e-196 < c < -5.99999999999999978e-302 or 1.6499999999999999e-286 < c < 1.14999999999999996e-203Initial program 82.0%
cancel-sign-sub82.0%
cancel-sign-sub-inv82.0%
*-commutative82.0%
remove-double-neg82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in x around inf 89.2%
if -5.99999999999999978e-302 < c < 1.6499999999999999e-286Initial program 99.8%
cancel-sign-sub99.8%
cancel-sign-sub-inv99.8%
*-commutative99.8%
remove-double-neg99.8%
*-commutative99.8%
Simplified99.8%
add-cube-cbrt99.5%
*-commutative99.5%
*-commutative99.5%
Applied egg-rr99.5%
Taylor expanded in i around inf 75.1%
fma-def75.1%
neg-mul-175.1%
fma-neg75.1%
Simplified75.1%
if 1.14999999999999996e-203 < c < 6.4999999999999999e-40Initial program 85.4%
cancel-sign-sub85.4%
cancel-sign-sub-inv85.4%
*-commutative85.4%
remove-double-neg85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in b around inf 61.0%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* z x) (* i j)))) (t_2 (* c (- (* a j) (* b z)))))
(if (<= c -1.35e+26)
t_2
(if (<= c -1.45e-67)
(* j (- (* c a) (* i y)))
(if (<= c 2.3e-291)
(* t (- (* b i) (* x a)))
(if (<= c 4.5e-216)
t_1
(if (<= c 8.5e-128)
(* i (- (* b t) (* y j)))
(if (<= c 7.6e-45) 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 = c * ((a * j) - (b * z));
double tmp;
if (c <= -1.35e+26) {
tmp = t_2;
} else if (c <= -1.45e-67) {
tmp = j * ((c * a) - (i * y));
} else if (c <= 2.3e-291) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 4.5e-216) {
tmp = t_1;
} else if (c <= 8.5e-128) {
tmp = i * ((b * t) - (y * j));
} else if (c <= 7.6e-45) {
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 = c * ((a * j) - (b * z))
if (c <= (-1.35d+26)) then
tmp = t_2
else if (c <= (-1.45d-67)) then
tmp = j * ((c * a) - (i * y))
else if (c <= 2.3d-291) then
tmp = t * ((b * i) - (x * a))
else if (c <= 4.5d-216) then
tmp = t_1
else if (c <= 8.5d-128) then
tmp = i * ((b * t) - (y * j))
else if (c <= 7.6d-45) 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 = c * ((a * j) - (b * z));
double tmp;
if (c <= -1.35e+26) {
tmp = t_2;
} else if (c <= -1.45e-67) {
tmp = j * ((c * a) - (i * y));
} else if (c <= 2.3e-291) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 4.5e-216) {
tmp = t_1;
} else if (c <= 8.5e-128) {
tmp = i * ((b * t) - (y * j));
} else if (c <= 7.6e-45) {
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 = c * ((a * j) - (b * z)) tmp = 0 if c <= -1.35e+26: tmp = t_2 elif c <= -1.45e-67: tmp = j * ((c * a) - (i * y)) elif c <= 2.3e-291: tmp = t * ((b * i) - (x * a)) elif c <= 4.5e-216: tmp = t_1 elif c <= 8.5e-128: tmp = i * ((b * t) - (y * j)) elif c <= 7.6e-45: 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(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -1.35e+26) tmp = t_2; elseif (c <= -1.45e-67) tmp = Float64(j * Float64(Float64(c * a) - Float64(i * y))); elseif (c <= 2.3e-291) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 4.5e-216) tmp = t_1; elseif (c <= 8.5e-128) tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); elseif (c <= 7.6e-45) 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 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -1.35e+26) tmp = t_2; elseif (c <= -1.45e-67) tmp = j * ((c * a) - (i * y)); elseif (c <= 2.3e-291) tmp = t * ((b * i) - (x * a)); elseif (c <= 4.5e-216) tmp = t_1; elseif (c <= 8.5e-128) tmp = i * ((b * t) - (y * j)); elseif (c <= 7.6e-45) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e+26], t$95$2, If[LessEqual[c, -1.45e-67], N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e-291], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.5e-216], t$95$1, If[LessEqual[c, 8.5e-128], N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.6e-45], 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 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{+26}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-67}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-128}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.35e26 or 7.59999999999999994e-45 < c Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in c around inf 65.1%
*-commutative65.1%
Simplified65.1%
if -1.35e26 < c < -1.45000000000000002e-67Initial program 47.4%
cancel-sign-sub47.4%
cancel-sign-sub-inv47.4%
*-commutative47.4%
remove-double-neg47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in j around inf 60.3%
if -1.45000000000000002e-67 < c < 2.3000000000000001e-291Initial program 85.8%
cancel-sign-sub85.8%
cancel-sign-sub-inv85.8%
*-commutative85.8%
remove-double-neg85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in t around inf 59.6%
*-commutative59.6%
associate-*r*59.6%
neg-mul-159.6%
cancel-sign-sub59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
Simplified59.6%
if 2.3000000000000001e-291 < c < 4.4999999999999999e-216 or 8.4999999999999996e-128 < c < 7.59999999999999994e-45Initial program 73.8%
cancel-sign-sub73.8%
cancel-sign-sub-inv73.8%
*-commutative73.8%
remove-double-neg73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around inf 70.3%
*-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
if 4.4999999999999999e-216 < c < 8.4999999999999996e-128Initial program 95.2%
cancel-sign-sub95.2%
cancel-sign-sub-inv95.2%
*-commutative95.2%
remove-double-neg95.2%
*-commutative95.2%
Simplified95.2%
add-cube-cbrt94.4%
*-commutative94.4%
*-commutative94.4%
Applied egg-rr94.4%
Taylor expanded in i around inf 66.2%
fma-def66.2%
neg-mul-166.2%
fma-neg66.2%
Simplified66.2%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))))
(if (<= c -2.9e+22)
t_1
(if (<= c -1.25e-66)
(* j (- (* c a) (* i y)))
(if (<= c 3.05e-291)
(* t (- (* b i) (* x a)))
(if (<= c 6e-216)
(* y (- (* z x) (* i j)))
(if (<= c 1.5e-159)
(* i (- (* b t) (* y j)))
(if (<= c 9.5e-40) (* b (- (* t i) (* z c))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -2.9e+22) {
tmp = t_1;
} else if (c <= -1.25e-66) {
tmp = j * ((c * a) - (i * y));
} else if (c <= 3.05e-291) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 6e-216) {
tmp = y * ((z * x) - (i * j));
} else if (c <= 1.5e-159) {
tmp = i * ((b * t) - (y * j));
} else if (c <= 9.5e-40) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (b * z))
if (c <= (-2.9d+22)) then
tmp = t_1
else if (c <= (-1.25d-66)) then
tmp = j * ((c * a) - (i * y))
else if (c <= 3.05d-291) then
tmp = t * ((b * i) - (x * a))
else if (c <= 6d-216) then
tmp = y * ((z * x) - (i * j))
else if (c <= 1.5d-159) then
tmp = i * ((b * t) - (y * j))
else if (c <= 9.5d-40) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -2.9e+22) {
tmp = t_1;
} else if (c <= -1.25e-66) {
tmp = j * ((c * a) - (i * y));
} else if (c <= 3.05e-291) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 6e-216) {
tmp = y * ((z * x) - (i * j));
} else if (c <= 1.5e-159) {
tmp = i * ((b * t) - (y * j));
} else if (c <= 9.5e-40) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) tmp = 0 if c <= -2.9e+22: tmp = t_1 elif c <= -1.25e-66: tmp = j * ((c * a) - (i * y)) elif c <= 3.05e-291: tmp = t * ((b * i) - (x * a)) elif c <= 6e-216: tmp = y * ((z * x) - (i * j)) elif c <= 1.5e-159: tmp = i * ((b * t) - (y * j)) elif c <= 9.5e-40: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -2.9e+22) tmp = t_1; elseif (c <= -1.25e-66) tmp = Float64(j * Float64(Float64(c * a) - Float64(i * y))); elseif (c <= 3.05e-291) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 6e-216) tmp = Float64(y * Float64(Float64(z * x) - Float64(i * j))); elseif (c <= 1.5e-159) tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); elseif (c <= 9.5e-40) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -2.9e+22) tmp = t_1; elseif (c <= -1.25e-66) tmp = j * ((c * a) - (i * y)); elseif (c <= 3.05e-291) tmp = t * ((b * i) - (x * a)); elseif (c <= 6e-216) tmp = y * ((z * x) - (i * j)); elseif (c <= 1.5e-159) tmp = i * ((b * t) - (y * j)); elseif (c <= 9.5e-40) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.9e+22], t$95$1, If[LessEqual[c, -1.25e-66], N[(j * N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.05e-291], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6e-216], N[(y * N[(N[(z * x), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.5e-159], N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-40], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -2.9 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-66}:\\
\;\;\;\;j \cdot \left(c \cdot a - i \cdot y\right)\\
\mathbf{elif}\;c \leq 3.05 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-216}:\\
\;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-159}:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-40}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -2.9e22 or 9.5000000000000006e-40 < c Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in c around inf 65.3%
*-commutative65.3%
Simplified65.3%
if -2.9e22 < c < -1.2499999999999999e-66Initial program 47.4%
cancel-sign-sub47.4%
cancel-sign-sub-inv47.4%
*-commutative47.4%
remove-double-neg47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in j around inf 60.3%
if -1.2499999999999999e-66 < c < 3.05e-291Initial program 85.8%
cancel-sign-sub85.8%
cancel-sign-sub-inv85.8%
*-commutative85.8%
remove-double-neg85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in t around inf 59.6%
*-commutative59.6%
associate-*r*59.6%
neg-mul-159.6%
cancel-sign-sub59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
Simplified59.6%
if 3.05e-291 < c < 6.00000000000000025e-216Initial program 70.0%
cancel-sign-sub70.0%
cancel-sign-sub-inv70.0%
*-commutative70.0%
remove-double-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in y around inf 90.0%
*-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
Simplified90.0%
if 6.00000000000000025e-216 < c < 1.50000000000000005e-159Initial program 93.8%
cancel-sign-sub93.8%
cancel-sign-sub-inv93.8%
*-commutative93.8%
remove-double-neg93.8%
*-commutative93.8%
Simplified93.8%
add-cube-cbrt93.1%
*-commutative93.1%
*-commutative93.1%
Applied egg-rr93.1%
Taylor expanded in i around inf 73.7%
fma-def73.7%
neg-mul-173.7%
fma-neg73.7%
Simplified73.7%
if 1.50000000000000005e-159 < c < 9.5000000000000006e-40Initial program 81.9%
cancel-sign-sub81.9%
cancel-sign-sub-inv81.9%
*-commutative81.9%
remove-double-neg81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in b around inf 60.2%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= y -5.2e+60)
(* (- i) (* y j))
(if (<= y -9.2e-220)
(* c (* b (- z)))
(if (<= y 1.65e-280)
t_1
(if (<= y 3.9e-227)
(* (* b c) (- z))
(if (<= y 1.65e-193)
(* (* x a) (- t))
(if (<= y 2.7e-113)
(* i (* b t))
(if (<= y 1.72e+72) t_1 (* y (* z x)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (a * j);
double tmp;
if (y <= -5.2e+60) {
tmp = -i * (y * j);
} else if (y <= -9.2e-220) {
tmp = c * (b * -z);
} else if (y <= 1.65e-280) {
tmp = t_1;
} else if (y <= 3.9e-227) {
tmp = (b * c) * -z;
} else if (y <= 1.65e-193) {
tmp = (x * a) * -t;
} else if (y <= 2.7e-113) {
tmp = i * (b * t);
} else if (y <= 1.72e+72) {
tmp = t_1;
} else {
tmp = y * (z * x);
}
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 * (a * j)
if (y <= (-5.2d+60)) then
tmp = -i * (y * j)
else if (y <= (-9.2d-220)) then
tmp = c * (b * -z)
else if (y <= 1.65d-280) then
tmp = t_1
else if (y <= 3.9d-227) then
tmp = (b * c) * -z
else if (y <= 1.65d-193) then
tmp = (x * a) * -t
else if (y <= 2.7d-113) then
tmp = i * (b * t)
else if (y <= 1.72d+72) then
tmp = t_1
else
tmp = y * (z * x)
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 * (a * j);
double tmp;
if (y <= -5.2e+60) {
tmp = -i * (y * j);
} else if (y <= -9.2e-220) {
tmp = c * (b * -z);
} else if (y <= 1.65e-280) {
tmp = t_1;
} else if (y <= 3.9e-227) {
tmp = (b * c) * -z;
} else if (y <= 1.65e-193) {
tmp = (x * a) * -t;
} else if (y <= 2.7e-113) {
tmp = i * (b * t);
} else if (y <= 1.72e+72) {
tmp = t_1;
} else {
tmp = y * (z * x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if y <= -5.2e+60: tmp = -i * (y * j) elif y <= -9.2e-220: tmp = c * (b * -z) elif y <= 1.65e-280: tmp = t_1 elif y <= 3.9e-227: tmp = (b * c) * -z elif y <= 1.65e-193: tmp = (x * a) * -t elif y <= 2.7e-113: tmp = i * (b * t) elif y <= 1.72e+72: tmp = t_1 else: tmp = y * (z * x) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (y <= -5.2e+60) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (y <= -9.2e-220) tmp = Float64(c * Float64(b * Float64(-z))); elseif (y <= 1.65e-280) tmp = t_1; elseif (y <= 3.9e-227) tmp = Float64(Float64(b * c) * Float64(-z)); elseif (y <= 1.65e-193) tmp = Float64(Float64(x * a) * Float64(-t)); elseif (y <= 2.7e-113) tmp = Float64(i * Float64(b * t)); elseif (y <= 1.72e+72) tmp = t_1; else tmp = Float64(y * Float64(z * x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (a * j); tmp = 0.0; if (y <= -5.2e+60) tmp = -i * (y * j); elseif (y <= -9.2e-220) tmp = c * (b * -z); elseif (y <= 1.65e-280) tmp = t_1; elseif (y <= 3.9e-227) tmp = (b * c) * -z; elseif (y <= 1.65e-193) tmp = (x * a) * -t; elseif (y <= 2.7e-113) tmp = i * (b * t); elseif (y <= 1.72e+72) tmp = t_1; else tmp = y * (z * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.2e+60], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.2e-220], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e-280], t$95$1, If[LessEqual[y, 3.9e-227], N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[y, 1.65e-193], N[(N[(x * a), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[y, 2.7e-113], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.72e+72], t$95$1, N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+60}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{-220}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-227}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-193}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(-t\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-113}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y \leq 1.72 \cdot 10^{+72}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\end{array}
\end{array}
if y < -5.20000000000000016e60Initial program 63.7%
sub-neg63.7%
+-commutative63.7%
associate-+l+63.7%
distribute-rgt-neg-in63.7%
+-commutative63.7%
fma-def65.5%
sub-neg65.5%
+-commutative65.5%
distribute-neg-in65.5%
unsub-neg65.5%
remove-double-neg65.5%
*-commutative65.5%
Simplified69.2%
Taylor expanded in i around inf 49.4%
Taylor expanded in t around 0 46.1%
mul-1-neg46.1%
distribute-rgt-neg-out46.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if -5.20000000000000016e60 < y < -9.19999999999999922e-220Initial program 82.4%
cancel-sign-sub82.4%
cancel-sign-sub-inv82.4%
*-commutative82.4%
remove-double-neg82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in c around inf 53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in j around 0 39.0%
mul-1-neg39.0%
distribute-rgt-neg-in39.0%
distribute-rgt-neg-in39.0%
Simplified39.0%
if -9.19999999999999922e-220 < y < 1.64999999999999995e-280 or 2.69999999999999996e-113 < y < 1.71999999999999993e72Initial program 64.7%
cancel-sign-sub64.7%
cancel-sign-sub-inv64.7%
*-commutative64.7%
remove-double-neg64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in c around inf 53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in j around inf 39.4%
if 1.64999999999999995e-280 < y < 3.8999999999999999e-227Initial program 80.4%
cancel-sign-sub80.4%
cancel-sign-sub-inv80.4%
*-commutative80.4%
remove-double-neg80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in z around inf 67.3%
Taylor expanded in y around 0 67.3%
mul-1-neg67.3%
distribute-lft-neg-out67.3%
*-commutative67.3%
Simplified67.3%
if 3.8999999999999999e-227 < y < 1.6499999999999999e-193Initial program 87.1%
cancel-sign-sub87.1%
cancel-sign-sub-inv87.1%
*-commutative87.1%
remove-double-neg87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in t around inf 76.1%
*-commutative76.1%
associate-*r*76.1%
neg-mul-176.1%
cancel-sign-sub76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
Simplified76.1%
Taylor expanded in i around 0 76.0%
mul-1-neg76.0%
distribute-lft-neg-out76.0%
*-commutative76.0%
Simplified76.0%
if 1.6499999999999999e-193 < y < 2.69999999999999996e-113Initial program 87.9%
cancel-sign-sub87.9%
cancel-sign-sub-inv87.9%
*-commutative87.9%
remove-double-neg87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in b around inf 63.6%
Taylor expanded in i around inf 45.3%
if 1.71999999999999993e72 < y Initial program 63.8%
cancel-sign-sub63.8%
cancel-sign-sub-inv63.8%
*-commutative63.8%
remove-double-neg63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in z around inf 47.3%
Taylor expanded in y around inf 46.7%
Final simplification45.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* t x)))))
(if (<= z -6.5e+170)
(* y (* z x))
(if (<= z -4.8e+84)
(* c (* b (- z)))
(if (<= z 2.7e-166)
t_1
(if (<= z 3.5e-121)
(* i (* b t))
(if (<= z 7e+187) t_1 (* (* b c) (- z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double tmp;
if (z <= -6.5e+170) {
tmp = y * (z * x);
} else if (z <= -4.8e+84) {
tmp = c * (b * -z);
} else if (z <= 2.7e-166) {
tmp = t_1;
} else if (z <= 3.5e-121) {
tmp = i * (b * t);
} else if (z <= 7e+187) {
tmp = t_1;
} else {
tmp = (b * c) * -z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (t * x))
if (z <= (-6.5d+170)) then
tmp = y * (z * x)
else if (z <= (-4.8d+84)) then
tmp = c * (b * -z)
else if (z <= 2.7d-166) then
tmp = t_1
else if (z <= 3.5d-121) then
tmp = i * (b * t)
else if (z <= 7d+187) then
tmp = t_1
else
tmp = (b * c) * -z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (t * x));
double tmp;
if (z <= -6.5e+170) {
tmp = y * (z * x);
} else if (z <= -4.8e+84) {
tmp = c * (b * -z);
} else if (z <= 2.7e-166) {
tmp = t_1;
} else if (z <= 3.5e-121) {
tmp = i * (b * t);
} else if (z <= 7e+187) {
tmp = t_1;
} else {
tmp = (b * c) * -z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (t * x)) tmp = 0 if z <= -6.5e+170: tmp = y * (z * x) elif z <= -4.8e+84: tmp = c * (b * -z) elif z <= 2.7e-166: tmp = t_1 elif z <= 3.5e-121: tmp = i * (b * t) elif z <= 7e+187: tmp = t_1 else: tmp = (b * c) * -z return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(t * x))) tmp = 0.0 if (z <= -6.5e+170) tmp = Float64(y * Float64(z * x)); elseif (z <= -4.8e+84) tmp = Float64(c * Float64(b * Float64(-z))); elseif (z <= 2.7e-166) tmp = t_1; elseif (z <= 3.5e-121) tmp = Float64(i * Float64(b * t)); elseif (z <= 7e+187) tmp = t_1; else tmp = Float64(Float64(b * c) * Float64(-z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (t * x)); tmp = 0.0; if (z <= -6.5e+170) tmp = y * (z * x); elseif (z <= -4.8e+84) tmp = c * (b * -z); elseif (z <= 2.7e-166) tmp = t_1; elseif (z <= 3.5e-121) tmp = i * (b * t); elseif (z <= 7e+187) tmp = t_1; else tmp = (b * c) * -z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.8e+84], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e-166], t$95$1, If[LessEqual[z, 3.5e-121], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+187], t$95$1, N[(N[(b * c), $MachinePrecision] * (-z)), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - t \cdot x\right)\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{+84}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-121}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+187}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(-z\right)\\
\end{array}
\end{array}
if z < -6.5e170Initial program 54.9%
cancel-sign-sub54.9%
cancel-sign-sub-inv54.9%
*-commutative54.9%
remove-double-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in z around inf 72.9%
Taylor expanded in y around inf 50.8%
if -6.5e170 < z < -4.7999999999999999e84Initial program 79.9%
cancel-sign-sub79.9%
cancel-sign-sub-inv79.9%
*-commutative79.9%
remove-double-neg79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in c around inf 64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in j around 0 59.4%
mul-1-neg59.4%
distribute-rgt-neg-in59.4%
distribute-rgt-neg-in59.4%
Simplified59.4%
if -4.7999999999999999e84 < z < 2.70000000000000006e-166 or 3.49999999999999993e-121 < z < 6.9999999999999995e187Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
Simplified73.9%
add-cube-cbrt73.4%
*-commutative73.4%
*-commutative73.4%
Applied egg-rr73.4%
Taylor expanded in a around inf 46.2%
+-commutative46.2%
mul-1-neg46.2%
unsub-neg46.2%
Simplified46.2%
if 2.70000000000000006e-166 < z < 3.49999999999999993e-121Initial program 78.2%
cancel-sign-sub78.2%
cancel-sign-sub-inv78.2%
*-commutative78.2%
remove-double-neg78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in b around inf 62.6%
Taylor expanded in i around inf 55.3%
if 6.9999999999999995e187 < z Initial program 64.3%
cancel-sign-sub64.3%
cancel-sign-sub-inv64.3%
*-commutative64.3%
remove-double-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in z around inf 83.2%
Taylor expanded in y around 0 69.3%
mul-1-neg69.3%
distribute-lft-neg-out69.3%
*-commutative69.3%
Simplified69.3%
Final simplification50.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* x a) (- t))) (t_2 (* c (- (* a j) (* b z)))))
(if (<= c -2.2e-64)
t_2
(if (<= c -7.8e-299)
t_1
(if (<= c 4.8e-216)
(* y (* z x))
(if (<= c 1.3e-205) t_1 (if (<= c 1.15e-112) (* i (* b t)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * a) * -t;
double t_2 = c * ((a * j) - (b * z));
double tmp;
if (c <= -2.2e-64) {
tmp = t_2;
} else if (c <= -7.8e-299) {
tmp = t_1;
} else if (c <= 4.8e-216) {
tmp = y * (z * x);
} else if (c <= 1.3e-205) {
tmp = t_1;
} else if (c <= 1.15e-112) {
tmp = i * (b * t);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * a) * -t
t_2 = c * ((a * j) - (b * z))
if (c <= (-2.2d-64)) then
tmp = t_2
else if (c <= (-7.8d-299)) then
tmp = t_1
else if (c <= 4.8d-216) then
tmp = y * (z * x)
else if (c <= 1.3d-205) then
tmp = t_1
else if (c <= 1.15d-112) then
tmp = i * (b * t)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * a) * -t;
double t_2 = c * ((a * j) - (b * z));
double tmp;
if (c <= -2.2e-64) {
tmp = t_2;
} else if (c <= -7.8e-299) {
tmp = t_1;
} else if (c <= 4.8e-216) {
tmp = y * (z * x);
} else if (c <= 1.3e-205) {
tmp = t_1;
} else if (c <= 1.15e-112) {
tmp = i * (b * t);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * a) * -t t_2 = c * ((a * j) - (b * z)) tmp = 0 if c <= -2.2e-64: tmp = t_2 elif c <= -7.8e-299: tmp = t_1 elif c <= 4.8e-216: tmp = y * (z * x) elif c <= 1.3e-205: tmp = t_1 elif c <= 1.15e-112: tmp = i * (b * t) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * a) * Float64(-t)) t_2 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -2.2e-64) tmp = t_2; elseif (c <= -7.8e-299) tmp = t_1; elseif (c <= 4.8e-216) tmp = Float64(y * Float64(z * x)); elseif (c <= 1.3e-205) tmp = t_1; elseif (c <= 1.15e-112) tmp = Float64(i * Float64(b * t)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * a) * -t; t_2 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -2.2e-64) tmp = t_2; elseif (c <= -7.8e-299) tmp = t_1; elseif (c <= 4.8e-216) tmp = y * (z * x); elseif (c <= 1.3e-205) tmp = t_1; elseif (c <= 1.15e-112) tmp = i * (b * t); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * a), $MachinePrecision] * (-t)), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.2e-64], t$95$2, If[LessEqual[c, -7.8e-299], t$95$1, If[LessEqual[c, 4.8e-216], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.3e-205], t$95$1, If[LessEqual[c, 1.15e-112], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot a\right) \cdot \left(-t\right)\\
t_2 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -2.2 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -7.8 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{-216}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-205}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-112}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.2e-64 or 1.14999999999999995e-112 < c Initial program 63.2%
cancel-sign-sub63.2%
cancel-sign-sub-inv63.2%
*-commutative63.2%
remove-double-neg63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in c around inf 57.9%
*-commutative57.9%
Simplified57.9%
if -2.2e-64 < c < -7.7999999999999997e-299 or 4.80000000000000007e-216 < c < 1.2999999999999999e-205Initial program 83.8%
cancel-sign-sub83.8%
cancel-sign-sub-inv83.8%
*-commutative83.8%
remove-double-neg83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in t around inf 63.1%
*-commutative63.1%
associate-*r*63.1%
neg-mul-163.1%
cancel-sign-sub63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
Simplified63.1%
Taylor expanded in i around 0 50.6%
mul-1-neg50.6%
distribute-lft-neg-out50.6%
*-commutative50.6%
Simplified50.6%
if -7.7999999999999997e-299 < c < 4.80000000000000007e-216Initial program 83.3%
cancel-sign-sub83.3%
cancel-sign-sub-inv83.3%
*-commutative83.3%
remove-double-neg83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in z around inf 40.4%
Taylor expanded in y around inf 45.3%
if 1.2999999999999999e-205 < c < 1.14999999999999995e-112Initial program 95.2%
cancel-sign-sub95.2%
cancel-sign-sub-inv95.2%
*-commutative95.2%
remove-double-neg95.2%
*-commutative95.2%
Simplified95.2%
Taylor expanded in b around inf 65.9%
Taylor expanded in i around inf 56.0%
Final simplification55.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* z x))) (t_2 (* c (* a j))))
(if (<= j -3.8e-104)
t_2
(if (<= j -7.5e-228)
t_1
(if (<= j 1.45e-245)
(* i (* b t))
(if (<= j 8e-198)
(* a (* t (- x)))
(if (<= j 9e-115) (* t (* b i)) (if (<= j 0.78) 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);
double t_2 = c * (a * j);
double tmp;
if (j <= -3.8e-104) {
tmp = t_2;
} else if (j <= -7.5e-228) {
tmp = t_1;
} else if (j <= 1.45e-245) {
tmp = i * (b * t);
} else if (j <= 8e-198) {
tmp = a * (t * -x);
} else if (j <= 9e-115) {
tmp = t * (b * i);
} else if (j <= 0.78) {
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)
t_2 = c * (a * j)
if (j <= (-3.8d-104)) then
tmp = t_2
else if (j <= (-7.5d-228)) then
tmp = t_1
else if (j <= 1.45d-245) then
tmp = i * (b * t)
else if (j <= 8d-198) then
tmp = a * (t * -x)
else if (j <= 9d-115) then
tmp = t * (b * i)
else if (j <= 0.78d0) 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);
double t_2 = c * (a * j);
double tmp;
if (j <= -3.8e-104) {
tmp = t_2;
} else if (j <= -7.5e-228) {
tmp = t_1;
} else if (j <= 1.45e-245) {
tmp = i * (b * t);
} else if (j <= 8e-198) {
tmp = a * (t * -x);
} else if (j <= 9e-115) {
tmp = t * (b * i);
} else if (j <= 0.78) {
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) t_2 = c * (a * j) tmp = 0 if j <= -3.8e-104: tmp = t_2 elif j <= -7.5e-228: tmp = t_1 elif j <= 1.45e-245: tmp = i * (b * t) elif j <= 8e-198: tmp = a * (t * -x) elif j <= 9e-115: tmp = t * (b * i) elif j <= 0.78: 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(z * x)) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -3.8e-104) tmp = t_2; elseif (j <= -7.5e-228) tmp = t_1; elseif (j <= 1.45e-245) tmp = Float64(i * Float64(b * t)); elseif (j <= 8e-198) tmp = Float64(a * Float64(t * Float64(-x))); elseif (j <= 9e-115) tmp = Float64(t * Float64(b * i)); elseif (j <= 0.78) 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); t_2 = c * (a * j); tmp = 0.0; if (j <= -3.8e-104) tmp = t_2; elseif (j <= -7.5e-228) tmp = t_1; elseif (j <= 1.45e-245) tmp = i * (b * t); elseif (j <= 8e-198) tmp = a * (t * -x); elseif (j <= 9e-115) tmp = t * (b * i); elseif (j <= 0.78) 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[(z * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e-104], t$95$2, If[LessEqual[j, -7.5e-228], t$95$1, If[LessEqual[j, 1.45e-245], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-198], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e-115], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 0.78], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot x\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{-104}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{-245}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-198}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-115}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 0.78:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -3.8000000000000001e-104 or 0.78000000000000003 < j Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in c around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in j around inf 38.4%
if -3.8000000000000001e-104 < j < -7.4999999999999999e-228 or 9.00000000000000046e-115 < j < 0.78000000000000003Initial program 72.2%
cancel-sign-sub72.2%
cancel-sign-sub-inv72.2%
*-commutative72.2%
remove-double-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in z around inf 54.3%
Taylor expanded in y around inf 40.5%
if -7.4999999999999999e-228 < j < 1.45e-245Initial program 89.3%
cancel-sign-sub89.3%
cancel-sign-sub-inv89.3%
*-commutative89.3%
remove-double-neg89.3%
*-commutative89.3%
Simplified89.3%
Taylor expanded in b around inf 63.6%
Taylor expanded in i around inf 37.1%
if 1.45e-245 < j < 7.9999999999999993e-198Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
Simplified77.5%
add-cube-cbrt77.0%
*-commutative77.0%
*-commutative77.0%
Applied egg-rr77.0%
Taylor expanded in a around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
Simplified40.2%
Taylor expanded in c around 0 40.0%
neg-mul-140.0%
distribute-lft-neg-in40.0%
*-commutative40.0%
Simplified40.0%
if 7.9999999999999993e-198 < j < 9.00000000000000046e-115Initial program 73.8%
cancel-sign-sub73.8%
cancel-sign-sub-inv73.8%
*-commutative73.8%
remove-double-neg73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in t around inf 56.8%
*-commutative56.8%
associate-*r*56.8%
neg-mul-156.8%
cancel-sign-sub56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
Simplified56.8%
Taylor expanded in i around inf 39.8%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* b t) (* y j)))) (t_2 (* c (- (* a j) (* b z)))))
(if (<= c -7.5e+22)
t_2
(if (<= c -1.96e-163)
t_1
(if (<= c -4e-298)
(* (* x a) (- t))
(if (<= c 1000000000000.0) 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 = i * ((b * t) - (y * j));
double t_2 = c * ((a * j) - (b * z));
double tmp;
if (c <= -7.5e+22) {
tmp = t_2;
} else if (c <= -1.96e-163) {
tmp = t_1;
} else if (c <= -4e-298) {
tmp = (x * a) * -t;
} else if (c <= 1000000000000.0) {
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 = i * ((b * t) - (y * j))
t_2 = c * ((a * j) - (b * z))
if (c <= (-7.5d+22)) then
tmp = t_2
else if (c <= (-1.96d-163)) then
tmp = t_1
else if (c <= (-4d-298)) then
tmp = (x * a) * -t
else if (c <= 1000000000000.0d0) 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 = i * ((b * t) - (y * j));
double t_2 = c * ((a * j) - (b * z));
double tmp;
if (c <= -7.5e+22) {
tmp = t_2;
} else if (c <= -1.96e-163) {
tmp = t_1;
} else if (c <= -4e-298) {
tmp = (x * a) * -t;
} else if (c <= 1000000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((b * t) - (y * j)) t_2 = c * ((a * j) - (b * z)) tmp = 0 if c <= -7.5e+22: tmp = t_2 elif c <= -1.96e-163: tmp = t_1 elif c <= -4e-298: tmp = (x * a) * -t elif c <= 1000000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(b * t) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -7.5e+22) tmp = t_2; elseif (c <= -1.96e-163) tmp = t_1; elseif (c <= -4e-298) tmp = Float64(Float64(x * a) * Float64(-t)); elseif (c <= 1000000000000.0) 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 = i * ((b * t) - (y * j)); t_2 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -7.5e+22) tmp = t_2; elseif (c <= -1.96e-163) tmp = t_1; elseif (c <= -4e-298) tmp = (x * a) * -t; elseif (c <= 1000000000000.0) 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[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.5e+22], t$95$2, If[LessEqual[c, -1.96e-163], t$95$1, If[LessEqual[c, -4e-298], N[(N[(x * a), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[c, 1000000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(b \cdot t - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{+22}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.96 \cdot 10^{-163}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4 \cdot 10^{-298}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(-t\right)\\
\mathbf{elif}\;c \leq 1000000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -7.5000000000000002e22 or 1e12 < c Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in c around inf 67.0%
*-commutative67.0%
Simplified67.0%
if -7.5000000000000002e22 < c < -1.9599999999999999e-163 or -3.99999999999999965e-298 < c < 1e12Initial program 74.2%
cancel-sign-sub74.2%
cancel-sign-sub-inv74.2%
*-commutative74.2%
remove-double-neg74.2%
*-commutative74.2%
Simplified74.2%
add-cube-cbrt73.7%
*-commutative73.7%
*-commutative73.7%
Applied egg-rr73.7%
Taylor expanded in i around inf 51.9%
fma-def52.8%
neg-mul-152.8%
fma-neg51.9%
Simplified51.9%
if -1.9599999999999999e-163 < c < -3.99999999999999965e-298Initial program 90.3%
cancel-sign-sub90.3%
cancel-sign-sub-inv90.3%
*-commutative90.3%
remove-double-neg90.3%
*-commutative90.3%
Simplified90.3%
Taylor expanded in t around inf 62.6%
*-commutative62.6%
associate-*r*62.6%
neg-mul-162.6%
cancel-sign-sub62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
Simplified62.6%
Taylor expanded in i around 0 57.9%
mul-1-neg57.9%
distribute-lft-neg-out57.9%
*-commutative57.9%
Simplified57.9%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.5e+105)
(* c (* b (- z)))
(if (<= b -4.4e-147)
(* a (* c j))
(if (<= b -2.1e-268)
(* z (* x y))
(if (<= b 1.15e-278)
(* c (* a j))
(if (<= b 3.8e-27) (* y (* z x)) (* i (* b t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.5e+105) {
tmp = c * (b * -z);
} else if (b <= -4.4e-147) {
tmp = a * (c * j);
} else if (b <= -2.1e-268) {
tmp = z * (x * y);
} else if (b <= 1.15e-278) {
tmp = c * (a * j);
} else if (b <= 3.8e-27) {
tmp = y * (z * x);
} else {
tmp = i * (b * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-4.5d+105)) then
tmp = c * (b * -z)
else if (b <= (-4.4d-147)) then
tmp = a * (c * j)
else if (b <= (-2.1d-268)) then
tmp = z * (x * y)
else if (b <= 1.15d-278) then
tmp = c * (a * j)
else if (b <= 3.8d-27) then
tmp = y * (z * x)
else
tmp = i * (b * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.5e+105) {
tmp = c * (b * -z);
} else if (b <= -4.4e-147) {
tmp = a * (c * j);
} else if (b <= -2.1e-268) {
tmp = z * (x * y);
} else if (b <= 1.15e-278) {
tmp = c * (a * j);
} else if (b <= 3.8e-27) {
tmp = y * (z * x);
} else {
tmp = i * (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.5e+105: tmp = c * (b * -z) elif b <= -4.4e-147: tmp = a * (c * j) elif b <= -2.1e-268: tmp = z * (x * y) elif b <= 1.15e-278: tmp = c * (a * j) elif b <= 3.8e-27: tmp = y * (z * x) else: tmp = i * (b * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.5e+105) tmp = Float64(c * Float64(b * Float64(-z))); elseif (b <= -4.4e-147) tmp = Float64(a * Float64(c * j)); elseif (b <= -2.1e-268) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.15e-278) tmp = Float64(c * Float64(a * j)); elseif (b <= 3.8e-27) tmp = Float64(y * Float64(z * x)); else tmp = Float64(i * Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.5e+105) tmp = c * (b * -z); elseif (b <= -4.4e-147) tmp = a * (c * j); elseif (b <= -2.1e-268) tmp = z * (x * y); elseif (b <= 1.15e-278) tmp = c * (a * j); elseif (b <= 3.8e-27) tmp = y * (z * x); else tmp = i * (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.5e+105], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.4e-147], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-268], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e-278], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-27], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.5 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-147}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-268}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-278}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < -4.5000000000000001e105Initial program 73.3%
cancel-sign-sub73.3%
cancel-sign-sub-inv73.3%
*-commutative73.3%
remove-double-neg73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in c around inf 56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in j around 0 48.6%
mul-1-neg48.6%
distribute-rgt-neg-in48.6%
distribute-rgt-neg-in48.6%
Simplified48.6%
if -4.5000000000000001e105 < b < -4.4000000000000002e-147Initial program 74.5%
cancel-sign-sub74.5%
cancel-sign-sub-inv74.5%
*-commutative74.5%
remove-double-neg74.5%
*-commutative74.5%
Simplified74.5%
add-cube-cbrt74.0%
*-commutative74.0%
*-commutative74.0%
Applied egg-rr74.0%
Taylor expanded in a around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in c around inf 37.4%
*-commutative37.4%
Simplified37.4%
if -4.4000000000000002e-147 < b < -2.09999999999999998e-268Initial program 75.0%
cancel-sign-sub75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
remove-double-neg75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in z around inf 40.7%
Taylor expanded in y around inf 40.6%
if -2.09999999999999998e-268 < b < 1.15000000000000001e-278Initial program 66.1%
cancel-sign-sub66.1%
cancel-sign-sub-inv66.1%
*-commutative66.1%
remove-double-neg66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in c around inf 53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in j around inf 50.4%
if 1.15000000000000001e-278 < b < 3.8e-27Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in z around inf 47.1%
Taylor expanded in y around inf 31.2%
if 3.8e-27 < b Initial program 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in b around inf 54.6%
Taylor expanded in i around inf 39.5%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))))
(if (<= c -9.5e-64)
t_1
(if (<= c -6.8e-298)
(* t (- (* b i) (* x a)))
(if (<= c 340000000000.0) (* i (- (* b t) (* y j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -9.5e-64) {
tmp = t_1;
} else if (c <= -6.8e-298) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 340000000000.0) {
tmp = i * ((b * t) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (b * z))
if (c <= (-9.5d-64)) then
tmp = t_1
else if (c <= (-6.8d-298)) then
tmp = t * ((b * i) - (x * a))
else if (c <= 340000000000.0d0) then
tmp = i * ((b * t) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -9.5e-64) {
tmp = t_1;
} else if (c <= -6.8e-298) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 340000000000.0) {
tmp = i * ((b * t) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) tmp = 0 if c <= -9.5e-64: tmp = t_1 elif c <= -6.8e-298: tmp = t * ((b * i) - (x * a)) elif c <= 340000000000.0: tmp = i * ((b * t) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -9.5e-64) tmp = t_1; elseif (c <= -6.8e-298) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 340000000000.0) tmp = Float64(i * Float64(Float64(b * t) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -9.5e-64) tmp = t_1; elseif (c <= -6.8e-298) tmp = t * ((b * i) - (x * a)); elseif (c <= 340000000000.0) tmp = i * ((b * t) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.5e-64], t$95$1, If[LessEqual[c, -6.8e-298], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 340000000000.0], N[(i * N[(N[(b * t), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -9.5 \cdot 10^{-64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -6.8 \cdot 10^{-298}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 340000000000:\\
\;\;\;\;i \cdot \left(b \cdot t - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -9.50000000000000043e-64 or 3.4e11 < c Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
Simplified63.0%
if -9.50000000000000043e-64 < c < -6.8e-298Initial program 83.0%
cancel-sign-sub83.0%
cancel-sign-sub-inv83.0%
*-commutative83.0%
remove-double-neg83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in t around inf 61.4%
*-commutative61.4%
associate-*r*61.4%
neg-mul-161.4%
cancel-sign-sub61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
if -6.8e-298 < c < 3.4e11Initial program 80.6%
cancel-sign-sub80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
remove-double-neg80.6%
*-commutative80.6%
Simplified80.6%
add-cube-cbrt80.1%
*-commutative80.1%
*-commutative80.1%
Applied egg-rr80.1%
Taylor expanded in i around inf 53.3%
fma-def53.3%
neg-mul-153.3%
fma-neg53.3%
Simplified53.3%
Final simplification60.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* z x))) (t_2 (* c (* a j))))
(if (<= j -3.8e-104)
t_2
(if (<= j -3.9e-230)
t_1
(if (<= j 9e-115) (* t (* b i)) (if (<= j 70000.0) 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);
double t_2 = c * (a * j);
double tmp;
if (j <= -3.8e-104) {
tmp = t_2;
} else if (j <= -3.9e-230) {
tmp = t_1;
} else if (j <= 9e-115) {
tmp = t * (b * i);
} else if (j <= 70000.0) {
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)
t_2 = c * (a * j)
if (j <= (-3.8d-104)) then
tmp = t_2
else if (j <= (-3.9d-230)) then
tmp = t_1
else if (j <= 9d-115) then
tmp = t * (b * i)
else if (j <= 70000.0d0) 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);
double t_2 = c * (a * j);
double tmp;
if (j <= -3.8e-104) {
tmp = t_2;
} else if (j <= -3.9e-230) {
tmp = t_1;
} else if (j <= 9e-115) {
tmp = t * (b * i);
} else if (j <= 70000.0) {
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) t_2 = c * (a * j) tmp = 0 if j <= -3.8e-104: tmp = t_2 elif j <= -3.9e-230: tmp = t_1 elif j <= 9e-115: tmp = t * (b * i) elif j <= 70000.0: 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(z * x)) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -3.8e-104) tmp = t_2; elseif (j <= -3.9e-230) tmp = t_1; elseif (j <= 9e-115) tmp = Float64(t * Float64(b * i)); elseif (j <= 70000.0) 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); t_2 = c * (a * j); tmp = 0.0; if (j <= -3.8e-104) tmp = t_2; elseif (j <= -3.9e-230) tmp = t_1; elseif (j <= 9e-115) tmp = t * (b * i); elseif (j <= 70000.0) 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[(z * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e-104], t$95$2, If[LessEqual[j, -3.9e-230], t$95$1, If[LessEqual[j, 9e-115], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 70000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(z \cdot x\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{-104}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.9 \cdot 10^{-230}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-115}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 70000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -3.8000000000000001e-104 or 7e4 < j Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in c around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in j around inf 38.4%
if -3.8000000000000001e-104 < j < -3.9000000000000002e-230 or 9.00000000000000046e-115 < j < 7e4Initial program 72.2%
cancel-sign-sub72.2%
cancel-sign-sub-inv72.2%
*-commutative72.2%
remove-double-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in z around inf 54.3%
Taylor expanded in y around inf 40.5%
if -3.9000000000000002e-230 < j < 9.00000000000000046e-115Initial program 82.9%
cancel-sign-sub82.9%
cancel-sign-sub-inv82.9%
*-commutative82.9%
remove-double-neg82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in t around inf 48.7%
*-commutative48.7%
associate-*r*48.7%
neg-mul-148.7%
cancel-sign-sub48.7%
+-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
Simplified48.7%
Taylor expanded in i around inf 30.0%
Final simplification36.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.9e-119) (not (<= j 0.62))) (* c (* a j)) (* i (* b t))))
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.9e-119) || !(j <= 0.62)) {
tmp = c * (a * j);
} else {
tmp = i * (b * t);
}
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.9d-119)) .or. (.not. (j <= 0.62d0))) then
tmp = c * (a * j)
else
tmp = i * (b * t)
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.9e-119) || !(j <= 0.62)) {
tmp = c * (a * j);
} else {
tmp = i * (b * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.9e-119) or not (j <= 0.62): tmp = c * (a * j) else: tmp = i * (b * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.9e-119) || !(j <= 0.62)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(b * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.9e-119) || ~((j <= 0.62))) tmp = c * (a * j); else tmp = i * (b * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.9e-119], N[Not[LessEqual[j, 0.62]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.9 \cdot 10^{-119} \lor \neg \left(j \leq 0.62\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if j < -1.89999999999999987e-119 or 0.619999999999999996 < j Initial program 64.1%
cancel-sign-sub64.1%
cancel-sign-sub-inv64.1%
*-commutative64.1%
remove-double-neg64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in c around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in j around inf 37.8%
if -1.89999999999999987e-119 < j < 0.619999999999999996Initial program 79.4%
cancel-sign-sub79.4%
cancel-sign-sub-inv79.4%
*-commutative79.4%
remove-double-neg79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in b around inf 49.6%
Taylor expanded in i around inf 25.0%
Final simplification32.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 70.6%
cancel-sign-sub70.6%
cancel-sign-sub-inv70.6%
*-commutative70.6%
remove-double-neg70.6%
*-commutative70.6%
Simplified70.6%
add-cube-cbrt70.1%
*-commutative70.1%
*-commutative70.1%
Applied egg-rr70.1%
Taylor expanded in a around inf 39.8%
+-commutative39.8%
mul-1-neg39.8%
unsub-neg39.8%
Simplified39.8%
Taylor expanded in c around inf 24.7%
*-commutative24.7%
Simplified24.7%
Final simplification24.7%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (a * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 70.6%
cancel-sign-sub70.6%
cancel-sign-sub-inv70.6%
*-commutative70.6%
remove-double-neg70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in c around inf 43.5%
*-commutative43.5%
Simplified43.5%
Taylor expanded in j around inf 25.2%
Final simplification25.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023200
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))