
(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
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* 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 * ((a * i) - (z * c)))) + (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 * ((a * i) - (z * c)))) + (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 * ((a * i) - (z * c)))) + (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(a * i) - Float64(z * c)))) + 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 * ((a * i) - (z * c)))) + (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[(a * i), $MachinePrecision] - N[(z * c), $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(a \cdot i - z \cdot c\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 91.9%
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 62.0%
distribute-lft-out--62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Final simplification85.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z (- y (* b (/ c x)))) (* t a))))
(t_2 (* j (- (* t c) (* y i)))))
(if (<= j -3.4e+123)
t_2
(if (<= j -8.8e-113)
t_1
(if (<= j -6.2e-243)
(* i (- (* a b) (* y j)))
(if (<= j 4.5e-270)
t_1
(if (<= j 6.5e-229)
(+ (* z (* x y)) (* i (* a b)))
(if (<= j 2.5e+95) 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 * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.4e+123) {
tmp = t_2;
} else if (j <= -8.8e-113) {
tmp = t_1;
} else if (j <= -6.2e-243) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 4.5e-270) {
tmp = t_1;
} else if (j <= 6.5e-229) {
tmp = (z * (x * y)) + (i * (a * b));
} else if (j <= 2.5e+95) {
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 * ((z * (y - (b * (c / x)))) - (t * a))
t_2 = j * ((t * c) - (y * i))
if (j <= (-3.4d+123)) then
tmp = t_2
else if (j <= (-8.8d-113)) then
tmp = t_1
else if (j <= (-6.2d-243)) then
tmp = i * ((a * b) - (y * j))
else if (j <= 4.5d-270) then
tmp = t_1
else if (j <= 6.5d-229) then
tmp = (z * (x * y)) + (i * (a * b))
else if (j <= 2.5d+95) 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 * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.4e+123) {
tmp = t_2;
} else if (j <= -8.8e-113) {
tmp = t_1;
} else if (j <= -6.2e-243) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 4.5e-270) {
tmp = t_1;
} else if (j <= 6.5e-229) {
tmp = (z * (x * y)) + (i * (a * b));
} else if (j <= 2.5e+95) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * (y - (b * (c / x)))) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -3.4e+123: tmp = t_2 elif j <= -8.8e-113: tmp = t_1 elif j <= -6.2e-243: tmp = i * ((a * b) - (y * j)) elif j <= 4.5e-270: tmp = t_1 elif j <= 6.5e-229: tmp = (z * (x * y)) + (i * (a * b)) elif j <= 2.5e+95: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * Float64(y - Float64(b * Float64(c / x)))) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.4e+123) tmp = t_2; elseif (j <= -8.8e-113) tmp = t_1; elseif (j <= -6.2e-243) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (j <= 4.5e-270) tmp = t_1; elseif (j <= 6.5e-229) tmp = Float64(Float64(z * Float64(x * y)) + Float64(i * Float64(a * b))); elseif (j <= 2.5e+95) 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 * ((z * (y - (b * (c / x)))) - (t * a)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -3.4e+123) tmp = t_2; elseif (j <= -8.8e-113) tmp = t_1; elseif (j <= -6.2e-243) tmp = i * ((a * b) - (y * j)); elseif (j <= 4.5e-270) tmp = t_1; elseif (j <= 6.5e-229) tmp = (z * (x * y)) + (i * (a * b)); elseif (j <= 2.5e+95) 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[(x * N[(N[(z * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.4e+123], t$95$2, If[LessEqual[j, -8.8e-113], t$95$1, If[LessEqual[j, -6.2e-243], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.5e-270], t$95$1, If[LessEqual[j, 6.5e-229], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e+95], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot \left(y - b \cdot \frac{c}{x}\right) - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.4 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -8.8 \cdot 10^{-113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.2 \cdot 10^{-243}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{-270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-229}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -3.40000000000000001e123 or 2.50000000000000012e95 < j Initial program 75.6%
Taylor expanded in j around inf 81.6%
if -3.40000000000000001e123 < j < -8.80000000000000016e-113 or -6.1999999999999999e-243 < j < 4.49999999999999998e-270 or 6.5e-229 < j < 2.50000000000000012e95Initial program 72.2%
Taylor expanded in j around 0 69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in x around inf 67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
*-commutative67.0%
associate-/l*68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in i around 0 57.8%
+-commutative57.8%
associate--r+57.8%
Simplified66.7%
if -8.80000000000000016e-113 < j < -6.1999999999999999e-243Initial program 67.6%
Taylor expanded in i around inf 67.7%
distribute-lft-out--67.7%
*-commutative67.7%
Simplified67.7%
if 4.49999999999999998e-270 < j < 6.5e-229Initial program 66.8%
Taylor expanded in j around 0 82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in y around inf 91.3%
*-commutative91.3%
Simplified91.3%
Taylor expanded in c around 0 73.8%
associate-*r*73.8%
mul-1-neg73.8%
associate-*r*91.3%
*-commutative91.3%
Simplified91.3%
Final simplification72.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z (- y (* b (/ c x)))) (* t a))))
(t_2 (* j (- (* t c) (* y i)))))
(if (<= j -2.2e+126)
t_2
(if (<= j -2.4e-112)
t_1
(if (<= j -2.1e-174)
(* i (- (* a b) (* y j)))
(if (<= j 2.3e-193)
(+ (* x (- (* y z) (* t a))) (* i (* a b)))
(if (<= j 3.1e-98) t_1 (- t_2 (* x (- (* t a) (* 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 = x * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.2e+126) {
tmp = t_2;
} else if (j <= -2.4e-112) {
tmp = t_1;
} else if (j <= -2.1e-174) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 2.3e-193) {
tmp = (x * ((y * z) - (t * a))) + (i * (a * b));
} else if (j <= 3.1e-98) {
tmp = t_1;
} else {
tmp = t_2 - (x * ((t * a) - (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) :: t_2
real(8) :: tmp
t_1 = x * ((z * (y - (b * (c / x)))) - (t * a))
t_2 = j * ((t * c) - (y * i))
if (j <= (-2.2d+126)) then
tmp = t_2
else if (j <= (-2.4d-112)) then
tmp = t_1
else if (j <= (-2.1d-174)) then
tmp = i * ((a * b) - (y * j))
else if (j <= 2.3d-193) then
tmp = (x * ((y * z) - (t * a))) + (i * (a * b))
else if (j <= 3.1d-98) then
tmp = t_1
else
tmp = t_2 - (x * ((t * a) - (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 = x * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.2e+126) {
tmp = t_2;
} else if (j <= -2.4e-112) {
tmp = t_1;
} else if (j <= -2.1e-174) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 2.3e-193) {
tmp = (x * ((y * z) - (t * a))) + (i * (a * b));
} else if (j <= 3.1e-98) {
tmp = t_1;
} else {
tmp = t_2 - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * (y - (b * (c / x)))) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.2e+126: tmp = t_2 elif j <= -2.4e-112: tmp = t_1 elif j <= -2.1e-174: tmp = i * ((a * b) - (y * j)) elif j <= 2.3e-193: tmp = (x * ((y * z) - (t * a))) + (i * (a * b)) elif j <= 3.1e-98: tmp = t_1 else: tmp = t_2 - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * Float64(y - Float64(b * Float64(c / x)))) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.2e+126) tmp = t_2; elseif (j <= -2.4e-112) tmp = t_1; elseif (j <= -2.1e-174) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (j <= 2.3e-193) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(i * Float64(a * b))); elseif (j <= 3.1e-98) tmp = t_1; else tmp = Float64(t_2 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * (y - (b * (c / x)))) - (t * a)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.2e+126) tmp = t_2; elseif (j <= -2.4e-112) tmp = t_1; elseif (j <= -2.1e-174) tmp = i * ((a * b) - (y * j)); elseif (j <= 2.3e-193) tmp = (x * ((y * z) - (t * a))) + (i * (a * b)); elseif (j <= 3.1e-98) tmp = t_1; else tmp = t_2 - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.2e+126], t$95$2, If[LessEqual[j, -2.4e-112], t$95$1, If[LessEqual[j, -2.1e-174], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-193], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e-98], t$95$1, N[(t$95$2 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot \left(y - b \cdot \frac{c}{x}\right) - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.2 \cdot 10^{+126}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.4 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.1 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-193}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if j < -2.19999999999999999e126Initial program 75.6%
Taylor expanded in j around inf 79.1%
if -2.19999999999999999e126 < j < -2.4000000000000001e-112 or 2.30000000000000009e-193 < j < 3.1e-98Initial program 70.9%
Taylor expanded in j around 0 74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in x around inf 73.6%
+-commutative73.6%
mul-1-neg73.6%
unsub-neg73.6%
*-commutative73.6%
associate-/l*74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in i around 0 64.6%
+-commutative64.6%
associate--r+64.6%
Simplified72.5%
if -2.4000000000000001e-112 < j < -2.1000000000000001e-174Initial program 63.7%
Taylor expanded in i around inf 69.5%
distribute-lft-out--69.5%
*-commutative69.5%
Simplified69.5%
if -2.1000000000000001e-174 < j < 2.30000000000000009e-193Initial program 74.7%
Taylor expanded in j around 0 78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in z around 0 74.0%
mul-1-neg74.0%
*-commutative74.0%
*-commutative74.0%
associate-*r*74.4%
*-commutative74.4%
distribute-rgt-neg-out74.4%
distribute-rgt-neg-in74.4%
Simplified74.4%
if 3.1e-98 < j Initial program 73.0%
Taylor expanded in b around 0 72.9%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z (- y (* b (/ c x)))) (* t a))))
(t_2 (* j (- (* t c) (* y i)))))
(if (<= j -6.4e+125)
t_2
(if (<= j -1.05e-112)
t_1
(if (<= j -8.6e-175)
(* i (- (* a b) (* y j)))
(if (<= j 1.2e-194)
(+ (* x (- (* y z) (* t a))) (* i (* a b)))
(if (<= j 6.5e+95) 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 * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -6.4e+125) {
tmp = t_2;
} else if (j <= -1.05e-112) {
tmp = t_1;
} else if (j <= -8.6e-175) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 1.2e-194) {
tmp = (x * ((y * z) - (t * a))) + (i * (a * b));
} else if (j <= 6.5e+95) {
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 * ((z * (y - (b * (c / x)))) - (t * a))
t_2 = j * ((t * c) - (y * i))
if (j <= (-6.4d+125)) then
tmp = t_2
else if (j <= (-1.05d-112)) then
tmp = t_1
else if (j <= (-8.6d-175)) then
tmp = i * ((a * b) - (y * j))
else if (j <= 1.2d-194) then
tmp = (x * ((y * z) - (t * a))) + (i * (a * b))
else if (j <= 6.5d+95) 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 * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -6.4e+125) {
tmp = t_2;
} else if (j <= -1.05e-112) {
tmp = t_1;
} else if (j <= -8.6e-175) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 1.2e-194) {
tmp = (x * ((y * z) - (t * a))) + (i * (a * b));
} else if (j <= 6.5e+95) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * (y - (b * (c / x)))) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -6.4e+125: tmp = t_2 elif j <= -1.05e-112: tmp = t_1 elif j <= -8.6e-175: tmp = i * ((a * b) - (y * j)) elif j <= 1.2e-194: tmp = (x * ((y * z) - (t * a))) + (i * (a * b)) elif j <= 6.5e+95: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * Float64(y - Float64(b * Float64(c / x)))) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -6.4e+125) tmp = t_2; elseif (j <= -1.05e-112) tmp = t_1; elseif (j <= -8.6e-175) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (j <= 1.2e-194) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(i * Float64(a * b))); elseif (j <= 6.5e+95) 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 * ((z * (y - (b * (c / x)))) - (t * a)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -6.4e+125) tmp = t_2; elseif (j <= -1.05e-112) tmp = t_1; elseif (j <= -8.6e-175) tmp = i * ((a * b) - (y * j)); elseif (j <= 1.2e-194) tmp = (x * ((y * z) - (t * a))) + (i * (a * b)); elseif (j <= 6.5e+95) 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[(x * N[(N[(z * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.4e+125], t$95$2, If[LessEqual[j, -1.05e-112], t$95$1, If[LessEqual[j, -8.6e-175], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.2e-194], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e+95], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot \left(y - b \cdot \frac{c}{x}\right) - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -6.4 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.6 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{-194}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -6.39999999999999967e125 or 6.5e95 < j Initial program 75.6%
Taylor expanded in j around inf 81.6%
if -6.39999999999999967e125 < j < -1.05e-112 or 1.2e-194 < j < 6.5e95Initial program 70.9%
Taylor expanded in j around 0 67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in x around inf 66.2%
+-commutative66.2%
mul-1-neg66.2%
unsub-neg66.2%
*-commutative66.2%
associate-/l*68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in i around 0 57.5%
+-commutative57.5%
associate--r+57.5%
Simplified68.3%
if -1.05e-112 < j < -8.59999999999999996e-175Initial program 63.7%
Taylor expanded in i around inf 69.5%
distribute-lft-out--69.5%
*-commutative69.5%
Simplified69.5%
if -8.59999999999999996e-175 < j < 1.2e-194Initial program 74.7%
Taylor expanded in j around 0 78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in z around 0 74.0%
mul-1-neg74.0%
*-commutative74.0%
*-commutative74.0%
associate-*r*74.4%
*-commutative74.4%
distribute-rgt-neg-out74.4%
distribute-rgt-neg-in74.4%
Simplified74.4%
Final simplification73.3%
(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 -1.7e+124)
t_3
(if (<= j -5.8e-37)
t_2
(if (<= j -4.2e-184)
t_1
(if (<= j -1.9e-291)
t_2
(if (<= j 1.9e-98) t_1 (if (<= j 2.8e+101) t_2 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 = 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 <= -1.7e+124) {
tmp = t_3;
} else if (j <= -5.8e-37) {
tmp = t_2;
} else if (j <= -4.2e-184) {
tmp = t_1;
} else if (j <= -1.9e-291) {
tmp = t_2;
} else if (j <= 1.9e-98) {
tmp = t_1;
} else if (j <= 2.8e+101) {
tmp = t_2;
} 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 = b * ((a * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = j * ((t * c) - (y * i))
if (j <= (-1.7d+124)) then
tmp = t_3
else if (j <= (-5.8d-37)) then
tmp = t_2
else if (j <= (-4.2d-184)) then
tmp = t_1
else if (j <= (-1.9d-291)) then
tmp = t_2
else if (j <= 1.9d-98) then
tmp = t_1
else if (j <= 2.8d+101) then
tmp = t_2
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 = 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 <= -1.7e+124) {
tmp = t_3;
} else if (j <= -5.8e-37) {
tmp = t_2;
} else if (j <= -4.2e-184) {
tmp = t_1;
} else if (j <= -1.9e-291) {
tmp = t_2;
} else if (j <= 1.9e-98) {
tmp = t_1;
} else if (j <= 2.8e+101) {
tmp = t_2;
} else {
tmp = t_3;
}
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 <= -1.7e+124: tmp = t_3 elif j <= -5.8e-37: tmp = t_2 elif j <= -4.2e-184: tmp = t_1 elif j <= -1.9e-291: tmp = t_2 elif j <= 1.9e-98: tmp = t_1 elif j <= 2.8e+101: tmp = t_2 else: tmp = t_3 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 <= -1.7e+124) tmp = t_3; elseif (j <= -5.8e-37) tmp = t_2; elseif (j <= -4.2e-184) tmp = t_1; elseif (j <= -1.9e-291) tmp = t_2; elseif (j <= 1.9e-98) tmp = t_1; elseif (j <= 2.8e+101) tmp = t_2; else tmp = t_3; 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 <= -1.7e+124) tmp = t_3; elseif (j <= -5.8e-37) tmp = t_2; elseif (j <= -4.2e-184) tmp = t_1; elseif (j <= -1.9e-291) tmp = t_2; elseif (j <= 1.9e-98) tmp = t_1; elseif (j <= 2.8e+101) tmp = t_2; else tmp = t_3; 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, -1.7e+124], t$95$3, If[LessEqual[j, -5.8e-37], t$95$2, If[LessEqual[j, -4.2e-184], t$95$1, If[LessEqual[j, -1.9e-291], t$95$2, If[LessEqual[j, 1.9e-98], t$95$1, If[LessEqual[j, 2.8e+101], t$95$2, t$95$3]]]]]]]]]
\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 -1.7 \cdot 10^{+124}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-37}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.9 \cdot 10^{-291}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.9 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+101}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -1.7e124 or 2.79999999999999981e101 < j Initial program 75.6%
Taylor expanded in j around inf 81.6%
if -1.7e124 < j < -5.80000000000000009e-37 or -4.1999999999999998e-184 < j < -1.8999999999999999e-291 or 1.9000000000000002e-98 < j < 2.79999999999999981e101Initial program 73.5%
Taylor expanded in j around 0 67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around inf 58.1%
*-commutative58.1%
*-commutative58.1%
Simplified58.1%
if -5.80000000000000009e-37 < j < -4.1999999999999998e-184 or -1.8999999999999999e-291 < j < 1.9000000000000002e-98Initial program 68.5%
Taylor expanded in b around inf 55.6%
*-commutative55.6%
Simplified55.6%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -2.5e-20)
t_3
(if (<= t -3.2e-271)
t_2
(if (<= t 9.2e-177)
t_1
(if (<= t 4.8e-139)
t_2
(if (<= t 7e-41)
t_1
(if (<= t 2.3e+83) (* a (- (* b i) (* x t))) 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 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.5e-20) {
tmp = t_3;
} else if (t <= -3.2e-271) {
tmp = t_2;
} else if (t <= 9.2e-177) {
tmp = t_1;
} else if (t <= 4.8e-139) {
tmp = t_2;
} else if (t <= 7e-41) {
tmp = t_1;
} else if (t <= 2.3e+83) {
tmp = a * ((b * i) - (x * t));
} 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 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
t_3 = t * ((c * j) - (x * a))
if (t <= (-2.5d-20)) then
tmp = t_3
else if (t <= (-3.2d-271)) then
tmp = t_2
else if (t <= 9.2d-177) then
tmp = t_1
else if (t <= 4.8d-139) then
tmp = t_2
else if (t <= 7d-41) then
tmp = t_1
else if (t <= 2.3d+83) then
tmp = a * ((b * i) - (x * t))
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 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -2.5e-20) {
tmp = t_3;
} else if (t <= -3.2e-271) {
tmp = t_2;
} else if (t <= 9.2e-177) {
tmp = t_1;
} else if (t <= 4.8e-139) {
tmp = t_2;
} else if (t <= 7e-41) {
tmp = t_1;
} else if (t <= 2.3e+83) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -2.5e-20: tmp = t_3 elif t <= -3.2e-271: tmp = t_2 elif t <= 9.2e-177: tmp = t_1 elif t <= 4.8e-139: tmp = t_2 elif t <= 7e-41: tmp = t_1 elif t <= 2.3e+83: tmp = a * ((b * i) - (x * t)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -2.5e-20) tmp = t_3; elseif (t <= -3.2e-271) tmp = t_2; elseif (t <= 9.2e-177) tmp = t_1; elseif (t <= 4.8e-139) tmp = t_2; elseif (t <= 7e-41) tmp = t_1; elseif (t <= 2.3e+83) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -2.5e-20) tmp = t_3; elseif (t <= -3.2e-271) tmp = t_2; elseif (t <= 9.2e-177) tmp = t_1; elseif (t <= 4.8e-139) tmp = t_2; elseif (t <= 7e-41) tmp = t_1; elseif (t <= 2.3e+83) tmp = a * ((b * i) - (x * t)); else tmp = t_3; 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]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e-20], t$95$3, If[LessEqual[t, -3.2e-271], t$95$2, If[LessEqual[t, 9.2e-177], t$95$1, If[LessEqual[t, 4.8e-139], t$95$2, If[LessEqual[t, 7e-41], t$95$1, If[LessEqual[t, 2.3e+83], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{-20}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-271}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-177}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-139}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+83}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -2.4999999999999999e-20 or 2.29999999999999995e83 < t Initial program 64.1%
Taylor expanded in t around inf 71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
if -2.4999999999999999e-20 < t < -3.19999999999999978e-271 or 9.20000000000000087e-177 < t < 4.80000000000000029e-139Initial program 84.1%
Taylor expanded in b around inf 60.8%
*-commutative60.8%
Simplified60.8%
if -3.19999999999999978e-271 < t < 9.20000000000000087e-177 or 4.80000000000000029e-139 < t < 6.9999999999999999e-41Initial program 81.8%
Taylor expanded in y around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
if 6.9999999999999999e-41 < t < 2.29999999999999995e83Initial program 69.8%
Taylor expanded in a around inf 59.4%
distribute-lft-out--59.4%
*-commutative59.4%
*-commutative59.4%
Simplified59.4%
Final simplification65.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -6e+214)
(* y (- (* i j)))
(if (<= i -0.00016)
(* i (* a b))
(if (<= i -1.4e-254)
(* t (* x (- a)))
(if (<= i 2.4e-290)
(* c (* t j))
(if (<= i 3.3e-241)
(* c (* z (- b)))
(if (<= i 3.1e+40) (* t (* c j)) (* a (* b i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -6e+214) {
tmp = y * -(i * j);
} else if (i <= -0.00016) {
tmp = i * (a * b);
} else if (i <= -1.4e-254) {
tmp = t * (x * -a);
} else if (i <= 2.4e-290) {
tmp = c * (t * j);
} else if (i <= 3.3e-241) {
tmp = c * (z * -b);
} else if (i <= 3.1e+40) {
tmp = t * (c * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-6d+214)) then
tmp = y * -(i * j)
else if (i <= (-0.00016d0)) then
tmp = i * (a * b)
else if (i <= (-1.4d-254)) then
tmp = t * (x * -a)
else if (i <= 2.4d-290) then
tmp = c * (t * j)
else if (i <= 3.3d-241) then
tmp = c * (z * -b)
else if (i <= 3.1d+40) then
tmp = t * (c * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -6e+214) {
tmp = y * -(i * j);
} else if (i <= -0.00016) {
tmp = i * (a * b);
} else if (i <= -1.4e-254) {
tmp = t * (x * -a);
} else if (i <= 2.4e-290) {
tmp = c * (t * j);
} else if (i <= 3.3e-241) {
tmp = c * (z * -b);
} else if (i <= 3.1e+40) {
tmp = t * (c * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -6e+214: tmp = y * -(i * j) elif i <= -0.00016: tmp = i * (a * b) elif i <= -1.4e-254: tmp = t * (x * -a) elif i <= 2.4e-290: tmp = c * (t * j) elif i <= 3.3e-241: tmp = c * (z * -b) elif i <= 3.1e+40: tmp = t * (c * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -6e+214) tmp = Float64(y * Float64(-Float64(i * j))); elseif (i <= -0.00016) tmp = Float64(i * Float64(a * b)); elseif (i <= -1.4e-254) tmp = Float64(t * Float64(x * Float64(-a))); elseif (i <= 2.4e-290) tmp = Float64(c * Float64(t * j)); elseif (i <= 3.3e-241) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 3.1e+40) tmp = Float64(t * Float64(c * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -6e+214) tmp = y * -(i * j); elseif (i <= -0.00016) tmp = i * (a * b); elseif (i <= -1.4e-254) tmp = t * (x * -a); elseif (i <= 2.4e-290) tmp = c * (t * j); elseif (i <= 3.3e-241) tmp = c * (z * -b); elseif (i <= 3.1e+40) tmp = t * (c * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -6e+214], N[(y * (-N[(i * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, -0.00016], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.4e-254], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e-290], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.3e-241], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e+40], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6 \cdot 10^{+214}:\\
\;\;\;\;y \cdot \left(-i \cdot j\right)\\
\mathbf{elif}\;i \leq -0.00016:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-290}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{-241}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{+40}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -6.0000000000000002e214Initial program 53.0%
Taylor expanded in y around -inf 58.0%
Simplified58.0%
Taylor expanded in y around inf 68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in x around 0 68.5%
neg-mul-168.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
Simplified68.5%
if -6.0000000000000002e214 < i < -1.60000000000000013e-4Initial program 70.3%
Taylor expanded in j around 0 53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in x around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
associate-/l*53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in i around inf 41.3%
associate-*r*41.3%
*-commutative41.3%
Simplified41.3%
if -1.60000000000000013e-4 < i < -1.39999999999999992e-254Initial program 86.4%
Taylor expanded in t around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in j around 0 40.6%
mul-1-neg40.6%
distribute-rgt-neg-in40.6%
Simplified40.6%
if -1.39999999999999992e-254 < i < 2.4000000000000001e-290Initial program 76.5%
Taylor expanded in t around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in j around inf 48.0%
if 2.4000000000000001e-290 < i < 3.2999999999999999e-241Initial program 71.2%
Taylor expanded in c around inf 58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in t around 0 51.2%
mul-1-neg51.2%
associate-*r*44.6%
*-commutative44.6%
*-commutative44.6%
*-commutative44.6%
associate-*l*51.5%
*-commutative51.5%
distribute-rgt-neg-in51.5%
distribute-lft-neg-in51.5%
*-commutative51.5%
Simplified51.5%
if 3.2999999999999999e-241 < i < 3.0999999999999998e40Initial program 77.0%
Taylor expanded in t around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in j around inf 38.6%
associate-*r*45.3%
Simplified45.3%
if 3.0999999999999998e40 < i Initial program 65.6%
Taylor expanded in b around inf 53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in a around inf 47.2%
Final simplification46.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z (- y (* b (/ c x)))) (* t a))))
(t_2 (* j (- (* t c) (* y i)))))
(if (<= j -3.8e+123)
t_2
(if (<= j -2.05e-112)
t_1
(if (<= j 4.5e-227)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(if (<= j 1.35e+96) 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 * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.8e+123) {
tmp = t_2;
} else if (j <= -2.05e-112) {
tmp = t_1;
} else if (j <= 4.5e-227) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (j <= 1.35e+96) {
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 * ((z * (y - (b * (c / x)))) - (t * a))
t_2 = j * ((t * c) - (y * i))
if (j <= (-3.8d+123)) then
tmp = t_2
else if (j <= (-2.05d-112)) then
tmp = t_1
else if (j <= 4.5d-227) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else if (j <= 1.35d+96) 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 * ((z * (y - (b * (c / x)))) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.8e+123) {
tmp = t_2;
} else if (j <= -2.05e-112) {
tmp = t_1;
} else if (j <= 4.5e-227) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (j <= 1.35e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * (y - (b * (c / x)))) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -3.8e+123: tmp = t_2 elif j <= -2.05e-112: tmp = t_1 elif j <= 4.5e-227: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) elif j <= 1.35e+96: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * Float64(y - Float64(b * Float64(c / x)))) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.8e+123) tmp = t_2; elseif (j <= -2.05e-112) tmp = t_1; elseif (j <= 4.5e-227) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 1.35e+96) 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 * ((z * (y - (b * (c / x)))) - (t * a)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -3.8e+123) tmp = t_2; elseif (j <= -2.05e-112) tmp = t_1; elseif (j <= 4.5e-227) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); elseif (j <= 1.35e+96) 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[(x * N[(N[(z * N[(y - N[(b * N[(c / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+123], t$95$2, If[LessEqual[j, -2.05e-112], t$95$1, If[LessEqual[j, 4.5e-227], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.35e+96], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot \left(y - b \cdot \frac{c}{x}\right) - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.05 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{-227}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.35 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -3.79999999999999994e123 or 1.35000000000000011e96 < j Initial program 75.6%
Taylor expanded in j around inf 81.6%
if -3.79999999999999994e123 < j < -2.04999999999999998e-112 or 4.49999999999999993e-227 < j < 1.35000000000000011e96Initial program 71.5%
Taylor expanded in j around 0 67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in x around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
associate-/l*67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in i around 0 56.8%
+-commutative56.8%
associate--r+56.8%
Simplified66.8%
if -2.04999999999999998e-112 < j < 4.49999999999999993e-227Initial program 70.5%
Taylor expanded in j around 0 74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in y around inf 68.7%
*-commutative68.7%
Simplified68.7%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= t -4.5e-21)
t_3
(if (<= t -1e-270)
t_2
(if (<= t 5.2e-179)
t_1
(if (<= t 1.9e-141) t_2 (if (<= t 1.9e+80) 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 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -4.5e-21) {
tmp = t_3;
} else if (t <= -1e-270) {
tmp = t_2;
} else if (t <= 5.2e-179) {
tmp = t_1;
} else if (t <= 1.9e-141) {
tmp = t_2;
} else if (t <= 1.9e+80) {
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 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
t_3 = t * ((c * j) - (x * a))
if (t <= (-4.5d-21)) then
tmp = t_3
else if (t <= (-1d-270)) then
tmp = t_2
else if (t <= 5.2d-179) then
tmp = t_1
else if (t <= 1.9d-141) then
tmp = t_2
else if (t <= 1.9d+80) 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 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (t <= -4.5e-21) {
tmp = t_3;
} else if (t <= -1e-270) {
tmp = t_2;
} else if (t <= 5.2e-179) {
tmp = t_1;
} else if (t <= 1.9e-141) {
tmp = t_2;
} else if (t <= 1.9e+80) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if t <= -4.5e-21: tmp = t_3 elif t <= -1e-270: tmp = t_2 elif t <= 5.2e-179: tmp = t_1 elif t <= 1.9e-141: tmp = t_2 elif t <= 1.9e+80: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -4.5e-21) tmp = t_3; elseif (t <= -1e-270) tmp = t_2; elseif (t <= 5.2e-179) tmp = t_1; elseif (t <= 1.9e-141) tmp = t_2; elseif (t <= 1.9e+80) 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 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -4.5e-21) tmp = t_3; elseif (t <= -1e-270) tmp = t_2; elseif (t <= 5.2e-179) tmp = t_1; elseif (t <= 1.9e-141) tmp = t_2; elseif (t <= 1.9e+80) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e-21], t$95$3, If[LessEqual[t, -1e-270], t$95$2, If[LessEqual[t, 5.2e-179], t$95$1, If[LessEqual[t, 1.9e-141], t$95$2, If[LessEqual[t, 1.9e+80], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{-21}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-270}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-179}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -4.49999999999999968e-21 or 1.89999999999999999e80 < t Initial program 64.1%
Taylor expanded in t around inf 71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
if -4.49999999999999968e-21 < t < -1e-270 or 5.20000000000000011e-179 < t < 1.89999999999999993e-141Initial program 84.1%
Taylor expanded in b around inf 60.8%
*-commutative60.8%
Simplified60.8%
if -1e-270 < t < 5.20000000000000011e-179 or 1.89999999999999993e-141 < t < 1.89999999999999999e80Initial program 77.7%
Taylor expanded in y around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= i -3.45e-6)
t_1
(if (<= i -2.1e-256)
(* t (* x (- a)))
(if (<= i 1.7e-289)
(* c (* t j))
(if (<= i 8.5e-239)
(* c (* z (- b)))
(if (<= i 8.4e+40) (* t (* c j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (i <= -3.45e-6) {
tmp = t_1;
} else if (i <= -2.1e-256) {
tmp = t * (x * -a);
} else if (i <= 1.7e-289) {
tmp = c * (t * j);
} else if (i <= 8.5e-239) {
tmp = c * (z * -b);
} else if (i <= 8.4e+40) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (i <= (-3.45d-6)) then
tmp = t_1
else if (i <= (-2.1d-256)) then
tmp = t * (x * -a)
else if (i <= 1.7d-289) then
tmp = c * (t * j)
else if (i <= 8.5d-239) then
tmp = c * (z * -b)
else if (i <= 8.4d+40) then
tmp = t * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (i <= -3.45e-6) {
tmp = t_1;
} else if (i <= -2.1e-256) {
tmp = t * (x * -a);
} else if (i <= 1.7e-289) {
tmp = c * (t * j);
} else if (i <= 8.5e-239) {
tmp = c * (z * -b);
} else if (i <= 8.4e+40) {
tmp = t * (c * j);
} 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 i <= -3.45e-6: tmp = t_1 elif i <= -2.1e-256: tmp = t * (x * -a) elif i <= 1.7e-289: tmp = c * (t * j) elif i <= 8.5e-239: tmp = c * (z * -b) elif i <= 8.4e+40: tmp = t * (c * j) 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 (i <= -3.45e-6) tmp = t_1; elseif (i <= -2.1e-256) tmp = Float64(t * Float64(x * Float64(-a))); elseif (i <= 1.7e-289) tmp = Float64(c * Float64(t * j)); elseif (i <= 8.5e-239) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 8.4e+40) tmp = Float64(t * Float64(c * j)); 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 (i <= -3.45e-6) tmp = t_1; elseif (i <= -2.1e-256) tmp = t * (x * -a); elseif (i <= 1.7e-289) tmp = c * (t * j); elseif (i <= 8.5e-239) tmp = c * (z * -b); elseif (i <= 8.4e+40) tmp = t * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.45e-6], t$95$1, If[LessEqual[i, -2.1e-256], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-289], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e-239], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.4e+40], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -3.45 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{-256}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-289}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-239}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 8.4 \cdot 10^{+40}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.45e-6 or 8.4000000000000004e40 < i Initial program 65.0%
Taylor expanded in b around inf 47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in a around inf 44.7%
if -3.45e-6 < i < -2.10000000000000003e-256Initial program 86.4%
Taylor expanded in t around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in j around 0 40.6%
mul-1-neg40.6%
distribute-rgt-neg-in40.6%
Simplified40.6%
if -2.10000000000000003e-256 < i < 1.70000000000000009e-289Initial program 76.5%
Taylor expanded in t around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in j around inf 48.0%
if 1.70000000000000009e-289 < i < 8.49999999999999958e-239Initial program 71.2%
Taylor expanded in c around inf 58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in t around 0 51.2%
mul-1-neg51.2%
associate-*r*44.6%
*-commutative44.6%
*-commutative44.6%
*-commutative44.6%
associate-*l*51.5%
*-commutative51.5%
distribute-rgt-neg-in51.5%
distribute-lft-neg-in51.5%
*-commutative51.5%
Simplified51.5%
if 8.49999999999999958e-239 < i < 8.4000000000000004e40Initial program 77.0%
Taylor expanded in t around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in j around inf 38.6%
associate-*r*45.3%
Simplified45.3%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -9.2e+42)
t_2
(if (<= t -2.05e-170)
t_1
(if (<= t -2e-233)
(* z (- (* x y) (* b c)))
(if (<= t 1.05e+81) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -9.2e+42) {
tmp = t_2;
} else if (t <= -2.05e-170) {
tmp = t_1;
} else if (t <= -2e-233) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.05e+81) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
t_2 = t * ((c * j) - (x * a))
if (t <= (-9.2d+42)) then
tmp = t_2
else if (t <= (-2.05d-170)) then
tmp = t_1
else if (t <= (-2d-233)) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.05d+81) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -9.2e+42) {
tmp = t_2;
} else if (t <= -2.05e-170) {
tmp = t_1;
} else if (t <= -2e-233) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.05e+81) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -9.2e+42: tmp = t_2 elif t <= -2.05e-170: tmp = t_1 elif t <= -2e-233: tmp = z * ((x * y) - (b * c)) elif t <= 1.05e+81: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -9.2e+42) tmp = t_2; elseif (t <= -2.05e-170) tmp = t_1; elseif (t <= -2e-233) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.05e+81) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -9.2e+42) tmp = t_2; elseif (t <= -2.05e-170) tmp = t_1; elseif (t <= -2e-233) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.05e+81) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.2e+42], t$95$2, If[LessEqual[t, -2.05e-170], t$95$1, If[LessEqual[t, -2e-233], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+81], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{+42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-233}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -9.2e42 or 1.0499999999999999e81 < t Initial program 63.1%
Taylor expanded in t around inf 73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
if -9.2e42 < t < -2.04999999999999983e-170 or -1.99999999999999992e-233 < t < 1.0499999999999999e81Initial program 79.6%
Taylor expanded in i around inf 60.0%
distribute-lft-out--60.0%
*-commutative60.0%
Simplified60.0%
if -2.04999999999999983e-170 < t < -1.99999999999999992e-233Initial program 83.7%
Taylor expanded in z around inf 75.4%
*-commutative75.4%
Simplified75.4%
Final simplification66.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -1.7e+101)
t_1
(if (<= j 1.65e-41)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(- t_1 (* x (- (* t a) (* 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.7e+101) {
tmp = t_1;
} else if (j <= 1.65e-41) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 - (x * ((t * a) - (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 = j * ((t * c) - (y * i))
if (j <= (-1.7d+101)) then
tmp = t_1
else if (j <= 1.65d-41) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else
tmp = t_1 - (x * ((t * a) - (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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.7e+101) {
tmp = t_1;
} else if (j <= 1.65e-41) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.7e+101: tmp = t_1 elif j <= 1.65e-41: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = t_1 - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.7e+101) tmp = t_1; elseif (j <= 1.65e-41) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.7e+101) tmp = t_1; elseif (j <= 1.65e-41) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); else tmp = t_1 - (x * ((t * a) - (y * z))); 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]}, If[LessEqual[j, -1.7e+101], t$95$1, If[LessEqual[j, 1.65e-41], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.65 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if j < -1.70000000000000009e101Initial program 74.9%
Taylor expanded in j around inf 78.2%
if -1.70000000000000009e101 < j < 1.65000000000000012e-41Initial program 72.4%
Taylor expanded in j around 0 73.1%
*-commutative73.1%
Simplified73.1%
if 1.65000000000000012e-41 < j Initial program 71.1%
Taylor expanded in b around 0 75.9%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= j -1.32e+74)
t_1
(if (<= j -1.2e-112)
(* x (* t (- a)))
(if (<= j 4.5e-111)
(* i (* a b))
(if (<= j 2.75e+100) (* t (* x (- a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (j <= -1.32e+74) {
tmp = t_1;
} else if (j <= -1.2e-112) {
tmp = x * (t * -a);
} else if (j <= 4.5e-111) {
tmp = i * (a * b);
} else if (j <= 2.75e+100) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (j <= (-1.32d+74)) then
tmp = t_1
else if (j <= (-1.2d-112)) then
tmp = x * (t * -a)
else if (j <= 4.5d-111) then
tmp = i * (a * b)
else if (j <= 2.75d+100) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (j <= -1.32e+74) {
tmp = t_1;
} else if (j <= -1.2e-112) {
tmp = x * (t * -a);
} else if (j <= 4.5e-111) {
tmp = i * (a * b);
} else if (j <= 2.75e+100) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if j <= -1.32e+74: tmp = t_1 elif j <= -1.2e-112: tmp = x * (t * -a) elif j <= 4.5e-111: tmp = i * (a * b) elif j <= 2.75e+100: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (j <= -1.32e+74) tmp = t_1; elseif (j <= -1.2e-112) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 4.5e-111) tmp = Float64(i * Float64(a * b)); elseif (j <= 2.75e+100) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (j <= -1.32e+74) tmp = t_1; elseif (j <= -1.2e-112) tmp = x * (t * -a); elseif (j <= 4.5e-111) tmp = i * (a * b); elseif (j <= 2.75e+100) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.32e+74], t$95$1, If[LessEqual[j, -1.2e-112], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.5e-111], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.75e+100], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -1.32 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-112}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{-111}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 2.75 \cdot 10^{+100}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.32000000000000012e74 or 2.7500000000000001e100 < j Initial program 75.5%
Taylor expanded in t around inf 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in j around inf 43.2%
associate-*r*51.0%
Simplified51.0%
if -1.32000000000000012e74 < j < -1.2e-112Initial program 73.1%
Taylor expanded in j around 0 77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in x around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
associate-/l*75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 41.1%
neg-mul-141.1%
distribute-rgt-neg-in41.1%
Simplified41.1%
if -1.2e-112 < j < 4.49999999999999994e-111Initial program 71.3%
Taylor expanded in j around 0 72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in x around inf 67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
associate-/l*67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in i around inf 38.4%
associate-*r*40.0%
*-commutative40.0%
Simplified40.0%
if 4.49999999999999994e-111 < j < 2.7500000000000001e100Initial program 68.6%
Taylor expanded in t around inf 44.0%
+-commutative44.0%
mul-1-neg44.0%
unsub-neg44.0%
*-commutative44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in j around 0 38.8%
mul-1-neg38.8%
distribute-rgt-neg-in38.8%
Simplified38.8%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= i -52000000.0)
t_1
(if (<= i -8e-142)
(* x (* y z))
(if (or (<= i -1.05e-165) (not (<= i 9.2e-63))) t_1 (* c (* t j)))))))
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 (i <= -52000000.0) {
tmp = t_1;
} else if (i <= -8e-142) {
tmp = x * (y * z);
} else if ((i <= -1.05e-165) || !(i <= 9.2e-63)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (i <= (-52000000.0d0)) then
tmp = t_1
else if (i <= (-8d-142)) then
tmp = x * (y * z)
else if ((i <= (-1.05d-165)) .or. (.not. (i <= 9.2d-63))) then
tmp = t_1
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 t_1 = a * (b * i);
double tmp;
if (i <= -52000000.0) {
tmp = t_1;
} else if (i <= -8e-142) {
tmp = x * (y * z);
} else if ((i <= -1.05e-165) || !(i <= 9.2e-63)) {
tmp = t_1;
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if i <= -52000000.0: tmp = t_1 elif i <= -8e-142: tmp = x * (y * z) elif (i <= -1.05e-165) or not (i <= 9.2e-63): tmp = t_1 else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -52000000.0) tmp = t_1; elseif (i <= -8e-142) tmp = Float64(x * Float64(y * z)); elseif ((i <= -1.05e-165) || !(i <= 9.2e-63)) tmp = t_1; else tmp = Float64(c * Float64(t * j)); 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 (i <= -52000000.0) tmp = t_1; elseif (i <= -8e-142) tmp = x * (y * z); elseif ((i <= -1.05e-165) || ~((i <= 9.2e-63))) tmp = t_1; else tmp = c * (t * j); 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[i, -52000000.0], t$95$1, If[LessEqual[i, -8e-142], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[i, -1.05e-165], N[Not[LessEqual[i, 9.2e-63]], $MachinePrecision]], t$95$1, N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -52000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -8 \cdot 10^{-142}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq -1.05 \cdot 10^{-165} \lor \neg \left(i \leq 9.2 \cdot 10^{-63}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -5.2e7 or -8.0000000000000003e-142 < i < -1.04999999999999997e-165 or 9.2e-63 < i Initial program 66.4%
Taylor expanded in b around inf 46.7%
*-commutative46.7%
Simplified46.7%
Taylor expanded in a around inf 42.6%
if -5.2e7 < i < -8.0000000000000003e-142Initial program 75.8%
Taylor expanded in j around 0 64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in x around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
*-commutative64.1%
associate-/l*72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in y around inf 37.2%
*-commutative37.2%
Simplified37.2%
if -1.04999999999999997e-165 < i < 9.2e-63Initial program 82.2%
Taylor expanded in t around inf 54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in j around inf 34.2%
Final simplification39.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -2.5e+101)
t_1
(if (<= j -5.4e-39)
(* t (- (* c j) (* x a)))
(if (<= j 2.2e+60) (* b (- (* a i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.5e+101) {
tmp = t_1;
} else if (j <= -5.4e-39) {
tmp = t * ((c * j) - (x * a));
} else if (j <= 2.2e+60) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-2.5d+101)) then
tmp = t_1
else if (j <= (-5.4d-39)) then
tmp = t * ((c * j) - (x * a))
else if (j <= 2.2d+60) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.5e+101) {
tmp = t_1;
} else if (j <= -5.4e-39) {
tmp = t * ((c * j) - (x * a));
} else if (j <= 2.2e+60) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -2.5e+101: tmp = t_1 elif j <= -5.4e-39: tmp = t * ((c * j) - (x * a)) elif j <= 2.2e+60: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.5e+101) tmp = t_1; elseif (j <= -5.4e-39) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (j <= 2.2e+60) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -2.5e+101) tmp = t_1; elseif (j <= -5.4e-39) tmp = t * ((c * j) - (x * a)); elseif (j <= 2.2e+60) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e+101], t$95$1, If[LessEqual[j, -5.4e-39], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.2e+60], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -5.4 \cdot 10^{-39}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+60}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.49999999999999994e101 or 2.19999999999999996e60 < j Initial program 76.4%
Taylor expanded in j around inf 78.4%
if -2.49999999999999994e101 < j < -5.4000000000000001e-39Initial program 73.6%
Taylor expanded in t around inf 56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
*-commutative56.3%
*-commutative56.3%
Simplified56.3%
if -5.4000000000000001e-39 < j < 2.19999999999999996e60Initial program 69.9%
Taylor expanded in b around inf 48.6%
*-commutative48.6%
Simplified48.6%
Final simplification59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.25e+80)
(* t (* c j))
(if (<= j 2.85e+57)
(* b (- (* a i) (* z c)))
(if (<= j 4e+264) (* y (- (* i j))) (* 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 (j <= -1.25e+80) {
tmp = t * (c * j);
} else if (j <= 2.85e+57) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 4e+264) {
tmp = y * -(i * j);
} 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 (j <= (-1.25d+80)) then
tmp = t * (c * j)
else if (j <= 2.85d+57) then
tmp = b * ((a * i) - (z * c))
else if (j <= 4d+264) then
tmp = y * -(i * j)
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 (j <= -1.25e+80) {
tmp = t * (c * j);
} else if (j <= 2.85e+57) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 4e+264) {
tmp = y * -(i * j);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.25e+80: tmp = t * (c * j) elif j <= 2.85e+57: tmp = b * ((a * i) - (z * c)) elif j <= 4e+264: tmp = y * -(i * j) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.25e+80) tmp = Float64(t * Float64(c * j)); elseif (j <= 2.85e+57) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 4e+264) tmp = Float64(y * Float64(-Float64(i * j))); 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 (j <= -1.25e+80) tmp = t * (c * j); elseif (j <= 2.85e+57) tmp = b * ((a * i) - (z * c)); elseif (j <= 4e+264) tmp = y * -(i * j); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.25e+80], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.85e+57], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e+264], N[(y * (-N[(i * j), $MachinePrecision])), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.25 \cdot 10^{+80}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 2.85 \cdot 10^{+57}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 4 \cdot 10^{+264}:\\
\;\;\;\;y \cdot \left(-i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -1.2499999999999999e80Initial program 74.9%
Taylor expanded in t around inf 57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
*-commutative57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in j around inf 45.0%
associate-*r*55.3%
Simplified55.3%
if -1.2499999999999999e80 < j < 2.8499999999999999e57Initial program 71.2%
Taylor expanded in b around inf 46.4%
*-commutative46.4%
Simplified46.4%
if 2.8499999999999999e57 < j < 4.00000000000000018e264Initial program 78.3%
Taylor expanded in y around -inf 58.1%
Simplified65.9%
Taylor expanded in y around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in x around 0 45.8%
neg-mul-145.8%
*-commutative45.8%
distribute-rgt-neg-in45.8%
Simplified45.8%
if 4.00000000000000018e264 < j Initial program 57.1%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in j around inf 85.7%
Final simplification48.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -26000.0)
(* c (- (* t j) (* z b)))
(if (<= j 6.3e+56)
(* b (- (* a i) (* z c)))
(if (<= j 1.05e+265) (* y (- (* i j))) (* 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 (j <= -26000.0) {
tmp = c * ((t * j) - (z * b));
} else if (j <= 6.3e+56) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 1.05e+265) {
tmp = y * -(i * j);
} 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 (j <= (-26000.0d0)) then
tmp = c * ((t * j) - (z * b))
else if (j <= 6.3d+56) then
tmp = b * ((a * i) - (z * c))
else if (j <= 1.05d+265) then
tmp = y * -(i * j)
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 (j <= -26000.0) {
tmp = c * ((t * j) - (z * b));
} else if (j <= 6.3e+56) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 1.05e+265) {
tmp = y * -(i * j);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -26000.0: tmp = c * ((t * j) - (z * b)) elif j <= 6.3e+56: tmp = b * ((a * i) - (z * c)) elif j <= 1.05e+265: tmp = y * -(i * j) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -26000.0) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (j <= 6.3e+56) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 1.05e+265) tmp = Float64(y * Float64(-Float64(i * j))); 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 (j <= -26000.0) tmp = c * ((t * j) - (z * b)); elseif (j <= 6.3e+56) tmp = b * ((a * i) - (z * c)); elseif (j <= 1.05e+265) tmp = y * -(i * j); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -26000.0], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.3e+56], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.05e+265], N[(y * (-N[(i * j), $MachinePrecision])), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -26000:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq 6.3 \cdot 10^{+56}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{+265}:\\
\;\;\;\;y \cdot \left(-i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -26000Initial program 75.0%
Taylor expanded in c around inf 49.7%
*-commutative49.7%
*-commutative49.7%
Simplified49.7%
if -26000 < j < 6.3000000000000001e56Initial program 70.7%
Taylor expanded in b around inf 48.4%
*-commutative48.4%
Simplified48.4%
if 6.3000000000000001e56 < j < 1.0499999999999999e265Initial program 78.3%
Taylor expanded in y around -inf 58.1%
Simplified65.9%
Taylor expanded in y around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in x around 0 45.8%
neg-mul-145.8%
*-commutative45.8%
distribute-rgt-neg-in45.8%
Simplified45.8%
if 1.0499999999999999e265 < j Initial program 57.1%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in j around inf 85.7%
Final simplification49.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -20000.0) (not (<= j 1.3e+64))) (* 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 <= -20000.0) || !(j <= 1.3e+64)) {
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 <= (-20000.0d0)) .or. (.not. (j <= 1.3d+64))) 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 <= -20000.0) || !(j <= 1.3e+64)) {
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 <= -20000.0) or not (j <= 1.3e+64): 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 <= -20000.0) || !(j <= 1.3e+64)) 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 <= -20000.0) || ~((j <= 1.3e+64))) 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, -20000.0], N[Not[LessEqual[j, 1.3e+64]], $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 -20000 \lor \neg \left(j \leq 1.3 \cdot 10^{+64}\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 < -2e4 or 1.29999999999999998e64 < j Initial program 75.4%
Taylor expanded in j around inf 70.6%
if -2e4 < j < 1.29999999999999998e64Initial program 70.4%
Taylor expanded in b around inf 47.8%
*-commutative47.8%
Simplified47.8%
Final simplification57.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.35e-165) (not (<= i 1.7e-62))) (* a (* b 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 <= -1.35e-165) || !(i <= 1.7e-62)) {
tmp = a * (b * 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 <= (-1.35d-165)) .or. (.not. (i <= 1.7d-62))) then
tmp = a * (b * 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 <= -1.35e-165) || !(i <= 1.7e-62)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.35e-165) or not (i <= 1.7e-62): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.35e-165) || !(i <= 1.7e-62)) tmp = Float64(a * Float64(b * 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 <= -1.35e-165) || ~((i <= 1.7e-62))) tmp = a * (b * 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, -1.35e-165], N[Not[LessEqual[i, 1.7e-62]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.35 \cdot 10^{-165} \lor \neg \left(i \leq 1.7 \cdot 10^{-62}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -1.3499999999999999e-165 or 1.69999999999999994e-62 < i Initial program 67.8%
Taylor expanded in b around inf 44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in a around inf 38.9%
if -1.3499999999999999e-165 < i < 1.69999999999999994e-62Initial program 82.2%
Taylor expanded in t around inf 54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in j around inf 34.2%
Final simplification37.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.22e+16) (not (<= j 6.2e+63))) (* c (* t j)) (* i (* a b))))
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.22e+16) || !(j <= 6.2e+63)) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.22d+16)) .or. (.not. (j <= 6.2d+63))) then
tmp = c * (t * j)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.22e+16) || !(j <= 6.2e+63)) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.22e+16) or not (j <= 6.2e+63): tmp = c * (t * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.22e+16) || !(j <= 6.2e+63)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.22e+16) || ~((j <= 6.2e+63))) tmp = c * (t * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.22e+16], N[Not[LessEqual[j, 6.2e+63]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.22 \cdot 10^{+16} \lor \neg \left(j \leq 6.2 \cdot 10^{+63}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if j < -1.22e16 or 6.2000000000000001e63 < j Initial program 75.0%
Taylor expanded in t around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in j around inf 39.3%
if -1.22e16 < j < 6.2000000000000001e63Initial program 70.8%
Taylor expanded in j around 0 69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in x around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
associate-/l*66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in i around inf 33.6%
associate-*r*34.4%
*-commutative34.4%
Simplified34.4%
Final simplification36.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -6.6e+25) (not (<= j 1.6e+65))) (* t (* c j)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.6e+25) || !(j <= 1.6e+65)) {
tmp = t * (c * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-6.6d+25)) .or. (.not. (j <= 1.6d+65))) then
tmp = t * (c * j)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.6e+25) || !(j <= 1.6e+65)) {
tmp = t * (c * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -6.6e+25) or not (j <= 1.6e+65): tmp = t * (c * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -6.6e+25) || !(j <= 1.6e+65)) tmp = Float64(t * Float64(c * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -6.6e+25) || ~((j <= 1.6e+65))) tmp = t * (c * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.6e+25], N[Not[LessEqual[j, 1.6e+65]], $MachinePrecision]], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.6 \cdot 10^{+25} \lor \neg \left(j \leq 1.6 \cdot 10^{+65}\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if j < -6.6000000000000002e25 or 1.60000000000000003e65 < j Initial program 75.0%
Taylor expanded in t around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in j around inf 39.3%
associate-*r*45.4%
Simplified45.4%
if -6.6000000000000002e25 < j < 1.60000000000000003e65Initial program 70.8%
Taylor expanded in j around 0 69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in x around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
*-commutative66.4%
associate-/l*66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in i around inf 33.6%
associate-*r*34.4%
*-commutative34.4%
Simplified34.4%
Final simplification38.9%
(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 72.5%
Taylor expanded in b around inf 38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in a around inf 28.7%
Final simplification28.7%
(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 2024077
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(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)))))