
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* 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 (* j (* t (- c (* a (/ x j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = j * (t * (c - (a * (x / j))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((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 = j * (t * (c - (a * (x / j))));
}
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 = j * (t * (c - (a * (x / j)))) 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(j * Float64(t * Float64(c - Float64(a * Float64(x / j))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = j * (t * (c - (a * (x / j)))); 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[(j * N[(t * N[(c - N[(a * N[(x / j), $MachinePrecision]), $MachinePrecision]), $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}:\\
\;\;\;\;j \cdot \left(t \cdot \left(c - a \cdot \frac{x}{j}\right)\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 94.5%
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 j around inf 12.1%
Taylor expanded in t around inf 53.9%
mul-1-neg53.9%
unsub-neg53.9%
associate-/l*53.9%
Simplified53.9%
Final simplification85.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= y -1.3e+75)
(* y (- (* x z) (* i j)))
(if (<= y -4.5)
(* c (- (* t j) (* z b)))
(if (<= y -2.15e-43)
t_2
(if (<= y -3e-102)
t_3
(if (<= y -1.3e-162)
t_1
(if (<= y -2.3e-261)
t_3
(if (<= y 1.35e-152)
(* t (- (* c j) (* x a)))
(if (<= y 3.05e-68)
t_3
(if (<= y 2.85e+106) t_2 t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (y <= -1.3e+75) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -4.5) {
tmp = c * ((t * j) - (z * b));
} else if (y <= -2.15e-43) {
tmp = t_2;
} else if (y <= -3e-102) {
tmp = t_3;
} else if (y <= -1.3e-162) {
tmp = t_1;
} else if (y <= -2.3e-261) {
tmp = t_3;
} else if (y <= 1.35e-152) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 3.05e-68) {
tmp = t_3;
} else if (y <= 2.85e+106) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = b * ((a * i) - (z * c))
if (y <= (-1.3d+75)) then
tmp = y * ((x * z) - (i * j))
else if (y <= (-4.5d0)) then
tmp = c * ((t * j) - (z * b))
else if (y <= (-2.15d-43)) then
tmp = t_2
else if (y <= (-3d-102)) then
tmp = t_3
else if (y <= (-1.3d-162)) then
tmp = t_1
else if (y <= (-2.3d-261)) then
tmp = t_3
else if (y <= 1.35d-152) then
tmp = t * ((c * j) - (x * a))
else if (y <= 3.05d-68) then
tmp = t_3
else if (y <= 2.85d+106) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (y <= -1.3e+75) {
tmp = y * ((x * z) - (i * j));
} else if (y <= -4.5) {
tmp = c * ((t * j) - (z * b));
} else if (y <= -2.15e-43) {
tmp = t_2;
} else if (y <= -3e-102) {
tmp = t_3;
} else if (y <= -1.3e-162) {
tmp = t_1;
} else if (y <= -2.3e-261) {
tmp = t_3;
} else if (y <= 1.35e-152) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 3.05e-68) {
tmp = t_3;
} else if (y <= 2.85e+106) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if y <= -1.3e+75: tmp = y * ((x * z) - (i * j)) elif y <= -4.5: tmp = c * ((t * j) - (z * b)) elif y <= -2.15e-43: tmp = t_2 elif y <= -3e-102: tmp = t_3 elif y <= -1.3e-162: tmp = t_1 elif y <= -2.3e-261: tmp = t_3 elif y <= 1.35e-152: tmp = t * ((c * j) - (x * a)) elif y <= 3.05e-68: tmp = t_3 elif y <= 2.85e+106: tmp = t_2 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))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (y <= -1.3e+75) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= -4.5) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= -2.15e-43) tmp = t_2; elseif (y <= -3e-102) tmp = t_3; elseif (y <= -1.3e-162) tmp = t_1; elseif (y <= -2.3e-261) tmp = t_3; elseif (y <= 1.35e-152) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 3.05e-68) tmp = t_3; elseif (y <= 2.85e+106) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (y <= -1.3e+75) tmp = y * ((x * z) - (i * j)); elseif (y <= -4.5) tmp = c * ((t * j) - (z * b)); elseif (y <= -2.15e-43) tmp = t_2; elseif (y <= -3e-102) tmp = t_3; elseif (y <= -1.3e-162) tmp = t_1; elseif (y <= -2.3e-261) tmp = t_3; elseif (y <= 1.35e-152) tmp = t * ((c * j) - (x * a)); elseif (y <= 3.05e-68) tmp = t_3; elseif (y <= 2.85e+106) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.3e+75], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.5], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.15e-43], t$95$2, If[LessEqual[y, -3e-102], t$95$3, If[LessEqual[y, -1.3e-162], t$95$1, If[LessEqual[y, -2.3e-261], t$95$3, If[LessEqual[y, 1.35e-152], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.05e-68], t$95$3, If[LessEqual[y, 2.85e+106], t$95$2, t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+75}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -4.5:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-43}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-102}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-261}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-152}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 3.05 \cdot 10^{-68}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{+106}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.29999999999999992e75Initial program 69.2%
Taylor expanded in y around inf 79.5%
+-commutative79.5%
mul-1-neg79.5%
unsub-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
if -1.29999999999999992e75 < y < -4.5Initial program 81.2%
Taylor expanded in c around inf 57.8%
if -4.5 < y < -2.14999999999999982e-43 or 3.05e-68 < y < 2.8499999999999999e106Initial program 74.2%
Taylor expanded in x around inf 62.3%
*-commutative62.3%
Simplified62.3%
if -2.14999999999999982e-43 < y < -3e-102 or -1.3e-162 < y < -2.3e-261 or 1.34999999999999999e-152 < y < 3.05e-68Initial program 75.0%
Taylor expanded in b around inf 72.1%
*-commutative72.1%
Simplified72.1%
if -3e-102 < y < -1.3e-162 or 2.8499999999999999e106 < y Initial program 68.6%
Taylor expanded in j around inf 66.6%
if -2.3e-261 < y < 1.34999999999999999e-152Initial program 80.5%
Taylor expanded in t around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
Simplified65.6%
Final simplification69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* b (* z c))))
(t_2 (+ (* j (- (* t c) (* y i))) (* b (* a i)))))
(if (<= z -0.0024)
t_1
(if (<= z 4.9e-135)
t_2
(if (<= z 1.45e-94)
(* t (- (* c j) (* x a)))
(if (<= z 3.7e-68)
t_2
(if (<= z 7.5e+21)
t_1
(if (<= z 8e+160) t_2 (* z (- (* x y) (* b c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (b * (z * c));
double t_2 = (j * ((t * c) - (y * i))) + (b * (a * i));
double tmp;
if (z <= -0.0024) {
tmp = t_1;
} else if (z <= 4.9e-135) {
tmp = t_2;
} else if (z <= 1.45e-94) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.7e-68) {
tmp = t_2;
} else if (z <= 7.5e+21) {
tmp = t_1;
} else if (z <= 8e+160) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (b * (z * c))
t_2 = (j * ((t * c) - (y * i))) + (b * (a * i))
if (z <= (-0.0024d0)) then
tmp = t_1
else if (z <= 4.9d-135) then
tmp = t_2
else if (z <= 1.45d-94) then
tmp = t * ((c * j) - (x * a))
else if (z <= 3.7d-68) then
tmp = t_2
else if (z <= 7.5d+21) then
tmp = t_1
else if (z <= 8d+160) then
tmp = t_2
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (b * (z * c));
double t_2 = (j * ((t * c) - (y * i))) + (b * (a * i));
double tmp;
if (z <= -0.0024) {
tmp = t_1;
} else if (z <= 4.9e-135) {
tmp = t_2;
} else if (z <= 1.45e-94) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 3.7e-68) {
tmp = t_2;
} else if (z <= 7.5e+21) {
tmp = t_1;
} else if (z <= 8e+160) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (b * (z * c)) t_2 = (j * ((t * c) - (y * i))) + (b * (a * i)) tmp = 0 if z <= -0.0024: tmp = t_1 elif z <= 4.9e-135: tmp = t_2 elif z <= 1.45e-94: tmp = t * ((c * j) - (x * a)) elif z <= 3.7e-68: tmp = t_2 elif z <= 7.5e+21: tmp = t_1 elif z <= 8e+160: tmp = t_2 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(z * c))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(b * Float64(a * i))) tmp = 0.0 if (z <= -0.0024) tmp = t_1; elseif (z <= 4.9e-135) tmp = t_2; elseif (z <= 1.45e-94) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 3.7e-68) tmp = t_2; elseif (z <= 7.5e+21) tmp = t_1; elseif (z <= 8e+160) tmp = t_2; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (b * (z * c)); t_2 = (j * ((t * c) - (y * i))) + (b * (a * i)); tmp = 0.0; if (z <= -0.0024) tmp = t_1; elseif (z <= 4.9e-135) tmp = t_2; elseif (z <= 1.45e-94) tmp = t * ((c * j) - (x * a)); elseif (z <= 3.7e-68) tmp = t_2; elseif (z <= 7.5e+21) tmp = t_1; elseif (z <= 8e+160) tmp = t_2; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.0024], t$95$1, If[LessEqual[z, 4.9e-135], t$95$2, If[LessEqual[z, 1.45e-94], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e-68], t$95$2, If[LessEqual[z, 7.5e+21], t$95$1, If[LessEqual[z, 8e+160], t$95$2, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;z \leq -0.0024:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-135}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-94}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{-68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+160}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -0.00239999999999999979 or 3.70000000000000002e-68 < z < 7.5e21Initial program 72.5%
Taylor expanded in t around 0 71.5%
associate-*r*73.8%
associate-*r*73.8%
*-commutative73.8%
associate-*r*71.6%
distribute-rgt-in74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in c around inf 67.4%
if -0.00239999999999999979 < z < 4.9000000000000003e-135 or 1.44999999999999998e-94 < z < 3.70000000000000002e-68 or 7.5e21 < z < 8.00000000000000005e160Initial program 80.7%
Taylor expanded in i around inf 73.3%
*-commutative73.3%
associate-*r*74.7%
Simplified74.7%
if 4.9000000000000003e-135 < z < 1.44999999999999998e-94Initial program 45.1%
Taylor expanded in t around inf 89.7%
+-commutative89.7%
mul-1-neg89.7%
unsub-neg89.7%
*-commutative89.7%
Simplified89.7%
if 8.00000000000000005e160 < z Initial program 47.0%
Taylor expanded in z around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -1.02e+53)
t_2
(if (<= i -6e-26)
(* b (* c (- (* a (/ i c)) z)))
(if (<= i -1.85e-60)
(* y (- (* x z) (* i j)))
(if (<= i -2.3e-210)
t_1
(if (<= i -2.1e-264)
(* j (- (* t c) (* y i)))
(if (<= i 9e-122)
(* t (- (* c j) (* x a)))
(if (<= i 3.9e+30) 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 = z * ((x * y) - (b * c));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.02e+53) {
tmp = t_2;
} else if (i <= -6e-26) {
tmp = b * (c * ((a * (i / c)) - z));
} else if (i <= -1.85e-60) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -2.3e-210) {
tmp = t_1;
} else if (i <= -2.1e-264) {
tmp = j * ((t * c) - (y * i));
} else if (i <= 9e-122) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 3.9e+30) {
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 = z * ((x * y) - (b * c))
t_2 = i * ((a * b) - (y * j))
if (i <= (-1.02d+53)) then
tmp = t_2
else if (i <= (-6d-26)) then
tmp = b * (c * ((a * (i / c)) - z))
else if (i <= (-1.85d-60)) then
tmp = y * ((x * z) - (i * j))
else if (i <= (-2.3d-210)) then
tmp = t_1
else if (i <= (-2.1d-264)) then
tmp = j * ((t * c) - (y * i))
else if (i <= 9d-122) then
tmp = t * ((c * j) - (x * a))
else if (i <= 3.9d+30) 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 = z * ((x * y) - (b * c));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.02e+53) {
tmp = t_2;
} else if (i <= -6e-26) {
tmp = b * (c * ((a * (i / c)) - z));
} else if (i <= -1.85e-60) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -2.3e-210) {
tmp = t_1;
} else if (i <= -2.1e-264) {
tmp = j * ((t * c) - (y * i));
} else if (i <= 9e-122) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 3.9e+30) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.02e+53: tmp = t_2 elif i <= -6e-26: tmp = b * (c * ((a * (i / c)) - z)) elif i <= -1.85e-60: tmp = y * ((x * z) - (i * j)) elif i <= -2.3e-210: tmp = t_1 elif i <= -2.1e-264: tmp = j * ((t * c) - (y * i)) elif i <= 9e-122: tmp = t * ((c * j) - (x * a)) elif i <= 3.9e+30: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.02e+53) tmp = t_2; elseif (i <= -6e-26) tmp = Float64(b * Float64(c * Float64(Float64(a * Float64(i / c)) - z))); elseif (i <= -1.85e-60) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= -2.3e-210) tmp = t_1; elseif (i <= -2.1e-264) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (i <= 9e-122) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 3.9e+30) 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 = z * ((x * y) - (b * c)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.02e+53) tmp = t_2; elseif (i <= -6e-26) tmp = b * (c * ((a * (i / c)) - z)); elseif (i <= -1.85e-60) tmp = y * ((x * z) - (i * j)); elseif (i <= -2.3e-210) tmp = t_1; elseif (i <= -2.1e-264) tmp = j * ((t * c) - (y * i)); elseif (i <= 9e-122) tmp = t * ((c * j) - (x * a)); elseif (i <= 3.9e+30) 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.02e+53], t$95$2, If[LessEqual[i, -6e-26], N[(b * N[(c * N[(N[(a * N[(i / c), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.85e-60], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.3e-210], t$95$1, If[LessEqual[i, -2.1e-264], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e-122], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.9e+30], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.02 \cdot 10^{+53}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -6 \cdot 10^{-26}:\\
\;\;\;\;b \cdot \left(c \cdot \left(a \cdot \frac{i}{c} - z\right)\right)\\
\mathbf{elif}\;i \leq -1.85 \cdot 10^{-60}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq -2.3 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{-264}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-122}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.01999999999999999e53 or 3.90000000000000011e30 < i Initial program 65.1%
Taylor expanded in i around inf 71.7%
distribute-lft-out--71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in i around 0 71.7%
mul-1-neg71.7%
*-commutative71.7%
*-commutative71.7%
distribute-rgt-neg-out71.7%
sub-neg71.7%
*-commutative71.7%
distribute-neg-in71.7%
distribute-lft-neg-in71.7%
remove-double-neg71.7%
Simplified71.7%
if -1.01999999999999999e53 < i < -6.00000000000000023e-26Initial program 66.6%
Taylor expanded in b around inf 56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in c around inf 61.8%
associate-/l*61.8%
Simplified61.8%
if -6.00000000000000023e-26 < i < -1.85000000000000012e-60Initial program 88.7%
Taylor expanded in y around inf 76.3%
+-commutative76.3%
mul-1-neg76.3%
unsub-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
if -1.85000000000000012e-60 < i < -2.3e-210 or 8.99999999999999959e-122 < i < 3.90000000000000011e30Initial program 75.1%
Taylor expanded in z around inf 62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
if -2.3e-210 < i < -2.1000000000000002e-264Initial program 94.4%
Taylor expanded in j around inf 72.0%
if -2.1000000000000002e-264 < i < 8.99999999999999959e-122Initial program 84.1%
Taylor expanded in t around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= y -2000000.0)
(* i (* j (- y)))
(if (<= y -2.4e-98)
(* c (* z (- b)))
(if (<= y -4.9e-166)
t_1
(if (<= y -9.5e-289)
(* b (* z (- c)))
(if (<= y 1.1e-67)
(* b (* a i))
(if (<= y 2.5e+106)
(* t (* x (- a)))
(if (<= y 1.6e+207) t_1 (* x (* y z)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (y <= -2000000.0) {
tmp = i * (j * -y);
} else if (y <= -2.4e-98) {
tmp = c * (z * -b);
} else if (y <= -4.9e-166) {
tmp = t_1;
} else if (y <= -9.5e-289) {
tmp = b * (z * -c);
} else if (y <= 1.1e-67) {
tmp = b * (a * i);
} else if (y <= 2.5e+106) {
tmp = t * (x * -a);
} else if (y <= 1.6e+207) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (y <= (-2000000.0d0)) then
tmp = i * (j * -y)
else if (y <= (-2.4d-98)) then
tmp = c * (z * -b)
else if (y <= (-4.9d-166)) then
tmp = t_1
else if (y <= (-9.5d-289)) then
tmp = b * (z * -c)
else if (y <= 1.1d-67) then
tmp = b * (a * i)
else if (y <= 2.5d+106) then
tmp = t * (x * -a)
else if (y <= 1.6d+207) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (y <= -2000000.0) {
tmp = i * (j * -y);
} else if (y <= -2.4e-98) {
tmp = c * (z * -b);
} else if (y <= -4.9e-166) {
tmp = t_1;
} else if (y <= -9.5e-289) {
tmp = b * (z * -c);
} else if (y <= 1.1e-67) {
tmp = b * (a * i);
} else if (y <= 2.5e+106) {
tmp = t * (x * -a);
} else if (y <= 1.6e+207) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if y <= -2000000.0: tmp = i * (j * -y) elif y <= -2.4e-98: tmp = c * (z * -b) elif y <= -4.9e-166: tmp = t_1 elif y <= -9.5e-289: tmp = b * (z * -c) elif y <= 1.1e-67: tmp = b * (a * i) elif y <= 2.5e+106: tmp = t * (x * -a) elif y <= 1.6e+207: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (y <= -2000000.0) tmp = Float64(i * Float64(j * Float64(-y))); elseif (y <= -2.4e-98) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= -4.9e-166) tmp = t_1; elseif (y <= -9.5e-289) tmp = Float64(b * Float64(z * Float64(-c))); elseif (y <= 1.1e-67) tmp = Float64(b * Float64(a * i)); elseif (y <= 2.5e+106) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 1.6e+207) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (y <= -2000000.0) tmp = i * (j * -y); elseif (y <= -2.4e-98) tmp = c * (z * -b); elseif (y <= -4.9e-166) tmp = t_1; elseif (y <= -9.5e-289) tmp = b * (z * -c); elseif (y <= 1.1e-67) tmp = b * (a * i); elseif (y <= 2.5e+106) tmp = t * (x * -a); elseif (y <= 1.6e+207) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2000000.0], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.4e-98], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.9e-166], t$95$1, If[LessEqual[y, -9.5e-289], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-67], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e+106], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+207], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;y \leq -2000000:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-98}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq -4.9 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-289}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-67}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+106}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+207}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -2e6Initial program 71.3%
Taylor expanded in i around inf 53.8%
distribute-lft-out--53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in b around inf 48.5%
+-commutative48.5%
*-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
*-commutative48.5%
associate-/l*51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in b around 0 46.3%
associate-*r*46.3%
neg-mul-146.3%
*-commutative46.3%
Simplified46.3%
if -2e6 < y < -2.40000000000000005e-98Initial program 70.3%
Taylor expanded in b around inf 70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in i around 0 51.6%
associate-*r*51.6%
neg-mul-151.6%
Simplified51.6%
Taylor expanded in b around 0 51.6%
neg-mul-151.6%
distribute-lft-neg-in51.6%
*-commutative51.6%
associate-*l*55.8%
Simplified55.8%
if -2.40000000000000005e-98 < y < -4.8999999999999999e-166 or 2.4999999999999999e106 < y < 1.6000000000000001e207Initial program 71.0%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 47.9%
associate-*r*50.8%
*-commutative50.8%
Simplified50.8%
if -4.8999999999999999e-166 < y < -9.4999999999999995e-289Initial program 71.9%
Taylor expanded in b around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in i around 0 52.4%
associate-*r*52.4%
neg-mul-152.4%
Simplified52.4%
if -9.4999999999999995e-289 < y < 1.1000000000000001e-67Initial program 82.0%
Taylor expanded in b around inf 56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in i around inf 39.2%
if 1.1000000000000001e-67 < y < 2.4999999999999999e106Initial program 75.1%
Taylor expanded in t around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in j around 0 44.3%
associate-*r*44.3%
*-commutative44.3%
neg-mul-144.3%
Simplified44.3%
if 1.6000000000000001e207 < y Initial program 66.8%
Taylor expanded in x around inf 52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in y around inf 56.6%
*-commutative56.6%
Simplified56.6%
Final simplification47.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (* b i))))
(if (<= i -8.2e+107)
t_2
(if (<= i -1.95e-78)
(* b (* z (- c)))
(if (<= i -3.2e-210)
t_1
(if (<= i -8.2e-302)
(* c (* t j))
(if (<= i 9e-124)
(* a (* t (- x)))
(if (<= i 2.2e+47) 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 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (i <= -8.2e+107) {
tmp = t_2;
} else if (i <= -1.95e-78) {
tmp = b * (z * -c);
} else if (i <= -3.2e-210) {
tmp = t_1;
} else if (i <= -8.2e-302) {
tmp = c * (t * j);
} else if (i <= 9e-124) {
tmp = a * (t * -x);
} else if (i <= 2.2e+47) {
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 = y * (x * z)
t_2 = a * (b * i)
if (i <= (-8.2d+107)) then
tmp = t_2
else if (i <= (-1.95d-78)) then
tmp = b * (z * -c)
else if (i <= (-3.2d-210)) then
tmp = t_1
else if (i <= (-8.2d-302)) then
tmp = c * (t * j)
else if (i <= 9d-124) then
tmp = a * (t * -x)
else if (i <= 2.2d+47) 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 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (i <= -8.2e+107) {
tmp = t_2;
} else if (i <= -1.95e-78) {
tmp = b * (z * -c);
} else if (i <= -3.2e-210) {
tmp = t_1;
} else if (i <= -8.2e-302) {
tmp = c * (t * j);
} else if (i <= 9e-124) {
tmp = a * (t * -x);
} else if (i <= 2.2e+47) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * (b * i) tmp = 0 if i <= -8.2e+107: tmp = t_2 elif i <= -1.95e-78: tmp = b * (z * -c) elif i <= -3.2e-210: tmp = t_1 elif i <= -8.2e-302: tmp = c * (t * j) elif i <= 9e-124: tmp = a * (t * -x) elif i <= 2.2e+47: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -8.2e+107) tmp = t_2; elseif (i <= -1.95e-78) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= -3.2e-210) tmp = t_1; elseif (i <= -8.2e-302) tmp = Float64(c * Float64(t * j)); elseif (i <= 9e-124) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.2e+47) 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 = y * (x * z); t_2 = a * (b * i); tmp = 0.0; if (i <= -8.2e+107) tmp = t_2; elseif (i <= -1.95e-78) tmp = b * (z * -c); elseif (i <= -3.2e-210) tmp = t_1; elseif (i <= -8.2e-302) tmp = c * (t * j); elseif (i <= 9e-124) tmp = a * (t * -x); elseif (i <= 2.2e+47) 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.2e+107], t$95$2, If[LessEqual[i, -1.95e-78], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.2e-210], t$95$1, If[LessEqual[i, -8.2e-302], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e-124], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.2e+47], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -8.2 \cdot 10^{+107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.95 \cdot 10^{-78}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -8.2 \cdot 10^{-302}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-124}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -8.1999999999999998e107 or 2.1999999999999999e47 < i Initial program 61.2%
Taylor expanded in b around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in i around inf 48.2%
if -8.1999999999999998e107 < i < -1.9500000000000001e-78Initial program 77.1%
Taylor expanded in b around inf 45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in i around 0 31.9%
associate-*r*31.9%
neg-mul-131.9%
Simplified31.9%
if -1.9500000000000001e-78 < i < -3.20000000000000028e-210 or 8.9999999999999992e-124 < i < 2.1999999999999999e47Initial program 76.2%
Taylor expanded in x around inf 53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 39.9%
*-commutative39.9%
associate-*l*42.8%
Simplified42.8%
if -3.20000000000000028e-210 < i < -8.1999999999999996e-302Initial program 95.8%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 52.8%
if -8.1999999999999996e-302 < i < 8.9999999999999992e-124Initial program 78.7%
Taylor expanded in x around inf 57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y around 0 48.9%
mul-1-neg48.9%
distribute-rgt-neg-in48.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (* b i))))
(if (<= i -8.6e+107)
t_2
(if (<= i -1.8e-79)
(* c (* z (- b)))
(if (<= i -8.2e-210)
t_1
(if (<= i -1.15e-299)
(* c (* t j))
(if (<= i 6.9e-124)
(* a (* t (- x)))
(if (<= i 2.6e+48) 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 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (i <= -8.6e+107) {
tmp = t_2;
} else if (i <= -1.8e-79) {
tmp = c * (z * -b);
} else if (i <= -8.2e-210) {
tmp = t_1;
} else if (i <= -1.15e-299) {
tmp = c * (t * j);
} else if (i <= 6.9e-124) {
tmp = a * (t * -x);
} else if (i <= 2.6e+48) {
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 = y * (x * z)
t_2 = a * (b * i)
if (i <= (-8.6d+107)) then
tmp = t_2
else if (i <= (-1.8d-79)) then
tmp = c * (z * -b)
else if (i <= (-8.2d-210)) then
tmp = t_1
else if (i <= (-1.15d-299)) then
tmp = c * (t * j)
else if (i <= 6.9d-124) then
tmp = a * (t * -x)
else if (i <= 2.6d+48) 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 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (i <= -8.6e+107) {
tmp = t_2;
} else if (i <= -1.8e-79) {
tmp = c * (z * -b);
} else if (i <= -8.2e-210) {
tmp = t_1;
} else if (i <= -1.15e-299) {
tmp = c * (t * j);
} else if (i <= 6.9e-124) {
tmp = a * (t * -x);
} else if (i <= 2.6e+48) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * (b * i) tmp = 0 if i <= -8.6e+107: tmp = t_2 elif i <= -1.8e-79: tmp = c * (z * -b) elif i <= -8.2e-210: tmp = t_1 elif i <= -1.15e-299: tmp = c * (t * j) elif i <= 6.9e-124: tmp = a * (t * -x) elif i <= 2.6e+48: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -8.6e+107) tmp = t_2; elseif (i <= -1.8e-79) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= -8.2e-210) tmp = t_1; elseif (i <= -1.15e-299) tmp = Float64(c * Float64(t * j)); elseif (i <= 6.9e-124) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.6e+48) 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 = y * (x * z); t_2 = a * (b * i); tmp = 0.0; if (i <= -8.6e+107) tmp = t_2; elseif (i <= -1.8e-79) tmp = c * (z * -b); elseif (i <= -8.2e-210) tmp = t_1; elseif (i <= -1.15e-299) tmp = c * (t * j); elseif (i <= 6.9e-124) tmp = a * (t * -x); elseif (i <= 2.6e+48) 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.6e+107], t$95$2, If[LessEqual[i, -1.8e-79], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.2e-210], t$95$1, If[LessEqual[i, -1.15e-299], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.9e-124], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e+48], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -8.6 \cdot 10^{+107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.8 \cdot 10^{-79}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq -8.2 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-299}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 6.9 \cdot 10^{-124}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -8.5999999999999999e107 or 2.59999999999999995e48 < i Initial program 61.2%
Taylor expanded in b around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in i around inf 48.2%
if -8.5999999999999999e107 < i < -1.8000000000000001e-79Initial program 77.1%
Taylor expanded in b around inf 45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in i around 0 31.9%
associate-*r*31.9%
neg-mul-131.9%
Simplified31.9%
Taylor expanded in b around 0 31.9%
neg-mul-131.9%
distribute-lft-neg-in31.9%
*-commutative31.9%
associate-*l*31.5%
Simplified31.5%
if -1.8000000000000001e-79 < i < -8.19999999999999982e-210 or 6.9e-124 < i < 2.59999999999999995e48Initial program 76.2%
Taylor expanded in x around inf 53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in y around inf 39.9%
*-commutative39.9%
associate-*l*42.8%
Simplified42.8%
if -8.19999999999999982e-210 < i < -1.15e-299Initial program 95.8%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 52.8%
if -1.15e-299 < i < 6.9e-124Initial program 78.7%
Taylor expanded in x around inf 57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y around 0 48.9%
mul-1-neg48.9%
distribute-rgt-neg-in48.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -2.2e+185)
t_1
(if (or (<= j -3.2e+112) (and (not (<= j -1.75e-129)) (<= j 1.35e+20)))
(- (* z (* x y)) (* b (- (* z c) (* a i))))
(+ t_1 (* b (* a i)))))))
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.2e+185) {
tmp = t_1;
} else if ((j <= -3.2e+112) || (!(j <= -1.75e-129) && (j <= 1.35e+20))) {
tmp = (z * (x * y)) - (b * ((z * c) - (a * i)));
} else {
tmp = t_1 + (b * (a * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-2.2d+185)) then
tmp = t_1
else if ((j <= (-3.2d+112)) .or. (.not. (j <= (-1.75d-129))) .and. (j <= 1.35d+20)) then
tmp = (z * (x * y)) - (b * ((z * c) - (a * i)))
else
tmp = t_1 + (b * (a * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -2.2e+185) {
tmp = t_1;
} else if ((j <= -3.2e+112) || (!(j <= -1.75e-129) && (j <= 1.35e+20))) {
tmp = (z * (x * y)) - (b * ((z * c) - (a * i)));
} else {
tmp = t_1 + (b * (a * i));
}
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.2e+185: tmp = t_1 elif (j <= -3.2e+112) or (not (j <= -1.75e-129) and (j <= 1.35e+20)): tmp = (z * (x * y)) - (b * ((z * c) - (a * i))) else: tmp = t_1 + (b * (a * i)) 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.2e+185) tmp = t_1; elseif ((j <= -3.2e+112) || (!(j <= -1.75e-129) && (j <= 1.35e+20))) tmp = Float64(Float64(z * Float64(x * y)) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); else tmp = Float64(t_1 + Float64(b * Float64(a * i))); 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.2e+185) tmp = t_1; elseif ((j <= -3.2e+112) || (~((j <= -1.75e-129)) && (j <= 1.35e+20))) tmp = (z * (x * y)) - (b * ((z * c) - (a * i))); else tmp = t_1 + (b * (a * i)); 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.2e+185], t$95$1, If[Or[LessEqual[j, -3.2e+112], And[N[Not[LessEqual[j, -1.75e-129]], $MachinePrecision], LessEqual[j, 1.35e+20]]], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(a * i), $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 -2.2 \cdot 10^{+185}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{+112} \lor \neg \left(j \leq -1.75 \cdot 10^{-129}\right) \land j \leq 1.35 \cdot 10^{+20}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if j < -2.2000000000000001e185Initial program 63.9%
Taylor expanded in j around inf 81.2%
if -2.2000000000000001e185 < j < -3.19999999999999986e112 or -1.7499999999999999e-129 < j < 1.35e20Initial program 72.8%
Taylor expanded in t around 0 69.3%
associate-*r*69.4%
associate-*r*69.4%
*-commutative69.4%
associate-*r*73.1%
distribute-rgt-in75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in z around inf 68.7%
associate-*r*72.2%
*-commutative72.2%
Simplified72.2%
if -3.19999999999999986e112 < j < -1.7499999999999999e-129 or 1.35e20 < j Initial program 75.9%
Taylor expanded in i around inf 65.0%
*-commutative65.0%
associate-*r*67.4%
Simplified67.4%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= i -4.1e+86)
(* i (- (* a b) (* y j)))
(if (<= i 2.15e-103)
(+ (* x (- (* y z) (* t a))) t_1)
(if (<= i 2.1e+105)
(- (* y (- (* x z) (* i j))) (* b (* z c)))
(if (<= i 2e+296)
(+ t_1 (* b (* a i)))
(* b (* a (- i (* c (/ z a)))))))))))
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 (i <= -4.1e+86) {
tmp = i * ((a * b) - (y * j));
} else if (i <= 2.15e-103) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (i <= 2.1e+105) {
tmp = (y * ((x * z) - (i * j))) - (b * (z * c));
} else if (i <= 2e+296) {
tmp = t_1 + (b * (a * i));
} else {
tmp = b * (a * (i - (c * (z / a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (i <= (-4.1d+86)) then
tmp = i * ((a * b) - (y * j))
else if (i <= 2.15d-103) then
tmp = (x * ((y * z) - (t * a))) + t_1
else if (i <= 2.1d+105) then
tmp = (y * ((x * z) - (i * j))) - (b * (z * c))
else if (i <= 2d+296) then
tmp = t_1 + (b * (a * i))
else
tmp = b * (a * (i - (c * (z / a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (i <= -4.1e+86) {
tmp = i * ((a * b) - (y * j));
} else if (i <= 2.15e-103) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else if (i <= 2.1e+105) {
tmp = (y * ((x * z) - (i * j))) - (b * (z * c));
} else if (i <= 2e+296) {
tmp = t_1 + (b * (a * i));
} else {
tmp = b * (a * (i - (c * (z / a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if i <= -4.1e+86: tmp = i * ((a * b) - (y * j)) elif i <= 2.15e-103: tmp = (x * ((y * z) - (t * a))) + t_1 elif i <= 2.1e+105: tmp = (y * ((x * z) - (i * j))) - (b * (z * c)) elif i <= 2e+296: tmp = t_1 + (b * (a * i)) else: tmp = b * (a * (i - (c * (z / a)))) 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 (i <= -4.1e+86) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (i <= 2.15e-103) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); elseif (i <= 2.1e+105) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(z * c))); elseif (i <= 2e+296) tmp = Float64(t_1 + Float64(b * Float64(a * i))); else tmp = Float64(b * Float64(a * Float64(i - Float64(c * Float64(z / a))))); 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 (i <= -4.1e+86) tmp = i * ((a * b) - (y * j)); elseif (i <= 2.15e-103) tmp = (x * ((y * z) - (t * a))) + t_1; elseif (i <= 2.1e+105) tmp = (y * ((x * z) - (i * j))) - (b * (z * c)); elseif (i <= 2e+296) tmp = t_1 + (b * (a * i)); else tmp = b * (a * (i - (c * (z / a)))); 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[i, -4.1e+86], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.15e-103], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[i, 2.1e+105], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e+296], N[(t$95$1 + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * N[(i - N[(c * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;i \leq -4.1 \cdot 10^{+86}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;i \leq 2.15 \cdot 10^{-103}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{elif}\;i \leq 2.1 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{+296}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot \left(i - c \cdot \frac{z}{a}\right)\right)\\
\end{array}
\end{array}
if i < -4.0999999999999999e86Initial program 60.4%
Taylor expanded in i around inf 77.3%
distribute-lft-out--77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in i around 0 77.3%
mul-1-neg77.3%
*-commutative77.3%
*-commutative77.3%
distribute-rgt-neg-out77.3%
sub-neg77.3%
*-commutative77.3%
distribute-neg-in77.3%
distribute-lft-neg-in77.3%
remove-double-neg77.3%
Simplified77.3%
if -4.0999999999999999e86 < i < 2.15000000000000011e-103Initial program 83.0%
Taylor expanded in b around 0 69.5%
if 2.15000000000000011e-103 < i < 2.1000000000000001e105Initial program 68.2%
Taylor expanded in t around 0 70.4%
associate-*r*70.4%
associate-*r*70.4%
*-commutative70.4%
associate-*r*72.8%
distribute-rgt-in72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in c around inf 67.4%
if 2.1000000000000001e105 < i < 1.99999999999999996e296Initial program 66.5%
Taylor expanded in i around inf 80.0%
*-commutative80.0%
associate-*r*82.5%
Simplified82.5%
if 1.99999999999999996e296 < i Initial program 40.0%
Taylor expanded in b around inf 60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in c around inf 80.3%
associate-/l*80.0%
Simplified80.0%
Taylor expanded in a around inf 60.3%
mul-1-neg60.3%
unsub-neg60.3%
associate-/l*80.3%
Simplified80.3%
Final simplification72.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* b (* a i))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -0.00178)
t_2
(if (<= z 4.8e-135)
t_1
(if (<= z 4.3e-94)
(* t (- (* c j) (* x a)))
(if (<= z 9.5e+169) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (b * (a * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -0.00178) {
tmp = t_2;
} else if (z <= 4.8e-135) {
tmp = t_1;
} else if (z <= 4.3e-94) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 9.5e+169) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (b * (a * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-0.00178d0)) then
tmp = t_2
else if (z <= 4.8d-135) then
tmp = t_1
else if (z <= 4.3d-94) then
tmp = t * ((c * j) - (x * a))
else if (z <= 9.5d+169) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (b * (a * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -0.00178) {
tmp = t_2;
} else if (z <= 4.8e-135) {
tmp = t_1;
} else if (z <= 4.3e-94) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 9.5e+169) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (b * (a * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -0.00178: tmp = t_2 elif z <= 4.8e-135: tmp = t_1 elif z <= 4.3e-94: tmp = t * ((c * j) - (x * a)) elif z <= 9.5e+169: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(b * Float64(a * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -0.00178) tmp = t_2; elseif (z <= 4.8e-135) tmp = t_1; elseif (z <= 4.3e-94) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 9.5e+169) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (b * (a * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -0.00178) tmp = t_2; elseif (z <= 4.8e-135) tmp = t_1; elseif (z <= 4.3e-94) tmp = t * ((c * j) - (x * a)); elseif (z <= 9.5e+169) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.00178], t$95$2, If[LessEqual[z, 4.8e-135], t$95$1, If[LessEqual[z, 4.3e-94], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+169], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + b \cdot \left(a \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -0.00178:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{-94}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+169}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -0.0017799999999999999 or 9.4999999999999995e169 < z Initial program 62.6%
Taylor expanded in z around inf 66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
if -0.0017799999999999999 < z < 4.7999999999999997e-135 or 4.2999999999999998e-94 < z < 9.4999999999999995e169Initial program 81.4%
Taylor expanded in i around inf 70.1%
*-commutative70.1%
associate-*r*71.4%
Simplified71.4%
if 4.7999999999999997e-135 < z < 4.2999999999999998e-94Initial program 45.1%
Taylor expanded in t around inf 89.7%
+-commutative89.7%
mul-1-neg89.7%
unsub-neg89.7%
*-commutative89.7%
Simplified89.7%
Final simplification70.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -2.15e+52)
t_1
(if (<= i -4.5e-27)
(* b (* c (- (* a (/ i c)) z)))
(if (<= i -1.05e-60)
(* y (- (* x z) (* i j)))
(if (<= i 7.5e-118)
(* j (* t (- c (* a (/ x j)))))
(if (<= i 2.4e+32) (* z (- (* x y) (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.15e+52) {
tmp = t_1;
} else if (i <= -4.5e-27) {
tmp = b * (c * ((a * (i / c)) - z));
} else if (i <= -1.05e-60) {
tmp = y * ((x * z) - (i * j));
} else if (i <= 7.5e-118) {
tmp = j * (t * (c - (a * (x / j))));
} else if (i <= 2.4e+32) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (i <= (-2.15d+52)) then
tmp = t_1
else if (i <= (-4.5d-27)) then
tmp = b * (c * ((a * (i / c)) - z))
else if (i <= (-1.05d-60)) then
tmp = y * ((x * z) - (i * j))
else if (i <= 7.5d-118) then
tmp = j * (t * (c - (a * (x / j))))
else if (i <= 2.4d+32) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.15e+52) {
tmp = t_1;
} else if (i <= -4.5e-27) {
tmp = b * (c * ((a * (i / c)) - z));
} else if (i <= -1.05e-60) {
tmp = y * ((x * z) - (i * j));
} else if (i <= 7.5e-118) {
tmp = j * (t * (c - (a * (x / j))));
} else if (i <= 2.4e+32) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.15e+52: tmp = t_1 elif i <= -4.5e-27: tmp = b * (c * ((a * (i / c)) - z)) elif i <= -1.05e-60: tmp = y * ((x * z) - (i * j)) elif i <= 7.5e-118: tmp = j * (t * (c - (a * (x / j)))) elif i <= 2.4e+32: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.15e+52) tmp = t_1; elseif (i <= -4.5e-27) tmp = Float64(b * Float64(c * Float64(Float64(a * Float64(i / c)) - z))); elseif (i <= -1.05e-60) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= 7.5e-118) tmp = Float64(j * Float64(t * Float64(c - Float64(a * Float64(x / j))))); elseif (i <= 2.4e+32) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.15e+52) tmp = t_1; elseif (i <= -4.5e-27) tmp = b * (c * ((a * (i / c)) - z)); elseif (i <= -1.05e-60) tmp = y * ((x * z) - (i * j)); elseif (i <= 7.5e-118) tmp = j * (t * (c - (a * (x / j)))); elseif (i <= 2.4e+32) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.15e+52], t$95$1, If[LessEqual[i, -4.5e-27], N[(b * N[(c * N[(N[(a * N[(i / c), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.05e-60], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e-118], N[(j * N[(t * N[(c - N[(a * N[(x / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e+32], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.15 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-27}:\\
\;\;\;\;b \cdot \left(c \cdot \left(a \cdot \frac{i}{c} - z\right)\right)\\
\mathbf{elif}\;i \leq -1.05 \cdot 10^{-60}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{-118}:\\
\;\;\;\;j \cdot \left(t \cdot \left(c - a \cdot \frac{x}{j}\right)\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+32}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.15e52 or 2.39999999999999991e32 < i Initial program 65.1%
Taylor expanded in i around inf 71.7%
distribute-lft-out--71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in i around 0 71.7%
mul-1-neg71.7%
*-commutative71.7%
*-commutative71.7%
distribute-rgt-neg-out71.7%
sub-neg71.7%
*-commutative71.7%
distribute-neg-in71.7%
distribute-lft-neg-in71.7%
remove-double-neg71.7%
Simplified71.7%
if -2.15e52 < i < -4.5000000000000002e-27Initial program 66.6%
Taylor expanded in b around inf 56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in c around inf 61.8%
associate-/l*61.8%
Simplified61.8%
if -4.5000000000000002e-27 < i < -1.04999999999999996e-60Initial program 88.7%
Taylor expanded in y around inf 76.3%
+-commutative76.3%
mul-1-neg76.3%
unsub-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
if -1.04999999999999996e-60 < i < 7.49999999999999978e-118Initial program 84.0%
Taylor expanded in j around inf 81.9%
Taylor expanded in t around inf 60.0%
mul-1-neg60.0%
unsub-neg60.0%
associate-/l*62.3%
Simplified62.3%
if 7.49999999999999978e-118 < i < 2.39999999999999991e32Initial program 72.3%
Taylor expanded in z around inf 64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Final simplification67.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -2.5e-38)
t_1
(if (<= i -2.8e-217)
(* x (- (* y z) (* t a)))
(if (<= i -2.1e-264)
(* j (- (* t c) (* y i)))
(if (<= i 3.7e-123)
(* t (- (* c j) (* x a)))
(if (<= i 8.6e+30) (* z (- (* x y) (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.5e-38) {
tmp = t_1;
} else if (i <= -2.8e-217) {
tmp = x * ((y * z) - (t * a));
} else if (i <= -2.1e-264) {
tmp = j * ((t * c) - (y * i));
} else if (i <= 3.7e-123) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 8.6e+30) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (i <= (-2.5d-38)) then
tmp = t_1
else if (i <= (-2.8d-217)) then
tmp = x * ((y * z) - (t * a))
else if (i <= (-2.1d-264)) then
tmp = j * ((t * c) - (y * i))
else if (i <= 3.7d-123) then
tmp = t * ((c * j) - (x * a))
else if (i <= 8.6d+30) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.5e-38) {
tmp = t_1;
} else if (i <= -2.8e-217) {
tmp = x * ((y * z) - (t * a));
} else if (i <= -2.1e-264) {
tmp = j * ((t * c) - (y * i));
} else if (i <= 3.7e-123) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 8.6e+30) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.5e-38: tmp = t_1 elif i <= -2.8e-217: tmp = x * ((y * z) - (t * a)) elif i <= -2.1e-264: tmp = j * ((t * c) - (y * i)) elif i <= 3.7e-123: tmp = t * ((c * j) - (x * a)) elif i <= 8.6e+30: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.5e-38) tmp = t_1; elseif (i <= -2.8e-217) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= -2.1e-264) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (i <= 3.7e-123) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 8.6e+30) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.5e-38) tmp = t_1; elseif (i <= -2.8e-217) tmp = x * ((y * z) - (t * a)); elseif (i <= -2.1e-264) tmp = j * ((t * c) - (y * i)); elseif (i <= 3.7e-123) tmp = t * ((c * j) - (x * a)); elseif (i <= 8.6e+30) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.5e-38], t$95$1, If[LessEqual[i, -2.8e-217], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.1e-264], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.7e-123], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.6e+30], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.5 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-217}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{-264}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{-123}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 8.6 \cdot 10^{+30}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.50000000000000017e-38 or 8.6e30 < i Initial program 66.1%
Taylor expanded in i around inf 67.8%
distribute-lft-out--67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in i around 0 67.8%
mul-1-neg67.8%
*-commutative67.8%
*-commutative67.8%
distribute-rgt-neg-out67.8%
sub-neg67.8%
*-commutative67.8%
distribute-neg-in67.8%
distribute-lft-neg-in67.8%
remove-double-neg67.8%
Simplified67.8%
if -2.50000000000000017e-38 < i < -2.8e-217Initial program 79.5%
Taylor expanded in x around inf 57.4%
*-commutative57.4%
Simplified57.4%
if -2.8e-217 < i < -2.1000000000000002e-264Initial program 94.0%
Taylor expanded in j around inf 76.0%
if -2.1000000000000002e-264 < i < 3.70000000000000015e-123Initial program 84.1%
Taylor expanded in t around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if 3.70000000000000015e-123 < i < 8.6e30Initial program 72.3%
Taylor expanded in z around inf 64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Final simplification65.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -3.4e+100)
t_3
(if (<= x -1.25e-190)
t_2
(if (<= x -6.5e-238)
t_1
(if (<= x -5.2e-308) t_2 (if (<= x 6000.0) 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 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -3.4e+100) {
tmp = t_3;
} else if (x <= -1.25e-190) {
tmp = t_2;
} else if (x <= -6.5e-238) {
tmp = t_1;
} else if (x <= -5.2e-308) {
tmp = t_2;
} else if (x <= 6000.0) {
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 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = x * ((y * z) - (t * a))
if (x <= (-3.4d+100)) then
tmp = t_3
else if (x <= (-1.25d-190)) then
tmp = t_2
else if (x <= (-6.5d-238)) then
tmp = t_1
else if (x <= (-5.2d-308)) then
tmp = t_2
else if (x <= 6000.0d0) 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 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -3.4e+100) {
tmp = t_3;
} else if (x <= -1.25e-190) {
tmp = t_2;
} else if (x <= -6.5e-238) {
tmp = t_1;
} else if (x <= -5.2e-308) {
tmp = t_2;
} else if (x <= 6000.0) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -3.4e+100: tmp = t_3 elif x <= -1.25e-190: tmp = t_2 elif x <= -6.5e-238: tmp = t_1 elif x <= -5.2e-308: tmp = t_2 elif x <= 6000.0: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -3.4e+100) tmp = t_3; elseif (x <= -1.25e-190) tmp = t_2; elseif (x <= -6.5e-238) tmp = t_1; elseif (x <= -5.2e-308) tmp = t_2; elseif (x <= 6000.0) 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 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -3.4e+100) tmp = t_3; elseif (x <= -1.25e-190) tmp = t_2; elseif (x <= -6.5e-238) tmp = t_1; elseif (x <= -5.2e-308) tmp = t_2; elseif (x <= 6000.0) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e+100], t$95$3, If[LessEqual[x, -1.25e-190], t$95$2, If[LessEqual[x, -6.5e-238], t$95$1, If[LessEqual[x, -5.2e-308], t$95$2, If[LessEqual[x, 6000.0], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+100}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq -1.25 \cdot 10^{-190}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 6000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if x < -3.39999999999999994e100 or 6e3 < x Initial program 71.2%
Taylor expanded in x around inf 59.3%
*-commutative59.3%
Simplified59.3%
if -3.39999999999999994e100 < x < -1.25000000000000009e-190 or -6.5000000000000006e-238 < x < -5.1999999999999999e-308Initial program 78.0%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
Simplified67.7%
if -1.25000000000000009e-190 < x < -6.5000000000000006e-238 or -5.1999999999999999e-308 < x < 6e3Initial program 71.7%
Taylor expanded in j around inf 63.4%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= y -3.1e+20)
t_2
(if (<= y -1.6e-103)
t_1
(if (<= y -1.7e-162)
t_2
(if (<= y 8.8e-70)
t_1
(if (<= y 1.55e+106) (* t (- (* c j) (* x a))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (y <= -3.1e+20) {
tmp = t_2;
} else if (y <= -1.6e-103) {
tmp = t_1;
} else if (y <= -1.7e-162) {
tmp = t_2;
} else if (y <= 8.8e-70) {
tmp = t_1;
} else if (y <= 1.55e+106) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = j * ((t * c) - (y * i))
if (y <= (-3.1d+20)) then
tmp = t_2
else if (y <= (-1.6d-103)) then
tmp = t_1
else if (y <= (-1.7d-162)) then
tmp = t_2
else if (y <= 8.8d-70) then
tmp = t_1
else if (y <= 1.55d+106) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (y <= -3.1e+20) {
tmp = t_2;
} else if (y <= -1.6e-103) {
tmp = t_1;
} else if (y <= -1.7e-162) {
tmp = t_2;
} else if (y <= 8.8e-70) {
tmp = t_1;
} else if (y <= 1.55e+106) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if y <= -3.1e+20: tmp = t_2 elif y <= -1.6e-103: tmp = t_1 elif y <= -1.7e-162: tmp = t_2 elif y <= 8.8e-70: tmp = t_1 elif y <= 1.55e+106: tmp = t * ((c * j) - (x * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (y <= -3.1e+20) tmp = t_2; elseif (y <= -1.6e-103) tmp = t_1; elseif (y <= -1.7e-162) tmp = t_2; elseif (y <= 8.8e-70) tmp = t_1; elseif (y <= 1.55e+106) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (y <= -3.1e+20) tmp = t_2; elseif (y <= -1.6e-103) tmp = t_1; elseif (y <= -1.7e-162) tmp = t_2; elseif (y <= 8.8e-70) tmp = t_1; elseif (y <= 1.55e+106) tmp = t * ((c * j) - (x * a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+20], t$95$2, If[LessEqual[y, -1.6e-103], t$95$1, If[LessEqual[y, -1.7e-162], t$95$2, If[LessEqual[y, 8.8e-70], t$95$1, If[LessEqual[y, 1.55e+106], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-162}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+106}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.1e20 or -1.59999999999999988e-103 < y < -1.7e-162 or 1.55e106 < y Initial program 69.7%
Taylor expanded in j around inf 60.4%
if -3.1e20 < y < -1.59999999999999988e-103 or -1.7e-162 < y < 8.7999999999999996e-70Initial program 77.4%
Taylor expanded in b around inf 61.9%
*-commutative61.9%
Simplified61.9%
if 8.7999999999999996e-70 < y < 1.55e106Initial program 75.1%
Taylor expanded in t around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.35e+141)
(* i (- (* a b) (* y j)))
(if (or (<= i -1.32e-79) (not (<= i 1.15e-175)))
(- (* y (- (* x z) (* i j))) (* b (- (* z c) (* a i))))
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.35e+141) {
tmp = i * ((a * b) - (y * j));
} else if ((i <= -1.32e-79) || !(i <= 1.15e-175)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.35d+141)) then
tmp = i * ((a * b) - (y * j))
else if ((i <= (-1.32d-79)) .or. (.not. (i <= 1.15d-175))) then
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.35e+141) {
tmp = i * ((a * b) - (y * j));
} else if ((i <= -1.32e-79) || !(i <= 1.15e-175)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.35e+141: tmp = i * ((a * b) - (y * j)) elif (i <= -1.32e-79) or not (i <= 1.15e-175): tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.35e+141) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif ((i <= -1.32e-79) || !(i <= 1.15e-175)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.35e+141) tmp = i * ((a * b) - (y * j)); elseif ((i <= -1.32e-79) || ~((i <= 1.15e-175))) tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.35e+141], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[i, -1.32e-79], N[Not[LessEqual[i, 1.15e-175]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.35 \cdot 10^{+141}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;i \leq -1.32 \cdot 10^{-79} \lor \neg \left(i \leq 1.15 \cdot 10^{-175}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if i < -1.35e141Initial program 54.7%
Taylor expanded in i around inf 84.9%
distribute-lft-out--84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in i around 0 84.9%
mul-1-neg84.9%
*-commutative84.9%
*-commutative84.9%
distribute-rgt-neg-out84.9%
sub-neg84.9%
*-commutative84.9%
distribute-neg-in84.9%
distribute-lft-neg-in84.9%
remove-double-neg84.9%
Simplified84.9%
if -1.35e141 < i < -1.32e-79 or 1.15e-175 < i Initial program 72.0%
Taylor expanded in t around 0 68.6%
associate-*r*67.3%
associate-*r*67.3%
*-commutative67.3%
associate-*r*68.6%
distribute-rgt-in73.2%
+-commutative73.2%
mul-1-neg73.2%
unsub-neg73.2%
*-commutative73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
if -1.32e-79 < i < 1.15e-175Initial program 84.2%
Taylor expanded in b around 0 78.6%
Final simplification76.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (* b i))))
(if (<= i -1.9e+123)
t_2
(if (<= i -8.5e-210)
t_1
(if (<= i -1.3e-302)
(* c (* t j))
(if (<= i 5e-124) (* a (* t (- x))) (if (<= i 5.3e+47) 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 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (i <= -1.9e+123) {
tmp = t_2;
} else if (i <= -8.5e-210) {
tmp = t_1;
} else if (i <= -1.3e-302) {
tmp = c * (t * j);
} else if (i <= 5e-124) {
tmp = a * (t * -x);
} else if (i <= 5.3e+47) {
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 = y * (x * z)
t_2 = a * (b * i)
if (i <= (-1.9d+123)) then
tmp = t_2
else if (i <= (-8.5d-210)) then
tmp = t_1
else if (i <= (-1.3d-302)) then
tmp = c * (t * j)
else if (i <= 5d-124) then
tmp = a * (t * -x)
else if (i <= 5.3d+47) 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 = y * (x * z);
double t_2 = a * (b * i);
double tmp;
if (i <= -1.9e+123) {
tmp = t_2;
} else if (i <= -8.5e-210) {
tmp = t_1;
} else if (i <= -1.3e-302) {
tmp = c * (t * j);
} else if (i <= 5e-124) {
tmp = a * (t * -x);
} else if (i <= 5.3e+47) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * (b * i) tmp = 0 if i <= -1.9e+123: tmp = t_2 elif i <= -8.5e-210: tmp = t_1 elif i <= -1.3e-302: tmp = c * (t * j) elif i <= 5e-124: tmp = a * (t * -x) elif i <= 5.3e+47: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -1.9e+123) tmp = t_2; elseif (i <= -8.5e-210) tmp = t_1; elseif (i <= -1.3e-302) tmp = Float64(c * Float64(t * j)); elseif (i <= 5e-124) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 5.3e+47) 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 = y * (x * z); t_2 = a * (b * i); tmp = 0.0; if (i <= -1.9e+123) tmp = t_2; elseif (i <= -8.5e-210) tmp = t_1; elseif (i <= -1.3e-302) tmp = c * (t * j); elseif (i <= 5e-124) tmp = a * (t * -x); elseif (i <= 5.3e+47) 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+123], t$95$2, If[LessEqual[i, -8.5e-210], t$95$1, If[LessEqual[i, -1.3e-302], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e-124], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.3e+47], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.9 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.3 \cdot 10^{-302}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{-124}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 5.3 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.89999999999999997e123 or 5.3e47 < i Initial program 60.6%
Taylor expanded in b around inf 53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in i around inf 49.2%
if -1.89999999999999997e123 < i < -8.4999999999999997e-210 or 5.0000000000000003e-124 < i < 5.3e47Initial program 76.5%
Taylor expanded in x around inf 42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in y around inf 31.0%
*-commutative31.0%
associate-*l*32.9%
Simplified32.9%
if -8.4999999999999997e-210 < i < -1.30000000000000006e-302Initial program 95.8%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 52.8%
if -1.30000000000000006e-302 < i < 5.0000000000000003e-124Initial program 78.7%
Taylor expanded in x around inf 57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y around 0 48.9%
mul-1-neg48.9%
distribute-rgt-neg-in48.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= y -1.1e+19)
(not
(or (<= y -1.4e-101) (and (not (<= y -1.12e-162)) (<= y 3e-39)))))
(* 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 ((y <= -1.1e+19) || !((y <= -1.4e-101) || (!(y <= -1.12e-162) && (y <= 3e-39)))) {
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 ((y <= (-1.1d+19)) .or. (.not. (y <= (-1.4d-101)) .or. (.not. (y <= (-1.12d-162))) .and. (y <= 3d-39))) 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 ((y <= -1.1e+19) || !((y <= -1.4e-101) || (!(y <= -1.12e-162) && (y <= 3e-39)))) {
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 (y <= -1.1e+19) or not ((y <= -1.4e-101) or (not (y <= -1.12e-162) and (y <= 3e-39))): 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 ((y <= -1.1e+19) || !((y <= -1.4e-101) || (!(y <= -1.12e-162) && (y <= 3e-39)))) 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 ((y <= -1.1e+19) || ~(((y <= -1.4e-101) || (~((y <= -1.12e-162)) && (y <= 3e-39))))) 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[y, -1.1e+19], N[Not[Or[LessEqual[y, -1.4e-101], And[N[Not[LessEqual[y, -1.12e-162]], $MachinePrecision], LessEqual[y, 3e-39]]]], $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}\;y \leq -1.1 \cdot 10^{+19} \lor \neg \left(y \leq -1.4 \cdot 10^{-101} \lor \neg \left(y \leq -1.12 \cdot 10^{-162}\right) \land y \leq 3 \cdot 10^{-39}\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 y < -1.1e19 or -1.39999999999999995e-101 < y < -1.12e-162 or 3.00000000000000028e-39 < y Initial program 69.3%
Taylor expanded in j around inf 57.0%
if -1.1e19 < y < -1.39999999999999995e-101 or -1.12e-162 < y < 3.00000000000000028e-39Initial program 78.9%
Taylor expanded in b around inf 58.8%
*-commutative58.8%
Simplified58.8%
Final simplification57.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -7.5e+106)
(* i (* j (- y)))
(if (<= y 2.3e-67)
(* b (- (* a i) (* z c)))
(if (<= y 4.1e+106)
(* t (* x (- a)))
(if (<= y 3.3e+208) (* t (* c j)) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -7.5e+106) {
tmp = i * (j * -y);
} else if (y <= 2.3e-67) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 4.1e+106) {
tmp = t * (x * -a);
} else if (y <= 3.3e+208) {
tmp = t * (c * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-7.5d+106)) then
tmp = i * (j * -y)
else if (y <= 2.3d-67) then
tmp = b * ((a * i) - (z * c))
else if (y <= 4.1d+106) then
tmp = t * (x * -a)
else if (y <= 3.3d+208) then
tmp = t * (c * j)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -7.5e+106) {
tmp = i * (j * -y);
} else if (y <= 2.3e-67) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 4.1e+106) {
tmp = t * (x * -a);
} else if (y <= 3.3e+208) {
tmp = t * (c * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -7.5e+106: tmp = i * (j * -y) elif y <= 2.3e-67: tmp = b * ((a * i) - (z * c)) elif y <= 4.1e+106: tmp = t * (x * -a) elif y <= 3.3e+208: tmp = t * (c * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -7.5e+106) tmp = Float64(i * Float64(j * Float64(-y))); elseif (y <= 2.3e-67) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 4.1e+106) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 3.3e+208) tmp = Float64(t * Float64(c * j)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -7.5e+106) tmp = i * (j * -y); elseif (y <= 2.3e-67) tmp = b * ((a * i) - (z * c)); elseif (y <= 4.1e+106) tmp = t * (x * -a); elseif (y <= 3.3e+208) tmp = t * (c * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -7.5e+106], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-67], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.1e+106], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+208], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+106}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-67}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+106}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+208}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -7.50000000000000058e106Initial program 65.4%
Taylor expanded in i around inf 57.6%
distribute-lft-out--57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in b around inf 50.3%
+-commutative50.3%
*-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
associate-/l*55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in b around 0 50.4%
associate-*r*50.4%
neg-mul-150.4%
*-commutative50.4%
Simplified50.4%
if -7.50000000000000058e106 < y < 2.3e-67Initial program 79.6%
Taylor expanded in b around inf 55.3%
*-commutative55.3%
Simplified55.3%
if 2.3e-67 < y < 4.1000000000000002e106Initial program 75.1%
Taylor expanded in t around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in j around 0 44.3%
associate-*r*44.3%
*-commutative44.3%
neg-mul-144.3%
Simplified44.3%
if 4.1000000000000002e106 < y < 3.3e208Initial program 56.2%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 50.7%
associate-*r*50.8%
*-commutative50.8%
Simplified50.8%
if 3.3e208 < y Initial program 66.8%
Taylor expanded in x around inf 52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in y around inf 56.6%
*-commutative56.6%
Simplified56.6%
Final simplification52.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= i -1.9e+123)
t_1
(if (<= i -5.3e-210)
(* y (* x z))
(if (<= i -2.8e-301)
(* c (* t j))
(if (<= i 1.55e+47) (* x (* y z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (i <= -1.9e+123) {
tmp = t_1;
} else if (i <= -5.3e-210) {
tmp = y * (x * z);
} else if (i <= -2.8e-301) {
tmp = c * (t * j);
} else if (i <= 1.55e+47) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (i <= (-1.9d+123)) then
tmp = t_1
else if (i <= (-5.3d-210)) then
tmp = y * (x * z)
else if (i <= (-2.8d-301)) then
tmp = c * (t * j)
else if (i <= 1.55d+47) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (i <= -1.9e+123) {
tmp = t_1;
} else if (i <= -5.3e-210) {
tmp = y * (x * z);
} else if (i <= -2.8e-301) {
tmp = c * (t * j);
} else if (i <= 1.55e+47) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if i <= -1.9e+123: tmp = t_1 elif i <= -5.3e-210: tmp = y * (x * z) elif i <= -2.8e-301: tmp = c * (t * j) elif i <= 1.55e+47: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -1.9e+123) tmp = t_1; elseif (i <= -5.3e-210) tmp = Float64(y * Float64(x * z)); elseif (i <= -2.8e-301) tmp = Float64(c * Float64(t * j)); elseif (i <= 1.55e+47) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (i <= -1.9e+123) tmp = t_1; elseif (i <= -5.3e-210) tmp = y * (x * z); elseif (i <= -2.8e-301) tmp = c * (t * j); elseif (i <= 1.55e+47) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+123], t$95$1, If[LessEqual[i, -5.3e-210], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.8e-301], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.55e+47], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.9 \cdot 10^{+123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -5.3 \cdot 10^{-210}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-301}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{+47}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.89999999999999997e123 or 1.55e47 < i Initial program 60.6%
Taylor expanded in b around inf 53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in i around inf 49.2%
if -1.89999999999999997e123 < i < -5.3000000000000001e-210Initial program 77.5%
Taylor expanded in x around inf 40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in y around inf 28.0%
*-commutative28.0%
associate-*l*29.7%
Simplified29.7%
if -5.3000000000000001e-210 < i < -2.8000000000000001e-301Initial program 95.8%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 52.8%
if -2.8000000000000001e-301 < i < 1.55e47Initial program 76.0%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 35.3%
*-commutative35.3%
Simplified35.3%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* a (* b i))))
(if (<= i -1.55e-9)
t_2
(if (<= i -2.15e-209)
t_1
(if (<= i -1.3e-299) (* c (* t j)) (if (<= i 1.7e+48) 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);
double t_2 = a * (b * i);
double tmp;
if (i <= -1.55e-9) {
tmp = t_2;
} else if (i <= -2.15e-209) {
tmp = t_1;
} else if (i <= -1.3e-299) {
tmp = c * (t * j);
} else if (i <= 1.7e+48) {
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_2 = a * (b * i)
if (i <= (-1.55d-9)) then
tmp = t_2
else if (i <= (-2.15d-209)) then
tmp = t_1
else if (i <= (-1.3d-299)) then
tmp = c * (t * j)
else if (i <= 1.7d+48) 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);
double t_2 = a * (b * i);
double tmp;
if (i <= -1.55e-9) {
tmp = t_2;
} else if (i <= -2.15e-209) {
tmp = t_1;
} else if (i <= -1.3e-299) {
tmp = c * (t * j);
} else if (i <= 1.7e+48) {
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_2 = a * (b * i) tmp = 0 if i <= -1.55e-9: tmp = t_2 elif i <= -2.15e-209: tmp = t_1 elif i <= -1.3e-299: tmp = c * (t * j) elif i <= 1.7e+48: 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(y * z)) t_2 = Float64(a * Float64(b * i)) tmp = 0.0 if (i <= -1.55e-9) tmp = t_2; elseif (i <= -2.15e-209) tmp = t_1; elseif (i <= -1.3e-299) tmp = Float64(c * Float64(t * j)); elseif (i <= 1.7e+48) 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_2 = a * (b * i); tmp = 0.0; if (i <= -1.55e-9) tmp = t_2; elseif (i <= -2.15e-209) tmp = t_1; elseif (i <= -1.3e-299) tmp = c * (t * j); elseif (i <= 1.7e+48) 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[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.55e-9], t$95$2, If[LessEqual[i, -2.15e-209], t$95$1, If[LessEqual[i, -1.3e-299], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e+48], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.55 \cdot 10^{-9}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -2.15 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.3 \cdot 10^{-299}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.55000000000000002e-9 or 1.7000000000000002e48 < i Initial program 64.8%
Taylor expanded in b around inf 49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in i around inf 40.7%
if -1.55000000000000002e-9 < i < -2.15000000000000003e-209 or -1.2999999999999999e-299 < i < 1.7000000000000002e48Initial program 77.5%
Taylor expanded in x around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 35.4%
*-commutative35.4%
Simplified35.4%
if -2.15000000000000003e-209 < i < -1.2999999999999999e-299Initial program 95.8%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in j around inf 52.8%
Final simplification39.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -7.8e+105) (* i (* a b)) (if (<= a 5.3e-73) (* c (* t j)) (* b (* a i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -7.8e+105) {
tmp = i * (a * b);
} else if (a <= 5.3e-73) {
tmp = c * (t * j);
} else {
tmp = b * (a * 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 (a <= (-7.8d+105)) then
tmp = i * (a * b)
else if (a <= 5.3d-73) then
tmp = c * (t * j)
else
tmp = b * (a * 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 (a <= -7.8e+105) {
tmp = i * (a * b);
} else if (a <= 5.3e-73) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -7.8e+105: tmp = i * (a * b) elif a <= 5.3e-73: tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -7.8e+105) tmp = Float64(i * Float64(a * b)); elseif (a <= 5.3e-73) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -7.8e+105) tmp = i * (a * b); elseif (a <= 5.3e-73) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -7.8e+105], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.3e-73], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.8 \cdot 10^{+105}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq 5.3 \cdot 10^{-73}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -7.79999999999999957e105Initial program 56.6%
Taylor expanded in i around inf 50.4%
distribute-lft-out--50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in b around inf 38.1%
+-commutative38.1%
*-commutative38.1%
mul-1-neg38.1%
unsub-neg38.1%
*-commutative38.1%
associate-/l*44.3%
*-commutative44.3%
Simplified44.3%
Taylor expanded in b around inf 44.8%
associate-*r*44.8%
*-commutative44.8%
Simplified44.8%
if -7.79999999999999957e105 < a < 5.29999999999999972e-73Initial program 75.8%
Taylor expanded in t around inf 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in j around inf 32.3%
if 5.29999999999999972e-73 < a Initial program 74.8%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 40.4%
Final simplification36.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -7.2e+105) (* a (* b i)) (if (<= a 2.3e-74) (* c (* t j)) (* b (* a i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -7.2e+105) {
tmp = a * (b * i);
} else if (a <= 2.3e-74) {
tmp = c * (t * j);
} else {
tmp = b * (a * 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 (a <= (-7.2d+105)) then
tmp = a * (b * i)
else if (a <= 2.3d-74) then
tmp = c * (t * j)
else
tmp = b * (a * 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 (a <= -7.2e+105) {
tmp = a * (b * i);
} else if (a <= 2.3e-74) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -7.2e+105: tmp = a * (b * i) elif a <= 2.3e-74: tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -7.2e+105) tmp = Float64(a * Float64(b * i)); elseif (a <= 2.3e-74) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -7.2e+105) tmp = a * (b * i); elseif (a <= 2.3e-74) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -7.2e+105], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e-74], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{+105}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-74}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -7.1999999999999998e105Initial program 56.6%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in i around inf 44.8%
if -7.1999999999999998e105 < a < 2.2999999999999998e-74Initial program 75.8%
Taylor expanded in t around inf 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in j around inf 32.3%
if 2.2999999999999998e-74 < a Initial program 74.8%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 40.4%
Final simplification36.6%
(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 73.1%
Taylor expanded in b around inf 41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in i around inf 24.0%
(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 2024101
(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)))))