
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c) (* a i)))) (t_2 (- (* t c) (* y i))))
(if (<= (+ (- (* x (- (* y z) (* t a))) t_1) (* j t_2)) INFINITY)
(fma j t_2 (- (* x (fma y z (* t (- a)))) t_1))
(* z (cbrt (pow (- (* x y) (* b c)) 3.0))))))
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) - (a * i));
double t_2 = (t * c) - (y * i);
double tmp;
if ((((x * ((y * z) - (t * a))) - t_1) + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) - t_1));
} else {
tmp = z * cbrt(pow(((x * y) - (b * c)), 3.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(z * c) - Float64(a * i))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1) + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) - t_1)); else tmp = Float64(z * cbrt((Float64(Float64(x * y) - Float64(b * c)) ^ 3.0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], N[(z * N[Power[N[Power[N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c - a \cdot i\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - t_1\right) + j \cdot t_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \sqrt[3]{{\left(x \cdot y - b \cdot c\right)}^{3}}\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.1%
+-commutative92.1%
fma-def92.1%
*-commutative92.1%
*-commutative92.1%
cancel-sign-sub-inv92.1%
cancel-sign-sub92.1%
fma-neg92.1%
distribute-rgt-neg-out92.1%
remove-double-neg92.1%
*-commutative92.1%
*-commutative92.1%
Simplified92.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 43.9%
add-cbrt-cube53.4%
pow353.4%
Applied egg-rr53.4%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (cbrt (pow (- (* x y) (* b c)) 3.0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * cbrt(pow(((x * y) - (b * c)), 3.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * Math.cbrt(Math.pow(((x * y) - (b * c)), 3.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * cbrt((Float64(Float64(x * y) - Float64(b * c)) ^ 3.0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[Power[N[Power[N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \sqrt[3]{{\left(x \cdot y - b \cdot c\right)}^{3}}\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 43.9%
add-cbrt-cube53.4%
pow353.4%
Applied egg-rr53.4%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in a around inf 49.3%
distribute-lft-out--49.3%
*-commutative49.3%
Simplified49.3%
Final simplification82.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -8e+31)
t_3
(if (<= b -6.5e-20)
(* y (- (* x z) (* i j)))
(if (<= b -1.55e-87)
(- (* c (* t j)) (* a (* x t)))
(if (<= b -2.7e-184)
t_2
(if (<= b 2.9e-170)
t_1
(if (<= b 5.5e-78) t_2 (if (<= b 2.6e-20) 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 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8e+31) {
tmp = t_3;
} else if (b <= -6.5e-20) {
tmp = y * ((x * z) - (i * j));
} else if (b <= -1.55e-87) {
tmp = (c * (t * j)) - (a * (x * t));
} else if (b <= -2.7e-184) {
tmp = t_2;
} else if (b <= 2.9e-170) {
tmp = t_1;
} else if (b <= 5.5e-78) {
tmp = t_2;
} else if (b <= 2.6e-20) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((t * c) - (y * i))
t_3 = b * ((a * i) - (z * c))
if (b <= (-8d+31)) then
tmp = t_3
else if (b <= (-6.5d-20)) then
tmp = y * ((x * z) - (i * j))
else if (b <= (-1.55d-87)) then
tmp = (c * (t * j)) - (a * (x * t))
else if (b <= (-2.7d-184)) then
tmp = t_2
else if (b <= 2.9d-170) then
tmp = t_1
else if (b <= 5.5d-78) then
tmp = t_2
else if (b <= 2.6d-20) 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 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8e+31) {
tmp = t_3;
} else if (b <= -6.5e-20) {
tmp = y * ((x * z) - (i * j));
} else if (b <= -1.55e-87) {
tmp = (c * (t * j)) - (a * (x * t));
} else if (b <= -2.7e-184) {
tmp = t_2;
} else if (b <= 2.9e-170) {
tmp = t_1;
} else if (b <= 5.5e-78) {
tmp = t_2;
} else if (b <= 2.6e-20) {
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 = j * ((t * c) - (y * i)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -8e+31: tmp = t_3 elif b <= -6.5e-20: tmp = y * ((x * z) - (i * j)) elif b <= -1.55e-87: tmp = (c * (t * j)) - (a * (x * t)) elif b <= -2.7e-184: tmp = t_2 elif b <= 2.9e-170: tmp = t_1 elif b <= 5.5e-78: tmp = t_2 elif b <= 2.6e-20: 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(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -8e+31) tmp = t_3; elseif (b <= -6.5e-20) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= -1.55e-87) tmp = Float64(Float64(c * Float64(t * j)) - Float64(a * Float64(x * t))); elseif (b <= -2.7e-184) tmp = t_2; elseif (b <= 2.9e-170) tmp = t_1; elseif (b <= 5.5e-78) tmp = t_2; elseif (b <= 2.6e-20) 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 = j * ((t * c) - (y * i)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -8e+31) tmp = t_3; elseif (b <= -6.5e-20) tmp = y * ((x * z) - (i * j)); elseif (b <= -1.55e-87) tmp = (c * (t * j)) - (a * (x * t)); elseif (b <= -2.7e-184) tmp = t_2; elseif (b <= 2.9e-170) tmp = t_1; elseif (b <= 5.5e-78) tmp = t_2; elseif (b <= 2.6e-20) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e+31], t$95$3, If[LessEqual[b, -6.5e-20], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.55e-87], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-184], t$95$2, If[LessEqual[b, 2.9e-170], t$95$1, If[LessEqual[b, 5.5e-78], t$95$2, If[LessEqual[b, 2.6e-20], 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 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{+31}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-20}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-87}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-184}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -7.9999999999999997e31 or 2.59999999999999995e-20 < b Initial program 71.4%
Taylor expanded in b around inf 68.6%
if -7.9999999999999997e31 < b < -6.50000000000000032e-20Initial program 50.0%
Taylor expanded in y around inf 88.1%
+-commutative88.1%
mul-1-neg88.1%
unsub-neg88.1%
*-commutative88.1%
Simplified88.1%
if -6.50000000000000032e-20 < b < -1.54999999999999999e-87Initial program 86.5%
Taylor expanded in b around 0 93.2%
Taylor expanded in y around 0 68.0%
if -1.54999999999999999e-87 < b < -2.7000000000000001e-184 or 2.9e-170 < b < 5.50000000000000017e-78Initial program 74.9%
Taylor expanded in j around inf 66.3%
if -2.7000000000000001e-184 < b < 2.9e-170 or 5.50000000000000017e-78 < b < 2.59999999999999995e-20Initial program 66.1%
+-commutative66.1%
fma-def67.5%
*-commutative67.5%
*-commutative67.5%
cancel-sign-sub-inv67.5%
cancel-sign-sub67.5%
fma-neg67.5%
distribute-rgt-neg-out67.5%
remove-double-neg67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
sub-neg64.6%
*-commutative64.6%
Applied egg-rr64.6%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -2.15e+32)
t_3
(if (<= b -7e-183)
t_2
(if (<= b 1.8e-170)
t_1
(if (<= b 5.5e-78)
t_2
(if (<= b 9.2e-20) (- t_1 (* b (* z c))) 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 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.15e+32) {
tmp = t_3;
} else if (b <= -7e-183) {
tmp = t_2;
} else if (b <= 1.8e-170) {
tmp = t_1;
} else if (b <= 5.5e-78) {
tmp = t_2;
} else if (b <= 9.2e-20) {
tmp = t_1 - (b * (z * c));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((t * c) - (y * i))
t_3 = b * ((a * i) - (z * c))
if (b <= (-2.15d+32)) then
tmp = t_3
else if (b <= (-7d-183)) then
tmp = t_2
else if (b <= 1.8d-170) then
tmp = t_1
else if (b <= 5.5d-78) then
tmp = t_2
else if (b <= 9.2d-20) then
tmp = t_1 - (b * (z * c))
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 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.15e+32) {
tmp = t_3;
} else if (b <= -7e-183) {
tmp = t_2;
} else if (b <= 1.8e-170) {
tmp = t_1;
} else if (b <= 5.5e-78) {
tmp = t_2;
} else if (b <= 9.2e-20) {
tmp = t_1 - (b * (z * c));
} 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 = j * ((t * c) - (y * i)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.15e+32: tmp = t_3 elif b <= -7e-183: tmp = t_2 elif b <= 1.8e-170: tmp = t_1 elif b <= 5.5e-78: tmp = t_2 elif b <= 9.2e-20: tmp = t_1 - (b * (z * c)) 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(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.15e+32) tmp = t_3; elseif (b <= -7e-183) tmp = t_2; elseif (b <= 1.8e-170) tmp = t_1; elseif (b <= 5.5e-78) tmp = t_2; elseif (b <= 9.2e-20) tmp = Float64(t_1 - Float64(b * Float64(z * c))); 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 = j * ((t * c) - (y * i)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.15e+32) tmp = t_3; elseif (b <= -7e-183) tmp = t_2; elseif (b <= 1.8e-170) tmp = t_1; elseif (b <= 5.5e-78) tmp = t_2; elseif (b <= 9.2e-20) tmp = t_1 - (b * (z * c)); 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+32], t$95$3, If[LessEqual[b, -7e-183], t$95$2, If[LessEqual[b, 1.8e-170], t$95$1, If[LessEqual[b, 5.5e-78], t$95$2, If[LessEqual[b, 9.2e-20], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+32}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-183}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{-20}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.1499999999999999e32 or 9.1999999999999997e-20 < b Initial program 71.4%
Taylor expanded in b around inf 68.6%
if -2.1499999999999999e32 < b < -6.99999999999999983e-183 or 1.8000000000000002e-170 < b < 5.50000000000000017e-78Initial program 74.4%
Taylor expanded in j around inf 60.5%
if -6.99999999999999983e-183 < b < 1.8000000000000002e-170Initial program 63.3%
+-commutative63.3%
fma-def63.3%
*-commutative63.3%
*-commutative63.3%
cancel-sign-sub-inv63.3%
cancel-sign-sub63.3%
fma-neg63.3%
distribute-rgt-neg-out63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in x around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
sub-neg66.0%
*-commutative66.0%
Applied egg-rr66.0%
if 5.50000000000000017e-78 < b < 9.1999999999999997e-20Initial program 82.2%
Taylor expanded in a around -inf 90.5%
Taylor expanded in x around inf 74.4%
neg-mul-174.4%
+-commutative74.4%
sub-neg74.4%
*-commutative74.4%
Simplified74.4%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))))
(if (<= z -1.55e+126)
t_1
(if (<= z -8e-166)
(* b (* a i))
(if (<= z 2.5e-268)
(* y (* i (- j)))
(if (<= z 1.05e+85)
(* a (* x (- t)))
(if (<= z 8.2e+139)
(* y (* x z))
(if (<= z 2.05e+178) t_1 (* x (* y z))))))))))
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 (z <= -1.55e+126) {
tmp = t_1;
} else if (z <= -8e-166) {
tmp = b * (a * i);
} else if (z <= 2.5e-268) {
tmp = y * (i * -j);
} else if (z <= 1.05e+85) {
tmp = a * (x * -t);
} else if (z <= 8.2e+139) {
tmp = y * (x * z);
} else if (z <= 2.05e+178) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (z * -c)
if (z <= (-1.55d+126)) then
tmp = t_1
else if (z <= (-8d-166)) then
tmp = b * (a * i)
else if (z <= 2.5d-268) then
tmp = y * (i * -j)
else if (z <= 1.05d+85) then
tmp = a * (x * -t)
else if (z <= 8.2d+139) then
tmp = y * (x * z)
else if (z <= 2.05d+178) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (z <= -1.55e+126) {
tmp = t_1;
} else if (z <= -8e-166) {
tmp = b * (a * i);
} else if (z <= 2.5e-268) {
tmp = y * (i * -j);
} else if (z <= 1.05e+85) {
tmp = a * (x * -t);
} else if (z <= 8.2e+139) {
tmp = y * (x * z);
} else if (z <= 2.05e+178) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) tmp = 0 if z <= -1.55e+126: tmp = t_1 elif z <= -8e-166: tmp = b * (a * i) elif z <= 2.5e-268: tmp = y * (i * -j) elif z <= 1.05e+85: tmp = a * (x * -t) elif z <= 8.2e+139: tmp = y * (x * z) elif z <= 2.05e+178: tmp = t_1 else: tmp = x * (y * z) 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 (z <= -1.55e+126) tmp = t_1; elseif (z <= -8e-166) tmp = Float64(b * Float64(a * i)); elseif (z <= 2.5e-268) tmp = Float64(y * Float64(i * Float64(-j))); elseif (z <= 1.05e+85) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 8.2e+139) tmp = Float64(y * Float64(x * z)); elseif (z <= 2.05e+178) tmp = t_1; else tmp = Float64(x * Float64(y * z)); 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 (z <= -1.55e+126) tmp = t_1; elseif (z <= -8e-166) tmp = b * (a * i); elseif (z <= 2.5e-268) tmp = y * (i * -j); elseif (z <= 1.05e+85) tmp = a * (x * -t); elseif (z <= 8.2e+139) tmp = y * (x * z); elseif (z <= 2.05e+178) tmp = t_1; else tmp = x * (y * z); 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[z, -1.55e+126], t$95$1, If[LessEqual[z, -8e-166], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e-268], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+85], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+139], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+178], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{+126}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-166}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-268}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+85}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+139}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+178}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -1.55e126 or 8.2000000000000004e139 < z < 2.04999999999999998e178Initial program 58.8%
Taylor expanded in b around inf 57.0%
Taylor expanded in a around 0 49.0%
associate-*r*49.0%
neg-mul-149.0%
Simplified49.0%
if -1.55e126 < z < -8.00000000000000032e-166Initial program 79.8%
Taylor expanded in b around inf 51.2%
Taylor expanded in a around inf 41.1%
*-commutative41.1%
Simplified41.1%
if -8.00000000000000032e-166 < z < 2.5e-268Initial program 76.9%
Taylor expanded in b around 0 74.2%
Taylor expanded in i around inf 43.0%
mul-1-neg43.0%
associate-*r*49.3%
distribute-lft-neg-in49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
Simplified49.3%
if 2.5e-268 < z < 1.05000000000000005e85Initial program 73.2%
+-commutative73.2%
fma-def73.2%
*-commutative73.2%
*-commutative73.2%
cancel-sign-sub-inv73.2%
cancel-sign-sub73.2%
fma-neg73.2%
distribute-rgt-neg-out73.2%
remove-double-neg73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in x around inf 42.1%
Taylor expanded in a around inf 33.7%
associate-*r*33.7%
neg-mul-133.7%
Simplified33.7%
if 1.05000000000000005e85 < z < 8.2000000000000004e139Initial program 50.0%
Taylor expanded in y around inf 80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in z around inf 80.4%
*-commutative80.4%
Simplified80.4%
if 2.04999999999999998e178 < z Initial program 62.0%
+-commutative62.0%
fma-def65.4%
*-commutative65.4%
*-commutative65.4%
cancel-sign-sub-inv65.4%
cancel-sign-sub65.4%
fma-neg65.4%
distribute-rgt-neg-out65.4%
remove-double-neg65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in x around inf 66.2%
Taylor expanded in a around 0 62.8%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3.7e+32)
t_1
(if (<= b 8.5e-20)
(- (* x (- (* y z) (* t a))) (* j (- (* y i) (* t c))))
(if (<= b 1.65e+190)
(- (* j (- (* t c) (* y i))) (* b (- (* z c) (* a i))))
(if (<= b 1.58e+295) t_1 (* t (- (* c j) (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.7e+32) {
tmp = t_1;
} else if (b <= 8.5e-20) {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c)));
} else if (b <= 1.65e+190) {
tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i)));
} else if (b <= 1.58e+295) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-3.7d+32)) then
tmp = t_1
else if (b <= 8.5d-20) then
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c)))
else if (b <= 1.65d+190) then
tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i)))
else if (b <= 1.58d+295) then
tmp = t_1
else
tmp = t * ((c * j) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.7e+32) {
tmp = t_1;
} else if (b <= 8.5e-20) {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c)));
} else if (b <= 1.65e+190) {
tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i)));
} else if (b <= 1.58e+295) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.7e+32: tmp = t_1 elif b <= 8.5e-20: tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c))) elif b <= 1.65e+190: tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i))) elif b <= 1.58e+295: tmp = t_1 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.7e+32) tmp = t_1; elseif (b <= 8.5e-20) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); elseif (b <= 1.65e+190) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); elseif (b <= 1.58e+295) tmp = t_1; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.7e+32) tmp = t_1; elseif (b <= 8.5e-20) tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c))); elseif (b <= 1.65e+190) tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i))); elseif (b <= 1.58e+295) tmp = t_1; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e+32], t$95$1, If[LessEqual[b, 8.5e-20], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e+190], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.58e+295], t$95$1, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-20}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{+190}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{elif}\;b \leq 1.58 \cdot 10^{+295}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if b < -3.7e32 or 1.65e190 < b < 1.5800000000000001e295Initial program 68.9%
Taylor expanded in b around inf 75.6%
if -3.7e32 < b < 8.5000000000000005e-20Initial program 69.7%
Taylor expanded in b around 0 75.7%
if 8.5000000000000005e-20 < b < 1.65e190Initial program 73.9%
Taylor expanded in x around 0 72.5%
if 1.5800000000000001e295 < b Initial program 100.0%
Taylor expanded in t around inf 100.0%
Final simplification75.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c) (* a i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= b -3.5e+16)
(- t_2 t_1)
(if (<= b 2.6e-20)
(- t_2 (* j (- (* y i) (* t c))))
(if (<= b 1.3e+190)
(- (* j (- (* t c) (* y i))) t_1)
(if (<= b 1.58e+295)
(* b (- (* a i) (* z c)))
(* t (- (* c j) (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((z * c) - (a * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (b <= -3.5e+16) {
tmp = t_2 - t_1;
} else if (b <= 2.6e-20) {
tmp = t_2 - (j * ((y * i) - (t * c)));
} else if (b <= 1.3e+190) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (b <= 1.58e+295) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((z * c) - (a * i))
t_2 = x * ((y * z) - (t * a))
if (b <= (-3.5d+16)) then
tmp = t_2 - t_1
else if (b <= 2.6d-20) then
tmp = t_2 - (j * ((y * i) - (t * c)))
else if (b <= 1.3d+190) then
tmp = (j * ((t * c) - (y * i))) - t_1
else if (b <= 1.58d+295) then
tmp = b * ((a * i) - (z * c))
else
tmp = t * ((c * j) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((z * c) - (a * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (b <= -3.5e+16) {
tmp = t_2 - t_1;
} else if (b <= 2.6e-20) {
tmp = t_2 - (j * ((y * i) - (t * c)));
} else if (b <= 1.3e+190) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (b <= 1.58e+295) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((z * c) - (a * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if b <= -3.5e+16: tmp = t_2 - t_1 elif b <= 2.6e-20: tmp = t_2 - (j * ((y * i) - (t * c))) elif b <= 1.3e+190: tmp = (j * ((t * c) - (y * i))) - t_1 elif b <= 1.58e+295: tmp = b * ((a * i) - (z * c)) else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(z * c) - Float64(a * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -3.5e+16) tmp = Float64(t_2 - t_1); elseif (b <= 2.6e-20) tmp = Float64(t_2 - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); elseif (b <= 1.3e+190) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - t_1); elseif (b <= 1.58e+295) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((z * c) - (a * i)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -3.5e+16) tmp = t_2 - t_1; elseif (b <= 2.6e-20) tmp = t_2 - (j * ((y * i) - (t * c))); elseif (b <= 1.3e+190) tmp = (j * ((t * c) - (y * i))) - t_1; elseif (b <= 1.58e+295) tmp = b * ((a * i) - (z * c)); else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+16], N[(t$95$2 - t$95$1), $MachinePrecision], If[LessEqual[b, 2.6e-20], N[(t$95$2 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e+190], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[b, 1.58e+295], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c - a \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+16}:\\
\;\;\;\;t_2 - t_1\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-20}:\\
\;\;\;\;t_2 - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+190}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - t_1\\
\mathbf{elif}\;b \leq 1.58 \cdot 10^{+295}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if b < -3.5e16Initial program 69.8%
Taylor expanded in j around 0 78.6%
*-commutative78.6%
Simplified78.6%
if -3.5e16 < b < 2.59999999999999995e-20Initial program 70.3%
Taylor expanded in b around 0 76.5%
if 2.59999999999999995e-20 < b < 1.30000000000000005e190Initial program 73.9%
Taylor expanded in x around 0 72.5%
if 1.30000000000000005e190 < b < 1.5800000000000001e295Initial program 64.3%
Taylor expanded in b around inf 78.7%
if 1.5800000000000001e295 < b Initial program 100.0%
Taylor expanded in t around inf 100.0%
Final simplification76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1e+15)
t_1
(if (<= b -6.8e-199)
(* c (- (* t j) (* z b)))
(if (<= b -1.75e-259)
(* t (* x (- a)))
(if (<= b 1.1e-167) (* 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 * ((a * i) - (z * c));
double tmp;
if (b <= -1e+15) {
tmp = t_1;
} else if (b <= -6.8e-199) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -1.75e-259) {
tmp = t * (x * -a);
} else if (b <= 1.1e-167) {
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 * ((a * i) - (z * c))
if (b <= (-1d+15)) then
tmp = t_1
else if (b <= (-6.8d-199)) then
tmp = c * ((t * j) - (z * b))
else if (b <= (-1.75d-259)) then
tmp = t * (x * -a)
else if (b <= 1.1d-167) 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 * ((a * i) - (z * c));
double tmp;
if (b <= -1e+15) {
tmp = t_1;
} else if (b <= -6.8e-199) {
tmp = c * ((t * j) - (z * b));
} else if (b <= -1.75e-259) {
tmp = t * (x * -a);
} else if (b <= 1.1e-167) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1e+15: tmp = t_1 elif b <= -6.8e-199: tmp = c * ((t * j) - (z * b)) elif b <= -1.75e-259: tmp = t * (x * -a) elif b <= 1.1e-167: 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(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1e+15) tmp = t_1; elseif (b <= -6.8e-199) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= -1.75e-259) tmp = Float64(t * Float64(x * Float64(-a))); elseif (b <= 1.1e-167) 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 * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1e+15) tmp = t_1; elseif (b <= -6.8e-199) tmp = c * ((t * j) - (z * b)); elseif (b <= -1.75e-259) tmp = t * (x * -a); elseif (b <= 1.1e-167) 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[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e+15], t$95$1, If[LessEqual[b, -6.8e-199], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-259], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e-167], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{-199}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-259}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-167}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1e15 or 1.1e-167 < b Initial program 71.4%
Taylor expanded in b around inf 60.4%
if -1e15 < b < -6.80000000000000011e-199Initial program 73.5%
Taylor expanded in c around inf 42.1%
*-commutative42.1%
Simplified42.1%
if -6.80000000000000011e-199 < b < -1.7500000000000001e-259Initial program 72.4%
+-commutative72.4%
fma-def72.4%
*-commutative72.4%
*-commutative72.4%
cancel-sign-sub-inv72.4%
cancel-sign-sub72.4%
fma-neg72.4%
distribute-rgt-neg-out72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in x around inf 58.0%
Taylor expanded in a around inf 51.3%
*-commutative51.3%
associate-*r*57.5%
associate-*l*57.5%
*-commutative57.5%
mul-1-neg57.5%
distribute-rgt-neg-in57.5%
Simplified57.5%
if -1.7500000000000001e-259 < b < 1.1e-167Initial program 63.8%
+-commutative63.8%
fma-def63.8%
*-commutative63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
cancel-sign-sub63.8%
fma-neg63.8%
distribute-rgt-neg-out63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 71.8%
Taylor expanded in a around 0 48.2%
Final simplification55.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -7.7e+31)
t_2
(if (<= b -5e-261)
t_1
(if (<= b 1e-201) (* z (* x y)) (if (<= b 9.5e-61) 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.7e+31) {
tmp = t_2;
} else if (b <= -5e-261) {
tmp = t_1;
} else if (b <= 1e-201) {
tmp = z * (x * y);
} else if (b <= 9.5e-61) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-7.7d+31)) then
tmp = t_2
else if (b <= (-5d-261)) then
tmp = t_1
else if (b <= 1d-201) then
tmp = z * (x * y)
else if (b <= 9.5d-61) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.7e+31) {
tmp = t_2;
} else if (b <= -5e-261) {
tmp = t_1;
} else if (b <= 1e-201) {
tmp = z * (x * y);
} else if (b <= 9.5e-61) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7.7e+31: tmp = t_2 elif b <= -5e-261: tmp = t_1 elif b <= 1e-201: tmp = z * (x * y) elif b <= 9.5e-61: tmp = 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(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.7e+31) tmp = t_2; elseif (b <= -5e-261) tmp = t_1; elseif (b <= 1e-201) tmp = Float64(z * Float64(x * y)); elseif (b <= 9.5e-61) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7.7e+31) tmp = t_2; elseif (b <= -5e-261) tmp = t_1; elseif (b <= 1e-201) tmp = z * (x * y); elseif (b <= 9.5e-61) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.7e+31], t$95$2, If[LessEqual[b, -5e-261], t$95$1, If[LessEqual[b, 1e-201], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-61], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.7 \cdot 10^{+31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-261}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-201}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -7.69999999999999967e31 or 9.49999999999999986e-61 < b Initial program 72.5%
Taylor expanded in b around inf 66.5%
if -7.69999999999999967e31 < b < -4.99999999999999981e-261 or 9.99999999999999946e-202 < b < 9.49999999999999986e-61Initial program 70.1%
Taylor expanded in j around inf 54.3%
if -4.99999999999999981e-261 < b < 9.99999999999999946e-202Initial program 62.4%
Taylor expanded in z around inf 62.7%
Taylor expanded in x around inf 56.1%
*-commutative56.1%
Simplified56.1%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -4.2e-19)
t_2
(if (<= x -2.75e-216)
t_1
(if (<= x 7e-280)
(* j (- (* t c) (* y i)))
(if (<= x 2.1e-22) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.2e-19) {
tmp = t_2;
} else if (x <= -2.75e-216) {
tmp = t_1;
} else if (x <= 7e-280) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 2.1e-22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
if (x <= (-4.2d-19)) then
tmp = t_2
else if (x <= (-2.75d-216)) then
tmp = t_1
else if (x <= 7d-280) then
tmp = j * ((t * c) - (y * i))
else if (x <= 2.1d-22) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.2e-19) {
tmp = t_2;
} else if (x <= -2.75e-216) {
tmp = t_1;
} else if (x <= 7e-280) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 2.1e-22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -4.2e-19: tmp = t_2 elif x <= -2.75e-216: tmp = t_1 elif x <= 7e-280: tmp = j * ((t * c) - (y * i)) elif x <= 2.1e-22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -4.2e-19) tmp = t_2; elseif (x <= -2.75e-216) tmp = t_1; elseif (x <= 7e-280) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (x <= 2.1e-22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -4.2e-19) tmp = t_2; elseif (x <= -2.75e-216) tmp = t_1; elseif (x <= 7e-280) tmp = j * ((t * c) - (y * i)); elseif (x <= 2.1e-22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e-19], t$95$2, If[LessEqual[x, -2.75e-216], t$95$1, If[LessEqual[x, 7e-280], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1e-22], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{-19}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.75 \cdot 10^{-216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-280}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-22}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -4.1999999999999998e-19 or 2.10000000000000008e-22 < x Initial program 72.3%
+-commutative72.3%
fma-def75.3%
*-commutative75.3%
*-commutative75.3%
cancel-sign-sub-inv75.3%
cancel-sign-sub75.3%
fma-neg75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in x around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
sub-neg61.2%
*-commutative61.2%
Applied egg-rr61.2%
if -4.1999999999999998e-19 < x < -2.74999999999999995e-216 or 7.0000000000000002e-280 < x < 2.10000000000000008e-22Initial program 69.0%
Taylor expanded in b around inf 62.8%
if -2.74999999999999995e-216 < x < 7.0000000000000002e-280Initial program 66.3%
Taylor expanded in j around inf 70.9%
Final simplification62.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.7e+32) (not (<= b 2.6e-20))) (* b (- (* a i) (* z c))) (- (* x (- (* y z) (* t a))) (* j (- (* y i) (* t c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.7e+32) || !(b <= 2.6e-20)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * 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 ((b <= (-3.7d+32)) .or. (.not. (b <= 2.6d-20))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * 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 ((b <= -3.7e+32) || !(b <= 2.6e-20)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.7e+32) or not (b <= 2.6e-20): tmp = b * ((a * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.7e+32) || !(b <= 2.6e-20)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.7e+32) || ~((b <= 2.6e-20))) tmp = b * ((a * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (t * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.7e+32], N[Not[LessEqual[b, 2.6e-20]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.7 \cdot 10^{+32} \lor \neg \left(b \leq 2.6 \cdot 10^{-20}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\end{array}
\end{array}
if b < -3.7e32 or 2.59999999999999995e-20 < b Initial program 71.4%
Taylor expanded in b around inf 68.6%
if -3.7e32 < b < 2.59999999999999995e-20Initial program 69.7%
Taylor expanded in b around 0 75.7%
Final simplification72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.4e+17)
t_1
(if (<= b -2.25e-259)
(* t (* x (- a)))
(if (<= b 3.6e-167) (* 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 * ((a * i) - (z * c));
double tmp;
if (b <= -1.4e+17) {
tmp = t_1;
} else if (b <= -2.25e-259) {
tmp = t * (x * -a);
} else if (b <= 3.6e-167) {
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 * ((a * i) - (z * c))
if (b <= (-1.4d+17)) then
tmp = t_1
else if (b <= (-2.25d-259)) then
tmp = t * (x * -a)
else if (b <= 3.6d-167) 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 * ((a * i) - (z * c));
double tmp;
if (b <= -1.4e+17) {
tmp = t_1;
} else if (b <= -2.25e-259) {
tmp = t * (x * -a);
} else if (b <= 3.6e-167) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.4e+17: tmp = t_1 elif b <= -2.25e-259: tmp = t * (x * -a) elif b <= 3.6e-167: 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(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.4e+17) tmp = t_1; elseif (b <= -2.25e-259) tmp = Float64(t * Float64(x * Float64(-a))); elseif (b <= 3.6e-167) 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 * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.4e+17) tmp = t_1; elseif (b <= -2.25e-259) tmp = t * (x * -a); elseif (b <= 3.6e-167) 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[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+17], t$95$1, If[LessEqual[b, -2.25e-259], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e-167], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-259}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-167}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.4e17 or 3.6000000000000001e-167 < b Initial program 71.8%
Taylor expanded in b around inf 60.7%
if -1.4e17 < b < -2.24999999999999987e-259Initial program 71.8%
+-commutative71.8%
fma-def75.5%
*-commutative75.5%
*-commutative75.5%
cancel-sign-sub-inv75.5%
cancel-sign-sub75.5%
fma-neg75.5%
distribute-rgt-neg-out75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 33.7%
*-commutative33.7%
associate-*r*37.5%
associate-*l*37.5%
*-commutative37.5%
mul-1-neg37.5%
distribute-rgt-neg-in37.5%
Simplified37.5%
if -2.24999999999999987e-259 < b < 3.6000000000000001e-167Initial program 63.8%
+-commutative63.8%
fma-def63.8%
*-commutative63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
cancel-sign-sub63.8%
fma-neg63.8%
distribute-rgt-neg-out63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 71.8%
Taylor expanded in a around 0 48.2%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= b -8.3e+37)
t_1
(if (<= b -2.05e-259)
(* t (* x (- a)))
(if (<= b 3.15e+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 = a * (b * i);
double tmp;
if (b <= -8.3e+37) {
tmp = t_1;
} else if (b <= -2.05e-259) {
tmp = t * (x * -a);
} else if (b <= 3.15e+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 = a * (b * i)
if (b <= (-8.3d+37)) then
tmp = t_1
else if (b <= (-2.05d-259)) then
tmp = t * (x * -a)
else if (b <= 3.15d+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 = a * (b * i);
double tmp;
if (b <= -8.3e+37) {
tmp = t_1;
} else if (b <= -2.05e-259) {
tmp = t * (x * -a);
} else if (b <= 3.15e+60) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if b <= -8.3e+37: tmp = t_1 elif b <= -2.05e-259: tmp = t * (x * -a) elif b <= 3.15e+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(a * Float64(b * i)) tmp = 0.0 if (b <= -8.3e+37) tmp = t_1; elseif (b <= -2.05e-259) tmp = Float64(t * Float64(x * Float64(-a))); elseif (b <= 3.15e+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 = a * (b * i); tmp = 0.0; if (b <= -8.3e+37) tmp = t_1; elseif (b <= -2.05e-259) tmp = t * (x * -a); elseif (b <= 3.15e+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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.3e+37], t$95$1, If[LessEqual[b, -2.05e-259], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.15e+60], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -8.3 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-259}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 3.15 \cdot 10^{+60}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -8.3e37 or 3.1500000000000002e60 < b Initial program 70.5%
add-cube-cbrt70.5%
pow370.5%
Applied egg-rr70.5%
Taylor expanded in i around inf 47.6%
*-commutative47.6%
Simplified47.6%
if -8.3e37 < b < -2.0499999999999999e-259Initial program 73.0%
+-commutative73.0%
fma-def76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
fma-neg76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in x around inf 52.3%
Taylor expanded in a around inf 32.2%
*-commutative32.2%
associate-*r*35.6%
associate-*l*35.6%
*-commutative35.6%
mul-1-neg35.6%
distribute-rgt-neg-in35.6%
Simplified35.6%
if -2.0499999999999999e-259 < b < 3.1500000000000002e60Initial program 69.0%
+-commutative69.0%
fma-def70.1%
*-commutative70.1%
*-commutative70.1%
cancel-sign-sub-inv70.1%
cancel-sign-sub70.1%
fma-neg70.1%
distribute-rgt-neg-out70.1%
remove-double-neg70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around inf 53.4%
Taylor expanded in a around 0 36.6%
Final simplification41.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.05e+40) (not (<= b 1.25e+61))) (* a (* b i)) (* x (* y z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.05e+40) || !(b <= 1.25e+61)) {
tmp = a * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3.05d+40)) .or. (.not. (b <= 1.25d+61))) then
tmp = a * (b * i)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.05e+40) || !(b <= 1.25e+61)) {
tmp = a * (b * i);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.05e+40) or not (b <= 1.25e+61): tmp = a * (b * i) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.05e+40) || !(b <= 1.25e+61)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.05e+40) || ~((b <= 1.25e+61))) tmp = a * (b * i); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.05e+40], N[Not[LessEqual[b, 1.25e+61]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.05 \cdot 10^{+40} \lor \neg \left(b \leq 1.25 \cdot 10^{+61}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if b < -3.05e40 or 1.25000000000000004e61 < b Initial program 70.5%
add-cube-cbrt70.5%
pow370.5%
Applied egg-rr70.5%
Taylor expanded in i around inf 47.6%
*-commutative47.6%
Simplified47.6%
if -3.05e40 < b < 1.25000000000000004e61Initial program 70.6%
+-commutative70.6%
fma-def72.6%
*-commutative72.6%
*-commutative72.6%
cancel-sign-sub-inv72.6%
cancel-sign-sub72.6%
fma-neg72.6%
distribute-rgt-neg-out72.6%
remove-double-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in x around inf 52.9%
Taylor expanded in a around 0 31.6%
Final simplification38.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 70.5%
add-cube-cbrt70.4%
pow370.4%
Applied egg-rr70.4%
Taylor expanded in i around inf 25.4%
*-commutative25.4%
Simplified25.4%
Final simplification25.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2024021
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))