
(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 22 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
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY)
t_1
(+ (* t (- (* c j) (* x a))) (* 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 * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (t * ((c * j) - (x * a))) + (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 * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (t * ((c * j) - (x * a))) + (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(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + 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 * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (t * ((c * j) - (x * a))) + (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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * 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[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + 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 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.7%
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 y around 0 20.2%
Simplified18.2%
Taylor expanded in b around 0 56.1%
Final simplification85.6%
(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 (+ t_2 t_1)))
(if (<= x -4.5e+53)
t_3
(if (<= x 1.25e-43)
(+ t_2 (* b (- (* a i) (* z c))))
(if (<= x 80000000000.0)
(+ (* t (- (* c j) (* x a))) (* y (- (* x z) (* i j))))
(if (<= x 9.8e+39) (+ t_1 (* b (* a i))) 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 = t_2 + t_1;
double tmp;
if (x <= -4.5e+53) {
tmp = t_3;
} else if (x <= 1.25e-43) {
tmp = t_2 + (b * ((a * i) - (z * c)));
} else if (x <= 80000000000.0) {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
} else if (x <= 9.8e+39) {
tmp = t_1 + (b * (a * i));
} 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 = t_2 + t_1
if (x <= (-4.5d+53)) then
tmp = t_3
else if (x <= 1.25d-43) then
tmp = t_2 + (b * ((a * i) - (z * c)))
else if (x <= 80000000000.0d0) then
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)))
else if (x <= 9.8d+39) then
tmp = t_1 + (b * (a * i))
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 = t_2 + t_1;
double tmp;
if (x <= -4.5e+53) {
tmp = t_3;
} else if (x <= 1.25e-43) {
tmp = t_2 + (b * ((a * i) - (z * c)));
} else if (x <= 80000000000.0) {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
} else if (x <= 9.8e+39) {
tmp = t_1 + (b * (a * i));
} 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 = t_2 + t_1 tmp = 0 if x <= -4.5e+53: tmp = t_3 elif x <= 1.25e-43: tmp = t_2 + (b * ((a * i) - (z * c))) elif x <= 80000000000.0: tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))) elif x <= 9.8e+39: tmp = t_1 + (b * (a * i)) 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(t_2 + t_1) tmp = 0.0 if (x <= -4.5e+53) tmp = t_3; elseif (x <= 1.25e-43) tmp = Float64(t_2 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 80000000000.0) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (x <= 9.8e+39) tmp = Float64(t_1 + Float64(b * Float64(a * i))); 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 = t_2 + t_1; tmp = 0.0; if (x <= -4.5e+53) tmp = t_3; elseif (x <= 1.25e-43) tmp = t_2 + (b * ((a * i) - (z * c))); elseif (x <= 80000000000.0) tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))); elseif (x <= 9.8e+39) tmp = t_1 + (b * (a * i)); 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[(t$95$2 + t$95$1), $MachinePrecision]}, If[LessEqual[x, -4.5e+53], t$95$3, If[LessEqual[x, 1.25e-43], N[(t$95$2 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 80000000000.0], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.8e+39], N[(t$95$1 + N[(b * N[(a * i), $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 := t\_2 + t\_1\\
\mathbf{if}\;x \leq -4.5 \cdot 10^{+53}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-43}:\\
\;\;\;\;t\_2 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 80000000000:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{+39}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if x < -4.5000000000000002e53 or 9.79999999999999974e39 < x Initial program 79.6%
Taylor expanded in b around 0 81.2%
if -4.5000000000000002e53 < x < 1.25000000000000005e-43Initial program 74.7%
Taylor expanded in x around 0 76.3%
if 1.25000000000000005e-43 < x < 8e10Initial program 60.3%
Taylor expanded in y around 0 66.7%
Simplified73.1%
Taylor expanded in b around 0 93.1%
if 8e10 < x < 9.79999999999999974e39Initial program 47.6%
Taylor expanded in j around 0 81.5%
*-commutative81.5%
sub-neg81.5%
+-commutative81.5%
neg-mul-181.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in c around 0 90.6%
neg-mul-190.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
Final simplification79.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= c -1.9e+185) (not (<= c 5.1e+109)))
(* c (- (* t j) (* z b)))
(+
(* t (- (* c j) (* x a)))
(+ (* y (- (* x z) (* i j))) (* b (- (* a 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 ((c <= -1.9e+185) || !(c <= 5.1e+109)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = (t * ((c * j) - (x * a))) + ((y * ((x * z) - (i * j))) + (b * ((a * 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 ((c <= (-1.9d+185)) .or. (.not. (c <= 5.1d+109))) then
tmp = c * ((t * j) - (z * b))
else
tmp = (t * ((c * j) - (x * a))) + ((y * ((x * z) - (i * j))) + (b * ((a * 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 ((c <= -1.9e+185) || !(c <= 5.1e+109)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = (t * ((c * j) - (x * a))) + ((y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.9e+185) or not (c <= 5.1e+109): tmp = c * ((t * j) - (z * b)) else: tmp = (t * ((c * j) - (x * a))) + ((y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.9e+185) || !(c <= 5.1e+109)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(a * 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 ((c <= -1.9e+185) || ~((c <= 5.1e+109))) tmp = c * ((t * j) - (z * b)); else tmp = (t * ((c * j) - (x * a))) + ((y * ((x * z) - (i * j))) + (b * ((a * i) - (z * c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.9e+185], N[Not[LessEqual[c, 5.1e+109]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.9 \cdot 10^{+185} \lor \neg \left(c \leq 5.1 \cdot 10^{+109}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + \left(y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\end{array}
\end{array}
if c < -1.8999999999999999e185 or 5.0999999999999999e109 < c Initial program 56.2%
Taylor expanded in c around inf 81.7%
*-commutative81.7%
Simplified81.7%
if -1.8999999999999999e185 < c < 5.0999999999999999e109Initial program 80.2%
Taylor expanded in y around 0 73.8%
Simplified79.3%
associate--l+79.3%
Applied egg-rr79.3%
Final simplification79.9%
(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))))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -3.5e+170)
t_3
(if (<= j -1.7e-76)
(+ (* t (- (* c j) (* x a))) (+ (* z (* x y)) t_1))
(if (<= j 7e-28) (+ t_2 t_1) (+ t_3 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.5e+170) {
tmp = t_3;
} else if (j <= -1.7e-76) {
tmp = (t * ((c * j) - (x * a))) + ((z * (x * y)) + t_1);
} else if (j <= 7e-28) {
tmp = t_2 + t_1;
} else {
tmp = t_3 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = j * ((t * c) - (y * i))
if (j <= (-3.5d+170)) then
tmp = t_3
else if (j <= (-1.7d-76)) then
tmp = (t * ((c * j) - (x * a))) + ((z * (x * y)) + t_1)
else if (j <= 7d-28) then
tmp = t_2 + t_1
else
tmp = t_3 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.5e+170) {
tmp = t_3;
} else if (j <= -1.7e-76) {
tmp = (t * ((c * j) - (x * a))) + ((z * (x * y)) + t_1);
} else if (j <= 7e-28) {
tmp = t_2 + t_1;
} else {
tmp = t_3 + 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)) t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -3.5e+170: tmp = t_3 elif j <= -1.7e-76: tmp = (t * ((c * j) - (x * a))) + ((z * (x * y)) + t_1) elif j <= 7e-28: tmp = t_2 + t_1 else: tmp = t_3 + 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))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.5e+170) tmp = t_3; elseif (j <= -1.7e-76) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(Float64(z * Float64(x * y)) + t_1)); elseif (j <= 7e-28) tmp = Float64(t_2 + t_1); else tmp = Float64(t_3 + t_2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -3.5e+170) tmp = t_3; elseif (j <= -1.7e-76) tmp = (t * ((c * j) - (x * a))) + ((z * (x * y)) + t_1); elseif (j <= 7e-28) tmp = t_2 + t_1; else tmp = t_3 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e+170], t$95$3, If[LessEqual[j, -1.7e-76], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e-28], N[(t$95$2 + t$95$1), $MachinePrecision], N[(t$95$3 + t$95$2), $MachinePrecision]]]]]]]
\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)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{+170}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-76}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + \left(z \cdot \left(x \cdot y\right) + t\_1\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{-28}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3 + t\_2\\
\end{array}
\end{array}
if j < -3.50000000000000005e170Initial program 62.5%
Taylor expanded in y around 0 53.1%
Simplified62.4%
Taylor expanded in j around inf 84.7%
neg-mul-184.7%
+-commutative84.7%
sub-neg84.7%
Simplified84.7%
if -3.50000000000000005e170 < j < -1.7e-76Initial program 81.1%
Taylor expanded in y around 0 81.1%
Simplified84.5%
associate--l+84.6%
Applied egg-rr84.6%
Taylor expanded in z around inf 80.2%
associate-*r*82.0%
Simplified82.0%
if -1.7e-76 < j < 6.9999999999999999e-28Initial program 75.6%
Taylor expanded in j around 0 79.4%
*-commutative79.4%
sub-neg79.4%
+-commutative79.4%
neg-mul-179.4%
*-commutative79.4%
Simplified79.4%
if 6.9999999999999999e-28 < j Initial program 73.6%
Taylor expanded in b around 0 77.6%
Final simplification80.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -5.6e+38)
(* z (* y (- x (* b (/ c y)))))
(if (<= z 4.5e-114)
(* t (- (* c j) (+ (* x a) (/ (* i (* y j)) t))))
(if (<= z 1.7e+55)
(+ (* x (- (* y z) (* t a))) (* b (* a i)))
(- (* y (- (* x z) (* i j))) (* z (* b c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -5.6e+38) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 4.5e-114) {
tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t)));
} else if (z <= 1.7e+55) {
tmp = (x * ((y * z) - (t * a))) + (b * (a * i));
} else {
tmp = (y * ((x * z) - (i * j))) - (z * (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-5.6d+38)) then
tmp = z * (y * (x - (b * (c / y))))
else if (z <= 4.5d-114) then
tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t)))
else if (z <= 1.7d+55) then
tmp = (x * ((y * z) - (t * a))) + (b * (a * i))
else
tmp = (y * ((x * z) - (i * j))) - (z * (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -5.6e+38) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 4.5e-114) {
tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t)));
} else if (z <= 1.7e+55) {
tmp = (x * ((y * z) - (t * a))) + (b * (a * i));
} else {
tmp = (y * ((x * z) - (i * j))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -5.6e+38: tmp = z * (y * (x - (b * (c / y)))) elif z <= 4.5e-114: tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t))) elif z <= 1.7e+55: tmp = (x * ((y * z) - (t * a))) + (b * (a * i)) else: tmp = (y * ((x * z) - (i * j))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -5.6e+38) tmp = Float64(z * Float64(y * Float64(x - Float64(b * Float64(c / y))))); elseif (z <= 4.5e-114) tmp = Float64(t * Float64(Float64(c * j) - Float64(Float64(x * a) + Float64(Float64(i * Float64(y * j)) / t)))); elseif (z <= 1.7e+55) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(a * i))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -5.6e+38) tmp = z * (y * (x - (b * (c / y)))); elseif (z <= 4.5e-114) tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t))); elseif (z <= 1.7e+55) tmp = (x * ((y * z) - (t * a))) + (b * (a * i)); else tmp = (y * ((x * z) - (i * j))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5.6e+38], N[(z * N[(y * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-114], N[(t * N[(N[(c * j), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] + N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+55], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+38}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x - b \cdot \frac{c}{y}\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-114}:\\
\;\;\;\;t \cdot \left(c \cdot j - \left(x \cdot a + \frac{i \cdot \left(y \cdot j\right)}{t}\right)\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+55}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if z < -5.6e38Initial program 69.6%
Taylor expanded in z around inf 77.1%
Taylor expanded in y around inf 75.6%
mul-1-neg75.6%
unsub-neg75.6%
associate-/l*78.5%
Simplified78.5%
if -5.6e38 < z < 4.49999999999999969e-114Initial program 78.2%
Taylor expanded in t around -inf 73.7%
Simplified75.2%
Taylor expanded in j around inf 69.1%
associate-*r/69.1%
associate-*r*69.1%
neg-mul-169.1%
*-commutative69.1%
Simplified69.1%
if 4.49999999999999969e-114 < z < 1.6999999999999999e55Initial program 77.2%
Taylor expanded in j around 0 59.6%
*-commutative59.6%
sub-neg59.6%
+-commutative59.6%
neg-mul-159.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in c around 0 62.4%
neg-mul-162.4%
distribute-rgt-neg-in62.4%
Simplified62.4%
if 1.6999999999999999e55 < z Initial program 71.8%
Taylor expanded in y around 0 65.7%
Simplified65.7%
Taylor expanded in t around 0 73.9%
Taylor expanded in a around 0 67.5%
sub-neg67.5%
*-commutative67.5%
+-commutative67.5%
+-commutative67.5%
sub-neg67.5%
associate-*r*71.6%
Simplified71.6%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= j -2.4e-59)
(+ (* t (- (* c j) (* x a))) (* y (- (* x z) (* i j))))
(if (<= j 7.8e-28)
(+ t_1 (* b (- (* a i) (* z c))))
(+ (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -2.4e-59) {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
} else if (j <= 7.8e-28) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + 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 = x * ((y * z) - (t * a))
if (j <= (-2.4d-59)) then
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)))
else if (j <= 7.8d-28) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) + 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));
double tmp;
if (j <= -2.4e-59) {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
} else if (j <= 7.8e-28) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if j <= -2.4e-59: tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))) elif j <= 7.8e-28: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) + t_1 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 (j <= -2.4e-59) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (j <= 7.8e-28) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + 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)); tmp = 0.0; if (j <= -2.4e-59) tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))); elseif (j <= 7.8e-28) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) + t_1; 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[j, -2.4e-59], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.8e-28], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{-59}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;j \leq 7.8 \cdot 10^{-28}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
\end{array}
\end{array}
if j < -2.40000000000000015e-59Initial program 73.6%
Taylor expanded in y around 0 70.2%
Simplified75.9%
Taylor expanded in b around 0 75.1%
if -2.40000000000000015e-59 < j < 7.79999999999999998e-28Initial program 76.4%
Taylor expanded in j around 0 79.1%
*-commutative79.1%
sub-neg79.1%
+-commutative79.1%
neg-mul-179.1%
*-commutative79.1%
Simplified79.1%
if 7.79999999999999998e-28 < j Initial program 73.6%
Taylor expanded in b around 0 77.6%
Final simplification77.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= z -2.2e+150)
(* z (* y (- x (* b (/ c y)))))
(if (<= z 2.8e+58)
(+ (* t (- (* c j) (* x a))) t_1)
(- t_1 (* z (* b c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (z <= -2.2e+150) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 2.8e+58) {
tmp = (t * ((c * j) - (x * a))) + t_1;
} else {
tmp = t_1 - (z * (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (z <= (-2.2d+150)) then
tmp = z * (y * (x - (b * (c / y))))
else if (z <= 2.8d+58) then
tmp = (t * ((c * j) - (x * a))) + t_1
else
tmp = t_1 - (z * (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (z <= -2.2e+150) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 2.8e+58) {
tmp = (t * ((c * j) - (x * a))) + t_1;
} else {
tmp = t_1 - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if z <= -2.2e+150: tmp = z * (y * (x - (b * (c / y)))) elif z <= 2.8e+58: tmp = (t * ((c * j) - (x * a))) + t_1 else: tmp = t_1 - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (z <= -2.2e+150) tmp = Float64(z * Float64(y * Float64(x - Float64(b * Float64(c / y))))); elseif (z <= 2.8e+58) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + t_1); else tmp = Float64(t_1 - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (z <= -2.2e+150) tmp = z * (y * (x - (b * (c / y)))); elseif (z <= 2.8e+58) tmp = (t * ((c * j) - (x * a))) + t_1; else tmp = t_1 - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+150], N[(z * N[(y * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+58], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+150}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x - b \cdot \frac{c}{y}\right)\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+58}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if z < -2.19999999999999999e150Initial program 64.1%
Taylor expanded in z around inf 83.9%
Taylor expanded in y around inf 83.9%
mul-1-neg83.9%
unsub-neg83.9%
associate-/l*87.9%
Simplified87.9%
if -2.19999999999999999e150 < z < 2.7999999999999998e58Initial program 78.3%
Taylor expanded in y around 0 72.6%
Simplified78.6%
Taylor expanded in b around 0 71.4%
if 2.7999999999999998e58 < z Initial program 71.8%
Taylor expanded in y around 0 65.7%
Simplified65.7%
Taylor expanded in t around 0 73.9%
Taylor expanded in a around 0 67.5%
sub-neg67.5%
*-commutative67.5%
+-commutative67.5%
+-commutative67.5%
sub-neg67.5%
associate-*r*71.6%
Simplified71.6%
Final simplification74.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.7e+107)
(* z (* y (- x (* b (/ c y)))))
(if (<= z 9e+55)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(- (* y (- (* x z) (* i j))) (* z (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.7e+107) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 9e+55) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (y * ((x * z) - (i * j))) - (z * (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.7d+107)) then
tmp = z * (y * (x - (b * (c / y))))
else if (z <= 9d+55) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (y * ((x * z) - (i * j))) - (z * (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.7e+107) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 9e+55) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (y * ((x * z) - (i * j))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.7e+107: tmp = z * (y * (x - (b * (c / y)))) elif z <= 9e+55: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (y * ((x * z) - (i * j))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.7e+107) tmp = Float64(z * Float64(y * Float64(x - Float64(b * Float64(c / y))))); elseif (z <= 9e+55) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.7e+107) tmp = z * (y * (x - (b * (c / y)))); elseif (z <= 9e+55) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (y * ((x * z) - (i * j))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.7e+107], N[(z * N[(y * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+55], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+107}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x - b \cdot \frac{c}{y}\right)\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+55}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if z < -2.7000000000000001e107Initial program 65.9%
Taylor expanded in z around inf 80.7%
Taylor expanded in y around inf 80.7%
mul-1-neg80.7%
unsub-neg80.7%
associate-/l*84.2%
Simplified84.2%
if -2.7000000000000001e107 < z < 8.99999999999999996e55Initial program 78.5%
Taylor expanded in b around 0 70.4%
if 8.99999999999999996e55 < z Initial program 71.8%
Taylor expanded in y around 0 65.7%
Simplified65.7%
Taylor expanded in t around 0 73.9%
Taylor expanded in a around 0 67.5%
sub-neg67.5%
*-commutative67.5%
+-commutative67.5%
+-commutative67.5%
sub-neg67.5%
associate-*r*71.6%
Simplified71.6%
Final simplification73.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= z -4.8e+69)
t_1
(if (<= z 1.3e-181)
(* c (* t j))
(if (<= z 1.3e+76)
(* a (- (* b i) (* x t)))
(if (<= z 5.7e+162) (* z (* b (- c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (z <= -4.8e+69) {
tmp = t_1;
} else if (z <= 1.3e-181) {
tmp = c * (t * j);
} else if (z <= 1.3e+76) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 5.7e+162) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (z <= (-4.8d+69)) then
tmp = t_1
else if (z <= 1.3d-181) then
tmp = c * (t * j)
else if (z <= 1.3d+76) then
tmp = a * ((b * i) - (x * t))
else if (z <= 5.7d+162) then
tmp = z * (b * -c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (z <= -4.8e+69) {
tmp = t_1;
} else if (z <= 1.3e-181) {
tmp = c * (t * j);
} else if (z <= 1.3e+76) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 5.7e+162) {
tmp = z * (b * -c);
} 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 <= -4.8e+69: tmp = t_1 elif z <= 1.3e-181: tmp = c * (t * j) elif z <= 1.3e+76: tmp = a * ((b * i) - (x * t)) elif z <= 5.7e+162: tmp = z * (b * -c) 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 <= -4.8e+69) tmp = t_1; elseif (z <= 1.3e-181) tmp = Float64(c * Float64(t * j)); elseif (z <= 1.3e+76) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 5.7e+162) tmp = Float64(z * Float64(b * Float64(-c))); 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 <= -4.8e+69) tmp = t_1; elseif (z <= 1.3e-181) tmp = c * (t * j); elseif (z <= 1.3e+76) tmp = a * ((b * i) - (x * t)); elseif (z <= 5.7e+162) tmp = z * (b * -c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.8e+69], t$95$1, If[LessEqual[z, 1.3e-181], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+76], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.7e+162], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-181}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+162}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.8000000000000003e69 or 5.69999999999999997e162 < z Initial program 67.8%
Taylor expanded in z around inf 76.8%
Taylor expanded in x around inf 50.4%
if -4.8000000000000003e69 < z < 1.29999999999999999e-181Initial program 79.1%
Taylor expanded in c around inf 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in t around inf 43.6%
if 1.29999999999999999e-181 < z < 1.3e76Initial program 77.1%
Taylor expanded in y around 0 69.5%
Simplified76.3%
associate--l+76.3%
Applied egg-rr76.3%
Taylor expanded in a around inf 44.1%
mul-1-neg44.1%
distribute-lft-neg-out44.1%
cancel-sign-sub44.1%
+-commutative44.1%
*-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
*-commutative44.1%
Simplified44.1%
if 1.3e76 < z < 5.69999999999999997e162Initial program 74.5%
Taylor expanded in z around inf 64.5%
Taylor expanded in x around 0 48.9%
neg-mul-148.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
Final simplification46.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.7e+102)
(* j (- (* t c) (* y i)))
(if (<= j 4.4e+132)
(+ (* x (- (* y z) (* t a))) (* b (* a i)))
(* (* t j) (- c (* i (/ y t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.7e+102) {
tmp = j * ((t * c) - (y * i));
} else if (j <= 4.4e+132) {
tmp = (x * ((y * z) - (t * a))) + (b * (a * i));
} else {
tmp = (t * j) * (c - (i * (y / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-2.7d+102)) then
tmp = j * ((t * c) - (y * i))
else if (j <= 4.4d+132) then
tmp = (x * ((y * z) - (t * a))) + (b * (a * i))
else
tmp = (t * j) * (c - (i * (y / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.7e+102) {
tmp = j * ((t * c) - (y * i));
} else if (j <= 4.4e+132) {
tmp = (x * ((y * z) - (t * a))) + (b * (a * i));
} else {
tmp = (t * j) * (c - (i * (y / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.7e+102: tmp = j * ((t * c) - (y * i)) elif j <= 4.4e+132: tmp = (x * ((y * z) - (t * a))) + (b * (a * i)) else: tmp = (t * j) * (c - (i * (y / t))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.7e+102) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (j <= 4.4e+132) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(a * i))); else tmp = Float64(Float64(t * j) * Float64(c - Float64(i * Float64(y / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.7e+102) tmp = j * ((t * c) - (y * i)); elseif (j <= 4.4e+132) tmp = (x * ((y * z) - (t * a))) + (b * (a * i)); else tmp = (t * j) * (c - (i * (y / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.7e+102], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e+132], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * j), $MachinePrecision] * N[(c - N[(i * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.7 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+132}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot j\right) \cdot \left(c - i \cdot \frac{y}{t}\right)\\
\end{array}
\end{array}
if j < -2.7000000000000001e102Initial program 68.1%
Taylor expanded in y around 0 61.7%
Simplified72.2%
Taylor expanded in j around inf 79.4%
neg-mul-179.4%
+-commutative79.4%
sub-neg79.4%
Simplified79.4%
if -2.7000000000000001e102 < j < 4.39999999999999977e132Initial program 77.4%
Taylor expanded in j around 0 70.5%
*-commutative70.5%
sub-neg70.5%
+-commutative70.5%
neg-mul-170.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in c around 0 61.9%
neg-mul-161.9%
distribute-rgt-neg-in61.9%
Simplified61.9%
if 4.39999999999999977e132 < j Initial program 71.5%
Taylor expanded in t around -inf 53.8%
Simplified58.3%
Taylor expanded in j around inf 80.6%
associate-*r*78.5%
*-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
associate-/l*80.7%
Simplified80.7%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.5e+106)
(* j (- (* t c) (* y i)))
(if (<= j 1.1e+88)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(* (* t j) (- c (* i (/ y t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+106) {
tmp = j * ((t * c) - (y * i));
} else if (j <= 1.1e+88) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else {
tmp = (t * j) * (c - (i * (y / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d+106)) then
tmp = j * ((t * c) - (y * i))
else if (j <= 1.1d+88) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else
tmp = (t * j) * (c - (i * (y / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+106) {
tmp = j * ((t * c) - (y * i));
} else if (j <= 1.1e+88) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else {
tmp = (t * j) * (c - (i * (y / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e+106: tmp = j * ((t * c) - (y * i)) elif j <= 1.1e+88: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) else: tmp = (t * j) * (c - (i * (y / t))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e+106) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (j <= 1.1e+88) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); else tmp = Float64(Float64(t * j) * Float64(c - Float64(i * Float64(y / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e+106) tmp = j * ((t * c) - (y * i)); elseif (j <= 1.1e+88) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); else tmp = (t * j) * (c - (i * (y / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e+106], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e+88], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * j), $MachinePrecision] * N[(c - N[(i * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+106}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{+88}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot j\right) \cdot \left(c - i \cdot \frac{y}{t}\right)\\
\end{array}
\end{array}
if j < -9.4999999999999995e106Initial program 67.4%
Taylor expanded in y around 0 60.9%
Simplified71.6%
Taylor expanded in j around inf 79.0%
neg-mul-179.0%
+-commutative79.0%
sub-neg79.0%
Simplified79.0%
if -9.4999999999999995e106 < j < 1.10000000000000004e88Initial program 77.0%
Taylor expanded in j around 0 72.2%
*-commutative72.2%
sub-neg72.2%
+-commutative72.2%
neg-mul-172.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around inf 60.9%
*-commutative60.9%
Simplified60.9%
if 1.10000000000000004e88 < j Initial program 74.0%
Taylor expanded in t around -inf 58.4%
Simplified61.8%
Taylor expanded in j around inf 72.8%
associate-*r*71.1%
*-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*72.9%
Simplified72.9%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -3000000000000.0)
t_1
(if (<= c -1.45e-122)
(* z (* x y))
(if (<= c 3.6e-70) (* a (- (* b i) (* 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -3000000000000.0) {
tmp = t_1;
} else if (c <= -1.45e-122) {
tmp = z * (x * y);
} else if (c <= 3.6e-70) {
tmp = a * ((b * i) - (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 = c * ((t * j) - (z * b))
if (c <= (-3000000000000.0d0)) then
tmp = t_1
else if (c <= (-1.45d-122)) then
tmp = z * (x * y)
else if (c <= 3.6d-70) then
tmp = a * ((b * i) - (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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -3000000000000.0) {
tmp = t_1;
} else if (c <= -1.45e-122) {
tmp = z * (x * y);
} else if (c <= 3.6e-70) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -3000000000000.0: tmp = t_1 elif c <= -1.45e-122: tmp = z * (x * y) elif c <= 3.6e-70: tmp = a * ((b * i) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -3000000000000.0) tmp = t_1; elseif (c <= -1.45e-122) tmp = Float64(z * Float64(x * y)); elseif (c <= 3.6e-70) tmp = Float64(a * Float64(Float64(b * i) - 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 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -3000000000000.0) tmp = t_1; elseif (c <= -1.45e-122) tmp = z * (x * y); elseif (c <= 3.6e-70) tmp = a * ((b * i) - (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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3000000000000.0], t$95$1, If[LessEqual[c, -1.45e-122], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.6e-70], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-122}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-70}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3e12 or 3.6000000000000002e-70 < c Initial program 66.7%
Taylor expanded in c around inf 61.3%
*-commutative61.3%
Simplified61.3%
if -3e12 < c < -1.4500000000000001e-122Initial program 82.1%
Taylor expanded in z around inf 58.8%
Taylor expanded in x around inf 48.7%
if -1.4500000000000001e-122 < c < 3.6000000000000002e-70Initial program 85.3%
Taylor expanded in y around 0 76.7%
Simplified84.5%
associate--l+84.5%
Applied egg-rr84.5%
Taylor expanded in a around inf 48.6%
mul-1-neg48.6%
distribute-lft-neg-out48.6%
cancel-sign-sub48.6%
+-commutative48.6%
*-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
Final simplification55.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -1.3e+56)
t_1
(if (<= x 6.5e-10)
(* b (- (* a i) (* z c)))
(if (<= x 1.16e+229) 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 = z * (x * y);
double tmp;
if (x <= -1.3e+56) {
tmp = t_1;
} else if (x <= 6.5e-10) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.16e+229) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-1.3d+56)) then
tmp = t_1
else if (x <= 6.5d-10) then
tmp = b * ((a * i) - (z * c))
else if (x <= 1.16d+229) then
tmp = t_1
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -1.3e+56) {
tmp = t_1;
} else if (x <= 6.5e-10) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.16e+229) {
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 = z * (x * y) tmp = 0 if x <= -1.3e+56: tmp = t_1 elif x <= 6.5e-10: tmp = b * ((a * i) - (z * c)) elif x <= 1.16e+229: 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(z * Float64(x * y)) tmp = 0.0 if (x <= -1.3e+56) tmp = t_1; elseif (x <= 6.5e-10) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.16e+229) 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 = z * (x * y); tmp = 0.0; if (x <= -1.3e+56) tmp = t_1; elseif (x <= 6.5e-10) tmp = b * ((a * i) - (z * c)); elseif (x <= 1.16e+229) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+56], t$95$1, If[LessEqual[x, 6.5e-10], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.16e+229], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.16 \cdot 10^{+229}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if x < -1.30000000000000005e56 or 6.5000000000000003e-10 < x < 1.16000000000000001e229Initial program 75.4%
Taylor expanded in z around inf 55.9%
Taylor expanded in x around inf 49.7%
if -1.30000000000000005e56 < x < 6.5000000000000003e-10Initial program 74.3%
Taylor expanded in b around inf 48.7%
if 1.16000000000000001e229 < x Initial program 71.8%
Taylor expanded in y around 0 50.4%
Simplified50.4%
associate--l+50.4%
Applied egg-rr50.4%
Taylor expanded in a around inf 57.9%
mul-1-neg57.9%
distribute-lft-neg-out57.9%
cancel-sign-sub57.9%
+-commutative57.9%
*-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
Final simplification49.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -5.2e+77) (not (<= z 1.3e+86))) (* z (- (* x y) (* b c))) (* j (- (* t c) (* 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 ((z <= -5.2e+77) || !(z <= 1.3e+86)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = j * ((t * 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) :: tmp
if ((z <= (-5.2d+77)) .or. (.not. (z <= 1.3d+86))) then
tmp = z * ((x * y) - (b * c))
else
tmp = j * ((t * 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 tmp;
if ((z <= -5.2e+77) || !(z <= 1.3e+86)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -5.2e+77) or not (z <= 1.3e+86): tmp = z * ((x * y) - (b * c)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -5.2e+77) || !(z <= 1.3e+86)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -5.2e+77) || ~((z <= 1.3e+86))) tmp = z * ((x * y) - (b * c)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -5.2e+77], N[Not[LessEqual[z, 1.3e+86]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+77} \lor \neg \left(z \leq 1.3 \cdot 10^{+86}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if z < -5.2000000000000004e77 or 1.2999999999999999e86 < z Initial program 69.1%
Taylor expanded in z around inf 74.5%
if -5.2000000000000004e77 < z < 1.2999999999999999e86Initial program 78.3%
Taylor expanded in y around 0 70.9%
Simplified77.4%
Taylor expanded in j around inf 54.2%
neg-mul-154.2%
+-commutative54.2%
sub-neg54.2%
Simplified54.2%
Final simplification62.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -6.6e+17) (not (<= t 6800000000000.0))) (* t (- (* c j) (* x a))) (* 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 tmp;
if ((t <= -6.6e+17) || !(t <= 6800000000000.0)) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = y * ((x * z) - (i * 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 ((t <= (-6.6d+17)) .or. (.not. (t <= 6800000000000.0d0))) then
tmp = t * ((c * j) - (x * a))
else
tmp = y * ((x * z) - (i * 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 ((t <= -6.6e+17) || !(t <= 6800000000000.0)) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -6.6e+17) or not (t <= 6800000000000.0): tmp = t * ((c * j) - (x * a)) else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -6.6e+17) || !(t <= 6800000000000.0)) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); 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) tmp = 0.0; if ((t <= -6.6e+17) || ~((t <= 6800000000000.0))) tmp = t * ((c * j) - (x * a)); else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -6.6e+17], N[Not[LessEqual[t, 6800000000000.0]], $MachinePrecision]], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+17} \lor \neg \left(t \leq 6800000000000\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if t < -6.6e17 or 6.8e12 < t Initial program 68.6%
Taylor expanded in t around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -6.6e17 < t < 6.8e12Initial program 81.1%
Taylor expanded in y around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
Simplified60.3%
Final simplification60.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -2.9e+102) (not (<= j 2.7e+104))) (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.9e+102) || !(j <= 2.7e+104)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-2.9d+102)) .or. (.not. (j <= 2.7d+104))) then
tmp = j * ((t * c) - (y * i))
else
tmp = x * ((y * z) - (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.9e+102) || !(j <= 2.7e+104)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -2.9e+102) or not (j <= 2.7e+104): tmp = j * ((t * c) - (y * i)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -2.9e+102) || !(j <= 2.7e+104)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -2.9e+102) || ~((j <= 2.7e+104))) tmp = j * ((t * c) - (y * i)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -2.9e+102], N[Not[LessEqual[j, 2.7e+104]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.9 \cdot 10^{+102} \lor \neg \left(j \leq 2.7 \cdot 10^{+104}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if j < -2.9000000000000002e102 or 2.69999999999999985e104 < j Initial program 71.2%
Taylor expanded in y around 0 61.3%
Simplified68.1%
Taylor expanded in j around inf 76.7%
neg-mul-176.7%
+-commutative76.7%
sub-neg76.7%
Simplified76.7%
if -2.9000000000000002e102 < j < 2.69999999999999985e104Initial program 76.8%
Taylor expanded in y around 0 73.9%
Simplified75.2%
Taylor expanded in x around inf 50.5%
neg-mul-150.5%
+-commutative50.5%
*-commutative50.5%
sub-neg50.5%
Simplified50.5%
Final simplification60.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.8e+103) (not (<= j 7.6e-28))) (* j (- (* t c) (* y i))) (* b (- (* a 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 ((j <= -1.8e+103) || !(j <= 7.6e-28)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = b * ((a * 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 ((j <= (-1.8d+103)) .or. (.not. (j <= 7.6d-28))) then
tmp = j * ((t * c) - (y * i))
else
tmp = b * ((a * 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 ((j <= -1.8e+103) || !(j <= 7.6e-28)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.8e+103) or not (j <= 7.6e-28): tmp = j * ((t * c) - (y * i)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.8e+103) || !(j <= 7.6e-28)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(b * Float64(Float64(a * 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 ((j <= -1.8e+103) || ~((j <= 7.6e-28))) tmp = j * ((t * c) - (y * i)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.8e+103], N[Not[LessEqual[j, 7.6e-28]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.8 \cdot 10^{+103} \lor \neg \left(j \leq 7.6 \cdot 10^{-28}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.80000000000000008e103 or 7.60000000000000018e-28 < j Initial program 71.3%
Taylor expanded in y around 0 59.8%
Simplified68.7%
Taylor expanded in j around inf 71.9%
neg-mul-171.9%
+-commutative71.9%
sub-neg71.9%
Simplified71.9%
if -1.80000000000000008e103 < j < 7.60000000000000018e-28Initial program 77.6%
Taylor expanded in b around inf 48.4%
Final simplification59.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -9.2e+66) (* z (* y (- x (* b (/ c y))))) (if (<= z 7e+73) (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -9.2e+66) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 7e+73) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-9.2d+66)) then
tmp = z * (y * (x - (b * (c / y))))
else if (z <= 7d+73) then
tmp = j * ((t * c) - (y * i))
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -9.2e+66) {
tmp = z * (y * (x - (b * (c / y))));
} else if (z <= 7e+73) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -9.2e+66: tmp = z * (y * (x - (b * (c / y)))) elif z <= 7e+73: tmp = j * ((t * c) - (y * i)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -9.2e+66) tmp = Float64(z * Float64(y * Float64(x - Float64(b * Float64(c / y))))); elseif (z <= 7e+73) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -9.2e+66) tmp = z * (y * (x - (b * (c / y)))); elseif (z <= 7e+73) tmp = j * ((t * c) - (y * i)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -9.2e+66], N[(z * N[(y * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+73], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.2 \cdot 10^{+66}:\\
\;\;\;\;z \cdot \left(y \cdot \left(x - b \cdot \frac{c}{y}\right)\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+73}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -9.2e66Initial program 68.3%
Taylor expanded in z around inf 82.1%
Taylor expanded in y around inf 82.1%
mul-1-neg82.1%
unsub-neg82.1%
associate-/l*85.3%
Simplified85.3%
if -9.2e66 < z < 7.00000000000000004e73Initial program 78.3%
Taylor expanded in y around 0 70.9%
Simplified77.4%
Taylor expanded in j around inf 54.2%
neg-mul-154.2%
+-commutative54.2%
sub-neg54.2%
Simplified54.2%
if 7.00000000000000004e73 < z Initial program 69.9%
Taylor expanded in z around inf 65.2%
Final simplification63.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -5e+20) (not (<= t 9.5e+38))) (* c (* t j)) (* z (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5e+20) || !(t <= 9.5e+38)) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-5d+20)) .or. (.not. (t <= 9.5d+38))) then
tmp = c * (t * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5e+20) || !(t <= 9.5e+38)) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -5e+20) or not (t <= 9.5e+38): tmp = c * (t * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -5e+20) || !(t <= 9.5e+38)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -5e+20) || ~((t <= 9.5e+38))) tmp = c * (t * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -5e+20], N[Not[LessEqual[t, 9.5e+38]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+20} \lor \neg \left(t \leq 9.5 \cdot 10^{+38}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if t < -5e20 or 9.4999999999999995e38 < t Initial program 68.7%
Taylor expanded in c around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in t around inf 45.0%
if -5e20 < t < 9.4999999999999995e38Initial program 80.5%
Taylor expanded in z around inf 53.7%
Taylor expanded in x around inf 38.0%
Final simplification41.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -5.8e+74) (not (<= i 1.35e+54))) (* b (* a i)) (* c (* t 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 <= -5.8e+74) || !(i <= 1.35e+54)) {
tmp = b * (a * i);
} else {
tmp = c * (t * 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 <= (-5.8d+74)) .or. (.not. (i <= 1.35d+54))) then
tmp = b * (a * i)
else
tmp = c * (t * 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 <= -5.8e+74) || !(i <= 1.35e+54)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -5.8e+74) or not (i <= 1.35e+54): tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -5.8e+74) || !(i <= 1.35e+54)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -5.8e+74) || ~((i <= 1.35e+54))) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -5.8e+74], N[Not[LessEqual[i, 1.35e+54]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.8 \cdot 10^{+74} \lor \neg \left(i \leq 1.35 \cdot 10^{+54}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -5.8000000000000005e74 or 1.35000000000000005e54 < i Initial program 68.3%
Taylor expanded in b around inf 51.7%
Taylor expanded in a around inf 45.1%
if -5.8000000000000005e74 < i < 1.35000000000000005e54Initial program 78.7%
Taylor expanded in c around inf 48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in t around inf 32.7%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 74.6%
Taylor expanded in b around inf 38.2%
Taylor expanded in a around inf 21.5%
(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 74.6%
Taylor expanded in b around inf 38.2%
Taylor expanded in a around inf 20.6%
(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 2024135
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* 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)))))