
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* y i)))
(+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* c (- (* a j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 94.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in c around inf 51.5%
*-commutative51.5%
Simplified51.5%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* i (- (* t b) (* y j))))
(t_4 (* c (- (* a j) (* z b)))))
(if (<= c -1.1e+122)
t_4
(if (<= c -2.4e+79)
t_3
(if (<= c -4.5e+69)
t_4
(if (<= c -0.12)
t_1
(if (<= c -1.12e-131)
(* y (- (* x z) (* i j)))
(if (<= c -1.5e-158)
t_1
(if (<= c -1.95e-304)
t_2
(if (<= c 9.5e-136)
t_3
(if (<= c 4.3e-76)
t_2
(if (<= c 1.65e-19)
t_3
(if (<= c 4.5e+64)
(* b (- (* t i) (* z c)))
t_4)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = x * ((y * z) - (t * a));
double t_3 = i * ((t * b) - (y * j));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.1e+122) {
tmp = t_4;
} else if (c <= -2.4e+79) {
tmp = t_3;
} else if (c <= -4.5e+69) {
tmp = t_4;
} else if (c <= -0.12) {
tmp = t_1;
} else if (c <= -1.12e-131) {
tmp = y * ((x * z) - (i * j));
} else if (c <= -1.5e-158) {
tmp = t_1;
} else if (c <= -1.95e-304) {
tmp = t_2;
} else if (c <= 9.5e-136) {
tmp = t_3;
} else if (c <= 4.3e-76) {
tmp = t_2;
} else if (c <= 1.65e-19) {
tmp = t_3;
} else if (c <= 4.5e+64) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = x * ((y * z) - (t * a))
t_3 = i * ((t * b) - (y * j))
t_4 = c * ((a * j) - (z * b))
if (c <= (-1.1d+122)) then
tmp = t_4
else if (c <= (-2.4d+79)) then
tmp = t_3
else if (c <= (-4.5d+69)) then
tmp = t_4
else if (c <= (-0.12d0)) then
tmp = t_1
else if (c <= (-1.12d-131)) then
tmp = y * ((x * z) - (i * j))
else if (c <= (-1.5d-158)) then
tmp = t_1
else if (c <= (-1.95d-304)) then
tmp = t_2
else if (c <= 9.5d-136) then
tmp = t_3
else if (c <= 4.3d-76) then
tmp = t_2
else if (c <= 1.65d-19) then
tmp = t_3
else if (c <= 4.5d+64) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_4
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 * ((c * j) - (x * t));
double t_2 = x * ((y * z) - (t * a));
double t_3 = i * ((t * b) - (y * j));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.1e+122) {
tmp = t_4;
} else if (c <= -2.4e+79) {
tmp = t_3;
} else if (c <= -4.5e+69) {
tmp = t_4;
} else if (c <= -0.12) {
tmp = t_1;
} else if (c <= -1.12e-131) {
tmp = y * ((x * z) - (i * j));
} else if (c <= -1.5e-158) {
tmp = t_1;
} else if (c <= -1.95e-304) {
tmp = t_2;
} else if (c <= 9.5e-136) {
tmp = t_3;
} else if (c <= 4.3e-76) {
tmp = t_2;
} else if (c <= 1.65e-19) {
tmp = t_3;
} else if (c <= 4.5e+64) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = x * ((y * z) - (t * a)) t_3 = i * ((t * b) - (y * j)) t_4 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.1e+122: tmp = t_4 elif c <= -2.4e+79: tmp = t_3 elif c <= -4.5e+69: tmp = t_4 elif c <= -0.12: tmp = t_1 elif c <= -1.12e-131: tmp = y * ((x * z) - (i * j)) elif c <= -1.5e-158: tmp = t_1 elif c <= -1.95e-304: tmp = t_2 elif c <= 9.5e-136: tmp = t_3 elif c <= 4.3e-76: tmp = t_2 elif c <= 1.65e-19: tmp = t_3 elif c <= 4.5e+64: tmp = b * ((t * i) - (z * c)) else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_4 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.1e+122) tmp = t_4; elseif (c <= -2.4e+79) tmp = t_3; elseif (c <= -4.5e+69) tmp = t_4; elseif (c <= -0.12) tmp = t_1; elseif (c <= -1.12e-131) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= -1.5e-158) tmp = t_1; elseif (c <= -1.95e-304) tmp = t_2; elseif (c <= 9.5e-136) tmp = t_3; elseif (c <= 4.3e-76) tmp = t_2; elseif (c <= 1.65e-19) tmp = t_3; elseif (c <= 4.5e+64) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = x * ((y * z) - (t * a)); t_3 = i * ((t * b) - (y * j)); t_4 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.1e+122) tmp = t_4; elseif (c <= -2.4e+79) tmp = t_3; elseif (c <= -4.5e+69) tmp = t_4; elseif (c <= -0.12) tmp = t_1; elseif (c <= -1.12e-131) tmp = y * ((x * z) - (i * j)); elseif (c <= -1.5e-158) tmp = t_1; elseif (c <= -1.95e-304) tmp = t_2; elseif (c <= 9.5e-136) tmp = t_3; elseif (c <= 4.3e-76) tmp = t_2; elseif (c <= 1.65e-19) tmp = t_3; elseif (c <= 4.5e+64) tmp = b * ((t * i) - (z * c)); else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.1e+122], t$95$4, If[LessEqual[c, -2.4e+79], t$95$3, If[LessEqual[c, -4.5e+69], t$95$4, If[LessEqual[c, -0.12], t$95$1, If[LessEqual[c, -1.12e-131], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.5e-158], t$95$1, If[LessEqual[c, -1.95e-304], t$95$2, If[LessEqual[c, 9.5e-136], t$95$3, If[LessEqual[c, 4.3e-76], t$95$2, If[LessEqual[c, 1.65e-19], t$95$3, If[LessEqual[c, 4.5e+64], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_4 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.1 \cdot 10^{+122}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;c \leq -2.4 \cdot 10^{+79}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{+69}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;c \leq -0.12:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.12 \cdot 10^{-131}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq -1.5 \cdot 10^{-158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.95 \cdot 10^{-304}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-136}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 4.3 \cdot 10^{-76}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.65 \cdot 10^{-19}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{+64}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if c < -1.1e122 or -2.39999999999999986e79 < c < -4.4999999999999999e69 or 4.49999999999999973e64 < c Initial program 60.6%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
Simplified78.0%
if -1.1e122 < c < -2.39999999999999986e79 or -1.94999999999999987e-304 < c < 9.5000000000000007e-136 or 4.2999999999999999e-76 < c < 1.6499999999999999e-19Initial program 88.9%
Taylor expanded in i around inf 66.9%
Taylor expanded in i around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
if -4.4999999999999999e69 < c < -0.12 or -1.12000000000000001e-131 < c < -1.5e-158Initial program 77.7%
Taylor expanded in a around inf 77.8%
+-commutative77.8%
mul-1-neg77.8%
unsub-neg77.8%
*-commutative77.8%
Simplified77.8%
if -0.12 < c < -1.12000000000000001e-131Initial program 58.0%
Taylor expanded in y around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
if -1.5e-158 < c < -1.94999999999999987e-304 or 9.5000000000000007e-136 < c < 4.2999999999999999e-76Initial program 91.9%
Taylor expanded in x around inf 71.6%
if 1.6499999999999999e-19 < c < 4.49999999999999973e64Initial program 84.1%
Taylor expanded in b around inf 66.6%
Final simplification72.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (* t i)) (* j (- (* y i) (* a c)))))
(t_2 (+ (* x (* y z)) (* b (- (* t i) (* z c))))))
(if (<= j -1.12e+182)
(* j (- (* a c) (* y i)))
(if (<= j -1.7e+174)
(* x (* a (- (* y (/ z a)) t)))
(if (<= j -1.2e+27)
t_1
(if (<= j -6.6e-256)
t_2
(if (<= j -1.02e-304)
(* t (- (* b i) (* x a)))
(if (<= j 6e-186)
t_2
(if (<= j 4e-102)
(* a (- (* c j) (* x t)))
(if (<= j 2.8e+21) (* 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 = (b * (t * i)) - (j * ((y * i) - (a * c)));
double t_2 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -1.12e+182) {
tmp = j * ((a * c) - (y * i));
} else if (j <= -1.7e+174) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (j <= -1.2e+27) {
tmp = t_1;
} else if (j <= -6.6e-256) {
tmp = t_2;
} else if (j <= -1.02e-304) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 6e-186) {
tmp = t_2;
} else if (j <= 4e-102) {
tmp = a * ((c * j) - (x * t));
} else if (j <= 2.8e+21) {
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) :: t_2
real(8) :: tmp
t_1 = (b * (t * i)) - (j * ((y * i) - (a * c)))
t_2 = (x * (y * z)) + (b * ((t * i) - (z * c)))
if (j <= (-1.12d+182)) then
tmp = j * ((a * c) - (y * i))
else if (j <= (-1.7d+174)) then
tmp = x * (a * ((y * (z / a)) - t))
else if (j <= (-1.2d+27)) then
tmp = t_1
else if (j <= (-6.6d-256)) then
tmp = t_2
else if (j <= (-1.02d-304)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 6d-186) then
tmp = t_2
else if (j <= 4d-102) then
tmp = a * ((c * j) - (x * t))
else if (j <= 2.8d+21) 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 = (b * (t * i)) - (j * ((y * i) - (a * c)));
double t_2 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -1.12e+182) {
tmp = j * ((a * c) - (y * i));
} else if (j <= -1.7e+174) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (j <= -1.2e+27) {
tmp = t_1;
} else if (j <= -6.6e-256) {
tmp = t_2;
} else if (j <= -1.02e-304) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 6e-186) {
tmp = t_2;
} else if (j <= 4e-102) {
tmp = a * ((c * j) - (x * t));
} else if (j <= 2.8e+21) {
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 = (b * (t * i)) - (j * ((y * i) - (a * c))) t_2 = (x * (y * z)) + (b * ((t * i) - (z * c))) tmp = 0 if j <= -1.12e+182: tmp = j * ((a * c) - (y * i)) elif j <= -1.7e+174: tmp = x * (a * ((y * (z / a)) - t)) elif j <= -1.2e+27: tmp = t_1 elif j <= -6.6e-256: tmp = t_2 elif j <= -1.02e-304: tmp = t * ((b * i) - (x * a)) elif j <= 6e-186: tmp = t_2 elif j <= 4e-102: tmp = a * ((c * j) - (x * t)) elif j <= 2.8e+21: 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(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))) t_2 = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (j <= -1.12e+182) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (j <= -1.7e+174) tmp = Float64(x * Float64(a * Float64(Float64(y * Float64(z / a)) - t))); elseif (j <= -1.2e+27) tmp = t_1; elseif (j <= -6.6e-256) tmp = t_2; elseif (j <= -1.02e-304) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 6e-186) tmp = t_2; elseif (j <= 4e-102) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= 2.8e+21) 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 = (b * (t * i)) - (j * ((y * i) - (a * c))); t_2 = (x * (y * z)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (j <= -1.12e+182) tmp = j * ((a * c) - (y * i)); elseif (j <= -1.7e+174) tmp = x * (a * ((y * (z / a)) - t)); elseif (j <= -1.2e+27) tmp = t_1; elseif (j <= -6.6e-256) tmp = t_2; elseif (j <= -1.02e-304) tmp = t * ((b * i) - (x * a)); elseif (j <= 6e-186) tmp = t_2; elseif (j <= 4e-102) tmp = a * ((c * j) - (x * t)); elseif (j <= 2.8e+21) 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[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.12e+182], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.7e+174], N[(x * N[(a * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e+27], t$95$1, If[LessEqual[j, -6.6e-256], t$95$2, If[LessEqual[j, -1.02e-304], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e-186], t$95$2, If[LessEqual[j, 4e-102], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+21], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -1.12 \cdot 10^{+182}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{+174}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.6 \cdot 10^{-256}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.02 \cdot 10^{-304}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{-186}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 4 \cdot 10^{-102}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+21}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.11999999999999994e182Initial program 72.4%
Taylor expanded in j around inf 84.1%
if -1.11999999999999994e182 < j < -1.7000000000000001e174Initial program 60.0%
Taylor expanded in x around inf 81.0%
Taylor expanded in a around inf 100.0%
associate-/l*100.0%
Simplified100.0%
if -1.7000000000000001e174 < j < -1.19999999999999999e27 or 2.8e21 < j Initial program 74.4%
Taylor expanded in i around inf 69.5%
if -1.19999999999999999e27 < j < -6.6e-256 or -1.01999999999999992e-304 < j < 6.0000000000000003e-186Initial program 76.0%
Taylor expanded in j around 0 79.8%
Taylor expanded in y around inf 74.0%
*-commutative29.7%
Simplified74.0%
if -6.6e-256 < j < -1.01999999999999992e-304Initial program 70.5%
Taylor expanded in t around -inf 81.0%
if 6.0000000000000003e-186 < j < 3.99999999999999973e-102Initial program 70.4%
Taylor expanded in a around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
*-commutative61.0%
Simplified61.0%
if 3.99999999999999973e-102 < j < 2.8e21Initial program 80.0%
Taylor expanded in z around inf 83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Final simplification74.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (* c (- (* a j) (* z b))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= c -1.05e+122)
t_2
(if (<= c -5.2e+81)
t_1
(if (<= c -3.6e+69)
t_2
(if (<= c -4.6e-161)
(* a (- (* c j) (* x t)))
(if (<= c -5.9e-304)
t_3
(if (<= c 6.7e-136)
t_1
(if (<= c 1.5e-74)
t_3
(if (<= c 1.8e-18)
t_1
(if (<= c 5e+64) (* b (- (* t i) (* z c))) t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (c <= -1.05e+122) {
tmp = t_2;
} else if (c <= -5.2e+81) {
tmp = t_1;
} else if (c <= -3.6e+69) {
tmp = t_2;
} else if (c <= -4.6e-161) {
tmp = a * ((c * j) - (x * t));
} else if (c <= -5.9e-304) {
tmp = t_3;
} else if (c <= 6.7e-136) {
tmp = t_1;
} else if (c <= 1.5e-74) {
tmp = t_3;
} else if (c <= 1.8e-18) {
tmp = t_1;
} else if (c <= 5e+64) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
t_3 = x * ((y * z) - (t * a))
if (c <= (-1.05d+122)) then
tmp = t_2
else if (c <= (-5.2d+81)) then
tmp = t_1
else if (c <= (-3.6d+69)) then
tmp = t_2
else if (c <= (-4.6d-161)) then
tmp = a * ((c * j) - (x * t))
else if (c <= (-5.9d-304)) then
tmp = t_3
else if (c <= 6.7d-136) then
tmp = t_1
else if (c <= 1.5d-74) then
tmp = t_3
else if (c <= 1.8d-18) then
tmp = t_1
else if (c <= 5d+64) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (c <= -1.05e+122) {
tmp = t_2;
} else if (c <= -5.2e+81) {
tmp = t_1;
} else if (c <= -3.6e+69) {
tmp = t_2;
} else if (c <= -4.6e-161) {
tmp = a * ((c * j) - (x * t));
} else if (c <= -5.9e-304) {
tmp = t_3;
} else if (c <= 6.7e-136) {
tmp = t_1;
} else if (c <= 1.5e-74) {
tmp = t_3;
} else if (c <= 1.8e-18) {
tmp = t_1;
} else if (c <= 5e+64) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if c <= -1.05e+122: tmp = t_2 elif c <= -5.2e+81: tmp = t_1 elif c <= -3.6e+69: tmp = t_2 elif c <= -4.6e-161: tmp = a * ((c * j) - (x * t)) elif c <= -5.9e-304: tmp = t_3 elif c <= 6.7e-136: tmp = t_1 elif c <= 1.5e-74: tmp = t_3 elif c <= 1.8e-18: tmp = t_1 elif c <= 5e+64: tmp = b * ((t * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (c <= -1.05e+122) tmp = t_2; elseif (c <= -5.2e+81) tmp = t_1; elseif (c <= -3.6e+69) tmp = t_2; elseif (c <= -4.6e-161) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (c <= -5.9e-304) tmp = t_3; elseif (c <= 6.7e-136) tmp = t_1; elseif (c <= 1.5e-74) tmp = t_3; elseif (c <= 1.8e-18) tmp = t_1; elseif (c <= 5e+64) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (c <= -1.05e+122) tmp = t_2; elseif (c <= -5.2e+81) tmp = t_1; elseif (c <= -3.6e+69) tmp = t_2; elseif (c <= -4.6e-161) tmp = a * ((c * j) - (x * t)); elseif (c <= -5.9e-304) tmp = t_3; elseif (c <= 6.7e-136) tmp = t_1; elseif (c <= 1.5e-74) tmp = t_3; elseif (c <= 1.8e-18) tmp = t_1; elseif (c <= 5e+64) tmp = b * ((t * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.05e+122], t$95$2, If[LessEqual[c, -5.2e+81], t$95$1, If[LessEqual[c, -3.6e+69], t$95$2, If[LessEqual[c, -4.6e-161], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.9e-304], t$95$3, If[LessEqual[c, 6.7e-136], t$95$1, If[LessEqual[c, 1.5e-74], t$95$3, If[LessEqual[c, 1.8e-18], t$95$1, If[LessEqual[c, 5e+64], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;c \leq -1.05 \cdot 10^{+122}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{+69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -4.6 \cdot 10^{-161}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;c \leq -5.9 \cdot 10^{-304}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 6.7 \cdot 10^{-136}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-74}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{+64}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.05000000000000008e122 or -5.19999999999999984e81 < c < -3.6000000000000003e69 or 5e64 < c Initial program 60.6%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
Simplified78.0%
if -1.05000000000000008e122 < c < -5.19999999999999984e81 or -5.9000000000000001e-304 < c < 6.6999999999999998e-136 or 1.50000000000000003e-74 < c < 1.80000000000000005e-18Initial program 88.9%
Taylor expanded in i around inf 66.9%
Taylor expanded in i around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
if -3.6000000000000003e69 < c < -4.6e-161Initial program 68.0%
Taylor expanded in a around inf 57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
*-commutative57.3%
Simplified57.3%
if -4.6e-161 < c < -5.9000000000000001e-304 or 6.6999999999999998e-136 < c < 1.50000000000000003e-74Initial program 91.9%
Taylor expanded in x around inf 71.6%
if 1.80000000000000005e-18 < c < 5e64Initial program 84.1%
Taylor expanded in b around inf 66.6%
Final simplification70.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -5e+121)
t_3
(if (<= c -2.9e+82)
t_2
(if (<= c -9.2e+69)
t_3
(if (<= c -1.05e-166)
t_1
(if (<= c -2.7e-276)
(* z (* x y))
(if (<= c -5.2e-304)
t_1
(if (<= c 1.7e-29)
t_2
(if (<= c 8.6e+64) (* b (- (* t i) (* z c))) t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5e+121) {
tmp = t_3;
} else if (c <= -2.9e+82) {
tmp = t_2;
} else if (c <= -9.2e+69) {
tmp = t_3;
} else if (c <= -1.05e-166) {
tmp = t_1;
} else if (c <= -2.7e-276) {
tmp = z * (x * y);
} else if (c <= -5.2e-304) {
tmp = t_1;
} else if (c <= 1.7e-29) {
tmp = t_2;
} else if (c <= 8.6e+64) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-5d+121)) then
tmp = t_3
else if (c <= (-2.9d+82)) then
tmp = t_2
else if (c <= (-9.2d+69)) then
tmp = t_3
else if (c <= (-1.05d-166)) then
tmp = t_1
else if (c <= (-2.7d-276)) then
tmp = z * (x * y)
else if (c <= (-5.2d-304)) then
tmp = t_1
else if (c <= 1.7d-29) then
tmp = t_2
else if (c <= 8.6d+64) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5e+121) {
tmp = t_3;
} else if (c <= -2.9e+82) {
tmp = t_2;
} else if (c <= -9.2e+69) {
tmp = t_3;
} else if (c <= -1.05e-166) {
tmp = t_1;
} else if (c <= -2.7e-276) {
tmp = z * (x * y);
} else if (c <= -5.2e-304) {
tmp = t_1;
} else if (c <= 1.7e-29) {
tmp = t_2;
} else if (c <= 8.6e+64) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -5e+121: tmp = t_3 elif c <= -2.9e+82: tmp = t_2 elif c <= -9.2e+69: tmp = t_3 elif c <= -1.05e-166: tmp = t_1 elif c <= -2.7e-276: tmp = z * (x * y) elif c <= -5.2e-304: tmp = t_1 elif c <= 1.7e-29: tmp = t_2 elif c <= 8.6e+64: tmp = b * ((t * i) - (z * c)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -5e+121) tmp = t_3; elseif (c <= -2.9e+82) tmp = t_2; elseif (c <= -9.2e+69) tmp = t_3; elseif (c <= -1.05e-166) tmp = t_1; elseif (c <= -2.7e-276) tmp = Float64(z * Float64(x * y)); elseif (c <= -5.2e-304) tmp = t_1; elseif (c <= 1.7e-29) tmp = t_2; elseif (c <= 8.6e+64) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -5e+121) tmp = t_3; elseif (c <= -2.9e+82) tmp = t_2; elseif (c <= -9.2e+69) tmp = t_3; elseif (c <= -1.05e-166) tmp = t_1; elseif (c <= -2.7e-276) tmp = z * (x * y); elseif (c <= -5.2e-304) tmp = t_1; elseif (c <= 1.7e-29) tmp = t_2; elseif (c <= 8.6e+64) tmp = b * ((t * i) - (z * c)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5e+121], t$95$3, If[LessEqual[c, -2.9e+82], t$95$2, If[LessEqual[c, -9.2e+69], t$95$3, If[LessEqual[c, -1.05e-166], t$95$1, If[LessEqual[c, -2.7e-276], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.2e-304], t$95$1, If[LessEqual[c, 1.7e-29], t$95$2, If[LessEqual[c, 8.6e+64], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -5 \cdot 10^{+121}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -2.9 \cdot 10^{+82}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -9.2 \cdot 10^{+69}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -1.05 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{-276}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{-29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 8.6 \cdot 10^{+64}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -5.00000000000000007e121 or -2.9000000000000001e82 < c < -9.20000000000000067e69 or 8.5999999999999995e64 < c Initial program 60.6%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
Simplified78.0%
if -5.00000000000000007e121 < c < -2.9000000000000001e82 or -5.19999999999999993e-304 < c < 1.69999999999999986e-29Initial program 89.8%
Taylor expanded in i around inf 58.3%
Taylor expanded in i around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
if -9.20000000000000067e69 < c < -1.05e-166 or -2.69999999999999985e-276 < c < -5.19999999999999993e-304Initial program 70.2%
Taylor expanded in a around inf 60.3%
+-commutative60.3%
mul-1-neg60.3%
unsub-neg60.3%
*-commutative60.3%
Simplified60.3%
if -1.05e-166 < c < -2.69999999999999985e-276Initial program 89.1%
Taylor expanded in z around inf 58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in y around inf 53.9%
*-commutative53.9%
Simplified53.9%
if 1.69999999999999986e-29 < c < 8.5999999999999995e64Initial program 84.1%
Taylor expanded in b around inf 66.6%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* a (* c j))))
(if (<= x -5.8e+218)
(* y (* x z))
(if (<= x -7.4e-57)
(* x (* t (- a)))
(if (<= x -3.7e-240)
t_2
(if (<= x -2.6e-268)
(* b (* t i))
(if (<= x 6.8e-307)
t_1
(if (<= x 3.9e-250)
(* t (* b i))
(if (<= x 5.5e-197)
t_2
(if (<= x 4.5e+120) t_1 (* z (* x y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * b) * -c;
double t_2 = a * (c * j);
double tmp;
if (x <= -5.8e+218) {
tmp = y * (x * z);
} else if (x <= -7.4e-57) {
tmp = x * (t * -a);
} else if (x <= -3.7e-240) {
tmp = t_2;
} else if (x <= -2.6e-268) {
tmp = b * (t * i);
} else if (x <= 6.8e-307) {
tmp = t_1;
} else if (x <= 3.9e-250) {
tmp = t * (b * i);
} else if (x <= 5.5e-197) {
tmp = t_2;
} else if (x <= 4.5e+120) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z * b) * -c
t_2 = a * (c * j)
if (x <= (-5.8d+218)) then
tmp = y * (x * z)
else if (x <= (-7.4d-57)) then
tmp = x * (t * -a)
else if (x <= (-3.7d-240)) then
tmp = t_2
else if (x <= (-2.6d-268)) then
tmp = b * (t * i)
else if (x <= 6.8d-307) then
tmp = t_1
else if (x <= 3.9d-250) then
tmp = t * (b * i)
else if (x <= 5.5d-197) then
tmp = t_2
else if (x <= 4.5d+120) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * b) * -c;
double t_2 = a * (c * j);
double tmp;
if (x <= -5.8e+218) {
tmp = y * (x * z);
} else if (x <= -7.4e-57) {
tmp = x * (t * -a);
} else if (x <= -3.7e-240) {
tmp = t_2;
} else if (x <= -2.6e-268) {
tmp = b * (t * i);
} else if (x <= 6.8e-307) {
tmp = t_1;
} else if (x <= 3.9e-250) {
tmp = t * (b * i);
} else if (x <= 5.5e-197) {
tmp = t_2;
} else if (x <= 4.5e+120) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = a * (c * j) tmp = 0 if x <= -5.8e+218: tmp = y * (x * z) elif x <= -7.4e-57: tmp = x * (t * -a) elif x <= -3.7e-240: tmp = t_2 elif x <= -2.6e-268: tmp = b * (t * i) elif x <= 6.8e-307: tmp = t_1 elif x <= 3.9e-250: tmp = t * (b * i) elif x <= 5.5e-197: tmp = t_2 elif x <= 4.5e+120: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -5.8e+218) tmp = Float64(y * Float64(x * z)); elseif (x <= -7.4e-57) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -3.7e-240) tmp = t_2; elseif (x <= -2.6e-268) tmp = Float64(b * Float64(t * i)); elseif (x <= 6.8e-307) tmp = t_1; elseif (x <= 3.9e-250) tmp = Float64(t * Float64(b * i)); elseif (x <= 5.5e-197) tmp = t_2; elseif (x <= 4.5e+120) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * b) * -c; t_2 = a * (c * j); tmp = 0.0; if (x <= -5.8e+218) tmp = y * (x * z); elseif (x <= -7.4e-57) tmp = x * (t * -a); elseif (x <= -3.7e-240) tmp = t_2; elseif (x <= -2.6e-268) tmp = b * (t * i); elseif (x <= 6.8e-307) tmp = t_1; elseif (x <= 3.9e-250) tmp = t * (b * i); elseif (x <= 5.5e-197) tmp = t_2; elseif (x <= 4.5e+120) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+218], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.4e-57], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.7e-240], t$95$2, If[LessEqual[x, -2.6e-268], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.8e-307], t$95$1, If[LessEqual[x, 3.9e-250], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e-197], t$95$2, If[LessEqual[x, 4.5e+120], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+218}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -7.4 \cdot 10^{-57}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -3.7 \cdot 10^{-240}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-268}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{-307}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{-250}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-197}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -5.7999999999999999e218Initial program 64.2%
Taylor expanded in y around inf 79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in z around inf 72.5%
if -5.7999999999999999e218 < x < -7.4e-57Initial program 74.6%
Taylor expanded in x around inf 61.1%
Taylor expanded in y around 0 41.2%
mul-1-neg41.2%
distribute-lft-neg-out41.2%
*-commutative41.2%
Simplified41.2%
if -7.4e-57 < x < -3.7000000000000002e-240 or 3.90000000000000027e-250 < x < 5.50000000000000037e-197Initial program 75.0%
Taylor expanded in a around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in j around inf 48.1%
if -3.7000000000000002e-240 < x < -2.60000000000000002e-268Initial program 66.4%
Taylor expanded in j around 0 66.4%
Taylor expanded in i around inf 99.7%
if -2.60000000000000002e-268 < x < 6.79999999999999978e-307 or 5.50000000000000037e-197 < x < 4.49999999999999977e120Initial program 76.9%
Taylor expanded in j around 0 62.1%
Taylor expanded in c around inf 40.7%
associate-*r*40.7%
neg-mul-140.7%
Simplified40.7%
Taylor expanded in b around 0 40.7%
neg-mul-140.7%
distribute-lft-neg-in40.7%
*-commutative40.7%
associate-*l*42.9%
Simplified42.9%
if 6.79999999999999978e-307 < x < 3.90000000000000027e-250Initial program 86.0%
Taylor expanded in j around 0 62.7%
Taylor expanded in i around inf 58.4%
associate-*r*71.7%
Simplified71.7%
if 4.49999999999999977e120 < x Initial program 70.1%
Taylor expanded in z around inf 53.0%
*-commutative53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in y around inf 37.7%
*-commutative37.7%
Simplified37.7%
Final simplification47.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b (- c)))) (t_2 (* a (* c j))))
(if (<= x -1.5e+219)
(* y (* x z))
(if (<= x -9.5e-54)
(* x (* t (- a)))
(if (<= x -4e-237)
t_2
(if (<= x -4e-267)
(* b (* t i))
(if (<= x 2.3e-305)
t_1
(if (<= x 1.2e-249)
(* t (* b i))
(if (<= x 2.7e-209)
t_2
(if (<= x 5.2e+131) t_1 (* z (* x y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * -c);
double t_2 = a * (c * j);
double tmp;
if (x <= -1.5e+219) {
tmp = y * (x * z);
} else if (x <= -9.5e-54) {
tmp = x * (t * -a);
} else if (x <= -4e-237) {
tmp = t_2;
} else if (x <= -4e-267) {
tmp = b * (t * i);
} else if (x <= 2.3e-305) {
tmp = t_1;
} else if (x <= 1.2e-249) {
tmp = t * (b * i);
} else if (x <= 2.7e-209) {
tmp = t_2;
} else if (x <= 5.2e+131) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (b * -c)
t_2 = a * (c * j)
if (x <= (-1.5d+219)) then
tmp = y * (x * z)
else if (x <= (-9.5d-54)) then
tmp = x * (t * -a)
else if (x <= (-4d-237)) then
tmp = t_2
else if (x <= (-4d-267)) then
tmp = b * (t * i)
else if (x <= 2.3d-305) then
tmp = t_1
else if (x <= 1.2d-249) then
tmp = t * (b * i)
else if (x <= 2.7d-209) then
tmp = t_2
else if (x <= 5.2d+131) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * -c);
double t_2 = a * (c * j);
double tmp;
if (x <= -1.5e+219) {
tmp = y * (x * z);
} else if (x <= -9.5e-54) {
tmp = x * (t * -a);
} else if (x <= -4e-237) {
tmp = t_2;
} else if (x <= -4e-267) {
tmp = b * (t * i);
} else if (x <= 2.3e-305) {
tmp = t_1;
} else if (x <= 1.2e-249) {
tmp = t * (b * i);
} else if (x <= 2.7e-209) {
tmp = t_2;
} else if (x <= 5.2e+131) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * -c) t_2 = a * (c * j) tmp = 0 if x <= -1.5e+219: tmp = y * (x * z) elif x <= -9.5e-54: tmp = x * (t * -a) elif x <= -4e-237: tmp = t_2 elif x <= -4e-267: tmp = b * (t * i) elif x <= 2.3e-305: tmp = t_1 elif x <= 1.2e-249: tmp = t * (b * i) elif x <= 2.7e-209: tmp = t_2 elif x <= 5.2e+131: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * Float64(-c))) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -1.5e+219) tmp = Float64(y * Float64(x * z)); elseif (x <= -9.5e-54) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -4e-237) tmp = t_2; elseif (x <= -4e-267) tmp = Float64(b * Float64(t * i)); elseif (x <= 2.3e-305) tmp = t_1; elseif (x <= 1.2e-249) tmp = Float64(t * Float64(b * i)); elseif (x <= 2.7e-209) tmp = t_2; elseif (x <= 5.2e+131) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (b * -c); t_2 = a * (c * j); tmp = 0.0; if (x <= -1.5e+219) tmp = y * (x * z); elseif (x <= -9.5e-54) tmp = x * (t * -a); elseif (x <= -4e-237) tmp = t_2; elseif (x <= -4e-267) tmp = b * (t * i); elseif (x <= 2.3e-305) tmp = t_1; elseif (x <= 1.2e-249) tmp = t * (b * i); elseif (x <= 2.7e-209) tmp = t_2; elseif (x <= 5.2e+131) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+219], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.5e-54], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4e-237], t$95$2, If[LessEqual[x, -4e-267], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e-305], t$95$1, If[LessEqual[x, 1.2e-249], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e-209], t$95$2, If[LessEqual[x, 5.2e+131], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot \left(-c\right)\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+219}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-54}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-237}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-267}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-305}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-249}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-209}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.4999999999999999e219Initial program 64.2%
Taylor expanded in y around inf 79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in z around inf 72.5%
if -1.4999999999999999e219 < x < -9.4999999999999994e-54Initial program 74.6%
Taylor expanded in x around inf 61.1%
Taylor expanded in y around 0 41.2%
mul-1-neg41.2%
distribute-lft-neg-out41.2%
*-commutative41.2%
Simplified41.2%
if -9.4999999999999994e-54 < x < -4e-237 or 1.20000000000000006e-249 < x < 2.69999999999999998e-209Initial program 79.6%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in j around inf 47.8%
if -4e-237 < x < -3.9999999999999999e-267Initial program 66.4%
Taylor expanded in j around 0 66.4%
Taylor expanded in i around inf 99.7%
if -3.9999999999999999e-267 < x < 2.3e-305 or 2.69999999999999998e-209 < x < 5.2e131Initial program 75.1%
Taylor expanded in z around inf 50.2%
*-commutative50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in y around 0 43.6%
mul-1-neg43.6%
*-commutative43.6%
distribute-rgt-neg-in43.6%
Simplified43.6%
if 2.3e-305 < x < 1.20000000000000006e-249Initial program 86.0%
Taylor expanded in j around 0 62.7%
Taylor expanded in i around inf 58.4%
associate-*r*71.7%
Simplified71.7%
if 5.2e131 < x Initial program 68.8%
Taylor expanded in z around inf 53.2%
*-commutative53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in y around inf 39.2%
*-commutative39.2%
Simplified39.2%
Final simplification47.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))) (t_2 (* z (* b (- c)))) (t_3 (* a (* c j))))
(if (<= x -1.16e+223)
(* y (* x z))
(if (<= x -3.05e-52)
t_1
(if (<= x -4.6e-238)
t_3
(if (<= x -4.8e-269)
(* b (* t i))
(if (<= x 5.5e-304)
t_2
(if (<= x 6.2e-251)
(* t (* b i))
(if (<= x 2.7e-211) t_3 (if (<= x 3.1e+143) 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 = a * (x * -t);
double t_2 = z * (b * -c);
double t_3 = a * (c * j);
double tmp;
if (x <= -1.16e+223) {
tmp = y * (x * z);
} else if (x <= -3.05e-52) {
tmp = t_1;
} else if (x <= -4.6e-238) {
tmp = t_3;
} else if (x <= -4.8e-269) {
tmp = b * (t * i);
} else if (x <= 5.5e-304) {
tmp = t_2;
} else if (x <= 6.2e-251) {
tmp = t * (b * i);
} else if (x <= 2.7e-211) {
tmp = t_3;
} else if (x <= 3.1e+143) {
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 = a * (x * -t)
t_2 = z * (b * -c)
t_3 = a * (c * j)
if (x <= (-1.16d+223)) then
tmp = y * (x * z)
else if (x <= (-3.05d-52)) then
tmp = t_1
else if (x <= (-4.6d-238)) then
tmp = t_3
else if (x <= (-4.8d-269)) then
tmp = b * (t * i)
else if (x <= 5.5d-304) then
tmp = t_2
else if (x <= 6.2d-251) then
tmp = t * (b * i)
else if (x <= 2.7d-211) then
tmp = t_3
else if (x <= 3.1d+143) 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 = a * (x * -t);
double t_2 = z * (b * -c);
double t_3 = a * (c * j);
double tmp;
if (x <= -1.16e+223) {
tmp = y * (x * z);
} else if (x <= -3.05e-52) {
tmp = t_1;
} else if (x <= -4.6e-238) {
tmp = t_3;
} else if (x <= -4.8e-269) {
tmp = b * (t * i);
} else if (x <= 5.5e-304) {
tmp = t_2;
} else if (x <= 6.2e-251) {
tmp = t * (b * i);
} else if (x <= 2.7e-211) {
tmp = t_3;
} else if (x <= 3.1e+143) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) t_2 = z * (b * -c) t_3 = a * (c * j) tmp = 0 if x <= -1.16e+223: tmp = y * (x * z) elif x <= -3.05e-52: tmp = t_1 elif x <= -4.6e-238: tmp = t_3 elif x <= -4.8e-269: tmp = b * (t * i) elif x <= 5.5e-304: tmp = t_2 elif x <= 6.2e-251: tmp = t * (b * i) elif x <= 2.7e-211: tmp = t_3 elif x <= 3.1e+143: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) t_2 = Float64(z * Float64(b * Float64(-c))) t_3 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -1.16e+223) tmp = Float64(y * Float64(x * z)); elseif (x <= -3.05e-52) tmp = t_1; elseif (x <= -4.6e-238) tmp = t_3; elseif (x <= -4.8e-269) tmp = Float64(b * Float64(t * i)); elseif (x <= 5.5e-304) tmp = t_2; elseif (x <= 6.2e-251) tmp = Float64(t * Float64(b * i)); elseif (x <= 2.7e-211) tmp = t_3; elseif (x <= 3.1e+143) 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 = a * (x * -t); t_2 = z * (b * -c); t_3 = a * (c * j); tmp = 0.0; if (x <= -1.16e+223) tmp = y * (x * z); elseif (x <= -3.05e-52) tmp = t_1; elseif (x <= -4.6e-238) tmp = t_3; elseif (x <= -4.8e-269) tmp = b * (t * i); elseif (x <= 5.5e-304) tmp = t_2; elseif (x <= 6.2e-251) tmp = t * (b * i); elseif (x <= 2.7e-211) tmp = t_3; elseif (x <= 3.1e+143) 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[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.16e+223], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.05e-52], t$95$1, If[LessEqual[x, -4.6e-238], t$95$3, If[LessEqual[x, -4.8e-269], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e-304], t$95$2, If[LessEqual[x, 6.2e-251], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e-211], t$95$3, If[LessEqual[x, 3.1e+143], t$95$2, t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
t_3 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -1.16 \cdot 10^{+223}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -3.05 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.6 \cdot 10^{-238}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-304}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-251}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-211}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+143}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.15999999999999993e223Initial program 64.2%
Taylor expanded in y around inf 79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in z around inf 72.5%
if -1.15999999999999993e223 < x < -3.04999999999999995e-52 or 3.0999999999999999e143 < x Initial program 72.2%
Taylor expanded in a around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in j around 0 42.2%
associate-*r*42.2%
neg-mul-142.2%
Simplified42.2%
if -3.04999999999999995e-52 < x < -4.60000000000000009e-238 or 6.20000000000000006e-251 < x < 2.6999999999999999e-211Initial program 79.6%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in j around inf 47.8%
if -4.60000000000000009e-238 < x < -4.8000000000000002e-269Initial program 66.4%
Taylor expanded in j around 0 66.4%
Taylor expanded in i around inf 99.7%
if -4.8000000000000002e-269 < x < 5.50000000000000035e-304 or 2.6999999999999999e-211 < x < 3.0999999999999999e143Initial program 74.3%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around 0 42.4%
mul-1-neg42.4%
*-commutative42.4%
distribute-rgt-neg-in42.4%
Simplified42.4%
if 5.50000000000000035e-304 < x < 6.20000000000000006e-251Initial program 86.0%
Taylor expanded in j around 0 62.7%
Taylor expanded in i around inf 58.4%
associate-*r*71.7%
Simplified71.7%
Final simplification47.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= x -4.45e+223)
(* y (* x z))
(if (<= x -9.8e-54)
(* a (* x (- t)))
(if (<= x -2.4e-237)
t_1
(if (<= x -2.5e-267)
(* b (* t i))
(if (<= x 9e-305)
(* z (* b (- c)))
(if (<= x 1.45e-249)
(* t (* b i))
(if (<= x 2.7e-209)
t_1
(if (<= x 1.25e+210) (* b (* z (- c))) (* 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 = a * (c * j);
double tmp;
if (x <= -4.45e+223) {
tmp = y * (x * z);
} else if (x <= -9.8e-54) {
tmp = a * (x * -t);
} else if (x <= -2.4e-237) {
tmp = t_1;
} else if (x <= -2.5e-267) {
tmp = b * (t * i);
} else if (x <= 9e-305) {
tmp = z * (b * -c);
} else if (x <= 1.45e-249) {
tmp = t * (b * i);
} else if (x <= 2.7e-209) {
tmp = t_1;
} else if (x <= 1.25e+210) {
tmp = b * (z * -c);
} 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 = a * (c * j)
if (x <= (-4.45d+223)) then
tmp = y * (x * z)
else if (x <= (-9.8d-54)) then
tmp = a * (x * -t)
else if (x <= (-2.4d-237)) then
tmp = t_1
else if (x <= (-2.5d-267)) then
tmp = b * (t * i)
else if (x <= 9d-305) then
tmp = z * (b * -c)
else if (x <= 1.45d-249) then
tmp = t * (b * i)
else if (x <= 2.7d-209) then
tmp = t_1
else if (x <= 1.25d+210) then
tmp = b * (z * -c)
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 = a * (c * j);
double tmp;
if (x <= -4.45e+223) {
tmp = y * (x * z);
} else if (x <= -9.8e-54) {
tmp = a * (x * -t);
} else if (x <= -2.4e-237) {
tmp = t_1;
} else if (x <= -2.5e-267) {
tmp = b * (t * i);
} else if (x <= 9e-305) {
tmp = z * (b * -c);
} else if (x <= 1.45e-249) {
tmp = t * (b * i);
} else if (x <= 2.7e-209) {
tmp = t_1;
} else if (x <= 1.25e+210) {
tmp = b * (z * -c);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if x <= -4.45e+223: tmp = y * (x * z) elif x <= -9.8e-54: tmp = a * (x * -t) elif x <= -2.4e-237: tmp = t_1 elif x <= -2.5e-267: tmp = b * (t * i) elif x <= 9e-305: tmp = z * (b * -c) elif x <= 1.45e-249: tmp = t * (b * i) elif x <= 2.7e-209: tmp = t_1 elif x <= 1.25e+210: tmp = b * (z * -c) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -4.45e+223) tmp = Float64(y * Float64(x * z)); elseif (x <= -9.8e-54) tmp = Float64(a * Float64(x * Float64(-t))); elseif (x <= -2.4e-237) tmp = t_1; elseif (x <= -2.5e-267) tmp = Float64(b * Float64(t * i)); elseif (x <= 9e-305) tmp = Float64(z * Float64(b * Float64(-c))); elseif (x <= 1.45e-249) tmp = Float64(t * Float64(b * i)); elseif (x <= 2.7e-209) tmp = t_1; elseif (x <= 1.25e+210) tmp = Float64(b * Float64(z * Float64(-c))); 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 = a * (c * j); tmp = 0.0; if (x <= -4.45e+223) tmp = y * (x * z); elseif (x <= -9.8e-54) tmp = a * (x * -t); elseif (x <= -2.4e-237) tmp = t_1; elseif (x <= -2.5e-267) tmp = b * (t * i); elseif (x <= 9e-305) tmp = z * (b * -c); elseif (x <= 1.45e-249) tmp = t * (b * i); elseif (x <= 2.7e-209) tmp = t_1; elseif (x <= 1.25e+210) tmp = b * (z * -c); 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[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.45e+223], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.8e-54], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.4e-237], t$95$1, If[LessEqual[x, -2.5e-267], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e-305], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e-249], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e-209], t$95$1, If[LessEqual[x, 1.25e+210], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -4.45 \cdot 10^{+223}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -9.8 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-267}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-305}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-249}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+210}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -4.4499999999999999e223Initial program 64.2%
Taylor expanded in y around inf 79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in z around inf 72.5%
if -4.4499999999999999e223 < x < -9.80000000000000042e-54Initial program 74.6%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in j around 0 41.3%
associate-*r*41.3%
neg-mul-141.3%
Simplified41.3%
if -9.80000000000000042e-54 < x < -2.4e-237 or 1.45000000000000011e-249 < x < 2.69999999999999998e-209Initial program 79.6%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in j around inf 47.8%
if -2.4e-237 < x < -2.5e-267Initial program 66.4%
Taylor expanded in j around 0 66.4%
Taylor expanded in i around inf 99.7%
if -2.5e-267 < x < 9.0000000000000003e-305Initial program 75.4%
Taylor expanded in z around inf 51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in y around 0 51.4%
mul-1-neg51.4%
*-commutative51.4%
distribute-rgt-neg-in51.4%
Simplified51.4%
if 9.0000000000000003e-305 < x < 1.45000000000000011e-249Initial program 86.0%
Taylor expanded in j around 0 62.7%
Taylor expanded in i around inf 58.4%
associate-*r*71.7%
Simplified71.7%
if 2.69999999999999998e-209 < x < 1.2499999999999999e210Initial program 75.2%
Taylor expanded in j around 0 67.5%
Taylor expanded in c around inf 40.7%
associate-*r*40.7%
neg-mul-140.7%
Simplified40.7%
if 1.2499999999999999e210 < x Initial program 63.2%
Taylor expanded in x around inf 71.0%
Taylor expanded in y around inf 45.5%
*-commutative45.5%
Simplified45.5%
Final simplification48.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* x (- a)))) (t_2 (* z (* b (- c)))) (t_3 (* a (* c j))))
(if (<= x -1.28e+222)
(* y (* x z))
(if (<= x -5.5e-53)
t_1
(if (<= x -2.45e-237)
t_3
(if (<= x -4.2e-268)
(* b (* t i))
(if (<= x 5.8e-307)
t_2
(if (<= x 3.6e-250)
(* t (* b i))
(if (<= x 7.4e-208) t_3 (if (<= x 2.9e+143) 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 = t * (x * -a);
double t_2 = z * (b * -c);
double t_3 = a * (c * j);
double tmp;
if (x <= -1.28e+222) {
tmp = y * (x * z);
} else if (x <= -5.5e-53) {
tmp = t_1;
} else if (x <= -2.45e-237) {
tmp = t_3;
} else if (x <= -4.2e-268) {
tmp = b * (t * i);
} else if (x <= 5.8e-307) {
tmp = t_2;
} else if (x <= 3.6e-250) {
tmp = t * (b * i);
} else if (x <= 7.4e-208) {
tmp = t_3;
} else if (x <= 2.9e+143) {
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 = t * (x * -a)
t_2 = z * (b * -c)
t_3 = a * (c * j)
if (x <= (-1.28d+222)) then
tmp = y * (x * z)
else if (x <= (-5.5d-53)) then
tmp = t_1
else if (x <= (-2.45d-237)) then
tmp = t_3
else if (x <= (-4.2d-268)) then
tmp = b * (t * i)
else if (x <= 5.8d-307) then
tmp = t_2
else if (x <= 3.6d-250) then
tmp = t * (b * i)
else if (x <= 7.4d-208) then
tmp = t_3
else if (x <= 2.9d+143) 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 = t * (x * -a);
double t_2 = z * (b * -c);
double t_3 = a * (c * j);
double tmp;
if (x <= -1.28e+222) {
tmp = y * (x * z);
} else if (x <= -5.5e-53) {
tmp = t_1;
} else if (x <= -2.45e-237) {
tmp = t_3;
} else if (x <= -4.2e-268) {
tmp = b * (t * i);
} else if (x <= 5.8e-307) {
tmp = t_2;
} else if (x <= 3.6e-250) {
tmp = t * (b * i);
} else if (x <= 7.4e-208) {
tmp = t_3;
} else if (x <= 2.9e+143) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (x * -a) t_2 = z * (b * -c) t_3 = a * (c * j) tmp = 0 if x <= -1.28e+222: tmp = y * (x * z) elif x <= -5.5e-53: tmp = t_1 elif x <= -2.45e-237: tmp = t_3 elif x <= -4.2e-268: tmp = b * (t * i) elif x <= 5.8e-307: tmp = t_2 elif x <= 3.6e-250: tmp = t * (b * i) elif x <= 7.4e-208: tmp = t_3 elif x <= 2.9e+143: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(x * Float64(-a))) t_2 = Float64(z * Float64(b * Float64(-c))) t_3 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -1.28e+222) tmp = Float64(y * Float64(x * z)); elseif (x <= -5.5e-53) tmp = t_1; elseif (x <= -2.45e-237) tmp = t_3; elseif (x <= -4.2e-268) tmp = Float64(b * Float64(t * i)); elseif (x <= 5.8e-307) tmp = t_2; elseif (x <= 3.6e-250) tmp = Float64(t * Float64(b * i)); elseif (x <= 7.4e-208) tmp = t_3; elseif (x <= 2.9e+143) 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 = t * (x * -a); t_2 = z * (b * -c); t_3 = a * (c * j); tmp = 0.0; if (x <= -1.28e+222) tmp = y * (x * z); elseif (x <= -5.5e-53) tmp = t_1; elseif (x <= -2.45e-237) tmp = t_3; elseif (x <= -4.2e-268) tmp = b * (t * i); elseif (x <= 5.8e-307) tmp = t_2; elseif (x <= 3.6e-250) tmp = t * (b * i); elseif (x <= 7.4e-208) tmp = t_3; elseif (x <= 2.9e+143) 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[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.28e+222], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.5e-53], t$95$1, If[LessEqual[x, -2.45e-237], t$95$3, If[LessEqual[x, -4.2e-268], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e-307], t$95$2, If[LessEqual[x, 3.6e-250], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e-208], t$95$3, If[LessEqual[x, 2.9e+143], t$95$2, t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-a\right)\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
t_3 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -1.28 \cdot 10^{+222}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.45 \cdot 10^{-237}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-268}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-307}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-250}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-208}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+143}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.28e222Initial program 64.2%
Taylor expanded in y around inf 79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in z around inf 72.5%
if -1.28e222 < x < -5.50000000000000023e-53 or 2.8999999999999998e143 < x Initial program 72.2%
Taylor expanded in a around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in j around 0 42.2%
associate-*r*42.2%
neg-mul-142.2%
Simplified42.2%
Taylor expanded in a around 0 42.2%
mul-1-neg42.2%
*-commutative42.2%
associate-*r*45.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -5.50000000000000023e-53 < x < -2.45e-237 or 3.59999999999999982e-250 < x < 7.4000000000000004e-208Initial program 79.6%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in j around inf 47.8%
if -2.45e-237 < x < -4.19999999999999996e-268Initial program 66.4%
Taylor expanded in j around 0 66.4%
Taylor expanded in i around inf 99.7%
if -4.19999999999999996e-268 < x < 5.8000000000000001e-307 or 7.4000000000000004e-208 < x < 2.8999999999999998e143Initial program 74.3%
Taylor expanded in z around inf 50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in y around 0 42.4%
mul-1-neg42.4%
*-commutative42.4%
distribute-rgt-neg-in42.4%
Simplified42.4%
if 5.8000000000000001e-307 < x < 3.59999999999999982e-250Initial program 86.0%
Taylor expanded in j around 0 62.7%
Taylor expanded in i around inf 58.4%
associate-*r*71.7%
Simplified71.7%
Final simplification48.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (* t i)) (* j (- (* y i) (* a c)))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= j -2e+181)
(* j (- (* a c) (* y i)))
(if (<= j -9.2e+172)
(* x (* a (- (* y (/ z a)) t)))
(if (<= j -4.9e+26)
t_1
(if (<= j -7.6e-256)
t_2
(if (<= j 6.4e-102)
(* t (- (* b i) (* x a)))
(if (<= j 2.8e+21) 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 = (b * (t * i)) - (j * ((y * i) - (a * c)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (j <= -2e+181) {
tmp = j * ((a * c) - (y * i));
} else if (j <= -9.2e+172) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (j <= -4.9e+26) {
tmp = t_1;
} else if (j <= -7.6e-256) {
tmp = t_2;
} else if (j <= 6.4e-102) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 2.8e+21) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * (t * i)) - (j * ((y * i) - (a * c)))
t_2 = z * ((x * y) - (b * c))
if (j <= (-2d+181)) then
tmp = j * ((a * c) - (y * i))
else if (j <= (-9.2d+172)) then
tmp = x * (a * ((y * (z / a)) - t))
else if (j <= (-4.9d+26)) then
tmp = t_1
else if (j <= (-7.6d-256)) then
tmp = t_2
else if (j <= 6.4d-102) then
tmp = t * ((b * i) - (x * a))
else if (j <= 2.8d+21) 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 = (b * (t * i)) - (j * ((y * i) - (a * c)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (j <= -2e+181) {
tmp = j * ((a * c) - (y * i));
} else if (j <= -9.2e+172) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (j <= -4.9e+26) {
tmp = t_1;
} else if (j <= -7.6e-256) {
tmp = t_2;
} else if (j <= 6.4e-102) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 2.8e+21) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * (t * i)) - (j * ((y * i) - (a * c))) t_2 = z * ((x * y) - (b * c)) tmp = 0 if j <= -2e+181: tmp = j * ((a * c) - (y * i)) elif j <= -9.2e+172: tmp = x * (a * ((y * (z / a)) - t)) elif j <= -4.9e+26: tmp = t_1 elif j <= -7.6e-256: tmp = t_2 elif j <= 6.4e-102: tmp = t * ((b * i) - (x * a)) elif j <= 2.8e+21: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (j <= -2e+181) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (j <= -9.2e+172) tmp = Float64(x * Float64(a * Float64(Float64(y * Float64(z / a)) - t))); elseif (j <= -4.9e+26) tmp = t_1; elseif (j <= -7.6e-256) tmp = t_2; elseif (j <= 6.4e-102) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 2.8e+21) 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 = (b * (t * i)) - (j * ((y * i) - (a * c))); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (j <= -2e+181) tmp = j * ((a * c) - (y * i)); elseif (j <= -9.2e+172) tmp = x * (a * ((y * (z / a)) - t)); elseif (j <= -4.9e+26) tmp = t_1; elseif (j <= -7.6e-256) tmp = t_2; elseif (j <= 6.4e-102) tmp = t * ((b * i) - (x * a)); elseif (j <= 2.8e+21) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2e+181], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -9.2e+172], N[(x * N[(a * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.9e+26], t$95$1, If[LessEqual[j, -7.6e-256], t$95$2, If[LessEqual[j, 6.4e-102], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+21], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;j \leq -2 \cdot 10^{+181}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq -9.2 \cdot 10^{+172}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\\
\mathbf{elif}\;j \leq -4.9 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -7.6 \cdot 10^{-256}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 6.4 \cdot 10^{-102}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+21}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.9999999999999998e181Initial program 72.4%
Taylor expanded in j around inf 84.1%
if -1.9999999999999998e181 < j < -9.2000000000000003e172Initial program 60.0%
Taylor expanded in x around inf 81.0%
Taylor expanded in a around inf 100.0%
associate-/l*100.0%
Simplified100.0%
if -9.2000000000000003e172 < j < -4.89999999999999974e26 or 2.8e21 < j Initial program 74.4%
Taylor expanded in i around inf 69.5%
if -4.89999999999999974e26 < j < -7.59999999999999953e-256 or 6.39999999999999973e-102 < j < 2.8e21Initial program 77.0%
Taylor expanded in z around inf 62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
if -7.59999999999999953e-256 < j < 6.39999999999999973e-102Initial program 72.9%
Taylor expanded in t around -inf 61.0%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -3.8e+76)
t_2
(if (<= a -4.8e+25)
t_1
(if (<= a -1.1e-10)
t_2
(if (<= a -1.35e-137)
(* b (- (* t i) (* z c)))
(if (<= a 1.3e-193)
t_1
(if (<= a 2.05e+17)
(* i (- (* t b) (* y j)))
(if (<= a 4e+44) 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.8e+76) {
tmp = t_2;
} else if (a <= -4.8e+25) {
tmp = t_1;
} else if (a <= -1.1e-10) {
tmp = t_2;
} else if (a <= -1.35e-137) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.3e-193) {
tmp = t_1;
} else if (a <= 2.05e+17) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 4e+44) {
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 = a * ((c * j) - (x * t))
if (a <= (-3.8d+76)) then
tmp = t_2
else if (a <= (-4.8d+25)) then
tmp = t_1
else if (a <= (-1.1d-10)) then
tmp = t_2
else if (a <= (-1.35d-137)) then
tmp = b * ((t * i) - (z * c))
else if (a <= 1.3d-193) then
tmp = t_1
else if (a <= 2.05d+17) then
tmp = i * ((t * b) - (y * j))
else if (a <= 4d+44) 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.8e+76) {
tmp = t_2;
} else if (a <= -4.8e+25) {
tmp = t_1;
} else if (a <= -1.1e-10) {
tmp = t_2;
} else if (a <= -1.35e-137) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.3e-193) {
tmp = t_1;
} else if (a <= 2.05e+17) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 4e+44) {
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 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.8e+76: tmp = t_2 elif a <= -4.8e+25: tmp = t_1 elif a <= -1.1e-10: tmp = t_2 elif a <= -1.35e-137: tmp = b * ((t * i) - (z * c)) elif a <= 1.3e-193: tmp = t_1 elif a <= 2.05e+17: tmp = i * ((t * b) - (y * j)) elif a <= 4e+44: 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(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.8e+76) tmp = t_2; elseif (a <= -4.8e+25) tmp = t_1; elseif (a <= -1.1e-10) tmp = t_2; elseif (a <= -1.35e-137) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 1.3e-193) tmp = t_1; elseif (a <= 2.05e+17) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (a <= 4e+44) 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 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.8e+76) tmp = t_2; elseif (a <= -4.8e+25) tmp = t_1; elseif (a <= -1.1e-10) tmp = t_2; elseif (a <= -1.35e-137) tmp = b * ((t * i) - (z * c)); elseif (a <= 1.3e-193) tmp = t_1; elseif (a <= 2.05e+17) tmp = i * ((t * b) - (y * j)); elseif (a <= 4e+44) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.8e+76], t$95$2, If[LessEqual[a, -4.8e+25], t$95$1, If[LessEqual[a, -1.1e-10], t$95$2, If[LessEqual[a, -1.35e-137], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e-193], t$95$1, If[LessEqual[a, 2.05e+17], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+44], 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 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+76}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-10}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.35 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-193}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+17}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.80000000000000024e76 or -4.79999999999999992e25 < a < -1.09999999999999995e-10 or 4.0000000000000004e44 < a Initial program 66.5%
Taylor expanded in a around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
Simplified70.4%
if -3.80000000000000024e76 < a < -4.79999999999999992e25 or -1.34999999999999996e-137 < a < 1.30000000000000004e-193 or 2.05e17 < a < 4.0000000000000004e44Initial program 77.1%
Taylor expanded in z around inf 69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
if -1.09999999999999995e-10 < a < -1.34999999999999996e-137Initial program 96.2%
Taylor expanded in b around inf 60.6%
if 1.30000000000000004e-193 < a < 2.05e17Initial program 80.7%
Taylor expanded in i around inf 52.6%
Taylor expanded in i around inf 65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Final simplification68.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (+ t_2 (* b (- (* t i) (* z c))))))
(if (<= j -3.7e+181)
(* b (+ (* t i) (/ t_1 b)))
(if (<= j -3.8e+145)
t_3
(if (<= j -3.2e+26)
(+ t_1 t_2)
(if (<= j 3.4e-27) t_3 (- t_1 (* b (* z c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -3.7e+181) {
tmp = b * ((t * i) + (t_1 / b));
} else if (j <= -3.8e+145) {
tmp = t_3;
} else if (j <= -3.2e+26) {
tmp = t_1 + t_2;
} else if (j <= 3.4e-27) {
tmp = t_3;
} else {
tmp = t_1 - (b * (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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = t_2 + (b * ((t * i) - (z * c)))
if (j <= (-3.7d+181)) then
tmp = b * ((t * i) + (t_1 / b))
else if (j <= (-3.8d+145)) then
tmp = t_3
else if (j <= (-3.2d+26)) then
tmp = t_1 + t_2
else if (j <= 3.4d-27) then
tmp = t_3
else
tmp = t_1 - (b * (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 t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = t_2 + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -3.7e+181) {
tmp = b * ((t * i) + (t_1 / b));
} else if (j <= -3.8e+145) {
tmp = t_3;
} else if (j <= -3.2e+26) {
tmp = t_1 + t_2;
} else if (j <= 3.4e-27) {
tmp = t_3;
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = t_2 + (b * ((t * i) - (z * c))) tmp = 0 if j <= -3.7e+181: tmp = b * ((t * i) + (t_1 / b)) elif j <= -3.8e+145: tmp = t_3 elif j <= -3.2e+26: tmp = t_1 + t_2 elif j <= 3.4e-27: tmp = t_3 else: tmp = t_1 - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(t_2 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (j <= -3.7e+181) tmp = Float64(b * Float64(Float64(t * i) + Float64(t_1 / b))); elseif (j <= -3.8e+145) tmp = t_3; elseif (j <= -3.2e+26) tmp = Float64(t_1 + t_2); elseif (j <= 3.4e-27) tmp = t_3; else tmp = Float64(t_1 - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); t_3 = t_2 + (b * ((t * i) - (z * c))); tmp = 0.0; if (j <= -3.7e+181) tmp = b * ((t * i) + (t_1 / b)); elseif (j <= -3.8e+145) tmp = t_3; elseif (j <= -3.2e+26) tmp = t_1 + t_2; elseif (j <= 3.4e-27) tmp = t_3; else tmp = t_1 - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * 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[(t$95$2 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.7e+181], N[(b * N[(N[(t * i), $MachinePrecision] + N[(t$95$1 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.8e+145], t$95$3, If[LessEqual[j, -3.2e+26], N[(t$95$1 + t$95$2), $MachinePrecision], If[LessEqual[j, 3.4e-27], t$95$3, N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t\_2 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -3.7 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(t \cdot i + \frac{t\_1}{b}\right)\\
\mathbf{elif}\;j \leq -3.8 \cdot 10^{+145}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{+26}:\\
\;\;\;\;t\_1 + t\_2\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{-27}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -3.7000000000000004e181Initial program 72.4%
Taylor expanded in i around inf 80.3%
Taylor expanded in b around inf 90.2%
if -3.7000000000000004e181 < j < -3.80000000000000012e145 or -3.20000000000000029e26 < j < 3.3999999999999997e-27Initial program 75.0%
Taylor expanded in j around 0 76.4%
if -3.80000000000000012e145 < j < -3.20000000000000029e26Initial program 78.2%
Taylor expanded in b around 0 78.2%
if 3.3999999999999997e-27 < j Initial program 72.7%
Taylor expanded in c around inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
Simplified72.6%
Final simplification77.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* x (* y z))))
(if (<= j -1.32e+27)
(* b (+ (* t i) (/ t_1 b)))
(if (<= j -5e-256)
(+ t_2 (* b (- (* t i) (* z c))))
(if (<= j -2.6e-302)
(* t (- (* b i) (* x a)))
(if (<= j 2.8e-27)
(+ t_2 (* b (* i (- t (/ (* z c) i)))))
(- t_1 (* b (* z c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * (y * z);
double tmp;
if (j <= -1.32e+27) {
tmp = b * ((t * i) + (t_1 / b));
} else if (j <= -5e-256) {
tmp = t_2 + (b * ((t * i) - (z * c)));
} else if (j <= -2.6e-302) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 2.8e-27) {
tmp = t_2 + (b * (i * (t - ((z * c) / i))));
} else {
tmp = t_1 - (b * (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = x * (y * z)
if (j <= (-1.32d+27)) then
tmp = b * ((t * i) + (t_1 / b))
else if (j <= (-5d-256)) then
tmp = t_2 + (b * ((t * i) - (z * c)))
else if (j <= (-2.6d-302)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 2.8d-27) then
tmp = t_2 + (b * (i * (t - ((z * c) / i))))
else
tmp = t_1 - (b * (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 t_1 = j * ((a * c) - (y * i));
double t_2 = x * (y * z);
double tmp;
if (j <= -1.32e+27) {
tmp = b * ((t * i) + (t_1 / b));
} else if (j <= -5e-256) {
tmp = t_2 + (b * ((t * i) - (z * c)));
} else if (j <= -2.6e-302) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 2.8e-27) {
tmp = t_2 + (b * (i * (t - ((z * c) / i))));
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = x * (y * z) tmp = 0 if j <= -1.32e+27: tmp = b * ((t * i) + (t_1 / b)) elif j <= -5e-256: tmp = t_2 + (b * ((t * i) - (z * c))) elif j <= -2.6e-302: tmp = t * ((b * i) - (x * a)) elif j <= 2.8e-27: tmp = t_2 + (b * (i * (t - ((z * c) / i)))) else: tmp = t_1 - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (j <= -1.32e+27) tmp = Float64(b * Float64(Float64(t * i) + Float64(t_1 / b))); elseif (j <= -5e-256) tmp = Float64(t_2 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= -2.6e-302) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 2.8e-27) tmp = Float64(t_2 + Float64(b * Float64(i * Float64(t - Float64(Float64(z * c) / i))))); else tmp = Float64(t_1 - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = x * (y * z); tmp = 0.0; if (j <= -1.32e+27) tmp = b * ((t * i) + (t_1 / b)); elseif (j <= -5e-256) tmp = t_2 + (b * ((t * i) - (z * c))); elseif (j <= -2.6e-302) tmp = t * ((b * i) - (x * a)); elseif (j <= 2.8e-27) tmp = t_2 + (b * (i * (t - ((z * c) / i)))); else tmp = t_1 - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.32e+27], N[(b * N[(N[(t * i), $MachinePrecision] + N[(t$95$1 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5e-256], N[(t$95$2 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.6e-302], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-27], N[(t$95$2 + N[(b * N[(i * N[(t - N[(N[(z * c), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;j \leq -1.32 \cdot 10^{+27}:\\
\;\;\;\;b \cdot \left(t \cdot i + \frac{t\_1}{b}\right)\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-256}:\\
\;\;\;\;t\_2 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq -2.6 \cdot 10^{-302}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-27}:\\
\;\;\;\;t\_2 + b \cdot \left(i \cdot \left(t - \frac{z \cdot c}{i}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.31999999999999997e27Initial program 76.1%
Taylor expanded in i around inf 68.9%
Taylor expanded in b around inf 73.5%
if -1.31999999999999997e27 < j < -5e-256Initial program 76.0%
Taylor expanded in j around 0 76.3%
Taylor expanded in y around inf 69.7%
*-commutative31.8%
Simplified69.7%
if -5e-256 < j < -2.60000000000000011e-302Initial program 70.5%
Taylor expanded in t around -inf 81.0%
if -2.60000000000000011e-302 < j < 2.8e-27Initial program 73.5%
Taylor expanded in j around 0 77.9%
Taylor expanded in y around inf 66.5%
*-commutative23.2%
Simplified66.5%
Taylor expanded in i around inf 66.6%
if 2.8e-27 < j Initial program 72.7%
Taylor expanded in c around inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
Simplified72.6%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* a (* c j))))
(if (<= j -5.6e+63)
t_2
(if (<= j -2.35e-52)
t_1
(if (<= j -6.5e-257)
(* y (* x z))
(if (<= j 3.8e-256)
t_1
(if (<= j 4.1e-128) (* b (* t i)) (if (<= j 1.5e+27) 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 * b) * -c;
double t_2 = a * (c * j);
double tmp;
if (j <= -5.6e+63) {
tmp = t_2;
} else if (j <= -2.35e-52) {
tmp = t_1;
} else if (j <= -6.5e-257) {
tmp = y * (x * z);
} else if (j <= 3.8e-256) {
tmp = t_1;
} else if (j <= 4.1e-128) {
tmp = b * (t * i);
} else if (j <= 1.5e+27) {
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 * b) * -c
t_2 = a * (c * j)
if (j <= (-5.6d+63)) then
tmp = t_2
else if (j <= (-2.35d-52)) then
tmp = t_1
else if (j <= (-6.5d-257)) then
tmp = y * (x * z)
else if (j <= 3.8d-256) then
tmp = t_1
else if (j <= 4.1d-128) then
tmp = b * (t * i)
else if (j <= 1.5d+27) 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 * b) * -c;
double t_2 = a * (c * j);
double tmp;
if (j <= -5.6e+63) {
tmp = t_2;
} else if (j <= -2.35e-52) {
tmp = t_1;
} else if (j <= -6.5e-257) {
tmp = y * (x * z);
} else if (j <= 3.8e-256) {
tmp = t_1;
} else if (j <= 4.1e-128) {
tmp = b * (t * i);
} else if (j <= 1.5e+27) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = a * (c * j) tmp = 0 if j <= -5.6e+63: tmp = t_2 elif j <= -2.35e-52: tmp = t_1 elif j <= -6.5e-257: tmp = y * (x * z) elif j <= 3.8e-256: tmp = t_1 elif j <= 4.1e-128: tmp = b * (t * i) elif j <= 1.5e+27: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -5.6e+63) tmp = t_2; elseif (j <= -2.35e-52) tmp = t_1; elseif (j <= -6.5e-257) tmp = Float64(y * Float64(x * z)); elseif (j <= 3.8e-256) tmp = t_1; elseif (j <= 4.1e-128) tmp = Float64(b * Float64(t * i)); elseif (j <= 1.5e+27) 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 * b) * -c; t_2 = a * (c * j); tmp = 0.0; if (j <= -5.6e+63) tmp = t_2; elseif (j <= -2.35e-52) tmp = t_1; elseif (j <= -6.5e-257) tmp = y * (x * z); elseif (j <= 3.8e-256) tmp = t_1; elseif (j <= 4.1e-128) tmp = b * (t * i); elseif (j <= 1.5e+27) 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[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.6e+63], t$95$2, If[LessEqual[j, -2.35e-52], t$95$1, If[LessEqual[j, -6.5e-257], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.8e-256], t$95$1, If[LessEqual[j, 4.1e-128], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.5e+27], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -5.6 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.35 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-257}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-256}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.1 \cdot 10^{-128}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -5.59999999999999974e63 or 1.49999999999999988e27 < j Initial program 72.4%
Taylor expanded in a around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in j around inf 44.5%
if -5.59999999999999974e63 < j < -2.3499999999999999e-52 or -6.5000000000000002e-257 < j < 3.79999999999999977e-256 or 4.1e-128 < j < 1.49999999999999988e27Initial program 75.9%
Taylor expanded in j around 0 71.8%
Taylor expanded in c around inf 40.8%
associate-*r*40.8%
neg-mul-140.8%
Simplified40.8%
Taylor expanded in b around 0 40.8%
neg-mul-140.8%
distribute-lft-neg-in40.8%
*-commutative40.8%
associate-*l*40.9%
Simplified40.9%
if -2.3499999999999999e-52 < j < -6.5000000000000002e-257Initial program 77.3%
Taylor expanded in y around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
*-commutative45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in z around inf 41.0%
if 3.79999999999999977e-256 < j < 4.1e-128Initial program 74.2%
Taylor expanded in j around 0 74.3%
Taylor expanded in i around inf 40.7%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (* y z)) (* b (- (* t i) (* z c))))))
(if (<= j -7.6e+26)
(- (* b (* t i)) (* j (- (* y i) (* a c))))
(if (<= j -6.6e-256)
t_1
(if (<= j -1.55e-301)
(* t (- (* b i) (* x a)))
(if (<= j 3.4e-27)
t_1
(- (* j (- (* a c) (* y i))) (* b (* z c)))))))))
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)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -7.6e+26) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else if (j <= -6.6e-256) {
tmp = t_1;
} else if (j <= -1.55e-301) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 3.4e-27) {
tmp = t_1;
} else {
tmp = (j * ((a * c) - (y * i))) - (b * (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) :: t_1
real(8) :: tmp
t_1 = (x * (y * z)) + (b * ((t * i) - (z * c)))
if (j <= (-7.6d+26)) then
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)))
else if (j <= (-6.6d-256)) then
tmp = t_1
else if (j <= (-1.55d-301)) then
tmp = t * ((b * i) - (x * a))
else if (j <= 3.4d-27) then
tmp = t_1
else
tmp = (j * ((a * c) - (y * i))) - (b * (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 t_1 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -7.6e+26) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else if (j <= -6.6e-256) {
tmp = t_1;
} else if (j <= -1.55e-301) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 3.4e-27) {
tmp = t_1;
} else {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * (y * z)) + (b * ((t * i) - (z * c))) tmp = 0 if j <= -7.6e+26: tmp = (b * (t * i)) - (j * ((y * i) - (a * c))) elif j <= -6.6e-256: tmp = t_1 elif j <= -1.55e-301: tmp = t * ((b * i) - (x * a)) elif j <= 3.4e-27: tmp = t_1 else: tmp = (j * ((a * c) - (y * i))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (j <= -7.6e+26) tmp = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (j <= -6.6e-256) tmp = t_1; elseif (j <= -1.55e-301) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 3.4e-27) tmp = t_1; else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * (y * z)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (j <= -7.6e+26) tmp = (b * (t * i)) - (j * ((y * i) - (a * c))); elseif (j <= -6.6e-256) tmp = t_1; elseif (j <= -1.55e-301) tmp = t * ((b * i) - (x * a)); elseif (j <= 3.4e-27) tmp = t_1; else tmp = (j * ((a * c) - (y * i))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7.6e+26], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.6e-256], t$95$1, If[LessEqual[j, -1.55e-301], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.4e-27], t$95$1, N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -7.6 \cdot 10^{+26}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;j \leq -6.6 \cdot 10^{-256}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.55 \cdot 10^{-301}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -7.6000000000000004e26Initial program 76.1%
Taylor expanded in i around inf 68.9%
if -7.6000000000000004e26 < j < -6.6e-256 or -1.55000000000000007e-301 < j < 3.3999999999999997e-27Initial program 74.7%
Taylor expanded in j around 0 77.1%
Taylor expanded in y around inf 68.1%
*-commutative27.4%
Simplified68.1%
if -6.6e-256 < j < -1.55000000000000007e-301Initial program 70.5%
Taylor expanded in t around -inf 81.0%
if 3.3999999999999997e-27 < j Initial program 72.7%
Taylor expanded in c around inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
Simplified72.6%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.65e+181)
(* b (* (- (* (/ c b) (/ a y)) (/ i b)) (* y j)))
(if (<= j -1.32e+174)
(* x (* a (- (* y (/ z a)) t)))
(if (<= j -5.1e+26)
(- (* b (* t i)) (* j (- (* y i) (* a c))))
(if (<= j 2.4e-27)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(- (* j (- (* a c) (* y i))) (* b (* z c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.65e+181) {
tmp = b * ((((c / b) * (a / y)) - (i / b)) * (y * j));
} else if (j <= -1.32e+174) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (j <= -5.1e+26) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 2.4e-27) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.65d+181)) then
tmp = b * ((((c / b) * (a / y)) - (i / b)) * (y * j))
else if (j <= (-1.32d+174)) then
tmp = x * (a * ((y * (z / a)) - t))
else if (j <= (-5.1d+26)) then
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)))
else if (j <= 2.4d-27) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.65e+181) {
tmp = b * ((((c / b) * (a / y)) - (i / b)) * (y * j));
} else if (j <= -1.32e+174) {
tmp = x * (a * ((y * (z / a)) - t));
} else if (j <= -5.1e+26) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else if (j <= 2.4e-27) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.65e+181: tmp = b * ((((c / b) * (a / y)) - (i / b)) * (y * j)) elif j <= -1.32e+174: tmp = x * (a * ((y * (z / a)) - t)) elif j <= -5.1e+26: tmp = (b * (t * i)) - (j * ((y * i) - (a * c))) elif j <= 2.4e-27: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.65e+181) tmp = Float64(b * Float64(Float64(Float64(Float64(c / b) * Float64(a / y)) - Float64(i / b)) * Float64(y * j))); elseif (j <= -1.32e+174) tmp = Float64(x * Float64(a * Float64(Float64(y * Float64(z / a)) - t))); elseif (j <= -5.1e+26) tmp = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); elseif (j <= 2.4e-27) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.65e+181) tmp = b * ((((c / b) * (a / y)) - (i / b)) * (y * j)); elseif (j <= -1.32e+174) tmp = x * (a * ((y * (z / a)) - t)); elseif (j <= -5.1e+26) tmp = (b * (t * i)) - (j * ((y * i) - (a * c))); elseif (j <= 2.4e-27) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.65e+181], N[(b * N[(N[(N[(N[(c / b), $MachinePrecision] * N[(a / y), $MachinePrecision]), $MachinePrecision] - N[(i / b), $MachinePrecision]), $MachinePrecision] * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.32e+174], N[(x * N[(a * N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.1e+26], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.4e-27], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.65 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(\left(\frac{c}{b} \cdot \frac{a}{y} - \frac{i}{b}\right) \cdot \left(y \cdot j\right)\right)\\
\mathbf{elif}\;j \leq -1.32 \cdot 10^{+174}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\\
\mathbf{elif}\;j \leq -5.1 \cdot 10^{+26}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{elif}\;j \leq 2.4 \cdot 10^{-27}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.65000000000000008e181Initial program 72.4%
Taylor expanded in b around inf 75.7%
Taylor expanded in y around inf 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
associate-*r*55.2%
times-frac55.0%
associate-/l*55.0%
associate-/l*51.9%
Simplified51.9%
Taylor expanded in j around inf 87.0%
associate-*r*87.1%
*-commutative87.1%
times-frac87.1%
Simplified87.1%
if -1.65000000000000008e181 < j < -1.31999999999999999e174Initial program 60.0%
Taylor expanded in x around inf 81.0%
Taylor expanded in a around inf 100.0%
associate-/l*100.0%
Simplified100.0%
if -1.31999999999999999e174 < j < -5.0999999999999997e26Initial program 82.7%
Taylor expanded in i around inf 66.0%
if -5.0999999999999997e26 < j < 2.40000000000000002e-27Initial program 74.4%
Taylor expanded in j around 0 75.9%
Taylor expanded in y around inf 64.4%
*-commutative25.4%
Simplified64.4%
if 2.40000000000000002e-27 < j Initial program 72.7%
Taylor expanded in c around inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
Simplified72.6%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ (* x (* y z)) (* b (- (* t i) (* z c))))))
(if (<= j -1.15e+27)
(* b (+ (* t i) (/ t_1 b)))
(if (<= j -8.6e-256)
t_2
(if (<= j 1.2e-307)
(* t (- (* b i) (* x a)))
(if (<= j 3.2e-27) t_2 (- t_1 (* b (* z c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -1.15e+27) {
tmp = b * ((t * i) + (t_1 / b));
} else if (j <= -8.6e-256) {
tmp = t_2;
} else if (j <= 1.2e-307) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 3.2e-27) {
tmp = t_2;
} else {
tmp = t_1 - (b * (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = (x * (y * z)) + (b * ((t * i) - (z * c)))
if (j <= (-1.15d+27)) then
tmp = b * ((t * i) + (t_1 / b))
else if (j <= (-8.6d-256)) then
tmp = t_2
else if (j <= 1.2d-307) then
tmp = t * ((b * i) - (x * a))
else if (j <= 3.2d-27) then
tmp = t_2
else
tmp = t_1 - (b * (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 t_1 = j * ((a * c) - (y * i));
double t_2 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (j <= -1.15e+27) {
tmp = b * ((t * i) + (t_1 / b));
} else if (j <= -8.6e-256) {
tmp = t_2;
} else if (j <= 1.2e-307) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 3.2e-27) {
tmp = t_2;
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = (x * (y * z)) + (b * ((t * i) - (z * c))) tmp = 0 if j <= -1.15e+27: tmp = b * ((t * i) + (t_1 / b)) elif j <= -8.6e-256: tmp = t_2 elif j <= 1.2e-307: tmp = t * ((b * i) - (x * a)) elif j <= 3.2e-27: tmp = t_2 else: tmp = t_1 - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (j <= -1.15e+27) tmp = Float64(b * Float64(Float64(t * i) + Float64(t_1 / b))); elseif (j <= -8.6e-256) tmp = t_2; elseif (j <= 1.2e-307) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 3.2e-27) tmp = t_2; else tmp = Float64(t_1 - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = (x * (y * z)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (j <= -1.15e+27) tmp = b * ((t * i) + (t_1 / b)); elseif (j <= -8.6e-256) tmp = t_2; elseif (j <= 1.2e-307) tmp = t * ((b * i) - (x * a)); elseif (j <= 3.2e-27) tmp = t_2; else tmp = t_1 - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.15e+27], N[(b * N[(N[(t * i), $MachinePrecision] + N[(t$95$1 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.6e-256], t$95$2, If[LessEqual[j, 1.2e-307], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.2e-27], t$95$2, N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -1.15 \cdot 10^{+27}:\\
\;\;\;\;b \cdot \left(t \cdot i + \frac{t\_1}{b}\right)\\
\mathbf{elif}\;j \leq -8.6 \cdot 10^{-256}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{-307}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{-27}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.15e27Initial program 76.1%
Taylor expanded in i around inf 68.9%
Taylor expanded in b around inf 73.5%
if -1.15e27 < j < -8.6000000000000002e-256 or 1.20000000000000009e-307 < j < 3.19999999999999991e-27Initial program 74.7%
Taylor expanded in j around 0 77.1%
Taylor expanded in y around inf 68.1%
*-commutative27.4%
Simplified68.1%
if -8.6000000000000002e-256 < j < 1.20000000000000009e-307Initial program 70.5%
Taylor expanded in t around -inf 81.0%
if 3.19999999999999991e-27 < j Initial program 72.7%
Taylor expanded in c around inf 72.6%
associate-*r*72.6%
neg-mul-172.6%
Simplified72.6%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -4e-73)
t_1
(if (<= a -7.6e-209)
(* (* z b) (- c))
(if (<= a -4.6e-273)
(* y (* i (- j)))
(if (<= a 3.5e-71) (* z (* b (- c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4e-73) {
tmp = t_1;
} else if (a <= -7.6e-209) {
tmp = (z * b) * -c;
} else if (a <= -4.6e-273) {
tmp = y * (i * -j);
} else if (a <= 3.5e-71) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-4d-73)) then
tmp = t_1
else if (a <= (-7.6d-209)) then
tmp = (z * b) * -c
else if (a <= (-4.6d-273)) then
tmp = y * (i * -j)
else if (a <= 3.5d-71) then
tmp = z * (b * -c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4e-73) {
tmp = t_1;
} else if (a <= -7.6e-209) {
tmp = (z * b) * -c;
} else if (a <= -4.6e-273) {
tmp = y * (i * -j);
} else if (a <= 3.5e-71) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -4e-73: tmp = t_1 elif a <= -7.6e-209: tmp = (z * b) * -c elif a <= -4.6e-273: tmp = y * (i * -j) elif a <= 3.5e-71: tmp = z * (b * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -4e-73) tmp = t_1; elseif (a <= -7.6e-209) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (a <= -4.6e-273) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 3.5e-71) tmp = Float64(z * Float64(b * Float64(-c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -4e-73) tmp = t_1; elseif (a <= -7.6e-209) tmp = (z * b) * -c; elseif (a <= -4.6e-273) tmp = y * (i * -j); elseif (a <= 3.5e-71) tmp = z * (b * -c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4e-73], t$95$1, If[LessEqual[a, -7.6e-209], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[a, -4.6e-273], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e-71], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.6 \cdot 10^{-209}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-273}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-71}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.99999999999999999e-73 or 3.4999999999999999e-71 < a Initial program 70.6%
Taylor expanded in a around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
*-commutative59.9%
Simplified59.9%
if -3.99999999999999999e-73 < a < -7.5999999999999998e-209Initial program 92.9%
Taylor expanded in j around 0 86.5%
Taylor expanded in c around inf 45.0%
associate-*r*45.0%
neg-mul-145.0%
Simplified45.0%
Taylor expanded in b around 0 45.0%
neg-mul-145.0%
distribute-lft-neg-in45.0%
*-commutative45.0%
associate-*l*48.3%
Simplified48.3%
if -7.5999999999999998e-209 < a < -4.59999999999999961e-273Initial program 72.6%
Taylor expanded in y around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in z around 0 64.7%
neg-mul-164.7%
*-commutative64.7%
distribute-rgt-neg-in64.7%
Simplified64.7%
if -4.59999999999999961e-273 < a < 3.4999999999999999e-71Initial program 76.7%
Taylor expanded in z around inf 59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in y around 0 40.9%
mul-1-neg40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
Final simplification55.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -5.8e-10)
t_2
(if (<= a -7.2e-209)
t_1
(if (<= a -6.2e-273) (* y (* i (- j))) (if (<= a 7.2e+44) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.8e-10) {
tmp = t_2;
} else if (a <= -7.2e-209) {
tmp = t_1;
} else if (a <= -6.2e-273) {
tmp = y * (i * -j);
} else if (a <= 7.2e+44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-5.8d-10)) then
tmp = t_2
else if (a <= (-7.2d-209)) then
tmp = t_1
else if (a <= (-6.2d-273)) then
tmp = y * (i * -j)
else if (a <= 7.2d+44) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.8e-10) {
tmp = t_2;
} else if (a <= -7.2e-209) {
tmp = t_1;
} else if (a <= -6.2e-273) {
tmp = y * (i * -j);
} else if (a <= 7.2e+44) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -5.8e-10: tmp = t_2 elif a <= -7.2e-209: tmp = t_1 elif a <= -6.2e-273: tmp = y * (i * -j) elif a <= 7.2e+44: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -5.8e-10) tmp = t_2; elseif (a <= -7.2e-209) tmp = t_1; elseif (a <= -6.2e-273) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 7.2e+44) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -5.8e-10) tmp = t_2; elseif (a <= -7.2e-209) tmp = t_1; elseif (a <= -6.2e-273) tmp = y * (i * -j); elseif (a <= 7.2e+44) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.8e-10], t$95$2, If[LessEqual[a, -7.2e-209], t$95$1, If[LessEqual[a, -6.2e-273], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+44], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -5.8 \cdot 10^{-10}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-273}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -5.79999999999999962e-10 or 7.2e44 < a Initial program 66.8%
Taylor expanded in a around inf 66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
*-commutative66.0%
Simplified66.0%
if -5.79999999999999962e-10 < a < -7.20000000000000032e-209 or -6.19999999999999976e-273 < a < 7.2e44Initial program 83.8%
Taylor expanded in b around inf 52.5%
if -7.20000000000000032e-209 < a < -6.19999999999999976e-273Initial program 72.6%
Taylor expanded in y around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in z around 0 64.7%
neg-mul-164.7%
*-commutative64.7%
distribute-rgt-neg-in64.7%
Simplified64.7%
Final simplification60.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -8.5e+105)
(* b (- (* t i) (* z c)))
(if (<= b 2.7e+149)
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(+ (* x (* y z)) (* b (* i (- t (/ (* z c) i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -8.5e+105) {
tmp = b * ((t * i) - (z * c));
} else if (b <= 2.7e+149) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (x * (y * z)) + (b * (i * (t - ((z * c) / 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 (b <= (-8.5d+105)) then
tmp = b * ((t * i) - (z * c))
else if (b <= 2.7d+149) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (x * (y * z)) + (b * (i * (t - ((z * c) / 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 (b <= -8.5e+105) {
tmp = b * ((t * i) - (z * c));
} else if (b <= 2.7e+149) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (x * (y * z)) + (b * (i * (t - ((z * c) / i))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -8.5e+105: tmp = b * ((t * i) - (z * c)) elif b <= 2.7e+149: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (x * (y * z)) + (b * (i * (t - ((z * c) / i)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -8.5e+105) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (b <= 2.7e+149) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(i * Float64(t - Float64(Float64(z * c) / i))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -8.5e+105) tmp = b * ((t * i) - (z * c)); elseif (b <= 2.7e+149) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (x * (y * z)) + (b * (i * (t - ((z * c) / i)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8.5e+105], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e+149], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(i * N[(t - N[(N[(z * c), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{+105}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+149}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(i \cdot \left(t - \frac{z \cdot c}{i}\right)\right)\\
\end{array}
\end{array}
if b < -8.49999999999999986e105Initial program 61.8%
Taylor expanded in b around inf 71.9%
if -8.49999999999999986e105 < b < 2.7000000000000001e149Initial program 76.4%
Taylor expanded in b around 0 70.2%
if 2.7000000000000001e149 < b Initial program 79.3%
Taylor expanded in j around 0 73.8%
Taylor expanded in y around inf 74.0%
*-commutative22.3%
Simplified74.0%
Taylor expanded in i around inf 74.0%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -1.45e+65)
t_1
(if (<= t 205000000.0)
(* c (- (* a j) (* z b)))
(if (<= t 2e+112) (* 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 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.45e+65) {
tmp = t_1;
} else if (t <= 205000000.0) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 2e+112) {
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 = t * ((b * i) - (x * a))
if (t <= (-1.45d+65)) then
tmp = t_1
else if (t <= 205000000.0d0) then
tmp = c * ((a * j) - (z * b))
else if (t <= 2d+112) 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 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.45e+65) {
tmp = t_1;
} else if (t <= 205000000.0) {
tmp = c * ((a * j) - (z * b));
} else if (t <= 2e+112) {
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 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.45e+65: tmp = t_1 elif t <= 205000000.0: tmp = c * ((a * j) - (z * b)) elif t <= 2e+112: 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(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.45e+65) tmp = t_1; elseif (t <= 205000000.0) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (t <= 2e+112) 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 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.45e+65) tmp = t_1; elseif (t <= 205000000.0) tmp = c * ((a * j) - (z * b)); elseif (t <= 2e+112) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e+65], t$95$1, If[LessEqual[t, 205000000.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+112], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 205000000:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+112}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.45e65 or 1.9999999999999999e112 < t Initial program 67.2%
Taylor expanded in t around -inf 68.6%
if -1.45e65 < t < 2.05e8Initial program 80.2%
Taylor expanded in c around inf 57.7%
*-commutative57.7%
Simplified57.7%
if 2.05e8 < t < 1.9999999999999999e112Initial program 74.0%
Taylor expanded in z around inf 57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
Final simplification62.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -1.75e-34)
t_1
(if (<= j -2.9e-258)
(* x (* y z))
(if (<= j 1.4e-25) (* b (* t i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -1.75e-34) {
tmp = t_1;
} else if (j <= -2.9e-258) {
tmp = x * (y * z);
} else if (j <= 1.4e-25) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (j <= (-1.75d-34)) then
tmp = t_1
else if (j <= (-2.9d-258)) then
tmp = x * (y * z)
else if (j <= 1.4d-25) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -1.75e-34) {
tmp = t_1;
} else if (j <= -2.9e-258) {
tmp = x * (y * z);
} else if (j <= 1.4e-25) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -1.75e-34: tmp = t_1 elif j <= -2.9e-258: tmp = x * (y * z) elif j <= 1.4e-25: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -1.75e-34) tmp = t_1; elseif (j <= -2.9e-258) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.4e-25) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -1.75e-34) tmp = t_1; elseif (j <= -2.9e-258) tmp = x * (y * z); elseif (j <= 1.4e-25) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e-34], t$95$1, If[LessEqual[j, -2.9e-258], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e-25], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.9 \cdot 10^{-258}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-25}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.75e-34 or 1.39999999999999994e-25 < j Initial program 74.5%
Taylor expanded in a around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in j around inf 40.9%
if -1.75e-34 < j < -2.9e-258Initial program 76.1%
Taylor expanded in x around inf 56.7%
Taylor expanded in y around inf 37.3%
*-commutative37.3%
Simplified37.3%
if -2.9e-258 < j < 1.39999999999999994e-25Initial program 73.1%
Taylor expanded in j around 0 75.5%
Taylor expanded in i around inf 30.2%
Final simplification37.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -1.85e-50)
t_1
(if (<= j -5.8e-258)
(* y (* x z))
(if (<= j 3.3e-21) (* b (* t i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -1.85e-50) {
tmp = t_1;
} else if (j <= -5.8e-258) {
tmp = y * (x * z);
} else if (j <= 3.3e-21) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (j <= (-1.85d-50)) then
tmp = t_1
else if (j <= (-5.8d-258)) then
tmp = y * (x * z)
else if (j <= 3.3d-21) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -1.85e-50) {
tmp = t_1;
} else if (j <= -5.8e-258) {
tmp = y * (x * z);
} else if (j <= 3.3e-21) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -1.85e-50: tmp = t_1 elif j <= -5.8e-258: tmp = y * (x * z) elif j <= 3.3e-21: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -1.85e-50) tmp = t_1; elseif (j <= -5.8e-258) tmp = Float64(y * Float64(x * z)); elseif (j <= 3.3e-21) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -1.85e-50) tmp = t_1; elseif (j <= -5.8e-258) tmp = y * (x * z); elseif (j <= 3.3e-21) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.85e-50], t$95$1, If[LessEqual[j, -5.8e-258], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.3e-21], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -1.85 \cdot 10^{-50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-258}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 3.3 \cdot 10^{-21}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.85e-50 or 3.30000000000000009e-21 < j Initial program 74.1%
Taylor expanded in a around inf 49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in j around inf 40.3%
if -1.85e-50 < j < -5.7999999999999999e-258Initial program 77.3%
Taylor expanded in y around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
*-commutative45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in z around inf 41.0%
if -5.7999999999999999e-258 < j < 3.30000000000000009e-21Initial program 73.1%
Taylor expanded in j around 0 75.5%
Taylor expanded in i around inf 30.2%
Final simplification37.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -9.2e+45) (not (<= j 2.25e-21))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -9.2e+45) || !(j <= 2.25e-21)) {
tmp = a * (c * j);
} else {
tmp = b * (t * 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 ((j <= (-9.2d+45)) .or. (.not. (j <= 2.25d-21))) then
tmp = a * (c * j)
else
tmp = b * (t * 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 ((j <= -9.2e+45) || !(j <= 2.25e-21)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -9.2e+45) or not (j <= 2.25e-21): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -9.2e+45) || !(j <= 2.25e-21)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -9.2e+45) || ~((j <= 2.25e-21))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -9.2e+45], N[Not[LessEqual[j, 2.25e-21]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.2 \cdot 10^{+45} \lor \neg \left(j \leq 2.25 \cdot 10^{-21}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -9.20000000000000049e45 or 2.24999999999999984e-21 < j Initial program 73.9%
Taylor expanded in a around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in j around inf 44.2%
if -9.20000000000000049e45 < j < 2.24999999999999984e-21Initial program 74.8%
Taylor expanded in j around 0 74.0%
Taylor expanded in i around inf 26.0%
Final simplification34.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 74.4%
Taylor expanded in a around inf 42.0%
+-commutative42.0%
mul-1-neg42.0%
unsub-neg42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in j around inf 25.8%
Final simplification25.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024079
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))