
(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
(if (<=
(-
(* j (- (* a c) (* y i)))
(+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))
INFINITY)
(fma
b
(- (* t i) (* z c))
(fma x (- (* y z) (* t a)) (* j (fma y (- i) (* a c)))))
(* i (- (* t b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (((j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(b, ((t * i) - (z * c)), fma(x, ((y * z) - (t * a)), (j * fma(y, -i, (a * c)))));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(j * fma(y, Float64(-i), Float64(a * c))))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(j * N[(y * (-i) + N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \cdot \left(a \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.5%
sub-neg89.5%
+-commutative89.5%
associate-+l+89.5%
distribute-rgt-neg-in89.5%
+-commutative89.5%
fma-def89.5%
sub-neg89.5%
+-commutative89.5%
distribute-neg-in89.5%
unsub-neg89.5%
remove-double-neg89.5%
*-commutative89.5%
Simplified89.5%
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%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def9.3%
sub-neg9.3%
+-commutative9.3%
distribute-neg-in9.3%
unsub-neg9.3%
remove-double-neg9.3%
*-commutative9.3%
Simplified14.8%
Taylor expanded in i around inf 47.4%
Final simplification80.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<=
(- t_1 (+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))
INFINITY)
(fma b (- (* t i) (* z c)) (fma x (- (* y z) (* t a)) t_1))
(* i (- (* t b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if ((t_1 - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = fma(b, ((t * i) - (z * c)), fma(x, ((y * z) - (t * a)), t_1));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (Float64(t_1 - Float64(Float64(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), fma(x, Float64(Float64(y * z) - Float64(t * a)), t_1)); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 - \left(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.5%
sub-neg89.5%
+-commutative89.5%
associate-+l+89.5%
distribute-rgt-neg-in89.5%
+-commutative89.5%
fma-def89.5%
sub-neg89.5%
+-commutative89.5%
distribute-neg-in89.5%
unsub-neg89.5%
remove-double-neg89.5%
*-commutative89.5%
Simplified89.5%
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%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def9.3%
sub-neg9.3%
+-commutative9.3%
distribute-neg-in9.3%
unsub-neg9.3%
remove-double-neg9.3%
*-commutative9.3%
Simplified14.8%
Taylor expanded in i around inf 47.4%
Final simplification80.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* y i)))
(+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* i (- (* t b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.5%
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%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def9.3%
sub-neg9.3%
+-commutative9.3%
distribute-neg-in9.3%
unsub-neg9.3%
remove-double-neg9.3%
*-commutative9.3%
Simplified14.8%
Taylor expanded in i around inf 47.4%
Final simplification80.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* b (- (* t i) (* z c)))))
(t_2 (* y (- (* x z) (* i j)))))
(if (<= b -9.2e-10)
t_1
(if (<= b -1.85e-137)
t_2
(if (<= b -2.3e-185)
(* a (- (* c j) (* x t)))
(if (<= b 2.2e-137)
(* j (- (* a c) (* y i)))
(if (<= b 8.2e-107)
t_2
(if (<= b 1.5e-85)
(- (* j (* a c)) (* x (* t a)))
(if (<= b 6.2e+65) (* x (- (* y z) (* t a))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (b <= -9.2e-10) {
tmp = t_1;
} else if (b <= -1.85e-137) {
tmp = t_2;
} else if (b <= -2.3e-185) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 2.2e-137) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 8.2e-107) {
tmp = t_2;
} else if (b <= 1.5e-85) {
tmp = (j * (a * c)) - (x * (t * a));
} else if (b <= 6.2e+65) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)))
t_2 = y * ((x * z) - (i * j))
if (b <= (-9.2d-10)) then
tmp = t_1
else if (b <= (-1.85d-137)) then
tmp = t_2
else if (b <= (-2.3d-185)) then
tmp = a * ((c * j) - (x * t))
else if (b <= 2.2d-137) then
tmp = j * ((a * c) - (y * i))
else if (b <= 8.2d-107) then
tmp = t_2
else if (b <= 1.5d-85) then
tmp = (j * (a * c)) - (x * (t * a))
else if (b <= 6.2d+65) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (b <= -9.2e-10) {
tmp = t_1;
} else if (b <= -1.85e-137) {
tmp = t_2;
} else if (b <= -2.3e-185) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 2.2e-137) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 8.2e-107) {
tmp = t_2;
} else if (b <= 1.5e-85) {
tmp = (j * (a * c)) - (x * (t * a));
} else if (b <= 6.2e+65) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) + (b * ((t * i) - (z * c))) t_2 = y * ((x * z) - (i * j)) tmp = 0 if b <= -9.2e-10: tmp = t_1 elif b <= -1.85e-137: tmp = t_2 elif b <= -2.3e-185: tmp = a * ((c * j) - (x * t)) elif b <= 2.2e-137: tmp = j * ((a * c) - (y * i)) elif b <= 8.2e-107: tmp = t_2 elif b <= 1.5e-85: tmp = (j * (a * c)) - (x * (t * a)) elif b <= 6.2e+65: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (b <= -9.2e-10) tmp = t_1; elseif (b <= -1.85e-137) tmp = t_2; elseif (b <= -2.3e-185) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 2.2e-137) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 8.2e-107) tmp = t_2; elseif (b <= 1.5e-85) tmp = Float64(Float64(j * Float64(a * c)) - Float64(x * Float64(t * a))); elseif (b <= 6.2e+65) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * (x * z)) + (b * ((t * i) - (z * c))); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (b <= -9.2e-10) tmp = t_1; elseif (b <= -1.85e-137) tmp = t_2; elseif (b <= -2.3e-185) tmp = a * ((c * j) - (x * t)); elseif (b <= 2.2e-137) tmp = j * ((a * c) - (y * i)); elseif (b <= 8.2e-107) tmp = t_2; elseif (b <= 1.5e-85) tmp = (j * (a * c)) - (x * (t * a)); elseif (b <= 6.2e+65) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.2e-10], t$95$1, If[LessEqual[b, -1.85e-137], t$95$2, If[LessEqual[b, -2.3e-185], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e-137], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-107], t$95$2, If[LessEqual[b, 1.5e-85], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+65], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;b \leq -9.2 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{-137}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-185}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-137}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-85}:\\
\;\;\;\;j \cdot \left(a \cdot c\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+65}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -9.20000000000000028e-10 or 6.19999999999999981e65 < b Initial program 74.5%
cancel-sign-sub74.5%
cancel-sign-sub-inv74.5%
*-commutative74.5%
remove-double-neg74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in j around 0 73.7%
Taylor expanded in y around inf 77.5%
if -9.20000000000000028e-10 < b < -1.85e-137 or 2.2000000000000001e-137 < b < 8.1999999999999998e-107Initial program 53.4%
cancel-sign-sub53.4%
cancel-sign-sub-inv53.4%
*-commutative53.4%
remove-double-neg53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in y around -inf 63.7%
mul-1-neg63.7%
*-commutative63.7%
distribute-rgt-neg-in63.7%
mul-1-neg63.7%
unsub-neg63.7%
Simplified63.7%
if -1.85e-137 < b < -2.3000000000000001e-185Initial program 51.9%
cancel-sign-sub51.9%
cancel-sign-sub-inv51.9%
*-commutative51.9%
remove-double-neg51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in a around -inf 84.7%
mul-1-neg84.7%
*-commutative84.7%
distribute-rgt-neg-in84.7%
mul-1-neg84.7%
unsub-neg84.7%
Simplified84.7%
if -2.3000000000000001e-185 < b < 2.2000000000000001e-137Initial 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 j around inf 62.8%
if 8.1999999999999998e-107 < b < 1.50000000000000011e-85Initial 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 a around -inf 84.2%
mul-1-neg84.2%
*-commutative84.2%
distribute-rgt-neg-in84.2%
mul-1-neg84.2%
unsub-neg84.2%
Simplified84.2%
Taylor expanded in t around 0 83.9%
+-commutative83.9%
*-commutative83.9%
mul-1-neg83.9%
unsub-neg83.9%
*-commutative83.9%
associate-*l*83.9%
*-commutative83.9%
*-commutative83.9%
associate-*l*99.5%
Simplified99.5%
if 1.50000000000000011e-85 < b < 6.19999999999999981e65Initial program 76.7%
cancel-sign-sub76.7%
cancel-sign-sub-inv76.7%
*-commutative76.7%
remove-double-neg76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in j around 0 79.7%
Taylor expanded in x around inf 65.8%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z b)))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* x (- (* y z) (* t a))))
(t_4 (* y (* x z)))
(t_5 (* c (* a j))))
(if (<= b -0.8)
(+ t_4 t_2)
(if (<= b 5.2e-173)
(+ (* j (- (* a c) (* y i))) t_3)
(if (<= b 1.75e-108)
(- (- (+ t_4 t_5) (* i (* y j))) t_1)
(if (<= b 1.05e-73) (- (+ t_3 t_5) t_1) (+ t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * b);
double t_2 = b * ((t * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double t_4 = y * (x * z);
double t_5 = c * (a * j);
double tmp;
if (b <= -0.8) {
tmp = t_4 + t_2;
} else if (b <= 5.2e-173) {
tmp = (j * ((a * c) - (y * i))) + t_3;
} else if (b <= 1.75e-108) {
tmp = ((t_4 + t_5) - (i * (y * j))) - t_1;
} else if (b <= 1.05e-73) {
tmp = (t_3 + t_5) - t_1;
} else {
tmp = t_3 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = c * (z * b)
t_2 = b * ((t * i) - (z * c))
t_3 = x * ((y * z) - (t * a))
t_4 = y * (x * z)
t_5 = c * (a * j)
if (b <= (-0.8d0)) then
tmp = t_4 + t_2
else if (b <= 5.2d-173) then
tmp = (j * ((a * c) - (y * i))) + t_3
else if (b <= 1.75d-108) then
tmp = ((t_4 + t_5) - (i * (y * j))) - t_1
else if (b <= 1.05d-73) then
tmp = (t_3 + t_5) - t_1
else
tmp = t_3 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * b);
double t_2 = b * ((t * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double t_4 = y * (x * z);
double t_5 = c * (a * j);
double tmp;
if (b <= -0.8) {
tmp = t_4 + t_2;
} else if (b <= 5.2e-173) {
tmp = (j * ((a * c) - (y * i))) + t_3;
} else if (b <= 1.75e-108) {
tmp = ((t_4 + t_5) - (i * (y * j))) - t_1;
} else if (b <= 1.05e-73) {
tmp = (t_3 + t_5) - t_1;
} else {
tmp = t_3 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * b) t_2 = b * ((t * i) - (z * c)) t_3 = x * ((y * z) - (t * a)) t_4 = y * (x * z) t_5 = c * (a * j) tmp = 0 if b <= -0.8: tmp = t_4 + t_2 elif b <= 5.2e-173: tmp = (j * ((a * c) - (y * i))) + t_3 elif b <= 1.75e-108: tmp = ((t_4 + t_5) - (i * (y * j))) - t_1 elif b <= 1.05e-73: tmp = (t_3 + t_5) - t_1 else: tmp = t_3 + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * b)) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_4 = Float64(y * Float64(x * z)) t_5 = Float64(c * Float64(a * j)) tmp = 0.0 if (b <= -0.8) tmp = Float64(t_4 + t_2); elseif (b <= 5.2e-173) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_3); elseif (b <= 1.75e-108) tmp = Float64(Float64(Float64(t_4 + t_5) - Float64(i * Float64(y * j))) - t_1); elseif (b <= 1.05e-73) tmp = Float64(Float64(t_3 + t_5) - t_1); else tmp = Float64(t_3 + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * b); t_2 = b * ((t * i) - (z * c)); t_3 = x * ((y * z) - (t * a)); t_4 = y * (x * z); t_5 = c * (a * j); tmp = 0.0; if (b <= -0.8) tmp = t_4 + t_2; elseif (b <= 5.2e-173) tmp = (j * ((a * c) - (y * i))) + t_3; elseif (b <= 1.75e-108) tmp = ((t_4 + t_5) - (i * (y * j))) - t_1; elseif (b <= 1.05e-73) tmp = (t_3 + t_5) - t_1; else tmp = t_3 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.8], N[(t$95$4 + t$95$2), $MachinePrecision], If[LessEqual[b, 5.2e-173], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[b, 1.75e-108], N[(N[(N[(t$95$4 + t$95$5), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, 1.05e-73], N[(N[(t$95$3 + t$95$5), $MachinePrecision] - t$95$1), $MachinePrecision], N[(t$95$3 + t$95$2), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot b\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_4 := y \cdot \left(x \cdot z\right)\\
t_5 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;b \leq -0.8:\\
\;\;\;\;t_4 + t_2\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-173}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t_3\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-108}:\\
\;\;\;\;\left(\left(t_4 + t_5\right) - i \cdot \left(y \cdot j\right)\right) - t_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-73}:\\
\;\;\;\;\left(t_3 + t_5\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;t_3 + t_2\\
\end{array}
\end{array}
if b < -0.80000000000000004Initial program 61.7%
cancel-sign-sub61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
remove-double-neg61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in j around 0 66.9%
Taylor expanded in y around inf 78.6%
if -0.80000000000000004 < b < 5.20000000000000007e-173Initial program 70.7%
cancel-sign-sub70.7%
cancel-sign-sub-inv70.7%
*-commutative70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around 0 73.8%
if 5.20000000000000007e-173 < b < 1.7499999999999999e-108Initial program 40.8%
cancel-sign-sub40.8%
cancel-sign-sub-inv40.8%
*-commutative40.8%
remove-double-neg40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in i around -inf 56.6%
Taylor expanded in y around inf 67.3%
Taylor expanded in y around inf 67.3%
if 1.7499999999999999e-108 < b < 1.0499999999999999e-73Initial 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 i around 0 81.9%
if 1.0499999999999999e-73 < b Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in j around 0 83.9%
Final simplification77.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* y (* x z)) (* b (- (* t i) (* z c))))))
(if (<= b -0.95)
t_2
(if (<= b 1.75e-75)
(+ (* j (- (* a c) (* y i))) t_1)
(if (<= b 2.8e+65) (+ t_1 (* b (* t i))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -0.95) {
tmp = t_2;
} else if (b <= 1.75e-75) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if (b <= 2.8e+65) {
tmp = t_1 + (b * (t * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (y * (x * z)) + (b * ((t * i) - (z * c)))
if (b <= (-0.95d0)) then
tmp = t_2
else if (b <= 1.75d-75) then
tmp = (j * ((a * c) - (y * i))) + t_1
else if (b <= 2.8d+65) then
tmp = t_1 + (b * (t * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (b <= -0.95) {
tmp = t_2;
} else if (b <= 1.75e-75) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if (b <= 2.8e+65) {
tmp = t_1 + (b * (t * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (y * (x * z)) + (b * ((t * i) - (z * c))) tmp = 0 if b <= -0.95: tmp = t_2 elif b <= 1.75e-75: tmp = (j * ((a * c) - (y * i))) + t_1 elif b <= 2.8e+65: tmp = t_1 + (b * (t * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (b <= -0.95) tmp = t_2; elseif (b <= 1.75e-75) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); elseif (b <= 2.8e+65) tmp = Float64(t_1 + Float64(b * Float64(t * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (y * (x * z)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (b <= -0.95) tmp = t_2; elseif (b <= 1.75e-75) tmp = (j * ((a * c) - (y * i))) + t_1; elseif (b <= 2.8e+65) tmp = t_1 + (b * (t * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.95], t$95$2, If[LessEqual[b, 1.75e-75], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 2.8e+65], N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -0.95:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-75}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t_1\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+65}:\\
\;\;\;\;t_1 + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -0.94999999999999996 or 2.7999999999999999e65 < b Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in j around 0 74.7%
Taylor expanded in y around inf 78.6%
if -0.94999999999999996 < b < 1.74999999999999993e-75Initial program 65.4%
cancel-sign-sub65.4%
cancel-sign-sub-inv65.4%
*-commutative65.4%
remove-double-neg65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in b around 0 68.6%
if 1.74999999999999993e-75 < b < 2.7999999999999999e65Initial 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 j around 0 83.6%
Taylor expanded in c around 0 80.3%
neg-mul-180.3%
distribute-rgt-neg-in80.3%
Simplified80.3%
Final simplification74.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= b -0.12)
(+ (* y (* x z)) t_1)
(if (<= b 6e-71) (+ (* j (- (* a c) (* y i))) t_2) (+ 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 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (b <= -0.12) {
tmp = (y * (x * z)) + t_1;
} else if (b <= 6e-71) {
tmp = (j * ((a * c) - (y * i))) + t_2;
} else {
tmp = t_2 + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
if (b <= (-0.12d0)) then
tmp = (y * (x * z)) + t_1
else if (b <= 6d-71) then
tmp = (j * ((a * c) - (y * i))) + t_2
else
tmp = t_2 + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (b <= -0.12) {
tmp = (y * (x * z)) + t_1;
} else if (b <= 6e-71) {
tmp = (j * ((a * c) - (y * i))) + t_2;
} else {
tmp = t_2 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if b <= -0.12: tmp = (y * (x * z)) + t_1 elif b <= 6e-71: tmp = (j * ((a * c) - (y * i))) + t_2 else: tmp = t_2 + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -0.12) tmp = Float64(Float64(y * Float64(x * z)) + t_1); elseif (b <= 6e-71) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_2); else tmp = Float64(t_2 + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -0.12) tmp = (y * (x * z)) + t_1; elseif (b <= 6e-71) tmp = (j * ((a * c) - (y * i))) + t_2; else tmp = t_2 + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.12], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 6e-71], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -0.12:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + t_1\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-71}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t_2\\
\mathbf{else}:\\
\;\;\;\;t_2 + t_1\\
\end{array}
\end{array}
if b < -0.12Initial program 61.7%
cancel-sign-sub61.7%
cancel-sign-sub-inv61.7%
*-commutative61.7%
remove-double-neg61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in j around 0 66.9%
Taylor expanded in y around inf 78.6%
if -0.12 < b < 6.0000000000000003e-71Initial program 65.4%
cancel-sign-sub65.4%
cancel-sign-sub-inv65.4%
*-commutative65.4%
remove-double-neg65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in b around 0 68.6%
if 6.0000000000000003e-71 < b Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in j around 0 83.9%
Final simplification75.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.35e-53)
t_2
(if (<= c -1.72e-245)
t_1
(if (<= c -1.4e-265)
(* x (* y z))
(if (<= c 1.95e-40)
t_1
(if (<= c 2.5e+35)
(* i (* y (- j)))
(if (<= c 2.7e+129) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e-53) {
tmp = t_2;
} else if (c <= -1.72e-245) {
tmp = t_1;
} else if (c <= -1.4e-265) {
tmp = x * (y * z);
} else if (c <= 1.95e-40) {
tmp = t_1;
} else if (c <= 2.5e+35) {
tmp = i * (y * -j);
} else if (c <= 2.7e+129) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.35d-53)) then
tmp = t_2
else if (c <= (-1.72d-245)) then
tmp = t_1
else if (c <= (-1.4d-265)) then
tmp = x * (y * z)
else if (c <= 1.95d-40) then
tmp = t_1
else if (c <= 2.5d+35) then
tmp = i * (y * -j)
else if (c <= 2.7d+129) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e-53) {
tmp = t_2;
} else if (c <= -1.72e-245) {
tmp = t_1;
} else if (c <= -1.4e-265) {
tmp = x * (y * z);
} else if (c <= 1.95e-40) {
tmp = t_1;
} else if (c <= 2.5e+35) {
tmp = i * (y * -j);
} else if (c <= 2.7e+129) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.35e-53: tmp = t_2 elif c <= -1.72e-245: tmp = t_1 elif c <= -1.4e-265: tmp = x * (y * z) elif c <= 1.95e-40: tmp = t_1 elif c <= 2.5e+35: tmp = i * (y * -j) elif c <= 2.7e+129: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.35e-53) tmp = t_2; elseif (c <= -1.72e-245) tmp = t_1; elseif (c <= -1.4e-265) tmp = Float64(x * Float64(y * z)); elseif (c <= 1.95e-40) tmp = t_1; elseif (c <= 2.5e+35) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 2.7e+129) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.35e-53) tmp = t_2; elseif (c <= -1.72e-245) tmp = t_1; elseif (c <= -1.4e-265) tmp = x * (y * z); elseif (c <= 1.95e-40) tmp = t_1; elseif (c <= 2.5e+35) tmp = i * (y * -j); elseif (c <= 2.7e+129) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e-53], t$95$2, If[LessEqual[c, -1.72e-245], t$95$1, If[LessEqual[c, -1.4e-265], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.95e-40], t$95$1, If[LessEqual[c, 2.5e+35], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e+129], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{-53}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.72 \cdot 10^{-245}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-265}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 1.95 \cdot 10^{-40}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{+35}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.35e-53 or 2.7000000000000001e129 < c Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in c around inf 71.0%
if -1.35e-53 < c < -1.71999999999999997e-245 or -1.40000000000000012e-265 < c < 1.9499999999999999e-40 or 2.50000000000000011e35 < c < 2.7000000000000001e129Initial program 75.4%
cancel-sign-sub75.4%
cancel-sign-sub-inv75.4%
*-commutative75.4%
remove-double-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in t around inf 55.3%
*-commutative55.3%
associate-*r*55.3%
neg-mul-155.3%
cancel-sign-sub55.3%
+-commutative55.3%
mul-1-neg55.3%
unsub-neg55.3%
Simplified55.3%
if -1.71999999999999997e-245 < c < -1.40000000000000012e-265Initial program 99.7%
cancel-sign-sub99.7%
cancel-sign-sub-inv99.7%
*-commutative99.7%
remove-double-neg99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in y around -inf 68.4%
mul-1-neg68.4%
*-commutative68.4%
distribute-rgt-neg-in68.4%
mul-1-neg68.4%
unsub-neg68.4%
Simplified68.4%
Taylor expanded in i around 0 61.2%
*-commutative61.2%
*-commutative61.2%
associate-*l*76.8%
Simplified76.8%
if 1.9499999999999999e-40 < c < 2.50000000000000011e35Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in y around -inf 57.7%
mul-1-neg57.7%
*-commutative57.7%
distribute-rgt-neg-in57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
Taylor expanded in i around inf 47.2%
Final simplification62.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.02e-52)
t_2
(if (<= c -1.72e-245)
t_1
(if (<= c -1.22e-265)
(* x (* y z))
(if (<= c 2.3e-93)
t_1
(if (<= c 3.25e+35)
(* j (- (* a c) (* y i)))
(if (<= c 2.7e+129) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.02e-52) {
tmp = t_2;
} else if (c <= -1.72e-245) {
tmp = t_1;
} else if (c <= -1.22e-265) {
tmp = x * (y * z);
} else if (c <= 2.3e-93) {
tmp = t_1;
} else if (c <= 3.25e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 2.7e+129) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.02d-52)) then
tmp = t_2
else if (c <= (-1.72d-245)) then
tmp = t_1
else if (c <= (-1.22d-265)) then
tmp = x * (y * z)
else if (c <= 2.3d-93) then
tmp = t_1
else if (c <= 3.25d+35) then
tmp = j * ((a * c) - (y * i))
else if (c <= 2.7d+129) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.02e-52) {
tmp = t_2;
} else if (c <= -1.72e-245) {
tmp = t_1;
} else if (c <= -1.22e-265) {
tmp = x * (y * z);
} else if (c <= 2.3e-93) {
tmp = t_1;
} else if (c <= 3.25e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 2.7e+129) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.02e-52: tmp = t_2 elif c <= -1.72e-245: tmp = t_1 elif c <= -1.22e-265: tmp = x * (y * z) elif c <= 2.3e-93: tmp = t_1 elif c <= 3.25e+35: tmp = j * ((a * c) - (y * i)) elif c <= 2.7e+129: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.02e-52) tmp = t_2; elseif (c <= -1.72e-245) tmp = t_1; elseif (c <= -1.22e-265) tmp = Float64(x * Float64(y * z)); elseif (c <= 2.3e-93) tmp = t_1; elseif (c <= 3.25e+35) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= 2.7e+129) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.02e-52) tmp = t_2; elseif (c <= -1.72e-245) tmp = t_1; elseif (c <= -1.22e-265) tmp = x * (y * z); elseif (c <= 2.3e-93) tmp = t_1; elseif (c <= 3.25e+35) tmp = j * ((a * c) - (y * i)); elseif (c <= 2.7e+129) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.02e-52], t$95$2, If[LessEqual[c, -1.72e-245], t$95$1, If[LessEqual[c, -1.22e-265], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e-93], t$95$1, If[LessEqual[c, 3.25e+35], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e+129], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.02 \cdot 10^{-52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.72 \cdot 10^{-245}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.22 \cdot 10^{-265}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{-93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.25 \cdot 10^{+35}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.02000000000000009e-52 or 2.7000000000000001e129 < c Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in c around inf 71.0%
if -1.02000000000000009e-52 < c < -1.71999999999999997e-245 or -1.22e-265 < c < 2.2999999999999998e-93 or 3.2500000000000002e35 < c < 2.7000000000000001e129Initial program 74.0%
cancel-sign-sub74.0%
cancel-sign-sub-inv74.0%
*-commutative74.0%
remove-double-neg74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in t around inf 57.7%
*-commutative57.7%
associate-*r*57.7%
neg-mul-157.7%
cancel-sign-sub57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
if -1.71999999999999997e-245 < c < -1.22e-265Initial program 99.7%
cancel-sign-sub99.7%
cancel-sign-sub-inv99.7%
*-commutative99.7%
remove-double-neg99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in y around -inf 68.4%
mul-1-neg68.4%
*-commutative68.4%
distribute-rgt-neg-in68.4%
mul-1-neg68.4%
unsub-neg68.4%
Simplified68.4%
Taylor expanded in i around 0 61.2%
*-commutative61.2%
*-commutative61.2%
associate-*l*76.8%
Simplified76.8%
if 2.2999999999999998e-93 < c < 3.2500000000000002e35Initial program 78.4%
cancel-sign-sub78.4%
cancel-sign-sub-inv78.4%
*-commutative78.4%
remove-double-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in j around inf 56.4%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -2.15e-52)
t_2
(if (<= c 2.5e-179)
(* t (- (* b i) (* x a)))
(if (<= c 3e-129)
(* y (- (* x z) (* i j)))
(if (<= c 3.2e-93)
t_1
(if (<= c 4.6e+35)
(* j (- (* a c) (* y i)))
(if (<= c 4.2e+129) 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 = b * ((t * i) - (z * c));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.15e-52) {
tmp = t_2;
} else if (c <= 2.5e-179) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 3e-129) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.2e-93) {
tmp = t_1;
} else if (c <= 4.6e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 4.2e+129) {
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 = b * ((t * i) - (z * c))
t_2 = c * ((a * j) - (z * b))
if (c <= (-2.15d-52)) then
tmp = t_2
else if (c <= 2.5d-179) then
tmp = t * ((b * i) - (x * a))
else if (c <= 3d-129) then
tmp = y * ((x * z) - (i * j))
else if (c <= 3.2d-93) then
tmp = t_1
else if (c <= 4.6d+35) then
tmp = j * ((a * c) - (y * i))
else if (c <= 4.2d+129) 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 = b * ((t * i) - (z * c));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.15e-52) {
tmp = t_2;
} else if (c <= 2.5e-179) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 3e-129) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.2e-93) {
tmp = t_1;
} else if (c <= 4.6e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 4.2e+129) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.15e-52: tmp = t_2 elif c <= 2.5e-179: tmp = t * ((b * i) - (x * a)) elif c <= 3e-129: tmp = y * ((x * z) - (i * j)) elif c <= 3.2e-93: tmp = t_1 elif c <= 4.6e+35: tmp = j * ((a * c) - (y * i)) elif c <= 4.2e+129: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.15e-52) tmp = t_2; elseif (c <= 2.5e-179) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 3e-129) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 3.2e-93) tmp = t_1; elseif (c <= 4.6e+35) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= 4.2e+129) 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 = b * ((t * i) - (z * c)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.15e-52) tmp = t_2; elseif (c <= 2.5e-179) tmp = t * ((b * i) - (x * a)); elseif (c <= 3e-129) tmp = y * ((x * z) - (i * j)); elseif (c <= 3.2e-93) tmp = t_1; elseif (c <= 4.6e+35) tmp = j * ((a * c) - (y * i)); elseif (c <= 4.2e+129) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.15e-52], t$95$2, If[LessEqual[c, 2.5e-179], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e-129], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e-93], t$95$1, If[LessEqual[c, 4.6e+35], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e+129], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.15 \cdot 10^{-52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-179}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.6 \cdot 10^{+35}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.1500000000000002e-52 or 4.19999999999999993e129 < c Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in c around inf 71.0%
if -2.1500000000000002e-52 < c < 2.4999999999999999e-179Initial program 79.6%
cancel-sign-sub79.6%
cancel-sign-sub-inv79.6%
*-commutative79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in t around inf 57.2%
*-commutative57.2%
associate-*r*57.2%
neg-mul-157.2%
cancel-sign-sub57.2%
+-commutative57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
if 2.4999999999999999e-179 < c < 2.9999999999999998e-129Initial 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 y around -inf 75.7%
mul-1-neg75.7%
*-commutative75.7%
distribute-rgt-neg-in75.7%
mul-1-neg75.7%
unsub-neg75.7%
Simplified75.7%
if 2.9999999999999998e-129 < c < 3.1999999999999999e-93 or 4.5999999999999996e35 < c < 4.19999999999999993e129Initial program 62.9%
cancel-sign-sub62.9%
cancel-sign-sub-inv62.9%
*-commutative62.9%
remove-double-neg62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in b around inf 73.2%
if 3.1999999999999999e-93 < c < 4.5999999999999996e35Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around inf 58.2%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -1.35e-52)
t_1
(if (<= c 1.6e-176)
(* t (- (* b i) (* x a)))
(if (<= c 4.5e-113)
(* y (- (* x z) (* i j)))
(if (<= c 1.9e-88)
(* i (- (* t b) (* y j)))
(if (<= c 3.1e+35)
(* j (- (* a c) (* y i)))
(if (<= c 6e+131) (* 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) - (z * b));
double tmp;
if (c <= -1.35e-52) {
tmp = t_1;
} else if (c <= 1.6e-176) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 4.5e-113) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 1.9e-88) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 3.1e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 6e+131) {
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) - (z * b))
if (c <= (-1.35d-52)) then
tmp = t_1
else if (c <= 1.6d-176) then
tmp = t * ((b * i) - (x * a))
else if (c <= 4.5d-113) then
tmp = y * ((x * z) - (i * j))
else if (c <= 1.9d-88) then
tmp = i * ((t * b) - (y * j))
else if (c <= 3.1d+35) then
tmp = j * ((a * c) - (y * i))
else if (c <= 6d+131) 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) - (z * b));
double tmp;
if (c <= -1.35e-52) {
tmp = t_1;
} else if (c <= 1.6e-176) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 4.5e-113) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 1.9e-88) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 3.1e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 6e+131) {
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) - (z * b)) tmp = 0 if c <= -1.35e-52: tmp = t_1 elif c <= 1.6e-176: tmp = t * ((b * i) - (x * a)) elif c <= 4.5e-113: tmp = y * ((x * z) - (i * j)) elif c <= 1.9e-88: tmp = i * ((t * b) - (y * j)) elif c <= 3.1e+35: tmp = j * ((a * c) - (y * i)) elif c <= 6e+131: 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(z * b))) tmp = 0.0 if (c <= -1.35e-52) tmp = t_1; elseif (c <= 1.6e-176) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 4.5e-113) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 1.9e-88) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 3.1e+35) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= 6e+131) 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) - (z * b)); tmp = 0.0; if (c <= -1.35e-52) tmp = t_1; elseif (c <= 1.6e-176) tmp = t * ((b * i) - (x * a)); elseif (c <= 4.5e-113) tmp = y * ((x * z) - (i * j)); elseif (c <= 1.9e-88) tmp = i * ((t * b) - (y * j)); elseif (c <= 3.1e+35) tmp = j * ((a * c) - (y * i)); elseif (c <= 6e+131) 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[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e-52], t$95$1, If[LessEqual[c, 1.6e-176], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.5e-113], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.9e-88], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.1e+35], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6e+131], 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 - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{-52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{-176}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-113}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-88}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{+35}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 6 \cdot 10^{+131}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.35000000000000005e-52 or 6.0000000000000003e131 < c Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in c around inf 71.0%
if -1.35000000000000005e-52 < c < 1.59999999999999992e-176Initial program 79.6%
cancel-sign-sub79.6%
cancel-sign-sub-inv79.6%
*-commutative79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in t around inf 57.2%
*-commutative57.2%
associate-*r*57.2%
neg-mul-157.2%
cancel-sign-sub57.2%
+-commutative57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
if 1.59999999999999992e-176 < c < 4.5000000000000001e-113Initial program 66.3%
cancel-sign-sub66.3%
cancel-sign-sub-inv66.3%
*-commutative66.3%
remove-double-neg66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in y around -inf 67.4%
mul-1-neg67.4%
*-commutative67.4%
distribute-rgt-neg-in67.4%
mul-1-neg67.4%
unsub-neg67.4%
Simplified67.4%
if 4.5000000000000001e-113 < c < 1.90000000000000006e-88Initial program 59.7%
sub-neg59.7%
+-commutative59.7%
associate-+l+59.7%
distribute-rgt-neg-in59.7%
+-commutative59.7%
fma-def59.7%
sub-neg59.7%
+-commutative59.7%
distribute-neg-in59.7%
unsub-neg59.7%
remove-double-neg59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in i around inf 80.2%
if 1.90000000000000006e-88 < c < 3.09999999999999987e35Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in j around inf 57.6%
if 3.09999999999999987e35 < c < 6.0000000000000003e131Initial 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 b around inf 77.2%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -7.5e+67)
t_1
(if (<= c 4.5e-124)
(+ (* x (- (* y z) (* t a))) (* b (* t i)))
(if (<= c 2.7e+129) (* i (- (* t b) (* y j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -7.5e+67) {
tmp = t_1;
} else if (c <= 4.5e-124) {
tmp = (x * ((y * z) - (t * a))) + (b * (t * i));
} else if (c <= 2.7e+129) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-7.5d+67)) then
tmp = t_1
else if (c <= 4.5d-124) then
tmp = (x * ((y * z) - (t * a))) + (b * (t * i))
else if (c <= 2.7d+129) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -7.5e+67) {
tmp = t_1;
} else if (c <= 4.5e-124) {
tmp = (x * ((y * z) - (t * a))) + (b * (t * i));
} else if (c <= 2.7e+129) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -7.5e+67: tmp = t_1 elif c <= 4.5e-124: tmp = (x * ((y * z) - (t * a))) + (b * (t * i)) elif c <= 2.7e+129: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -7.5e+67) tmp = t_1; elseif (c <= 4.5e-124) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(t * i))); elseif (c <= 2.7e+129) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -7.5e+67) tmp = t_1; elseif (c <= 4.5e-124) tmp = (x * ((y * z) - (t * a))) + (b * (t * i)); elseif (c <= 2.7e+129) tmp = i * ((t * b) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.5e+67], t$95$1, If[LessEqual[c, 4.5e-124], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e+129], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{+67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-124}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+129}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -7.5000000000000005e67 or 2.7000000000000001e129 < c Initial program 59.6%
cancel-sign-sub59.6%
cancel-sign-sub-inv59.6%
*-commutative59.6%
remove-double-neg59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in c around inf 77.0%
if -7.5000000000000005e67 < c < 4.4999999999999996e-124Initial program 79.1%
cancel-sign-sub79.1%
cancel-sign-sub-inv79.1%
*-commutative79.1%
remove-double-neg79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in j around 0 63.9%
Taylor expanded in c around 0 59.5%
neg-mul-159.5%
distribute-rgt-neg-in59.5%
Simplified59.5%
if 4.4999999999999996e-124 < c < 2.7000000000000001e129Initial program 72.1%
sub-neg72.1%
+-commutative72.1%
associate-+l+72.1%
distribute-rgt-neg-in72.1%
+-commutative72.1%
fma-def74.1%
sub-neg74.1%
+-commutative74.1%
distribute-neg-in74.1%
unsub-neg74.1%
remove-double-neg74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in i around inf 59.4%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* i (* t b))) (t_3 (* j (* a c))))
(if (<= a -1.35e-12)
t_3
(if (<= a -1.95e-197)
t_1
(if (<= a 7.8e-144)
t_2
(if (<= a 3.9e-33)
t_1
(if (or (<= a 7.2e+204) (not (<= a 3.4e+251))) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = i * (t * b);
double t_3 = j * (a * c);
double tmp;
if (a <= -1.35e-12) {
tmp = t_3;
} else if (a <= -1.95e-197) {
tmp = t_1;
} else if (a <= 7.8e-144) {
tmp = t_2;
} else if (a <= 3.9e-33) {
tmp = t_1;
} else if ((a <= 7.2e+204) || !(a <= 3.4e+251)) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = i * (t * b)
t_3 = j * (a * c)
if (a <= (-1.35d-12)) then
tmp = t_3
else if (a <= (-1.95d-197)) then
tmp = t_1
else if (a <= 7.8d-144) then
tmp = t_2
else if (a <= 3.9d-33) then
tmp = t_1
else if ((a <= 7.2d+204) .or. (.not. (a <= 3.4d+251))) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = i * (t * b);
double t_3 = j * (a * c);
double tmp;
if (a <= -1.35e-12) {
tmp = t_3;
} else if (a <= -1.95e-197) {
tmp = t_1;
} else if (a <= 7.8e-144) {
tmp = t_2;
} else if (a <= 3.9e-33) {
tmp = t_1;
} else if ((a <= 7.2e+204) || !(a <= 3.4e+251)) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = i * (t * b) t_3 = j * (a * c) tmp = 0 if a <= -1.35e-12: tmp = t_3 elif a <= -1.95e-197: tmp = t_1 elif a <= 7.8e-144: tmp = t_2 elif a <= 3.9e-33: tmp = t_1 elif (a <= 7.2e+204) or not (a <= 3.4e+251): tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(i * Float64(t * b)) t_3 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -1.35e-12) tmp = t_3; elseif (a <= -1.95e-197) tmp = t_1; elseif (a <= 7.8e-144) tmp = t_2; elseif (a <= 3.9e-33) tmp = t_1; elseif ((a <= 7.2e+204) || !(a <= 3.4e+251)) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = i * (t * b); t_3 = j * (a * c); tmp = 0.0; if (a <= -1.35e-12) tmp = t_3; elseif (a <= -1.95e-197) tmp = t_1; elseif (a <= 7.8e-144) tmp = t_2; elseif (a <= 3.9e-33) tmp = t_1; elseif ((a <= 7.2e+204) || ~((a <= 3.4e+251))) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.35e-12], t$95$3, If[LessEqual[a, -1.95e-197], t$95$1, If[LessEqual[a, 7.8e-144], t$95$2, If[LessEqual[a, 3.9e-33], t$95$1, If[Or[LessEqual[a, 7.2e+204], N[Not[LessEqual[a, 3.4e+251]], $MachinePrecision]], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
t_3 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -1.35 \cdot 10^{-12}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-197}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-144}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+204} \lor \neg \left(a \leq 3.4 \cdot 10^{+251}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.3499999999999999e-12 or 3.89999999999999974e-33 < a < 7.2000000000000005e204 or 3.40000000000000011e251 < a Initial program 69.7%
cancel-sign-sub69.7%
cancel-sign-sub-inv69.7%
*-commutative69.7%
remove-double-neg69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in c around inf 47.5%
Taylor expanded in a around inf 37.6%
*-commutative37.6%
*-commutative37.6%
associate-*l*41.3%
Simplified41.3%
if -1.3499999999999999e-12 < a < -1.95e-197 or 7.8000000000000003e-144 < a < 3.89999999999999974e-33Initial program 69.8%
cancel-sign-sub69.8%
cancel-sign-sub-inv69.8%
*-commutative69.8%
remove-double-neg69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in y around -inf 45.3%
mul-1-neg45.3%
*-commutative45.3%
distribute-rgt-neg-in45.3%
mul-1-neg45.3%
unsub-neg45.3%
Simplified45.3%
Taylor expanded in i around 0 33.5%
*-commutative33.5%
*-commutative33.5%
associate-*l*33.3%
Simplified33.3%
if -1.95e-197 < a < 7.8000000000000003e-144 or 7.2000000000000005e204 < a < 3.40000000000000011e251Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around inf 52.8%
Taylor expanded in i around inf 41.6%
Final simplification39.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= x -3.4e+200)
(* x (* y z))
(if (<= x -1.36e-275)
t_1
(if (<= x 2.15e-228)
(* t (* b i))
(if (<= x 1.45e+52) t_1 (* t (* x (- a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (x <= -3.4e+200) {
tmp = x * (y * z);
} else if (x <= -1.36e-275) {
tmp = t_1;
} else if (x <= 2.15e-228) {
tmp = t * (b * i);
} else if (x <= 1.45e+52) {
tmp = t_1;
} else {
tmp = t * (x * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (x <= (-3.4d+200)) then
tmp = x * (y * z)
else if (x <= (-1.36d-275)) then
tmp = t_1
else if (x <= 2.15d-228) then
tmp = t * (b * i)
else if (x <= 1.45d+52) then
tmp = t_1
else
tmp = t * (x * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (x <= -3.4e+200) {
tmp = x * (y * z);
} else if (x <= -1.36e-275) {
tmp = t_1;
} else if (x <= 2.15e-228) {
tmp = t * (b * i);
} else if (x <= 1.45e+52) {
tmp = t_1;
} else {
tmp = t * (x * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if x <= -3.4e+200: tmp = x * (y * z) elif x <= -1.36e-275: tmp = t_1 elif x <= 2.15e-228: tmp = t * (b * i) elif x <= 1.45e+52: tmp = t_1 else: tmp = t * (x * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (x <= -3.4e+200) tmp = Float64(x * Float64(y * z)); elseif (x <= -1.36e-275) tmp = t_1; elseif (x <= 2.15e-228) tmp = Float64(t * Float64(b * i)); elseif (x <= 1.45e+52) tmp = t_1; else tmp = Float64(t * Float64(x * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (x <= -3.4e+200) tmp = x * (y * z); elseif (x <= -1.36e-275) tmp = t_1; elseif (x <= 2.15e-228) tmp = t * (b * i); elseif (x <= 1.45e+52) tmp = t_1; else tmp = t * (x * -a); 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[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e+200], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.36e-275], t$95$1, If[LessEqual[x, 2.15e-228], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e+52], t$95$1, N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+200}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq -1.36 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{-228}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if x < -3.39999999999999969e200Initial program 76.6%
cancel-sign-sub76.6%
cancel-sign-sub-inv76.6%
*-commutative76.6%
remove-double-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in y around -inf 48.2%
mul-1-neg48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
mul-1-neg48.2%
unsub-neg48.2%
Simplified48.2%
Taylor expanded in i around 0 48.0%
*-commutative48.0%
*-commutative48.0%
associate-*l*48.0%
Simplified48.0%
if -3.39999999999999969e200 < x < -1.35999999999999997e-275 or 2.15e-228 < x < 1.45e52Initial program 70.3%
cancel-sign-sub70.3%
cancel-sign-sub-inv70.3%
*-commutative70.3%
remove-double-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in c around inf 51.9%
if -1.35999999999999997e-275 < x < 2.15e-228Initial program 67.2%
cancel-sign-sub67.2%
cancel-sign-sub-inv67.2%
*-commutative67.2%
remove-double-neg67.2%
*-commutative67.2%
Simplified67.2%
Taylor expanded in t around inf 57.1%
*-commutative57.1%
associate-*r*57.1%
neg-mul-157.1%
cancel-sign-sub57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
Simplified57.1%
Taylor expanded in i around inf 52.1%
if 1.45e52 < x Initial program 70.9%
cancel-sign-sub70.9%
cancel-sign-sub-inv70.9%
*-commutative70.9%
remove-double-neg70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in t around inf 61.8%
*-commutative61.8%
associate-*r*61.8%
neg-mul-161.8%
cancel-sign-sub61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
Simplified61.8%
Taylor expanded in i around 0 50.4%
associate-*r*50.4%
neg-mul-150.4%
*-commutative50.4%
Simplified50.4%
Final simplification51.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -5.2e-52)
t_1
(if (<= c 1e-95)
(* t (- (* b i) (* x a)))
(if (<= c 2e+35)
(* j (- (* a c) (* y i)))
(if (<= c 8e+130) (* 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) - (z * b));
double tmp;
if (c <= -5.2e-52) {
tmp = t_1;
} else if (c <= 1e-95) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 2e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 8e+130) {
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) - (z * b))
if (c <= (-5.2d-52)) then
tmp = t_1
else if (c <= 1d-95) then
tmp = t * ((b * i) - (x * a))
else if (c <= 2d+35) then
tmp = j * ((a * c) - (y * i))
else if (c <= 8d+130) 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) - (z * b));
double tmp;
if (c <= -5.2e-52) {
tmp = t_1;
} else if (c <= 1e-95) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 2e+35) {
tmp = j * ((a * c) - (y * i));
} else if (c <= 8e+130) {
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) - (z * b)) tmp = 0 if c <= -5.2e-52: tmp = t_1 elif c <= 1e-95: tmp = t * ((b * i) - (x * a)) elif c <= 2e+35: tmp = j * ((a * c) - (y * i)) elif c <= 8e+130: 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(z * b))) tmp = 0.0 if (c <= -5.2e-52) tmp = t_1; elseif (c <= 1e-95) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 2e+35) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= 8e+130) 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) - (z * b)); tmp = 0.0; if (c <= -5.2e-52) tmp = t_1; elseif (c <= 1e-95) tmp = t * ((b * i) - (x * a)); elseif (c <= 2e+35) tmp = j * ((a * c) - (y * i)); elseif (c <= 8e+130) 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[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.2e-52], t$95$1, If[LessEqual[c, 1e-95], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e+35], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8e+130], 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 - z \cdot b\right)\\
\mathbf{if}\;c \leq -5.2 \cdot 10^{-52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 10^{-95}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 2 \cdot 10^{+35}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+130}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -5.1999999999999997e-52 or 8.0000000000000005e130 < c Initial program 63.5%
cancel-sign-sub63.5%
cancel-sign-sub-inv63.5%
*-commutative63.5%
remove-double-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in c around inf 71.0%
if -5.1999999999999997e-52 < c < 9.99999999999999989e-96Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in t around inf 54.4%
*-commutative54.4%
associate-*r*54.4%
neg-mul-154.4%
cancel-sign-sub54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
Simplified54.4%
if 9.99999999999999989e-96 < c < 1.9999999999999999e35Initial program 78.4%
cancel-sign-sub78.4%
cancel-sign-sub-inv78.4%
*-commutative78.4%
remove-double-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in j around inf 56.4%
if 1.9999999999999999e35 < c < 8.0000000000000005e130Initial 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 b around inf 77.2%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2.4e-12)
(* j (* a c))
(if (<= a -8.5e-197)
(* x (* y z))
(if (<= a 4.5e-284)
(* i (* t b))
(if (<= a 6.2e-80)
(* (* y i) (- j))
(if (<= a 1.48e+37) (* y (* x z)) (* c (* a j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e-12) {
tmp = j * (a * c);
} else if (a <= -8.5e-197) {
tmp = x * (y * z);
} else if (a <= 4.5e-284) {
tmp = i * (t * b);
} else if (a <= 6.2e-80) {
tmp = (y * i) * -j;
} else if (a <= 1.48e+37) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-2.4d-12)) then
tmp = j * (a * c)
else if (a <= (-8.5d-197)) then
tmp = x * (y * z)
else if (a <= 4.5d-284) then
tmp = i * (t * b)
else if (a <= 6.2d-80) then
tmp = (y * i) * -j
else if (a <= 1.48d+37) then
tmp = y * (x * z)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e-12) {
tmp = j * (a * c);
} else if (a <= -8.5e-197) {
tmp = x * (y * z);
} else if (a <= 4.5e-284) {
tmp = i * (t * b);
} else if (a <= 6.2e-80) {
tmp = (y * i) * -j;
} else if (a <= 1.48e+37) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.4e-12: tmp = j * (a * c) elif a <= -8.5e-197: tmp = x * (y * z) elif a <= 4.5e-284: tmp = i * (t * b) elif a <= 6.2e-80: tmp = (y * i) * -j elif a <= 1.48e+37: tmp = y * (x * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.4e-12) tmp = Float64(j * Float64(a * c)); elseif (a <= -8.5e-197) tmp = Float64(x * Float64(y * z)); elseif (a <= 4.5e-284) tmp = Float64(i * Float64(t * b)); elseif (a <= 6.2e-80) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (a <= 1.48e+37) tmp = Float64(y * Float64(x * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.4e-12) tmp = j * (a * c); elseif (a <= -8.5e-197) tmp = x * (y * z); elseif (a <= 4.5e-284) tmp = i * (t * b); elseif (a <= 6.2e-80) tmp = (y * i) * -j; elseif (a <= 1.48e+37) tmp = y * (x * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.4e-12], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e-197], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-284], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e-80], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[a, 1.48e+37], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.4 \cdot 10^{-12}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-197}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-284}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-80}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;a \leq 1.48 \cdot 10^{+37}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -2.39999999999999987e-12Initial program 70.2%
cancel-sign-sub70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
remove-double-neg70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in c around inf 49.3%
Taylor expanded in a around inf 39.3%
*-commutative39.3%
*-commutative39.3%
associate-*l*42.9%
Simplified42.9%
if -2.39999999999999987e-12 < a < -8.5e-197Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in y around -inf 45.6%
mul-1-neg45.6%
*-commutative45.6%
distribute-rgt-neg-in45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in i around 0 32.6%
*-commutative32.6%
*-commutative32.6%
associate-*l*35.3%
Simplified35.3%
if -8.5e-197 < a < 4.4999999999999999e-284Initial program 84.8%
cancel-sign-sub84.8%
cancel-sign-sub-inv84.8%
*-commutative84.8%
remove-double-neg84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in b around inf 75.6%
Taylor expanded in i around inf 60.4%
if 4.4999999999999999e-284 < a < 6.20000000000000032e-80Initial program 77.6%
cancel-sign-sub77.6%
cancel-sign-sub-inv77.6%
*-commutative77.6%
remove-double-neg77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in y around -inf 39.2%
mul-1-neg39.2%
*-commutative39.2%
distribute-rgt-neg-in39.2%
mul-1-neg39.2%
unsub-neg39.2%
Simplified39.2%
Taylor expanded in i around inf 29.9%
mul-1-neg29.9%
*-commutative29.9%
associate-*r*27.7%
*-commutative27.7%
associate-*l*30.0%
distribute-rgt-neg-in30.0%
Simplified30.0%
if 6.20000000000000032e-80 < a < 1.48000000000000012e37Initial program 64.9%
cancel-sign-sub64.9%
cancel-sign-sub-inv64.9%
*-commutative64.9%
remove-double-neg64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y around -inf 60.6%
mul-1-neg60.6%
*-commutative60.6%
distribute-rgt-neg-in60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Taylor expanded in i around 0 41.0%
if 1.48000000000000012e37 < a Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in c around inf 46.4%
Taylor expanded in a around inf 38.7%
*-commutative38.7%
Simplified38.7%
Final simplification40.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.9e-11)
(* j (* a c))
(if (<= a -1.2e-191)
(* x (* y z))
(if (<= a 9.2e-240)
(* i (* t b))
(if (<= a 1.65e-78)
(* z (* b (- c)))
(if (<= a 2.45e+35) (* y (* x z)) (* c (* a j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.9e-11) {
tmp = j * (a * c);
} else if (a <= -1.2e-191) {
tmp = x * (y * z);
} else if (a <= 9.2e-240) {
tmp = i * (t * b);
} else if (a <= 1.65e-78) {
tmp = z * (b * -c);
} else if (a <= 2.45e+35) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.9d-11)) then
tmp = j * (a * c)
else if (a <= (-1.2d-191)) then
tmp = x * (y * z)
else if (a <= 9.2d-240) then
tmp = i * (t * b)
else if (a <= 1.65d-78) then
tmp = z * (b * -c)
else if (a <= 2.45d+35) then
tmp = y * (x * z)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.9e-11) {
tmp = j * (a * c);
} else if (a <= -1.2e-191) {
tmp = x * (y * z);
} else if (a <= 9.2e-240) {
tmp = i * (t * b);
} else if (a <= 1.65e-78) {
tmp = z * (b * -c);
} else if (a <= 2.45e+35) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.9e-11: tmp = j * (a * c) elif a <= -1.2e-191: tmp = x * (y * z) elif a <= 9.2e-240: tmp = i * (t * b) elif a <= 1.65e-78: tmp = z * (b * -c) elif a <= 2.45e+35: tmp = y * (x * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.9e-11) tmp = Float64(j * Float64(a * c)); elseif (a <= -1.2e-191) tmp = Float64(x * Float64(y * z)); elseif (a <= 9.2e-240) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.65e-78) tmp = Float64(z * Float64(b * Float64(-c))); elseif (a <= 2.45e+35) tmp = Float64(y * Float64(x * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.9e-11) tmp = j * (a * c); elseif (a <= -1.2e-191) tmp = x * (y * z); elseif (a <= 9.2e-240) tmp = i * (t * b); elseif (a <= 1.65e-78) tmp = z * (b * -c); elseif (a <= 2.45e+35) tmp = y * (x * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.9e-11], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.2e-191], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.2e-240], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e-78], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.45e+35], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{-11}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-191}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-240}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-78}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 2.45 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -1.8999999999999999e-11Initial program 70.2%
cancel-sign-sub70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
remove-double-neg70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in c around inf 49.3%
Taylor expanded in a around inf 39.3%
*-commutative39.3%
*-commutative39.3%
associate-*l*42.9%
Simplified42.9%
if -1.8999999999999999e-11 < a < -1.2e-191Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in y around -inf 45.6%
mul-1-neg45.6%
*-commutative45.6%
distribute-rgt-neg-in45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in i around 0 32.6%
*-commutative32.6%
*-commutative32.6%
associate-*l*35.3%
Simplified35.3%
if -1.2e-191 < a < 9.19999999999999972e-240Initial 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 b around inf 55.0%
Taylor expanded in i around inf 46.8%
if 9.19999999999999972e-240 < a < 1.64999999999999991e-78Initial 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 c around inf 62.4%
Taylor expanded in a around 0 55.3%
associate-*r*55.3%
neg-mul-155.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in c around 0 55.3%
*-commutative55.3%
associate-*r*55.1%
associate-*r*55.1%
neg-mul-155.1%
*-commutative55.1%
*-commutative55.1%
distribute-rgt-neg-in55.1%
Simplified55.1%
if 1.64999999999999991e-78 < a < 2.45000000000000013e35Initial program 64.9%
cancel-sign-sub64.9%
cancel-sign-sub-inv64.9%
*-commutative64.9%
remove-double-neg64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y around -inf 60.6%
mul-1-neg60.6%
*-commutative60.6%
distribute-rgt-neg-in60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Taylor expanded in i around 0 41.0%
if 2.45000000000000013e35 < a Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in c around inf 46.4%
Taylor expanded in a around inf 38.7%
*-commutative38.7%
Simplified38.7%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2e-12)
(* j (* a c))
(if (<= a -8.4e-200)
(* x (* y z))
(if (<= a 1.15e-239)
(* i (* t b))
(if (<= a 1.08e-79)
(* c (* z (- b)))
(if (<= a 4.8e+35) (* y (* x z)) (* c (* a j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2e-12) {
tmp = j * (a * c);
} else if (a <= -8.4e-200) {
tmp = x * (y * z);
} else if (a <= 1.15e-239) {
tmp = i * (t * b);
} else if (a <= 1.08e-79) {
tmp = c * (z * -b);
} else if (a <= 4.8e+35) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-2d-12)) then
tmp = j * (a * c)
else if (a <= (-8.4d-200)) then
tmp = x * (y * z)
else if (a <= 1.15d-239) then
tmp = i * (t * b)
else if (a <= 1.08d-79) then
tmp = c * (z * -b)
else if (a <= 4.8d+35) then
tmp = y * (x * z)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2e-12) {
tmp = j * (a * c);
} else if (a <= -8.4e-200) {
tmp = x * (y * z);
} else if (a <= 1.15e-239) {
tmp = i * (t * b);
} else if (a <= 1.08e-79) {
tmp = c * (z * -b);
} else if (a <= 4.8e+35) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2e-12: tmp = j * (a * c) elif a <= -8.4e-200: tmp = x * (y * z) elif a <= 1.15e-239: tmp = i * (t * b) elif a <= 1.08e-79: tmp = c * (z * -b) elif a <= 4.8e+35: tmp = y * (x * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2e-12) tmp = Float64(j * Float64(a * c)); elseif (a <= -8.4e-200) tmp = Float64(x * Float64(y * z)); elseif (a <= 1.15e-239) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.08e-79) tmp = Float64(c * Float64(z * Float64(-b))); elseif (a <= 4.8e+35) tmp = Float64(y * Float64(x * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2e-12) tmp = j * (a * c); elseif (a <= -8.4e-200) tmp = x * (y * z); elseif (a <= 1.15e-239) tmp = i * (t * b); elseif (a <= 1.08e-79) tmp = c * (z * -b); elseif (a <= 4.8e+35) tmp = y * (x * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2e-12], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.4e-200], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e-239], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.08e-79], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e+35], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{-12}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq -8.4 \cdot 10^{-200}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-239}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.08 \cdot 10^{-79}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -1.99999999999999996e-12Initial program 70.2%
cancel-sign-sub70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
remove-double-neg70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in c around inf 49.3%
Taylor expanded in a around inf 39.3%
*-commutative39.3%
*-commutative39.3%
associate-*l*42.9%
Simplified42.9%
if -1.99999999999999996e-12 < a < -8.3999999999999996e-200Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in y around -inf 45.6%
mul-1-neg45.6%
*-commutative45.6%
distribute-rgt-neg-in45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in i around 0 32.6%
*-commutative32.6%
*-commutative32.6%
associate-*l*35.3%
Simplified35.3%
if -8.3999999999999996e-200 < a < 1.1499999999999999e-239Initial 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 b around inf 55.0%
Taylor expanded in i around inf 46.8%
if 1.1499999999999999e-239 < a < 1.0800000000000001e-79Initial 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 c around inf 62.4%
Taylor expanded in a around 0 55.3%
associate-*r*55.3%
neg-mul-155.3%
*-commutative55.3%
Simplified55.3%
if 1.0800000000000001e-79 < a < 4.80000000000000029e35Initial program 64.9%
cancel-sign-sub64.9%
cancel-sign-sub-inv64.9%
*-commutative64.9%
remove-double-neg64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y around -inf 60.6%
mul-1-neg60.6%
*-commutative60.6%
distribute-rgt-neg-in60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Taylor expanded in i around 0 41.0%
if 4.80000000000000029e35 < a Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in c around inf 46.4%
Taylor expanded in a around inf 38.7%
*-commutative38.7%
Simplified38.7%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3e-11)
(* j (* a c))
(if (<= a -9.2e-199)
(* x (* y z))
(if (<= a 7.6e-146)
(* i (* t b))
(if (<= a 1.6e+35) (* y (* x z)) (* c (* a j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3e-11) {
tmp = j * (a * c);
} else if (a <= -9.2e-199) {
tmp = x * (y * z);
} else if (a <= 7.6e-146) {
tmp = i * (t * b);
} else if (a <= 1.6e+35) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-3d-11)) then
tmp = j * (a * c)
else if (a <= (-9.2d-199)) then
tmp = x * (y * z)
else if (a <= 7.6d-146) then
tmp = i * (t * b)
else if (a <= 1.6d+35) then
tmp = y * (x * z)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3e-11) {
tmp = j * (a * c);
} else if (a <= -9.2e-199) {
tmp = x * (y * z);
} else if (a <= 7.6e-146) {
tmp = i * (t * b);
} else if (a <= 1.6e+35) {
tmp = y * (x * z);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3e-11: tmp = j * (a * c) elif a <= -9.2e-199: tmp = x * (y * z) elif a <= 7.6e-146: tmp = i * (t * b) elif a <= 1.6e+35: tmp = y * (x * z) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3e-11) tmp = Float64(j * Float64(a * c)); elseif (a <= -9.2e-199) tmp = Float64(x * Float64(y * z)); elseif (a <= 7.6e-146) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.6e+35) tmp = Float64(y * Float64(x * z)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3e-11) tmp = j * (a * c); elseif (a <= -9.2e-199) tmp = x * (y * z); elseif (a <= 7.6e-146) tmp = i * (t * b); elseif (a <= 1.6e+35) tmp = y * (x * z); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3e-11], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.2e-199], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.6e-146], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+35], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{-11}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-199}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{-146}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -3e-11Initial program 70.2%
cancel-sign-sub70.2%
cancel-sign-sub-inv70.2%
*-commutative70.2%
remove-double-neg70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in c around inf 49.3%
Taylor expanded in a around inf 39.3%
*-commutative39.3%
*-commutative39.3%
associate-*l*42.9%
Simplified42.9%
if -3e-11 < a < -9.2000000000000005e-199Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in y around -inf 45.6%
mul-1-neg45.6%
*-commutative45.6%
distribute-rgt-neg-in45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in i around 0 32.6%
*-commutative32.6%
*-commutative32.6%
associate-*l*35.3%
Simplified35.3%
if -9.2000000000000005e-199 < a < 7.59999999999999989e-146Initial program 83.5%
cancel-sign-sub83.5%
cancel-sign-sub-inv83.5%
*-commutative83.5%
remove-double-neg83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in b around inf 54.9%
Taylor expanded in i around inf 41.6%
if 7.59999999999999989e-146 < a < 1.59999999999999991e35Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in y around -inf 48.1%
mul-1-neg48.1%
*-commutative48.1%
distribute-rgt-neg-in48.1%
mul-1-neg48.1%
unsub-neg48.1%
Simplified48.1%
Taylor expanded in i around 0 31.2%
if 1.59999999999999991e35 < a Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in c around inf 46.4%
Taylor expanded in a around inf 38.7%
*-commutative38.7%
Simplified38.7%
Final simplification38.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -7.6e-39) (not (<= a 5e+35))) (* c (* a j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -7.6e-39) || !(a <= 5e+35)) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-7.6d-39)) .or. (.not. (a <= 5d+35))) then
tmp = c * (a * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -7.6e-39) || !(a <= 5e+35)) {
tmp = c * (a * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -7.6e-39) or not (a <= 5e+35): tmp = c * (a * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -7.6e-39) || !(a <= 5e+35)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -7.6e-39) || ~((a <= 5e+35))) tmp = c * (a * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -7.6e-39], N[Not[LessEqual[a, 5e+35]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.6 \cdot 10^{-39} \lor \neg \left(a \leq 5 \cdot 10^{+35}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if a < -7.6000000000000004e-39 or 5.00000000000000021e35 < a Initial program 67.3%
cancel-sign-sub67.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
remove-double-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in c around inf 48.3%
Taylor expanded in a around inf 38.1%
*-commutative38.1%
Simplified38.1%
if -7.6000000000000004e-39 < a < 5.00000000000000021e35Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in b around inf 46.3%
Taylor expanded in i around inf 27.7%
Final simplification33.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -2.6e-37) (* j (* a c)) (if (<= a 3.1e+36) (* i (* t b)) (* c (* a j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.6e-37) {
tmp = j * (a * c);
} else if (a <= 3.1e+36) {
tmp = i * (t * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-2.6d-37)) then
tmp = j * (a * c)
else if (a <= 3.1d+36) then
tmp = i * (t * b)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.6e-37) {
tmp = j * (a * c);
} else if (a <= 3.1e+36) {
tmp = i * (t * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.6e-37: tmp = j * (a * c) elif a <= 3.1e+36: tmp = i * (t * b) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.6e-37) tmp = Float64(j * Float64(a * c)); elseif (a <= 3.1e+36) tmp = Float64(i * Float64(t * b)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.6e-37) tmp = j * (a * c); elseif (a <= 3.1e+36) tmp = i * (t * b); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.6e-37], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e+36], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{-37}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+36}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -2.5999999999999998e-37Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in c around inf 49.4%
Taylor expanded in a around inf 37.8%
*-commutative37.8%
*-commutative37.8%
associate-*l*41.0%
Simplified41.0%
if -2.5999999999999998e-37 < a < 3.0999999999999999e36Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in b around inf 46.3%
Taylor expanded in i around inf 27.7%
if 3.0999999999999999e36 < a Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in c around inf 46.4%
Taylor expanded in a around inf 38.7%
*-commutative38.7%
Simplified38.7%
Final simplification34.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -2.4e-180) (* b (* z c)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e-180) {
tmp = b * (z * c);
} else {
tmp = a * (x * 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 (a <= (-2.4d-180)) then
tmp = b * (z * c)
else
tmp = a * (x * 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 (a <= -2.4e-180) {
tmp = b * (z * c);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.4e-180: tmp = b * (z * c) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.4e-180) tmp = Float64(b * Float64(z * c)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.4e-180) tmp = b * (z * c); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.4e-180], N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.4 \cdot 10^{-180}:\\
\;\;\;\;b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if a < -2.39999999999999979e-180Initial program 71.6%
cancel-sign-sub71.6%
cancel-sign-sub-inv71.6%
*-commutative71.6%
remove-double-neg71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in c around inf 45.6%
Taylor expanded in a around 0 22.6%
associate-*r*22.6%
neg-mul-122.6%
*-commutative22.6%
Simplified22.6%
expm1-log1p-u8.8%
expm1-udef8.7%
associate-*r*8.7%
*-commutative8.7%
add-sqr-sqrt6.2%
sqrt-unprod9.6%
sqr-neg9.6%
sqrt-unprod1.5%
add-sqr-sqrt5.4%
Applied egg-rr5.4%
expm1-def5.6%
expm1-log1p9.5%
*-commutative9.5%
*-commutative9.5%
associate-*l*8.7%
Simplified8.7%
if -2.39999999999999979e-180 < a Initial program 69.9%
cancel-sign-sub69.9%
cancel-sign-sub-inv69.9%
*-commutative69.9%
remove-double-neg69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in a around -inf 28.5%
mul-1-neg28.5%
*-commutative28.5%
distribute-rgt-neg-in28.5%
mul-1-neg28.5%
unsub-neg28.5%
Simplified28.5%
Taylor expanded in t around inf 15.7%
expm1-log1p-u12.2%
expm1-udef11.6%
add-sqr-sqrt0.2%
sqrt-unprod4.2%
sqr-neg4.2%
sqrt-unprod2.7%
add-sqr-sqrt3.7%
associate-*l*2.4%
Applied egg-rr2.4%
expm1-def2.5%
expm1-log1p5.7%
associate-*r*7.7%
*-commutative7.7%
Simplified7.7%
Final simplification8.1%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* x t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (x * t);
}
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 * (x * t)
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 * (x * t);
}
def code(x, y, z, t, a, b, c, i, j): return a * (x * t)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(x * t)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (x * t); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(x \cdot t\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 a around -inf 37.8%
mul-1-neg37.8%
*-commutative37.8%
distribute-rgt-neg-in37.8%
mul-1-neg37.8%
unsub-neg37.8%
Simplified37.8%
Taylor expanded in t around inf 20.2%
expm1-log1p-u12.0%
expm1-udef11.6%
add-sqr-sqrt5.1%
sqrt-unprod8.5%
sqr-neg8.5%
sqrt-unprod1.6%
add-sqr-sqrt3.2%
associate-*l*2.5%
Applied egg-rr2.5%
expm1-def2.5%
expm1-log1p5.3%
associate-*r*6.1%
*-commutative6.1%
Simplified6.1%
Final simplification6.1%
(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 41.4%
Taylor expanded in a around inf 22.7%
*-commutative22.7%
Simplified22.7%
Final simplification22.7%
(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 2023228
(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)))))