
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 39 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y4) (* a y5)))
(t_2 (- (* y k) (* t j)))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* z t) (* x y)))
(t_5 (- (* x j) (* z k)))
(t_6 (* y1 (+ (+ (* a (- (* z y3) (* x y2))) (* y4 t_3)) (* i t_5))))
(t_7 (- (* c y0) (* a y1)))
(t_8 (- (* y y3) (* t y2)))
(t_9 (* y4 (+ (+ (* b (- (* t j) (* y k))) (* y1 t_3)) (* c t_8))))
(t_10 (- (* a b) (* c i)))
(t_11 (* y (+ (+ (* k (- (* i y5) (* b y4))) (* x t_10)) (* y3 t_1)))))
(if (<= y4 -3.6e+179)
t_9
(if (<= y4 -7.4e+85)
(* c (+ (+ (* i t_4) (* y0 (- (* x y2) (* z y3)))) (* y4 t_8)))
(if (<= y4 -1.75e+84)
(* c (* (* z t) i))
(if (<= y4 -5.9e-58)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(+ (* i t_2) (* y0 (- (* j y3) (* k y2))))))
(if (<= y4 -3.4e-80)
(* i (+ (* y1 t_5) (+ (* y5 t_2) (* c t_4))))
(if (<= y4 -2.1e-275)
t_11
(if (<= y4 2.6e-99)
(*
x
(+ (+ (* y t_10) (* y2 t_7)) (* j (- (* i y1) (* b y0)))))
(if (<= y4 1.22e-28)
t_6
(if (<= y4 6.2e+22)
t_11
(if (<= y4 4.8e+97)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_7))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 1.75e+134)
t_6
(if (or (<= y4 1.8e+204) (not (<= y4 1.25e+279)))
t_9
(*
y3
(+
(* y t_1)
(+
(* j (- (* y0 y5) (* y1 y4)))
(* z (- (* a y1) (* c y0))))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y4) - (a * y5);
double t_2 = (y * k) - (t * j);
double t_3 = (k * y2) - (j * y3);
double t_4 = (z * t) - (x * y);
double t_5 = (x * j) - (z * k);
double t_6 = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_3)) + (i * t_5));
double t_7 = (c * y0) - (a * y1);
double t_8 = (y * y3) - (t * y2);
double t_9 = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_3)) + (c * t_8));
double t_10 = (a * b) - (c * i);
double t_11 = y * (((k * ((i * y5) - (b * y4))) + (x * t_10)) + (y3 * t_1));
double tmp;
if (y4 <= -3.6e+179) {
tmp = t_9;
} else if (y4 <= -7.4e+85) {
tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_8));
} else if (y4 <= -1.75e+84) {
tmp = c * ((z * t) * i);
} else if (y4 <= -5.9e-58) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))));
} else if (y4 <= -3.4e-80) {
tmp = i * ((y1 * t_5) + ((y5 * t_2) + (c * t_4)));
} else if (y4 <= -2.1e-275) {
tmp = t_11;
} else if (y4 <= 2.6e-99) {
tmp = x * (((y * t_10) + (y2 * t_7)) + (j * ((i * y1) - (b * y0))));
} else if (y4 <= 1.22e-28) {
tmp = t_6;
} else if (y4 <= 6.2e+22) {
tmp = t_11;
} else if (y4 <= 4.8e+97) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_7)) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 1.75e+134) {
tmp = t_6;
} else if ((y4 <= 1.8e+204) || !(y4 <= 1.25e+279)) {
tmp = t_9;
} else {
tmp = y3 * ((y * t_1) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (c * y4) - (a * y5)
t_2 = (y * k) - (t * j)
t_3 = (k * y2) - (j * y3)
t_4 = (z * t) - (x * y)
t_5 = (x * j) - (z * k)
t_6 = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_3)) + (i * t_5))
t_7 = (c * y0) - (a * y1)
t_8 = (y * y3) - (t * y2)
t_9 = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_3)) + (c * t_8))
t_10 = (a * b) - (c * i)
t_11 = y * (((k * ((i * y5) - (b * y4))) + (x * t_10)) + (y3 * t_1))
if (y4 <= (-3.6d+179)) then
tmp = t_9
else if (y4 <= (-7.4d+85)) then
tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_8))
else if (y4 <= (-1.75d+84)) then
tmp = c * ((z * t) * i)
else if (y4 <= (-5.9d-58)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))))
else if (y4 <= (-3.4d-80)) then
tmp = i * ((y1 * t_5) + ((y5 * t_2) + (c * t_4)))
else if (y4 <= (-2.1d-275)) then
tmp = t_11
else if (y4 <= 2.6d-99) then
tmp = x * (((y * t_10) + (y2 * t_7)) + (j * ((i * y1) - (b * y0))))
else if (y4 <= 1.22d-28) then
tmp = t_6
else if (y4 <= 6.2d+22) then
tmp = t_11
else if (y4 <= 4.8d+97) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_7)) + (t * ((a * y5) - (c * y4))))
else if (y4 <= 1.75d+134) then
tmp = t_6
else if ((y4 <= 1.8d+204) .or. (.not. (y4 <= 1.25d+279))) then
tmp = t_9
else
tmp = y3 * ((y * t_1) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y4) - (a * y5);
double t_2 = (y * k) - (t * j);
double t_3 = (k * y2) - (j * y3);
double t_4 = (z * t) - (x * y);
double t_5 = (x * j) - (z * k);
double t_6 = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_3)) + (i * t_5));
double t_7 = (c * y0) - (a * y1);
double t_8 = (y * y3) - (t * y2);
double t_9 = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_3)) + (c * t_8));
double t_10 = (a * b) - (c * i);
double t_11 = y * (((k * ((i * y5) - (b * y4))) + (x * t_10)) + (y3 * t_1));
double tmp;
if (y4 <= -3.6e+179) {
tmp = t_9;
} else if (y4 <= -7.4e+85) {
tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_8));
} else if (y4 <= -1.75e+84) {
tmp = c * ((z * t) * i);
} else if (y4 <= -5.9e-58) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2)))));
} else if (y4 <= -3.4e-80) {
tmp = i * ((y1 * t_5) + ((y5 * t_2) + (c * t_4)));
} else if (y4 <= -2.1e-275) {
tmp = t_11;
} else if (y4 <= 2.6e-99) {
tmp = x * (((y * t_10) + (y2 * t_7)) + (j * ((i * y1) - (b * y0))));
} else if (y4 <= 1.22e-28) {
tmp = t_6;
} else if (y4 <= 6.2e+22) {
tmp = t_11;
} else if (y4 <= 4.8e+97) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_7)) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 1.75e+134) {
tmp = t_6;
} else if ((y4 <= 1.8e+204) || !(y4 <= 1.25e+279)) {
tmp = t_9;
} else {
tmp = y3 * ((y * t_1) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y4) - (a * y5) t_2 = (y * k) - (t * j) t_3 = (k * y2) - (j * y3) t_4 = (z * t) - (x * y) t_5 = (x * j) - (z * k) t_6 = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_3)) + (i * t_5)) t_7 = (c * y0) - (a * y1) t_8 = (y * y3) - (t * y2) t_9 = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_3)) + (c * t_8)) t_10 = (a * b) - (c * i) t_11 = y * (((k * ((i * y5) - (b * y4))) + (x * t_10)) + (y3 * t_1)) tmp = 0 if y4 <= -3.6e+179: tmp = t_9 elif y4 <= -7.4e+85: tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_8)) elif y4 <= -1.75e+84: tmp = c * ((z * t) * i) elif y4 <= -5.9e-58: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2))))) elif y4 <= -3.4e-80: tmp = i * ((y1 * t_5) + ((y5 * t_2) + (c * t_4))) elif y4 <= -2.1e-275: tmp = t_11 elif y4 <= 2.6e-99: tmp = x * (((y * t_10) + (y2 * t_7)) + (j * ((i * y1) - (b * y0)))) elif y4 <= 1.22e-28: tmp = t_6 elif y4 <= 6.2e+22: tmp = t_11 elif y4 <= 4.8e+97: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_7)) + (t * ((a * y5) - (c * y4)))) elif y4 <= 1.75e+134: tmp = t_6 elif (y4 <= 1.8e+204) or not (y4 <= 1.25e+279): tmp = t_9 else: tmp = y3 * ((y * t_1) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y4) - Float64(a * y5)) t_2 = Float64(Float64(y * k) - Float64(t * j)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(z * t) - Float64(x * y)) t_5 = Float64(Float64(x * j) - Float64(z * k)) t_6 = Float64(y1 * Float64(Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y4 * t_3)) + Float64(i * t_5))) t_7 = Float64(Float64(c * y0) - Float64(a * y1)) t_8 = Float64(Float64(y * y3) - Float64(t * y2)) t_9 = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * t_3)) + Float64(c * t_8))) t_10 = Float64(Float64(a * b) - Float64(c * i)) t_11 = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_10)) + Float64(y3 * t_1))) tmp = 0.0 if (y4 <= -3.6e+179) tmp = t_9; elseif (y4 <= -7.4e+85) tmp = Float64(c * Float64(Float64(Float64(i * t_4) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_8))); elseif (y4 <= -1.75e+84) tmp = Float64(c * Float64(Float64(z * t) * i)); elseif (y4 <= -5.9e-58) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * t_2) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (y4 <= -3.4e-80) tmp = Float64(i * Float64(Float64(y1 * t_5) + Float64(Float64(y5 * t_2) + Float64(c * t_4)))); elseif (y4 <= -2.1e-275) tmp = t_11; elseif (y4 <= 2.6e-99) tmp = Float64(x * Float64(Float64(Float64(y * t_10) + Float64(y2 * t_7)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y4 <= 1.22e-28) tmp = t_6; elseif (y4 <= 6.2e+22) tmp = t_11; elseif (y4 <= 4.8e+97) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_7)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= 1.75e+134) tmp = t_6; elseif ((y4 <= 1.8e+204) || !(y4 <= 1.25e+279)) tmp = t_9; else tmp = Float64(y3 * Float64(Float64(y * t_1) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (c * y4) - (a * y5); t_2 = (y * k) - (t * j); t_3 = (k * y2) - (j * y3); t_4 = (z * t) - (x * y); t_5 = (x * j) - (z * k); t_6 = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_3)) + (i * t_5)); t_7 = (c * y0) - (a * y1); t_8 = (y * y3) - (t * y2); t_9 = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_3)) + (c * t_8)); t_10 = (a * b) - (c * i); t_11 = y * (((k * ((i * y5) - (b * y4))) + (x * t_10)) + (y3 * t_1)); tmp = 0.0; if (y4 <= -3.6e+179) tmp = t_9; elseif (y4 <= -7.4e+85) tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_8)); elseif (y4 <= -1.75e+84) tmp = c * ((z * t) * i); elseif (y4 <= -5.9e-58) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_2) + (y0 * ((j * y3) - (k * y2))))); elseif (y4 <= -3.4e-80) tmp = i * ((y1 * t_5) + ((y5 * t_2) + (c * t_4))); elseif (y4 <= -2.1e-275) tmp = t_11; elseif (y4 <= 2.6e-99) tmp = x * (((y * t_10) + (y2 * t_7)) + (j * ((i * y1) - (b * y0)))); elseif (y4 <= 1.22e-28) tmp = t_6; elseif (y4 <= 6.2e+22) tmp = t_11; elseif (y4 <= 4.8e+97) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_7)) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= 1.75e+134) tmp = t_6; elseif ((y4 <= 1.8e+204) || ~((y4 <= 1.25e+279))) tmp = t_9; else tmp = y3 * ((y * t_1) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y1 * N[(N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$8), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$11 = N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$10), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.6e+179], t$95$9, If[LessEqual[y4, -7.4e+85], N[(c * N[(N[(N[(i * t$95$4), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$8), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.75e+84], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.9e-58], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.4e-80], N[(i * N[(N[(y1 * t$95$5), $MachinePrecision] + N[(N[(y5 * t$95$2), $MachinePrecision] + N[(c * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.1e-275], t$95$11, If[LessEqual[y4, 2.6e-99], N[(x * N[(N[(N[(y * t$95$10), $MachinePrecision] + N[(y2 * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.22e-28], t$95$6, If[LessEqual[y4, 6.2e+22], t$95$11, If[LessEqual[y4, 4.8e+97], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.75e+134], t$95$6, If[Or[LessEqual[y4, 1.8e+204], N[Not[LessEqual[y4, 1.25e+279]], $MachinePrecision]], t$95$9, N[(y3 * N[(N[(y * t$95$1), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y4 - a \cdot y5\\
t_2 := y \cdot k - t \cdot j\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := z \cdot t - x \cdot y\\
t_5 := x \cdot j - z \cdot k\\
t_6 := y1 \cdot \left(\left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + y4 \cdot t_3\right) + i \cdot t_5\right)\\
t_7 := c \cdot y0 - a \cdot y1\\
t_8 := y \cdot y3 - t \cdot y2\\
t_9 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot t_3\right) + c \cdot t_8\right)\\
t_10 := a \cdot b - c \cdot i\\
t_11 := y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t_10\right) + y3 \cdot t_1\right)\\
\mathbf{if}\;y4 \leq -3.6 \cdot 10^{+179}:\\
\;\;\;\;t_9\\
\mathbf{elif}\;y4 \leq -7.4 \cdot 10^{+85}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t_4 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_8\right)\\
\mathbf{elif}\;y4 \leq -1.75 \cdot 10^{+84}:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;y4 \leq -5.9 \cdot 10^{-58}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot t_2 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;y4 \leq -3.4 \cdot 10^{-80}:\\
\;\;\;\;i \cdot \left(y1 \cdot t_5 + \left(y5 \cdot t_2 + c \cdot t_4\right)\right)\\
\mathbf{elif}\;y4 \leq -2.1 \cdot 10^{-275}:\\
\;\;\;\;t_11\\
\mathbf{elif}\;y4 \leq 2.6 \cdot 10^{-99}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_10 + y2 \cdot t_7\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 1.22 \cdot 10^{-28}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y4 \leq 6.2 \cdot 10^{+22}:\\
\;\;\;\;t_11\\
\mathbf{elif}\;y4 \leq 4.8 \cdot 10^{+97}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_7\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 1.75 \cdot 10^{+134}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y4 \leq 1.8 \cdot 10^{+204} \lor \neg \left(y4 \leq 1.25 \cdot 10^{+279}\right):\\
\;\;\;\;t_9\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot t_1 + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if y4 < -3.5999999999999998e179 or 1.75000000000000001e134 < y4 < 1.8000000000000001e204 or 1.25e279 < y4 Initial program 30.1%
Taylor expanded in y4 around inf 74.8%
if -3.5999999999999998e179 < y4 < -7.4000000000000004e85Initial program 37.7%
Taylor expanded in c around inf 68.4%
if -7.4000000000000004e85 < y4 < -1.7499999999999999e84Initial program 0.0%
Taylor expanded in c around inf 0.0%
Taylor expanded in i around inf 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-out100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -1.7499999999999999e84 < y4 < -5.9e-58Initial program 13.6%
Taylor expanded in y5 around -inf 68.4%
if -5.9e-58 < y4 < -3.4000000000000001e-80Initial program 33.3%
Taylor expanded in i around -inf 100.0%
if -3.4000000000000001e-80 < y4 < -2.09999999999999988e-275 or 1.22e-28 < y4 < 6.2000000000000004e22Initial program 42.6%
Taylor expanded in y around inf 60.7%
if -2.09999999999999988e-275 < y4 < 2.60000000000000005e-99Initial program 36.5%
Taylor expanded in x around inf 54.0%
if 2.60000000000000005e-99 < y4 < 1.22e-28 or 4.8e97 < y4 < 1.75000000000000001e134Initial program 27.2%
Taylor expanded in y1 around inf 62.1%
if 6.2000000000000004e22 < y4 < 4.8e97Initial program 27.8%
Taylor expanded in y2 around inf 67.2%
if 1.8000000000000001e204 < y4 < 1.25e279Initial program 19.0%
Taylor expanded in y3 around -inf 72.0%
Final simplification66.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y y3) (* t y2)))
(t_2 (- (* x y2) (* z y3)))
(t_3
(+
(+
(+
(+
(-
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* z k) (* x j)) (- (* i y1) (* b y0))))
(* t_2 (- (* c y0) (* a y1))))
(* (- (* t j) (* y k)) (- (* b y4) (* i y5))))
(* (- (* c y4) (* a y5)) t_1))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_3 INFINITY)
t_3
(* c (+ (+ (* i (- (* z t) (* x y))) (* y0 t_2)) (* y4 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = (x * y2) - (z * y3);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) - (((z * k) - (x * j)) * ((i * y1) - (b * y0)))) + (t_2 * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((c * y4) - (a * y5)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_2)) + (y4 * t_1));
}
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = (x * y2) - (z * y3);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) - (((z * k) - (x * j)) * ((i * y1) - (b * y0)))) + (t_2 * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((c * y4) - (a * y5)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_2)) + (y4 * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * y3) - (t * y2) t_2 = (x * y2) - (z * y3) t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) - (((z * k) - (x * j)) * ((i * y1) - (b * y0)))) + (t_2 * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((c * y4) - (a * y5)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_2)) + (y4 * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * y3) - Float64(t * y2)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) - Float64(Float64(Float64(z * k) - Float64(x * j)) * Float64(Float64(i * y1) - Float64(b * y0)))) + Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(Float64(Float64(c * y4) - Float64(a * y5)) * t_1)) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * t_2)) + Float64(y4 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y * y3) - (t * y2); t_2 = (x * y2) - (z * y3); t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) - (((z * k) - (x * j)) * ((i * y1) - (b * y0)))) + (t_2 * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((c * y4) - (a * y5)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_2)) + (y4 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot y3 - t \cdot y2\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) - \left(z \cdot k - x \cdot j\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + t_2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + \left(c \cdot y4 - a \cdot y5\right) \cdot t_1\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t_3 \leq \infty:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot t_2\right) + y4 \cdot t_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 90.3%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in c around inf 40.0%
Final simplification57.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1)))))
(t_2 (- (* i y1) (* b y0)))
(t_3 (* x t_2))
(t_4 (- (* t j) (* y k)))
(t_5
(*
y4
(+
(+ (* b t_4) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2))))))
(t_6 (* y (- (* a b) (* c i)))))
(if (<= k -4.5e+83)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -7.2e+30)
t_1
(if (<= k -1450000.0)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= k -6.6e-19)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= k -1.7e-48)
t_5
(if (<= k -1.4e-49)
(* a (* (* x y) b))
(if (<= k -3.35e-115)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c (- (* z t) (* x y))))))
(if (<= k -4.4e-167)
(* j t_3)
(if (<= k -4.8e-262)
t_5
(if (<= k -1.02e-289)
(* x t_6)
(if (<= k 3.4e-168)
(* j (+ (* t (- (* b y4) (* i y5))) t_3))
(if (<= k 7.5e-141)
(* x (* a (* y1 (- y2))))
(if (<= k 4e+116)
(*
x
(+
(+ t_6 (* y2 (- (* c y0) (* a y1))))
(* j t_2)))
(if (<= k 6.5e+228)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_4))
(* y0 (- (* z k) (* x j)))))
t_1))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = (i * y1) - (b * y0);
double t_3 = x * t_2;
double t_4 = (t * j) - (y * k);
double t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_6 = y * ((a * b) - (c * i));
double tmp;
if (k <= -4.5e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -7.2e+30) {
tmp = t_1;
} else if (k <= -1450000.0) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -6.6e-19) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= -1.7e-48) {
tmp = t_5;
} else if (k <= -1.4e-49) {
tmp = a * ((x * y) * b);
} else if (k <= -3.35e-115) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
} else if (k <= -4.4e-167) {
tmp = j * t_3;
} else if (k <= -4.8e-262) {
tmp = t_5;
} else if (k <= -1.02e-289) {
tmp = x * t_6;
} else if (k <= 3.4e-168) {
tmp = j * ((t * ((b * y4) - (i * y5))) + t_3);
} else if (k <= 7.5e-141) {
tmp = x * (a * (y1 * -y2));
} else if (k <= 4e+116) {
tmp = x * ((t_6 + (y2 * ((c * y0) - (a * y1)))) + (j * t_2));
} else if (k <= 6.5e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = k * (z * ((b * y0) - (i * y1)))
t_2 = (i * y1) - (b * y0)
t_3 = x * t_2
t_4 = (t * j) - (y * k)
t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
t_6 = y * ((a * b) - (c * i))
if (k <= (-4.5d+83)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-7.2d+30)) then
tmp = t_1
else if (k <= (-1450000.0d0)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (k <= (-6.6d-19)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (k <= (-1.7d-48)) then
tmp = t_5
else if (k <= (-1.4d-49)) then
tmp = a * ((x * y) * b)
else if (k <= (-3.35d-115)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))))
else if (k <= (-4.4d-167)) then
tmp = j * t_3
else if (k <= (-4.8d-262)) then
tmp = t_5
else if (k <= (-1.02d-289)) then
tmp = x * t_6
else if (k <= 3.4d-168) then
tmp = j * ((t * ((b * y4) - (i * y5))) + t_3)
else if (k <= 7.5d-141) then
tmp = x * (a * (y1 * -y2))
else if (k <= 4d+116) then
tmp = x * ((t_6 + (y2 * ((c * y0) - (a * y1)))) + (j * t_2))
else if (k <= 6.5d+228) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = (i * y1) - (b * y0);
double t_3 = x * t_2;
double t_4 = (t * j) - (y * k);
double t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_6 = y * ((a * b) - (c * i));
double tmp;
if (k <= -4.5e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -7.2e+30) {
tmp = t_1;
} else if (k <= -1450000.0) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -6.6e-19) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= -1.7e-48) {
tmp = t_5;
} else if (k <= -1.4e-49) {
tmp = a * ((x * y) * b);
} else if (k <= -3.35e-115) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
} else if (k <= -4.4e-167) {
tmp = j * t_3;
} else if (k <= -4.8e-262) {
tmp = t_5;
} else if (k <= -1.02e-289) {
tmp = x * t_6;
} else if (k <= 3.4e-168) {
tmp = j * ((t * ((b * y4) - (i * y5))) + t_3);
} else if (k <= 7.5e-141) {
tmp = x * (a * (y1 * -y2));
} else if (k <= 4e+116) {
tmp = x * ((t_6 + (y2 * ((c * y0) - (a * y1)))) + (j * t_2));
} else if (k <= 6.5e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (z * ((b * y0) - (i * y1))) t_2 = (i * y1) - (b * y0) t_3 = x * t_2 t_4 = (t * j) - (y * k) t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) t_6 = y * ((a * b) - (c * i)) tmp = 0 if k <= -4.5e+83: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -7.2e+30: tmp = t_1 elif k <= -1450000.0: tmp = x * (c * ((y0 * y2) - (y * i))) elif k <= -6.6e-19: tmp = c * (y0 * ((x * y2) - (z * y3))) elif k <= -1.7e-48: tmp = t_5 elif k <= -1.4e-49: tmp = a * ((x * y) * b) elif k <= -3.35e-115: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))) elif k <= -4.4e-167: tmp = j * t_3 elif k <= -4.8e-262: tmp = t_5 elif k <= -1.02e-289: tmp = x * t_6 elif k <= 3.4e-168: tmp = j * ((t * ((b * y4) - (i * y5))) + t_3) elif k <= 7.5e-141: tmp = x * (a * (y1 * -y2)) elif k <= 4e+116: tmp = x * ((t_6 + (y2 * ((c * y0) - (a * y1)))) + (j * t_2)) elif k <= 6.5e+228: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_2 = Float64(Float64(i * y1) - Float64(b * y0)) t_3 = Float64(x * t_2) t_4 = Float64(Float64(t * j) - Float64(y * k)) t_5 = Float64(y4 * Float64(Float64(Float64(b * t_4) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_6 = Float64(y * Float64(Float64(a * b) - Float64(c * i))) tmp = 0.0 if (k <= -4.5e+83) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -7.2e+30) tmp = t_1; elseif (k <= -1450000.0) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (k <= -6.6e-19) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (k <= -1.7e-48) tmp = t_5; elseif (k <= -1.4e-49) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (k <= -3.35e-115) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))))); elseif (k <= -4.4e-167) tmp = Float64(j * t_3); elseif (k <= -4.8e-262) tmp = t_5; elseif (k <= -1.02e-289) tmp = Float64(x * t_6); elseif (k <= 3.4e-168) tmp = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + t_3)); elseif (k <= 7.5e-141) tmp = Float64(x * Float64(a * Float64(y1 * Float64(-y2)))); elseif (k <= 4e+116) tmp = Float64(x * Float64(Float64(t_6 + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_2))); elseif (k <= 6.5e+228) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_4)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (z * ((b * y0) - (i * y1))); t_2 = (i * y1) - (b * y0); t_3 = x * t_2; t_4 = (t * j) - (y * k); t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); t_6 = y * ((a * b) - (c * i)); tmp = 0.0; if (k <= -4.5e+83) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -7.2e+30) tmp = t_1; elseif (k <= -1450000.0) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (k <= -6.6e-19) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (k <= -1.7e-48) tmp = t_5; elseif (k <= -1.4e-49) tmp = a * ((x * y) * b); elseif (k <= -3.35e-115) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))); elseif (k <= -4.4e-167) tmp = j * t_3; elseif (k <= -4.8e-262) tmp = t_5; elseif (k <= -1.02e-289) tmp = x * t_6; elseif (k <= 3.4e-168) tmp = j * ((t * ((b * y4) - (i * y5))) + t_3); elseif (k <= 7.5e-141) tmp = x * (a * (y1 * -y2)); elseif (k <= 4e+116) tmp = x * ((t_6 + (y2 * ((c * y0) - (a * y1)))) + (j * t_2)); elseif (k <= 6.5e+228) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * N[(N[(N[(b * t$95$4), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.5e+83], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -7.2e+30], t$95$1, If[LessEqual[k, -1450000.0], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -6.6e-19], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.7e-48], t$95$5, If[LessEqual[k, -1.4e-49], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3.35e-115], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.4e-167], N[(j * t$95$3), $MachinePrecision], If[LessEqual[k, -4.8e-262], t$95$5, If[LessEqual[k, -1.02e-289], N[(x * t$95$6), $MachinePrecision], If[LessEqual[k, 3.4e-168], N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 7.5e-141], N[(x * N[(a * N[(y1 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4e+116], N[(x * N[(N[(t$95$6 + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.5e+228], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_2 := i \cdot y1 - b \cdot y0\\
t_3 := x \cdot t_2\\
t_4 := t \cdot j - y \cdot k\\
t_5 := y4 \cdot \left(\left(b \cdot t_4 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_6 := y \cdot \left(a \cdot b - c \cdot i\right)\\
\mathbf{if}\;k \leq -4.5 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -7.2 \cdot 10^{+30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -1450000:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;k \leq -6.6 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq -1.7 \cdot 10^{-48}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq -1.4 \cdot 10^{-49}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;k \leq -3.35 \cdot 10^{-115}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\\
\mathbf{elif}\;k \leq -4.4 \cdot 10^{-167}:\\
\;\;\;\;j \cdot t_3\\
\mathbf{elif}\;k \leq -4.8 \cdot 10^{-262}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq -1.02 \cdot 10^{-289}:\\
\;\;\;\;x \cdot t_6\\
\mathbf{elif}\;k \leq 3.4 \cdot 10^{-168}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + t_3\right)\\
\mathbf{elif}\;k \leq 7.5 \cdot 10^{-141}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y1 \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;k \leq 4 \cdot 10^{+116}:\\
\;\;\;\;x \cdot \left(\left(t_6 + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t_2\right)\\
\mathbf{elif}\;k \leq 6.5 \cdot 10^{+228}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_4\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -4.4999999999999999e83Initial program 29.3%
Taylor expanded in i around -inf 51.4%
Taylor expanded in k around -inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
*-commutative56.4%
Simplified56.4%
if -4.4999999999999999e83 < k < -7.2000000000000004e30 or 6.5e228 < k Initial program 28.5%
Taylor expanded in k around inf 71.4%
Taylor expanded in z around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -7.2000000000000004e30 < k < -1.45e6Initial program 55.4%
Taylor expanded in x around inf 55.9%
Taylor expanded in c around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
*-commutative56.0%
*-commutative56.0%
Applied egg-rr56.0%
if -1.45e6 < k < -6.5999999999999995e-19Initial program 26.5%
Taylor expanded in c around inf 25.4%
Taylor expanded in y0 around inf 75.4%
if -6.5999999999999995e-19 < k < -1.70000000000000014e-48 or -4.3999999999999999e-167 < k < -4.8000000000000001e-262Initial program 47.8%
Taylor expanded in y4 around inf 64.3%
if -1.70000000000000014e-48 < k < -1.39999999999999999e-49Initial program 0.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in x around inf 100.0%
Taylor expanded in a around inf 100.0%
if -1.39999999999999999e-49 < k < -3.3500000000000001e-115Initial program 28.2%
Taylor expanded in i around -inf 67.0%
if -3.3500000000000001e-115 < k < -4.3999999999999999e-167Initial program 25.0%
Taylor expanded in j around inf 62.5%
Taylor expanded in x around inf 87.5%
if -4.8000000000000001e-262 < k < -1.02e-289Initial program 66.7%
Taylor expanded in y around inf 67.5%
Taylor expanded in x around inf 84.1%
if -1.02e-289 < k < 3.40000000000000022e-168Initial program 42.4%
Taylor expanded in j around inf 42.6%
Taylor expanded in y3 around 0 56.2%
cancel-sign-sub-inv56.2%
*-commutative56.2%
*-commutative56.2%
cancel-sign-sub-inv56.2%
Simplified56.2%
if 3.40000000000000022e-168 < k < 7.50000000000000046e-141Initial program 37.5%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 50.6%
Taylor expanded in c around 0 63.2%
mul-1-neg63.2%
*-commutative63.2%
distribute-rgt-neg-in63.2%
*-commutative63.2%
Simplified63.2%
if 7.50000000000000046e-141 < k < 4.00000000000000006e116Initial program 22.1%
Taylor expanded in x around inf 58.3%
if 4.00000000000000006e116 < k < 6.5e228Initial program 17.2%
Taylor expanded in b around inf 58.8%
Final simplification62.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y y3) (* t y2)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* c y4) (* a y5)))
(t_4 (- (* y k) (* t j)))
(t_5 (- (* j y3) (* k y2)))
(t_6 (* y0 (+ (+ (* y5 t_5) (* c t_2)) (* b (- (* z k) (* x j))))))
(t_7
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x (- (* a b) (* c i))))
(* y3 t_3))))
(t_8
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c t_1))))
(t_9 (- (* z t) (* x y))))
(if (<= y4 -2.6e+177)
t_8
(if (<= y4 -1.8e+84)
(* c (+ (+ (* i t_9) (* y0 t_2)) (* y4 t_1)))
(if (<= y4 -1.7e+84)
(* c (* (* z t) i))
(if (<= y4 -8.4e-60)
(* y5 (+ (* a (- (* t y2) (* y y3))) (+ (* i t_4) (* y0 t_5))))
(if (<= y4 -6.7e-80)
(* i (+ (* y1 (- (* x j) (* z k))) (+ (* y5 t_4) (* c t_9))))
(if (<= y4 -3.9e-287)
t_7
(if (<= y4 1.4e-130)
t_6
(if (<= y4 7e-50)
(*
j
(+
(* t (- (* b y4) (* i y5)))
(* x (- (* i y1) (* b y0)))))
(if (<= y4 2.15e+23)
t_7
(if (<= y4 6.6e+86)
(*
y2
(+
(+
(* k (- (* y1 y4) (* y0 y5)))
(* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 1.65e+131)
t_6
(if (or (<= y4 1.65e+204) (not (<= y4 1.3e+279)))
t_8
(*
y3
(+
(* y t_3)
(+
(* j (- (* y0 y5) (* y1 y4)))
(* z (- (* a y1) (* c y0))))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = (x * y2) - (z * y3);
double t_3 = (c * y4) - (a * y5);
double t_4 = (y * k) - (t * j);
double t_5 = (j * y3) - (k * y2);
double t_6 = y0 * (((y5 * t_5) + (c * t_2)) + (b * ((z * k) - (x * j))));
double t_7 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
double t_8 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1));
double t_9 = (z * t) - (x * y);
double tmp;
if (y4 <= -2.6e+177) {
tmp = t_8;
} else if (y4 <= -1.8e+84) {
tmp = c * (((i * t_9) + (y0 * t_2)) + (y4 * t_1));
} else if (y4 <= -1.7e+84) {
tmp = c * ((z * t) * i);
} else if (y4 <= -8.4e-60) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_4) + (y0 * t_5)));
} else if (y4 <= -6.7e-80) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_4) + (c * t_9)));
} else if (y4 <= -3.9e-287) {
tmp = t_7;
} else if (y4 <= 1.4e-130) {
tmp = t_6;
} else if (y4 <= 7e-50) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))));
} else if (y4 <= 2.15e+23) {
tmp = t_7;
} else if (y4 <= 6.6e+86) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 1.65e+131) {
tmp = t_6;
} else if ((y4 <= 1.65e+204) || !(y4 <= 1.3e+279)) {
tmp = t_8;
} else {
tmp = y3 * ((y * t_3) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y * y3) - (t * y2)
t_2 = (x * y2) - (z * y3)
t_3 = (c * y4) - (a * y5)
t_4 = (y * k) - (t * j)
t_5 = (j * y3) - (k * y2)
t_6 = y0 * (((y5 * t_5) + (c * t_2)) + (b * ((z * k) - (x * j))))
t_7 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3))
t_8 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1))
t_9 = (z * t) - (x * y)
if (y4 <= (-2.6d+177)) then
tmp = t_8
else if (y4 <= (-1.8d+84)) then
tmp = c * (((i * t_9) + (y0 * t_2)) + (y4 * t_1))
else if (y4 <= (-1.7d+84)) then
tmp = c * ((z * t) * i)
else if (y4 <= (-8.4d-60)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_4) + (y0 * t_5)))
else if (y4 <= (-6.7d-80)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_4) + (c * t_9)))
else if (y4 <= (-3.9d-287)) then
tmp = t_7
else if (y4 <= 1.4d-130) then
tmp = t_6
else if (y4 <= 7d-50) then
tmp = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))))
else if (y4 <= 2.15d+23) then
tmp = t_7
else if (y4 <= 6.6d+86) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= 1.65d+131) then
tmp = t_6
else if ((y4 <= 1.65d+204) .or. (.not. (y4 <= 1.3d+279))) then
tmp = t_8
else
tmp = y3 * ((y * t_3) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = (x * y2) - (z * y3);
double t_3 = (c * y4) - (a * y5);
double t_4 = (y * k) - (t * j);
double t_5 = (j * y3) - (k * y2);
double t_6 = y0 * (((y5 * t_5) + (c * t_2)) + (b * ((z * k) - (x * j))));
double t_7 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
double t_8 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1));
double t_9 = (z * t) - (x * y);
double tmp;
if (y4 <= -2.6e+177) {
tmp = t_8;
} else if (y4 <= -1.8e+84) {
tmp = c * (((i * t_9) + (y0 * t_2)) + (y4 * t_1));
} else if (y4 <= -1.7e+84) {
tmp = c * ((z * t) * i);
} else if (y4 <= -8.4e-60) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_4) + (y0 * t_5)));
} else if (y4 <= -6.7e-80) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_4) + (c * t_9)));
} else if (y4 <= -3.9e-287) {
tmp = t_7;
} else if (y4 <= 1.4e-130) {
tmp = t_6;
} else if (y4 <= 7e-50) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))));
} else if (y4 <= 2.15e+23) {
tmp = t_7;
} else if (y4 <= 6.6e+86) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 1.65e+131) {
tmp = t_6;
} else if ((y4 <= 1.65e+204) || !(y4 <= 1.3e+279)) {
tmp = t_8;
} else {
tmp = y3 * ((y * t_3) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * y3) - (t * y2) t_2 = (x * y2) - (z * y3) t_3 = (c * y4) - (a * y5) t_4 = (y * k) - (t * j) t_5 = (j * y3) - (k * y2) t_6 = y0 * (((y5 * t_5) + (c * t_2)) + (b * ((z * k) - (x * j)))) t_7 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3)) t_8 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1)) t_9 = (z * t) - (x * y) tmp = 0 if y4 <= -2.6e+177: tmp = t_8 elif y4 <= -1.8e+84: tmp = c * (((i * t_9) + (y0 * t_2)) + (y4 * t_1)) elif y4 <= -1.7e+84: tmp = c * ((z * t) * i) elif y4 <= -8.4e-60: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_4) + (y0 * t_5))) elif y4 <= -6.7e-80: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_4) + (c * t_9))) elif y4 <= -3.9e-287: tmp = t_7 elif y4 <= 1.4e-130: tmp = t_6 elif y4 <= 7e-50: tmp = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0)))) elif y4 <= 2.15e+23: tmp = t_7 elif y4 <= 6.6e+86: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= 1.65e+131: tmp = t_6 elif (y4 <= 1.65e+204) or not (y4 <= 1.3e+279): tmp = t_8 else: tmp = y3 * ((y * t_3) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * y3) - Float64(t * y2)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(Float64(y * k) - Float64(t * j)) t_5 = Float64(Float64(j * y3) - Float64(k * y2)) t_6 = Float64(y0 * Float64(Float64(Float64(y5 * t_5) + Float64(c * t_2)) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))) t_7 = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * Float64(Float64(a * b) - Float64(c * i)))) + Float64(y3 * t_3))) t_8 = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_1))) t_9 = Float64(Float64(z * t) - Float64(x * y)) tmp = 0.0 if (y4 <= -2.6e+177) tmp = t_8; elseif (y4 <= -1.8e+84) tmp = Float64(c * Float64(Float64(Float64(i * t_9) + Float64(y0 * t_2)) + Float64(y4 * t_1))); elseif (y4 <= -1.7e+84) tmp = Float64(c * Float64(Float64(z * t) * i)); elseif (y4 <= -8.4e-60) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * t_4) + Float64(y0 * t_5)))); elseif (y4 <= -6.7e-80) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * t_4) + Float64(c * t_9)))); elseif (y4 <= -3.9e-287) tmp = t_7; elseif (y4 <= 1.4e-130) tmp = t_6; elseif (y4 <= 7e-50) tmp = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y4 <= 2.15e+23) tmp = t_7; elseif (y4 <= 6.6e+86) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= 1.65e+131) tmp = t_6; elseif ((y4 <= 1.65e+204) || !(y4 <= 1.3e+279)) tmp = t_8; else tmp = Float64(y3 * Float64(Float64(y * t_3) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y * y3) - (t * y2); t_2 = (x * y2) - (z * y3); t_3 = (c * y4) - (a * y5); t_4 = (y * k) - (t * j); t_5 = (j * y3) - (k * y2); t_6 = y0 * (((y5 * t_5) + (c * t_2)) + (b * ((z * k) - (x * j)))); t_7 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3)); t_8 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1)); t_9 = (z * t) - (x * y); tmp = 0.0; if (y4 <= -2.6e+177) tmp = t_8; elseif (y4 <= -1.8e+84) tmp = c * (((i * t_9) + (y0 * t_2)) + (y4 * t_1)); elseif (y4 <= -1.7e+84) tmp = c * ((z * t) * i); elseif (y4 <= -8.4e-60) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * t_4) + (y0 * t_5))); elseif (y4 <= -6.7e-80) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * t_4) + (c * t_9))); elseif (y4 <= -3.9e-287) tmp = t_7; elseif (y4 <= 1.4e-130) tmp = t_6; elseif (y4 <= 7e-50) tmp = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0)))); elseif (y4 <= 2.15e+23) tmp = t_7; elseif (y4 <= 6.6e+86) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= 1.65e+131) tmp = t_6; elseif ((y4 <= 1.65e+204) || ~((y4 <= 1.3e+279))) tmp = t_8; else tmp = y3 * ((y * t_3) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y0 * N[(N[(N[(y5 * t$95$5), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e+177], t$95$8, If[LessEqual[y4, -1.8e+84], N[(c * N[(N[(N[(i * t$95$9), $MachinePrecision] + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.7e+84], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.4e-60], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * t$95$4), $MachinePrecision] + N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6.7e-80], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * t$95$4), $MachinePrecision] + N[(c * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.9e-287], t$95$7, If[LessEqual[y4, 1.4e-130], t$95$6, If[LessEqual[y4, 7e-50], N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.15e+23], t$95$7, If[LessEqual[y4, 6.6e+86], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.65e+131], t$95$6, If[Or[LessEqual[y4, 1.65e+204], N[Not[LessEqual[y4, 1.3e+279]], $MachinePrecision]], t$95$8, N[(y3 * N[(N[(y * t$95$3), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot y3 - t \cdot y2\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := y \cdot k - t \cdot j\\
t_5 := j \cdot y3 - k \cdot y2\\
t_6 := y0 \cdot \left(\left(y5 \cdot t_5 + c \cdot t_2\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_7 := y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) + y3 \cdot t_3\right)\\
t_8 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_1\right)\\
t_9 := z \cdot t - x \cdot y\\
\mathbf{if}\;y4 \leq -2.6 \cdot 10^{+177}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;y4 \leq -1.8 \cdot 10^{+84}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t_9 + y0 \cdot t_2\right) + y4 \cdot t_1\right)\\
\mathbf{elif}\;y4 \leq -1.7 \cdot 10^{+84}:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;y4 \leq -8.4 \cdot 10^{-60}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot t_4 + y0 \cdot t_5\right)\right)\\
\mathbf{elif}\;y4 \leq -6.7 \cdot 10^{-80}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot t_4 + c \cdot t_9\right)\right)\\
\mathbf{elif}\;y4 \leq -3.9 \cdot 10^{-287}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;y4 \leq 1.4 \cdot 10^{-130}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y4 \leq 7 \cdot 10^{-50}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 2.15 \cdot 10^{+23}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;y4 \leq 6.6 \cdot 10^{+86}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+131}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y4 \leq 1.65 \cdot 10^{+204} \lor \neg \left(y4 \leq 1.3 \cdot 10^{+279}\right):\\
\;\;\;\;t_8\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot t_3 + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if y4 < -2.59999999999999979e177 or 1.6499999999999999e131 < y4 < 1.6499999999999999e204 or 1.3000000000000001e279 < y4 Initial program 29.0%
Taylor expanded in y4 around inf 73.8%
if -2.59999999999999979e177 < y4 < -1.8e84Initial program 37.7%
Taylor expanded in c around inf 68.4%
if -1.8e84 < y4 < -1.6999999999999999e84Initial program 0.0%
Taylor expanded in c around inf 0.0%
Taylor expanded in i around inf 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-out100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -1.6999999999999999e84 < y4 < -8.39999999999999964e-60Initial program 13.6%
Taylor expanded in y5 around -inf 68.4%
if -8.39999999999999964e-60 < y4 < -6.70000000000000002e-80Initial program 33.3%
Taylor expanded in i around -inf 100.0%
if -6.70000000000000002e-80 < y4 < -3.9e-287 or 6.99999999999999993e-50 < y4 < 2.1499999999999999e23Initial program 42.7%
Taylor expanded in y around inf 58.6%
if -3.9e-287 < y4 < 1.40000000000000008e-130 or 6.5999999999999998e86 < y4 < 1.6499999999999999e131Initial program 31.1%
Taylor expanded in y0 around inf 59.5%
if 1.40000000000000008e-130 < y4 < 6.99999999999999993e-50Initial program 31.4%
Taylor expanded in j around inf 53.2%
Taylor expanded in y3 around 0 58.9%
cancel-sign-sub-inv58.9%
*-commutative58.9%
*-commutative58.9%
cancel-sign-sub-inv58.9%
Simplified58.9%
if 2.1499999999999999e23 < y4 < 6.5999999999999998e86Initial program 33.3%
Taylor expanded in y2 around inf 67.3%
if 1.6499999999999999e204 < y4 < 1.3000000000000001e279Initial program 19.0%
Taylor expanded in y3 around -inf 72.0%
Final simplification66.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1)))))
(t_2 (- (* t j) (* y k)))
(t_3 (- (* i y1) (* b y0)))
(t_4 (* x t_3))
(t_5 (* j (+ (* t (- (* b y4) (* i y5))) t_4)))
(t_6
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_3)))))
(if (<= k -4.3e+83)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -1.35e+44)
t_1
(if (<= k -4.5e-19)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(+ (* i (- (* y k) (* t j))) (* y0 (- (* j y3) (* k y2))))))
(if (<= k -1.25e-81)
(*
y4
(+
(+ (* b t_2) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= k -5.9e-95)
(* (* t c) (- (* z i) (* y2 y4)))
(if (<= k -2e-167)
(* j t_4)
(if (<= k -6.2e-246)
t_6
(if (<= k -3.15e-260)
t_5
(if (<= k -3.5e-282)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= k 8.5e-166)
t_5
(if (<= k 3.85e+115)
t_6
(if (<= k 2.5e+228)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_2))
(* y0 (- (* z k) (* x j)))))
t_1))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = (t * j) - (y * k);
double t_3 = (i * y1) - (b * y0);
double t_4 = x * t_3;
double t_5 = j * ((t * ((b * y4) - (i * y5))) + t_4);
double t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_3));
double tmp;
if (k <= -4.3e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.35e+44) {
tmp = t_1;
} else if (k <= -4.5e-19) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
} else if (k <= -1.25e-81) {
tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (k <= -5.9e-95) {
tmp = (t * c) * ((z * i) - (y2 * y4));
} else if (k <= -2e-167) {
tmp = j * t_4;
} else if (k <= -6.2e-246) {
tmp = t_6;
} else if (k <= -3.15e-260) {
tmp = t_5;
} else if (k <= -3.5e-282) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 8.5e-166) {
tmp = t_5;
} else if (k <= 3.85e+115) {
tmp = t_6;
} else if (k <= 2.5e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = k * (z * ((b * y0) - (i * y1)))
t_2 = (t * j) - (y * k)
t_3 = (i * y1) - (b * y0)
t_4 = x * t_3
t_5 = j * ((t * ((b * y4) - (i * y5))) + t_4)
t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_3))
if (k <= (-4.3d+83)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-1.35d+44)) then
tmp = t_1
else if (k <= (-4.5d-19)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))))
else if (k <= (-1.25d-81)) then
tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (k <= (-5.9d-95)) then
tmp = (t * c) * ((z * i) - (y2 * y4))
else if (k <= (-2d-167)) then
tmp = j * t_4
else if (k <= (-6.2d-246)) then
tmp = t_6
else if (k <= (-3.15d-260)) then
tmp = t_5
else if (k <= (-3.5d-282)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (k <= 8.5d-166) then
tmp = t_5
else if (k <= 3.85d+115) then
tmp = t_6
else if (k <= 2.5d+228) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = (t * j) - (y * k);
double t_3 = (i * y1) - (b * y0);
double t_4 = x * t_3;
double t_5 = j * ((t * ((b * y4) - (i * y5))) + t_4);
double t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_3));
double tmp;
if (k <= -4.3e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.35e+44) {
tmp = t_1;
} else if (k <= -4.5e-19) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
} else if (k <= -1.25e-81) {
tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (k <= -5.9e-95) {
tmp = (t * c) * ((z * i) - (y2 * y4));
} else if (k <= -2e-167) {
tmp = j * t_4;
} else if (k <= -6.2e-246) {
tmp = t_6;
} else if (k <= -3.15e-260) {
tmp = t_5;
} else if (k <= -3.5e-282) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 8.5e-166) {
tmp = t_5;
} else if (k <= 3.85e+115) {
tmp = t_6;
} else if (k <= 2.5e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (z * ((b * y0) - (i * y1))) t_2 = (t * j) - (y * k) t_3 = (i * y1) - (b * y0) t_4 = x * t_3 t_5 = j * ((t * ((b * y4) - (i * y5))) + t_4) t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_3)) tmp = 0 if k <= -4.3e+83: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -1.35e+44: tmp = t_1 elif k <= -4.5e-19: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2))))) elif k <= -1.25e-81: tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif k <= -5.9e-95: tmp = (t * c) * ((z * i) - (y2 * y4)) elif k <= -2e-167: tmp = j * t_4 elif k <= -6.2e-246: tmp = t_6 elif k <= -3.15e-260: tmp = t_5 elif k <= -3.5e-282: tmp = x * (a * ((y * b) - (y1 * y2))) elif k <= 8.5e-166: tmp = t_5 elif k <= 3.85e+115: tmp = t_6 elif k <= 2.5e+228: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_2 = Float64(Float64(t * j) - Float64(y * k)) t_3 = Float64(Float64(i * y1) - Float64(b * y0)) t_4 = Float64(x * t_3) t_5 = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + t_4)) t_6 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_3))) tmp = 0.0 if (k <= -4.3e+83) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -1.35e+44) tmp = t_1; elseif (k <= -4.5e-19) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (k <= -1.25e-81) tmp = Float64(y4 * Float64(Float64(Float64(b * t_2) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (k <= -5.9e-95) tmp = Float64(Float64(t * c) * Float64(Float64(z * i) - Float64(y2 * y4))); elseif (k <= -2e-167) tmp = Float64(j * t_4); elseif (k <= -6.2e-246) tmp = t_6; elseif (k <= -3.15e-260) tmp = t_5; elseif (k <= -3.5e-282) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (k <= 8.5e-166) tmp = t_5; elseif (k <= 3.85e+115) tmp = t_6; elseif (k <= 2.5e+228) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_2)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (z * ((b * y0) - (i * y1))); t_2 = (t * j) - (y * k); t_3 = (i * y1) - (b * y0); t_4 = x * t_3; t_5 = j * ((t * ((b * y4) - (i * y5))) + t_4); t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_3)); tmp = 0.0; if (k <= -4.3e+83) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -1.35e+44) tmp = t_1; elseif (k <= -4.5e-19) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2))))); elseif (k <= -1.25e-81) tmp = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (k <= -5.9e-95) tmp = (t * c) * ((z * i) - (y2 * y4)); elseif (k <= -2e-167) tmp = j * t_4; elseif (k <= -6.2e-246) tmp = t_6; elseif (k <= -3.15e-260) tmp = t_5; elseif (k <= -3.5e-282) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (k <= 8.5e-166) tmp = t_5; elseif (k <= 3.85e+115) tmp = t_6; elseif (k <= 2.5e+228) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * t$95$3), $MachinePrecision]}, Block[{t$95$5 = N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.3e+83], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.35e+44], t$95$1, If[LessEqual[k, -4.5e-19], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.25e-81], N[(y4 * N[(N[(N[(b * t$95$2), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -5.9e-95], N[(N[(t * c), $MachinePrecision] * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2e-167], N[(j * t$95$4), $MachinePrecision], If[LessEqual[k, -6.2e-246], t$95$6, If[LessEqual[k, -3.15e-260], t$95$5, If[LessEqual[k, -3.5e-282], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.5e-166], t$95$5, If[LessEqual[k, 3.85e+115], t$95$6, If[LessEqual[k, 2.5e+228], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_2 := t \cdot j - y \cdot k\\
t_3 := i \cdot y1 - b \cdot y0\\
t_4 := x \cdot t_3\\
t_5 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + t_4\right)\\
t_6 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t_3\right)\\
\mathbf{if}\;k \leq -4.3 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -1.35 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -4.5 \cdot 10^{-19}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;k \leq -1.25 \cdot 10^{-81}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_2 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq -5.9 \cdot 10^{-95}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(z \cdot i - y2 \cdot y4\right)\\
\mathbf{elif}\;k \leq -2 \cdot 10^{-167}:\\
\;\;\;\;j \cdot t_4\\
\mathbf{elif}\;k \leq -6.2 \cdot 10^{-246}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;k \leq -3.15 \cdot 10^{-260}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq -3.5 \cdot 10^{-282}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 8.5 \cdot 10^{-166}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq 3.85 \cdot 10^{+115}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;k \leq 2.5 \cdot 10^{+228}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -4.3e83Initial program 29.3%
Taylor expanded in i around -inf 51.4%
Taylor expanded in k around -inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
*-commutative56.4%
Simplified56.4%
if -4.3e83 < k < -1.35e44 or 2.5e228 < k Initial program 26.9%
Taylor expanded in k around inf 73.1%
Taylor expanded in z around inf 77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
if -1.35e44 < k < -4.50000000000000013e-19Initial program 47.0%
Taylor expanded in y5 around -inf 67.3%
if -4.50000000000000013e-19 < k < -1.24999999999999995e-81Initial program 40.5%
Taylor expanded in y4 around inf 66.6%
if -1.24999999999999995e-81 < k < -5.8999999999999998e-95Initial program 25.0%
Taylor expanded in c around inf 51.0%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
Simplified100.0%
if -5.8999999999999998e-95 < k < -2e-167Initial program 28.6%
Taylor expanded in j around inf 42.9%
Taylor expanded in x around inf 71.6%
if -2e-167 < k < -6.2000000000000001e-246 or 8.5e-166 < k < 3.84999999999999984e115Initial program 29.0%
Taylor expanded in x around inf 58.4%
if -6.2000000000000001e-246 < k < -3.14999999999999989e-260 or -3.50000000000000006e-282 < k < 8.5e-166Initial program 39.7%
Taylor expanded in j around inf 45.4%
Taylor expanded in y3 around 0 59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
*-commutative59.1%
cancel-sign-sub-inv59.1%
Simplified59.1%
if -3.14999999999999989e-260 < k < -3.50000000000000006e-282Initial program 57.1%
Taylor expanded in x around inf 57.1%
Taylor expanded in a around inf 85.9%
if 3.84999999999999984e115 < k < 2.5e228Initial program 17.2%
Taylor expanded in b around inf 58.8%
Final simplification63.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* b y0) (* i y1)))
(t_3 (- (* i y1) (* b y0)))
(t_4 (- (* c y0) (* a y1)))
(t_5 (* x (+ (+ (* y (- (* a b) (* c i))) (* y2 t_4)) (* j t_3))))
(t_6 (* x t_3))
(t_7 (* j (+ (* t (- (* b y4) (* i y5))) t_6))))
(if (<= k -1.65e+102)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -3.4e+33)
(* z (+ (* k t_2) (- (* t (- (* c i) (* a b))) (* y3 t_4))))
(if (<= k -4.4e-19)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(+ (* i (- (* y k) (* t j))) (* y0 (- (* j y3) (* k y2))))))
(if (<= k -1.15e-81)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= k -1.8e-94)
(* (* t c) (- (* z i) (* y2 y4)))
(if (<= k -1.95e-168)
(* j t_6)
(if (<= k -3.2e-245)
t_5
(if (<= k -4.2e-248)
t_7
(if (<= k -9.5e-285)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= k 1.02e-165)
t_7
(if (<= k 3.3e+114)
t_5
(if (<= k 2e+229)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j)))))
(* k (* z t_2))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (b * y0) - (i * y1);
double t_3 = (i * y1) - (b * y0);
double t_4 = (c * y0) - (a * y1);
double t_5 = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * t_3));
double t_6 = x * t_3;
double t_7 = j * ((t * ((b * y4) - (i * y5))) + t_6);
double tmp;
if (k <= -1.65e+102) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -3.4e+33) {
tmp = z * ((k * t_2) + ((t * ((c * i) - (a * b))) - (y3 * t_4)));
} else if (k <= -4.4e-19) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
} else if (k <= -1.15e-81) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (k <= -1.8e-94) {
tmp = (t * c) * ((z * i) - (y2 * y4));
} else if (k <= -1.95e-168) {
tmp = j * t_6;
} else if (k <= -3.2e-245) {
tmp = t_5;
} else if (k <= -4.2e-248) {
tmp = t_7;
} else if (k <= -9.5e-285) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 1.02e-165) {
tmp = t_7;
} else if (k <= 3.3e+114) {
tmp = t_5;
} else if (k <= 2e+229) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = k * (z * t_2);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (b * y0) - (i * y1)
t_3 = (i * y1) - (b * y0)
t_4 = (c * y0) - (a * y1)
t_5 = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * t_3))
t_6 = x * t_3
t_7 = j * ((t * ((b * y4) - (i * y5))) + t_6)
if (k <= (-1.65d+102)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-3.4d+33)) then
tmp = z * ((k * t_2) + ((t * ((c * i) - (a * b))) - (y3 * t_4)))
else if (k <= (-4.4d-19)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))))
else if (k <= (-1.15d-81)) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (k <= (-1.8d-94)) then
tmp = (t * c) * ((z * i) - (y2 * y4))
else if (k <= (-1.95d-168)) then
tmp = j * t_6
else if (k <= (-3.2d-245)) then
tmp = t_5
else if (k <= (-4.2d-248)) then
tmp = t_7
else if (k <= (-9.5d-285)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (k <= 1.02d-165) then
tmp = t_7
else if (k <= 3.3d+114) then
tmp = t_5
else if (k <= 2d+229) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
else
tmp = k * (z * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (b * y0) - (i * y1);
double t_3 = (i * y1) - (b * y0);
double t_4 = (c * y0) - (a * y1);
double t_5 = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * t_3));
double t_6 = x * t_3;
double t_7 = j * ((t * ((b * y4) - (i * y5))) + t_6);
double tmp;
if (k <= -1.65e+102) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -3.4e+33) {
tmp = z * ((k * t_2) + ((t * ((c * i) - (a * b))) - (y3 * t_4)));
} else if (k <= -4.4e-19) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2)))));
} else if (k <= -1.15e-81) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (k <= -1.8e-94) {
tmp = (t * c) * ((z * i) - (y2 * y4));
} else if (k <= -1.95e-168) {
tmp = j * t_6;
} else if (k <= -3.2e-245) {
tmp = t_5;
} else if (k <= -4.2e-248) {
tmp = t_7;
} else if (k <= -9.5e-285) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 1.02e-165) {
tmp = t_7;
} else if (k <= 3.3e+114) {
tmp = t_5;
} else if (k <= 2e+229) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = k * (z * t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (b * y0) - (i * y1) t_3 = (i * y1) - (b * y0) t_4 = (c * y0) - (a * y1) t_5 = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * t_3)) t_6 = x * t_3 t_7 = j * ((t * ((b * y4) - (i * y5))) + t_6) tmp = 0 if k <= -1.65e+102: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -3.4e+33: tmp = z * ((k * t_2) + ((t * ((c * i) - (a * b))) - (y3 * t_4))) elif k <= -4.4e-19: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2))))) elif k <= -1.15e-81: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif k <= -1.8e-94: tmp = (t * c) * ((z * i) - (y2 * y4)) elif k <= -1.95e-168: tmp = j * t_6 elif k <= -3.2e-245: tmp = t_5 elif k <= -4.2e-248: tmp = t_7 elif k <= -9.5e-285: tmp = x * (a * ((y * b) - (y1 * y2))) elif k <= 1.02e-165: tmp = t_7 elif k <= 3.3e+114: tmp = t_5 elif k <= 2e+229: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) else: tmp = k * (z * t_2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(b * y0) - Float64(i * y1)) t_3 = Float64(Float64(i * y1) - Float64(b * y0)) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_4)) + Float64(j * t_3))) t_6 = Float64(x * t_3) t_7 = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + t_6)) tmp = 0.0 if (k <= -1.65e+102) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -3.4e+33) tmp = Float64(z * Float64(Float64(k * t_2) + Float64(Float64(t * Float64(Float64(c * i) - Float64(a * b))) - Float64(y3 * t_4)))); elseif (k <= -4.4e-19) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (k <= -1.15e-81) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (k <= -1.8e-94) tmp = Float64(Float64(t * c) * Float64(Float64(z * i) - Float64(y2 * y4))); elseif (k <= -1.95e-168) tmp = Float64(j * t_6); elseif (k <= -3.2e-245) tmp = t_5; elseif (k <= -4.2e-248) tmp = t_7; elseif (k <= -9.5e-285) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (k <= 1.02e-165) tmp = t_7; elseif (k <= 3.3e+114) tmp = t_5; elseif (k <= 2e+229) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); else tmp = Float64(k * Float64(z * t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (b * y0) - (i * y1); t_3 = (i * y1) - (b * y0); t_4 = (c * y0) - (a * y1); t_5 = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * t_3)); t_6 = x * t_3; t_7 = j * ((t * ((b * y4) - (i * y5))) + t_6); tmp = 0.0; if (k <= -1.65e+102) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -3.4e+33) tmp = z * ((k * t_2) + ((t * ((c * i) - (a * b))) - (y3 * t_4))); elseif (k <= -4.4e-19) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((i * ((y * k) - (t * j))) + (y0 * ((j * y3) - (k * y2))))); elseif (k <= -1.15e-81) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (k <= -1.8e-94) tmp = (t * c) * ((z * i) - (y2 * y4)); elseif (k <= -1.95e-168) tmp = j * t_6; elseif (k <= -3.2e-245) tmp = t_5; elseif (k <= -4.2e-248) tmp = t_7; elseif (k <= -9.5e-285) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (k <= 1.02e-165) tmp = t_7; elseif (k <= 3.3e+114) tmp = t_5; elseif (k <= 2e+229) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); else tmp = k * (z * t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(x * t$95$3), $MachinePrecision]}, Block[{t$95$7 = N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.65e+102], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3.4e+33], N[(z * N[(N[(k * t$95$2), $MachinePrecision] + N[(N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y3 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.4e-19], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.15e-81], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.8e-94], N[(N[(t * c), $MachinePrecision] * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.95e-168], N[(j * t$95$6), $MachinePrecision], If[LessEqual[k, -3.2e-245], t$95$5, If[LessEqual[k, -4.2e-248], t$95$7, If[LessEqual[k, -9.5e-285], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.02e-165], t$95$7, If[LessEqual[k, 3.3e+114], t$95$5, If[LessEqual[k, 2e+229], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(z * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := b \cdot y0 - i \cdot y1\\
t_3 := i \cdot y1 - b \cdot y0\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_4\right) + j \cdot t_3\right)\\
t_6 := x \cdot t_3\\
t_7 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + t_6\right)\\
\mathbf{if}\;k \leq -1.65 \cdot 10^{+102}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -3.4 \cdot 10^{+33}:\\
\;\;\;\;z \cdot \left(k \cdot t_2 + \left(t \cdot \left(c \cdot i - a \cdot b\right) - y3 \cdot t_4\right)\right)\\
\mathbf{elif}\;k \leq -4.4 \cdot 10^{-19}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(i \cdot \left(y \cdot k - t \cdot j\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;k \leq -1.15 \cdot 10^{-81}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq -1.8 \cdot 10^{-94}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(z \cdot i - y2 \cdot y4\right)\\
\mathbf{elif}\;k \leq -1.95 \cdot 10^{-168}:\\
\;\;\;\;j \cdot t_6\\
\mathbf{elif}\;k \leq -3.2 \cdot 10^{-245}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq -4.2 \cdot 10^{-248}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;k \leq -9.5 \cdot 10^{-285}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 1.02 \cdot 10^{-165}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;k \leq 3.3 \cdot 10^{+114}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+229}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(z \cdot t_2\right)\\
\end{array}
\end{array}
if k < -1.64999999999999999e102Initial program 36.4%
Taylor expanded in i around -inf 51.6%
Taylor expanded in k around -inf 60.9%
associate-*r*60.9%
neg-mul-160.9%
*-commutative60.9%
Simplified60.9%
if -1.64999999999999999e102 < k < -3.3999999999999999e33Initial program 11.0%
Taylor expanded in z around -inf 78.2%
if -3.3999999999999999e33 < k < -4.3999999999999997e-19Initial program 47.0%
Taylor expanded in y5 around -inf 67.3%
if -4.3999999999999997e-19 < k < -1.14999999999999996e-81Initial program 40.5%
Taylor expanded in y4 around inf 66.6%
if -1.14999999999999996e-81 < k < -1.8e-94Initial program 25.0%
Taylor expanded in c around inf 51.0%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
Simplified100.0%
if -1.8e-94 < k < -1.95000000000000006e-168Initial program 28.6%
Taylor expanded in j around inf 42.9%
Taylor expanded in x around inf 71.6%
if -1.95000000000000006e-168 < k < -3.19999999999999986e-245 or 1.02e-165 < k < 3.3000000000000001e114Initial program 29.0%
Taylor expanded in x around inf 58.4%
if -3.19999999999999986e-245 < k < -4.2e-248 or -9.4999999999999997e-285 < k < 1.02e-165Initial program 39.7%
Taylor expanded in j around inf 45.4%
Taylor expanded in y3 around 0 59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
*-commutative59.1%
cancel-sign-sub-inv59.1%
Simplified59.1%
if -4.2e-248 < k < -9.4999999999999997e-285Initial program 57.1%
Taylor expanded in x around inf 57.1%
Taylor expanded in a around inf 85.9%
if 3.3000000000000001e114 < k < 2e229Initial program 17.2%
Taylor expanded in b around inf 58.8%
if 2e229 < k Initial program 31.3%
Taylor expanded in k around inf 75.0%
Taylor expanded in z around inf 63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Final simplification63.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (- (* z k) (* x j))))
(t_2 (- (* z t) (* x y)))
(t_3 (- (* b y4) (* i y5)))
(t_4 (- (* y y3) (* t y2)))
(t_5 (* c (+ (+ (* i t_2) (* y0 (- (* x y2) (* z y3)))) (* y4 t_4))))
(t_6 (- (* b y0) (* i y1)))
(t_7 (- (* t j) (* y k)))
(t_8 (- (* c i) (* a b)))
(t_9 (- (* i y1) (* b y0)))
(t_10 (- (* c y0) (* a y1))))
(if (<= y3 -5.4e+81)
t_5
(if (<= y3 -7.8e+38)
(* j (+ (+ (* t t_3) (* y3 (- (* y0 y5) (* y1 y4)))) (* x t_9)))
(if (<= y3 -7.2e+17)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_7)) t_1))
(if (<= y3 -1.35e-44)
(* x (+ (+ (* y (- (* a b) (* c i))) (* y2 t_10)) (* j t_9)))
(if (<= y3 -7.5e-161)
(* z (+ (* k t_6) (- (* t t_8) (* y3 t_10))))
(if (<= y3 -4.1e-199)
(* y4 (+ (+ (* b t_7) (* y1 (- (* k y2) (* j y3)))) (* c t_4)))
(if (<= y3 -1.2e-216)
(* t (+ (+ (* z t_8) (* j t_3)) (* y2 (- (* a y5) (* c y4)))))
(if (<= y3 2.3e-191)
t_5
(if (<= y3 3.1e-109)
(* b t_1)
(if (<= y3 19000000000.0)
t_5
(if (<= y3 5.8e+68)
(*
k
(+
(+
(* y (- (* i y5) (* b y4)))
(* y2 (- (* y1 y4) (* y0 y5))))
(* z t_6)))
(if (<= y3 2.4e+121)
t_5
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+
(* y5 (- (* y k) (* t j)))
(* c t_2))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((z * k) - (x * j));
double t_2 = (z * t) - (x * y);
double t_3 = (b * y4) - (i * y5);
double t_4 = (y * y3) - (t * y2);
double t_5 = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4));
double t_6 = (b * y0) - (i * y1);
double t_7 = (t * j) - (y * k);
double t_8 = (c * i) - (a * b);
double t_9 = (i * y1) - (b * y0);
double t_10 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -5.4e+81) {
tmp = t_5;
} else if (y3 <= -7.8e+38) {
tmp = j * (((t * t_3) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_9));
} else if (y3 <= -7.2e+17) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_7)) + t_1);
} else if (y3 <= -1.35e-44) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_10)) + (j * t_9));
} else if (y3 <= -7.5e-161) {
tmp = z * ((k * t_6) + ((t * t_8) - (y3 * t_10)));
} else if (y3 <= -4.1e-199) {
tmp = y4 * (((b * t_7) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4));
} else if (y3 <= -1.2e-216) {
tmp = t * (((z * t_8) + (j * t_3)) + (y2 * ((a * y5) - (c * y4))));
} else if (y3 <= 2.3e-191) {
tmp = t_5;
} else if (y3 <= 3.1e-109) {
tmp = b * t_1;
} else if (y3 <= 19000000000.0) {
tmp = t_5;
} else if (y3 <= 5.8e+68) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * t_6));
} else if (y3 <= 2.4e+121) {
tmp = t_5;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = y0 * ((z * k) - (x * j))
t_2 = (z * t) - (x * y)
t_3 = (b * y4) - (i * y5)
t_4 = (y * y3) - (t * y2)
t_5 = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4))
t_6 = (b * y0) - (i * y1)
t_7 = (t * j) - (y * k)
t_8 = (c * i) - (a * b)
t_9 = (i * y1) - (b * y0)
t_10 = (c * y0) - (a * y1)
if (y3 <= (-5.4d+81)) then
tmp = t_5
else if (y3 <= (-7.8d+38)) then
tmp = j * (((t * t_3) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_9))
else if (y3 <= (-7.2d+17)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_7)) + t_1)
else if (y3 <= (-1.35d-44)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_10)) + (j * t_9))
else if (y3 <= (-7.5d-161)) then
tmp = z * ((k * t_6) + ((t * t_8) - (y3 * t_10)))
else if (y3 <= (-4.1d-199)) then
tmp = y4 * (((b * t_7) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4))
else if (y3 <= (-1.2d-216)) then
tmp = t * (((z * t_8) + (j * t_3)) + (y2 * ((a * y5) - (c * y4))))
else if (y3 <= 2.3d-191) then
tmp = t_5
else if (y3 <= 3.1d-109) then
tmp = b * t_1
else if (y3 <= 19000000000.0d0) then
tmp = t_5
else if (y3 <= 5.8d+68) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * t_6))
else if (y3 <= 2.4d+121) then
tmp = t_5
else
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((z * k) - (x * j));
double t_2 = (z * t) - (x * y);
double t_3 = (b * y4) - (i * y5);
double t_4 = (y * y3) - (t * y2);
double t_5 = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4));
double t_6 = (b * y0) - (i * y1);
double t_7 = (t * j) - (y * k);
double t_8 = (c * i) - (a * b);
double t_9 = (i * y1) - (b * y0);
double t_10 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -5.4e+81) {
tmp = t_5;
} else if (y3 <= -7.8e+38) {
tmp = j * (((t * t_3) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_9));
} else if (y3 <= -7.2e+17) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_7)) + t_1);
} else if (y3 <= -1.35e-44) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_10)) + (j * t_9));
} else if (y3 <= -7.5e-161) {
tmp = z * ((k * t_6) + ((t * t_8) - (y3 * t_10)));
} else if (y3 <= -4.1e-199) {
tmp = y4 * (((b * t_7) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4));
} else if (y3 <= -1.2e-216) {
tmp = t * (((z * t_8) + (j * t_3)) + (y2 * ((a * y5) - (c * y4))));
} else if (y3 <= 2.3e-191) {
tmp = t_5;
} else if (y3 <= 3.1e-109) {
tmp = b * t_1;
} else if (y3 <= 19000000000.0) {
tmp = t_5;
} else if (y3 <= 5.8e+68) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * t_6));
} else if (y3 <= 2.4e+121) {
tmp = t_5;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * ((z * k) - (x * j)) t_2 = (z * t) - (x * y) t_3 = (b * y4) - (i * y5) t_4 = (y * y3) - (t * y2) t_5 = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4)) t_6 = (b * y0) - (i * y1) t_7 = (t * j) - (y * k) t_8 = (c * i) - (a * b) t_9 = (i * y1) - (b * y0) t_10 = (c * y0) - (a * y1) tmp = 0 if y3 <= -5.4e+81: tmp = t_5 elif y3 <= -7.8e+38: tmp = j * (((t * t_3) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_9)) elif y3 <= -7.2e+17: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_7)) + t_1) elif y3 <= -1.35e-44: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_10)) + (j * t_9)) elif y3 <= -7.5e-161: tmp = z * ((k * t_6) + ((t * t_8) - (y3 * t_10))) elif y3 <= -4.1e-199: tmp = y4 * (((b * t_7) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4)) elif y3 <= -1.2e-216: tmp = t * (((z * t_8) + (j * t_3)) + (y2 * ((a * y5) - (c * y4)))) elif y3 <= 2.3e-191: tmp = t_5 elif y3 <= 3.1e-109: tmp = b * t_1 elif y3 <= 19000000000.0: tmp = t_5 elif y3 <= 5.8e+68: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * t_6)) elif y3 <= 2.4e+121: tmp = t_5 else: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(Float64(z * k) - Float64(x * j))) t_2 = Float64(Float64(z * t) - Float64(x * y)) t_3 = Float64(Float64(b * y4) - Float64(i * y5)) t_4 = Float64(Float64(y * y3) - Float64(t * y2)) t_5 = Float64(c * Float64(Float64(Float64(i * t_2) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_4))) t_6 = Float64(Float64(b * y0) - Float64(i * y1)) t_7 = Float64(Float64(t * j) - Float64(y * k)) t_8 = Float64(Float64(c * i) - Float64(a * b)) t_9 = Float64(Float64(i * y1) - Float64(b * y0)) t_10 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y3 <= -5.4e+81) tmp = t_5; elseif (y3 <= -7.8e+38) tmp = Float64(j * Float64(Float64(Float64(t * t_3) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * t_9))); elseif (y3 <= -7.2e+17) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_7)) + t_1)); elseif (y3 <= -1.35e-44) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_10)) + Float64(j * t_9))); elseif (y3 <= -7.5e-161) tmp = Float64(z * Float64(Float64(k * t_6) + Float64(Float64(t * t_8) - Float64(y3 * t_10)))); elseif (y3 <= -4.1e-199) tmp = Float64(y4 * Float64(Float64(Float64(b * t_7) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_4))); elseif (y3 <= -1.2e-216) tmp = Float64(t * Float64(Float64(Float64(z * t_8) + Float64(j * t_3)) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= 2.3e-191) tmp = t_5; elseif (y3 <= 3.1e-109) tmp = Float64(b * t_1); elseif (y3 <= 19000000000.0) tmp = t_5; elseif (y3 <= 5.8e+68) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(z * t_6))); elseif (y3 <= 2.4e+121) tmp = t_5; else tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * t_2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * ((z * k) - (x * j)); t_2 = (z * t) - (x * y); t_3 = (b * y4) - (i * y5); t_4 = (y * y3) - (t * y2); t_5 = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4)); t_6 = (b * y0) - (i * y1); t_7 = (t * j) - (y * k); t_8 = (c * i) - (a * b); t_9 = (i * y1) - (b * y0); t_10 = (c * y0) - (a * y1); tmp = 0.0; if (y3 <= -5.4e+81) tmp = t_5; elseif (y3 <= -7.8e+38) tmp = j * (((t * t_3) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_9)); elseif (y3 <= -7.2e+17) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_7)) + t_1); elseif (y3 <= -1.35e-44) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_10)) + (j * t_9)); elseif (y3 <= -7.5e-161) tmp = z * ((k * t_6) + ((t * t_8) - (y3 * t_10))); elseif (y3 <= -4.1e-199) tmp = y4 * (((b * t_7) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4)); elseif (y3 <= -1.2e-216) tmp = t * (((z * t_8) + (j * t_3)) + (y2 * ((a * y5) - (c * y4)))); elseif (y3 <= 2.3e-191) tmp = t_5; elseif (y3 <= 3.1e-109) tmp = b * t_1; elseif (y3 <= 19000000000.0) tmp = t_5; elseif (y3 <= 5.8e+68) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * t_6)); elseif (y3 <= 2.4e+121) tmp = t_5; else tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(c * N[(N[(N[(i * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -5.4e+81], t$95$5, If[LessEqual[y3, -7.8e+38], N[(j * N[(N[(N[(t * t$95$3), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.2e+17], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$7), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.35e-44], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$10), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.5e-161], N[(z * N[(N[(k * t$95$6), $MachinePrecision] + N[(N[(t * t$95$8), $MachinePrecision] - N[(y3 * t$95$10), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4.1e-199], N[(y4 * N[(N[(N[(b * t$95$7), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.2e-216], N[(t * N[(N[(N[(z * t$95$8), $MachinePrecision] + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.3e-191], t$95$5, If[LessEqual[y3, 3.1e-109], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y3, 19000000000.0], t$95$5, If[LessEqual[y3, 5.8e+68], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.4e+121], t$95$5, N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(z \cdot k - x \cdot j\right)\\
t_2 := z \cdot t - x \cdot y\\
t_3 := b \cdot y4 - i \cdot y5\\
t_4 := y \cdot y3 - t \cdot y2\\
t_5 := c \cdot \left(\left(i \cdot t_2 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_4\right)\\
t_6 := b \cdot y0 - i \cdot y1\\
t_7 := t \cdot j - y \cdot k\\
t_8 := c \cdot i - a \cdot b\\
t_9 := i \cdot y1 - b \cdot y0\\
t_10 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y3 \leq -5.4 \cdot 10^{+81}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y3 \leq -7.8 \cdot 10^{+38}:\\
\;\;\;\;j \cdot \left(\left(t \cdot t_3 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot t_9\right)\\
\mathbf{elif}\;y3 \leq -7.2 \cdot 10^{+17}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_7\right) + t_1\right)\\
\mathbf{elif}\;y3 \leq -1.35 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_10\right) + j \cdot t_9\right)\\
\mathbf{elif}\;y3 \leq -7.5 \cdot 10^{-161}:\\
\;\;\;\;z \cdot \left(k \cdot t_6 + \left(t \cdot t_8 - y3 \cdot t_10\right)\right)\\
\mathbf{elif}\;y3 \leq -4.1 \cdot 10^{-199}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_7 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_4\right)\\
\mathbf{elif}\;y3 \leq -1.2 \cdot 10^{-216}:\\
\;\;\;\;t \cdot \left(\left(z \cdot t_8 + j \cdot t_3\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 2.3 \cdot 10^{-191}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y3 \leq 3.1 \cdot 10^{-109}:\\
\;\;\;\;b \cdot t_1\\
\mathbf{elif}\;y3 \leq 19000000000:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y3 \leq 5.8 \cdot 10^{+68}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + z \cdot t_6\right)\\
\mathbf{elif}\;y3 \leq 2.4 \cdot 10^{+121}:\\
\;\;\;\;t_5\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot t_2\right)\right)\\
\end{array}
\end{array}
if y3 < -5.3999999999999999e81 or -1.20000000000000002e-216 < y3 < 2.30000000000000011e-191 or 3.1e-109 < y3 < 1.9e10 or 5.80000000000000023e68 < y3 < 2.4e121Initial program 33.5%
Taylor expanded in c around inf 60.7%
if -5.3999999999999999e81 < y3 < -7.80000000000000047e38Initial program 9.1%
Taylor expanded in j around inf 81.9%
if -7.80000000000000047e38 < y3 < -7.2e17Initial program 13.5%
Taylor expanded in b around inf 74.2%
if -7.2e17 < y3 < -1.35e-44Initial program 25.3%
Taylor expanded in x around inf 75.0%
if -1.35e-44 < y3 < -7.49999999999999991e-161Initial program 35.3%
Taylor expanded in z around -inf 60.5%
if -7.49999999999999991e-161 < y3 < -4.10000000000000022e-199Initial program 61.3%
Taylor expanded in y4 around inf 84.5%
if -4.10000000000000022e-199 < y3 < -1.20000000000000002e-216Initial program 14.3%
Taylor expanded in t around inf 72.2%
if 2.30000000000000011e-191 < y3 < 3.1e-109Initial program 40.2%
Taylor expanded in b around inf 55.5%
Taylor expanded in y0 around inf 55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
if 1.9e10 < y3 < 5.80000000000000023e68Initial program 14.3%
Taylor expanded in k around inf 87.0%
if 2.4e121 < y3 Initial program 25.2%
Taylor expanded in i around -inf 56.5%
Final simplification64.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1)))))
(t_2 (- (* t j) (* y k)))
(t_3 (* y0 (- (* z k) (* x j))))
(t_4 (- (* i y1) (* b y0)))
(t_5
(*
y4
(+
(+ (* b t_2) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= k -4.2e+83)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -1.8e+29)
t_1
(if (<= k -8100.0)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= k -4.5e-19)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= k -7.6e-100)
t_5
(if (<= k -5.8e-167)
(* b t_3)
(if (<= k -4.6e-284)
t_5
(if (<= k 2.4e-168)
(* j (+ (* t (- (* b y4) (* i y5))) (* x t_4)))
(if (<= k 1.4e-140)
(* x (* a (* y1 (- y2))))
(if (<= k 8.5e+112)
(*
x
(+
(+
(* y (- (* a b) (* c i)))
(* y2 (- (* c y0) (* a y1))))
(* j t_4)))
(if (<= k 1.6e+228)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_2)) t_3))
t_1)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = (t * j) - (y * k);
double t_3 = y0 * ((z * k) - (x * j));
double t_4 = (i * y1) - (b * y0);
double t_5 = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (k <= -4.2e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.8e+29) {
tmp = t_1;
} else if (k <= -8100.0) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -4.5e-19) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= -7.6e-100) {
tmp = t_5;
} else if (k <= -5.8e-167) {
tmp = b * t_3;
} else if (k <= -4.6e-284) {
tmp = t_5;
} else if (k <= 2.4e-168) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (x * t_4));
} else if (k <= 1.4e-140) {
tmp = x * (a * (y1 * -y2));
} else if (k <= 8.5e+112) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4));
} else if (k <= 1.6e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + t_3);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = k * (z * ((b * y0) - (i * y1)))
t_2 = (t * j) - (y * k)
t_3 = y0 * ((z * k) - (x * j))
t_4 = (i * y1) - (b * y0)
t_5 = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (k <= (-4.2d+83)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-1.8d+29)) then
tmp = t_1
else if (k <= (-8100.0d0)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (k <= (-4.5d-19)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (k <= (-7.6d-100)) then
tmp = t_5
else if (k <= (-5.8d-167)) then
tmp = b * t_3
else if (k <= (-4.6d-284)) then
tmp = t_5
else if (k <= 2.4d-168) then
tmp = j * ((t * ((b * y4) - (i * y5))) + (x * t_4))
else if (k <= 1.4d-140) then
tmp = x * (a * (y1 * -y2))
else if (k <= 8.5d+112) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4))
else if (k <= 1.6d+228) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + t_3)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = (t * j) - (y * k);
double t_3 = y0 * ((z * k) - (x * j));
double t_4 = (i * y1) - (b * y0);
double t_5 = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (k <= -4.2e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.8e+29) {
tmp = t_1;
} else if (k <= -8100.0) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -4.5e-19) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= -7.6e-100) {
tmp = t_5;
} else if (k <= -5.8e-167) {
tmp = b * t_3;
} else if (k <= -4.6e-284) {
tmp = t_5;
} else if (k <= 2.4e-168) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (x * t_4));
} else if (k <= 1.4e-140) {
tmp = x * (a * (y1 * -y2));
} else if (k <= 8.5e+112) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4));
} else if (k <= 1.6e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + t_3);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (z * ((b * y0) - (i * y1))) t_2 = (t * j) - (y * k) t_3 = y0 * ((z * k) - (x * j)) t_4 = (i * y1) - (b * y0) t_5 = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if k <= -4.2e+83: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -1.8e+29: tmp = t_1 elif k <= -8100.0: tmp = x * (c * ((y0 * y2) - (y * i))) elif k <= -4.5e-19: tmp = c * (y0 * ((x * y2) - (z * y3))) elif k <= -7.6e-100: tmp = t_5 elif k <= -5.8e-167: tmp = b * t_3 elif k <= -4.6e-284: tmp = t_5 elif k <= 2.4e-168: tmp = j * ((t * ((b * y4) - (i * y5))) + (x * t_4)) elif k <= 1.4e-140: tmp = x * (a * (y1 * -y2)) elif k <= 8.5e+112: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4)) elif k <= 1.6e+228: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + t_3) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_2 = Float64(Float64(t * j) - Float64(y * k)) t_3 = Float64(y0 * Float64(Float64(z * k) - Float64(x * j))) t_4 = Float64(Float64(i * y1) - Float64(b * y0)) t_5 = Float64(y4 * Float64(Float64(Float64(b * t_2) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (k <= -4.2e+83) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -1.8e+29) tmp = t_1; elseif (k <= -8100.0) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (k <= -4.5e-19) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (k <= -7.6e-100) tmp = t_5; elseif (k <= -5.8e-167) tmp = Float64(b * t_3); elseif (k <= -4.6e-284) tmp = t_5; elseif (k <= 2.4e-168) tmp = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(x * t_4))); elseif (k <= 1.4e-140) tmp = Float64(x * Float64(a * Float64(y1 * Float64(-y2)))); elseif (k <= 8.5e+112) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_4))); elseif (k <= 1.6e+228) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_2)) + t_3)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (z * ((b * y0) - (i * y1))); t_2 = (t * j) - (y * k); t_3 = y0 * ((z * k) - (x * j)); t_4 = (i * y1) - (b * y0); t_5 = y4 * (((b * t_2) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (k <= -4.2e+83) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -1.8e+29) tmp = t_1; elseif (k <= -8100.0) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (k <= -4.5e-19) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (k <= -7.6e-100) tmp = t_5; elseif (k <= -5.8e-167) tmp = b * t_3; elseif (k <= -4.6e-284) tmp = t_5; elseif (k <= 2.4e-168) tmp = j * ((t * ((b * y4) - (i * y5))) + (x * t_4)); elseif (k <= 1.4e-140) tmp = x * (a * (y1 * -y2)); elseif (k <= 8.5e+112) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4)); elseif (k <= 1.6e+228) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + t_3); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * N[(N[(N[(b * t$95$2), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.2e+83], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.8e+29], t$95$1, If[LessEqual[k, -8100.0], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.5e-19], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -7.6e-100], t$95$5, If[LessEqual[k, -5.8e-167], N[(b * t$95$3), $MachinePrecision], If[LessEqual[k, -4.6e-284], t$95$5, If[LessEqual[k, 2.4e-168], N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.4e-140], N[(x * N[(a * N[(y1 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.5e+112], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.6e+228], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_2 := t \cdot j - y \cdot k\\
t_3 := y0 \cdot \left(z \cdot k - x \cdot j\right)\\
t_4 := i \cdot y1 - b \cdot y0\\
t_5 := y4 \cdot \left(\left(b \cdot t_2 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;k \leq -4.2 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -1.8 \cdot 10^{+29}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -8100:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;k \leq -4.5 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq -7.6 \cdot 10^{-100}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq -5.8 \cdot 10^{-167}:\\
\;\;\;\;b \cdot t_3\\
\mathbf{elif}\;k \leq -4.6 \cdot 10^{-284}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq 2.4 \cdot 10^{-168}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot t_4\right)\\
\mathbf{elif}\;k \leq 1.4 \cdot 10^{-140}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y1 \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;k \leq 8.5 \cdot 10^{+112}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t_4\right)\\
\mathbf{elif}\;k \leq 1.6 \cdot 10^{+228}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_2\right) + t_3\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -4.20000000000000005e83Initial program 29.3%
Taylor expanded in i around -inf 51.4%
Taylor expanded in k around -inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
*-commutative56.4%
Simplified56.4%
if -4.20000000000000005e83 < k < -1.79999999999999988e29 or 1.6000000000000001e228 < k Initial program 28.5%
Taylor expanded in k around inf 71.4%
Taylor expanded in z around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -1.79999999999999988e29 < k < -8100Initial program 55.4%
Taylor expanded in x around inf 55.9%
Taylor expanded in c around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
*-commutative56.0%
*-commutative56.0%
Applied egg-rr56.0%
if -8100 < k < -4.50000000000000013e-19Initial program 26.5%
Taylor expanded in c around inf 25.4%
Taylor expanded in y0 around inf 75.4%
if -4.50000000000000013e-19 < k < -7.59999999999999995e-100 or -5.80000000000000005e-167 < k < -4.6e-284Initial program 39.2%
Taylor expanded in y4 around inf 56.8%
if -7.59999999999999995e-100 < k < -5.80000000000000005e-167Initial program 36.4%
Taylor expanded in b around inf 27.8%
Taylor expanded in y0 around inf 73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
if -4.6e-284 < k < 2.3999999999999999e-168Initial program 44.3%
Taylor expanded in j around inf 44.5%
Taylor expanded in y3 around 0 57.6%
cancel-sign-sub-inv57.6%
*-commutative57.6%
*-commutative57.6%
cancel-sign-sub-inv57.6%
Simplified57.6%
if 2.3999999999999999e-168 < k < 1.4000000000000001e-140Initial program 37.5%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 50.6%
Taylor expanded in c around 0 63.2%
mul-1-neg63.2%
*-commutative63.2%
distribute-rgt-neg-in63.2%
*-commutative63.2%
Simplified63.2%
if 1.4000000000000001e-140 < k < 8.50000000000000047e112Initial program 22.1%
Taylor expanded in x around inf 58.3%
if 8.50000000000000047e112 < k < 1.6000000000000001e228Initial program 17.2%
Taylor expanded in b around inf 58.8%
Final simplification60.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1)))))
(t_2 (* x (* a (- (* y b) (* y1 y2)))))
(t_3
(* j (+ (* t (- (* b y4) (* i y5))) (* x (- (* i y1) (* b y0)))))))
(if (<= k -4.6e+83)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -2.2e+28)
t_1
(if (<= k -1.22e-60)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= k -1.5e-257)
t_3
(if (<= k -1.45e-282)
t_2
(if (<= k 2e-174)
t_3
(if (<= k 1.95e-100)
t_2
(if (<= k 6500000000000.0)
(* x (* y (- (* a b) (* c i))))
(if (<= k 2.4e+118)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= k 2e+229)
(*
b
(+
(+
(* a (- (* x y) (* z t)))
(* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))
t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = x * (a * ((y * b) - (y1 * y2)));
double t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))));
double tmp;
if (k <= -4.6e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -2.2e+28) {
tmp = t_1;
} else if (k <= -1.22e-60) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -1.5e-257) {
tmp = t_3;
} else if (k <= -1.45e-282) {
tmp = t_2;
} else if (k <= 2e-174) {
tmp = t_3;
} else if (k <= 1.95e-100) {
tmp = t_2;
} else if (k <= 6500000000000.0) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (k <= 2.4e+118) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (k <= 2e+229) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = k * (z * ((b * y0) - (i * y1)))
t_2 = x * (a * ((y * b) - (y1 * y2)))
t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))))
if (k <= (-4.6d+83)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-2.2d+28)) then
tmp = t_1
else if (k <= (-1.22d-60)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (k <= (-1.5d-257)) then
tmp = t_3
else if (k <= (-1.45d-282)) then
tmp = t_2
else if (k <= 2d-174) then
tmp = t_3
else if (k <= 1.95d-100) then
tmp = t_2
else if (k <= 6500000000000.0d0) then
tmp = x * (y * ((a * b) - (c * i)))
else if (k <= 2.4d+118) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (k <= 2d+229) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = x * (a * ((y * b) - (y1 * y2)));
double t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))));
double tmp;
if (k <= -4.6e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -2.2e+28) {
tmp = t_1;
} else if (k <= -1.22e-60) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -1.5e-257) {
tmp = t_3;
} else if (k <= -1.45e-282) {
tmp = t_2;
} else if (k <= 2e-174) {
tmp = t_3;
} else if (k <= 1.95e-100) {
tmp = t_2;
} else if (k <= 6500000000000.0) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (k <= 2.4e+118) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (k <= 2e+229) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (z * ((b * y0) - (i * y1))) t_2 = x * (a * ((y * b) - (y1 * y2))) t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0)))) tmp = 0 if k <= -4.6e+83: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -2.2e+28: tmp = t_1 elif k <= -1.22e-60: tmp = x * (c * ((y0 * y2) - (y * i))) elif k <= -1.5e-257: tmp = t_3 elif k <= -1.45e-282: tmp = t_2 elif k <= 2e-174: tmp = t_3 elif k <= 1.95e-100: tmp = t_2 elif k <= 6500000000000.0: tmp = x * (y * ((a * b) - (c * i))) elif k <= 2.4e+118: tmp = c * (y4 * ((y * y3) - (t * y2))) elif k <= 2e+229: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_2 = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))) t_3 = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) tmp = 0.0 if (k <= -4.6e+83) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -2.2e+28) tmp = t_1; elseif (k <= -1.22e-60) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (k <= -1.5e-257) tmp = t_3; elseif (k <= -1.45e-282) tmp = t_2; elseif (k <= 2e-174) tmp = t_3; elseif (k <= 1.95e-100) tmp = t_2; elseif (k <= 6500000000000.0) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (k <= 2.4e+118) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (k <= 2e+229) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (z * ((b * y0) - (i * y1))); t_2 = x * (a * ((y * b) - (y1 * y2))); t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0)))); tmp = 0.0; if (k <= -4.6e+83) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -2.2e+28) tmp = t_1; elseif (k <= -1.22e-60) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (k <= -1.5e-257) tmp = t_3; elseif (k <= -1.45e-282) tmp = t_2; elseif (k <= 2e-174) tmp = t_3; elseif (k <= 1.95e-100) tmp = t_2; elseif (k <= 6500000000000.0) tmp = x * (y * ((a * b) - (c * i))); elseif (k <= 2.4e+118) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (k <= 2e+229) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.6e+83], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.2e+28], t$95$1, If[LessEqual[k, -1.22e-60], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.5e-257], t$95$3, If[LessEqual[k, -1.45e-282], t$95$2, If[LessEqual[k, 2e-174], t$95$3, If[LessEqual[k, 1.95e-100], t$95$2, If[LessEqual[k, 6500000000000.0], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.4e+118], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2e+229], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_2 := x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
t_3 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;k \leq -4.6 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -2.2 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -1.22 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;k \leq -1.5 \cdot 10^{-257}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq -1.45 \cdot 10^{-282}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 2 \cdot 10^{-174}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 1.95 \cdot 10^{-100}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 6500000000000:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;k \leq 2.4 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+229}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -4.5999999999999999e83Initial program 29.3%
Taylor expanded in i around -inf 51.4%
Taylor expanded in k around -inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
*-commutative56.4%
Simplified56.4%
if -4.5999999999999999e83 < k < -2.19999999999999986e28 or 2e229 < k Initial program 28.5%
Taylor expanded in k around inf 71.4%
Taylor expanded in z around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -2.19999999999999986e28 < k < -1.22e-60Initial program 50.5%
Taylor expanded in x around inf 34.0%
Taylor expanded in c around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
*-commutative43.0%
*-commutative43.0%
Applied egg-rr43.0%
if -1.22e-60 < k < -1.5e-257 or -1.44999999999999999e-282 < k < 2e-174Initial program 36.6%
Taylor expanded in j around inf 45.6%
Taylor expanded in y3 around 0 55.9%
cancel-sign-sub-inv55.9%
*-commutative55.9%
*-commutative55.9%
cancel-sign-sub-inv55.9%
Simplified55.9%
if -1.5e-257 < k < -1.44999999999999999e-282 or 2e-174 < k < 1.94999999999999989e-100Initial program 40.0%
Taylor expanded in x around inf 56.0%
Taylor expanded in a around inf 64.8%
if 1.94999999999999989e-100 < k < 6.5e12Initial program 19.1%
Taylor expanded in y around inf 43.9%
Taylor expanded in x around inf 54.0%
if 6.5e12 < k < 2.4e118Initial program 20.3%
Taylor expanded in c around inf 60.3%
Taylor expanded in y4 around inf 55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
if 2.4e118 < k < 2e229Initial program 17.9%
Taylor expanded in b around inf 60.9%
Final simplification58.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (- (* z k) (* x j))))
(t_2 (- (* y y3) (* t y2)))
(t_3 (- (* z t) (* x y)))
(t_4 (* c (+ (+ (* i t_3) (* y0 (- (* x y2) (* z y3)))) (* y4 t_2))))
(t_5 (- (* t j) (* y k)))
(t_6 (- (* i y1) (* b y0)))
(t_7 (- (* c y0) (* a y1))))
(if (<= y3 -2.8e+81)
t_4
(if (<= y3 -1.45e+36)
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x t_6)))
(if (<= y3 -1.45e+18)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_5)) t_1))
(if (<= y3 -8e-45)
(* x (+ (+ (* y (- (* a b) (* c i))) (* y2 t_7)) (* j t_6)))
(if (<= y3 -8e-160)
(*
z
(+
(* k (- (* b y0) (* i y1)))
(- (* t (- (* c i) (* a b))) (* y3 t_7))))
(if (<= y3 -5.6e-199)
(* y4 (+ (+ (* b t_5) (* y1 (- (* k y2) (* j y3)))) (* c t_2)))
(if (<= y3 -7e-233)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= y3 4e-189)
t_4
(if (<= y3 1.3e-108)
(* b t_1)
(if (<= y3 1.85e+120)
t_4
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c t_3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((z * k) - (x * j));
double t_2 = (y * y3) - (t * y2);
double t_3 = (z * t) - (x * y);
double t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
double t_5 = (t * j) - (y * k);
double t_6 = (i * y1) - (b * y0);
double t_7 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -2.8e+81) {
tmp = t_4;
} else if (y3 <= -1.45e+36) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_6));
} else if (y3 <= -1.45e+18) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + t_1);
} else if (y3 <= -8e-45) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_6));
} else if (y3 <= -8e-160) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_7)));
} else if (y3 <= -5.6e-199) {
tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (y3 <= -7e-233) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (y3 <= 4e-189) {
tmp = t_4;
} else if (y3 <= 1.3e-108) {
tmp = b * t_1;
} else if (y3 <= 1.85e+120) {
tmp = t_4;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = y0 * ((z * k) - (x * j))
t_2 = (y * y3) - (t * y2)
t_3 = (z * t) - (x * y)
t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2))
t_5 = (t * j) - (y * k)
t_6 = (i * y1) - (b * y0)
t_7 = (c * y0) - (a * y1)
if (y3 <= (-2.8d+81)) then
tmp = t_4
else if (y3 <= (-1.45d+36)) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_6))
else if (y3 <= (-1.45d+18)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + t_1)
else if (y3 <= (-8d-45)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_6))
else if (y3 <= (-8d-160)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_7)))
else if (y3 <= (-5.6d-199)) then
tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2))
else if (y3 <= (-7d-233)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (y3 <= 4d-189) then
tmp = t_4
else if (y3 <= 1.3d-108) then
tmp = b * t_1
else if (y3 <= 1.85d+120) then
tmp = t_4
else
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((z * k) - (x * j));
double t_2 = (y * y3) - (t * y2);
double t_3 = (z * t) - (x * y);
double t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
double t_5 = (t * j) - (y * k);
double t_6 = (i * y1) - (b * y0);
double t_7 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -2.8e+81) {
tmp = t_4;
} else if (y3 <= -1.45e+36) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_6));
} else if (y3 <= -1.45e+18) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + t_1);
} else if (y3 <= -8e-45) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_6));
} else if (y3 <= -8e-160) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_7)));
} else if (y3 <= -5.6e-199) {
tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (y3 <= -7e-233) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (y3 <= 4e-189) {
tmp = t_4;
} else if (y3 <= 1.3e-108) {
tmp = b * t_1;
} else if (y3 <= 1.85e+120) {
tmp = t_4;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * ((z * k) - (x * j)) t_2 = (y * y3) - (t * y2) t_3 = (z * t) - (x * y) t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)) t_5 = (t * j) - (y * k) t_6 = (i * y1) - (b * y0) t_7 = (c * y0) - (a * y1) tmp = 0 if y3 <= -2.8e+81: tmp = t_4 elif y3 <= -1.45e+36: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_6)) elif y3 <= -1.45e+18: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + t_1) elif y3 <= -8e-45: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_6)) elif y3 <= -8e-160: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_7))) elif y3 <= -5.6e-199: tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)) elif y3 <= -7e-233: tmp = x * (c * ((y0 * y2) - (y * i))) elif y3 <= 4e-189: tmp = t_4 elif y3 <= 1.3e-108: tmp = b * t_1 elif y3 <= 1.85e+120: tmp = t_4 else: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(Float64(z * k) - Float64(x * j))) t_2 = Float64(Float64(y * y3) - Float64(t * y2)) t_3 = Float64(Float64(z * t) - Float64(x * y)) t_4 = Float64(c * Float64(Float64(Float64(i * t_3) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_2))) t_5 = Float64(Float64(t * j) - Float64(y * k)) t_6 = Float64(Float64(i * y1) - Float64(b * y0)) t_7 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y3 <= -2.8e+81) tmp = t_4; elseif (y3 <= -1.45e+36) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * t_6))); elseif (y3 <= -1.45e+18) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_5)) + t_1)); elseif (y3 <= -8e-45) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_7)) + Float64(j * t_6))); elseif (y3 <= -8e-160) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * Float64(Float64(c * i) - Float64(a * b))) - Float64(y3 * t_7)))); elseif (y3 <= -5.6e-199) tmp = Float64(y4 * Float64(Float64(Float64(b * t_5) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_2))); elseif (y3 <= -7e-233) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y3 <= 4e-189) tmp = t_4; elseif (y3 <= 1.3e-108) tmp = Float64(b * t_1); elseif (y3 <= 1.85e+120) tmp = t_4; else tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * t_3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * ((z * k) - (x * j)); t_2 = (y * y3) - (t * y2); t_3 = (z * t) - (x * y); t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)); t_5 = (t * j) - (y * k); t_6 = (i * y1) - (b * y0); t_7 = (c * y0) - (a * y1); tmp = 0.0; if (y3 <= -2.8e+81) tmp = t_4; elseif (y3 <= -1.45e+36) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_6)); elseif (y3 <= -1.45e+18) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + t_1); elseif (y3 <= -8e-45) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_6)); elseif (y3 <= -8e-160) tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_7))); elseif (y3 <= -5.6e-199) tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)); elseif (y3 <= -7e-233) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (y3 <= 4e-189) tmp = t_4; elseif (y3 <= 1.3e-108) tmp = b * t_1; elseif (y3 <= 1.85e+120) tmp = t_4; else tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(N[(i * t$95$3), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -2.8e+81], t$95$4, If[LessEqual[y3, -1.45e+36], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.45e+18], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -8e-45], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -8e-160], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y3 * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5.6e-199], N[(y4 * N[(N[(N[(b * t$95$5), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7e-233], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4e-189], t$95$4, If[LessEqual[y3, 1.3e-108], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y3, 1.85e+120], t$95$4, N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(z \cdot k - x \cdot j\right)\\
t_2 := y \cdot y3 - t \cdot y2\\
t_3 := z \cdot t - x \cdot y\\
t_4 := c \cdot \left(\left(i \cdot t_3 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_2\right)\\
t_5 := t \cdot j - y \cdot k\\
t_6 := i \cdot y1 - b \cdot y0\\
t_7 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y3 \leq -2.8 \cdot 10^{+81}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq -1.45 \cdot 10^{+36}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot t_6\right)\\
\mathbf{elif}\;y3 \leq -1.45 \cdot 10^{+18}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_5\right) + t_1\right)\\
\mathbf{elif}\;y3 \leq -8 \cdot 10^{-45}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_7\right) + j \cdot t_6\right)\\
\mathbf{elif}\;y3 \leq -8 \cdot 10^{-160}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot \left(c \cdot i - a \cdot b\right) - y3 \cdot t_7\right)\right)\\
\mathbf{elif}\;y3 \leq -5.6 \cdot 10^{-199}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_5 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_2\right)\\
\mathbf{elif}\;y3 \leq -7 \cdot 10^{-233}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq 4 \cdot 10^{-189}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq 1.3 \cdot 10^{-108}:\\
\;\;\;\;b \cdot t_1\\
\mathbf{elif}\;y3 \leq 1.85 \cdot 10^{+120}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot t_3\right)\right)\\
\end{array}
\end{array}
if y3 < -2.79999999999999995e81 or -6.99999999999999982e-233 < y3 < 4.00000000000000027e-189 or 1.29999999999999992e-108 < y3 < 1.85000000000000012e120Initial program 32.2%
Taylor expanded in c around inf 58.2%
if -2.79999999999999995e81 < y3 < -1.45e36Initial program 9.1%
Taylor expanded in j around inf 81.9%
if -1.45e36 < y3 < -1.45e18Initial program 13.5%
Taylor expanded in b around inf 74.2%
if -1.45e18 < y3 < -7.99999999999999987e-45Initial program 25.3%
Taylor expanded in x around inf 75.0%
if -7.99999999999999987e-45 < y3 < -7.9999999999999999e-160Initial program 35.3%
Taylor expanded in z around -inf 60.5%
if -7.9999999999999999e-160 < y3 < -5.60000000000000036e-199Initial program 61.3%
Taylor expanded in y4 around inf 84.5%
if -5.60000000000000036e-199 < y3 < -6.99999999999999982e-233Initial program 25.0%
Taylor expanded in x around inf 50.2%
Taylor expanded in c around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
*-commutative75.3%
Applied egg-rr75.3%
if 4.00000000000000027e-189 < y3 < 1.29999999999999992e-108Initial program 40.2%
Taylor expanded in b around inf 55.5%
Taylor expanded in y0 around inf 55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
if 1.85000000000000012e120 < y3 Initial program 25.2%
Taylor expanded in i around -inf 56.5%
Final simplification62.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (- (* z k) (* x j))))
(t_2 (- (* y y3) (* t y2)))
(t_3 (- (* z t) (* x y)))
(t_4 (* c (+ (+ (* i t_3) (* y0 (- (* x y2) (* z y3)))) (* y4 t_2))))
(t_5 (- (* b y4) (* i y5)))
(t_6 (- (* t j) (* y k)))
(t_7 (- (* c i) (* a b)))
(t_8 (- (* i y1) (* b y0)))
(t_9 (- (* c y0) (* a y1))))
(if (<= y3 -1.9e+81)
t_4
(if (<= y3 -5.5e+37)
(* j (+ (+ (* t t_5) (* y3 (- (* y0 y5) (* y1 y4)))) (* x t_8)))
(if (<= y3 -1.25e+18)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_6)) t_1))
(if (<= y3 -2.15e-44)
(* x (+ (+ (* y (- (* a b) (* c i))) (* y2 t_9)) (* j t_8)))
(if (<= y3 -7e-161)
(* z (+ (* k (- (* b y0) (* i y1))) (- (* t t_7) (* y3 t_9))))
(if (<= y3 -1.16e-198)
(* y4 (+ (+ (* b t_6) (* y1 (- (* k y2) (* j y3)))) (* c t_2)))
(if (<= y3 -4.1e-214)
(* t (+ (+ (* z t_7) (* j t_5)) (* y2 (- (* a y5) (* c y4)))))
(if (<= y3 5e-189)
t_4
(if (<= y3 6.5e-109)
(* b t_1)
(if (<= y3 4.3e+123)
t_4
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c t_3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((z * k) - (x * j));
double t_2 = (y * y3) - (t * y2);
double t_3 = (z * t) - (x * y);
double t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
double t_5 = (b * y4) - (i * y5);
double t_6 = (t * j) - (y * k);
double t_7 = (c * i) - (a * b);
double t_8 = (i * y1) - (b * y0);
double t_9 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -1.9e+81) {
tmp = t_4;
} else if (y3 <= -5.5e+37) {
tmp = j * (((t * t_5) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_8));
} else if (y3 <= -1.25e+18) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + t_1);
} else if (y3 <= -2.15e-44) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_9)) + (j * t_8));
} else if (y3 <= -7e-161) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_7) - (y3 * t_9)));
} else if (y3 <= -1.16e-198) {
tmp = y4 * (((b * t_6) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (y3 <= -4.1e-214) {
tmp = t * (((z * t_7) + (j * t_5)) + (y2 * ((a * y5) - (c * y4))));
} else if (y3 <= 5e-189) {
tmp = t_4;
} else if (y3 <= 6.5e-109) {
tmp = b * t_1;
} else if (y3 <= 4.3e+123) {
tmp = t_4;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = y0 * ((z * k) - (x * j))
t_2 = (y * y3) - (t * y2)
t_3 = (z * t) - (x * y)
t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2))
t_5 = (b * y4) - (i * y5)
t_6 = (t * j) - (y * k)
t_7 = (c * i) - (a * b)
t_8 = (i * y1) - (b * y0)
t_9 = (c * y0) - (a * y1)
if (y3 <= (-1.9d+81)) then
tmp = t_4
else if (y3 <= (-5.5d+37)) then
tmp = j * (((t * t_5) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_8))
else if (y3 <= (-1.25d+18)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + t_1)
else if (y3 <= (-2.15d-44)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_9)) + (j * t_8))
else if (y3 <= (-7d-161)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_7) - (y3 * t_9)))
else if (y3 <= (-1.16d-198)) then
tmp = y4 * (((b * t_6) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2))
else if (y3 <= (-4.1d-214)) then
tmp = t * (((z * t_7) + (j * t_5)) + (y2 * ((a * y5) - (c * y4))))
else if (y3 <= 5d-189) then
tmp = t_4
else if (y3 <= 6.5d-109) then
tmp = b * t_1
else if (y3 <= 4.3d+123) then
tmp = t_4
else
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((z * k) - (x * j));
double t_2 = (y * y3) - (t * y2);
double t_3 = (z * t) - (x * y);
double t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
double t_5 = (b * y4) - (i * y5);
double t_6 = (t * j) - (y * k);
double t_7 = (c * i) - (a * b);
double t_8 = (i * y1) - (b * y0);
double t_9 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -1.9e+81) {
tmp = t_4;
} else if (y3 <= -5.5e+37) {
tmp = j * (((t * t_5) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_8));
} else if (y3 <= -1.25e+18) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + t_1);
} else if (y3 <= -2.15e-44) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_9)) + (j * t_8));
} else if (y3 <= -7e-161) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_7) - (y3 * t_9)));
} else if (y3 <= -1.16e-198) {
tmp = y4 * (((b * t_6) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (y3 <= -4.1e-214) {
tmp = t * (((z * t_7) + (j * t_5)) + (y2 * ((a * y5) - (c * y4))));
} else if (y3 <= 5e-189) {
tmp = t_4;
} else if (y3 <= 6.5e-109) {
tmp = b * t_1;
} else if (y3 <= 4.3e+123) {
tmp = t_4;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * ((z * k) - (x * j)) t_2 = (y * y3) - (t * y2) t_3 = (z * t) - (x * y) t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)) t_5 = (b * y4) - (i * y5) t_6 = (t * j) - (y * k) t_7 = (c * i) - (a * b) t_8 = (i * y1) - (b * y0) t_9 = (c * y0) - (a * y1) tmp = 0 if y3 <= -1.9e+81: tmp = t_4 elif y3 <= -5.5e+37: tmp = j * (((t * t_5) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_8)) elif y3 <= -1.25e+18: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + t_1) elif y3 <= -2.15e-44: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_9)) + (j * t_8)) elif y3 <= -7e-161: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_7) - (y3 * t_9))) elif y3 <= -1.16e-198: tmp = y4 * (((b * t_6) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)) elif y3 <= -4.1e-214: tmp = t * (((z * t_7) + (j * t_5)) + (y2 * ((a * y5) - (c * y4)))) elif y3 <= 5e-189: tmp = t_4 elif y3 <= 6.5e-109: tmp = b * t_1 elif y3 <= 4.3e+123: tmp = t_4 else: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(Float64(z * k) - Float64(x * j))) t_2 = Float64(Float64(y * y3) - Float64(t * y2)) t_3 = Float64(Float64(z * t) - Float64(x * y)) t_4 = Float64(c * Float64(Float64(Float64(i * t_3) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_2))) t_5 = Float64(Float64(b * y4) - Float64(i * y5)) t_6 = Float64(Float64(t * j) - Float64(y * k)) t_7 = Float64(Float64(c * i) - Float64(a * b)) t_8 = Float64(Float64(i * y1) - Float64(b * y0)) t_9 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y3 <= -1.9e+81) tmp = t_4; elseif (y3 <= -5.5e+37) tmp = Float64(j * Float64(Float64(Float64(t * t_5) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * t_8))); elseif (y3 <= -1.25e+18) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_6)) + t_1)); elseif (y3 <= -2.15e-44) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_9)) + Float64(j * t_8))); elseif (y3 <= -7e-161) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * t_7) - Float64(y3 * t_9)))); elseif (y3 <= -1.16e-198) tmp = Float64(y4 * Float64(Float64(Float64(b * t_6) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_2))); elseif (y3 <= -4.1e-214) tmp = Float64(t * Float64(Float64(Float64(z * t_7) + Float64(j * t_5)) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= 5e-189) tmp = t_4; elseif (y3 <= 6.5e-109) tmp = Float64(b * t_1); elseif (y3 <= 4.3e+123) tmp = t_4; else tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * t_3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * ((z * k) - (x * j)); t_2 = (y * y3) - (t * y2); t_3 = (z * t) - (x * y); t_4 = c * (((i * t_3) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)); t_5 = (b * y4) - (i * y5); t_6 = (t * j) - (y * k); t_7 = (c * i) - (a * b); t_8 = (i * y1) - (b * y0); t_9 = (c * y0) - (a * y1); tmp = 0.0; if (y3 <= -1.9e+81) tmp = t_4; elseif (y3 <= -5.5e+37) tmp = j * (((t * t_5) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_8)); elseif (y3 <= -1.25e+18) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + t_1); elseif (y3 <= -2.15e-44) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_9)) + (j * t_8)); elseif (y3 <= -7e-161) tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_7) - (y3 * t_9))); elseif (y3 <= -1.16e-198) tmp = y4 * (((b * t_6) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)); elseif (y3 <= -4.1e-214) tmp = t * (((z * t_7) + (j * t_5)) + (y2 * ((a * y5) - (c * y4)))); elseif (y3 <= 5e-189) tmp = t_4; elseif (y3 <= 6.5e-109) tmp = b * t_1; elseif (y3 <= 4.3e+123) tmp = t_4; else tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(N[(i * t$95$3), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.9e+81], t$95$4, If[LessEqual[y3, -5.5e+37], N[(j * N[(N[(N[(t * t$95$5), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$8), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.25e+18], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$6), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.15e-44], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$9), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$8), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7e-161], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * t$95$7), $MachinePrecision] - N[(y3 * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.16e-198], N[(y4 * N[(N[(N[(b * t$95$6), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4.1e-214], N[(t * N[(N[(N[(z * t$95$7), $MachinePrecision] + N[(j * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5e-189], t$95$4, If[LessEqual[y3, 6.5e-109], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y3, 4.3e+123], t$95$4, N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(z \cdot k - x \cdot j\right)\\
t_2 := y \cdot y3 - t \cdot y2\\
t_3 := z \cdot t - x \cdot y\\
t_4 := c \cdot \left(\left(i \cdot t_3 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_2\right)\\
t_5 := b \cdot y4 - i \cdot y5\\
t_6 := t \cdot j - y \cdot k\\
t_7 := c \cdot i - a \cdot b\\
t_8 := i \cdot y1 - b \cdot y0\\
t_9 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y3 \leq -1.9 \cdot 10^{+81}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq -5.5 \cdot 10^{+37}:\\
\;\;\;\;j \cdot \left(\left(t \cdot t_5 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot t_8\right)\\
\mathbf{elif}\;y3 \leq -1.25 \cdot 10^{+18}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_6\right) + t_1\right)\\
\mathbf{elif}\;y3 \leq -2.15 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_9\right) + j \cdot t_8\right)\\
\mathbf{elif}\;y3 \leq -7 \cdot 10^{-161}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot t_7 - y3 \cdot t_9\right)\right)\\
\mathbf{elif}\;y3 \leq -1.16 \cdot 10^{-198}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_6 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_2\right)\\
\mathbf{elif}\;y3 \leq -4.1 \cdot 10^{-214}:\\
\;\;\;\;t \cdot \left(\left(z \cdot t_7 + j \cdot t_5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 5 \cdot 10^{-189}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-109}:\\
\;\;\;\;b \cdot t_1\\
\mathbf{elif}\;y3 \leq 4.3 \cdot 10^{+123}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot t_3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.9e81 or -4.0999999999999997e-214 < y3 < 4.9999999999999997e-189 or 6.49999999999999959e-109 < y3 < 4.29999999999999986e123Initial program 32.4%
Taylor expanded in c around inf 59.0%
if -1.9e81 < y3 < -5.50000000000000016e37Initial program 9.1%
Taylor expanded in j around inf 81.9%
if -5.50000000000000016e37 < y3 < -1.25e18Initial program 13.5%
Taylor expanded in b around inf 74.2%
if -1.25e18 < y3 < -2.15000000000000007e-44Initial program 25.3%
Taylor expanded in x around inf 75.0%
if -2.15000000000000007e-44 < y3 < -7.00000000000000039e-161Initial program 35.3%
Taylor expanded in z around -inf 60.5%
if -7.00000000000000039e-161 < y3 < -1.16e-198Initial program 61.3%
Taylor expanded in y4 around inf 84.5%
if -1.16e-198 < y3 < -4.0999999999999997e-214Initial program 14.3%
Taylor expanded in t around inf 72.2%
if 4.9999999999999997e-189 < y3 < 6.49999999999999959e-109Initial program 40.2%
Taylor expanded in b around inf 55.5%
Taylor expanded in y0 around inf 55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
if 4.29999999999999986e123 < y3 Initial program 25.2%
Taylor expanded in i around -inf 56.5%
Final simplification62.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0)))
(t_2 (* k (* z (- (* b y0) (* i y1)))))
(t_3 (* j (+ (* t (- (* b y4) (* i y5))) (* x t_1)))))
(if (<= k -4e+83)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -1.65e+31)
t_2
(if (<= k -1.2e-60)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= k -7e-259)
t_3
(if (<= k -6e-283)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= k 9.2e-166)
t_3
(if (<= k 1.2e+113)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_1)))
(if (<= k 8.5e+228)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))
t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double t_2 = k * (z * ((b * y0) - (i * y1)));
double t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * t_1));
double tmp;
if (k <= -4e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.65e+31) {
tmp = t_2;
} else if (k <= -1.2e-60) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -7e-259) {
tmp = t_3;
} else if (k <= -6e-283) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 9.2e-166) {
tmp = t_3;
} else if (k <= 1.2e+113) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
} else if (k <= 8.5e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
t_2 = k * (z * ((b * y0) - (i * y1)))
t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * t_1))
if (k <= (-4d+83)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-1.65d+31)) then
tmp = t_2
else if (k <= (-1.2d-60)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (k <= (-7d-259)) then
tmp = t_3
else if (k <= (-6d-283)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (k <= 9.2d-166) then
tmp = t_3
else if (k <= 1.2d+113) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1))
else if (k <= 8.5d+228) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double t_2 = k * (z * ((b * y0) - (i * y1)));
double t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * t_1));
double tmp;
if (k <= -4e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.65e+31) {
tmp = t_2;
} else if (k <= -1.2e-60) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -7e-259) {
tmp = t_3;
} else if (k <= -6e-283) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 9.2e-166) {
tmp = t_3;
} else if (k <= 1.2e+113) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
} else if (k <= 8.5e+228) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) t_2 = k * (z * ((b * y0) - (i * y1))) t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * t_1)) tmp = 0 if k <= -4e+83: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -1.65e+31: tmp = t_2 elif k <= -1.2e-60: tmp = x * (c * ((y0 * y2) - (y * i))) elif k <= -7e-259: tmp = t_3 elif k <= -6e-283: tmp = x * (a * ((y * b) - (y1 * y2))) elif k <= 9.2e-166: tmp = t_3 elif k <= 1.2e+113: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)) elif k <= 8.5e+228: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) t_2 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_3 = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(x * t_1))) tmp = 0.0 if (k <= -4e+83) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -1.65e+31) tmp = t_2; elseif (k <= -1.2e-60) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (k <= -7e-259) tmp = t_3; elseif (k <= -6e-283) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (k <= 9.2e-166) tmp = t_3; elseif (k <= 1.2e+113) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_1))); elseif (k <= 8.5e+228) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); t_2 = k * (z * ((b * y0) - (i * y1))); t_3 = j * ((t * ((b * y4) - (i * y5))) + (x * t_1)); tmp = 0.0; if (k <= -4e+83) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -1.65e+31) tmp = t_2; elseif (k <= -1.2e-60) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (k <= -7e-259) tmp = t_3; elseif (k <= -6e-283) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (k <= 9.2e-166) tmp = t_3; elseif (k <= 1.2e+113) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)); elseif (k <= 8.5e+228) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4e+83], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.65e+31], t$95$2, If[LessEqual[k, -1.2e-60], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -7e-259], t$95$3, If[LessEqual[k, -6e-283], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.2e-166], t$95$3, If[LessEqual[k, 1.2e+113], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.5e+228], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
t_2 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_3 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot t_1\right)\\
\mathbf{if}\;k \leq -4 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -1.65 \cdot 10^{+31}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;k \leq -7 \cdot 10^{-259}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq -6 \cdot 10^{-283}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 9.2 \cdot 10^{-166}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 1.2 \cdot 10^{+113}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t_1\right)\\
\mathbf{elif}\;k \leq 8.5 \cdot 10^{+228}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if k < -4.00000000000000012e83Initial program 29.3%
Taylor expanded in i around -inf 51.4%
Taylor expanded in k around -inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
*-commutative56.4%
Simplified56.4%
if -4.00000000000000012e83 < k < -1.64999999999999996e31 or 8.5000000000000002e228 < k Initial program 28.5%
Taylor expanded in k around inf 71.4%
Taylor expanded in z around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -1.64999999999999996e31 < k < -1.20000000000000005e-60Initial program 50.5%
Taylor expanded in x around inf 34.0%
Taylor expanded in c around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
*-commutative43.0%
*-commutative43.0%
Applied egg-rr43.0%
if -1.20000000000000005e-60 < k < -7.0000000000000005e-259 or -5.99999999999999992e-283 < k < 9.19999999999999995e-166Initial program 36.5%
Taylor expanded in j around inf 45.1%
Taylor expanded in y3 around 0 54.9%
cancel-sign-sub-inv54.9%
*-commutative54.9%
*-commutative54.9%
cancel-sign-sub-inv54.9%
Simplified54.9%
if -7.0000000000000005e-259 < k < -5.99999999999999992e-283Initial program 57.1%
Taylor expanded in x around inf 57.1%
Taylor expanded in a around inf 85.9%
if 9.19999999999999995e-166 < k < 1.19999999999999992e113Initial program 23.7%
Taylor expanded in x around inf 58.4%
if 1.19999999999999992e113 < k < 8.5000000000000002e228Initial program 17.2%
Taylor expanded in b around inf 58.8%
Final simplification58.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* z t) (* x y)))
(t_2 (- (* y y3) (* t y2)))
(t_3 (* c (+ (+ (* i t_1) (* y0 (- (* x y2) (* z y3)))) (* y4 t_2))))
(t_4 (- (* c y0) (* a y1))))
(if (<= y3 -1.42e+109)
t_3
(if (<= y3 -1.2e-45)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_4))
(* j (- (* i y1) (* b y0)))))
(if (<= y3 -2.25e-159)
(*
z
(+
(* k (- (* b y0) (* i y1)))
(- (* t (- (* c i) (* a b))) (* y3 t_4))))
(if (<= y3 -3.6e-199)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c t_2)))
(if (<= y3 -2.2e-230)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= y3 2.1e-191)
t_3
(if (<= y3 4.3e-108)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y3 2.3e+122)
t_3
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c t_1))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * t) - (x * y);
double t_2 = (y * y3) - (t * y2);
double t_3 = c * (((i * t_1) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
double t_4 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -1.42e+109) {
tmp = t_3;
} else if (y3 <= -1.2e-45) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (y3 <= -2.25e-159) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_4)));
} else if (y3 <= -3.6e-199) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (y3 <= -2.2e-230) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (y3 <= 2.1e-191) {
tmp = t_3;
} else if (y3 <= 4.3e-108) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y3 <= 2.3e+122) {
tmp = t_3;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (z * t) - (x * y)
t_2 = (y * y3) - (t * y2)
t_3 = c * (((i * t_1) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2))
t_4 = (c * y0) - (a * y1)
if (y3 <= (-1.42d+109)) then
tmp = t_3
else if (y3 <= (-1.2d-45)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))))
else if (y3 <= (-2.25d-159)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_4)))
else if (y3 <= (-3.6d-199)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2))
else if (y3 <= (-2.2d-230)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (y3 <= 2.1d-191) then
tmp = t_3
else if (y3 <= 4.3d-108) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y3 <= 2.3d+122) then
tmp = t_3
else
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * t) - (x * y);
double t_2 = (y * y3) - (t * y2);
double t_3 = c * (((i * t_1) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
double t_4 = (c * y0) - (a * y1);
double tmp;
if (y3 <= -1.42e+109) {
tmp = t_3;
} else if (y3 <= -1.2e-45) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (y3 <= -2.25e-159) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_4)));
} else if (y3 <= -3.6e-199) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (y3 <= -2.2e-230) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (y3 <= 2.1e-191) {
tmp = t_3;
} else if (y3 <= 4.3e-108) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y3 <= 2.3e+122) {
tmp = t_3;
} else {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (z * t) - (x * y) t_2 = (y * y3) - (t * y2) t_3 = c * (((i * t_1) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)) t_4 = (c * y0) - (a * y1) tmp = 0 if y3 <= -1.42e+109: tmp = t_3 elif y3 <= -1.2e-45: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))) elif y3 <= -2.25e-159: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_4))) elif y3 <= -3.6e-199: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)) elif y3 <= -2.2e-230: tmp = x * (c * ((y0 * y2) - (y * i))) elif y3 <= 2.1e-191: tmp = t_3 elif y3 <= 4.3e-108: tmp = b * (y0 * ((z * k) - (x * j))) elif y3 <= 2.3e+122: tmp = t_3 else: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(z * t) - Float64(x * y)) t_2 = Float64(Float64(y * y3) - Float64(t * y2)) t_3 = Float64(c * Float64(Float64(Float64(i * t_1) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_2))) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y3 <= -1.42e+109) tmp = t_3; elseif (y3 <= -1.2e-45) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_4)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y3 <= -2.25e-159) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * Float64(Float64(c * i) - Float64(a * b))) - Float64(y3 * t_4)))); elseif (y3 <= -3.6e-199) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_2))); elseif (y3 <= -2.2e-230) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y3 <= 2.1e-191) tmp = t_3; elseif (y3 <= 4.3e-108) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y3 <= 2.3e+122) tmp = t_3; else tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (z * t) - (x * y); t_2 = (y * y3) - (t * y2); t_3 = c * (((i * t_1) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)); t_4 = (c * y0) - (a * y1); tmp = 0.0; if (y3 <= -1.42e+109) tmp = t_3; elseif (y3 <= -1.2e-45) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))); elseif (y3 <= -2.25e-159) tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * ((c * i) - (a * b))) - (y3 * t_4))); elseif (y3 <= -3.6e-199) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)); elseif (y3 <= -2.2e-230) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (y3 <= 2.1e-191) tmp = t_3; elseif (y3 <= 4.3e-108) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y3 <= 2.3e+122) tmp = t_3; else tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.42e+109], t$95$3, If[LessEqual[y3, -1.2e-45], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.25e-159], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y3 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.6e-199], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.2e-230], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.1e-191], t$95$3, If[LessEqual[y3, 4.3e-108], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.3e+122], t$95$3, N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot t - x \cdot y\\
t_2 := y \cdot y3 - t \cdot y2\\
t_3 := c \cdot \left(\left(i \cdot t_1 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_2\right)\\
t_4 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y3 \leq -1.42 \cdot 10^{+109}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq -1.2 \cdot 10^{-45}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_4\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq -2.25 \cdot 10^{-159}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot \left(c \cdot i - a \cdot b\right) - y3 \cdot t_4\right)\right)\\
\mathbf{elif}\;y3 \leq -3.6 \cdot 10^{-199}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_2\right)\\
\mathbf{elif}\;y3 \leq -2.2 \cdot 10^{-230}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq 2.1 \cdot 10^{-191}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq 4.3 \cdot 10^{-108}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y3 \leq 2.3 \cdot 10^{+122}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot t_1\right)\right)\\
\end{array}
\end{array}
if y3 < -1.4200000000000001e109 or -2.1999999999999998e-230 < y3 < 2.09999999999999985e-191 or 4.3e-108 < y3 < 2.3000000000000001e122Initial program 33.2%
Taylor expanded in c around inf 58.0%
if -1.4200000000000001e109 < y3 < -1.19999999999999995e-45Initial program 17.3%
Taylor expanded in x around inf 60.7%
if -1.19999999999999995e-45 < y3 < -2.24999999999999994e-159Initial program 35.3%
Taylor expanded in z around -inf 60.5%
if -2.24999999999999994e-159 < y3 < -3.6000000000000002e-199Initial program 61.3%
Taylor expanded in y4 around inf 84.5%
if -3.6000000000000002e-199 < y3 < -2.1999999999999998e-230Initial program 25.0%
Taylor expanded in x around inf 50.2%
Taylor expanded in c around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
*-commutative75.3%
Applied egg-rr75.3%
if 2.09999999999999985e-191 < y3 < 4.3e-108Initial program 40.2%
Taylor expanded in b around inf 55.5%
Taylor expanded in y0 around inf 55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
if 2.3000000000000001e122 < y3 Initial program 25.2%
Taylor expanded in i around -inf 56.5%
Final simplification60.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* a (- (* y b) (* y1 y2)))))
(t_2
(* j (+ (* t (- (* b y4) (* i y5))) (* x (- (* i y1) (* b y0)))))))
(if (<= k -4.4e+83)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -7.5e+28)
(* k (* z (- (* b y0) (* i y1))))
(if (<= k -1.22e-60)
(* x (* c (- (* y0 y2) (* y i))))
(if (<= k -1.96e-258)
t_2
(if (<= k -2.3e-282)
t_1
(if (<= k 3.2e-174)
t_2
(if (<= k 1.9e-100)
t_1
(if (<= k 5200000000000.0)
(* x (* y (- (* a b) (* c i))))
(if (<= k 1e+213)
(* y (* y4 (- (* c y3) (* b k))))
(if (<= k 1.95e+236)
(* i (* (* k y1) (- z)))
(if (<= k 1.55e+294)
(* k (* y (- (* i y5) (* b y4))))
(* k (* y2 (- (* y1 y4) (* y0 y5)))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (a * ((y * b) - (y1 * y2)));
double t_2 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))));
double tmp;
if (k <= -4.4e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -7.5e+28) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (k <= -1.22e-60) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -1.96e-258) {
tmp = t_2;
} else if (k <= -2.3e-282) {
tmp = t_1;
} else if (k <= 3.2e-174) {
tmp = t_2;
} else if (k <= 1.9e-100) {
tmp = t_1;
} else if (k <= 5200000000000.0) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (k <= 1e+213) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (k <= 1.95e+236) {
tmp = i * ((k * y1) * -z);
} else if (k <= 1.55e+294) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (a * ((y * b) - (y1 * y2)))
t_2 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))))
if (k <= (-4.4d+83)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-7.5d+28)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (k <= (-1.22d-60)) then
tmp = x * (c * ((y0 * y2) - (y * i)))
else if (k <= (-1.96d-258)) then
tmp = t_2
else if (k <= (-2.3d-282)) then
tmp = t_1
else if (k <= 3.2d-174) then
tmp = t_2
else if (k <= 1.9d-100) then
tmp = t_1
else if (k <= 5200000000000.0d0) then
tmp = x * (y * ((a * b) - (c * i)))
else if (k <= 1d+213) then
tmp = y * (y4 * ((c * y3) - (b * k)))
else if (k <= 1.95d+236) then
tmp = i * ((k * y1) * -z)
else if (k <= 1.55d+294) then
tmp = k * (y * ((i * y5) - (b * y4)))
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (a * ((y * b) - (y1 * y2)));
double t_2 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0))));
double tmp;
if (k <= -4.4e+83) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -7.5e+28) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (k <= -1.22e-60) {
tmp = x * (c * ((y0 * y2) - (y * i)));
} else if (k <= -1.96e-258) {
tmp = t_2;
} else if (k <= -2.3e-282) {
tmp = t_1;
} else if (k <= 3.2e-174) {
tmp = t_2;
} else if (k <= 1.9e-100) {
tmp = t_1;
} else if (k <= 5200000000000.0) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (k <= 1e+213) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (k <= 1.95e+236) {
tmp = i * ((k * y1) * -z);
} else if (k <= 1.55e+294) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (a * ((y * b) - (y1 * y2))) t_2 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0)))) tmp = 0 if k <= -4.4e+83: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -7.5e+28: tmp = k * (z * ((b * y0) - (i * y1))) elif k <= -1.22e-60: tmp = x * (c * ((y0 * y2) - (y * i))) elif k <= -1.96e-258: tmp = t_2 elif k <= -2.3e-282: tmp = t_1 elif k <= 3.2e-174: tmp = t_2 elif k <= 1.9e-100: tmp = t_1 elif k <= 5200000000000.0: tmp = x * (y * ((a * b) - (c * i))) elif k <= 1e+213: tmp = y * (y4 * ((c * y3) - (b * k))) elif k <= 1.95e+236: tmp = i * ((k * y1) * -z) elif k <= 1.55e+294: tmp = k * (y * ((i * y5) - (b * y4))) else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))) t_2 = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) tmp = 0.0 if (k <= -4.4e+83) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -7.5e+28) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (k <= -1.22e-60) tmp = Float64(x * Float64(c * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (k <= -1.96e-258) tmp = t_2; elseif (k <= -2.3e-282) tmp = t_1; elseif (k <= 3.2e-174) tmp = t_2; elseif (k <= 1.9e-100) tmp = t_1; elseif (k <= 5200000000000.0) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (k <= 1e+213) tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); elseif (k <= 1.95e+236) tmp = Float64(i * Float64(Float64(k * y1) * Float64(-z))); elseif (k <= 1.55e+294) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (a * ((y * b) - (y1 * y2))); t_2 = j * ((t * ((b * y4) - (i * y5))) + (x * ((i * y1) - (b * y0)))); tmp = 0.0; if (k <= -4.4e+83) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -7.5e+28) tmp = k * (z * ((b * y0) - (i * y1))); elseif (k <= -1.22e-60) tmp = x * (c * ((y0 * y2) - (y * i))); elseif (k <= -1.96e-258) tmp = t_2; elseif (k <= -2.3e-282) tmp = t_1; elseif (k <= 3.2e-174) tmp = t_2; elseif (k <= 1.9e-100) tmp = t_1; elseif (k <= 5200000000000.0) tmp = x * (y * ((a * b) - (c * i))); elseif (k <= 1e+213) tmp = y * (y4 * ((c * y3) - (b * k))); elseif (k <= 1.95e+236) tmp = i * ((k * y1) * -z); elseif (k <= 1.55e+294) tmp = k * (y * ((i * y5) - (b * y4))); else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.4e+83], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -7.5e+28], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.22e-60], N[(x * N[(c * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.96e-258], t$95$2, If[LessEqual[k, -2.3e-282], t$95$1, If[LessEqual[k, 3.2e-174], t$95$2, If[LessEqual[k, 1.9e-100], t$95$1, If[LessEqual[k, 5200000000000.0], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1e+213], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.95e+236], N[(i * N[(N[(k * y1), $MachinePrecision] * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.55e+294], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
t_2 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;k \leq -4.4 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -7.5 \cdot 10^{+28}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -1.22 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;k \leq -1.96 \cdot 10^{-258}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq -2.3 \cdot 10^{-282}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{-174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 1.9 \cdot 10^{-100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 5200000000000:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;k \leq 10^{+213}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{elif}\;k \leq 1.95 \cdot 10^{+236}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y1\right) \cdot \left(-z\right)\right)\\
\mathbf{elif}\;k \leq 1.55 \cdot 10^{+294}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if k < -4.39999999999999997e83Initial program 29.3%
Taylor expanded in i around -inf 51.4%
Taylor expanded in k around -inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
*-commutative56.4%
Simplified56.4%
if -4.39999999999999997e83 < k < -7.4999999999999998e28Initial program 24.9%
Taylor expanded in k around inf 66.7%
Taylor expanded in z around inf 91.9%
*-commutative91.9%
*-commutative91.9%
Simplified91.9%
if -7.4999999999999998e28 < k < -1.22e-60Initial program 50.5%
Taylor expanded in x around inf 34.0%
Taylor expanded in c around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
*-commutative43.0%
*-commutative43.0%
Applied egg-rr43.0%
if -1.22e-60 < k < -1.96000000000000009e-258 or -2.2999999999999999e-282 < k < 3.2e-174Initial program 36.6%
Taylor expanded in j around inf 45.6%
Taylor expanded in y3 around 0 55.9%
cancel-sign-sub-inv55.9%
*-commutative55.9%
*-commutative55.9%
cancel-sign-sub-inv55.9%
Simplified55.9%
if -1.96000000000000009e-258 < k < -2.2999999999999999e-282 or 3.2e-174 < k < 1.89999999999999999e-100Initial program 40.0%
Taylor expanded in x around inf 56.0%
Taylor expanded in a around inf 64.8%
if 1.89999999999999999e-100 < k < 5.2e12Initial program 19.1%
Taylor expanded in y around inf 43.9%
Taylor expanded in x around inf 54.0%
if 5.2e12 < k < 9.99999999999999984e212Initial program 19.2%
Taylor expanded in y around inf 50.3%
Taylor expanded in y4 around -inf 48.0%
associate-*r*48.0%
neg-mul-148.0%
Simplified48.0%
if 9.99999999999999984e212 < k < 1.95e236Initial program 18.2%
Taylor expanded in i around -inf 45.7%
Taylor expanded in k around -inf 54.9%
associate-*r*54.9%
neg-mul-154.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in y around 0 55.4%
associate-*r*72.9%
Simplified72.9%
if 1.95e236 < k < 1.5500000000000001e294Initial program 25.0%
Taylor expanded in y around inf 50.0%
Taylor expanded in k around inf 75.0%
associate-*r*75.0%
neg-mul-175.0%
*-commutative75.0%
Simplified75.0%
if 1.5500000000000001e294 < k Initial program 66.7%
Taylor expanded in k around inf 100.0%
Taylor expanded in y2 around inf 100.0%
Final simplification57.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1)))))
(t_2 (* c (* y4 (- (* y y3) (* t y2)))))
(t_3 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= z -5e+173)
t_1
(if (<= z -9.5e+52)
(* b (* y0 (- (* z k) (* x j))))
(if (<= z -1.35e+39)
t_1
(if (<= z -2.6e-69)
t_3
(if (<= z 4.9e-278)
t_2
(if (<= z 2e-226)
(* j (* x (- (* i y1) (* b y0))))
(if (<= z 5.8e-192)
t_2
(if (<= z 1.8e-163)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= z 0.58) t_3 t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (z <= -5e+173) {
tmp = t_1;
} else if (z <= -9.5e+52) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (z <= -1.35e+39) {
tmp = t_1;
} else if (z <= -2.6e-69) {
tmp = t_3;
} else if (z <= 4.9e-278) {
tmp = t_2;
} else if (z <= 2e-226) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (z <= 5.8e-192) {
tmp = t_2;
} else if (z <= 1.8e-163) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (z <= 0.58) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = k * (z * ((b * y0) - (i * y1)))
t_2 = c * (y4 * ((y * y3) - (t * y2)))
t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (z <= (-5d+173)) then
tmp = t_1
else if (z <= (-9.5d+52)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (z <= (-1.35d+39)) then
tmp = t_1
else if (z <= (-2.6d-69)) then
tmp = t_3
else if (z <= 4.9d-278) then
tmp = t_2
else if (z <= 2d-226) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (z <= 5.8d-192) then
tmp = t_2
else if (z <= 1.8d-163) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (z <= 0.58d0) then
tmp = t_3
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (z <= -5e+173) {
tmp = t_1;
} else if (z <= -9.5e+52) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (z <= -1.35e+39) {
tmp = t_1;
} else if (z <= -2.6e-69) {
tmp = t_3;
} else if (z <= 4.9e-278) {
tmp = t_2;
} else if (z <= 2e-226) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (z <= 5.8e-192) {
tmp = t_2;
} else if (z <= 1.8e-163) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (z <= 0.58) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (z * ((b * y0) - (i * y1))) t_2 = c * (y4 * ((y * y3) - (t * y2))) t_3 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if z <= -5e+173: tmp = t_1 elif z <= -9.5e+52: tmp = b * (y0 * ((z * k) - (x * j))) elif z <= -1.35e+39: tmp = t_1 elif z <= -2.6e-69: tmp = t_3 elif z <= 4.9e-278: tmp = t_2 elif z <= 2e-226: tmp = j * (x * ((i * y1) - (b * y0))) elif z <= 5.8e-192: tmp = t_2 elif z <= 1.8e-163: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif z <= 0.58: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_2 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) t_3 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (z <= -5e+173) tmp = t_1; elseif (z <= -9.5e+52) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (z <= -1.35e+39) tmp = t_1; elseif (z <= -2.6e-69) tmp = t_3; elseif (z <= 4.9e-278) tmp = t_2; elseif (z <= 2e-226) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (z <= 5.8e-192) tmp = t_2; elseif (z <= 1.8e-163) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (z <= 0.58) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (z * ((b * y0) - (i * y1))); t_2 = c * (y4 * ((y * y3) - (t * y2))); t_3 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (z <= -5e+173) tmp = t_1; elseif (z <= -9.5e+52) tmp = b * (y0 * ((z * k) - (x * j))); elseif (z <= -1.35e+39) tmp = t_1; elseif (z <= -2.6e-69) tmp = t_3; elseif (z <= 4.9e-278) tmp = t_2; elseif (z <= 2e-226) tmp = j * (x * ((i * y1) - (b * y0))); elseif (z <= 5.8e-192) tmp = t_2; elseif (z <= 1.8e-163) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (z <= 0.58) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e+173], t$95$1, If[LessEqual[z, -9.5e+52], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e+39], t$95$1, If[LessEqual[z, -2.6e-69], t$95$3, If[LessEqual[z, 4.9e-278], t$95$2, If[LessEqual[z, 2e-226], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.8e-192], t$95$2, If[LessEqual[z, 1.8e-163], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.58], t$95$3, t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_3 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{+173}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{+52}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-69}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-278}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-226}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-192}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-163}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;z \leq 0.58:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -5.00000000000000034e173 or -9.49999999999999994e52 < z < -1.35000000000000002e39 or 0.57999999999999996 < z Initial program 26.0%
Taylor expanded in k around inf 38.4%
Taylor expanded in z around inf 53.7%
*-commutative53.7%
*-commutative53.7%
Simplified53.7%
if -5.00000000000000034e173 < z < -9.49999999999999994e52Initial program 30.8%
Taylor expanded in b around inf 69.3%
Taylor expanded in y0 around inf 57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
if -1.35000000000000002e39 < z < -2.6000000000000002e-69 or 1.7999999999999999e-163 < z < 0.57999999999999996Initial program 34.4%
Taylor expanded in k around inf 43.7%
Taylor expanded in y2 around inf 42.5%
if -2.6000000000000002e-69 < z < 4.9000000000000002e-278 or 1.99999999999999984e-226 < z < 5.80000000000000033e-192Initial program 36.6%
Taylor expanded in c around inf 50.5%
Taylor expanded in y4 around inf 45.6%
*-commutative45.6%
*-commutative45.6%
Simplified45.6%
if 4.9000000000000002e-278 < z < 1.99999999999999984e-226Initial program 31.5%
Taylor expanded in j around inf 37.4%
Taylor expanded in x around inf 58.9%
if 5.80000000000000033e-192 < z < 1.7999999999999999e-163Initial program 40.0%
Taylor expanded in j around inf 60.5%
Taylor expanded in y0 around inf 80.5%
*-commutative80.5%
Simplified80.5%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* y (- (* a b) (* c i))))) (t_2 (- (* i y1) (* b y0))))
(if (<= y -1.1e+222)
t_1
(if (<= y -1.45e+164)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= y -3.5e+40)
t_1
(if (<= y -3.2e-93)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y 1.12e-262)
(* j (* x t_2))
(if (<= y 2.65e-114)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y 4.5e+69)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y 5.5e+189) (* x (* j 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * ((a * b) - (c * i)));
double t_2 = (i * y1) - (b * y0);
double tmp;
if (y <= -1.1e+222) {
tmp = t_1;
} else if (y <= -1.45e+164) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y <= -3.5e+40) {
tmp = t_1;
} else if (y <= -3.2e-93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1.12e-262) {
tmp = j * (x * t_2);
} else if (y <= 2.65e-114) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 4.5e+69) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 5.5e+189) {
tmp = x * (j * t_2);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * ((a * b) - (c * i)))
t_2 = (i * y1) - (b * y0)
if (y <= (-1.1d+222)) then
tmp = t_1
else if (y <= (-1.45d+164)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (y <= (-3.5d+40)) then
tmp = t_1
else if (y <= (-3.2d-93)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= 1.12d-262) then
tmp = j * (x * t_2)
else if (y <= 2.65d-114) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= 4.5d+69) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y <= 5.5d+189) then
tmp = x * (j * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * ((a * b) - (c * i)));
double t_2 = (i * y1) - (b * y0);
double tmp;
if (y <= -1.1e+222) {
tmp = t_1;
} else if (y <= -1.45e+164) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y <= -3.5e+40) {
tmp = t_1;
} else if (y <= -3.2e-93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1.12e-262) {
tmp = j * (x * t_2);
} else if (y <= 2.65e-114) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 4.5e+69) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 5.5e+189) {
tmp = x * (j * t_2);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (y * ((a * b) - (c * i))) t_2 = (i * y1) - (b * y0) tmp = 0 if y <= -1.1e+222: tmp = t_1 elif y <= -1.45e+164: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif y <= -3.5e+40: tmp = t_1 elif y <= -3.2e-93: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= 1.12e-262: tmp = j * (x * t_2) elif y <= 2.65e-114: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= 4.5e+69: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y <= 5.5e+189: tmp = x * (j * t_2) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(Float64(i * y1) - Float64(b * y0)) tmp = 0.0 if (y <= -1.1e+222) tmp = t_1; elseif (y <= -1.45e+164) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (y <= -3.5e+40) tmp = t_1; elseif (y <= -3.2e-93) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= 1.12e-262) tmp = Float64(j * Float64(x * t_2)); elseif (y <= 2.65e-114) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= 4.5e+69) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y <= 5.5e+189) tmp = Float64(x * Float64(j * t_2)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (y * ((a * b) - (c * i))); t_2 = (i * y1) - (b * y0); tmp = 0.0; if (y <= -1.1e+222) tmp = t_1; elseif (y <= -1.45e+164) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (y <= -3.5e+40) tmp = t_1; elseif (y <= -3.2e-93) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= 1.12e-262) tmp = j * (x * t_2); elseif (y <= 2.65e-114) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= 4.5e+69) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y <= 5.5e+189) tmp = x * (j * t_2); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+222], t$95$1, If[LessEqual[y, -1.45e+164], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.5e+40], t$95$1, If[LessEqual[y, -3.2e-93], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e-262], N[(j * N[(x * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e-114], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+69], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e+189], N[(x * N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := i \cdot y1 - b \cdot y0\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{+164}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{+40}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{-93}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{-262}:\\
\;\;\;\;j \cdot \left(x \cdot t_2\right)\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{-114}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+69}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+189}:\\
\;\;\;\;x \cdot \left(j \cdot t_2\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.1000000000000001e222 or -1.4499999999999999e164 < y < -3.4999999999999999e40 or 5.5e189 < y Initial program 32.6%
Taylor expanded in y around inf 60.7%
Taylor expanded in x around inf 62.3%
if -1.1000000000000001e222 < y < -1.4499999999999999e164Initial program 41.7%
Taylor expanded in j around inf 18.2%
Taylor expanded in y0 around inf 50.8%
*-commutative50.8%
Simplified50.8%
if -3.4999999999999999e40 < y < -3.1999999999999999e-93Initial program 38.4%
Taylor expanded in k around inf 52.9%
Taylor expanded in y2 around inf 37.0%
if -3.1999999999999999e-93 < y < 1.12e-262Initial program 27.4%
Taylor expanded in j around inf 28.0%
Taylor expanded in x around inf 42.7%
if 1.12e-262 < y < 2.64999999999999986e-114Initial program 20.0%
Taylor expanded in b around inf 44.2%
Taylor expanded in y0 around inf 54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
if 2.64999999999999986e-114 < y < 4.4999999999999999e69Initial program 33.3%
Taylor expanded in c around inf 48.8%
Taylor expanded in y0 around inf 46.3%
if 4.4999999999999999e69 < y < 5.5e189Initial program 33.3%
Taylor expanded in x around inf 44.9%
Taylor expanded in j around inf 53.3%
*-commutative53.3%
*-commutative53.3%
Simplified53.3%
Final simplification51.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* y (- (* a b) (* c i))))) (t_2 (- (* i y1) (* b y0))))
(if (<= y -1.1e+219)
t_1
(if (<= y -1.45e+164)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= y -8e+46)
t_1
(if (<= y -1.65e-93)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y 1.56e-264)
(* j (* x t_2))
(if (<= y 1.6e-98)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y 1.3e+65)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y 3.7e+188) (* x (* j 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * ((a * b) - (c * i)));
double t_2 = (i * y1) - (b * y0);
double tmp;
if (y <= -1.1e+219) {
tmp = t_1;
} else if (y <= -1.45e+164) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y <= -8e+46) {
tmp = t_1;
} else if (y <= -1.65e-93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1.56e-264) {
tmp = j * (x * t_2);
} else if (y <= 1.6e-98) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 1.3e+65) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 3.7e+188) {
tmp = x * (j * t_2);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * ((a * b) - (c * i)))
t_2 = (i * y1) - (b * y0)
if (y <= (-1.1d+219)) then
tmp = t_1
else if (y <= (-1.45d+164)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (y <= (-8d+46)) then
tmp = t_1
else if (y <= (-1.65d-93)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= 1.56d-264) then
tmp = j * (x * t_2)
else if (y <= 1.6d-98) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= 1.3d+65) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y <= 3.7d+188) then
tmp = x * (j * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * ((a * b) - (c * i)));
double t_2 = (i * y1) - (b * y0);
double tmp;
if (y <= -1.1e+219) {
tmp = t_1;
} else if (y <= -1.45e+164) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y <= -8e+46) {
tmp = t_1;
} else if (y <= -1.65e-93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1.56e-264) {
tmp = j * (x * t_2);
} else if (y <= 1.6e-98) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 1.3e+65) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 3.7e+188) {
tmp = x * (j * t_2);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (y * ((a * b) - (c * i))) t_2 = (i * y1) - (b * y0) tmp = 0 if y <= -1.1e+219: tmp = t_1 elif y <= -1.45e+164: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif y <= -8e+46: tmp = t_1 elif y <= -1.65e-93: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= 1.56e-264: tmp = j * (x * t_2) elif y <= 1.6e-98: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= 1.3e+65: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y <= 3.7e+188: tmp = x * (j * t_2) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(Float64(i * y1) - Float64(b * y0)) tmp = 0.0 if (y <= -1.1e+219) tmp = t_1; elseif (y <= -1.45e+164) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (y <= -8e+46) tmp = t_1; elseif (y <= -1.65e-93) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= 1.56e-264) tmp = Float64(j * Float64(x * t_2)); elseif (y <= 1.6e-98) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= 1.3e+65) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y <= 3.7e+188) tmp = Float64(x * Float64(j * t_2)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (y * ((a * b) - (c * i))); t_2 = (i * y1) - (b * y0); tmp = 0.0; if (y <= -1.1e+219) tmp = t_1; elseif (y <= -1.45e+164) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (y <= -8e+46) tmp = t_1; elseif (y <= -1.65e-93) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= 1.56e-264) tmp = j * (x * t_2); elseif (y <= 1.6e-98) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= 1.3e+65) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y <= 3.7e+188) tmp = x * (j * t_2); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+219], t$95$1, If[LessEqual[y, -1.45e+164], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8e+46], t$95$1, If[LessEqual[y, -1.65e-93], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.56e-264], N[(j * N[(x * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-98], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+65], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e+188], N[(x * N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := i \cdot y1 - b \cdot y0\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+219}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{+164}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -8 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-93}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.56 \cdot 10^{-264}:\\
\;\;\;\;j \cdot \left(x \cdot t_2\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-98}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+65}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+188}:\\
\;\;\;\;x \cdot \left(j \cdot t_2\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.1000000000000001e219 or -1.4499999999999999e164 < y < -7.9999999999999999e46 or 3.7e188 < y Initial program 32.6%
Taylor expanded in y around inf 60.7%
Taylor expanded in x around inf 62.3%
if -1.1000000000000001e219 < y < -1.4499999999999999e164Initial program 41.7%
Taylor expanded in j around inf 18.2%
Taylor expanded in y0 around inf 50.8%
*-commutative50.8%
Simplified50.8%
if -7.9999999999999999e46 < y < -1.6500000000000001e-93Initial program 38.4%
Taylor expanded in k around inf 52.9%
Taylor expanded in y2 around inf 37.0%
if -1.6500000000000001e-93 < y < 1.5599999999999999e-264Initial program 27.4%
Taylor expanded in j around inf 28.0%
Taylor expanded in x around inf 42.7%
if 1.5599999999999999e-264 < y < 1.6e-98Initial program 17.6%
Taylor expanded in b around inf 42.1%
Taylor expanded in y0 around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 1.6e-98 < y < 1.30000000000000001e65Initial program 37.0%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 49.4%
if 1.30000000000000001e65 < y < 3.7e188Initial program 34.2%
Taylor expanded in x around inf 45.2%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Final simplification51.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0))))
(if (<= y -1.4e+43)
(* x (* y (- (* a b) (* c i))))
(if (<= y -4e-35)
(* i (* y5 (- (* y k) (* t j))))
(if (<= y -3.55e-96)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y -6.8e-135)
(* j (* b (- (* t y4) (* x y0))))
(if (<= y 2.3e-262)
(* j (* x t_1))
(if (<= y 7e-101)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y 8.5e+64)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y 8.2e+188)
(* x (* j t_1))
(* y (* a (- (* x b) (* y3 y5))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -1.4e+43) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -4e-35) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y <= -3.55e-96) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y <= -6.8e-135) {
tmp = j * (b * ((t * y4) - (x * y0)));
} else if (y <= 2.3e-262) {
tmp = j * (x * t_1);
} else if (y <= 7e-101) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 8.5e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 8.2e+188) {
tmp = x * (j * t_1);
} else {
tmp = y * (a * ((x * b) - (y3 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
if (y <= (-1.4d+43)) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y <= (-4d-35)) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (y <= (-3.55d-96)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y <= (-6.8d-135)) then
tmp = j * (b * ((t * y4) - (x * y0)))
else if (y <= 2.3d-262) then
tmp = j * (x * t_1)
else if (y <= 7d-101) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= 8.5d+64) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y <= 8.2d+188) then
tmp = x * (j * t_1)
else
tmp = y * (a * ((x * b) - (y3 * y5)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -1.4e+43) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -4e-35) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y <= -3.55e-96) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y <= -6.8e-135) {
tmp = j * (b * ((t * y4) - (x * y0)));
} else if (y <= 2.3e-262) {
tmp = j * (x * t_1);
} else if (y <= 7e-101) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 8.5e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 8.2e+188) {
tmp = x * (j * t_1);
} else {
tmp = y * (a * ((x * b) - (y3 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) tmp = 0 if y <= -1.4e+43: tmp = x * (y * ((a * b) - (c * i))) elif y <= -4e-35: tmp = i * (y5 * ((y * k) - (t * j))) elif y <= -3.55e-96: tmp = k * (z * ((b * y0) - (i * y1))) elif y <= -6.8e-135: tmp = j * (b * ((t * y4) - (x * y0))) elif y <= 2.3e-262: tmp = j * (x * t_1) elif y <= 7e-101: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= 8.5e+64: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y <= 8.2e+188: tmp = x * (j * t_1) else: tmp = y * (a * ((x * b) - (y3 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) tmp = 0.0 if (y <= -1.4e+43) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y <= -4e-35) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (y <= -3.55e-96) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y <= -6.8e-135) tmp = Float64(j * Float64(b * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y <= 2.3e-262) tmp = Float64(j * Float64(x * t_1)); elseif (y <= 7e-101) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= 8.5e+64) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y <= 8.2e+188) tmp = Float64(x * Float64(j * t_1)); else tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); tmp = 0.0; if (y <= -1.4e+43) tmp = x * (y * ((a * b) - (c * i))); elseif (y <= -4e-35) tmp = i * (y5 * ((y * k) - (t * j))); elseif (y <= -3.55e-96) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y <= -6.8e-135) tmp = j * (b * ((t * y4) - (x * y0))); elseif (y <= 2.3e-262) tmp = j * (x * t_1); elseif (y <= 7e-101) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= 8.5e+64) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y <= 8.2e+188) tmp = x * (j * t_1); else tmp = y * (a * ((x * b) - (y3 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.4e+43], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4e-35], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.55e-96], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.8e-135], N[(j * N[(b * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-262], N[(j * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-101], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e+64], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e+188], N[(x * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{+43}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-35}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;y \leq -3.55 \cdot 10^{-96}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-135}:\\
\;\;\;\;j \cdot \left(b \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-262}:\\
\;\;\;\;j \cdot \left(x \cdot t_1\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+188}:\\
\;\;\;\;x \cdot \left(j \cdot t_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y < -1.40000000000000009e43Initial program 33.6%
Taylor expanded in y around inf 55.0%
Taylor expanded in x around inf 49.8%
if -1.40000000000000009e43 < y < -4.00000000000000003e-35Initial program 41.0%
Taylor expanded in i around -inf 34.3%
Taylor expanded in y5 around inf 47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
if -4.00000000000000003e-35 < y < -3.55000000000000019e-96Initial program 33.2%
Taylor expanded in k around inf 47.4%
Taylor expanded in z around inf 54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
if -3.55000000000000019e-96 < y < -6.79999999999999978e-135Initial program 33.1%
Taylor expanded in j around inf 33.9%
Taylor expanded in b around inf 67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if -6.79999999999999978e-135 < y < 2.3000000000000001e-262Initial program 27.3%
Taylor expanded in j around inf 27.8%
Taylor expanded in x around inf 42.3%
if 2.3000000000000001e-262 < y < 6.99999999999999989e-101Initial program 17.6%
Taylor expanded in b around inf 42.1%
Taylor expanded in y0 around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 6.99999999999999989e-101 < y < 8.4999999999999998e64Initial program 37.0%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 49.4%
if 8.4999999999999998e64 < y < 8.2e188Initial program 34.2%
Taylor expanded in x around inf 45.2%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 8.2e188 < y Initial program 34.7%
Taylor expanded in y around inf 60.9%
Taylor expanded in a around inf 61.6%
*-commutative61.6%
Simplified61.6%
Final simplification50.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0))))
(if (<= y -4.5e+41)
(* x (* y (- (* a b) (* c i))))
(if (<= y -0.0048)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y -2.1e-93)
(* j (* y5 (- (* y0 y3) (* t i))))
(if (<= y 2.2e-262)
(* j (* x t_1))
(if (<= y 2.15e-101)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y 7e+64)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y 1.4e+188)
(* x (* j t_1))
(if (<= y 7e+252)
(* y (* a (- (* x b) (* y3 y5))))
(* i (* y5 (- (* y k) (* t j))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -4.5e+41) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -0.0048) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= -2.1e-93) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y <= 2.2e-262) {
tmp = j * (x * t_1);
} else if (y <= 2.15e-101) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 7e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 1.4e+188) {
tmp = x * (j * t_1);
} else if (y <= 7e+252) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else {
tmp = i * (y5 * ((y * k) - (t * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
if (y <= (-4.5d+41)) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y <= (-0.0048d0)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= (-2.1d-93)) then
tmp = j * (y5 * ((y0 * y3) - (t * i)))
else if (y <= 2.2d-262) then
tmp = j * (x * t_1)
else if (y <= 2.15d-101) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= 7d+64) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y <= 1.4d+188) then
tmp = x * (j * t_1)
else if (y <= 7d+252) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else
tmp = i * (y5 * ((y * k) - (t * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -4.5e+41) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -0.0048) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= -2.1e-93) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y <= 2.2e-262) {
tmp = j * (x * t_1);
} else if (y <= 2.15e-101) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 7e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 1.4e+188) {
tmp = x * (j * t_1);
} else if (y <= 7e+252) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else {
tmp = i * (y5 * ((y * k) - (t * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) tmp = 0 if y <= -4.5e+41: tmp = x * (y * ((a * b) - (c * i))) elif y <= -0.0048: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= -2.1e-93: tmp = j * (y5 * ((y0 * y3) - (t * i))) elif y <= 2.2e-262: tmp = j * (x * t_1) elif y <= 2.15e-101: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= 7e+64: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y <= 1.4e+188: tmp = x * (j * t_1) elif y <= 7e+252: tmp = y * (a * ((x * b) - (y3 * y5))) else: tmp = i * (y5 * ((y * k) - (t * j))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) tmp = 0.0 if (y <= -4.5e+41) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y <= -0.0048) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= -2.1e-93) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(t * i)))); elseif (y <= 2.2e-262) tmp = Float64(j * Float64(x * t_1)); elseif (y <= 2.15e-101) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= 7e+64) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y <= 1.4e+188) tmp = Float64(x * Float64(j * t_1)); elseif (y <= 7e+252) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); else tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); tmp = 0.0; if (y <= -4.5e+41) tmp = x * (y * ((a * b) - (c * i))); elseif (y <= -0.0048) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= -2.1e-93) tmp = j * (y5 * ((y0 * y3) - (t * i))); elseif (y <= 2.2e-262) tmp = j * (x * t_1); elseif (y <= 2.15e-101) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= 7e+64) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y <= 1.4e+188) tmp = x * (j * t_1); elseif (y <= 7e+252) tmp = y * (a * ((x * b) - (y3 * y5))); else tmp = i * (y5 * ((y * k) - (t * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e+41], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -0.0048], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.1e-93], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-262], N[(j * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e-101], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+64], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+188], N[(x * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+252], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y \leq -0.0048:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-93}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-262}:\\
\;\;\;\;j \cdot \left(x \cdot t_1\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+188}:\\
\;\;\;\;x \cdot \left(j \cdot t_1\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+252}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\end{array}
\end{array}
if y < -4.5000000000000001e41Initial program 33.6%
Taylor expanded in y around inf 55.0%
Taylor expanded in x around inf 49.8%
if -4.5000000000000001e41 < y < -0.00479999999999999958Initial program 31.5%
Taylor expanded in k around inf 71.6%
Taylor expanded in y2 around inf 52.4%
if -0.00479999999999999958 < y < -2.1000000000000001e-93Initial program 42.0%
Taylor expanded in j around inf 48.4%
Taylor expanded in y5 around inf 58.8%
if -2.1000000000000001e-93 < y < 2.19999999999999989e-262Initial program 27.4%
Taylor expanded in j around inf 28.0%
Taylor expanded in x around inf 42.7%
if 2.19999999999999989e-262 < y < 2.1499999999999999e-101Initial program 17.6%
Taylor expanded in b around inf 42.1%
Taylor expanded in y0 around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 2.1499999999999999e-101 < y < 6.9999999999999997e64Initial program 37.0%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 49.4%
if 6.9999999999999997e64 < y < 1.3999999999999999e188Initial program 34.2%
Taylor expanded in x around inf 45.2%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 1.3999999999999999e188 < y < 6.9999999999999999e252Initial program 30.6%
Taylor expanded in y around inf 53.9%
Taylor expanded in a around inf 69.6%
*-commutative69.6%
Simplified69.6%
if 6.9999999999999999e252 < y Initial program 40.0%
Taylor expanded in i around -inf 60.2%
Taylor expanded in y5 around inf 80.2%
*-commutative80.2%
*-commutative80.2%
Simplified80.2%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0))))
(if (<= y -5.8e+40)
(* x (* y (- (* a b) (* c i))))
(if (<= y -0.042)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y -7e-95)
(* j (* y5 (- (* y0 y3) (* t i))))
(if (<= y 1.6e-263)
(* j (* x t_1))
(if (<= y 1.35e-100)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y 7.6e+64)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y 2.3e+188)
(* x (* j t_1))
(if (<= y 1e+233)
(* y (* b (- (* x a) (* k y4))))
(* i (* y5 (- (* y k) (* t j))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -5.8e+40) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -0.042) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= -7e-95) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y <= 1.6e-263) {
tmp = j * (x * t_1);
} else if (y <= 1.35e-100) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 7.6e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 2.3e+188) {
tmp = x * (j * t_1);
} else if (y <= 1e+233) {
tmp = y * (b * ((x * a) - (k * y4)));
} else {
tmp = i * (y5 * ((y * k) - (t * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
if (y <= (-5.8d+40)) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y <= (-0.042d0)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= (-7d-95)) then
tmp = j * (y5 * ((y0 * y3) - (t * i)))
else if (y <= 1.6d-263) then
tmp = j * (x * t_1)
else if (y <= 1.35d-100) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= 7.6d+64) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y <= 2.3d+188) then
tmp = x * (j * t_1)
else if (y <= 1d+233) then
tmp = y * (b * ((x * a) - (k * y4)))
else
tmp = i * (y5 * ((y * k) - (t * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -5.8e+40) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -0.042) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= -7e-95) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y <= 1.6e-263) {
tmp = j * (x * t_1);
} else if (y <= 1.35e-100) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 7.6e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 2.3e+188) {
tmp = x * (j * t_1);
} else if (y <= 1e+233) {
tmp = y * (b * ((x * a) - (k * y4)));
} else {
tmp = i * (y5 * ((y * k) - (t * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) tmp = 0 if y <= -5.8e+40: tmp = x * (y * ((a * b) - (c * i))) elif y <= -0.042: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= -7e-95: tmp = j * (y5 * ((y0 * y3) - (t * i))) elif y <= 1.6e-263: tmp = j * (x * t_1) elif y <= 1.35e-100: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= 7.6e+64: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y <= 2.3e+188: tmp = x * (j * t_1) elif y <= 1e+233: tmp = y * (b * ((x * a) - (k * y4))) else: tmp = i * (y5 * ((y * k) - (t * j))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) tmp = 0.0 if (y <= -5.8e+40) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y <= -0.042) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= -7e-95) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(t * i)))); elseif (y <= 1.6e-263) tmp = Float64(j * Float64(x * t_1)); elseif (y <= 1.35e-100) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= 7.6e+64) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y <= 2.3e+188) tmp = Float64(x * Float64(j * t_1)); elseif (y <= 1e+233) tmp = Float64(y * Float64(b * Float64(Float64(x * a) - Float64(k * y4)))); else tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); tmp = 0.0; if (y <= -5.8e+40) tmp = x * (y * ((a * b) - (c * i))); elseif (y <= -0.042) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= -7e-95) tmp = j * (y5 * ((y0 * y3) - (t * i))); elseif (y <= 1.6e-263) tmp = j * (x * t_1); elseif (y <= 1.35e-100) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= 7.6e+64) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y <= 2.3e+188) tmp = x * (j * t_1); elseif (y <= 1e+233) tmp = y * (b * ((x * a) - (k * y4))); else tmp = i * (y5 * ((y * k) - (t * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+40], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -0.042], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e-95], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-263], N[(j * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e-100], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.6e+64], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+188], N[(x * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+233], N[(y * N[(b * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y \leq -0.042:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-95}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-263}:\\
\;\;\;\;j \cdot \left(x \cdot t_1\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-100}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+188}:\\
\;\;\;\;x \cdot \left(j \cdot t_1\right)\\
\mathbf{elif}\;y \leq 10^{+233}:\\
\;\;\;\;y \cdot \left(b \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\end{array}
\end{array}
if y < -5.80000000000000035e40Initial program 33.6%
Taylor expanded in y around inf 55.0%
Taylor expanded in x around inf 49.8%
if -5.80000000000000035e40 < y < -0.0420000000000000026Initial program 31.5%
Taylor expanded in k around inf 71.6%
Taylor expanded in y2 around inf 52.4%
if -0.0420000000000000026 < y < -6.9999999999999994e-95Initial program 42.0%
Taylor expanded in j around inf 48.4%
Taylor expanded in y5 around inf 58.8%
if -6.9999999999999994e-95 < y < 1.6e-263Initial program 27.4%
Taylor expanded in j around inf 28.0%
Taylor expanded in x around inf 42.7%
if 1.6e-263 < y < 1.35000000000000008e-100Initial program 17.6%
Taylor expanded in b around inf 42.1%
Taylor expanded in y0 around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 1.35000000000000008e-100 < y < 7.6000000000000002e64Initial program 37.0%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 49.4%
if 7.6000000000000002e64 < y < 2.30000000000000011e188Initial program 34.2%
Taylor expanded in x around inf 45.2%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 2.30000000000000011e188 < y < 9.99999999999999974e232Initial program 27.1%
Taylor expanded in y around inf 54.6%
Taylor expanded in b around inf 73.1%
if 9.99999999999999974e232 < y Initial program 41.7%
Taylor expanded in i around -inf 58.5%
Taylor expanded in y5 around inf 75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (* y y5)))))
(if (<= c -1.08e+158)
(* x (* i (- (* y c))))
(if (<= c -9.2e-80)
(* b (* j (- (* x y0))))
(if (<= c -2.85e-101)
(* c (* (* x y) (- i)))
(if (<= c -5.1e-126)
t_1
(if (<= c -3.7e-243)
(* b (* k (* z y0)))
(if (<= c 3.2e-280)
t_1
(if (<= c 1.4e+15)
(* x (* y (* a b)))
(* x (* y2 (* c y0))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (c <= -1.08e+158) {
tmp = x * (i * -(y * c));
} else if (c <= -9.2e-80) {
tmp = b * (j * -(x * y0));
} else if (c <= -2.85e-101) {
tmp = c * ((x * y) * -i);
} else if (c <= -5.1e-126) {
tmp = t_1;
} else if (c <= -3.7e-243) {
tmp = b * (k * (z * y0));
} else if (c <= 3.2e-280) {
tmp = t_1;
} else if (c <= 1.4e+15) {
tmp = x * (y * (a * b));
} else {
tmp = x * (y2 * (c * y0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * (y * y5))
if (c <= (-1.08d+158)) then
tmp = x * (i * -(y * c))
else if (c <= (-9.2d-80)) then
tmp = b * (j * -(x * y0))
else if (c <= (-2.85d-101)) then
tmp = c * ((x * y) * -i)
else if (c <= (-5.1d-126)) then
tmp = t_1
else if (c <= (-3.7d-243)) then
tmp = b * (k * (z * y0))
else if (c <= 3.2d-280) then
tmp = t_1
else if (c <= 1.4d+15) then
tmp = x * (y * (a * b))
else
tmp = x * (y2 * (c * y0))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (c <= -1.08e+158) {
tmp = x * (i * -(y * c));
} else if (c <= -9.2e-80) {
tmp = b * (j * -(x * y0));
} else if (c <= -2.85e-101) {
tmp = c * ((x * y) * -i);
} else if (c <= -5.1e-126) {
tmp = t_1;
} else if (c <= -3.7e-243) {
tmp = b * (k * (z * y0));
} else if (c <= 3.2e-280) {
tmp = t_1;
} else if (c <= 1.4e+15) {
tmp = x * (y * (a * b));
} else {
tmp = x * (y2 * (c * y0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * (y * y5)) tmp = 0 if c <= -1.08e+158: tmp = x * (i * -(y * c)) elif c <= -9.2e-80: tmp = b * (j * -(x * y0)) elif c <= -2.85e-101: tmp = c * ((x * y) * -i) elif c <= -5.1e-126: tmp = t_1 elif c <= -3.7e-243: tmp = b * (k * (z * y0)) elif c <= 3.2e-280: tmp = t_1 elif c <= 1.4e+15: tmp = x * (y * (a * b)) else: tmp = x * (y2 * (c * y0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(y * y5))) tmp = 0.0 if (c <= -1.08e+158) tmp = Float64(x * Float64(i * Float64(-Float64(y * c)))); elseif (c <= -9.2e-80) tmp = Float64(b * Float64(j * Float64(-Float64(x * y0)))); elseif (c <= -2.85e-101) tmp = Float64(c * Float64(Float64(x * y) * Float64(-i))); elseif (c <= -5.1e-126) tmp = t_1; elseif (c <= -3.7e-243) tmp = Float64(b * Float64(k * Float64(z * y0))); elseif (c <= 3.2e-280) tmp = t_1; elseif (c <= 1.4e+15) tmp = Float64(x * Float64(y * Float64(a * b))); else tmp = Float64(x * Float64(y2 * Float64(c * y0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * (y * y5)); tmp = 0.0; if (c <= -1.08e+158) tmp = x * (i * -(y * c)); elseif (c <= -9.2e-80) tmp = b * (j * -(x * y0)); elseif (c <= -2.85e-101) tmp = c * ((x * y) * -i); elseif (c <= -5.1e-126) tmp = t_1; elseif (c <= -3.7e-243) tmp = b * (k * (z * y0)); elseif (c <= 3.2e-280) tmp = t_1; elseif (c <= 1.4e+15) tmp = x * (y * (a * b)); else tmp = x * (y2 * (c * y0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.08e+158], N[(x * N[(i * (-N[(y * c), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9.2e-80], N[(b * N[(j * (-N[(x * y0), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.85e-101], N[(c * N[(N[(x * y), $MachinePrecision] * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.1e-126], t$95$1, If[LessEqual[c, -3.7e-243], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e-280], t$95$1, If[LessEqual[c, 1.4e+15], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{if}\;c \leq -1.08 \cdot 10^{+158}:\\
\;\;\;\;x \cdot \left(i \cdot \left(-y \cdot c\right)\right)\\
\mathbf{elif}\;c \leq -9.2 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(j \cdot \left(-x \cdot y0\right)\right)\\
\mathbf{elif}\;c \leq -2.85 \cdot 10^{-101}:\\
\;\;\;\;c \cdot \left(\left(x \cdot y\right) \cdot \left(-i\right)\right)\\
\mathbf{elif}\;c \leq -5.1 \cdot 10^{-126}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -3.7 \cdot 10^{-243}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{+15}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\
\end{array}
\end{array}
if c < -1.08e158Initial program 27.6%
Taylor expanded in y around inf 33.8%
Taylor expanded in x around inf 52.2%
Taylor expanded in a around 0 40.4%
associate-*r*40.4%
*-commutative40.4%
mul-1-neg40.4%
associate-*r*40.4%
*-commutative40.4%
distribute-lft-neg-in40.4%
distribute-rgt-neg-in40.4%
Simplified40.4%
if -1.08e158 < c < -9.1999999999999993e-80Initial program 21.5%
Taylor expanded in b around inf 33.1%
Taylor expanded in y0 around inf 33.8%
*-commutative33.8%
*-commutative33.8%
Simplified33.8%
Taylor expanded in z around 0 29.1%
mul-1-neg29.1%
*-commutative29.1%
distribute-rgt-neg-in29.1%
Simplified29.1%
if -9.1999999999999993e-80 < c < -2.84999999999999992e-101Initial program 100.0%
Taylor expanded in c around inf 40.7%
Taylor expanded in i around inf 61.1%
mul-1-neg61.1%
*-commutative61.1%
distribute-rgt-neg-out61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in x around inf 61.1%
if -2.84999999999999992e-101 < c < -5.10000000000000002e-126 or -3.7e-243 < c < 3.2000000000000001e-280Initial program 37.5%
Taylor expanded in i around -inf 47.3%
Taylor expanded in k around -inf 54.0%
associate-*r*54.0%
neg-mul-154.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in y around inf 44.6%
if -5.10000000000000002e-126 < c < -3.7e-243Initial program 27.5%
Taylor expanded in b around inf 41.0%
Taylor expanded in y0 around inf 50.6%
*-commutative50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in z around inf 50.8%
if 3.2000000000000001e-280 < c < 1.4e15Initial program 35.7%
Taylor expanded in y around inf 43.1%
Taylor expanded in x around inf 35.4%
Taylor expanded in a around inf 36.5%
if 1.4e15 < c Initial program 28.7%
Taylor expanded in x around inf 42.5%
Taylor expanded in y2 around inf 41.2%
Taylor expanded in c around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification39.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0))))
(if (<= y -3.6e+41)
(* x (* y (- (* a b) (* c i))))
(if (<= y -1.22e-93)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y 1.55e-263)
(* j (* x t_1))
(if (<= y 1.2e-101)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y 8.5e+64)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y 1.65e+188)
(* x (* j t_1))
(* y (* a (- (* x b) (* y3 y5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -3.6e+41) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -1.22e-93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1.55e-263) {
tmp = j * (x * t_1);
} else if (y <= 1.2e-101) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 8.5e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 1.65e+188) {
tmp = x * (j * t_1);
} else {
tmp = y * (a * ((x * b) - (y3 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
if (y <= (-3.6d+41)) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y <= (-1.22d-93)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= 1.55d-263) then
tmp = j * (x * t_1)
else if (y <= 1.2d-101) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= 8.5d+64) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y <= 1.65d+188) then
tmp = x * (j * t_1)
else
tmp = y * (a * ((x * b) - (y3 * y5)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double tmp;
if (y <= -3.6e+41) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y <= -1.22e-93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1.55e-263) {
tmp = j * (x * t_1);
} else if (y <= 1.2e-101) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= 8.5e+64) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 1.65e+188) {
tmp = x * (j * t_1);
} else {
tmp = y * (a * ((x * b) - (y3 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) tmp = 0 if y <= -3.6e+41: tmp = x * (y * ((a * b) - (c * i))) elif y <= -1.22e-93: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= 1.55e-263: tmp = j * (x * t_1) elif y <= 1.2e-101: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= 8.5e+64: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y <= 1.65e+188: tmp = x * (j * t_1) else: tmp = y * (a * ((x * b) - (y3 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) tmp = 0.0 if (y <= -3.6e+41) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y <= -1.22e-93) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= 1.55e-263) tmp = Float64(j * Float64(x * t_1)); elseif (y <= 1.2e-101) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= 8.5e+64) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y <= 1.65e+188) tmp = Float64(x * Float64(j * t_1)); else tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); tmp = 0.0; if (y <= -3.6e+41) tmp = x * (y * ((a * b) - (c * i))); elseif (y <= -1.22e-93) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= 1.55e-263) tmp = j * (x * t_1); elseif (y <= 1.2e-101) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= 8.5e+64) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y <= 1.65e+188) tmp = x * (j * t_1); else tmp = y * (a * ((x * b) - (y3 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+41], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.22e-93], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-263], N[(j * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e-101], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e+64], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+188], N[(x * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y \leq -1.22 \cdot 10^{-93}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-263}:\\
\;\;\;\;j \cdot \left(x \cdot t_1\right)\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+188}:\\
\;\;\;\;x \cdot \left(j \cdot t_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y < -3.60000000000000025e41Initial program 33.6%
Taylor expanded in y around inf 55.0%
Taylor expanded in x around inf 49.8%
if -3.60000000000000025e41 < y < -1.21999999999999998e-93Initial program 38.4%
Taylor expanded in k around inf 52.9%
Taylor expanded in y2 around inf 37.0%
if -1.21999999999999998e-93 < y < 1.55000000000000002e-263Initial program 27.4%
Taylor expanded in j around inf 28.0%
Taylor expanded in x around inf 42.7%
if 1.55000000000000002e-263 < y < 1.2e-101Initial program 17.6%
Taylor expanded in b around inf 42.1%
Taylor expanded in y0 around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 1.2e-101 < y < 8.4999999999999998e64Initial program 37.0%
Taylor expanded in x around inf 37.5%
Taylor expanded in y2 around inf 49.4%
if 8.4999999999999998e64 < y < 1.64999999999999991e188Initial program 34.2%
Taylor expanded in x around inf 45.2%
Taylor expanded in j around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 1.64999999999999991e188 < y Initial program 34.7%
Taylor expanded in y around inf 60.9%
Taylor expanded in a around inf 61.6%
*-commutative61.6%
Simplified61.6%
Final simplification48.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y0 (- (* z k) (* x j)))))
(t_2 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= c -4.3e+138)
t_2
(if (<= c -8e+40)
t_1
(if (<= c -8.5e-22)
t_2
(if (<= c 3.9e-280)
t_1
(if (<= c 4.7e+14)
(* b (* a (- (* x y) (* z t))))
(* c (* y0 (- (* x y2) (* z y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y0 * ((z * k) - (x * j)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (c <= -4.3e+138) {
tmp = t_2;
} else if (c <= -8e+40) {
tmp = t_1;
} else if (c <= -8.5e-22) {
tmp = t_2;
} else if (c <= 3.9e-280) {
tmp = t_1;
} else if (c <= 4.7e+14) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (y0 * ((z * k) - (x * j)))
t_2 = c * (y4 * ((y * y3) - (t * y2)))
if (c <= (-4.3d+138)) then
tmp = t_2
else if (c <= (-8d+40)) then
tmp = t_1
else if (c <= (-8.5d-22)) then
tmp = t_2
else if (c <= 3.9d-280) then
tmp = t_1
else if (c <= 4.7d+14) then
tmp = b * (a * ((x * y) - (z * t)))
else
tmp = c * (y0 * ((x * y2) - (z * y3)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y0 * ((z * k) - (x * j)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (c <= -4.3e+138) {
tmp = t_2;
} else if (c <= -8e+40) {
tmp = t_1;
} else if (c <= -8.5e-22) {
tmp = t_2;
} else if (c <= 3.9e-280) {
tmp = t_1;
} else if (c <= 4.7e+14) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y0 * ((z * k) - (x * j))) t_2 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if c <= -4.3e+138: tmp = t_2 elif c <= -8e+40: tmp = t_1 elif c <= -8.5e-22: tmp = t_2 elif c <= 3.9e-280: tmp = t_1 elif c <= 4.7e+14: tmp = b * (a * ((x * y) - (z * t))) else: tmp = c * (y0 * ((x * y2) - (z * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (c <= -4.3e+138) tmp = t_2; elseif (c <= -8e+40) tmp = t_1; elseif (c <= -8.5e-22) tmp = t_2; elseif (c <= 3.9e-280) tmp = t_1; elseif (c <= 4.7e+14) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y0 * ((z * k) - (x * j))); t_2 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (c <= -4.3e+138) tmp = t_2; elseif (c <= -8e+40) tmp = t_1; elseif (c <= -8.5e-22) tmp = t_2; elseif (c <= 3.9e-280) tmp = t_1; elseif (c <= 4.7e+14) tmp = b * (a * ((x * y) - (z * t))); else tmp = c * (y0 * ((x * y2) - (z * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.3e+138], t$95$2, If[LessEqual[c, -8e+40], t$95$1, If[LessEqual[c, -8.5e-22], t$95$2, If[LessEqual[c, 3.9e-280], t$95$1, If[LessEqual[c, 4.7e+14], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;c \leq -4.3 \cdot 10^{+138}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -8 \cdot 10^{+40}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-22}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{+14}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\end{array}
\end{array}
if c < -4.2999999999999998e138 or -8.00000000000000024e40 < c < -8.5000000000000001e-22Initial program 23.2%
Taylor expanded in c around inf 58.5%
Taylor expanded in y4 around inf 44.3%
*-commutative44.3%
*-commutative44.3%
Simplified44.3%
if -4.2999999999999998e138 < c < -8.00000000000000024e40 or -8.5000000000000001e-22 < c < 3.89999999999999998e-280Initial program 34.7%
Taylor expanded in b around inf 38.3%
Taylor expanded in y0 around inf 44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
if 3.89999999999999998e-280 < c < 4.7e14Initial program 35.7%
Taylor expanded in b around inf 42.3%
Taylor expanded in a around inf 39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
if 4.7e14 < c Initial program 28.7%
Taylor expanded in c around inf 68.1%
Taylor expanded in y0 around inf 51.5%
Final simplification44.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= c -3.8e+149)
t_1
(if (<= c -1.65e+38)
(* j (* x (- (* i y1) (* b y0))))
(if (<= c -4.5e-21)
t_1
(if (<= c 1.32e-278)
(* b (* y0 (- (* z k) (* x j))))
(if (<= c 1.1e+15)
(* b (* a (- (* x y) (* z t))))
(* c (* y0 (- (* x y2) (* z y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (c <= -3.8e+149) {
tmp = t_1;
} else if (c <= -1.65e+38) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (c <= -4.5e-21) {
tmp = t_1;
} else if (c <= 1.32e-278) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 1.1e+15) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y4 * ((y * y3) - (t * y2)))
if (c <= (-3.8d+149)) then
tmp = t_1
else if (c <= (-1.65d+38)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (c <= (-4.5d-21)) then
tmp = t_1
else if (c <= 1.32d-278) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (c <= 1.1d+15) then
tmp = b * (a * ((x * y) - (z * t)))
else
tmp = c * (y0 * ((x * y2) - (z * y3)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (c <= -3.8e+149) {
tmp = t_1;
} else if (c <= -1.65e+38) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (c <= -4.5e-21) {
tmp = t_1;
} else if (c <= 1.32e-278) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 1.1e+15) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if c <= -3.8e+149: tmp = t_1 elif c <= -1.65e+38: tmp = j * (x * ((i * y1) - (b * y0))) elif c <= -4.5e-21: tmp = t_1 elif c <= 1.32e-278: tmp = b * (y0 * ((z * k) - (x * j))) elif c <= 1.1e+15: tmp = b * (a * ((x * y) - (z * t))) else: tmp = c * (y0 * ((x * y2) - (z * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (c <= -3.8e+149) tmp = t_1; elseif (c <= -1.65e+38) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (c <= -4.5e-21) tmp = t_1; elseif (c <= 1.32e-278) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (c <= 1.1e+15) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (c <= -3.8e+149) tmp = t_1; elseif (c <= -1.65e+38) tmp = j * (x * ((i * y1) - (b * y0))); elseif (c <= -4.5e-21) tmp = t_1; elseif (c <= 1.32e-278) tmp = b * (y0 * ((z * k) - (x * j))); elseif (c <= 1.1e+15) tmp = b * (a * ((x * y) - (z * t))); else tmp = c * (y0 * ((x * y2) - (z * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.8e+149], t$95$1, If[LessEqual[c, -1.65e+38], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.5e-21], t$95$1, If[LessEqual[c, 1.32e-278], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e+15], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;c \leq -3.8 \cdot 10^{+149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.65 \cdot 10^{+38}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.32 \cdot 10^{-278}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+15}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\end{array}
\end{array}
if c < -3.8000000000000001e149 or -1.65e38 < c < -4.49999999999999968e-21Initial program 24.8%
Taylor expanded in c around inf 60.1%
Taylor expanded in y4 around inf 45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
if -3.8000000000000001e149 < c < -1.65e38Initial program 17.6%
Taylor expanded in j around inf 41.4%
Taylor expanded in x around inf 54.2%
if -4.49999999999999968e-21 < c < 1.32e-278Initial program 37.3%
Taylor expanded in b around inf 38.7%
Taylor expanded in y0 around inf 41.8%
*-commutative41.8%
*-commutative41.8%
Simplified41.8%
if 1.32e-278 < c < 1.1e15Initial program 35.7%
Taylor expanded in b around inf 42.3%
Taylor expanded in a around inf 39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
if 1.1e15 < c Initial program 28.7%
Taylor expanded in c around inf 68.1%
Taylor expanded in y0 around inf 51.5%
Final simplification44.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* y (* a b)))))
(if (<= y0 -1e+62)
(* b (* j (- (* x y0))))
(if (<= y0 8.2e-192)
t_1
(if (<= y0 7.1e-22)
(* i (* k (* y1 (- z))))
(if (<= y0 9.6e+101)
(* c (* x (* y0 y2)))
(if (<= y0 5.3e+200) t_1 (* b (* k (* z y0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * (a * b));
double tmp;
if (y0 <= -1e+62) {
tmp = b * (j * -(x * y0));
} else if (y0 <= 8.2e-192) {
tmp = t_1;
} else if (y0 <= 7.1e-22) {
tmp = i * (k * (y1 * -z));
} else if (y0 <= 9.6e+101) {
tmp = c * (x * (y0 * y2));
} else if (y0 <= 5.3e+200) {
tmp = t_1;
} else {
tmp = b * (k * (z * y0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * (a * b))
if (y0 <= (-1d+62)) then
tmp = b * (j * -(x * y0))
else if (y0 <= 8.2d-192) then
tmp = t_1
else if (y0 <= 7.1d-22) then
tmp = i * (k * (y1 * -z))
else if (y0 <= 9.6d+101) then
tmp = c * (x * (y0 * y2))
else if (y0 <= 5.3d+200) then
tmp = t_1
else
tmp = b * (k * (z * y0))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * (a * b));
double tmp;
if (y0 <= -1e+62) {
tmp = b * (j * -(x * y0));
} else if (y0 <= 8.2e-192) {
tmp = t_1;
} else if (y0 <= 7.1e-22) {
tmp = i * (k * (y1 * -z));
} else if (y0 <= 9.6e+101) {
tmp = c * (x * (y0 * y2));
} else if (y0 <= 5.3e+200) {
tmp = t_1;
} else {
tmp = b * (k * (z * y0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (y * (a * b)) tmp = 0 if y0 <= -1e+62: tmp = b * (j * -(x * y0)) elif y0 <= 8.2e-192: tmp = t_1 elif y0 <= 7.1e-22: tmp = i * (k * (y1 * -z)) elif y0 <= 9.6e+101: tmp = c * (x * (y0 * y2)) elif y0 <= 5.3e+200: tmp = t_1 else: tmp = b * (k * (z * y0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(y * Float64(a * b))) tmp = 0.0 if (y0 <= -1e+62) tmp = Float64(b * Float64(j * Float64(-Float64(x * y0)))); elseif (y0 <= 8.2e-192) tmp = t_1; elseif (y0 <= 7.1e-22) tmp = Float64(i * Float64(k * Float64(y1 * Float64(-z)))); elseif (y0 <= 9.6e+101) tmp = Float64(c * Float64(x * Float64(y0 * y2))); elseif (y0 <= 5.3e+200) tmp = t_1; else tmp = Float64(b * Float64(k * Float64(z * y0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (y * (a * b)); tmp = 0.0; if (y0 <= -1e+62) tmp = b * (j * -(x * y0)); elseif (y0 <= 8.2e-192) tmp = t_1; elseif (y0 <= 7.1e-22) tmp = i * (k * (y1 * -z)); elseif (y0 <= 9.6e+101) tmp = c * (x * (y0 * y2)); elseif (y0 <= 5.3e+200) tmp = t_1; else tmp = b * (k * (z * y0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1e+62], N[(b * N[(j * (-N[(x * y0), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 8.2e-192], t$95$1, If[LessEqual[y0, 7.1e-22], N[(i * N[(k * N[(y1 * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 9.6e+101], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5.3e+200], t$95$1, N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{if}\;y0 \leq -1 \cdot 10^{+62}:\\
\;\;\;\;b \cdot \left(j \cdot \left(-x \cdot y0\right)\right)\\
\mathbf{elif}\;y0 \leq 8.2 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq 7.1 \cdot 10^{-22}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y1 \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;y0 \leq 9.6 \cdot 10^{+101}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y0 \leq 5.3 \cdot 10^{+200}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\end{array}
\end{array}
if y0 < -1.00000000000000004e62Initial program 23.3%
Taylor expanded in b around inf 36.3%
Taylor expanded in y0 around inf 47.3%
*-commutative47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in z around 0 45.6%
mul-1-neg45.6%
*-commutative45.6%
distribute-rgt-neg-in45.6%
Simplified45.6%
if -1.00000000000000004e62 < y0 < 8.19999999999999947e-192 or 9.59999999999999953e101 < y0 < 5.29999999999999994e200Initial program 36.3%
Taylor expanded in y around inf 44.1%
Taylor expanded in x around inf 38.1%
Taylor expanded in a around inf 28.9%
if 8.19999999999999947e-192 < y0 < 7.0999999999999999e-22Initial program 31.8%
Taylor expanded in i around -inf 49.5%
Taylor expanded in k around -inf 40.0%
associate-*r*40.0%
neg-mul-140.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in y around 0 30.7%
if 7.0999999999999999e-22 < y0 < 9.59999999999999953e101Initial program 27.2%
Taylor expanded in x around inf 54.0%
Taylor expanded in y2 around inf 43.6%
Taylor expanded in c around inf 36.1%
if 5.29999999999999994e200 < y0 Initial program 32.0%
Taylor expanded in b around inf 32.5%
Taylor expanded in y0 around inf 44.9%
*-commutative44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in z around inf 36.7%
Final simplification34.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (* x a)))))
(if (<= c -5.2e+183)
(* c (* (* z t) i))
(if (<= c -1.2e+21)
t_1
(if (<= c 1.15e-280)
(* b (* y0 (* z k)))
(if (<= c 47000000000000.0) t_1 (* c (* x (* y0 y2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * (x * a));
double tmp;
if (c <= -5.2e+183) {
tmp = c * ((z * t) * i);
} else if (c <= -1.2e+21) {
tmp = t_1;
} else if (c <= 1.15e-280) {
tmp = b * (y0 * (z * k));
} else if (c <= 47000000000000.0) {
tmp = t_1;
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y * (x * a))
if (c <= (-5.2d+183)) then
tmp = c * ((z * t) * i)
else if (c <= (-1.2d+21)) then
tmp = t_1
else if (c <= 1.15d-280) then
tmp = b * (y0 * (z * k))
else if (c <= 47000000000000.0d0) then
tmp = t_1
else
tmp = c * (x * (y0 * y2))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * (x * a));
double tmp;
if (c <= -5.2e+183) {
tmp = c * ((z * t) * i);
} else if (c <= -1.2e+21) {
tmp = t_1;
} else if (c <= 1.15e-280) {
tmp = b * (y0 * (z * k));
} else if (c <= 47000000000000.0) {
tmp = t_1;
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y * (x * a)) tmp = 0 if c <= -5.2e+183: tmp = c * ((z * t) * i) elif c <= -1.2e+21: tmp = t_1 elif c <= 1.15e-280: tmp = b * (y0 * (z * k)) elif c <= 47000000000000.0: tmp = t_1 else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y * Float64(x * a))) tmp = 0.0 if (c <= -5.2e+183) tmp = Float64(c * Float64(Float64(z * t) * i)); elseif (c <= -1.2e+21) tmp = t_1; elseif (c <= 1.15e-280) tmp = Float64(b * Float64(y0 * Float64(z * k))); elseif (c <= 47000000000000.0) tmp = t_1; else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y * (x * a)); tmp = 0.0; if (c <= -5.2e+183) tmp = c * ((z * t) * i); elseif (c <= -1.2e+21) tmp = t_1; elseif (c <= 1.15e-280) tmp = b * (y0 * (z * k)); elseif (c <= 47000000000000.0) tmp = t_1; else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.2e+183], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.2e+21], t$95$1, If[LessEqual[c, 1.15e-280], N[(b * N[(y0 * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 47000000000000.0], t$95$1, N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\mathbf{if}\;c \leq -5.2 \cdot 10^{+183}:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-280}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;c \leq 47000000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if c < -5.1999999999999999e183Initial program 27.9%
Taylor expanded in c around inf 65.5%
Taylor expanded in i around inf 45.5%
mul-1-neg45.5%
*-commutative45.5%
distribute-rgt-neg-out45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in x around 0 32.2%
*-commutative32.2%
Simplified32.2%
if -5.1999999999999999e183 < c < -1.2e21 or 1.15e-280 < c < 4.7e13Initial program 29.4%
Taylor expanded in y around inf 41.4%
Taylor expanded in x around inf 36.2%
Taylor expanded in a around inf 26.3%
pow126.3%
*-commutative26.3%
associate-*l*29.4%
*-commutative29.4%
Applied egg-rr29.4%
unpow129.4%
associate-*l*32.7%
Simplified32.7%
if -1.2e21 < c < 1.15e-280Initial program 37.0%
Taylor expanded in b around inf 37.1%
Taylor expanded in y0 around inf 38.8%
*-commutative38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in z around inf 26.7%
*-commutative26.7%
associate-*r*28.0%
*-commutative28.0%
Simplified28.0%
if 4.7e13 < c Initial program 28.7%
Taylor expanded in x around inf 42.5%
Taylor expanded in y2 around inf 41.2%
Taylor expanded in c around inf 34.6%
Final simplification31.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* y (* a b)))) (t_2 (* y2 (* x (* c y0)))))
(if (<= b -4.2e-122)
t_1
(if (<= b 1.05e-23)
t_2
(if (<= b 1.7e+18) (* c (* (* z t) i)) (if (<= b 1.4e+85) 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * (a * b));
double t_2 = y2 * (x * (c * y0));
double tmp;
if (b <= -4.2e-122) {
tmp = t_1;
} else if (b <= 1.05e-23) {
tmp = t_2;
} else if (b <= 1.7e+18) {
tmp = c * ((z * t) * i);
} else if (b <= 1.4e+85) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * (a * b))
t_2 = y2 * (x * (c * y0))
if (b <= (-4.2d-122)) then
tmp = t_1
else if (b <= 1.05d-23) then
tmp = t_2
else if (b <= 1.7d+18) then
tmp = c * ((z * t) * i)
else if (b <= 1.4d+85) 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * (a * b));
double t_2 = y2 * (x * (c * y0));
double tmp;
if (b <= -4.2e-122) {
tmp = t_1;
} else if (b <= 1.05e-23) {
tmp = t_2;
} else if (b <= 1.7e+18) {
tmp = c * ((z * t) * i);
} else if (b <= 1.4e+85) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (y * (a * b)) t_2 = y2 * (x * (c * y0)) tmp = 0 if b <= -4.2e-122: tmp = t_1 elif b <= 1.05e-23: tmp = t_2 elif b <= 1.7e+18: tmp = c * ((z * t) * i) elif b <= 1.4e+85: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(y * Float64(a * b))) t_2 = Float64(y2 * Float64(x * Float64(c * y0))) tmp = 0.0 if (b <= -4.2e-122) tmp = t_1; elseif (b <= 1.05e-23) tmp = t_2; elseif (b <= 1.7e+18) tmp = Float64(c * Float64(Float64(z * t) * i)); elseif (b <= 1.4e+85) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (y * (a * b)); t_2 = y2 * (x * (c * y0)); tmp = 0.0; if (b <= -4.2e-122) tmp = t_1; elseif (b <= 1.05e-23) tmp = t_2; elseif (b <= 1.7e+18) tmp = c * ((z * t) * i); elseif (b <= 1.4e+85) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(x * N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e-122], t$95$1, If[LessEqual[b, 1.05e-23], t$95$2, If[LessEqual[b, 1.7e+18], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+85], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
t_2 := y2 \cdot \left(x \cdot \left(c \cdot y0\right)\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{-122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+18}:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.19999999999999985e-122 or 1.4e85 < b Initial program 30.4%
Taylor expanded in y around inf 42.7%
Taylor expanded in x around inf 39.3%
Taylor expanded in a around inf 35.6%
if -4.19999999999999985e-122 < b < 1.05e-23 or 1.7e18 < b < 1.4e85Initial program 32.1%
Taylor expanded in x around inf 46.1%
Taylor expanded in y2 around inf 33.9%
Taylor expanded in c around inf 23.3%
*-commutative23.3%
associate-*r*25.1%
*-commutative25.1%
associate-*l*24.2%
*-commutative24.2%
associate-*r*25.1%
associate-*r*25.9%
*-commutative25.9%
associate-*l*28.6%
Simplified28.6%
if 1.05e-23 < b < 1.7e18Initial program 36.4%
Taylor expanded in c around inf 55.0%
Taylor expanded in i around inf 46.5%
mul-1-neg46.5%
*-commutative46.5%
distribute-rgt-neg-out46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in x around 0 46.3%
*-commutative46.3%
Simplified46.3%
Final simplification33.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -4.4e+61)
(* b (* j (- (* x y0))))
(if (<= y0 0.23)
(* x (* y (* a b)))
(if (<= y0 1.25e+102)
(* c (* x (* y0 y2)))
(if (<= y0 2.7e+168) (* a (* y (* x b))) (* b (* k (* z y0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.4e+61) {
tmp = b * (j * -(x * y0));
} else if (y0 <= 0.23) {
tmp = x * (y * (a * b));
} else if (y0 <= 1.25e+102) {
tmp = c * (x * (y0 * y2));
} else if (y0 <= 2.7e+168) {
tmp = a * (y * (x * b));
} else {
tmp = b * (k * (z * y0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y0 <= (-4.4d+61)) then
tmp = b * (j * -(x * y0))
else if (y0 <= 0.23d0) then
tmp = x * (y * (a * b))
else if (y0 <= 1.25d+102) then
tmp = c * (x * (y0 * y2))
else if (y0 <= 2.7d+168) then
tmp = a * (y * (x * b))
else
tmp = b * (k * (z * y0))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.4e+61) {
tmp = b * (j * -(x * y0));
} else if (y0 <= 0.23) {
tmp = x * (y * (a * b));
} else if (y0 <= 1.25e+102) {
tmp = c * (x * (y0 * y2));
} else if (y0 <= 2.7e+168) {
tmp = a * (y * (x * b));
} else {
tmp = b * (k * (z * y0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -4.4e+61: tmp = b * (j * -(x * y0)) elif y0 <= 0.23: tmp = x * (y * (a * b)) elif y0 <= 1.25e+102: tmp = c * (x * (y0 * y2)) elif y0 <= 2.7e+168: tmp = a * (y * (x * b)) else: tmp = b * (k * (z * y0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -4.4e+61) tmp = Float64(b * Float64(j * Float64(-Float64(x * y0)))); elseif (y0 <= 0.23) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y0 <= 1.25e+102) tmp = Float64(c * Float64(x * Float64(y0 * y2))); elseif (y0 <= 2.7e+168) tmp = Float64(a * Float64(y * Float64(x * b))); else tmp = Float64(b * Float64(k * Float64(z * y0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y0 <= -4.4e+61) tmp = b * (j * -(x * y0)); elseif (y0 <= 0.23) tmp = x * (y * (a * b)); elseif (y0 <= 1.25e+102) tmp = c * (x * (y0 * y2)); elseif (y0 <= 2.7e+168) tmp = a * (y * (x * b)); else tmp = b * (k * (z * y0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -4.4e+61], N[(b * N[(j * (-N[(x * y0), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 0.23], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.25e+102], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.7e+168], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -4.4 \cdot 10^{+61}:\\
\;\;\;\;b \cdot \left(j \cdot \left(-x \cdot y0\right)\right)\\
\mathbf{elif}\;y0 \leq 0.23:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y0 \leq 1.25 \cdot 10^{+102}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y0 \leq 2.7 \cdot 10^{+168}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\end{array}
\end{array}
if y0 < -4.4000000000000001e61Initial program 23.3%
Taylor expanded in b around inf 36.3%
Taylor expanded in y0 around inf 47.3%
*-commutative47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in z around 0 45.6%
mul-1-neg45.6%
*-commutative45.6%
distribute-rgt-neg-in45.6%
Simplified45.6%
if -4.4000000000000001e61 < y0 < 0.23000000000000001Initial program 34.0%
Taylor expanded in y around inf 45.4%
Taylor expanded in x around inf 35.5%
Taylor expanded in a around inf 24.7%
if 0.23000000000000001 < y0 < 1.25e102Initial program 32.2%
Taylor expanded in x around inf 54.7%
Taylor expanded in y2 around inf 42.2%
Taylor expanded in c around inf 42.3%
if 1.25e102 < y0 < 2.70000000000000016e168Initial program 33.8%
Taylor expanded in y around inf 41.7%
Taylor expanded in x around inf 43.0%
Taylor expanded in a around inf 27.3%
pow127.3%
associate-*r*35.1%
*-commutative35.1%
Applied egg-rr35.1%
unpow135.1%
Simplified35.1%
if 2.70000000000000016e168 < y0 Initial program 33.3%
Taylor expanded in b around inf 37.1%
Taylor expanded in y0 around inf 47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in z around inf 40.6%
Final simplification33.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -1.22e+104)
(* x (* y (* c (- i))))
(if (<= c 7.8e-281)
(* b (* y0 (- (* z k) (* x j))))
(if (<= c 3.8e+14)
(* b (* a (- (* x y) (* z t))))
(* x (* y2 (* c y0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -1.22e+104) {
tmp = x * (y * (c * -i));
} else if (c <= 7.8e-281) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 3.8e+14) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * (c * y0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (c <= (-1.22d+104)) then
tmp = x * (y * (c * -i))
else if (c <= 7.8d-281) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (c <= 3.8d+14) then
tmp = b * (a * ((x * y) - (z * t)))
else
tmp = x * (y2 * (c * y0))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -1.22e+104) {
tmp = x * (y * (c * -i));
} else if (c <= 7.8e-281) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 3.8e+14) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * (c * y0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if c <= -1.22e+104: tmp = x * (y * (c * -i)) elif c <= 7.8e-281: tmp = b * (y0 * ((z * k) - (x * j))) elif c <= 3.8e+14: tmp = b * (a * ((x * y) - (z * t))) else: tmp = x * (y2 * (c * y0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -1.22e+104) tmp = Float64(x * Float64(y * Float64(c * Float64(-i)))); elseif (c <= 7.8e-281) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (c <= 3.8e+14) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(x * Float64(y2 * Float64(c * y0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (c <= -1.22e+104) tmp = x * (y * (c * -i)); elseif (c <= 7.8e-281) tmp = b * (y0 * ((z * k) - (x * j))); elseif (c <= 3.8e+14) tmp = b * (a * ((x * y) - (z * t))); else tmp = x * (y2 * (c * y0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -1.22e+104], N[(x * N[(y * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.8e-281], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+14], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.22 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \left(y \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;c \leq 7.8 \cdot 10^{-281}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{+14}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\
\end{array}
\end{array}
if c < -1.22e104Initial program 25.9%
Taylor expanded in y around inf 36.4%
Taylor expanded in x around inf 49.4%
Taylor expanded in a around 0 39.4%
mul-1-neg39.4%
*-commutative39.4%
distribute-rgt-neg-in39.4%
Simplified39.4%
if -1.22e104 < c < 7.8000000000000005e-281Initial program 32.6%
Taylor expanded in b around inf 34.8%
Taylor expanded in y0 around inf 39.4%
*-commutative39.4%
*-commutative39.4%
Simplified39.4%
if 7.8000000000000005e-281 < c < 3.8e14Initial program 35.7%
Taylor expanded in b around inf 42.3%
Taylor expanded in a around inf 39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
if 3.8e14 < c Initial program 28.7%
Taylor expanded in x around inf 42.5%
Taylor expanded in y2 around inf 41.2%
Taylor expanded in c around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification39.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -1.06e+101)
(* x (* y (* c (- i))))
(if (<= c 2.25e-279)
(* b (* y0 (- (* z k) (* x j))))
(if (<= c 8.6e+14)
(* b (* a (- (* x y) (* z t))))
(* c (* y0 (- (* x y2) (* z y3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -1.06e+101) {
tmp = x * (y * (c * -i));
} else if (c <= 2.25e-279) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 8.6e+14) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (c <= (-1.06d+101)) then
tmp = x * (y * (c * -i))
else if (c <= 2.25d-279) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (c <= 8.6d+14) then
tmp = b * (a * ((x * y) - (z * t)))
else
tmp = c * (y0 * ((x * y2) - (z * y3)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -1.06e+101) {
tmp = x * (y * (c * -i));
} else if (c <= 2.25e-279) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 8.6e+14) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if c <= -1.06e+101: tmp = x * (y * (c * -i)) elif c <= 2.25e-279: tmp = b * (y0 * ((z * k) - (x * j))) elif c <= 8.6e+14: tmp = b * (a * ((x * y) - (z * t))) else: tmp = c * (y0 * ((x * y2) - (z * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -1.06e+101) tmp = Float64(x * Float64(y * Float64(c * Float64(-i)))); elseif (c <= 2.25e-279) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (c <= 8.6e+14) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (c <= -1.06e+101) tmp = x * (y * (c * -i)); elseif (c <= 2.25e-279) tmp = b * (y0 * ((z * k) - (x * j))); elseif (c <= 8.6e+14) tmp = b * (a * ((x * y) - (z * t))); else tmp = c * (y0 * ((x * y2) - (z * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -1.06e+101], N[(x * N[(y * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.25e-279], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.6e+14], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.06 \cdot 10^{+101}:\\
\;\;\;\;x \cdot \left(y \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;c \leq 2.25 \cdot 10^{-279}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 8.6 \cdot 10^{+14}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\end{array}
\end{array}
if c < -1.06e101Initial program 25.9%
Taylor expanded in y around inf 36.4%
Taylor expanded in x around inf 49.4%
Taylor expanded in a around 0 39.4%
mul-1-neg39.4%
*-commutative39.4%
distribute-rgt-neg-in39.4%
Simplified39.4%
if -1.06e101 < c < 2.24999999999999998e-279Initial program 32.6%
Taylor expanded in b around inf 34.8%
Taylor expanded in y0 around inf 39.4%
*-commutative39.4%
*-commutative39.4%
Simplified39.4%
if 2.24999999999999998e-279 < c < 8.6e14Initial program 35.7%
Taylor expanded in b around inf 42.3%
Taylor expanded in a around inf 39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
if 8.6e14 < c Initial program 28.7%
Taylor expanded in c around inf 68.1%
Taylor expanded in y0 around inf 51.5%
Final simplification42.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.1e+221)
(* b (* y0 (* z k)))
(if (<= b -7.7e-25)
(* b (* y (* x a)))
(if (<= b 1.3e+36) (* c (* x (* y0 y2))) (* x (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.1e+221) {
tmp = b * (y0 * (z * k));
} else if (b <= -7.7e-25) {
tmp = b * (y * (x * a));
} else if (b <= 1.3e+36) {
tmp = c * (x * (y0 * y2));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-1.1d+221)) then
tmp = b * (y0 * (z * k))
else if (b <= (-7.7d-25)) then
tmp = b * (y * (x * a))
else if (b <= 1.3d+36) then
tmp = c * (x * (y0 * y2))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.1e+221) {
tmp = b * (y0 * (z * k));
} else if (b <= -7.7e-25) {
tmp = b * (y * (x * a));
} else if (b <= 1.3e+36) {
tmp = c * (x * (y0 * y2));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -1.1e+221: tmp = b * (y0 * (z * k)) elif b <= -7.7e-25: tmp = b * (y * (x * a)) elif b <= 1.3e+36: tmp = c * (x * (y0 * y2)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -1.1e+221) tmp = Float64(b * Float64(y0 * Float64(z * k))); elseif (b <= -7.7e-25) tmp = Float64(b * Float64(y * Float64(x * a))); elseif (b <= 1.3e+36) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -1.1e+221) tmp = b * (y0 * (z * k)); elseif (b <= -7.7e-25) tmp = b * (y * (x * a)); elseif (b <= 1.3e+36) tmp = c * (x * (y0 * y2)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.1e+221], N[(b * N[(y0 * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.7e-25], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e+36], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{+221}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -7.7 \cdot 10^{-25}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+36}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if b < -1.1e221Initial program 30.5%
Taylor expanded in b around inf 40.1%
Taylor expanded in y0 around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in z around inf 46.3%
*-commutative46.3%
associate-*r*46.7%
*-commutative46.7%
Simplified46.7%
if -1.1e221 < b < -7.7000000000000002e-25Initial program 40.5%
Taylor expanded in y around inf 53.9%
Taylor expanded in x around inf 45.7%
Taylor expanded in a around inf 33.0%
pow133.0%
*-commutative33.0%
associate-*l*33.0%
*-commutative33.0%
Applied egg-rr33.0%
unpow133.0%
associate-*l*35.1%
Simplified35.1%
if -7.7000000000000002e-25 < b < 1.3000000000000001e36Initial program 33.3%
Taylor expanded in x around inf 41.0%
Taylor expanded in y2 around inf 34.0%
Taylor expanded in c around inf 24.8%
if 1.3000000000000001e36 < b Initial program 20.9%
Taylor expanded in y around inf 39.0%
Taylor expanded in x around inf 37.9%
Taylor expanded in a around inf 33.2%
Final simplification30.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -7e+98)
(* x (* y (* c (- i))))
(if (<= c 1.8e-278)
(* b (* y0 (- (* z k) (* x j))))
(if (<= c 3.4e+14) (* x (* y (* a b))) (* x (* y2 (* c y0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -7e+98) {
tmp = x * (y * (c * -i));
} else if (c <= 1.8e-278) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 3.4e+14) {
tmp = x * (y * (a * b));
} else {
tmp = x * (y2 * (c * y0));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (c <= (-7d+98)) then
tmp = x * (y * (c * -i))
else if (c <= 1.8d-278) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (c <= 3.4d+14) then
tmp = x * (y * (a * b))
else
tmp = x * (y2 * (c * y0))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -7e+98) {
tmp = x * (y * (c * -i));
} else if (c <= 1.8e-278) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (c <= 3.4e+14) {
tmp = x * (y * (a * b));
} else {
tmp = x * (y2 * (c * y0));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if c <= -7e+98: tmp = x * (y * (c * -i)) elif c <= 1.8e-278: tmp = b * (y0 * ((z * k) - (x * j))) elif c <= 3.4e+14: tmp = x * (y * (a * b)) else: tmp = x * (y2 * (c * y0)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -7e+98) tmp = Float64(x * Float64(y * Float64(c * Float64(-i)))); elseif (c <= 1.8e-278) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (c <= 3.4e+14) tmp = Float64(x * Float64(y * Float64(a * b))); else tmp = Float64(x * Float64(y2 * Float64(c * y0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (c <= -7e+98) tmp = x * (y * (c * -i)); elseif (c <= 1.8e-278) tmp = b * (y0 * ((z * k) - (x * j))); elseif (c <= 3.4e+14) tmp = x * (y * (a * b)); else tmp = x * (y2 * (c * y0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -7e+98], N[(x * N[(y * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e-278], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.4e+14], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7 \cdot 10^{+98}:\\
\;\;\;\;x \cdot \left(y \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-278}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+14}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0\right)\right)\\
\end{array}
\end{array}
if c < -7e98Initial program 25.9%
Taylor expanded in y around inf 36.4%
Taylor expanded in x around inf 49.4%
Taylor expanded in a around 0 39.4%
mul-1-neg39.4%
*-commutative39.4%
distribute-rgt-neg-in39.4%
Simplified39.4%
if -7e98 < c < 1.79999999999999998e-278Initial program 32.6%
Taylor expanded in b around inf 34.8%
Taylor expanded in y0 around inf 39.4%
*-commutative39.4%
*-commutative39.4%
Simplified39.4%
if 1.79999999999999998e-278 < c < 3.4e14Initial program 35.7%
Taylor expanded in y around inf 43.1%
Taylor expanded in x around inf 35.4%
Taylor expanded in a around inf 36.5%
if 3.4e14 < c Initial program 28.7%
Taylor expanded in x around inf 42.5%
Taylor expanded in y2 around inf 41.2%
Taylor expanded in c around inf 39.5%
*-commutative39.5%
Simplified39.5%
Final simplification38.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= z -1.12e+14) (not (<= z 2.7))) (* b (* k (* z y0))) (* b (* (* x y) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.12e+14) || !(z <= 2.7)) {
tmp = b * (k * (z * y0));
} else {
tmp = b * ((x * y) * a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((z <= (-1.12d+14)) .or. (.not. (z <= 2.7d0))) then
tmp = b * (k * (z * y0))
else
tmp = b * ((x * y) * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.12e+14) || !(z <= 2.7)) {
tmp = b * (k * (z * y0));
} else {
tmp = b * ((x * y) * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (z <= -1.12e+14) or not (z <= 2.7): tmp = b * (k * (z * y0)) else: tmp = b * ((x * y) * a) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((z <= -1.12e+14) || !(z <= 2.7)) tmp = Float64(b * Float64(k * Float64(z * y0))); else tmp = Float64(b * Float64(Float64(x * y) * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((z <= -1.12e+14) || ~((z <= 2.7))) tmp = b * (k * (z * y0)); else tmp = b * ((x * y) * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[z, -1.12e+14], N[Not[LessEqual[z, 2.7]], $MachinePrecision]], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.12 \cdot 10^{+14} \lor \neg \left(z \leq 2.7\right):\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a\right)\\
\end{array}
\end{array}
if z < -1.12e14 or 2.7000000000000002 < z Initial program 28.5%
Taylor expanded in b around inf 38.5%
Taylor expanded in y0 around inf 44.7%
*-commutative44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in z around inf 37.7%
if -1.12e14 < z < 2.7000000000000002Initial program 33.9%
Taylor expanded in y around inf 39.6%
Taylor expanded in x around inf 29.1%
Taylor expanded in a around inf 17.0%
pow117.0%
*-commutative17.0%
associate-*l*19.0%
*-commutative19.0%
Applied egg-rr19.0%
unpow119.0%
*-commutative19.0%
Simplified19.0%
Final simplification27.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= z -1.3e+150) (not (<= z 3.1))) (* b (* k (* z y0))) (* b (* y (* x a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.3e+150) || !(z <= 3.1)) {
tmp = b * (k * (z * y0));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((z <= (-1.3d+150)) .or. (.not. (z <= 3.1d0))) then
tmp = b * (k * (z * y0))
else
tmp = b * (y * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.3e+150) || !(z <= 3.1)) {
tmp = b * (k * (z * y0));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (z <= -1.3e+150) or not (z <= 3.1): tmp = b * (k * (z * y0)) else: tmp = b * (y * (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((z <= -1.3e+150) || !(z <= 3.1)) tmp = Float64(b * Float64(k * Float64(z * y0))); else tmp = Float64(b * Float64(y * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((z <= -1.3e+150) || ~((z <= 3.1))) tmp = b * (k * (z * y0)); else tmp = b * (y * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[z, -1.3e+150], N[Not[LessEqual[z, 3.1]], $MachinePrecision]], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+150} \lor \neg \left(z \leq 3.1\right):\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if z < -1.30000000000000003e150 or 3.10000000000000009 < z Initial program 25.7%
Taylor expanded in b around inf 34.2%
Taylor expanded in y0 around inf 47.3%
*-commutative47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in z around inf 41.3%
if -1.30000000000000003e150 < z < 3.10000000000000009Initial program 34.7%
Taylor expanded in y around inf 41.4%
Taylor expanded in x around inf 30.7%
Taylor expanded in a around inf 18.2%
pow118.2%
*-commutative18.2%
associate-*l*19.9%
*-commutative19.9%
Applied egg-rr19.9%
unpow119.9%
associate-*l*22.3%
Simplified22.3%
Final simplification29.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= b -3.75e-25) (not (<= b 1.85e+21))) (* x (* y (* a b))) (* c (* x (* y0 y2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((b <= -3.75e-25) || !(b <= 1.85e+21)) {
tmp = x * (y * (a * b));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((b <= (-3.75d-25)) .or. (.not. (b <= 1.85d+21))) then
tmp = x * (y * (a * b))
else
tmp = c * (x * (y0 * y2))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((b <= -3.75e-25) || !(b <= 1.85e+21)) {
tmp = x * (y * (a * b));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (b <= -3.75e-25) or not (b <= 1.85e+21): tmp = x * (y * (a * b)) else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((b <= -3.75e-25) || !(b <= 1.85e+21)) tmp = Float64(x * Float64(y * Float64(a * b))); else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((b <= -3.75e-25) || ~((b <= 1.85e+21))) tmp = x * (y * (a * b)); else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[b, -3.75e-25], N[Not[LessEqual[b, 1.85e+21]], $MachinePrecision]], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.75 \cdot 10^{-25} \lor \neg \left(b \leq 1.85 \cdot 10^{+21}\right):\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if b < -3.74999999999999994e-25 or 1.85e21 < b Initial program 29.5%
Taylor expanded in y around inf 47.0%
Taylor expanded in x around inf 41.2%
Taylor expanded in a around inf 37.2%
if -3.74999999999999994e-25 < b < 1.85e21Initial program 33.3%
Taylor expanded in x around inf 41.0%
Taylor expanded in y2 around inf 34.0%
Taylor expanded in c around inf 24.8%
Final simplification31.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -4.2e+151) (* b (* k (* z y0))) (if (<= z 4.2) (* b (* y (* x a))) (* b (* y0 (* z k))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -4.2e+151) {
tmp = b * (k * (z * y0));
} else if (z <= 4.2) {
tmp = b * (y * (x * a));
} else {
tmp = b * (y0 * (z * k));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-4.2d+151)) then
tmp = b * (k * (z * y0))
else if (z <= 4.2d0) then
tmp = b * (y * (x * a))
else
tmp = b * (y0 * (z * k))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -4.2e+151) {
tmp = b * (k * (z * y0));
} else if (z <= 4.2) {
tmp = b * (y * (x * a));
} else {
tmp = b * (y0 * (z * k));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -4.2e+151: tmp = b * (k * (z * y0)) elif z <= 4.2: tmp = b * (y * (x * a)) else: tmp = b * (y0 * (z * k)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -4.2e+151) tmp = Float64(b * Float64(k * Float64(z * y0))); elseif (z <= 4.2) tmp = Float64(b * Float64(y * Float64(x * a))); else tmp = Float64(b * Float64(y0 * Float64(z * k))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -4.2e+151) tmp = b * (k * (z * y0)); elseif (z <= 4.2) tmp = b * (y * (x * a)); else tmp = b * (y0 * (z * k)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -4.2e+151], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y0 * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+151}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq 4.2:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k\right)\right)\\
\end{array}
\end{array}
if z < -4.2000000000000001e151Initial program 23.6%
Taylor expanded in b around inf 33.9%
Taylor expanded in y0 around inf 47.2%
*-commutative47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in z around inf 50.3%
if -4.2000000000000001e151 < z < 4.20000000000000018Initial program 34.7%
Taylor expanded in y around inf 41.4%
Taylor expanded in x around inf 30.7%
Taylor expanded in a around inf 18.2%
pow118.2%
*-commutative18.2%
associate-*l*19.9%
*-commutative19.9%
Applied egg-rr19.9%
unpow119.9%
associate-*l*22.3%
Simplified22.3%
if 4.20000000000000018 < z Initial program 26.7%
Taylor expanded in b around inf 34.3%
Taylor expanded in y0 around inf 47.3%
*-commutative47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in z around inf 37.1%
*-commutative37.1%
associate-*r*40.1%
*-commutative40.1%
Simplified40.1%
Final simplification30.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 31.4%
Taylor expanded in y around inf 40.5%
Taylor expanded in x around inf 31.9%
Taylor expanded in a around inf 18.6%
Final simplification18.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* y (* x b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y * (x * b));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * (y * (x * b))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y * (x * b));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (y * (x * b))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(y * Float64(x * b))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (y * (x * b)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(y \cdot \left(x \cdot b\right)\right)
\end{array}
Initial program 31.4%
Taylor expanded in y around inf 40.5%
Taylor expanded in x around inf 31.9%
Taylor expanded in a around inf 18.6%
pow118.6%
associate-*r*18.9%
*-commutative18.9%
Applied egg-rr18.9%
unpow118.9%
Simplified18.9%
Final simplification18.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* b (* (* x y) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return b * ((x * y) * a);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = b * ((x * y) * a)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return b * ((x * y) * a);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return b * ((x * y) * a)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(b * Float64(Float64(x * y) * a)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = b * ((x * y) * a); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(b * N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(\left(x \cdot y\right) \cdot a\right)
\end{array}
Initial program 31.4%
Taylor expanded in y around inf 40.5%
Taylor expanded in x around inf 31.9%
Taylor expanded in a around inf 18.6%
pow118.6%
*-commutative18.6%
associate-*l*19.6%
*-commutative19.6%
Applied egg-rr19.6%
unpow119.6%
*-commutative19.6%
Simplified19.6%
Final simplification19.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t_9\\
t_11 := t_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t_4 \cdot t_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t_3 \cdot t_1 - t_14\right)\right) + \left(t_8 - \left(t_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t_13\right)\right) + \left(t_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t_10 - \left(y \cdot x - z \cdot t\right) \cdot t_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t_8 - \left(t_11 - t_6\right)\right) - \left(\frac{t_3}{\frac{1}{t_1}} - t_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t_2 - \left(t_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t_5\right) - t_17 \cdot t_1\right) + t_13\\
\end{array}
\end{array}
herbie shell --seed 2023336
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))