
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b i) (* x a))) (t_2 (* j (- (* a c) (* y i)))))
(if (<=
(- t_2 (+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))
INFINITY)
(fma b (- (* t i) (* z c)) (fma x (- (* y z) (* t a)) t_2))
(* t (cbrt (* t_1 (* t_1 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 * i) - (x * a);
double t_2 = j * ((a * c) - (y * i));
double tmp;
if ((t_2 - ((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_2));
} else {
tmp = t * cbrt((t_1 * (t_1 * t_1)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * i) - Float64(x * a)) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (Float64(t_2 - 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_2)); else tmp = Float64(t * cbrt(Float64(t_1 * Float64(t_1 * t_1)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 - 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$2), $MachinePrecision]), $MachinePrecision], N[(t * N[Power[N[(t$95$1 * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot i - x \cdot a\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_2 - \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_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \sqrt[3]{t_1 \cdot \left(t_1 \cdot t_1\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 91.2%
sub-neg91.2%
+-commutative91.2%
associate-+l+91.2%
distribute-rgt-neg-in91.2%
+-commutative91.2%
fma-def91.2%
sub-neg91.2%
+-commutative91.2%
distribute-neg-in91.2%
unsub-neg91.2%
remove-double-neg91.2%
*-commutative91.2%
Simplified91.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def15.9%
sub-neg15.9%
+-commutative15.9%
distribute-neg-in15.9%
unsub-neg15.9%
remove-double-neg15.9%
*-commutative15.9%
Simplified25.0%
Taylor expanded in t around inf 48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
add-cbrt-cube54.9%
*-commutative54.9%
*-commutative54.9%
*-commutative54.9%
Applied egg-rr54.9%
Final simplification85.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b i) (* x a)))
(t_2
(-
(* j (- (* a c) (* y i)))
(+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))))
(if (<= t_2 INFINITY) t_2 (* t (cbrt (* t_1 (* t_1 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 * i) - (x * a);
double t_2 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t * cbrt((t_1 * (t_1 * t_1)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * i) - (x * a);
double t_2 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t * Math.cbrt((t_1 * (t_1 * t_1)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * i) - Float64(x * a)) t_2 = 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_2 <= Inf) tmp = t_2; else tmp = Float64(t * cbrt(Float64(t_1 * Float64(t_1 * t_1)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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$2, Infinity], t$95$2, N[(t * N[Power[N[(t$95$1 * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot i - x \cdot a\\
t_2 := 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_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \sqrt[3]{t_1 \cdot \left(t_1 \cdot t_1\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 91.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def15.9%
sub-neg15.9%
+-commutative15.9%
distribute-neg-in15.9%
unsub-neg15.9%
remove-double-neg15.9%
*-commutative15.9%
Simplified25.0%
Taylor expanded in t around inf 48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
add-cbrt-cube54.9%
*-commutative54.9%
*-commutative54.9%
*-commutative54.9%
Applied egg-rr54.9%
Final simplification85.0%
(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 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (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 = y * ((x * z) - (i * 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 = y * ((x * z) - (i * 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 = y * ((x * z) - (i * 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(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (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 = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * 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}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \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 91.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def15.9%
sub-neg15.9%
+-commutative15.9%
distribute-neg-in15.9%
unsub-neg15.9%
remove-double-neg15.9%
*-commutative15.9%
Simplified25.0%
Taylor expanded in y around inf 53.0%
*-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Final simplification84.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* t (* b i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= x -1.7e+46)
t_2
(if (<= x 1.1e-271)
t_1
(if (<= x 1.25e-204)
(* c (- (* a j) (* z b)))
(if (<= x 1.85e-165)
t_3
(if (<= x 1.45e-91)
(* b (- (* t i) (* z c)))
(if (<= x 3.8e-8)
t_1
(if (<= x 7e+60)
t_2
(if (<= x 2.3e+86) t_1 (if (<= x 1.05e+107) 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 = (j * ((a * c) - (y * i))) + (t * (b * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (x <= -1.7e+46) {
tmp = t_2;
} else if (x <= 1.1e-271) {
tmp = t_1;
} else if (x <= 1.25e-204) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 1.85e-165) {
tmp = t_3;
} else if (x <= 1.45e-91) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 3.8e-8) {
tmp = t_1;
} else if (x <= 7e+60) {
tmp = t_2;
} else if (x <= 2.3e+86) {
tmp = t_1;
} else if (x <= 1.05e+107) {
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 = (j * ((a * c) - (y * i))) + (t * (b * i))
t_2 = x * ((y * z) - (t * a))
t_3 = i * ((t * b) - (y * j))
if (x <= (-1.7d+46)) then
tmp = t_2
else if (x <= 1.1d-271) then
tmp = t_1
else if (x <= 1.25d-204) then
tmp = c * ((a * j) - (z * b))
else if (x <= 1.85d-165) then
tmp = t_3
else if (x <= 1.45d-91) then
tmp = b * ((t * i) - (z * c))
else if (x <= 3.8d-8) then
tmp = t_1
else if (x <= 7d+60) then
tmp = t_2
else if (x <= 2.3d+86) then
tmp = t_1
else if (x <= 1.05d+107) 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 = (j * ((a * c) - (y * i))) + (t * (b * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (x <= -1.7e+46) {
tmp = t_2;
} else if (x <= 1.1e-271) {
tmp = t_1;
} else if (x <= 1.25e-204) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 1.85e-165) {
tmp = t_3;
} else if (x <= 1.45e-91) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 3.8e-8) {
tmp = t_1;
} else if (x <= 7e+60) {
tmp = t_2;
} else if (x <= 2.3e+86) {
tmp = t_1;
} else if (x <= 1.05e+107) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (t * (b * i)) t_2 = x * ((y * z) - (t * a)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if x <= -1.7e+46: tmp = t_2 elif x <= 1.1e-271: tmp = t_1 elif x <= 1.25e-204: tmp = c * ((a * j) - (z * b)) elif x <= 1.85e-165: tmp = t_3 elif x <= 1.45e-91: tmp = b * ((t * i) - (z * c)) elif x <= 3.8e-8: tmp = t_1 elif x <= 7e+60: tmp = t_2 elif x <= 2.3e+86: tmp = t_1 elif x <= 1.05e+107: tmp = t_3 else: tmp = t_2 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(t * Float64(b * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (x <= -1.7e+46) tmp = t_2; elseif (x <= 1.1e-271) tmp = t_1; elseif (x <= 1.25e-204) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (x <= 1.85e-165) tmp = t_3; elseif (x <= 1.45e-91) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (x <= 3.8e-8) tmp = t_1; elseif (x <= 7e+60) tmp = t_2; elseif (x <= 2.3e+86) tmp = t_1; elseif (x <= 1.05e+107) 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 = (j * ((a * c) - (y * i))) + (t * (b * i)); t_2 = x * ((y * z) - (t * a)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (x <= -1.7e+46) tmp = t_2; elseif (x <= 1.1e-271) tmp = t_1; elseif (x <= 1.25e-204) tmp = c * ((a * j) - (z * b)); elseif (x <= 1.85e-165) tmp = t_3; elseif (x <= 1.45e-91) tmp = b * ((t * i) - (z * c)); elseif (x <= 3.8e-8) tmp = t_1; elseif (x <= 7e+60) tmp = t_2; elseif (x <= 2.3e+86) tmp = t_1; elseif (x <= 1.05e+107) 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[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.7e+46], t$95$2, If[LessEqual[x, 1.1e-271], t$95$1, If[LessEqual[x, 1.25e-204], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e-165], t$95$3, If[LessEqual[x, 1.45e-91], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e-8], t$95$1, If[LessEqual[x, 7e+60], t$95$2, If[LessEqual[x, 2.3e+86], t$95$1, If[LessEqual[x, 1.05e+107], t$95$3, t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+46}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-204}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-165}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-91}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+60}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+107}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.6999999999999999e46 or 3.80000000000000028e-8 < x < 7.0000000000000004e60 or 1.05e107 < x Initial program 74.2%
sub-neg74.2%
+-commutative74.2%
associate-+l+74.2%
distribute-rgt-neg-in74.2%
+-commutative74.2%
fma-def80.4%
sub-neg80.4%
+-commutative80.4%
distribute-neg-in80.4%
unsub-neg80.4%
remove-double-neg80.4%
*-commutative80.4%
Simplified84.5%
Taylor expanded in x around inf 73.1%
if -1.6999999999999999e46 < x < 1.1e-271 or 1.45e-91 < x < 3.80000000000000028e-8 or 7.0000000000000004e60 < x < 2.2999999999999999e86Initial program 81.9%
cancel-sign-sub81.9%
cancel-sign-sub-inv81.9%
*-commutative81.9%
remove-double-neg81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in i around inf 63.5%
associate-*r*65.4%
*-commutative65.4%
associate-*r*66.2%
Simplified66.2%
if 1.1e-271 < x < 1.25e-204Initial program 72.2%
sub-neg72.2%
+-commutative72.2%
associate-+l+72.2%
distribute-rgt-neg-in72.2%
+-commutative72.2%
fma-def77.0%
sub-neg77.0%
+-commutative77.0%
distribute-neg-in77.0%
unsub-neg77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in c around inf 60.8%
distribute-rgt-in56.1%
*-commutative56.1%
mul-1-neg56.1%
cancel-sign-sub-inv56.1%
*-commutative56.1%
distribute-rgt-out--60.8%
Simplified60.8%
if 1.25e-204 < x < 1.85000000000000001e-165 or 2.2999999999999999e86 < x < 1.05e107Initial program 70.0%
sub-neg70.0%
+-commutative70.0%
associate-+l+70.0%
distribute-rgt-neg-in70.0%
+-commutative70.0%
fma-def70.0%
sub-neg70.0%
+-commutative70.0%
distribute-neg-in70.0%
unsub-neg70.0%
remove-double-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in i around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if 1.85000000000000001e-165 < x < 1.45e-91Initial program 52.8%
sub-neg52.8%
+-commutative52.8%
associate-+l+52.8%
distribute-rgt-neg-in52.8%
+-commutative52.8%
fma-def52.8%
sub-neg52.8%
+-commutative52.8%
distribute-neg-in52.8%
unsub-neg52.8%
remove-double-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in b around inf 64.3%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* b (- (* t i) (* z c))))
(t_4 (* t (- (* b i) (* x a)))))
(if (<= j -9.4e+27)
t_2
(if (<= j -9.6e-60)
t_3
(if (<= j -1.26e-84)
(* x (* y z))
(if (<= j -1.5e-152)
t_3
(if (<= j -2.9e-195)
t_1
(if (<= j -7.4e-277)
t_3
(if (<= j 6.5e-285)
t_1
(if (<= j 3.45e-186)
t_4
(if (<= j 470.0)
(* y (- (* x z) (* i j)))
(if (<= j 3.4e+67) t_4 t_2))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = b * ((t * i) - (z * c));
double t_4 = t * ((b * i) - (x * a));
double tmp;
if (j <= -9.4e+27) {
tmp = t_2;
} else if (j <= -9.6e-60) {
tmp = t_3;
} else if (j <= -1.26e-84) {
tmp = x * (y * z);
} else if (j <= -1.5e-152) {
tmp = t_3;
} else if (j <= -2.9e-195) {
tmp = t_1;
} else if (j <= -7.4e-277) {
tmp = t_3;
} else if (j <= 6.5e-285) {
tmp = t_1;
} else if (j <= 3.45e-186) {
tmp = t_4;
} else if (j <= 470.0) {
tmp = y * ((x * z) - (i * j));
} else if (j <= 3.4e+67) {
tmp = t_4;
} 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) :: t_4
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = j * ((a * c) - (y * i))
t_3 = b * ((t * i) - (z * c))
t_4 = t * ((b * i) - (x * a))
if (j <= (-9.4d+27)) then
tmp = t_2
else if (j <= (-9.6d-60)) then
tmp = t_3
else if (j <= (-1.26d-84)) then
tmp = x * (y * z)
else if (j <= (-1.5d-152)) then
tmp = t_3
else if (j <= (-2.9d-195)) then
tmp = t_1
else if (j <= (-7.4d-277)) then
tmp = t_3
else if (j <= 6.5d-285) then
tmp = t_1
else if (j <= 3.45d-186) then
tmp = t_4
else if (j <= 470.0d0) then
tmp = y * ((x * z) - (i * j))
else if (j <= 3.4d+67) then
tmp = t_4
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = b * ((t * i) - (z * c));
double t_4 = t * ((b * i) - (x * a));
double tmp;
if (j <= -9.4e+27) {
tmp = t_2;
} else if (j <= -9.6e-60) {
tmp = t_3;
} else if (j <= -1.26e-84) {
tmp = x * (y * z);
} else if (j <= -1.5e-152) {
tmp = t_3;
} else if (j <= -2.9e-195) {
tmp = t_1;
} else if (j <= -7.4e-277) {
tmp = t_3;
} else if (j <= 6.5e-285) {
tmp = t_1;
} else if (j <= 3.45e-186) {
tmp = t_4;
} else if (j <= 470.0) {
tmp = y * ((x * z) - (i * j));
} else if (j <= 3.4e+67) {
tmp = t_4;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = j * ((a * c) - (y * i)) t_3 = b * ((t * i) - (z * c)) t_4 = t * ((b * i) - (x * a)) tmp = 0 if j <= -9.4e+27: tmp = t_2 elif j <= -9.6e-60: tmp = t_3 elif j <= -1.26e-84: tmp = x * (y * z) elif j <= -1.5e-152: tmp = t_3 elif j <= -2.9e-195: tmp = t_1 elif j <= -7.4e-277: tmp = t_3 elif j <= 6.5e-285: tmp = t_1 elif j <= 3.45e-186: tmp = t_4 elif j <= 470.0: tmp = y * ((x * z) - (i * j)) elif j <= 3.4e+67: tmp = t_4 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_4 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (j <= -9.4e+27) tmp = t_2; elseif (j <= -9.6e-60) tmp = t_3; elseif (j <= -1.26e-84) tmp = Float64(x * Float64(y * z)); elseif (j <= -1.5e-152) tmp = t_3; elseif (j <= -2.9e-195) tmp = t_1; elseif (j <= -7.4e-277) tmp = t_3; elseif (j <= 6.5e-285) tmp = t_1; elseif (j <= 3.45e-186) tmp = t_4; elseif (j <= 470.0) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (j <= 3.4e+67) tmp = t_4; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = j * ((a * c) - (y * i)); t_3 = b * ((t * i) - (z * c)); t_4 = t * ((b * i) - (x * a)); tmp = 0.0; if (j <= -9.4e+27) tmp = t_2; elseif (j <= -9.6e-60) tmp = t_3; elseif (j <= -1.26e-84) tmp = x * (y * z); elseif (j <= -1.5e-152) tmp = t_3; elseif (j <= -2.9e-195) tmp = t_1; elseif (j <= -7.4e-277) tmp = t_3; elseif (j <= 6.5e-285) tmp = t_1; elseif (j <= 3.45e-186) tmp = t_4; elseif (j <= 470.0) tmp = y * ((x * z) - (i * j)); elseif (j <= 3.4e+67) tmp = t_4; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.4e+27], t$95$2, If[LessEqual[j, -9.6e-60], t$95$3, If[LessEqual[j, -1.26e-84], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.5e-152], t$95$3, If[LessEqual[j, -2.9e-195], t$95$1, If[LessEqual[j, -7.4e-277], t$95$3, If[LessEqual[j, 6.5e-285], t$95$1, If[LessEqual[j, 3.45e-186], t$95$4, If[LessEqual[j, 470.0], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.4e+67], t$95$4, t$95$2]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_4 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;j \leq -9.4 \cdot 10^{+27}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -9.6 \cdot 10^{-60}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -1.26 \cdot 10^{-84}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq -1.5 \cdot 10^{-152}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -2.9 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -7.4 \cdot 10^{-277}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-285}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.45 \cdot 10^{-186}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 470:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{+67}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -9.39999999999999952e27 or 3.4000000000000002e67 < j Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified80.8%
Taylor expanded in j around inf 68.9%
mul-1-neg68.9%
sub-neg68.9%
Simplified68.9%
if -9.39999999999999952e27 < j < -9.60000000000000038e-60 or -1.26e-84 < j < -1.5e-152 or -2.9000000000000002e-195 < j < -7.3999999999999997e-277Initial program 78.9%
sub-neg78.9%
+-commutative78.9%
associate-+l+78.9%
distribute-rgt-neg-in78.9%
+-commutative78.9%
fma-def80.6%
sub-neg80.6%
+-commutative80.6%
distribute-neg-in80.6%
unsub-neg80.6%
remove-double-neg80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in b around inf 66.6%
if -9.60000000000000038e-60 < j < -1.26e-84Initial program 80.0%
sub-neg80.0%
+-commutative80.0%
associate-+l+80.0%
distribute-rgt-neg-in80.0%
+-commutative80.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -1.5e-152 < j < -2.9000000000000002e-195 or -7.3999999999999997e-277 < j < 6.5e-285Initial program 86.8%
cancel-sign-sub86.8%
cancel-sign-sub-inv86.8%
*-commutative86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in z around inf 71.5%
if 6.5e-285 < j < 3.4500000000000001e-186 or 470 < j < 3.4000000000000002e67Initial program 68.5%
sub-neg68.5%
+-commutative68.5%
associate-+l+68.5%
distribute-rgt-neg-in68.5%
+-commutative68.5%
fma-def71.7%
sub-neg71.7%
+-commutative71.7%
distribute-neg-in71.7%
unsub-neg71.7%
remove-double-neg71.7%
*-commutative71.7%
Simplified74.9%
Taylor expanded in t around inf 71.5%
mul-1-neg71.5%
unsub-neg71.5%
Simplified71.5%
if 3.4500000000000001e-186 < j < 470Initial program 70.1%
sub-neg70.1%
+-commutative70.1%
associate-+l+70.1%
distribute-rgt-neg-in70.1%
+-commutative70.1%
fma-def70.1%
sub-neg70.1%
+-commutative70.1%
distribute-neg-in70.1%
unsub-neg70.1%
remove-double-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in y around inf 54.9%
*-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
Simplified54.9%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* j (- (* a c) (* y i))))
(t_4 (* z (- (* x y) (* b c)))))
(if (<= j -6.2e+27)
t_3
(if (<= j -2.4e-38)
t_2
(if (<= j -1.7e-85)
t_1
(if (<= j -1.1e-151)
t_2
(if (<= j -4.6e-195)
t_4
(if (<= j -1.95e-277)
t_2
(if (<= j 1.2e-285)
t_4
(if (<= j 1e-218)
(* t (- (* b i) (* x a)))
(if (<= j 1.02e+71) t_1 t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double t_3 = j * ((a * c) - (y * i));
double t_4 = z * ((x * y) - (b * c));
double tmp;
if (j <= -6.2e+27) {
tmp = t_3;
} else if (j <= -2.4e-38) {
tmp = t_2;
} else if (j <= -1.7e-85) {
tmp = t_1;
} else if (j <= -1.1e-151) {
tmp = t_2;
} else if (j <= -4.6e-195) {
tmp = t_4;
} else if (j <= -1.95e-277) {
tmp = t_2;
} else if (j <= 1.2e-285) {
tmp = t_4;
} else if (j <= 1e-218) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 1.02e+71) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((t * i) - (z * c))
t_3 = j * ((a * c) - (y * i))
t_4 = z * ((x * y) - (b * c))
if (j <= (-6.2d+27)) then
tmp = t_3
else if (j <= (-2.4d-38)) then
tmp = t_2
else if (j <= (-1.7d-85)) then
tmp = t_1
else if (j <= (-1.1d-151)) then
tmp = t_2
else if (j <= (-4.6d-195)) then
tmp = t_4
else if (j <= (-1.95d-277)) then
tmp = t_2
else if (j <= 1.2d-285) then
tmp = t_4
else if (j <= 1d-218) then
tmp = t * ((b * i) - (x * a))
else if (j <= 1.02d+71) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = b * ((t * i) - (z * c));
double t_3 = j * ((a * c) - (y * i));
double t_4 = z * ((x * y) - (b * c));
double tmp;
if (j <= -6.2e+27) {
tmp = t_3;
} else if (j <= -2.4e-38) {
tmp = t_2;
} else if (j <= -1.7e-85) {
tmp = t_1;
} else if (j <= -1.1e-151) {
tmp = t_2;
} else if (j <= -4.6e-195) {
tmp = t_4;
} else if (j <= -1.95e-277) {
tmp = t_2;
} else if (j <= 1.2e-285) {
tmp = t_4;
} else if (j <= 1e-218) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 1.02e+71) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((t * i) - (z * c)) t_3 = j * ((a * c) - (y * i)) t_4 = z * ((x * y) - (b * c)) tmp = 0 if j <= -6.2e+27: tmp = t_3 elif j <= -2.4e-38: tmp = t_2 elif j <= -1.7e-85: tmp = t_1 elif j <= -1.1e-151: tmp = t_2 elif j <= -4.6e-195: tmp = t_4 elif j <= -1.95e-277: tmp = t_2 elif j <= 1.2e-285: tmp = t_4 elif j <= 1e-218: tmp = t * ((b * i) - (x * a)) elif j <= 1.02e+71: tmp = t_1 else: tmp = t_3 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(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_4 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (j <= -6.2e+27) tmp = t_3; elseif (j <= -2.4e-38) tmp = t_2; elseif (j <= -1.7e-85) tmp = t_1; elseif (j <= -1.1e-151) tmp = t_2; elseif (j <= -4.6e-195) tmp = t_4; elseif (j <= -1.95e-277) tmp = t_2; elseif (j <= 1.2e-285) tmp = t_4; elseif (j <= 1e-218) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 1.02e+71) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((t * i) - (z * c)); t_3 = j * ((a * c) - (y * i)); t_4 = z * ((x * y) - (b * c)); tmp = 0.0; if (j <= -6.2e+27) tmp = t_3; elseif (j <= -2.4e-38) tmp = t_2; elseif (j <= -1.7e-85) tmp = t_1; elseif (j <= -1.1e-151) tmp = t_2; elseif (j <= -4.6e-195) tmp = t_4; elseif (j <= -1.95e-277) tmp = t_2; elseif (j <= 1.2e-285) tmp = t_4; elseif (j <= 1e-218) tmp = t * ((b * i) - (x * a)); elseif (j <= 1.02e+71) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.2e+27], t$95$3, If[LessEqual[j, -2.4e-38], t$95$2, If[LessEqual[j, -1.7e-85], t$95$1, If[LessEqual[j, -1.1e-151], t$95$2, If[LessEqual[j, -4.6e-195], t$95$4, If[LessEqual[j, -1.95e-277], t$95$2, If[LessEqual[j, 1.2e-285], t$95$4, If[LessEqual[j, 1e-218], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.02e+71], t$95$1, t$95$3]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_4 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;j \leq -6.2 \cdot 10^{+27}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -2.4 \cdot 10^{-38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.1 \cdot 10^{-151}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -4.6 \cdot 10^{-195}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq -1.95 \cdot 10^{-277}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{-285}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 10^{-218}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 1.02 \cdot 10^{+71}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -6.19999999999999992e27 or 1.02000000000000003e71 < j Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified80.8%
Taylor expanded in j around inf 68.9%
mul-1-neg68.9%
sub-neg68.9%
Simplified68.9%
if -6.19999999999999992e27 < j < -2.40000000000000022e-38 or -1.7e-85 < j < -1.1e-151 or -4.6000000000000004e-195 < j < -1.94999999999999993e-277Initial program 80.8%
sub-neg80.8%
+-commutative80.8%
associate-+l+80.8%
distribute-rgt-neg-in80.8%
+-commutative80.8%
fma-def82.5%
sub-neg82.5%
+-commutative82.5%
distribute-neg-in82.5%
unsub-neg82.5%
remove-double-neg82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in b around inf 69.3%
if -2.40000000000000022e-38 < j < -1.7e-85 or 1e-218 < j < 1.02000000000000003e71Initial program 69.3%
sub-neg69.3%
+-commutative69.3%
associate-+l+69.3%
distribute-rgt-neg-in69.3%
+-commutative69.3%
fma-def72.8%
sub-neg72.8%
+-commutative72.8%
distribute-neg-in72.8%
unsub-neg72.8%
remove-double-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in x around inf 57.8%
if -1.1e-151 < j < -4.6000000000000004e-195 or -1.94999999999999993e-277 < j < 1.2e-285Initial program 86.8%
cancel-sign-sub86.8%
cancel-sign-sub-inv86.8%
*-commutative86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in z around inf 71.5%
if 1.2e-285 < j < 1e-218Initial program 67.8%
sub-neg67.8%
+-commutative67.8%
associate-+l+67.8%
distribute-rgt-neg-in67.8%
+-commutative67.8%
fma-def67.8%
sub-neg67.8%
+-commutative67.8%
distribute-neg-in67.8%
unsub-neg67.8%
remove-double-neg67.8%
*-commutative67.8%
Simplified76.1%
Taylor expanded in t around inf 74.9%
mul-1-neg74.9%
unsub-neg74.9%
Simplified74.9%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= j -2.2e+28)
t_2
(if (<= j -9e-56)
t_1
(if (<= j -2.5e-88)
(+ (* c (* a j)) (* x (* y z)))
(if (<= j -1.08e-151)
t_1
(if (<= j -3.5e-195)
t_3
(if (<= j -4.2e-277)
t_1
(if (<= j 4.6e-283)
t_3
(if (<= j 8.2e-222)
(* t (- (* b i) (* x a)))
(if (<= j 6.6e+73) (* x (- (* y z) (* t a))) t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (j <= -2.2e+28) {
tmp = t_2;
} else if (j <= -9e-56) {
tmp = t_1;
} else if (j <= -2.5e-88) {
tmp = (c * (a * j)) + (x * (y * z));
} else if (j <= -1.08e-151) {
tmp = t_1;
} else if (j <= -3.5e-195) {
tmp = t_3;
} else if (j <= -4.2e-277) {
tmp = t_1;
} else if (j <= 4.6e-283) {
tmp = t_3;
} else if (j <= 8.2e-222) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 6.6e+73) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
t_3 = z * ((x * y) - (b * c))
if (j <= (-2.2d+28)) then
tmp = t_2
else if (j <= (-9d-56)) then
tmp = t_1
else if (j <= (-2.5d-88)) then
tmp = (c * (a * j)) + (x * (y * z))
else if (j <= (-1.08d-151)) then
tmp = t_1
else if (j <= (-3.5d-195)) then
tmp = t_3
else if (j <= (-4.2d-277)) then
tmp = t_1
else if (j <= 4.6d-283) then
tmp = t_3
else if (j <= 8.2d-222) then
tmp = t * ((b * i) - (x * a))
else if (j <= 6.6d+73) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (j <= -2.2e+28) {
tmp = t_2;
} else if (j <= -9e-56) {
tmp = t_1;
} else if (j <= -2.5e-88) {
tmp = (c * (a * j)) + (x * (y * z));
} else if (j <= -1.08e-151) {
tmp = t_1;
} else if (j <= -3.5e-195) {
tmp = t_3;
} else if (j <= -4.2e-277) {
tmp = t_1;
} else if (j <= 4.6e-283) {
tmp = t_3;
} else if (j <= 8.2e-222) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 6.6e+73) {
tmp = x * ((y * z) - (t * a));
} 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 = j * ((a * c) - (y * i)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if j <= -2.2e+28: tmp = t_2 elif j <= -9e-56: tmp = t_1 elif j <= -2.5e-88: tmp = (c * (a * j)) + (x * (y * z)) elif j <= -1.08e-151: tmp = t_1 elif j <= -3.5e-195: tmp = t_3 elif j <= -4.2e-277: tmp = t_1 elif j <= 4.6e-283: tmp = t_3 elif j <= 8.2e-222: tmp = t * ((b * i) - (x * a)) elif j <= 6.6e+73: tmp = x * ((y * z) - (t * a)) 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(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (j <= -2.2e+28) tmp = t_2; elseif (j <= -9e-56) tmp = t_1; elseif (j <= -2.5e-88) tmp = Float64(Float64(c * Float64(a * j)) + Float64(x * Float64(y * z))); elseif (j <= -1.08e-151) tmp = t_1; elseif (j <= -3.5e-195) tmp = t_3; elseif (j <= -4.2e-277) tmp = t_1; elseif (j <= 4.6e-283) tmp = t_3; elseif (j <= 8.2e-222) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 6.6e+73) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); 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 = j * ((a * c) - (y * i)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (j <= -2.2e+28) tmp = t_2; elseif (j <= -9e-56) tmp = t_1; elseif (j <= -2.5e-88) tmp = (c * (a * j)) + (x * (y * z)); elseif (j <= -1.08e-151) tmp = t_1; elseif (j <= -3.5e-195) tmp = t_3; elseif (j <= -4.2e-277) tmp = t_1; elseif (j <= 4.6e-283) tmp = t_3; elseif (j <= 8.2e-222) tmp = t * ((b * i) - (x * a)); elseif (j <= 6.6e+73) tmp = x * ((y * z) - (t * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.2e+28], t$95$2, If[LessEqual[j, -9e-56], t$95$1, If[LessEqual[j, -2.5e-88], N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.08e-151], t$95$1, If[LessEqual[j, -3.5e-195], t$95$3, If[LessEqual[j, -4.2e-277], t$95$1, If[LessEqual[j, 4.6e-283], t$95$3, If[LessEqual[j, 8.2e-222], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.6e+73], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;j \leq -2.2 \cdot 10^{+28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -9 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.5 \cdot 10^{-88}:\\
\;\;\;\;c \cdot \left(a \cdot j\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq -1.08 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.5 \cdot 10^{-195}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{-283}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 8.2 \cdot 10^{-222}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 6.6 \cdot 10^{+73}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -2.19999999999999986e28 or 6.60000000000000061e73 < j Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified80.8%
Taylor expanded in j around inf 68.9%
mul-1-neg68.9%
sub-neg68.9%
Simplified68.9%
if -2.19999999999999986e28 < j < -9.0000000000000001e-56 or -2.50000000000000004e-88 < j < -1.07999999999999999e-151 or -3.50000000000000014e-195 < j < -4.1999999999999999e-277Initial program 78.6%
sub-neg78.6%
+-commutative78.6%
associate-+l+78.6%
distribute-rgt-neg-in78.6%
+-commutative78.6%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
distribute-neg-in80.2%
unsub-neg80.2%
remove-double-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in b around inf 67.6%
if -9.0000000000000001e-56 < j < -2.50000000000000004e-88Initial program 83.3%
+-commutative83.3%
fma-def83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in b around 0 100.0%
Taylor expanded in i around 0 100.0%
Taylor expanded in y around inf 100.0%
*-commutative83.7%
Simplified100.0%
if -1.07999999999999999e-151 < j < -3.50000000000000014e-195 or -4.1999999999999999e-277 < j < 4.5999999999999998e-283Initial program 86.8%
cancel-sign-sub86.8%
cancel-sign-sub-inv86.8%
*-commutative86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in z around inf 71.5%
if 4.5999999999999998e-283 < j < 8.2000000000000006e-222Initial program 67.8%
sub-neg67.8%
+-commutative67.8%
associate-+l+67.8%
distribute-rgt-neg-in67.8%
+-commutative67.8%
fma-def67.8%
sub-neg67.8%
+-commutative67.8%
distribute-neg-in67.8%
unsub-neg67.8%
remove-double-neg67.8%
*-commutative67.8%
Simplified76.1%
Taylor expanded in t around inf 74.9%
mul-1-neg74.9%
unsub-neg74.9%
Simplified74.9%
if 8.2000000000000006e-222 < j < 6.60000000000000061e73Initial program 69.6%
sub-neg69.6%
+-commutative69.6%
associate-+l+69.6%
distribute-rgt-neg-in69.6%
+-commutative69.6%
fma-def71.7%
sub-neg71.7%
+-commutative71.7%
distribute-neg-in71.7%
unsub-neg71.7%
remove-double-neg71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in x around inf 54.0%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= j -1.4e+28)
t_2
(if (<= j -3.2e-59)
t_1
(if (<= j -1.5e-87)
(+ (* c (* a j)) (* x (* y z)))
(if (<= j -8e-152)
t_1
(if (<= j -8.2e-195)
t_3
(if (<= j -1.9e-277)
t_1
(if (<= j 1.08e-281)
t_3
(if (<= j 7.5e-206)
(- (* i (* t b)) (* a (* x t)))
(if (<= j 6e+74) (* x (- (* y z) (* t a))) t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (j <= -1.4e+28) {
tmp = t_2;
} else if (j <= -3.2e-59) {
tmp = t_1;
} else if (j <= -1.5e-87) {
tmp = (c * (a * j)) + (x * (y * z));
} else if (j <= -8e-152) {
tmp = t_1;
} else if (j <= -8.2e-195) {
tmp = t_3;
} else if (j <= -1.9e-277) {
tmp = t_1;
} else if (j <= 1.08e-281) {
tmp = t_3;
} else if (j <= 7.5e-206) {
tmp = (i * (t * b)) - (a * (x * t));
} else if (j <= 6e+74) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
t_3 = z * ((x * y) - (b * c))
if (j <= (-1.4d+28)) then
tmp = t_2
else if (j <= (-3.2d-59)) then
tmp = t_1
else if (j <= (-1.5d-87)) then
tmp = (c * (a * j)) + (x * (y * z))
else if (j <= (-8d-152)) then
tmp = t_1
else if (j <= (-8.2d-195)) then
tmp = t_3
else if (j <= (-1.9d-277)) then
tmp = t_1
else if (j <= 1.08d-281) then
tmp = t_3
else if (j <= 7.5d-206) then
tmp = (i * (t * b)) - (a * (x * t))
else if (j <= 6d+74) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (j <= -1.4e+28) {
tmp = t_2;
} else if (j <= -3.2e-59) {
tmp = t_1;
} else if (j <= -1.5e-87) {
tmp = (c * (a * j)) + (x * (y * z));
} else if (j <= -8e-152) {
tmp = t_1;
} else if (j <= -8.2e-195) {
tmp = t_3;
} else if (j <= -1.9e-277) {
tmp = t_1;
} else if (j <= 1.08e-281) {
tmp = t_3;
} else if (j <= 7.5e-206) {
tmp = (i * (t * b)) - (a * (x * t));
} else if (j <= 6e+74) {
tmp = x * ((y * z) - (t * a));
} 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 = j * ((a * c) - (y * i)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if j <= -1.4e+28: tmp = t_2 elif j <= -3.2e-59: tmp = t_1 elif j <= -1.5e-87: tmp = (c * (a * j)) + (x * (y * z)) elif j <= -8e-152: tmp = t_1 elif j <= -8.2e-195: tmp = t_3 elif j <= -1.9e-277: tmp = t_1 elif j <= 1.08e-281: tmp = t_3 elif j <= 7.5e-206: tmp = (i * (t * b)) - (a * (x * t)) elif j <= 6e+74: tmp = x * ((y * z) - (t * a)) 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(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (j <= -1.4e+28) tmp = t_2; elseif (j <= -3.2e-59) tmp = t_1; elseif (j <= -1.5e-87) tmp = Float64(Float64(c * Float64(a * j)) + Float64(x * Float64(y * z))); elseif (j <= -8e-152) tmp = t_1; elseif (j <= -8.2e-195) tmp = t_3; elseif (j <= -1.9e-277) tmp = t_1; elseif (j <= 1.08e-281) tmp = t_3; elseif (j <= 7.5e-206) tmp = Float64(Float64(i * Float64(t * b)) - Float64(a * Float64(x * t))); elseif (j <= 6e+74) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); 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 = j * ((a * c) - (y * i)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (j <= -1.4e+28) tmp = t_2; elseif (j <= -3.2e-59) tmp = t_1; elseif (j <= -1.5e-87) tmp = (c * (a * j)) + (x * (y * z)); elseif (j <= -8e-152) tmp = t_1; elseif (j <= -8.2e-195) tmp = t_3; elseif (j <= -1.9e-277) tmp = t_1; elseif (j <= 1.08e-281) tmp = t_3; elseif (j <= 7.5e-206) tmp = (i * (t * b)) - (a * (x * t)); elseif (j <= 6e+74) tmp = x * ((y * z) - (t * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.4e+28], t$95$2, If[LessEqual[j, -3.2e-59], t$95$1, If[LessEqual[j, -1.5e-87], N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8e-152], t$95$1, If[LessEqual[j, -8.2e-195], t$95$3, If[LessEqual[j, -1.9e-277], t$95$1, If[LessEqual[j, 1.08e-281], t$95$3, If[LessEqual[j, 7.5e-206], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e+74], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;j \leq -1.4 \cdot 10^{+28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{-59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.5 \cdot 10^{-87}:\\
\;\;\;\;c \cdot \left(a \cdot j\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq -8 \cdot 10^{-152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-195}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -1.9 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.08 \cdot 10^{-281}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{-206}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.4000000000000001e28 or 6e74 < j Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified80.8%
Taylor expanded in j around inf 68.9%
mul-1-neg68.9%
sub-neg68.9%
Simplified68.9%
if -1.4000000000000001e28 < j < -3.1999999999999999e-59 or -1.50000000000000008e-87 < j < -8.00000000000000053e-152 or -8.20000000000000024e-195 < j < -1.89999999999999993e-277Initial program 78.6%
sub-neg78.6%
+-commutative78.6%
associate-+l+78.6%
distribute-rgt-neg-in78.6%
+-commutative78.6%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
distribute-neg-in80.2%
unsub-neg80.2%
remove-double-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in b around inf 67.6%
if -3.1999999999999999e-59 < j < -1.50000000000000008e-87Initial program 83.3%
+-commutative83.3%
fma-def83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in b around 0 100.0%
Taylor expanded in i around 0 100.0%
Taylor expanded in y around inf 100.0%
*-commutative83.7%
Simplified100.0%
if -8.00000000000000053e-152 < j < -8.20000000000000024e-195 or -1.89999999999999993e-277 < j < 1.07999999999999993e-281Initial program 86.8%
cancel-sign-sub86.8%
cancel-sign-sub-inv86.8%
*-commutative86.8%
remove-double-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in z around inf 71.5%
if 1.07999999999999993e-281 < j < 7.5e-206Initial program 65.6%
sub-neg65.6%
+-commutative65.6%
associate-+l+65.6%
distribute-rgt-neg-in65.6%
+-commutative65.6%
fma-def65.6%
sub-neg65.6%
+-commutative65.6%
distribute-neg-in65.6%
unsub-neg65.6%
remove-double-neg65.6%
*-commutative65.6%
Simplified72.7%
Taylor expanded in c around 0 65.6%
remove-double-neg65.6%
mul-1-neg65.6%
associate-+r+65.6%
+-commutative65.6%
associate-+l+65.6%
*-commutative65.6%
mul-1-neg65.6%
remove-double-neg65.6%
associate-*r*65.6%
*-commutative65.6%
associate-*r*65.6%
associate-*r*65.6%
*-commutative65.6%
distribute-lft-in65.6%
mul-1-neg65.6%
Simplified65.6%
Taylor expanded in y around 0 71.7%
if 7.5e-206 < j < 6e74Initial program 70.4%
sub-neg70.4%
+-commutative70.4%
associate-+l+70.4%
distribute-rgt-neg-in70.4%
+-commutative70.4%
fma-def72.5%
sub-neg72.5%
+-commutative72.5%
distribute-neg-in72.5%
unsub-neg72.5%
remove-double-neg72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in x around inf 54.1%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* c (* a j))))
(t_2 (+ (* j (- (* a c) (* y i))) (* t (* b i)))))
(if (<= x -2.2e+47)
t_1
(if (<= x 8.2e-272)
t_2
(if (<= x 1.56e-208)
(* c (- (* a j) (* z b)))
(if (<= x 3e-172)
(* i (- (* t b) (* y j)))
(if (<= x 1.1e-91)
(* b (- (* t i) (* z c)))
(if (<= x 6.6e-12) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (a * j));
double t_2 = (j * ((a * c) - (y * i))) + (t * (b * i));
double tmp;
if (x <= -2.2e+47) {
tmp = t_1;
} else if (x <= 8.2e-272) {
tmp = t_2;
} else if (x <= 1.56e-208) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 3e-172) {
tmp = i * ((t * b) - (y * j));
} else if (x <= 1.1e-91) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 6.6e-12) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (c * (a * j))
t_2 = (j * ((a * c) - (y * i))) + (t * (b * i))
if (x <= (-2.2d+47)) then
tmp = t_1
else if (x <= 8.2d-272) then
tmp = t_2
else if (x <= 1.56d-208) then
tmp = c * ((a * j) - (z * b))
else if (x <= 3d-172) then
tmp = i * ((t * b) - (y * j))
else if (x <= 1.1d-91) then
tmp = b * ((t * i) - (z * c))
else if (x <= 6.6d-12) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (c * (a * j));
double t_2 = (j * ((a * c) - (y * i))) + (t * (b * i));
double tmp;
if (x <= -2.2e+47) {
tmp = t_1;
} else if (x <= 8.2e-272) {
tmp = t_2;
} else if (x <= 1.56e-208) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 3e-172) {
tmp = i * ((t * b) - (y * j));
} else if (x <= 1.1e-91) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 6.6e-12) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (c * (a * j)) t_2 = (j * ((a * c) - (y * i))) + (t * (b * i)) tmp = 0 if x <= -2.2e+47: tmp = t_1 elif x <= 8.2e-272: tmp = t_2 elif x <= 1.56e-208: tmp = c * ((a * j) - (z * b)) elif x <= 3e-172: tmp = i * ((t * b) - (y * j)) elif x <= 1.1e-91: tmp = b * ((t * i) - (z * c)) elif x <= 6.6e-12: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(a * j))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))) tmp = 0.0 if (x <= -2.2e+47) tmp = t_1; elseif (x <= 8.2e-272) tmp = t_2; elseif (x <= 1.56e-208) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (x <= 3e-172) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (x <= 1.1e-91) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (x <= 6.6e-12) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (c * (a * j)); t_2 = (j * ((a * c) - (y * i))) + (t * (b * i)); tmp = 0.0; if (x <= -2.2e+47) tmp = t_1; elseif (x <= 8.2e-272) tmp = t_2; elseif (x <= 1.56e-208) tmp = c * ((a * j) - (z * b)); elseif (x <= 3e-172) tmp = i * ((t * b) - (y * j)); elseif (x <= 1.1e-91) tmp = b * ((t * i) - (z * c)); elseif (x <= 6.6e-12) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.2e+47], t$95$1, If[LessEqual[x, 8.2e-272], t$95$2, If[LessEqual[x, 1.56e-208], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e-172], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e-91], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.6e-12], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(a \cdot j\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-272}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.56 \cdot 10^{-208}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-172}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-91}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-12}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.1999999999999999e47 or 6.6000000000000001e-12 < x Initial program 75.0%
+-commutative75.0%
fma-def75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in b around 0 79.2%
Taylor expanded in i around 0 73.8%
if -2.1999999999999999e47 < x < 8.1999999999999995e-272 or 1.1e-91 < x < 6.6000000000000001e-12Initial program 81.2%
cancel-sign-sub81.2%
cancel-sign-sub-inv81.2%
*-commutative81.2%
remove-double-neg81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in i around inf 63.0%
associate-*r*64.9%
*-commutative64.9%
associate-*r*65.8%
Simplified65.8%
if 8.1999999999999995e-272 < x < 1.56e-208Initial program 72.2%
sub-neg72.2%
+-commutative72.2%
associate-+l+72.2%
distribute-rgt-neg-in72.2%
+-commutative72.2%
fma-def77.0%
sub-neg77.0%
+-commutative77.0%
distribute-neg-in77.0%
unsub-neg77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in c around inf 60.8%
distribute-rgt-in56.1%
*-commutative56.1%
mul-1-neg56.1%
cancel-sign-sub-inv56.1%
*-commutative56.1%
distribute-rgt-out--60.8%
Simplified60.8%
if 1.56e-208 < x < 2.99999999999999984e-172Initial program 71.4%
sub-neg71.4%
+-commutative71.4%
associate-+l+71.4%
distribute-rgt-neg-in71.4%
+-commutative71.4%
fma-def71.4%
sub-neg71.4%
+-commutative71.4%
distribute-neg-in71.4%
unsub-neg71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in i around inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if 2.99999999999999984e-172 < x < 1.1e-91Initial program 52.8%
sub-neg52.8%
+-commutative52.8%
associate-+l+52.8%
distribute-rgt-neg-in52.8%
+-commutative52.8%
fma-def52.8%
sub-neg52.8%
+-commutative52.8%
distribute-neg-in52.8%
unsub-neg52.8%
remove-double-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in b around inf 64.3%
Final simplification69.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* i (- (* t b) (* y j))) t_1)))
(if (<= x -9.5e-128)
t_2
(if (<= x 7e-59)
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
(if (<= x 1.2e+113) t_2 (+ t_1 (* c (* a j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (i * ((t * b) - (y * j))) + t_1;
double tmp;
if (x <= -9.5e-128) {
tmp = t_2;
} else if (x <= 7e-59) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else if (x <= 1.2e+113) {
tmp = t_2;
} else {
tmp = t_1 + (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (i * ((t * b) - (y * j))) + t_1
if (x <= (-9.5d-128)) then
tmp = t_2
else if (x <= 7d-59) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
else if (x <= 1.2d+113) then
tmp = t_2
else
tmp = t_1 + (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 t_1 = x * ((y * z) - (t * a));
double t_2 = (i * ((t * b) - (y * j))) + t_1;
double tmp;
if (x <= -9.5e-128) {
tmp = t_2;
} else if (x <= 7e-59) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else if (x <= 1.2e+113) {
tmp = t_2;
} else {
tmp = t_1 + (c * (a * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (i * ((t * b) - (y * j))) + t_1 tmp = 0 if x <= -9.5e-128: tmp = t_2 elif x <= 7e-59: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) elif x <= 1.2e+113: tmp = t_2 else: tmp = t_1 + (c * (a * j)) 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(i * Float64(Float64(t * b) - Float64(y * j))) + t_1) tmp = 0.0 if (x <= -9.5e-128) tmp = t_2; elseif (x <= 7e-59) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (x <= 1.2e+113) tmp = t_2; else tmp = Float64(t_1 + Float64(c * Float64(a * j))); 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 = (i * ((t * b) - (y * j))) + t_1; tmp = 0.0; if (x <= -9.5e-128) tmp = t_2; elseif (x <= 7e-59) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); elseif (x <= 1.2e+113) tmp = t_2; else tmp = t_1 + (c * (a * j)); 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[x, -9.5e-128], t$95$2, If[LessEqual[x, 7e-59], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+113], t$95$2, N[(t$95$1 + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right) + t_1\\
\mathbf{if}\;x \leq -9.5 \cdot 10^{-128}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+113}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1 + c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if x < -9.50000000000000006e-128 or 7.0000000000000002e-59 < x < 1.19999999999999992e113Initial program 79.7%
sub-neg79.7%
+-commutative79.7%
associate-+l+79.7%
distribute-rgt-neg-in79.7%
+-commutative79.7%
fma-def83.2%
sub-neg83.2%
+-commutative83.2%
distribute-neg-in83.2%
unsub-neg83.2%
remove-double-neg83.2%
*-commutative83.2%
Simplified85.9%
Taylor expanded in c around 0 72.4%
remove-double-neg72.4%
mul-1-neg72.4%
associate-+r+72.4%
+-commutative72.4%
associate-+l+72.4%
*-commutative72.4%
mul-1-neg72.4%
remove-double-neg72.4%
associate-*r*72.4%
*-commutative72.4%
associate-*r*73.0%
associate-*r*73.0%
*-commutative73.0%
distribute-lft-in73.0%
mul-1-neg73.0%
Simplified73.0%
if -9.50000000000000006e-128 < x < 7.0000000000000002e-59Initial program 70.9%
sub-neg70.9%
+-commutative70.9%
associate-+l+70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
fma-def71.8%
sub-neg71.8%
+-commutative71.8%
distribute-neg-in71.8%
unsub-neg71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in y around 0 69.7%
+-commutative69.7%
associate-+r+69.7%
+-commutative69.7%
*-commutative69.7%
associate-*r*68.8%
*-commutative68.8%
associate-*r*68.8%
distribute-rgt-in68.8%
mul-1-neg68.8%
unsub-neg68.8%
*-commutative68.8%
Simplified68.8%
if 1.19999999999999992e113 < x Initial program 76.0%
+-commutative76.0%
fma-def78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in b around 0 86.7%
Taylor expanded in i around 0 84.0%
Final simplification72.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -1.45e+73) (not (<= x 5200.0))) (+ (* x (- (* y z) (* t a))) (* c (* a j))) (+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -1.45e+73) || !(x <= 5200.0)) {
tmp = (x * ((y * z) - (t * a))) + (c * (a * j));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-1.45d+73)) .or. (.not. (x <= 5200.0d0))) then
tmp = (x * ((y * z) - (t * a))) + (c * (a * j))
else
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -1.45e+73) || !(x <= 5200.0)) {
tmp = (x * ((y * z) - (t * a))) + (c * (a * j));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -1.45e+73) or not (x <= 5200.0): tmp = (x * ((y * z) - (t * a))) + (c * (a * j)) else: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -1.45e+73) || !(x <= 5200.0)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(a * j))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -1.45e+73) || ~((x <= 5200.0))) tmp = (x * ((y * z) - (t * a))) + (c * (a * j)); else tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -1.45e+73], N[Not[LessEqual[x, 5200.0]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.45 \cdot 10^{+73} \lor \neg \left(x \leq 5200\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -1.4500000000000001e73 or 5200 < x Initial program 72.9%
+-commutative72.9%
fma-def74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in b around 0 80.5%
Taylor expanded in i around 0 74.6%
if -1.4500000000000001e73 < x < 5200Initial program 77.1%
sub-neg77.1%
+-commutative77.1%
associate-+l+77.1%
distribute-rgt-neg-in77.1%
+-commutative77.1%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in y around 0 66.7%
+-commutative66.7%
associate-+r+66.7%
+-commutative66.7%
*-commutative66.7%
associate-*r*66.1%
*-commutative66.1%
associate-*r*66.1%
distribute-rgt-in66.7%
mul-1-neg66.7%
unsub-neg66.7%
*-commutative66.7%
Simplified66.7%
Final simplification69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.35e-127)
(+ (* i (- (* t b) (* y j))) t_1)
(if (<= x 3.8e-59)
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
(+ t_1 (* j (- (* a c) (* y i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.35e-127) {
tmp = (i * ((t * b) - (y * j))) + t_1;
} else if (x <= 3.8e-59) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (j * ((a * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-1.35d-127)) then
tmp = (i * ((t * b) - (y * j))) + t_1
else if (x <= 3.8d-59) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
else
tmp = t_1 + (j * ((a * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.35e-127) {
tmp = (i * ((t * b) - (y * j))) + t_1;
} else if (x <= 3.8e-59) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.35e-127: tmp = (i * ((t * b) - (y * j))) + t_1 elif x <= 3.8e-59: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) else: tmp = t_1 + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.35e-127) tmp = Float64(Float64(i * Float64(Float64(t * b) - Float64(y * j))) + t_1); elseif (x <= 3.8e-59) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.35e-127) tmp = (i * ((t * b) - (y * j))) + t_1; elseif (x <= 3.8e-59) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); else tmp = t_1 + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35e-127], N[(N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[x, 3.8e-59], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.35 \cdot 10^{-127}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right) + t_1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if x < -1.35e-127Initial program 79.2%
sub-neg79.2%
+-commutative79.2%
associate-+l+79.2%
distribute-rgt-neg-in79.2%
+-commutative79.2%
fma-def82.5%
sub-neg82.5%
+-commutative82.5%
distribute-neg-in82.5%
unsub-neg82.5%
remove-double-neg82.5%
*-commutative82.5%
Simplified85.8%
Taylor expanded in c around 0 73.9%
remove-double-neg73.9%
mul-1-neg73.9%
associate-+r+73.9%
+-commutative73.9%
associate-+l+73.9%
*-commutative73.9%
mul-1-neg73.9%
remove-double-neg73.9%
associate-*r*73.9%
*-commutative73.9%
associate-*r*73.9%
associate-*r*73.9%
*-commutative73.9%
distribute-lft-in73.9%
mul-1-neg73.9%
Simplified73.9%
if -1.35e-127 < x < 3.79999999999999983e-59Initial program 70.9%
sub-neg70.9%
+-commutative70.9%
associate-+l+70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
fma-def71.8%
sub-neg71.8%
+-commutative71.8%
distribute-neg-in71.8%
unsub-neg71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in y around 0 69.7%
+-commutative69.7%
associate-+r+69.7%
+-commutative69.7%
*-commutative69.7%
associate-*r*68.8%
*-commutative68.8%
associate-*r*68.8%
distribute-rgt-in68.8%
mul-1-neg68.8%
unsub-neg68.8%
*-commutative68.8%
Simplified68.8%
if 3.79999999999999983e-59 < x Initial program 78.1%
+-commutative78.1%
fma-def79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in b around 0 83.5%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.1e+29)
t_2
(if (<= j -3e-58)
t_1
(if (<= j -1.3e-84)
(* x (* y z))
(if (<= j 8.6e-285)
t_1
(if (<= j 3.6e+68) (* t (- (* b i) (* x a))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.1e+29) {
tmp = t_2;
} else if (j <= -3e-58) {
tmp = t_1;
} else if (j <= -1.3e-84) {
tmp = x * (y * z);
} else if (j <= 8.6e-285) {
tmp = t_1;
} else if (j <= 3.6e+68) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (j <= (-2.1d+29)) then
tmp = t_2
else if (j <= (-3d-58)) then
tmp = t_1
else if (j <= (-1.3d-84)) then
tmp = x * (y * z)
else if (j <= 8.6d-285) then
tmp = t_1
else if (j <= 3.6d+68) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.1e+29) {
tmp = t_2;
} else if (j <= -3e-58) {
tmp = t_1;
} else if (j <= -1.3e-84) {
tmp = x * (y * z);
} else if (j <= 8.6e-285) {
tmp = t_1;
} else if (j <= 3.6e+68) {
tmp = t * ((b * i) - (x * a));
} 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 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.1e+29: tmp = t_2 elif j <= -3e-58: tmp = t_1 elif j <= -1.3e-84: tmp = x * (y * z) elif j <= 8.6e-285: tmp = t_1 elif j <= 3.6e+68: tmp = t * ((b * i) - (x * a)) 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.1e+29) tmp = t_2; elseif (j <= -3e-58) tmp = t_1; elseif (j <= -1.3e-84) tmp = Float64(x * Float64(y * z)); elseif (j <= 8.6e-285) tmp = t_1; elseif (j <= 3.6e+68) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.1e+29) tmp = t_2; elseif (j <= -3e-58) tmp = t_1; elseif (j <= -1.3e-84) tmp = x * (y * z); elseif (j <= 8.6e-285) tmp = t_1; elseif (j <= 3.6e+68) tmp = t * ((b * i) - (x * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.1e+29], t$95$2, If[LessEqual[j, -3e-58], t$95$1, If[LessEqual[j, -1.3e-84], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.6e-285], t$95$1, If[LessEqual[j, 3.6e+68], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.1 \cdot 10^{+29}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3 \cdot 10^{-58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.3 \cdot 10^{-84}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 8.6 \cdot 10^{-285}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{+68}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -2.1000000000000002e29 or 3.5999999999999999e68 < j Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def77.8%
sub-neg77.8%
+-commutative77.8%
distribute-neg-in77.8%
unsub-neg77.8%
remove-double-neg77.8%
*-commutative77.8%
Simplified80.8%
Taylor expanded in j around inf 68.9%
mul-1-neg68.9%
sub-neg68.9%
Simplified68.9%
if -2.1000000000000002e29 < j < -3.00000000000000008e-58 or -1.3e-84 < j < 8.60000000000000022e-285Initial program 81.5%
sub-neg81.5%
+-commutative81.5%
associate-+l+81.5%
distribute-rgt-neg-in81.5%
+-commutative81.5%
fma-def82.6%
sub-neg82.6%
+-commutative82.6%
distribute-neg-in82.6%
unsub-neg82.6%
remove-double-neg82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in b around inf 56.9%
if -3.00000000000000008e-58 < j < -1.3e-84Initial program 80.0%
sub-neg80.0%
+-commutative80.0%
associate-+l+80.0%
distribute-rgt-neg-in80.0%
+-commutative80.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
if 8.60000000000000022e-285 < j < 3.5999999999999999e68Initial program 69.3%
sub-neg69.3%
+-commutative69.3%
associate-+l+69.3%
distribute-rgt-neg-in69.3%
+-commutative69.3%
fma-def70.9%
sub-neg70.9%
+-commutative70.9%
distribute-neg-in70.9%
unsub-neg70.9%
remove-double-neg70.9%
*-commutative70.9%
Simplified72.5%
Taylor expanded in t around inf 53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
Final simplification61.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))))
(if (<= i -4.1e-27)
(* b (* t i))
(if (<= i -8.5e-140)
t_1
(if (<= i -1.75e-248)
(* x (* y z))
(if (<= i 2.35e-214)
(* a (* c j))
(if (<= i 2e-118)
(* a (* t (- x)))
(if (<= i 1.95e+122) t_1 (* j (* y (- i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (i <= -4.1e-27) {
tmp = b * (t * i);
} else if (i <= -8.5e-140) {
tmp = t_1;
} else if (i <= -1.75e-248) {
tmp = x * (y * z);
} else if (i <= 2.35e-214) {
tmp = a * (c * j);
} else if (i <= 2e-118) {
tmp = a * (t * -x);
} else if (i <= 1.95e+122) {
tmp = t_1;
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (z * -c)
if (i <= (-4.1d-27)) then
tmp = b * (t * i)
else if (i <= (-8.5d-140)) then
tmp = t_1
else if (i <= (-1.75d-248)) then
tmp = x * (y * z)
else if (i <= 2.35d-214) then
tmp = a * (c * j)
else if (i <= 2d-118) then
tmp = a * (t * -x)
else if (i <= 1.95d+122) then
tmp = t_1
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (i <= -4.1e-27) {
tmp = b * (t * i);
} else if (i <= -8.5e-140) {
tmp = t_1;
} else if (i <= -1.75e-248) {
tmp = x * (y * z);
} else if (i <= 2.35e-214) {
tmp = a * (c * j);
} else if (i <= 2e-118) {
tmp = a * (t * -x);
} else if (i <= 1.95e+122) {
tmp = t_1;
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) tmp = 0 if i <= -4.1e-27: tmp = b * (t * i) elif i <= -8.5e-140: tmp = t_1 elif i <= -1.75e-248: tmp = x * (y * z) elif i <= 2.35e-214: tmp = a * (c * j) elif i <= 2e-118: tmp = a * (t * -x) elif i <= 1.95e+122: tmp = t_1 else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (i <= -4.1e-27) tmp = Float64(b * Float64(t * i)); elseif (i <= -8.5e-140) tmp = t_1; elseif (i <= -1.75e-248) tmp = Float64(x * Float64(y * z)); elseif (i <= 2.35e-214) tmp = Float64(a * Float64(c * j)); elseif (i <= 2e-118) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 1.95e+122) tmp = t_1; else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * -c); tmp = 0.0; if (i <= -4.1e-27) tmp = b * (t * i); elseif (i <= -8.5e-140) tmp = t_1; elseif (i <= -1.75e-248) tmp = x * (y * z); elseif (i <= 2.35e-214) tmp = a * (c * j); elseif (i <= 2e-118) tmp = a * (t * -x); elseif (i <= 1.95e+122) tmp = t_1; else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.1e-27], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.5e-140], t$95$1, If[LessEqual[i, -1.75e-248], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.35e-214], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e-118], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.95e+122], t$95$1, N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;i \leq -4.1 \cdot 10^{-27}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.75 \cdot 10^{-248}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 2.35 \cdot 10^{-214}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-118}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if i < -4.0999999999999999e-27Initial program 68.7%
sub-neg68.7%
+-commutative68.7%
associate-+l+68.7%
distribute-rgt-neg-in68.7%
+-commutative68.7%
fma-def73.4%
sub-neg73.4%
+-commutative73.4%
distribute-neg-in73.4%
unsub-neg73.4%
remove-double-neg73.4%
*-commutative73.4%
Simplified75.0%
Taylor expanded in b around inf 46.5%
Taylor expanded in i around inf 40.5%
if -4.0999999999999999e-27 < i < -8.49999999999999997e-140 or 1.99999999999999997e-118 < i < 1.95e122Initial program 75.6%
sub-neg75.6%
+-commutative75.6%
associate-+l+75.6%
distribute-rgt-neg-in75.6%
+-commutative75.6%
fma-def78.2%
sub-neg78.2%
+-commutative78.2%
distribute-neg-in78.2%
unsub-neg78.2%
remove-double-neg78.2%
*-commutative78.2%
Simplified79.5%
Taylor expanded in b around inf 44.7%
Taylor expanded in i around 0 35.4%
neg-mul-135.4%
distribute-lft-neg-in35.4%
*-commutative35.4%
Simplified35.4%
if -8.49999999999999997e-140 < i < -1.74999999999999991e-248Initial program 81.4%
sub-neg81.4%
+-commutative81.4%
associate-+l+81.4%
distribute-rgt-neg-in81.4%
+-commutative81.4%
fma-def81.4%
sub-neg81.4%
+-commutative81.4%
distribute-neg-in81.4%
unsub-neg81.4%
remove-double-neg81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in x around inf 62.3%
Taylor expanded in y around inf 39.9%
*-commutative39.9%
Simplified39.9%
if -1.74999999999999991e-248 < i < 2.3500000000000002e-214Initial program 85.0%
sub-neg85.0%
+-commutative85.0%
associate-+l+85.0%
distribute-rgt-neg-in85.0%
+-commutative85.0%
fma-def87.9%
sub-neg87.9%
+-commutative87.9%
distribute-neg-in87.9%
unsub-neg87.9%
remove-double-neg87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in a around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
Simplified52.6%
Taylor expanded in c around inf 37.8%
if 2.3500000000000002e-214 < i < 1.99999999999999997e-118Initial program 90.9%
sub-neg90.9%
+-commutative90.9%
associate-+l+90.9%
distribute-rgt-neg-in90.9%
+-commutative90.9%
fma-def95.5%
sub-neg95.5%
+-commutative95.5%
distribute-neg-in95.5%
unsub-neg95.5%
remove-double-neg95.5%
*-commutative95.5%
Simplified95.5%
Taylor expanded in a around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
Simplified64.3%
Taylor expanded in c around 0 57.7%
mul-1-neg57.7%
distribute-lft-neg-out57.7%
*-commutative57.7%
Simplified57.7%
if 1.95e122 < i Initial program 66.4%
sub-neg66.4%
+-commutative66.4%
associate-+l+66.4%
distribute-rgt-neg-in66.4%
+-commutative66.4%
fma-def66.4%
sub-neg66.4%
+-commutative66.4%
distribute-neg-in66.4%
unsub-neg66.4%
remove-double-neg66.4%
*-commutative66.4%
Simplified71.6%
Taylor expanded in y around inf 53.6%
*-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
Taylor expanded in z around 0 51.0%
neg-mul-151.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
Taylor expanded in y around 0 51.0%
mul-1-neg51.0%
associate-*r*53.4%
Simplified53.4%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))) (t_2 (* a (* c j))))
(if (<= j -38.0)
t_2
(if (<= j -1.8e-166)
t_1
(if (<= j -8.5e-195)
(* y (* x z))
(if (<= j -2.6e-277) t_1 (if (<= j 3.8e+57) (* z (* x y)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = a * (c * j);
double tmp;
if (j <= -38.0) {
tmp = t_2;
} else if (j <= -1.8e-166) {
tmp = t_1;
} else if (j <= -8.5e-195) {
tmp = y * (x * z);
} else if (j <= -2.6e-277) {
tmp = t_1;
} else if (j <= 3.8e+57) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (t * i)
t_2 = a * (c * j)
if (j <= (-38.0d0)) then
tmp = t_2
else if (j <= (-1.8d-166)) then
tmp = t_1
else if (j <= (-8.5d-195)) then
tmp = y * (x * z)
else if (j <= (-2.6d-277)) then
tmp = t_1
else if (j <= 3.8d+57) then
tmp = z * (x * y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = a * (c * j);
double tmp;
if (j <= -38.0) {
tmp = t_2;
} else if (j <= -1.8e-166) {
tmp = t_1;
} else if (j <= -8.5e-195) {
tmp = y * (x * z);
} else if (j <= -2.6e-277) {
tmp = t_1;
} else if (j <= 3.8e+57) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) t_2 = a * (c * j) tmp = 0 if j <= -38.0: tmp = t_2 elif j <= -1.8e-166: tmp = t_1 elif j <= -8.5e-195: tmp = y * (x * z) elif j <= -2.6e-277: tmp = t_1 elif j <= 3.8e+57: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -38.0) tmp = t_2; elseif (j <= -1.8e-166) tmp = t_1; elseif (j <= -8.5e-195) tmp = Float64(y * Float64(x * z)); elseif (j <= -2.6e-277) tmp = t_1; elseif (j <= 3.8e+57) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); t_2 = a * (c * j); tmp = 0.0; if (j <= -38.0) tmp = t_2; elseif (j <= -1.8e-166) tmp = t_1; elseif (j <= -8.5e-195) tmp = y * (x * z); elseif (j <= -2.6e-277) tmp = t_1; elseif (j <= 3.8e+57) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -38.0], t$95$2, If[LessEqual[j, -1.8e-166], t$95$1, If[LessEqual[j, -8.5e-195], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.6e-277], t$95$1, If[LessEqual[j, 3.8e+57], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -38:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.8 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-195}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq -2.6 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{+57}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -38 or 3.7999999999999999e57 < j Initial program 74.8%
sub-neg74.8%
+-commutative74.8%
associate-+l+74.8%
distribute-rgt-neg-in74.8%
+-commutative74.8%
fma-def78.5%
sub-neg78.5%
+-commutative78.5%
distribute-neg-in78.5%
unsub-neg78.5%
remove-double-neg78.5%
*-commutative78.5%
Simplified81.3%
Taylor expanded in a around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
Simplified49.3%
Taylor expanded in c around inf 37.6%
if -38 < j < -1.8e-166 or -8.50000000000000023e-195 < j < -2.6e-277Initial program 75.7%
sub-neg75.7%
+-commutative75.7%
associate-+l+75.7%
distribute-rgt-neg-in75.7%
+-commutative75.7%
fma-def78.8%
sub-neg78.8%
+-commutative78.8%
distribute-neg-in78.8%
unsub-neg78.8%
remove-double-neg78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in b around inf 61.1%
Taylor expanded in i around inf 41.4%
if -1.8e-166 < j < -8.50000000000000023e-195Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
associate-+l+100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-in100.0%
unsub-neg100.0%
remove-double-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 47.9%
*-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
Simplified47.9%
Taylor expanded in z around inf 41.0%
if -2.6e-277 < j < 3.7999999999999999e57Initial program 71.8%
+-commutative71.8%
fma-def71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in b around 0 61.1%
Taylor expanded in i around 0 59.7%
Taylor expanded in y around inf 28.2%
associate-*r*30.7%
*-commutative30.7%
associate-*l*30.9%
Simplified30.9%
Final simplification36.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.2e+228)
(* z (* x y))
(if (or (<= x -0.018) (not (<= x 0.0145)))
(* a (- (* c j) (* x t)))
(* c (- (* a j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.2e+228) {
tmp = z * (x * y);
} else if ((x <= -0.018) || !(x <= 0.0145)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.2d+228)) then
tmp = z * (x * y)
else if ((x <= (-0.018d0)) .or. (.not. (x <= 0.0145d0))) then
tmp = a * ((c * j) - (x * t))
else
tmp = c * ((a * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.2e+228) {
tmp = z * (x * y);
} else if ((x <= -0.018) || !(x <= 0.0145)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.2e+228: tmp = z * (x * y) elif (x <= -0.018) or not (x <= 0.0145): tmp = a * ((c * j) - (x * t)) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.2e+228) tmp = Float64(z * Float64(x * y)); elseif ((x <= -0.018) || !(x <= 0.0145)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.2e+228) tmp = z * (x * y); elseif ((x <= -0.018) || ~((x <= 0.0145))) tmp = a * ((c * j) - (x * t)); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.2e+228], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -0.018], N[Not[LessEqual[x, 0.0145]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+228}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -0.018 \lor \neg \left(x \leq 0.0145\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if x < -2.2e228Initial program 62.4%
+-commutative62.4%
fma-def62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in b around 0 62.8%
Taylor expanded in i around 0 75.3%
Taylor expanded in y around inf 45.2%
associate-*r*57.1%
*-commutative57.1%
associate-*l*62.9%
Simplified62.9%
if -2.2e228 < x < -0.0179999999999999986 or 0.0145000000000000007 < x Initial program 75.8%
sub-neg75.8%
+-commutative75.8%
associate-+l+75.8%
distribute-rgt-neg-in75.8%
+-commutative75.8%
fma-def81.9%
sub-neg81.9%
+-commutative81.9%
distribute-neg-in81.9%
unsub-neg81.9%
remove-double-neg81.9%
*-commutative81.9%
Simplified83.9%
Taylor expanded in a around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
Simplified50.2%
if -0.0179999999999999986 < x < 0.0145000000000000007Initial program 76.9%
sub-neg76.9%
+-commutative76.9%
associate-+l+76.9%
distribute-rgt-neg-in76.9%
+-commutative76.9%
fma-def77.6%
sub-neg77.6%
+-commutative77.6%
distribute-neg-in77.6%
unsub-neg77.6%
remove-double-neg77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in c around inf 48.3%
distribute-rgt-in46.2%
*-commutative46.2%
mul-1-neg46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
distribute-rgt-out--48.3%
Simplified48.3%
Final simplification50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1e-26)
t_1
(if (<= i -3e-132)
(* c (- (* a j) (* z b)))
(if (<= i 1.86e-35) (* a (- (* c j) (* x t))) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1e-26) {
tmp = t_1;
} else if (i <= -3e-132) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.86e-35) {
tmp = a * ((c * j) - (x * t));
} 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 = i * ((t * b) - (y * j))
if (i <= (-1d-26)) then
tmp = t_1
else if (i <= (-3d-132)) then
tmp = c * ((a * j) - (z * b))
else if (i <= 1.86d-35) then
tmp = a * ((c * j) - (x * t))
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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1e-26) {
tmp = t_1;
} else if (i <= -3e-132) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1.86e-35) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1e-26: tmp = t_1 elif i <= -3e-132: tmp = c * ((a * j) - (z * b)) elif i <= 1.86e-35: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1e-26) tmp = t_1; elseif (i <= -3e-132) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 1.86e-35) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1e-26) tmp = t_1; elseif (i <= -3e-132) tmp = c * ((a * j) - (z * b)); elseif (i <= 1.86e-35) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1e-26], t$95$1, If[LessEqual[i, -3e-132], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.86e-35], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -3 \cdot 10^{-132}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.86 \cdot 10^{-35}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1e-26 or 1.85999999999999991e-35 < i Initial program 68.2%
sub-neg68.2%
+-commutative68.2%
associate-+l+68.2%
distribute-rgt-neg-in68.2%
+-commutative68.2%
fma-def71.2%
sub-neg71.2%
+-commutative71.2%
distribute-neg-in71.2%
unsub-neg71.2%
remove-double-neg71.2%
*-commutative71.2%
Simplified73.5%
Taylor expanded in i around inf 61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
if -1e-26 < i < -3e-132Initial program 79.5%
sub-neg79.5%
+-commutative79.5%
associate-+l+79.5%
distribute-rgt-neg-in79.5%
+-commutative79.5%
fma-def83.1%
sub-neg83.1%
+-commutative83.1%
distribute-neg-in83.1%
unsub-neg83.1%
remove-double-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in c around inf 57.7%
distribute-rgt-in57.7%
*-commutative57.7%
mul-1-neg57.7%
cancel-sign-sub-inv57.7%
*-commutative57.7%
distribute-rgt-out--57.7%
Simplified57.7%
if -3e-132 < i < 1.85999999999999991e-35Initial program 84.4%
sub-neg84.4%
+-commutative84.4%
associate-+l+84.4%
distribute-rgt-neg-in84.4%
+-commutative84.4%
fma-def86.5%
sub-neg86.5%
+-commutative86.5%
distribute-neg-in86.5%
unsub-neg86.5%
remove-double-neg86.5%
*-commutative86.5%
Simplified87.6%
Taylor expanded in a around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Final simplification58.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= b -3.1e+54)
t_1
(if (<= b -1.1e-90)
(* j (* y (- i)))
(if (<= b -2.5e-219)
(* a (* c j))
(if (<= b 1.4e+60) (* x (* y z)) 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);
double tmp;
if (b <= -3.1e+54) {
tmp = t_1;
} else if (b <= -1.1e-90) {
tmp = j * (y * -i);
} else if (b <= -2.5e-219) {
tmp = a * (c * j);
} else if (b <= 1.4e+60) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (t * i)
if (b <= (-3.1d+54)) then
tmp = t_1
else if (b <= (-1.1d-90)) then
tmp = j * (y * -i)
else if (b <= (-2.5d-219)) then
tmp = a * (c * j)
else if (b <= 1.4d+60) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (b <= -3.1e+54) {
tmp = t_1;
} else if (b <= -1.1e-90) {
tmp = j * (y * -i);
} else if (b <= -2.5e-219) {
tmp = a * (c * j);
} else if (b <= 1.4e+60) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if b <= -3.1e+54: tmp = t_1 elif b <= -1.1e-90: tmp = j * (y * -i) elif b <= -2.5e-219: tmp = a * (c * j) elif b <= 1.4e+60: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (b <= -3.1e+54) tmp = t_1; elseif (b <= -1.1e-90) tmp = Float64(j * Float64(y * Float64(-i))); elseif (b <= -2.5e-219) tmp = Float64(a * Float64(c * j)); elseif (b <= 1.4e+60) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (b <= -3.1e+54) tmp = t_1; elseif (b <= -1.1e-90) tmp = j * (y * -i); elseif (b <= -2.5e-219) tmp = a * (c * j); elseif (b <= 1.4e+60) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+54], t$95$1, If[LessEqual[b, -1.1e-90], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-219], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+60], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-90}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-219}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+60}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.0999999999999999e54 or 1.4e60 < b Initial program 77.3%
sub-neg77.3%
+-commutative77.3%
associate-+l+77.3%
distribute-rgt-neg-in77.3%
+-commutative77.3%
fma-def83.9%
sub-neg83.9%
+-commutative83.9%
distribute-neg-in83.9%
unsub-neg83.9%
remove-double-neg83.9%
*-commutative83.9%
Simplified86.7%
Taylor expanded in b around inf 63.0%
Taylor expanded in i around inf 41.7%
if -3.0999999999999999e54 < b < -1.09999999999999993e-90Initial program 72.3%
sub-neg72.3%
+-commutative72.3%
associate-+l+72.3%
distribute-rgt-neg-in72.3%
+-commutative72.3%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in y around inf 50.0%
*-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in z around 0 30.7%
neg-mul-130.7%
distribute-rgt-neg-in30.7%
Simplified30.7%
Taylor expanded in y around 0 30.7%
mul-1-neg30.7%
associate-*r*36.6%
Simplified36.6%
if -1.09999999999999993e-90 < b < -2.5000000000000001e-219Initial program 93.8%
sub-neg93.8%
+-commutative93.8%
associate-+l+93.8%
distribute-rgt-neg-in93.8%
+-commutative93.8%
fma-def93.8%
sub-neg93.8%
+-commutative93.8%
distribute-neg-in93.8%
unsub-neg93.8%
remove-double-neg93.8%
*-commutative93.8%
Simplified93.8%
Taylor expanded in a around inf 71.5%
+-commutative71.5%
mul-1-neg71.5%
unsub-neg71.5%
Simplified71.5%
Taylor expanded in c around inf 60.0%
if -2.5000000000000001e-219 < b < 1.4e60Initial program 71.8%
sub-neg71.8%
+-commutative71.8%
associate-+l+71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
fma-def71.8%
sub-neg71.8%
+-commutative71.8%
distribute-neg-in71.8%
unsub-neg71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified72.7%
Taylor expanded in x around inf 48.5%
Taylor expanded in y around inf 29.8%
*-commutative29.8%
Simplified29.8%
Final simplification37.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1.45e-26) (* b (* t i)) (if (<= i 5e+164) (* a (- (* c j) (* x t))) (* j (* y (- i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.45e-26) {
tmp = b * (t * i);
} else if (i <= 5e+164) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.45d-26)) then
tmp = b * (t * i)
else if (i <= 5d+164) then
tmp = a * ((c * j) - (x * t))
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.45e-26) {
tmp = b * (t * i);
} else if (i <= 5e+164) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.45e-26: tmp = b * (t * i) elif i <= 5e+164: tmp = a * ((c * j) - (x * t)) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.45e-26) tmp = Float64(b * Float64(t * i)); elseif (i <= 5e+164) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.45e-26) tmp = b * (t * i); elseif (i <= 5e+164) tmp = a * ((c * j) - (x * t)); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.45e-26], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e+164], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.45 \cdot 10^{-26}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+164}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if i < -1.4499999999999999e-26Initial program 68.7%
sub-neg68.7%
+-commutative68.7%
associate-+l+68.7%
distribute-rgt-neg-in68.7%
+-commutative68.7%
fma-def73.4%
sub-neg73.4%
+-commutative73.4%
distribute-neg-in73.4%
unsub-neg73.4%
remove-double-neg73.4%
*-commutative73.4%
Simplified75.0%
Taylor expanded in b around inf 46.5%
Taylor expanded in i around inf 40.5%
if -1.4499999999999999e-26 < i < 4.9999999999999995e164Initial program 80.6%
sub-neg80.6%
+-commutative80.6%
associate-+l+80.6%
distribute-rgt-neg-in80.6%
+-commutative80.6%
fma-def83.2%
sub-neg83.2%
+-commutative83.2%
distribute-neg-in83.2%
unsub-neg83.2%
remove-double-neg83.2%
*-commutative83.2%
Simplified84.4%
Taylor expanded in a around inf 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
if 4.9999999999999995e164 < i Initial program 64.3%
sub-neg64.3%
+-commutative64.3%
associate-+l+64.3%
distribute-rgt-neg-in64.3%
+-commutative64.3%
fma-def64.3%
sub-neg64.3%
+-commutative64.3%
distribute-neg-in64.3%
unsub-neg64.3%
remove-double-neg64.3%
*-commutative64.3%
Simplified67.3%
Taylor expanded in y around inf 52.6%
*-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
Simplified52.6%
Taylor expanded in z around 0 52.6%
neg-mul-152.6%
distribute-rgt-neg-in52.6%
Simplified52.6%
Taylor expanded in y around 0 52.6%
mul-1-neg52.6%
associate-*r*55.4%
Simplified55.4%
Final simplification46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= z -2.65e+132)
t_1
(if (<= z -4.6e-157) (* a (* c j)) (if (<= z 4e-36) (* t (* b i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (z <= -2.65e+132) {
tmp = t_1;
} else if (z <= -4.6e-157) {
tmp = a * (c * j);
} else if (z <= 4e-36) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (z <= (-2.65d+132)) then
tmp = t_1
else if (z <= (-4.6d-157)) then
tmp = a * (c * j)
else if (z <= 4d-36) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (z <= -2.65e+132) {
tmp = t_1;
} else if (z <= -4.6e-157) {
tmp = a * (c * j);
} else if (z <= 4e-36) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if z <= -2.65e+132: tmp = t_1 elif z <= -4.6e-157: tmp = a * (c * j) elif z <= 4e-36: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (z <= -2.65e+132) tmp = t_1; elseif (z <= -4.6e-157) tmp = Float64(a * Float64(c * j)); elseif (z <= 4e-36) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (z <= -2.65e+132) tmp = t_1; elseif (z <= -4.6e-157) tmp = a * (c * j); elseif (z <= 4e-36) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.65e+132], t$95$1, If[LessEqual[z, -4.6e-157], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e-36], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;z \leq -2.65 \cdot 10^{+132}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-157}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-36}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.65e132 or 3.9999999999999998e-36 < z Initial program 67.2%
+-commutative67.2%
fma-def69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in b around 0 56.3%
Taylor expanded in i around 0 51.1%
Taylor expanded in y around inf 29.7%
associate-*r*35.8%
*-commutative35.8%
associate-*l*32.4%
Simplified32.4%
if -2.65e132 < z < -4.59999999999999977e-157Initial program 82.6%
sub-neg82.6%
+-commutative82.6%
associate-+l+82.6%
distribute-rgt-neg-in82.6%
+-commutative82.6%
fma-def87.4%
sub-neg87.4%
+-commutative87.4%
distribute-neg-in87.4%
unsub-neg87.4%
remove-double-neg87.4%
*-commutative87.4%
Simplified89.0%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
Simplified51.0%
Taylor expanded in c around inf 35.4%
if -4.59999999999999977e-157 < z < 3.9999999999999998e-36Initial program 80.6%
sub-neg80.6%
+-commutative80.6%
associate-+l+80.6%
distribute-rgt-neg-in80.6%
+-commutative80.6%
fma-def81.7%
sub-neg81.7%
+-commutative81.7%
distribute-neg-in81.7%
unsub-neg81.7%
remove-double-neg81.7%
*-commutative81.7%
Simplified85.2%
Taylor expanded in t around inf 48.1%
mul-1-neg48.1%
unsub-neg48.1%
Simplified48.1%
Taylor expanded in i around inf 33.6%
Final simplification33.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))))
(if (<= b -50000000000000.0)
t_1
(if (<= b -8.5e-224)
(* a (* c j))
(if (<= b 3.2e+65) (* x (* y z)) 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);
double tmp;
if (b <= -50000000000000.0) {
tmp = t_1;
} else if (b <= -8.5e-224) {
tmp = a * (c * j);
} else if (b <= 3.2e+65) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (t * i)
if (b <= (-50000000000000.0d0)) then
tmp = t_1
else if (b <= (-8.5d-224)) then
tmp = a * (c * j)
else if (b <= 3.2d+65) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double tmp;
if (b <= -50000000000000.0) {
tmp = t_1;
} else if (b <= -8.5e-224) {
tmp = a * (c * j);
} else if (b <= 3.2e+65) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) tmp = 0 if b <= -50000000000000.0: tmp = t_1 elif b <= -8.5e-224: tmp = a * (c * j) elif b <= 3.2e+65: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) tmp = 0.0 if (b <= -50000000000000.0) tmp = t_1; elseif (b <= -8.5e-224) tmp = Float64(a * Float64(c * j)); elseif (b <= 3.2e+65) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); tmp = 0.0; if (b <= -50000000000000.0) tmp = t_1; elseif (b <= -8.5e-224) tmp = a * (c * j); elseif (b <= 3.2e+65) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -50000000000000.0], t$95$1, If[LessEqual[b, -8.5e-224], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+65], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;b \leq -50000000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-224}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+65}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -5e13 or 3.20000000000000007e65 < b Initial program 76.7%
sub-neg76.7%
+-commutative76.7%
associate-+l+76.7%
distribute-rgt-neg-in76.7%
+-commutative76.7%
fma-def82.7%
sub-neg82.7%
+-commutative82.7%
distribute-neg-in82.7%
unsub-neg82.7%
remove-double-neg82.7%
*-commutative82.7%
Simplified85.3%
Taylor expanded in b around inf 59.6%
Taylor expanded in i around inf 39.2%
if -5e13 < b < -8.4999999999999996e-224Initial program 84.3%
sub-neg84.3%
+-commutative84.3%
associate-+l+84.3%
distribute-rgt-neg-in84.3%
+-commutative84.3%
fma-def84.3%
sub-neg84.3%
+-commutative84.3%
distribute-neg-in84.3%
unsub-neg84.3%
remove-double-neg84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
Taylor expanded in c around inf 39.5%
if -8.4999999999999996e-224 < b < 3.20000000000000007e65Initial program 71.8%
sub-neg71.8%
+-commutative71.8%
associate-+l+71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
fma-def71.8%
sub-neg71.8%
+-commutative71.8%
distribute-neg-in71.8%
unsub-neg71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified72.7%
Taylor expanded in x around inf 48.5%
Taylor expanded in y around inf 29.8%
*-commutative29.8%
Simplified29.8%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.08e-26) (not (<= i 1.12e-35))) (* t (* b i)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.08e-26) || !(i <= 1.12e-35)) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.08d-26)) .or. (.not. (i <= 1.12d-35))) then
tmp = t * (b * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.08e-26) || !(i <= 1.12e-35)) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.08e-26) or not (i <= 1.12e-35): tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.08e-26) || !(i <= 1.12e-35)) tmp = Float64(t * Float64(b * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.08e-26) || ~((i <= 1.12e-35))) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.08e-26], N[Not[LessEqual[i, 1.12e-35]], $MachinePrecision]], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.08 \cdot 10^{-26} \lor \neg \left(i \leq 1.12 \cdot 10^{-35}\right):\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -1.07999999999999996e-26 or 1.12e-35 < i Initial program 68.2%
sub-neg68.2%
+-commutative68.2%
associate-+l+68.2%
distribute-rgt-neg-in68.2%
+-commutative68.2%
fma-def71.2%
sub-neg71.2%
+-commutative71.2%
distribute-neg-in71.2%
unsub-neg71.2%
remove-double-neg71.2%
*-commutative71.2%
Simplified73.5%
Taylor expanded in t around inf 47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
Taylor expanded in i around inf 37.9%
if -1.07999999999999996e-26 < i < 1.12e-35Initial program 83.3%
sub-neg83.3%
+-commutative83.3%
associate-+l+83.3%
distribute-rgt-neg-in83.3%
+-commutative83.3%
fma-def85.7%
sub-neg85.7%
+-commutative85.7%
distribute-neg-in85.7%
unsub-neg85.7%
remove-double-neg85.7%
*-commutative85.7%
Simplified86.5%
Taylor expanded in a around inf 49.8%
+-commutative49.8%
mul-1-neg49.8%
unsub-neg49.8%
Simplified49.8%
Taylor expanded in c around inf 26.3%
Final simplification32.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 75.6%
sub-neg75.6%
+-commutative75.6%
associate-+l+75.6%
distribute-rgt-neg-in75.6%
+-commutative75.6%
fma-def78.3%
sub-neg78.3%
+-commutative78.3%
distribute-neg-in78.3%
unsub-neg78.3%
remove-double-neg78.3%
*-commutative78.3%
Simplified79.9%
Taylor expanded in a around inf 38.2%
+-commutative38.2%
mul-1-neg38.2%
unsub-neg38.2%
Simplified38.2%
Taylor expanded in c around inf 20.7%
Final simplification20.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 2023199
(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)))))