
(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 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* c y4) (* a y5)))
(t_4 (- (* i y5) (* b y4)))
(t_5 (- (* t y2) (* y y3)))
(t_6
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 t_5))))
(t_7 (* y3 (* z (- (* a y1) (* c y0))))))
(if (<= t -6.5e+104)
(* y5 (+ (* a t_5) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -3.1e+59)
t_7
(if (<= t -48000000000.0)
(* y (+ (+ (* k t_4) (* x (- (* a b) (* c i)))) (* y3 t_3)))
(if (<= t -1.18e-21)
t_7
(if (<= t -2.15e-196)
(* k (+ (+ (* y t_4) (* y2 t_1)) (* z (- (* b y0) (* i y1)))))
(if (<= t -1.05e-274)
(* y2 (+ (+ (* k t_1) (* x (- (* c y0) (* a y1)))) (* t t_2)))
(if (<= t 1.4e-223)
t_6
(if (<= t 3.1e-197)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 9.8e-82)
t_6
(if (<= t 2.6e+257)
(* y3 (+ (* y t_3) (- (* a (* z y1)) (* c (* z y0)))))
(*
t
(+
(+
(* z (- (* c i) (* a b)))
(* j (- (* b y4) (* i y5))))
(* y2 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 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = (i * y5) - (b * y4);
double t_5 = (t * y2) - (y * y3);
double t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5));
double t_7 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -6.5e+104) {
tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.1e+59) {
tmp = t_7;
} else if (t <= -48000000000.0) {
tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
} else if (t <= -1.18e-21) {
tmp = t_7;
} else if (t <= -2.15e-196) {
tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.05e-274) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (t <= 1.4e-223) {
tmp = t_6;
} else if (t <= 3.1e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 9.8e-82) {
tmp = t_6;
} else if (t <= 2.6e+257) {
tmp = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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 = (y1 * y4) - (y0 * y5)
t_2 = (a * y5) - (c * y4)
t_3 = (c * y4) - (a * y5)
t_4 = (i * y5) - (b * y4)
t_5 = (t * y2) - (y * y3)
t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5))
t_7 = y3 * (z * ((a * y1) - (c * y0)))
if (t <= (-6.5d+104)) then
tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-3.1d+59)) then
tmp = t_7
else if (t <= (-48000000000.0d0)) then
tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3))
else if (t <= (-1.18d-21)) then
tmp = t_7
else if (t <= (-2.15d-196)) then
tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))))
else if (t <= (-1.05d-274)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (t <= 1.4d-223) then
tmp = t_6
else if (t <= 3.1d-197) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 9.8d-82) then
tmp = t_6
else if (t <= 2.6d+257) then
tmp = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0))))
else
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = (i * y5) - (b * y4);
double t_5 = (t * y2) - (y * y3);
double t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5));
double t_7 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -6.5e+104) {
tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.1e+59) {
tmp = t_7;
} else if (t <= -48000000000.0) {
tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
} else if (t <= -1.18e-21) {
tmp = t_7;
} else if (t <= -2.15e-196) {
tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.05e-274) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (t <= 1.4e-223) {
tmp = t_6;
} else if (t <= 3.1e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 9.8e-82) {
tmp = t_6;
} else if (t <= 2.6e+257) {
tmp = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = (a * y5) - (c * y4) t_3 = (c * y4) - (a * y5) t_4 = (i * y5) - (b * y4) t_5 = (t * y2) - (y * y3) t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5)) t_7 = y3 * (z * ((a * y1) - (c * y0))) tmp = 0 if t <= -6.5e+104: tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2)))) elif t <= -3.1e+59: tmp = t_7 elif t <= -48000000000.0: tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3)) elif t <= -1.18e-21: tmp = t_7 elif t <= -2.15e-196: tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))) elif t <= -1.05e-274: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif t <= 1.4e-223: tmp = t_6 elif t <= 3.1e-197: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 9.8e-82: tmp = t_6 elif t <= 2.6e+257: tmp = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0)))) else: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(Float64(i * y5) - Float64(b * y4)) t_5 = Float64(Float64(t * y2) - Float64(y * y3)) t_6 = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_5))) t_7 = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) tmp = 0.0 if (t <= -6.5e+104) tmp = Float64(y5 * Float64(Float64(a * t_5) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -3.1e+59) tmp = t_7; elseif (t <= -48000000000.0) tmp = Float64(y * Float64(Float64(Float64(k * t_4) + Float64(x * Float64(Float64(a * b) - Float64(c * i)))) + Float64(y3 * t_3))); elseif (t <= -1.18e-21) tmp = t_7; elseif (t <= -2.15e-196) tmp = Float64(k * Float64(Float64(Float64(y * t_4) + Float64(y2 * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= -1.05e-274) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_2))); elseif (t <= 1.4e-223) tmp = t_6; elseif (t <= 3.1e-197) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 9.8e-82) tmp = t_6; elseif (t <= 2.6e+257) tmp = Float64(y3 * Float64(Float64(y * t_3) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * 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 = (y1 * y4) - (y0 * y5); t_2 = (a * y5) - (c * y4); t_3 = (c * y4) - (a * y5); t_4 = (i * y5) - (b * y4); t_5 = (t * y2) - (y * y3); t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5)); t_7 = y3 * (z * ((a * y1) - (c * y0))); tmp = 0.0; if (t <= -6.5e+104) tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -3.1e+59) tmp = t_7; elseif (t <= -48000000000.0) tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3)); elseif (t <= -1.18e-21) tmp = t_7; elseif (t <= -2.15e-196) tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))); elseif (t <= -1.05e-274) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (t <= 1.4e-223) tmp = t_6; elseif (t <= 3.1e-197) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 9.8e-82) tmp = t_6; elseif (t <= 2.6e+257) tmp = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0)))); else tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e+104], N[(y5 * N[(N[(a * t$95$5), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.1e+59], t$95$7, If[LessEqual[t, -48000000000.0], N[(y * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.18e-21], t$95$7, If[LessEqual[t, -2.15e-196], N[(k * N[(N[(N[(y * t$95$4), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-274], N[(y2 * N[(N[(N[(k * t$95$1), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e-223], t$95$6, If[LessEqual[t, 3.1e-197], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.8e-82], t$95$6, If[LessEqual[t, 2.6e+257], N[(y3 * N[(N[(y * t$95$3), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := i \cdot y5 - b \cdot y4\\
t_5 := t \cdot y2 - y \cdot y3\\
t_6 := a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_5\right)\\
t_7 := y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+104}:\\
\;\;\;\;y5 \cdot \left(a \cdot t\_5 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{+59}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t \leq -48000000000:\\
\;\;\;\;y \cdot \left(\left(k \cdot t\_4 + x \cdot \left(a \cdot b - c \cdot i\right)\right) + y3 \cdot t\_3\right)\\
\mathbf{elif}\;t \leq -1.18 \cdot 10^{-21}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-196}:\\
\;\;\;\;k \cdot \left(\left(y \cdot t\_4 + y2 \cdot t\_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-274}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_2\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-223}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-197}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-82}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+257}:\\
\;\;\;\;y3 \cdot \left(y \cdot t\_3 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_2\right)\\
\end{array}
\end{array}
if t < -6.5000000000000005e104Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -6.5000000000000005e104 < t < -3.10000000000000015e59 or -4.8e10 < t < -1.18000000000000002e-21Initial program 23.1%
Taylor expanded in y3 around -inf 46.3%
Taylor expanded in z around inf 84.8%
if -3.10000000000000015e59 < t < -4.8e10Initial program 22.2%
Taylor expanded in y around inf 77.8%
if -1.18000000000000002e-21 < t < -2.1499999999999999e-196Initial program 28.8%
Taylor expanded in k around inf 64.9%
if -2.1499999999999999e-196 < t < -1.04999999999999997e-274Initial program 36.4%
Taylor expanded in y2 around inf 77.6%
if -1.04999999999999997e-274 < t < 1.40000000000000007e-223 or 3.10000000000000029e-197 < t < 9.8000000000000006e-82Initial program 45.3%
Taylor expanded in a around inf 56.5%
if 1.40000000000000007e-223 < t < 3.10000000000000029e-197Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 9.8000000000000006e-82 < t < 2.60000000000000021e257Initial program 29.4%
Taylor expanded in y3 around -inf 52.7%
Taylor expanded in c around 0 57.9%
Taylor expanded in j around 0 56.6%
if 2.60000000000000021e257 < t Initial program 31.3%
Taylor expanded in t around inf 87.5%
Final simplification65.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* b y4) (* i y5)))
(t_3
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* x j) (* z k)) (- (* i y1) (* b y0))))
(* (- (* c y0) (* a y1)) (- (* x y2) (* z y3))))
(* t_2 (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) t_1))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_3 INFINITY)
t_3
(* t (+ (+ (* z (- (* c i) (* a b))) (* j t_2)) (* y2 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 = (a * y5) - (c * y4);
double t_2 = (b * y4) - (i * y5);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * 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 = (a * y5) - (c * y4);
double t_2 = (b * y4) - (i * y5);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (b * y4) - (i * y5) t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * 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(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(b * y4) - Float64(i * y5)) 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(x * j) - Float64(z * k)) * Float64(Float64(i * y1) - Float64(b * y0)))) + Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(t_2 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * 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(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * t_2)) + Float64(y2 * 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 = (a * y5) - (c * y4); t_2 = (b * y4) - (i * y5); t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * 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[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $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[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $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[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := b \cdot y4 - i \cdot y5\\
t_3 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(x \cdot j - z \cdot k\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + t\_2 \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\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}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot t\_2\right) + y2 \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 95.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 t around inf 39.0%
Final simplification56.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* t y2) (* y y3)))
(t_4
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 t_3))))
(t_5 (* y3 (* z (- (* a y1) (* c y0))))))
(if (<= t -7.2e+105)
(* y5 (+ (* a t_3) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -3.9e+59)
t_5
(if (<= t -7600000000.0)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= t -7.3e-22)
t_5
(if (<= t -5e-197)
(*
k
(+
(+ (* y (- (* i y5) (* b y4))) (* y2 t_1))
(* z (- (* b y0) (* i y1)))))
(if (<= t -1.8e-273)
(* y2 (+ (+ (* k t_1) (* x (- (* c y0) (* a y1)))) (* t t_2)))
(if (<= t 1.6e-227)
t_4
(if (<= t 2.2e-197)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 6e-82)
t_4
(if (<= t 2e+257)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* z y0)))))
(*
t
(+
(+
(* z (- (* c i) (* a b)))
(* j (- (* b y4) (* i y5))))
(* y2 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 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (t * y2) - (y * y3);
double t_4 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_3));
double t_5 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -7.2e+105) {
tmp = y5 * ((a * t_3) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.9e+59) {
tmp = t_5;
} else if (t <= -7600000000.0) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -7.3e-22) {
tmp = t_5;
} else if (t <= -5e-197) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.8e-273) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (t <= 1.6e-227) {
tmp = t_4;
} else if (t <= 2.2e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 6e-82) {
tmp = t_4;
} else if (t <= 2e+257) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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) :: tmp
t_1 = (y1 * y4) - (y0 * y5)
t_2 = (a * y5) - (c * y4)
t_3 = (t * y2) - (y * y3)
t_4 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_3))
t_5 = y3 * (z * ((a * y1) - (c * y0)))
if (t <= (-7.2d+105)) then
tmp = y5 * ((a * t_3) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-3.9d+59)) then
tmp = t_5
else if (t <= (-7600000000.0d0)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (t <= (-7.3d-22)) then
tmp = t_5
else if (t <= (-5d-197)) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))))
else if (t <= (-1.8d-273)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (t <= 1.6d-227) then
tmp = t_4
else if (t <= 2.2d-197) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 6d-82) then
tmp = t_4
else if (t <= 2d+257) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
else
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (t * y2) - (y * y3);
double t_4 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_3));
double t_5 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -7.2e+105) {
tmp = y5 * ((a * t_3) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.9e+59) {
tmp = t_5;
} else if (t <= -7600000000.0) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -7.3e-22) {
tmp = t_5;
} else if (t <= -5e-197) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.8e-273) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (t <= 1.6e-227) {
tmp = t_4;
} else if (t <= 2.2e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 6e-82) {
tmp = t_4;
} else if (t <= 2e+257) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = (a * y5) - (c * y4) t_3 = (t * y2) - (y * y3) t_4 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_3)) t_5 = y3 * (z * ((a * y1) - (c * y0))) tmp = 0 if t <= -7.2e+105: tmp = y5 * ((a * t_3) + (y0 * ((j * y3) - (k * y2)))) elif t <= -3.9e+59: tmp = t_5 elif t <= -7600000000.0: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif t <= -7.3e-22: tmp = t_5 elif t <= -5e-197: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))) elif t <= -1.8e-273: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif t <= 1.6e-227: tmp = t_4 elif t <= 2.2e-197: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 6e-82: tmp = t_4 elif t <= 2e+257: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) else: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(t * y2) - Float64(y * y3)) t_4 = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_3))) t_5 = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) tmp = 0.0 if (t <= -7.2e+105) tmp = Float64(y5 * Float64(Float64(a * t_3) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -3.9e+59) tmp = t_5; elseif (t <= -7600000000.0) 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 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= -7.3e-22) tmp = t_5; elseif (t <= -5e-197) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= -1.8e-273) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_2))); elseif (t <= 1.6e-227) tmp = t_4; elseif (t <= 2.2e-197) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 6e-82) tmp = t_4; elseif (t <= 2e+257) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * 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 = (y1 * y4) - (y0 * y5); t_2 = (a * y5) - (c * y4); t_3 = (t * y2) - (y * y3); t_4 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_3)); t_5 = y3 * (z * ((a * y1) - (c * y0))); tmp = 0.0; if (t <= -7.2e+105) tmp = y5 * ((a * t_3) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -3.9e+59) tmp = t_5; elseif (t <= -7600000000.0) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (t <= -7.3e-22) tmp = t_5; elseif (t <= -5e-197) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))); elseif (t <= -1.8e-273) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (t <= 1.6e-227) tmp = t_4; elseif (t <= 2.2e-197) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 6e-82) tmp = t_4; elseif (t <= 2e+257) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); else tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+105], N[(y5 * N[(N[(a * t$95$3), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.9e+59], t$95$5, If[LessEqual[t, -7600000000.0], 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 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.3e-22], t$95$5, If[LessEqual[t, -5e-197], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.8e-273], N[(y2 * N[(N[(N[(k * t$95$1), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-227], t$95$4, If[LessEqual[t, 2.2e-197], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e-82], t$95$4, If[LessEqual[t, 2e+257], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := t \cdot y2 - y \cdot y3\\
t_4 := a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_3\right)\\
t_5 := y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+105}:\\
\;\;\;\;y5 \cdot \left(a \cdot t\_3 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{+59}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t \leq -7600000000:\\
\;\;\;\;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 \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -7.3 \cdot 10^{-22}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-197}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot t\_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-273}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_2\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-227}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-197}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-82}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+257}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_2\right)\\
\end{array}
\end{array}
if t < -7.1999999999999998e105Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -7.1999999999999998e105 < t < -3.90000000000000021e59 or -7.6e9 < t < -7.30000000000000028e-22Initial program 23.1%
Taylor expanded in y3 around -inf 46.3%
Taylor expanded in z around inf 84.8%
if -3.90000000000000021e59 < t < -7.6e9Initial program 22.2%
Taylor expanded in y4 around inf 77.8%
if -7.30000000000000028e-22 < t < -5.0000000000000002e-197Initial program 28.8%
Taylor expanded in k around inf 64.9%
if -5.0000000000000002e-197 < t < -1.79999999999999996e-273Initial program 36.4%
Taylor expanded in y2 around inf 77.6%
if -1.79999999999999996e-273 < t < 1.60000000000000005e-227 or 2.2e-197 < t < 5.9999999999999998e-82Initial program 45.3%
Taylor expanded in a around inf 56.5%
if 1.60000000000000005e-227 < t < 2.2e-197Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 5.9999999999999998e-82 < t < 2.00000000000000006e257Initial program 29.4%
Taylor expanded in y3 around -inf 52.7%
Taylor expanded in c around 0 57.9%
Taylor expanded in j around 0 56.6%
if 2.00000000000000006e257 < t Initial program 31.3%
Taylor expanded in t around inf 87.5%
Final simplification65.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* c y4) (* a y5)))
(t_4
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x (- (* a b) (* c i))))
(* y3 t_3))))
(t_5
(* y3 (- (* y t_3) (+ (* j t_1) (- (* c (* z y0)) (* a (* z y1)))))))
(t_6 (* a (* y3 (- (* z y1) (* y y5)))))
(t_7 (- (* z y3) (* x y2))))
(if (<= y3 -3.7e+125)
t_5
(if (<= y3 -2.8e+44)
(* t (* y2 t_2))
(if (<= y3 -9.5e+17)
t_6
(if (<= y3 -8.2e-41)
t_4
(if (<= y3 -3.2e-105)
t_6
(if (<= y3 -3e-171)
t_4
(if (<= y3 -4.1e-229)
(* y2 (+ (+ (* k t_1) (* x (- (* c y0) (* a y1)))) (* t t_2)))
(if (<= y3 7.2e-106)
(*
a
(+
(+ (* y1 t_7) (* b (- (* x y) (* z t))))
(* y5 (- (* t y2) (* y y3)))))
(if (<= y3 7.5e+202)
(*
y1
(+
(+ (* a t_7) (* y4 (- (* k y2) (* j y3))))
(* i (- (* x j) (* z k)))))
t_5)))))))))))
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 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
double t_5 = y3 * ((y * t_3) - ((j * t_1) + ((c * (z * y0)) - (a * (z * y1)))));
double t_6 = a * (y3 * ((z * y1) - (y * y5)));
double t_7 = (z * y3) - (x * y2);
double tmp;
if (y3 <= -3.7e+125) {
tmp = t_5;
} else if (y3 <= -2.8e+44) {
tmp = t * (y2 * t_2);
} else if (y3 <= -9.5e+17) {
tmp = t_6;
} else if (y3 <= -8.2e-41) {
tmp = t_4;
} else if (y3 <= -3.2e-105) {
tmp = t_6;
} else if (y3 <= -3e-171) {
tmp = t_4;
} else if (y3 <= -4.1e-229) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (y3 <= 7.2e-106) {
tmp = a * (((y1 * t_7) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= 7.5e+202) {
tmp = y1 * (((a * t_7) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = t_5;
}
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 = (y1 * y4) - (y0 * y5)
t_2 = (a * y5) - (c * y4)
t_3 = (c * y4) - (a * y5)
t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3))
t_5 = y3 * ((y * t_3) - ((j * t_1) + ((c * (z * y0)) - (a * (z * y1)))))
t_6 = a * (y3 * ((z * y1) - (y * y5)))
t_7 = (z * y3) - (x * y2)
if (y3 <= (-3.7d+125)) then
tmp = t_5
else if (y3 <= (-2.8d+44)) then
tmp = t * (y2 * t_2)
else if (y3 <= (-9.5d+17)) then
tmp = t_6
else if (y3 <= (-8.2d-41)) then
tmp = t_4
else if (y3 <= (-3.2d-105)) then
tmp = t_6
else if (y3 <= (-3d-171)) then
tmp = t_4
else if (y3 <= (-4.1d-229)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (y3 <= 7.2d-106) then
tmp = a * (((y1 * t_7) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))))
else if (y3 <= 7.5d+202) then
tmp = y1 * (((a * t_7) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))))
else
tmp = t_5
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 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
double t_5 = y3 * ((y * t_3) - ((j * t_1) + ((c * (z * y0)) - (a * (z * y1)))));
double t_6 = a * (y3 * ((z * y1) - (y * y5)));
double t_7 = (z * y3) - (x * y2);
double tmp;
if (y3 <= -3.7e+125) {
tmp = t_5;
} else if (y3 <= -2.8e+44) {
tmp = t * (y2 * t_2);
} else if (y3 <= -9.5e+17) {
tmp = t_6;
} else if (y3 <= -8.2e-41) {
tmp = t_4;
} else if (y3 <= -3.2e-105) {
tmp = t_6;
} else if (y3 <= -3e-171) {
tmp = t_4;
} else if (y3 <= -4.1e-229) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (y3 <= 7.2e-106) {
tmp = a * (((y1 * t_7) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= 7.5e+202) {
tmp = y1 * (((a * t_7) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = (a * y5) - (c * y4) t_3 = (c * y4) - (a * y5) t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3)) t_5 = y3 * ((y * t_3) - ((j * t_1) + ((c * (z * y0)) - (a * (z * y1))))) t_6 = a * (y3 * ((z * y1) - (y * y5))) t_7 = (z * y3) - (x * y2) tmp = 0 if y3 <= -3.7e+125: tmp = t_5 elif y3 <= -2.8e+44: tmp = t * (y2 * t_2) elif y3 <= -9.5e+17: tmp = t_6 elif y3 <= -8.2e-41: tmp = t_4 elif y3 <= -3.2e-105: tmp = t_6 elif y3 <= -3e-171: tmp = t_4 elif y3 <= -4.1e-229: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif y3 <= 7.2e-106: tmp = a * (((y1 * t_7) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))) elif y3 <= 7.5e+202: tmp = y1 * (((a * t_7) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))) else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = 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_5 = Float64(y3 * Float64(Float64(y * t_3) - Float64(Float64(j * t_1) + Float64(Float64(c * Float64(z * y0)) - Float64(a * Float64(z * y1)))))) t_6 = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))) t_7 = Float64(Float64(z * y3) - Float64(x * y2)) tmp = 0.0 if (y3 <= -3.7e+125) tmp = t_5; elseif (y3 <= -2.8e+44) tmp = Float64(t * Float64(y2 * t_2)); elseif (y3 <= -9.5e+17) tmp = t_6; elseif (y3 <= -8.2e-41) tmp = t_4; elseif (y3 <= -3.2e-105) tmp = t_6; elseif (y3 <= -3e-171) tmp = t_4; elseif (y3 <= -4.1e-229) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_2))); elseif (y3 <= 7.2e-106) tmp = Float64(a * Float64(Float64(Float64(y1 * t_7) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= 7.5e+202) tmp = Float64(y1 * Float64(Float64(Float64(a * t_7) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); else tmp = t_5; 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 = (y1 * y4) - (y0 * y5); t_2 = (a * y5) - (c * y4); t_3 = (c * y4) - (a * y5); t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3)); t_5 = y3 * ((y * t_3) - ((j * t_1) + ((c * (z * y0)) - (a * (z * y1))))); t_6 = a * (y3 * ((z * y1) - (y * y5))); t_7 = (z * y3) - (x * y2); tmp = 0.0; if (y3 <= -3.7e+125) tmp = t_5; elseif (y3 <= -2.8e+44) tmp = t * (y2 * t_2); elseif (y3 <= -9.5e+17) tmp = t_6; elseif (y3 <= -8.2e-41) tmp = t_4; elseif (y3 <= -3.2e-105) tmp = t_6; elseif (y3 <= -3e-171) tmp = t_4; elseif (y3 <= -4.1e-229) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (y3 <= 7.2e-106) tmp = a * (((y1 * t_7) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))); elseif (y3 <= 7.5e+202) tmp = y1 * (((a * t_7) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))); else tmp = t_5; 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[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = 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$5 = N[(y3 * N[(N[(y * t$95$3), $MachinePrecision] - N[(N[(j * t$95$1), $MachinePrecision] + N[(N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision] - N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -3.7e+125], t$95$5, If[LessEqual[y3, -2.8e+44], N[(t * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -9.5e+17], t$95$6, If[LessEqual[y3, -8.2e-41], t$95$4, If[LessEqual[y3, -3.2e-105], t$95$6, If[LessEqual[y3, -3e-171], t$95$4, If[LessEqual[y3, -4.1e-229], N[(y2 * N[(N[(N[(k * t$95$1), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.2e-106], N[(a * N[(N[(N[(y1 * t$95$7), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.5e+202], N[(y1 * N[(N[(N[(a * t$95$7), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := 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_5 := y3 \cdot \left(y \cdot t\_3 - \left(j \cdot t\_1 + \left(c \cdot \left(z \cdot y0\right) - a \cdot \left(z \cdot y1\right)\right)\right)\right)\\
t_6 := a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
t_7 := z \cdot y3 - x \cdot y2\\
\mathbf{if}\;y3 \leq -3.7 \cdot 10^{+125}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y3 \leq -2.8 \cdot 10^{+44}:\\
\;\;\;\;t \cdot \left(y2 \cdot t\_2\right)\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{+17}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y3 \leq -8.2 \cdot 10^{-41}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y3 \leq -3.2 \cdot 10^{-105}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y3 \leq -3 \cdot 10^{-171}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y3 \leq -4.1 \cdot 10^{-229}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_2\right)\\
\mathbf{elif}\;y3 \leq 7.2 \cdot 10^{-106}:\\
\;\;\;\;a \cdot \left(\left(y1 \cdot t\_7 + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 7.5 \cdot 10^{+202}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot t\_7 + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y3 < -3.6999999999999998e125 or 7.4999999999999999e202 < y3 Initial program 30.8%
Taylor expanded in y3 around -inf 69.5%
Taylor expanded in c around 0 72.1%
if -3.6999999999999998e125 < y3 < -2.8000000000000001e44Initial program 45.5%
Taylor expanded in y2 around inf 64.0%
Taylor expanded in t around inf 73.7%
if -2.8000000000000001e44 < y3 < -9.5e17 or -8.20000000000000028e-41 < y3 < -3.19999999999999981e-105Initial program 22.7%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in a around -inf 73.5%
mul-1-neg73.5%
Simplified73.5%
if -9.5e17 < y3 < -8.20000000000000028e-41 or -3.19999999999999981e-105 < y3 < -3e-171Initial program 25.7%
Taylor expanded in y around inf 63.0%
if -3e-171 < y3 < -4.1e-229Initial program 37.9%
Taylor expanded in y2 around inf 73.8%
if -4.1e-229 < y3 < 7.20000000000000025e-106Initial program 31.3%
Taylor expanded in a around inf 60.6%
if 7.20000000000000025e-106 < y3 < 7.4999999999999999e202Initial program 29.6%
Taylor expanded in y1 around inf 46.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 (- (* z y3) (* x y2)))
(t_2 (- (* y0 y5) (* y1 y4)))
(t_3 (- (* a y5) (* c y4)))
(t_4 (- (* c y4) (* a y5)))
(t_5 (* y3 (+ (+ (* z (- (* a y1) (* c y0))) (* j t_2)) (* y t_4))))
(t_6
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x (- (* a b) (* c i))))
(* y3 t_4)))))
(if (<= y3 -4.2e+125)
t_5
(if (<= y3 -3e+45)
(* t (* y2 t_3))
(if (<= y3 -1.25e+18)
(* a (* y3 (- (* z y1) (* y y5))))
(if (<= y3 -1.85e-39)
t_6
(if (<= y3 -4.6e-140)
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 t_2))
(* x (- (* i y1) (* b y0)))))
(if (<= y3 -6.2e-171)
t_6
(if (<= y3 -2.2e-229)
(*
y2
(+
(+
(* k (- (* y1 y4) (* y0 y5)))
(* x (- (* c y0) (* a y1))))
(* t t_3)))
(if (<= y3 3.6e-103)
(*
a
(+
(+ (* y1 t_1) (* b (- (* x y) (* z t))))
(* y5 (- (* t y2) (* y y3)))))
(if (<= y3 1.7e+200)
(*
y1
(+
(+ (* a t_1) (* y4 (- (* k y2) (* j y3))))
(* i (- (* x j) (* z k)))))
t_5)))))))))))
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 * y3) - (x * y2);
double t_2 = (y0 * y5) - (y1 * y4);
double t_3 = (a * y5) - (c * y4);
double t_4 = (c * y4) - (a * y5);
double t_5 = y3 * (((z * ((a * y1) - (c * y0))) + (j * t_2)) + (y * t_4));
double t_6 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_4));
double tmp;
if (y3 <= -4.2e+125) {
tmp = t_5;
} else if (y3 <= -3e+45) {
tmp = t * (y2 * t_3);
} else if (y3 <= -1.25e+18) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else if (y3 <= -1.85e-39) {
tmp = t_6;
} else if (y3 <= -4.6e-140) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0))));
} else if (y3 <= -6.2e-171) {
tmp = t_6;
} else if (y3 <= -2.2e-229) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_3));
} else if (y3 <= 3.6e-103) {
tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= 1.7e+200) {
tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = t_5;
}
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 = (z * y3) - (x * y2)
t_2 = (y0 * y5) - (y1 * y4)
t_3 = (a * y5) - (c * y4)
t_4 = (c * y4) - (a * y5)
t_5 = y3 * (((z * ((a * y1) - (c * y0))) + (j * t_2)) + (y * t_4))
t_6 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_4))
if (y3 <= (-4.2d+125)) then
tmp = t_5
else if (y3 <= (-3d+45)) then
tmp = t * (y2 * t_3)
else if (y3 <= (-1.25d+18)) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
else if (y3 <= (-1.85d-39)) then
tmp = t_6
else if (y3 <= (-4.6d-140)) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0))))
else if (y3 <= (-6.2d-171)) then
tmp = t_6
else if (y3 <= (-2.2d-229)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_3))
else if (y3 <= 3.6d-103) then
tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))))
else if (y3 <= 1.7d+200) then
tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))))
else
tmp = t_5
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 * y3) - (x * y2);
double t_2 = (y0 * y5) - (y1 * y4);
double t_3 = (a * y5) - (c * y4);
double t_4 = (c * y4) - (a * y5);
double t_5 = y3 * (((z * ((a * y1) - (c * y0))) + (j * t_2)) + (y * t_4));
double t_6 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_4));
double tmp;
if (y3 <= -4.2e+125) {
tmp = t_5;
} else if (y3 <= -3e+45) {
tmp = t * (y2 * t_3);
} else if (y3 <= -1.25e+18) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else if (y3 <= -1.85e-39) {
tmp = t_6;
} else if (y3 <= -4.6e-140) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0))));
} else if (y3 <= -6.2e-171) {
tmp = t_6;
} else if (y3 <= -2.2e-229) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_3));
} else if (y3 <= 3.6e-103) {
tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= 1.7e+200) {
tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (z * y3) - (x * y2) t_2 = (y0 * y5) - (y1 * y4) t_3 = (a * y5) - (c * y4) t_4 = (c * y4) - (a * y5) t_5 = y3 * (((z * ((a * y1) - (c * y0))) + (j * t_2)) + (y * t_4)) t_6 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_4)) tmp = 0 if y3 <= -4.2e+125: tmp = t_5 elif y3 <= -3e+45: tmp = t * (y2 * t_3) elif y3 <= -1.25e+18: tmp = a * (y3 * ((z * y1) - (y * y5))) elif y3 <= -1.85e-39: tmp = t_6 elif y3 <= -4.6e-140: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0)))) elif y3 <= -6.2e-171: tmp = t_6 elif y3 <= -2.2e-229: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_3)) elif y3 <= 3.6e-103: tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))) elif y3 <= 1.7e+200: tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))) else: tmp = t_5 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 * y3) - Float64(x * y2)) t_2 = Float64(Float64(y0 * y5) - Float64(y1 * y4)) t_3 = Float64(Float64(a * y5) - Float64(c * y4)) t_4 = Float64(Float64(c * y4) - Float64(a * y5)) t_5 = Float64(y3 * Float64(Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(j * t_2)) + Float64(y * t_4))) t_6 = 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_4))) tmp = 0.0 if (y3 <= -4.2e+125) tmp = t_5; elseif (y3 <= -3e+45) tmp = Float64(t * Float64(y2 * t_3)); elseif (y3 <= -1.25e+18) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (y3 <= -1.85e-39) tmp = t_6; elseif (y3 <= -4.6e-140) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * t_2)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y3 <= -6.2e-171) tmp = t_6; elseif (y3 <= -2.2e-229) 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 * t_3))); elseif (y3 <= 3.6e-103) tmp = Float64(a * Float64(Float64(Float64(y1 * t_1) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= 1.7e+200) tmp = Float64(y1 * Float64(Float64(Float64(a * t_1) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); else tmp = t_5; 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 * y3) - (x * y2); t_2 = (y0 * y5) - (y1 * y4); t_3 = (a * y5) - (c * y4); t_4 = (c * y4) - (a * y5); t_5 = y3 * (((z * ((a * y1) - (c * y0))) + (j * t_2)) + (y * t_4)); t_6 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_4)); tmp = 0.0; if (y3 <= -4.2e+125) tmp = t_5; elseif (y3 <= -3e+45) tmp = t * (y2 * t_3); elseif (y3 <= -1.25e+18) tmp = a * (y3 * ((z * y1) - (y * y5))); elseif (y3 <= -1.85e-39) tmp = t_6; elseif (y3 <= -4.6e-140) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0)))); elseif (y3 <= -6.2e-171) tmp = t_6; elseif (y3 <= -2.2e-229) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_3)); elseif (y3 <= 3.6e-103) tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))); elseif (y3 <= 1.7e+200) tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))); else tmp = t_5; 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 * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y3 * N[(N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = 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$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.2e+125], t$95$5, If[LessEqual[y3, -3e+45], N[(t * N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.25e+18], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.85e-39], t$95$6, If[LessEqual[y3, -4.6e-140], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -6.2e-171], t$95$6, If[LessEqual[y3, -2.2e-229], 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 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.6e-103], N[(a * N[(N[(N[(y1 * t$95$1), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.7e+200], N[(y1 * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot y3 - x \cdot y2\\
t_2 := y0 \cdot y5 - y1 \cdot y4\\
t_3 := a \cdot y5 - c \cdot y4\\
t_4 := c \cdot y4 - a \cdot y5\\
t_5 := y3 \cdot \left(\left(z \cdot \left(a \cdot y1 - c \cdot y0\right) + j \cdot t\_2\right) + y \cdot t\_4\right)\\
t_6 := 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\_4\right)\\
\mathbf{if}\;y3 \leq -4.2 \cdot 10^{+125}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y3 \leq -3 \cdot 10^{+45}:\\
\;\;\;\;t \cdot \left(y2 \cdot t\_3\right)\\
\mathbf{elif}\;y3 \leq -1.25 \cdot 10^{+18}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -1.85 \cdot 10^{-39}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y3 \leq -4.6 \cdot 10^{-140}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot t\_2\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq -6.2 \cdot 10^{-171}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y3 \leq -2.2 \cdot 10^{-229}:\\
\;\;\;\;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 t\_3\right)\\
\mathbf{elif}\;y3 \leq 3.6 \cdot 10^{-103}:\\
\;\;\;\;a \cdot \left(\left(y1 \cdot t\_1 + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 1.7 \cdot 10^{+200}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot t\_1 + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y3 < -4.2000000000000001e125 or 1.69999999999999985e200 < y3 Initial program 30.8%
Taylor expanded in y3 around -inf 69.5%
if -4.2000000000000001e125 < y3 < -3.00000000000000011e45Initial program 45.5%
Taylor expanded in y2 around inf 64.0%
Taylor expanded in t around inf 73.7%
if -3.00000000000000011e45 < y3 < -1.25e18Initial program 12.5%
Taylor expanded in y3 around -inf 75.0%
Taylor expanded in a around -inf 100.0%
mul-1-neg100.0%
Simplified100.0%
if -1.25e18 < y3 < -1.85000000000000007e-39 or -4.6000000000000002e-140 < y3 < -6.2000000000000001e-171Initial program 26.9%
Taylor expanded in y around inf 61.6%
if -1.85000000000000007e-39 < y3 < -4.6000000000000002e-140Initial program 26.1%
Taylor expanded in j around inf 61.7%
if -6.2000000000000001e-171 < y3 < -2.1999999999999999e-229Initial program 37.9%
Taylor expanded in y2 around inf 73.8%
if -2.1999999999999999e-229 < y3 < 3.5999999999999998e-103Initial program 31.3%
Taylor expanded in a around inf 60.6%
if 3.5999999999999998e-103 < y3 < 1.69999999999999985e200Initial program 29.6%
Taylor expanded in y1 around inf 46.8%
Final simplification62.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* t y2) (* y y3)))
(t_3
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 t_2))))
(t_4
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 t_1))))
(t_5 (* y (- (* c y4) (* a y5)))))
(if (<= t -2.4e+108)
(* y5 (+ (* a t_2) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -1.7e+32)
t_3
(if (<= t -6.4e-16)
t_4
(if (<= t -2.45e-197)
(*
y3
(+
(+ (* z (- (* a y1) (* c y0))) (* j (- (* y0 y5) (* y1 y4))))
t_5))
(if (<= t -1.05e-272)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_1)))
(if (<= t 5.6e-225)
t_3
(if (<= t 6.9e-199)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 2.8e-82)
t_3
(if (<= t 2e+257)
(* y3 (+ t_5 (- (* a (* z y1)) (* c (* z y0)))))
t_4)))))))))))
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 = (a * y5) - (c * y4);
double t_2 = (t * y2) - (y * y3);
double t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2));
double t_4 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1));
double t_5 = y * ((c * y4) - (a * y5));
double tmp;
if (t <= -2.4e+108) {
tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.7e+32) {
tmp = t_3;
} else if (t <= -6.4e-16) {
tmp = t_4;
} else if (t <= -2.45e-197) {
tmp = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + t_5);
} else if (t <= -1.05e-272) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (t <= 5.6e-225) {
tmp = t_3;
} else if (t <= 6.9e-199) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 2.8e-82) {
tmp = t_3;
} else if (t <= 2e+257) {
tmp = y3 * (t_5 + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t_4;
}
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 = (a * y5) - (c * y4)
t_2 = (t * y2) - (y * y3)
t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2))
t_4 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1))
t_5 = y * ((c * y4) - (a * y5))
if (t <= (-2.4d+108)) then
tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-1.7d+32)) then
tmp = t_3
else if (t <= (-6.4d-16)) then
tmp = t_4
else if (t <= (-2.45d-197)) then
tmp = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + t_5)
else if (t <= (-1.05d-272)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1))
else if (t <= 5.6d-225) then
tmp = t_3
else if (t <= 6.9d-199) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 2.8d-82) then
tmp = t_3
else if (t <= 2d+257) then
tmp = y3 * (t_5 + ((a * (z * y1)) - (c * (z * y0))))
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (t * y2) - (y * y3);
double t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2));
double t_4 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1));
double t_5 = y * ((c * y4) - (a * y5));
double tmp;
if (t <= -2.4e+108) {
tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.7e+32) {
tmp = t_3;
} else if (t <= -6.4e-16) {
tmp = t_4;
} else if (t <= -2.45e-197) {
tmp = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + t_5);
} else if (t <= -1.05e-272) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (t <= 5.6e-225) {
tmp = t_3;
} else if (t <= 6.9e-199) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 2.8e-82) {
tmp = t_3;
} else if (t <= 2e+257) {
tmp = y3 * (t_5 + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (t * y2) - (y * y3) t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2)) t_4 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1)) t_5 = y * ((c * y4) - (a * y5)) tmp = 0 if t <= -2.4e+108: tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2)))) elif t <= -1.7e+32: tmp = t_3 elif t <= -6.4e-16: tmp = t_4 elif t <= -2.45e-197: tmp = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + t_5) elif t <= -1.05e-272: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)) elif t <= 5.6e-225: tmp = t_3 elif t <= 6.9e-199: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 2.8e-82: tmp = t_3 elif t <= 2e+257: tmp = y3 * (t_5 + ((a * (z * y1)) - (c * (z * y0)))) else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) t_3 = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_2))) t_4 = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_1))) t_5 = Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) tmp = 0.0 if (t <= -2.4e+108) tmp = Float64(y5 * Float64(Float64(a * t_2) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -1.7e+32) tmp = t_3; elseif (t <= -6.4e-16) tmp = t_4; elseif (t <= -2.45e-197) tmp = Float64(y3 * Float64(Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + t_5)); elseif (t <= -1.05e-272) 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 * t_1))); elseif (t <= 5.6e-225) tmp = t_3; elseif (t <= 6.9e-199) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 2.8e-82) tmp = t_3; elseif (t <= 2e+257) tmp = Float64(y3 * Float64(t_5 + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); else tmp = t_4; 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 = (a * y5) - (c * y4); t_2 = (t * y2) - (y * y3); t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2)); t_4 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1)); t_5 = y * ((c * y4) - (a * y5)); tmp = 0.0; if (t <= -2.4e+108) tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -1.7e+32) tmp = t_3; elseif (t <= -6.4e-16) tmp = t_4; elseif (t <= -2.45e-197) tmp = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + t_5); elseif (t <= -1.05e-272) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)); elseif (t <= 5.6e-225) tmp = t_3; elseif (t <= 6.9e-199) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 2.8e-82) tmp = t_3; elseif (t <= 2e+257) tmp = y3 * (t_5 + ((a * (z * y1)) - (c * (z * y0)))); else tmp = t_4; 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[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e+108], N[(y5 * N[(N[(a * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.7e+32], t$95$3, If[LessEqual[t, -6.4e-16], t$95$4, If[LessEqual[t, -2.45e-197], N[(y3 * N[(N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-272], 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 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e-225], t$95$3, If[LessEqual[t, 6.9e-199], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-82], t$95$3, If[LessEqual[t, 2e+257], N[(y3 * N[(t$95$5 + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := t \cdot y2 - y \cdot y3\\
t_3 := a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_2\right)\\
t_4 := t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_1\right)\\
t_5 := y \cdot \left(c \cdot y4 - a \cdot y5\right)\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+108}:\\
\;\;\;\;y5 \cdot \left(a \cdot t\_2 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{+32}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-16}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{-197}:\\
\;\;\;\;y3 \cdot \left(\left(z \cdot \left(a \cdot y1 - c \cdot y0\right) + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t\_5\right)\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-272}:\\
\;\;\;\;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 t\_1\right)\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-225}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 6.9 \cdot 10^{-199}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-82}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+257}:\\
\;\;\;\;y3 \cdot \left(t\_5 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if t < -2.40000000000000019e108Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -2.40000000000000019e108 < t < -1.69999999999999989e32 or -1.04999999999999993e-272 < t < 5.6e-225 or 6.9000000000000004e-199 < t < 2.80000000000000024e-82Initial program 45.4%
Taylor expanded in a around inf 59.9%
if -1.69999999999999989e32 < t < -6.40000000000000046e-16 or 2.00000000000000006e257 < t Initial program 20.8%
Taylor expanded in t around inf 79.4%
if -6.40000000000000046e-16 < t < -2.4500000000000001e-197Initial program 26.0%
Taylor expanded in y3 around -inf 55.5%
if -2.4500000000000001e-197 < t < -1.04999999999999993e-272Initial program 36.4%
Taylor expanded in y2 around inf 77.6%
if 5.6e-225 < t < 6.9000000000000004e-199Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 2.80000000000000024e-82 < t < 2.00000000000000006e257Initial program 29.4%
Taylor expanded in y3 around -inf 52.7%
Taylor expanded in c around 0 57.9%
Taylor expanded in j around 0 56.6%
Final simplification62.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* z (- (* a y1) (* c y0))))
(t_2 (* y (- (* c y4) (* a y5))))
(t_3 (* y3 (+ (+ t_1 (* j (- (* y0 y5) (* y1 y4)))) t_2)))
(t_4 (- (* a y5) (* c y4))))
(if (<= t -1.2e+105)
(* y5 (+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -3.7e+59)
(* y3 t_1)
(if (<= t -3.8e+33)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= t -3.1e-196)
t_3
(if (<= t 6e-295)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_4)))
(if (<= t 6.5e-224)
t_3
(if (<= t 9.2e-178)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 1.25e-81)
(* x (* y (- (* a b) (* c i))))
(if (<= t 3.2e+257)
(* y3 (+ t_2 (- (* a (* z y1)) (* c (* z y0)))))
(*
t
(+
(+
(* z (- (* c i) (* a b)))
(* j (- (* b y4) (* i y5))))
(* y2 t_4))))))))))))))
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 * ((a * y1) - (c * y0));
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2);
double t_4 = (a * y5) - (c * y4);
double tmp;
if (t <= -1.2e+105) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.7e+59) {
tmp = y3 * t_1;
} else if (t <= -3.8e+33) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -3.1e-196) {
tmp = t_3;
} else if (t <= 6e-295) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_4));
} else if (t <= 6.5e-224) {
tmp = t_3;
} else if (t <= 9.2e-178) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.25e-81) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (t <= 3.2e+257) {
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4));
}
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 * ((a * y1) - (c * y0))
t_2 = y * ((c * y4) - (a * y5))
t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2)
t_4 = (a * y5) - (c * y4)
if (t <= (-1.2d+105)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-3.7d+59)) then
tmp = y3 * t_1
else if (t <= (-3.8d+33)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (t <= (-3.1d-196)) then
tmp = t_3
else if (t <= 6d-295) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_4))
else if (t <= 6.5d-224) then
tmp = t_3
else if (t <= 9.2d-178) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 1.25d-81) then
tmp = x * (y * ((a * b) - (c * i)))
else if (t <= 3.2d+257) then
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))))
else
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = z * ((a * y1) - (c * y0));
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2);
double t_4 = (a * y5) - (c * y4);
double tmp;
if (t <= -1.2e+105) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.7e+59) {
tmp = y3 * t_1;
} else if (t <= -3.8e+33) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -3.1e-196) {
tmp = t_3;
} else if (t <= 6e-295) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_4));
} else if (t <= 6.5e-224) {
tmp = t_3;
} else if (t <= 9.2e-178) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.25e-81) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (t <= 3.2e+257) {
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = z * ((a * y1) - (c * y0)) t_2 = y * ((c * y4) - (a * y5)) t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2) t_4 = (a * y5) - (c * y4) tmp = 0 if t <= -1.2e+105: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif t <= -3.7e+59: tmp = y3 * t_1 elif t <= -3.8e+33: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif t <= -3.1e-196: tmp = t_3 elif t <= 6e-295: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_4)) elif t <= 6.5e-224: tmp = t_3 elif t <= 9.2e-178: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 1.25e-81: tmp = x * (y * ((a * b) - (c * i))) elif t <= 3.2e+257: tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0)))) else: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) t_2 = Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) t_3 = Float64(y3 * Float64(Float64(t_1 + Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + t_2)) t_4 = Float64(Float64(a * y5) - Float64(c * y4)) tmp = 0.0 if (t <= -1.2e+105) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -3.7e+59) tmp = Float64(y3 * t_1); elseif (t <= -3.8e+33) 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 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= -3.1e-196) tmp = t_3; elseif (t <= 6e-295) 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 * t_4))); elseif (t <= 6.5e-224) tmp = t_3; elseif (t <= 9.2e-178) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 1.25e-81) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (t <= 3.2e+257) tmp = Float64(y3 * Float64(t_2 + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_4))); 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 * ((a * y1) - (c * y0)); t_2 = y * ((c * y4) - (a * y5)); t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2); t_4 = (a * y5) - (c * y4); tmp = 0.0; if (t <= -1.2e+105) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -3.7e+59) tmp = y3 * t_1; elseif (t <= -3.8e+33) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (t <= -3.1e-196) tmp = t_3; elseif (t <= 6e-295) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_4)); elseif (t <= 6.5e-224) tmp = t_3; elseif (t <= 9.2e-178) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 1.25e-81) tmp = x * (y * ((a * b) - (c * i))); elseif (t <= 3.2e+257) tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0)))); else tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4)); 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[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y3 * N[(N[(t$95$1 + N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e+105], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.7e+59], N[(y3 * t$95$1), $MachinePrecision], If[LessEqual[t, -3.8e+33], 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 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.1e-196], t$95$3, If[LessEqual[t, 6e-295], 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 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-224], t$95$3, If[LessEqual[t, 9.2e-178], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-81], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+257], N[(y3 * N[(t$95$2 + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a \cdot y1 - c \cdot y0\right)\\
t_2 := y \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_3 := y3 \cdot \left(\left(t\_1 + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t\_2\right)\\
t_4 := a \cdot y5 - c \cdot y4\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+105}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{+59}:\\
\;\;\;\;y3 \cdot t\_1\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{+33}:\\
\;\;\;\;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 \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{-196}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-295}:\\
\;\;\;\;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 t\_4\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-224}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-178}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+257}:\\
\;\;\;\;y3 \cdot \left(t\_2 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_4\right)\\
\end{array}
\end{array}
if t < -1.19999999999999987e105Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -1.19999999999999987e105 < t < -3.69999999999999997e59Initial program 42.9%
Taylor expanded in y3 around -inf 43.1%
Taylor expanded in z around inf 86.0%
if -3.69999999999999997e59 < t < -3.80000000000000002e33Initial program 66.7%
Taylor expanded in y4 around inf 100.0%
if -3.80000000000000002e33 < t < -3.09999999999999993e-196 or 5.99999999999999993e-295 < t < 6.5e-224Initial program 26.3%
Taylor expanded in y3 around -inf 54.9%
if -3.09999999999999993e-196 < t < 5.99999999999999993e-295Initial program 40.6%
Taylor expanded in y2 around inf 66.0%
if 6.5e-224 < t < 9.19999999999999978e-178Initial program 9.6%
Taylor expanded in j around inf 73.7%
Taylor expanded in x around inf 73.8%
if 9.19999999999999978e-178 < t < 1.24999999999999995e-81Initial program 39.8%
Taylor expanded in y around inf 45.2%
Taylor expanded in x around inf 41.4%
if 1.24999999999999995e-81 < t < 3.2000000000000001e257Initial program 29.4%
Taylor expanded in y3 around -inf 52.7%
Taylor expanded in c around 0 57.9%
Taylor expanded in j around 0 56.6%
if 3.2000000000000001e257 < t Initial program 31.3%
Taylor expanded in t around inf 87.5%
Final simplification61.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y3
(+
(+ (* z (- (* a y1) (* c y0))) (* j (- (* y0 y5) (* y1 y4))))
(* y (- (* c y4) (* a y5))))))
(t_2
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4))))))
(t_3 (- (* y y3) (* t y2)))
(t_4 (* a (- (* t y2) (* y y3)))))
(if (<= y2 -1.22e+107)
t_2
(if (<= y2 -1.95e+28)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_4))
(if (<= y2 -6.3e-236)
t_1
(if (<= y2 -8.2e-280)
(*
y5
(+ t_4 (+ (* y0 (- (* j y3) (* k y2))) (* i (- (* y k) (* t j))))))
(if (<= y2 5.8e-226)
t_1
(if (<= y2 1.76e-171)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c t_3)))
(if (<= y2 7.5e-126)
(* x (* y (- (* a b) (* c i))))
(if (<= y2 6.2e+116)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 t_3)))
t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + (y * ((c * y4) - (a * y5))));
double t_2 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double t_3 = (y * y3) - (t * y2);
double t_4 = a * ((t * y2) - (y * y3));
double tmp;
if (y2 <= -1.22e+107) {
tmp = t_2;
} else if (y2 <= -1.95e+28) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_4);
} else if (y2 <= -6.3e-236) {
tmp = t_1;
} else if (y2 <= -8.2e-280) {
tmp = y5 * (t_4 + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))));
} else if (y2 <= 5.8e-226) {
tmp = t_1;
} else if (y2 <= 1.76e-171) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3));
} else if (y2 <= 7.5e-126) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y2 <= 6.2e+116) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_3));
} 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) :: t_4
real(8) :: tmp
t_1 = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + (y * ((c * y4) - (a * y5))))
t_2 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
t_3 = (y * y3) - (t * y2)
t_4 = a * ((t * y2) - (y * y3))
if (y2 <= (-1.22d+107)) then
tmp = t_2
else if (y2 <= (-1.95d+28)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_4)
else if (y2 <= (-6.3d-236)) then
tmp = t_1
else if (y2 <= (-8.2d-280)) then
tmp = y5 * (t_4 + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))))
else if (y2 <= 5.8d-226) then
tmp = t_1
else if (y2 <= 1.76d-171) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3))
else if (y2 <= 7.5d-126) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y2 <= 6.2d+116) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_3))
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 = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + (y * ((c * y4) - (a * y5))));
double t_2 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double t_3 = (y * y3) - (t * y2);
double t_4 = a * ((t * y2) - (y * y3));
double tmp;
if (y2 <= -1.22e+107) {
tmp = t_2;
} else if (y2 <= -1.95e+28) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_4);
} else if (y2 <= -6.3e-236) {
tmp = t_1;
} else if (y2 <= -8.2e-280) {
tmp = y5 * (t_4 + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))));
} else if (y2 <= 5.8e-226) {
tmp = t_1;
} else if (y2 <= 1.76e-171) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3));
} else if (y2 <= 7.5e-126) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y2 <= 6.2e+116) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_3));
} 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 = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + (y * ((c * y4) - (a * y5)))) t_2 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) t_3 = (y * y3) - (t * y2) t_4 = a * ((t * y2) - (y * y3)) tmp = 0 if y2 <= -1.22e+107: tmp = t_2 elif y2 <= -1.95e+28: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_4) elif y2 <= -6.3e-236: tmp = t_1 elif y2 <= -8.2e-280: tmp = y5 * (t_4 + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j))))) elif y2 <= 5.8e-226: tmp = t_1 elif y2 <= 1.76e-171: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3)) elif y2 <= 7.5e-126: tmp = x * (y * ((a * b) - (c * i))) elif y2 <= 6.2e+116: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_3)) 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(y3 * Float64(Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(y * Float64(Float64(c * y4) - Float64(a * y5))))) t_2 = 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))))) t_3 = Float64(Float64(y * y3) - Float64(t * y2)) t_4 = Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (y2 <= -1.22e+107) tmp = t_2; elseif (y2 <= -1.95e+28) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_4)); elseif (y2 <= -6.3e-236) tmp = t_1; elseif (y2 <= -8.2e-280) tmp = Float64(y5 * Float64(t_4 + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(i * Float64(Float64(y * k) - Float64(t * j)))))); elseif (y2 <= 5.8e-226) tmp = t_1; elseif (y2 <= 1.76e-171) 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_3))); elseif (y2 <= 7.5e-126) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y2 <= 6.2e+116) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_3))); 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 = y3 * (((z * ((a * y1) - (c * y0))) + (j * ((y0 * y5) - (y1 * y4)))) + (y * ((c * y4) - (a * y5)))); t_2 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); t_3 = (y * y3) - (t * y2); t_4 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (y2 <= -1.22e+107) tmp = t_2; elseif (y2 <= -1.95e+28) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_4); elseif (y2 <= -6.3e-236) tmp = t_1; elseif (y2 <= -8.2e-280) tmp = y5 * (t_4 + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j))))); elseif (y2 <= 5.8e-226) tmp = t_1; elseif (y2 <= 1.76e-171) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3)); elseif (y2 <= 7.5e-126) tmp = x * (y * ((a * b) - (c * i))); elseif (y2 <= 6.2e+116) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_3)); 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[(y3 * N[(N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, Block[{t$95$3 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.22e+107], t$95$2, If[LessEqual[y2, -1.95e+28], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.3e-236], t$95$1, If[LessEqual[y2, -8.2e-280], N[(y5 * N[(t$95$4 + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e-226], t$95$1, If[LessEqual[y2, 1.76e-171], 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$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.5e-126], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.2e+116], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot \left(\left(z \cdot \left(a \cdot y1 - c \cdot y0\right) + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_2 := 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)\\
t_3 := y \cdot y3 - t \cdot y2\\
t_4 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;y2 \leq -1.22 \cdot 10^{+107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -1.95 \cdot 10^{+28}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_4\right)\\
\mathbf{elif}\;y2 \leq -6.3 \cdot 10^{-236}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -8.2 \cdot 10^{-280}:\\
\;\;\;\;y5 \cdot \left(t\_4 + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) + i \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-226}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.76 \cdot 10^{-171}:\\
\;\;\;\;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\_3\right)\\
\mathbf{elif}\;y2 \leq 7.5 \cdot 10^{-126}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 6.2 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t\_3\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -1.22e107 or 6.19999999999999992e116 < y2 Initial program 27.4%
Taylor expanded in y2 around inf 60.9%
if -1.22e107 < y2 < -1.9499999999999999e28Initial program 21.4%
Taylor expanded in y5 around -inf 71.4%
Taylor expanded in k around 0 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
if -1.9499999999999999e28 < y2 < -6.2999999999999998e-236 or -8.2000000000000003e-280 < y2 < 5.80000000000000003e-226Initial program 38.8%
Taylor expanded in y3 around -inf 59.2%
if -6.2999999999999998e-236 < y2 < -8.2000000000000003e-280Initial program 29.3%
Taylor expanded in y5 around -inf 65.5%
if 5.80000000000000003e-226 < y2 < 1.76000000000000007e-171Initial program 8.9%
Taylor expanded in y4 around inf 63.9%
if 1.76000000000000007e-171 < y2 < 7.49999999999999976e-126Initial program 0.0%
Taylor expanded in y around inf 0.0%
Taylor expanded in x around inf 100.0%
if 7.49999999999999976e-126 < y2 < 6.19999999999999992e116Initial program 30.9%
Taylor expanded in c around inf 49.9%
Final simplification59.5%
(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 (* j (* x (- (* i y1) (* b y0)))))
(t_3 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -1.36e+45)
t_3
(if (<= y2 -1.5e-97)
t_2
(if (<= y2 -2.1e-239)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= y2 -1.5e-273)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 -1.8e-297)
t_1
(if (<= y2 9.5e-304)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y2 1.06e-176)
t_2
(if (<= y2 2.7e+31)
t_1
(if (<= y2 1.5e+82)
t_2
(if (or (<= y2 2.5e+135) (not (<= y2 1.4e+258)))
(* t (* y2 (- (* a y5) (* c y4))))
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 = x * (y * ((a * b) - (c * i)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -1.36e+45) {
tmp = t_3;
} else if (y2 <= -1.5e-97) {
tmp = t_2;
} else if (y2 <= -2.1e-239) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y2 <= -1.5e-273) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= -1.8e-297) {
tmp = t_1;
} else if (y2 <= 9.5e-304) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y2 <= 1.06e-176) {
tmp = t_2;
} else if (y2 <= 2.7e+31) {
tmp = t_1;
} else if (y2 <= 1.5e+82) {
tmp = t_2;
} else if ((y2 <= 2.5e+135) || !(y2 <= 1.4e+258)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = 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) :: tmp
t_1 = x * (y * ((a * b) - (c * i)))
t_2 = j * (x * ((i * y1) - (b * y0)))
t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-1.36d+45)) then
tmp = t_3
else if (y2 <= (-1.5d-97)) then
tmp = t_2
else if (y2 <= (-2.1d-239)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (y2 <= (-1.5d-273)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= (-1.8d-297)) then
tmp = t_1
else if (y2 <= 9.5d-304) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y2 <= 1.06d-176) then
tmp = t_2
else if (y2 <= 2.7d+31) then
tmp = t_1
else if (y2 <= 1.5d+82) then
tmp = t_2
else if ((y2 <= 2.5d+135) .or. (.not. (y2 <= 1.4d+258))) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double 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 = j * (x * ((i * y1) - (b * y0)));
double t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -1.36e+45) {
tmp = t_3;
} else if (y2 <= -1.5e-97) {
tmp = t_2;
} else if (y2 <= -2.1e-239) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y2 <= -1.5e-273) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= -1.8e-297) {
tmp = t_1;
} else if (y2 <= 9.5e-304) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y2 <= 1.06e-176) {
tmp = t_2;
} else if (y2 <= 2.7e+31) {
tmp = t_1;
} else if (y2 <= 1.5e+82) {
tmp = t_2;
} else if ((y2 <= 2.5e+135) || !(y2 <= 1.4e+258)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_3;
}
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 = j * (x * ((i * y1) - (b * y0))) t_3 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -1.36e+45: tmp = t_3 elif y2 <= -1.5e-97: tmp = t_2 elif y2 <= -2.1e-239: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif y2 <= -1.5e-273: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= -1.8e-297: tmp = t_1 elif y2 <= 9.5e-304: tmp = k * (z * ((b * y0) - (i * y1))) elif y2 <= 1.06e-176: tmp = t_2 elif y2 <= 2.7e+31: tmp = t_1 elif y2 <= 1.5e+82: tmp = t_2 elif (y2 <= 2.5e+135) or not (y2 <= 1.4e+258): tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = 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(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_3 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -1.36e+45) tmp = t_3; elseif (y2 <= -1.5e-97) tmp = t_2; elseif (y2 <= -2.1e-239) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (y2 <= -1.5e-273) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= -1.8e-297) tmp = t_1; elseif (y2 <= 9.5e-304) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y2 <= 1.06e-176) tmp = t_2; elseif (y2 <= 2.7e+31) tmp = t_1; elseif (y2 <= 1.5e+82) tmp = t_2; elseif ((y2 <= 2.5e+135) || !(y2 <= 1.4e+258)) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = 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 = x * (y * ((a * b) - (c * i))); t_2 = j * (x * ((i * y1) - (b * y0))); t_3 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -1.36e+45) tmp = t_3; elseif (y2 <= -1.5e-97) tmp = t_2; elseif (y2 <= -2.1e-239) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (y2 <= -1.5e-273) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= -1.8e-297) tmp = t_1; elseif (y2 <= 9.5e-304) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y2 <= 1.06e-176) tmp = t_2; elseif (y2 <= 2.7e+31) tmp = t_1; elseif (y2 <= 1.5e+82) tmp = t_2; elseif ((y2 <= 2.5e+135) || ~((y2 <= 1.4e+258))) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = 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[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $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[y2, -1.36e+45], t$95$3, If[LessEqual[y2, -1.5e-97], t$95$2, If[LessEqual[y2, -2.1e-239], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.5e-273], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.8e-297], t$95$1, If[LessEqual[y2, 9.5e-304], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.06e-176], t$95$2, If[LessEqual[y2, 2.7e+31], t$95$1, If[LessEqual[y2, 1.5e+82], t$95$2, If[Or[LessEqual[y2, 2.5e+135], N[Not[LessEqual[y2, 1.4e+258]], $MachinePrecision]], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_3 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -1.36 \cdot 10^{+45}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-97}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-239}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-273}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 9.5 \cdot 10^{-304}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 1.06 \cdot 10^{-176}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 2.7 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.5 \cdot 10^{+82}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{+135} \lor \neg \left(y2 \leq 1.4 \cdot 10^{+258}\right):\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y2 < -1.36e45 or 2.50000000000000015e135 < y2 < 1.39999999999999991e258Initial program 28.1%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in k around inf 54.1%
if -1.36e45 < y2 < -1.50000000000000012e-97 or 9.50000000000000023e-304 < y2 < 1.06000000000000006e-176 or 2.69999999999999986e31 < y2 < 1.49999999999999995e82Initial program 29.7%
Taylor expanded in j around inf 42.5%
Taylor expanded in x around inf 49.3%
if -1.50000000000000012e-97 < y2 < -2.1000000000000002e-239Initial program 39.6%
Taylor expanded in j around inf 47.1%
Taylor expanded in y0 around inf 51.0%
if -2.1000000000000002e-239 < y2 < -1.49999999999999994e-273Initial program 30.6%
Taylor expanded in k around inf 46.4%
Taylor expanded in i around inf 47.7%
if -1.49999999999999994e-273 < y2 < -1.79999999999999997e-297 or 1.06000000000000006e-176 < y2 < 2.69999999999999986e31Initial program 28.9%
Taylor expanded in y around inf 35.8%
Taylor expanded in x around inf 45.5%
if -1.79999999999999997e-297 < y2 < 9.50000000000000023e-304Initial program 74.6%
Taylor expanded in k around inf 75.5%
Taylor expanded in z around inf 51.0%
if 1.49999999999999995e82 < y2 < 2.50000000000000015e135 or 1.39999999999999991e258 < y2 Initial program 21.7%
Taylor expanded in y2 around inf 60.9%
Taylor expanded in t around inf 70.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 (* z (- (* a y1) (* c y0))))
(t_2 (* y (- (* c y4) (* a y5))))
(t_3 (* y3 (+ (+ t_1 (* j (- (* y0 y5) (* y1 y4)))) t_2))))
(if (<= t -6.2e+107)
(* y5 (+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -3.9e+59)
(* y3 t_1)
(if (<= t -3.5e+33)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= t -1.26e-197)
t_3
(if (<= t 1.32e-294)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= t 3.8e-227)
t_3
(if (<= t 6.2e-179)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 1.25e-81)
(* x (* y (- (* a b) (* c i))))
(* y3 (+ t_2 (- (* a (* z y1)) (* c (* 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 = z * ((a * y1) - (c * y0));
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2);
double tmp;
if (t <= -6.2e+107) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.9e+59) {
tmp = y3 * t_1;
} else if (t <= -3.5e+33) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -1.26e-197) {
tmp = t_3;
} else if (t <= 1.32e-294) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 3.8e-227) {
tmp = t_3;
} else if (t <= 6.2e-179) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.25e-81) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * ((a * y1) - (c * y0))
t_2 = y * ((c * y4) - (a * y5))
t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2)
if (t <= (-6.2d+107)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-3.9d+59)) then
tmp = y3 * t_1
else if (t <= (-3.5d+33)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (t <= (-1.26d-197)) then
tmp = t_3
else if (t <= 1.32d-294) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (t <= 3.8d-227) then
tmp = t_3
else if (t <= 6.2d-179) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 1.25d-81) then
tmp = x * (y * ((a * b) - (c * i)))
else
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (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 = z * ((a * y1) - (c * y0));
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2);
double tmp;
if (t <= -6.2e+107) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.9e+59) {
tmp = y3 * t_1;
} else if (t <= -3.5e+33) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -1.26e-197) {
tmp = t_3;
} else if (t <= 1.32e-294) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 3.8e-227) {
tmp = t_3;
} else if (t <= 6.2e-179) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.25e-81) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = z * ((a * y1) - (c * y0)) t_2 = y * ((c * y4) - (a * y5)) t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2) tmp = 0 if t <= -6.2e+107: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif t <= -3.9e+59: tmp = y3 * t_1 elif t <= -3.5e+33: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif t <= -1.26e-197: tmp = t_3 elif t <= 1.32e-294: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif t <= 3.8e-227: tmp = t_3 elif t <= 6.2e-179: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 1.25e-81: tmp = x * (y * ((a * b) - (c * i))) else: tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (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(z * Float64(Float64(a * y1) - Float64(c * y0))) t_2 = Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) t_3 = Float64(y3 * Float64(Float64(t_1 + Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + t_2)) tmp = 0.0 if (t <= -6.2e+107) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -3.9e+59) tmp = Float64(y3 * t_1); elseif (t <= -3.5e+33) 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 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= -1.26e-197) tmp = t_3; elseif (t <= 1.32e-294) 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 (t <= 3.8e-227) tmp = t_3; elseif (t <= 6.2e-179) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 1.25e-81) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(y3 * Float64(t_2 + Float64(Float64(a * Float64(z * y1)) - Float64(c * 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 = z * ((a * y1) - (c * y0)); t_2 = y * ((c * y4) - (a * y5)); t_3 = y3 * ((t_1 + (j * ((y0 * y5) - (y1 * y4)))) + t_2); tmp = 0.0; if (t <= -6.2e+107) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -3.9e+59) tmp = y3 * t_1; elseif (t <= -3.5e+33) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (t <= -1.26e-197) tmp = t_3; elseif (t <= 1.32e-294) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (t <= 3.8e-227) tmp = t_3; elseif (t <= 6.2e-179) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 1.25e-81) tmp = x * (y * ((a * b) - (c * i))); else tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (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[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y3 * N[(N[(t$95$1 + N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e+107], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.9e+59], N[(y3 * t$95$1), $MachinePrecision], If[LessEqual[t, -3.5e+33], 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 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.26e-197], t$95$3, If[LessEqual[t, 1.32e-294], 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[t, 3.8e-227], t$95$3, If[LessEqual[t, 6.2e-179], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-81], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(t$95$2 + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a \cdot y1 - c \cdot y0\right)\\
t_2 := y \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_3 := y3 \cdot \left(\left(t\_1 + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + t\_2\right)\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{+107}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{+59}:\\
\;\;\;\;y3 \cdot t\_1\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{+33}:\\
\;\;\;\;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 \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.26 \cdot 10^{-197}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-294}:\\
\;\;\;\;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}\;t \leq 3.8 \cdot 10^{-227}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-179}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(t\_2 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -6.20000000000000052e107Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -6.20000000000000052e107 < t < -3.90000000000000021e59Initial program 42.9%
Taylor expanded in y3 around -inf 43.1%
Taylor expanded in z around inf 86.0%
if -3.90000000000000021e59 < t < -3.5000000000000001e33Initial program 66.7%
Taylor expanded in y4 around inf 100.0%
if -3.5000000000000001e33 < t < -1.26000000000000003e-197 or 1.3199999999999999e-294 < t < 3.8000000000000001e-227Initial program 26.3%
Taylor expanded in y3 around -inf 54.9%
if -1.26000000000000003e-197 < t < 1.3199999999999999e-294Initial program 40.6%
Taylor expanded in y2 around inf 66.0%
if 3.8000000000000001e-227 < t < 6.2000000000000005e-179Initial program 9.6%
Taylor expanded in j around inf 73.7%
Taylor expanded in x around inf 73.8%
if 6.2000000000000005e-179 < t < 1.24999999999999995e-81Initial program 39.8%
Taylor expanded in y around inf 45.2%
Taylor expanded in x around inf 41.4%
if 1.24999999999999995e-81 < t Initial program 29.7%
Taylor expanded in y3 around -inf 51.2%
Taylor expanded in c around 0 55.5%
Taylor expanded in j around 0 52.3%
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 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -3.7e+46)
t_2
(if (<= y2 -1.75e-158)
t_1
(if (<= y2 -1.65e-239)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 -1.75e-285)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y2 4e-227)
(* y3 (* c (- (* y y4) (* z y0))))
(if (<= y2 1.3e-179)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 3.2e+31)
(* x (* y (- (* a b) (* c i))))
(if (<= y2 7.8e+79)
t_1
(if (or (<= y2 1.45e+135) (not (<= y2 2.8e+257)))
(* t (* y2 (- (* a y5) (* c y4))))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -3.7e+46) {
tmp = t_2;
} else if (y2 <= -1.75e-158) {
tmp = t_1;
} else if (y2 <= -1.65e-239) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= -1.75e-285) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 4e-227) {
tmp = y3 * (c * ((y * y4) - (z * y0)));
} else if (y2 <= 1.3e-179) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 3.2e+31) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y2 <= 7.8e+79) {
tmp = t_1;
} else if ((y2 <= 1.45e+135) || !(y2 <= 2.8e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-3.7d+46)) then
tmp = t_2
else if (y2 <= (-1.75d-158)) then
tmp = t_1
else if (y2 <= (-1.65d-239)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= (-1.75d-285)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y2 <= 4d-227) then
tmp = y3 * (c * ((y * y4) - (z * y0)))
else if (y2 <= 1.3d-179) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= 3.2d+31) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y2 <= 7.8d+79) then
tmp = t_1
else if ((y2 <= 1.45d+135) .or. (.not. (y2 <= 2.8d+257))) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -3.7e+46) {
tmp = t_2;
} else if (y2 <= -1.75e-158) {
tmp = t_1;
} else if (y2 <= -1.65e-239) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= -1.75e-285) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 4e-227) {
tmp = y3 * (c * ((y * y4) - (z * y0)));
} else if (y2 <= 1.3e-179) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 3.2e+31) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y2 <= 7.8e+79) {
tmp = t_1;
} else if ((y2 <= 1.45e+135) || !(y2 <= 2.8e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -3.7e+46: tmp = t_2 elif y2 <= -1.75e-158: tmp = t_1 elif y2 <= -1.65e-239: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= -1.75e-285: tmp = i * (j * ((x * y1) - (t * y5))) elif y2 <= 4e-227: tmp = y3 * (c * ((y * y4) - (z * y0))) elif y2 <= 1.3e-179: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= 3.2e+31: tmp = x * (y * ((a * b) - (c * i))) elif y2 <= 7.8e+79: tmp = t_1 elif (y2 <= 1.45e+135) or not (y2 <= 2.8e+257): tmp = t * (y2 * ((a * y5) - (c * y4))) 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -3.7e+46) tmp = t_2; elseif (y2 <= -1.75e-158) tmp = t_1; elseif (y2 <= -1.65e-239) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= -1.75e-285) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y2 <= 4e-227) tmp = Float64(y3 * Float64(c * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (y2 <= 1.3e-179) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= 3.2e+31) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y2 <= 7.8e+79) tmp = t_1; elseif ((y2 <= 1.45e+135) || !(y2 <= 2.8e+257)) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); 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 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -3.7e+46) tmp = t_2; elseif (y2 <= -1.75e-158) tmp = t_1; elseif (y2 <= -1.65e-239) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= -1.75e-285) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y2 <= 4e-227) tmp = y3 * (c * ((y * y4) - (z * y0))); elseif (y2 <= 1.3e-179) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= 3.2e+31) tmp = x * (y * ((a * b) - (c * i))); elseif (y2 <= 7.8e+79) tmp = t_1; elseif ((y2 <= 1.45e+135) || ~((y2 <= 2.8e+257))) tmp = t * (y2 * ((a * y5) - (c * y4))); 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.7e+46], t$95$2, If[LessEqual[y2, -1.75e-158], t$95$1, If[LessEqual[y2, -1.65e-239], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.75e-285], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4e-227], N[(y3 * N[(c * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.3e-179], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.2e+31], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.8e+79], t$95$1, If[Or[LessEqual[y2, 1.45e+135], N[Not[LessEqual[y2, 2.8e+257]], $MachinePrecision]], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -3.7 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -1.75 \cdot 10^{-158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1.65 \cdot 10^{-239}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq -1.75 \cdot 10^{-285}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 4 \cdot 10^{-227}:\\
\;\;\;\;y3 \cdot \left(c \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 1.3 \cdot 10^{-179}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 7.8 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.45 \cdot 10^{+135} \lor \neg \left(y2 \leq 2.8 \cdot 10^{+257}\right):\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -3.6999999999999999e46 or 1.4499999999999999e135 < y2 < 2.7999999999999998e257Initial program 28.1%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in k around inf 54.1%
if -3.6999999999999999e46 < y2 < -1.75000000000000006e-158 or 3.2000000000000001e31 < y2 < 7.7999999999999994e79Initial program 30.2%
Taylor expanded in j around inf 44.5%
Taylor expanded in x around inf 51.0%
if -1.75000000000000006e-158 < y2 < -1.64999999999999998e-239Initial program 42.1%
Taylor expanded in y3 around -inf 74.4%
Taylor expanded in c around 0 69.1%
Taylor expanded in z around inf 48.9%
associate-*r*48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
Simplified48.9%
if -1.64999999999999998e-239 < y2 < -1.7500000000000002e-285Initial program 27.7%
Taylor expanded in j around inf 61.7%
Taylor expanded in i around -inf 56.4%
mul-1-neg56.4%
Simplified56.4%
if -1.7500000000000002e-285 < y2 < 3.99999999999999978e-227Initial program 49.9%
Taylor expanded in y3 around -inf 59.9%
Taylor expanded in c around inf 50.9%
if 3.99999999999999978e-227 < y2 < 1.30000000000000003e-179Initial program 9.8%
Taylor expanded in k around inf 20.5%
Taylor expanded in i around inf 51.0%
if 1.30000000000000003e-179 < y2 < 3.2000000000000001e31Initial program 28.5%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 41.2%
if 7.7999999999999994e79 < y2 < 1.4499999999999999e135 or 2.7999999999999998e257 < y2 Initial program 21.7%
Taylor expanded in y2 around inf 60.9%
Taylor expanded in t around inf 70.2%
Final simplification52.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (- (* t y2) (* y y3)))))
(if (<= t -2.9e+107)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -3.5e+59)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -8.8e+16)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= t -1.2e-21)
(* y3 (* y0 (- (* j y5) (* z c))))
(if (<= t -6.4e-85)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))
(if (<= t 2.8e-246)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= t 4.7e-83)
(* a (* y3 (- (* z y1) (* y y5))))
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* 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 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -2.9e+107) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.5e+59) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -8.8e+16) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -1.2e-21) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (t <= -6.4e-85) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 2.8e-246) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 4.7e-83) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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 = a * ((t * y2) - (y * y3))
if (t <= (-2.9d+107)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-3.5d+59)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-8.8d+16)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (t <= (-1.2d-21)) then
tmp = y3 * (y0 * ((j * y5) - (z * c)))
else if (t <= (-6.4d-85)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
else if (t <= 2.8d-246) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (t <= 4.7d-83) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -2.9e+107) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.5e+59) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -8.8e+16) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -1.2e-21) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (t <= -6.4e-85) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 2.8e-246) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 4.7e-83) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((t * y2) - (y * y3)) tmp = 0 if t <= -2.9e+107: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -3.5e+59: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -8.8e+16: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif t <= -1.2e-21: tmp = y3 * (y0 * ((j * y5) - (z * c))) elif t <= -6.4e-85: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) elif t <= 2.8e-246: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif t <= 4.7e-83: tmp = a * (y3 * ((z * y1) - (y * y5))) else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (t <= -2.9e+107) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -3.5e+59) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -8.8e+16) 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 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= -1.2e-21) tmp = Float64(y3 * Float64(y0 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (t <= -6.4e-85) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)); elseif (t <= 2.8e-246) 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 (t <= 4.7e-83) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * 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 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (t <= -2.9e+107) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -3.5e+59) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -8.8e+16) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (t <= -1.2e-21) tmp = y3 * (y0 * ((j * y5) - (z * c))); elseif (t <= -6.4e-85) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); elseif (t <= 2.8e-246) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (t <= 4.7e-83) tmp = a * (y3 * ((z * y1) - (y * y5))); else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+107], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.5e+59], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.8e+16], 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 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.2e-21], N[(y3 * N[(y0 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.4e-85], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-246], 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[t, 4.7e-83], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+107}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{+59}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{+16}:\\
\;\;\;\;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 \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{-21}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-85}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-246}:\\
\;\;\;\;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}\;t \leq 4.7 \cdot 10^{-83}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -2.89999999999999988e107Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -2.89999999999999988e107 < t < -3.5e59Initial program 42.9%
Taylor expanded in y3 around -inf 43.1%
Taylor expanded in z around inf 86.0%
if -3.5e59 < t < -8.8e16Initial program 28.6%
Taylor expanded in y4 around inf 85.7%
if -8.8e16 < t < -1.2e-21Initial program 0.0%
Taylor expanded in y3 around -inf 50.0%
Taylor expanded in y0 around inf 75.0%
if -1.2e-21 < t < -6.40000000000000054e-85Initial program 50.0%
Taylor expanded in y5 around -inf 62.8%
Taylor expanded in k around 0 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
if -6.40000000000000054e-85 < t < 2.7999999999999999e-246Initial program 35.4%
Taylor expanded in y2 around inf 51.6%
if 2.7999999999999999e-246 < t < 4.7000000000000003e-83Initial program 31.5%
Taylor expanded in y3 around -inf 32.2%
Taylor expanded in a around -inf 46.4%
mul-1-neg46.4%
Simplified46.4%
if 4.7000000000000003e-83 < t Initial program 29.4%
Taylor expanded in y3 around -inf 50.7%
Taylor expanded in c around 0 55.0%
Taylor expanded in j around 0 51.8%
Final simplification56.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (- (* t y2) (* y y3)))))
(if (<= t -1.1e+105)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -1.3e+47)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -6.4e-85)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))
(if (<= t -3.6e-287)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= t 2.75e-227)
(* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))
(if (<= t 7e-199)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 5.4e-82)
(* x (* y (- (* a b) (* c i))))
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* 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 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -1.1e+105) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.3e+47) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -6.4e-85) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= -3.6e-287) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 2.75e-227) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else if (t <= 7e-199) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 5.4e-82) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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 = a * ((t * y2) - (y * y3))
if (t <= (-1.1d+105)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-1.3d+47)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-6.4d-85)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
else if (t <= (-3.6d-287)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (t <= 2.75d-227) then
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
else if (t <= 7d-199) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 5.4d-82) then
tmp = x * (y * ((a * b) - (c * i)))
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -1.1e+105) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.3e+47) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -6.4e-85) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= -3.6e-287) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 2.75e-227) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else if (t <= 7e-199) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 5.4e-82) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((t * y2) - (y * y3)) tmp = 0 if t <= -1.1e+105: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -1.3e+47: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -6.4e-85: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) elif t <= -3.6e-287: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif t <= 2.75e-227: tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) elif t <= 7e-199: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 5.4e-82: tmp = x * (y * ((a * b) - (c * i))) else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (t <= -1.1e+105) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -1.3e+47) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -6.4e-85) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)); elseif (t <= -3.6e-287) 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 (t <= 2.75e-227) tmp = Float64(b * Float64(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))); elseif (t <= 7e-199) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 5.4e-82) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * 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 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (t <= -1.1e+105) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -1.3e+47) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -6.4e-85) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); elseif (t <= -3.6e-287) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (t <= 2.75e-227) tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); elseif (t <= 7e-199) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 5.4e-82) tmp = x * (y * ((a * b) - (c * i))); else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e+105], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.3e+47], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.4e-85], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.6e-287], 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[t, 2.75e-227], N[(b * N[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-199], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e-82], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{+105}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{+47}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-85}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{elif}\;t \leq -3.6 \cdot 10^{-287}:\\
\;\;\;\;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}\;t \leq 2.75 \cdot 10^{-227}:\\
\;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-199}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{-82}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.10000000000000003e105Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -1.10000000000000003e105 < t < -1.30000000000000002e47Initial program 50.0%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in z around inf 75.4%
if -1.30000000000000002e47 < t < -6.40000000000000054e-85Initial program 22.7%
Taylor expanded in y5 around -inf 50.3%
Taylor expanded in k around 0 55.7%
+-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
if -6.40000000000000054e-85 < t < -3.6000000000000001e-287Initial program 29.1%
Taylor expanded in y2 around inf 58.4%
if -3.6000000000000001e-287 < t < 2.75e-227Initial program 53.4%
Taylor expanded in y around inf 31.1%
Taylor expanded in b around inf 43.8%
if 2.75e-227 < t < 6.9999999999999998e-199Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 6.9999999999999998e-199 < t < 5.4000000000000003e-82Initial program 40.8%
Taylor expanded in y around inf 45.7%
Taylor expanded in x around inf 42.3%
if 5.4000000000000003e-82 < t Initial program 29.7%
Taylor expanded in y3 around -inf 51.2%
Taylor expanded in c around 0 55.5%
Taylor expanded in j around 0 52.3%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (- (* t y2) (* y y3))))
(t_2 (* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))))
(if (<= t -7.5e+104)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -7.5e+48)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -9.5e-127)
t_2
(if (<= t -6.8e-164)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= t -1.8e-204)
t_2
(if (<= t 4.2e-251)
(* y2 (* x (- (* c y0) (* a y1))))
(if (<= t 9.6e-9)
(* a (* y3 (- (* z y1) (* y y5))))
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 = a * ((t * y2) - (y * y3));
double t_2 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
double tmp;
if (t <= -7.5e+104) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -7.5e+48) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -9.5e-127) {
tmp = t_2;
} else if (t <= -6.8e-164) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (t <= -1.8e-204) {
tmp = t_2;
} else if (t <= 4.2e-251) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (t <= 9.6e-9) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} 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) :: tmp
t_1 = a * ((t * y2) - (y * y3))
t_2 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
if (t <= (-7.5d+104)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-7.5d+48)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-9.5d-127)) then
tmp = t_2
else if (t <= (-6.8d-164)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (t <= (-1.8d-204)) then
tmp = t_2
else if (t <= 4.2d-251) then
tmp = y2 * (x * ((c * y0) - (a * y1)))
else if (t <= 9.6d-9) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
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 = a * ((t * y2) - (y * y3));
double t_2 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
double tmp;
if (t <= -7.5e+104) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -7.5e+48) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -9.5e-127) {
tmp = t_2;
} else if (t <= -6.8e-164) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (t <= -1.8e-204) {
tmp = t_2;
} else if (t <= 4.2e-251) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (t <= 9.6e-9) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} 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 = a * ((t * y2) - (y * y3)) t_2 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) tmp = 0 if t <= -7.5e+104: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -7.5e+48: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -9.5e-127: tmp = t_2 elif t <= -6.8e-164: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif t <= -1.8e-204: tmp = t_2 elif t <= 4.2e-251: tmp = y2 * (x * ((c * y0) - (a * y1))) elif t <= 9.6e-9: tmp = a * (y3 * ((z * y1) - (y * y5))) 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(a * Float64(Float64(t * y2) - Float64(y * y3))) t_2 = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)) tmp = 0.0 if (t <= -7.5e+104) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -7.5e+48) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -9.5e-127) tmp = t_2; elseif (t <= -6.8e-164) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (t <= -1.8e-204) tmp = t_2; elseif (t <= 4.2e-251) tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (t <= 9.6e-9) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); 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 = a * ((t * y2) - (y * y3)); t_2 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); tmp = 0.0; if (t <= -7.5e+104) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -7.5e+48) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -9.5e-127) tmp = t_2; elseif (t <= -6.8e-164) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (t <= -1.8e-204) tmp = t_2; elseif (t <= 4.2e-251) tmp = y2 * (x * ((c * y0) - (a * y1))); elseif (t <= 9.6e-9) tmp = a * (y3 * ((z * y1) - (y * y5))); 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[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e+104], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e+48], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e-127], t$95$2, If[LessEqual[t, -6.8e-164], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.8e-204], t$95$2, If[LessEqual[t, 4.2e-251], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e-9], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
t_2 := y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+104}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{+48}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-127}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-164}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-204}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-251}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -7.5000000000000002e104Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -7.5000000000000002e104 < t < -7.5000000000000006e48Initial program 50.0%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in z around inf 75.4%
if -7.5000000000000006e48 < t < -9.4999999999999997e-127 or -6.8e-164 < t < -1.79999999999999982e-204 or 9.5999999999999999e-9 < t Initial program 23.7%
Taylor expanded in y5 around -inf 45.1%
Taylor expanded in k around 0 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
*-commutative50.7%
Simplified50.7%
if -9.4999999999999997e-127 < t < -6.8e-164Initial program 17.9%
Taylor expanded in y around inf 51.2%
Taylor expanded in y1 around inf 68.0%
if -1.79999999999999982e-204 < t < 4.19999999999999964e-251Initial program 42.7%
Taylor expanded in y2 around inf 55.3%
Taylor expanded in x around inf 43.4%
if 4.19999999999999964e-251 < t < 9.5999999999999999e-9Initial program 39.6%
Taylor expanded in y3 around -inf 44.1%
Taylor expanded in a around -inf 44.2%
mul-1-neg44.2%
Simplified44.2%
Final simplification51.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -8.2e+50)
t_2
(if (<= y2 -3e-157)
t_1
(if (<= y2 -1.35e-237)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= y2 -8.6e-284)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y2 9e-304)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 3.4e+77)
t_1
(if (or (<= y2 2.7e+136) (not (<= y2 6.5e+257)))
(* t (* y2 (- (* a y5) (* c y4))))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -8.2e+50) {
tmp = t_2;
} else if (y2 <= -3e-157) {
tmp = t_1;
} else if (y2 <= -1.35e-237) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (y2 <= -8.6e-284) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 9e-304) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 3.4e+77) {
tmp = t_1;
} else if ((y2 <= 2.7e+136) || !(y2 <= 6.5e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-8.2d+50)) then
tmp = t_2
else if (y2 <= (-3d-157)) then
tmp = t_1
else if (y2 <= (-1.35d-237)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (y2 <= (-8.6d-284)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y2 <= 9d-304) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= 3.4d+77) then
tmp = t_1
else if ((y2 <= 2.7d+136) .or. (.not. (y2 <= 6.5d+257))) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -8.2e+50) {
tmp = t_2;
} else if (y2 <= -3e-157) {
tmp = t_1;
} else if (y2 <= -1.35e-237) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (y2 <= -8.6e-284) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 9e-304) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 3.4e+77) {
tmp = t_1;
} else if ((y2 <= 2.7e+136) || !(y2 <= 6.5e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -8.2e+50: tmp = t_2 elif y2 <= -3e-157: tmp = t_1 elif y2 <= -1.35e-237: tmp = y3 * (z * ((a * y1) - (c * y0))) elif y2 <= -8.6e-284: tmp = i * (j * ((x * y1) - (t * y5))) elif y2 <= 9e-304: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= 3.4e+77: tmp = t_1 elif (y2 <= 2.7e+136) or not (y2 <= 6.5e+257): tmp = t * (y2 * ((a * y5) - (c * y4))) 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -8.2e+50) tmp = t_2; elseif (y2 <= -3e-157) tmp = t_1; elseif (y2 <= -1.35e-237) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (y2 <= -8.6e-284) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y2 <= 9e-304) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= 3.4e+77) tmp = t_1; elseif ((y2 <= 2.7e+136) || !(y2 <= 6.5e+257)) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); 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 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -8.2e+50) tmp = t_2; elseif (y2 <= -3e-157) tmp = t_1; elseif (y2 <= -1.35e-237) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (y2 <= -8.6e-284) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y2 <= 9e-304) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= 3.4e+77) tmp = t_1; elseif ((y2 <= 2.7e+136) || ~((y2 <= 6.5e+257))) tmp = t * (y2 * ((a * y5) - (c * y4))); 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -8.2e+50], t$95$2, If[LessEqual[y2, -3e-157], t$95$1, If[LessEqual[y2, -1.35e-237], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.6e-284], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9e-304], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.4e+77], t$95$1, If[Or[LessEqual[y2, 2.7e+136], N[Not[LessEqual[y2, 6.5e+257]], $MachinePrecision]], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -8.2 \cdot 10^{+50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -3 \cdot 10^{-157}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1.35 \cdot 10^{-237}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq -8.6 \cdot 10^{-284}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 9 \cdot 10^{-304}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 3.4 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 2.7 \cdot 10^{+136} \lor \neg \left(y2 \leq 6.5 \cdot 10^{+257}\right):\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -8.2000000000000002e50 or 2.7000000000000002e136 < y2 < 6.50000000000000026e257Initial program 28.1%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in k around inf 54.1%
if -8.2000000000000002e50 < y2 < -3e-157 or 8.9999999999999995e-304 < y2 < 3.39999999999999997e77Initial program 29.7%
Taylor expanded in j around inf 38.9%
Taylor expanded in x around inf 42.8%
if -3e-157 < y2 < -1.34999999999999992e-237Initial program 42.1%
Taylor expanded in y3 around -inf 74.4%
Taylor expanded in z around inf 48.9%
if -1.34999999999999992e-237 < y2 < -8.6000000000000005e-284Initial program 23.4%
Taylor expanded in j around inf 65.1%
Taylor expanded in i around -inf 59.5%
mul-1-neg59.5%
Simplified59.5%
if -8.6000000000000005e-284 < y2 < 8.9999999999999995e-304Initial program 59.8%
Taylor expanded in k around inf 70.3%
Taylor expanded in i around inf 50.7%
if 3.39999999999999997e77 < y2 < 2.7000000000000002e136 or 6.50000000000000026e257 < y2 Initial program 21.7%
Taylor expanded in y2 around inf 60.9%
Taylor expanded in t around inf 70.2%
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 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -9e+48)
t_2
(if (<= y2 -1.95e-158)
t_1
(if (<= y2 -2.1e-260)
(* j (* y3 (- (* y0 y5) (* y1 y4))))
(if (<= y2 -2.6e-280)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y2 1e-299)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 4.2e+78)
t_1
(if (or (<= y2 6.6e+135) (not (<= y2 1e+258)))
(* t (* y2 (- (* a y5) (* c y4))))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -9e+48) {
tmp = t_2;
} else if (y2 <= -1.95e-158) {
tmp = t_1;
} else if (y2 <= -2.1e-260) {
tmp = j * (y3 * ((y0 * y5) - (y1 * y4)));
} else if (y2 <= -2.6e-280) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 1e-299) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 4.2e+78) {
tmp = t_1;
} else if ((y2 <= 6.6e+135) || !(y2 <= 1e+258)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-9d+48)) then
tmp = t_2
else if (y2 <= (-1.95d-158)) then
tmp = t_1
else if (y2 <= (-2.1d-260)) then
tmp = j * (y3 * ((y0 * y5) - (y1 * y4)))
else if (y2 <= (-2.6d-280)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y2 <= 1d-299) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= 4.2d+78) then
tmp = t_1
else if ((y2 <= 6.6d+135) .or. (.not. (y2 <= 1d+258))) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -9e+48) {
tmp = t_2;
} else if (y2 <= -1.95e-158) {
tmp = t_1;
} else if (y2 <= -2.1e-260) {
tmp = j * (y3 * ((y0 * y5) - (y1 * y4)));
} else if (y2 <= -2.6e-280) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 1e-299) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 4.2e+78) {
tmp = t_1;
} else if ((y2 <= 6.6e+135) || !(y2 <= 1e+258)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -9e+48: tmp = t_2 elif y2 <= -1.95e-158: tmp = t_1 elif y2 <= -2.1e-260: tmp = j * (y3 * ((y0 * y5) - (y1 * y4))) elif y2 <= -2.6e-280: tmp = i * (j * ((x * y1) - (t * y5))) elif y2 <= 1e-299: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= 4.2e+78: tmp = t_1 elif (y2 <= 6.6e+135) or not (y2 <= 1e+258): tmp = t * (y2 * ((a * y5) - (c * y4))) 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -9e+48) tmp = t_2; elseif (y2 <= -1.95e-158) tmp = t_1; elseif (y2 <= -2.1e-260) tmp = Float64(j * Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))); elseif (y2 <= -2.6e-280) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y2 <= 1e-299) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= 4.2e+78) tmp = t_1; elseif ((y2 <= 6.6e+135) || !(y2 <= 1e+258)) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); 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 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -9e+48) tmp = t_2; elseif (y2 <= -1.95e-158) tmp = t_1; elseif (y2 <= -2.1e-260) tmp = j * (y3 * ((y0 * y5) - (y1 * y4))); elseif (y2 <= -2.6e-280) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y2 <= 1e-299) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= 4.2e+78) tmp = t_1; elseif ((y2 <= 6.6e+135) || ~((y2 <= 1e+258))) tmp = t * (y2 * ((a * y5) - (c * y4))); 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -9e+48], t$95$2, If[LessEqual[y2, -1.95e-158], t$95$1, If[LessEqual[y2, -2.1e-260], N[(j * N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.6e-280], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1e-299], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.2e+78], t$95$1, If[Or[LessEqual[y2, 6.6e+135], N[Not[LessEqual[y2, 1e+258]], $MachinePrecision]], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -9 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -1.95 \cdot 10^{-158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-260}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -2.6 \cdot 10^{-280}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 10^{-299}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 4.2 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 6.6 \cdot 10^{+135} \lor \neg \left(y2 \leq 10^{+258}\right):\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -8.99999999999999991e48 or 6.5999999999999998e135 < y2 < 1.00000000000000006e258Initial program 28.1%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in k around inf 54.1%
if -8.99999999999999991e48 < y2 < -1.9499999999999998e-158 or 9.99999999999999992e-300 < y2 < 4.2000000000000002e78Initial program 29.7%
Taylor expanded in j around inf 38.9%
Taylor expanded in x around inf 42.8%
if -1.9499999999999998e-158 < y2 < -2.10000000000000005e-260Initial program 39.2%
Taylor expanded in j around inf 54.0%
Taylor expanded in y3 around inf 47.6%
neg-mul-147.6%
distribute-rgt-neg-in47.6%
Simplified47.6%
if -2.10000000000000005e-260 < y2 < -2.6e-280Initial program 12.5%
Taylor expanded in j around inf 50.7%
Taylor expanded in i around -inf 75.8%
mul-1-neg75.8%
Simplified75.8%
if -2.6e-280 < y2 < 9.99999999999999992e-300Initial program 59.8%
Taylor expanded in k around inf 70.3%
Taylor expanded in i around inf 50.7%
if 4.2000000000000002e78 < y2 < 6.5999999999999998e135 or 1.00000000000000006e258 < y2 Initial program 21.7%
Taylor expanded in y2 around inf 60.9%
Taylor expanded in t around inf 70.2%
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 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -9.2e+49)
t_2
(if (<= y2 -1.55e-97)
t_1
(if (<= y2 -5.2e-236)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= y2 -5.2e-284)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y2 1e-301)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 6.8e+77)
t_1
(if (or (<= y2 1.55e+139) (not (<= y2 4.6e+257)))
(* t (* y2 (- (* a y5) (* c y4))))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -9.2e+49) {
tmp = t_2;
} else if (y2 <= -1.55e-97) {
tmp = t_1;
} else if (y2 <= -5.2e-236) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y2 <= -5.2e-284) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 1e-301) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 6.8e+77) {
tmp = t_1;
} else if ((y2 <= 1.55e+139) || !(y2 <= 4.6e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-9.2d+49)) then
tmp = t_2
else if (y2 <= (-1.55d-97)) then
tmp = t_1
else if (y2 <= (-5.2d-236)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (y2 <= (-5.2d-284)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y2 <= 1d-301) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= 6.8d+77) then
tmp = t_1
else if ((y2 <= 1.55d+139) .or. (.not. (y2 <= 4.6d+257))) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -9.2e+49) {
tmp = t_2;
} else if (y2 <= -1.55e-97) {
tmp = t_1;
} else if (y2 <= -5.2e-236) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y2 <= -5.2e-284) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 1e-301) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 6.8e+77) {
tmp = t_1;
} else if ((y2 <= 1.55e+139) || !(y2 <= 4.6e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -9.2e+49: tmp = t_2 elif y2 <= -1.55e-97: tmp = t_1 elif y2 <= -5.2e-236: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif y2 <= -5.2e-284: tmp = i * (j * ((x * y1) - (t * y5))) elif y2 <= 1e-301: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= 6.8e+77: tmp = t_1 elif (y2 <= 1.55e+139) or not (y2 <= 4.6e+257): tmp = t * (y2 * ((a * y5) - (c * y4))) 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -9.2e+49) tmp = t_2; elseif (y2 <= -1.55e-97) tmp = t_1; elseif (y2 <= -5.2e-236) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (y2 <= -5.2e-284) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y2 <= 1e-301) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= 6.8e+77) tmp = t_1; elseif ((y2 <= 1.55e+139) || !(y2 <= 4.6e+257)) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); 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 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -9.2e+49) tmp = t_2; elseif (y2 <= -1.55e-97) tmp = t_1; elseif (y2 <= -5.2e-236) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (y2 <= -5.2e-284) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y2 <= 1e-301) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= 6.8e+77) tmp = t_1; elseif ((y2 <= 1.55e+139) || ~((y2 <= 4.6e+257))) tmp = t * (y2 * ((a * y5) - (c * y4))); 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -9.2e+49], t$95$2, If[LessEqual[y2, -1.55e-97], t$95$1, If[LessEqual[y2, -5.2e-236], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.2e-284], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1e-301], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.8e+77], t$95$1, If[Or[LessEqual[y2, 1.55e+139], N[Not[LessEqual[y2, 4.6e+257]], $MachinePrecision]], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -9.2 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -1.55 \cdot 10^{-97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -5.2 \cdot 10^{-236}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;y2 \leq -5.2 \cdot 10^{-284}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 10^{-301}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 6.8 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.55 \cdot 10^{+139} \lor \neg \left(y2 \leq 4.6 \cdot 10^{+257}\right):\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -9.20000000000000008e49 or 1.55e139 < y2 < 4.6e257Initial program 28.1%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in k around inf 54.1%
if -9.20000000000000008e49 < y2 < -1.55000000000000001e-97 or 1.00000000000000007e-301 < y2 < 6.79999999999999993e77Initial program 29.3%
Taylor expanded in j around inf 37.3%
Taylor expanded in x around inf 41.5%
if -1.55000000000000001e-97 < y2 < -5.2000000000000001e-236Initial program 37.4%
Taylor expanded in j around inf 48.8%
Taylor expanded in y0 around inf 52.8%
if -5.2000000000000001e-236 < y2 < -5.2e-284Initial program 27.7%
Taylor expanded in j around inf 61.6%
Taylor expanded in i around -inf 56.3%
mul-1-neg56.3%
Simplified56.3%
if -5.2e-284 < y2 < 1.00000000000000007e-301Initial program 59.8%
Taylor expanded in k around inf 70.3%
Taylor expanded in i around inf 50.7%
if 6.79999999999999993e77 < y2 < 1.55e139 or 4.6e257 < y2 Initial program 21.7%
Taylor expanded in y2 around inf 60.9%
Taylor expanded in t around inf 70.2%
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 (* a (- (* t y2) (* y y3)))))
(if (<= t -8.5e+104)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -9.5e+52)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -2.1e-202)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))
(if (<= t 6.2e-251)
(* y2 (* x (- (* c y0) (* a y1))))
(if (<= t 1.5e-82)
(* a (* y3 (- (* z y1) (* y y5))))
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* 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 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -8.5e+104) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -9.5e+52) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -2.1e-202) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 6.2e-251) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (t <= 1.5e-82) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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 = a * ((t * y2) - (y * y3))
if (t <= (-8.5d+104)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-9.5d+52)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-2.1d-202)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
else if (t <= 6.2d-251) then
tmp = y2 * (x * ((c * y0) - (a * y1)))
else if (t <= 1.5d-82) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -8.5e+104) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -9.5e+52) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -2.1e-202) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 6.2e-251) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (t <= 1.5e-82) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((t * y2) - (y * y3)) tmp = 0 if t <= -8.5e+104: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -9.5e+52: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -2.1e-202: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) elif t <= 6.2e-251: tmp = y2 * (x * ((c * y0) - (a * y1))) elif t <= 1.5e-82: tmp = a * (y3 * ((z * y1) - (y * y5))) else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (t <= -8.5e+104) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -9.5e+52) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -2.1e-202) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)); elseif (t <= 6.2e-251) tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (t <= 1.5e-82) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * 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 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (t <= -8.5e+104) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -9.5e+52) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -2.1e-202) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); elseif (t <= 6.2e-251) tmp = y2 * (x * ((c * y0) - (a * y1))); elseif (t <= 1.5e-82) tmp = a * (y3 * ((z * y1) - (y * y5))); else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (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[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.5e+104], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e+52], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.1e-202], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e-251], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-82], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+104}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{+52}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{-202}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-251}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-82}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -8.4999999999999999e104Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -8.4999999999999999e104 < t < -9.49999999999999994e52Initial program 50.0%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in z around inf 75.4%
if -9.49999999999999994e52 < t < -2.09999999999999985e-202Initial program 24.1%
Taylor expanded in y5 around -inf 42.2%
Taylor expanded in k around 0 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
if -2.09999999999999985e-202 < t < 6.20000000000000006e-251Initial program 42.7%
Taylor expanded in y2 around inf 55.3%
Taylor expanded in x around inf 43.4%
if 6.20000000000000006e-251 < t < 1.4999999999999999e-82Initial program 31.5%
Taylor expanded in y3 around -inf 32.2%
Taylor expanded in a around -inf 46.4%
mul-1-neg46.4%
Simplified46.4%
if 1.4999999999999999e-82 < t Initial program 29.4%
Taylor expanded in y3 around -inf 50.7%
Taylor expanded in c around 0 55.0%
Taylor expanded in j around 0 51.8%
Final simplification51.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))))
(if (<= y -6.5e+21)
t_1
(if (<= y -4.1e-155)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y -1.35e-305)
(* y5 (+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= y 4.2e-222)
(* y3 (* y0 (- (* j y5) (* z c))))
(if (<= y 3.5e-29)
(* (* y1 y3) (- (* z a) (* j y4)))
(if (<= y 1.45e+240) t_1 (* y (* y5 (- (* i k) (* a 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 * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
double tmp;
if (y <= -6.5e+21) {
tmp = t_1;
} else if (y <= -4.1e-155) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y <= -1.35e-305) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (y <= 4.2e-222) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y <= 3.5e-29) {
tmp = (y1 * y3) * ((z * a) - (j * y4));
} else if (y <= 1.45e+240) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * 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 = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
if (y <= (-6.5d+21)) then
tmp = t_1
else if (y <= (-4.1d-155)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y <= (-1.35d-305)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (y <= 4.2d-222) then
tmp = y3 * (y0 * ((j * y5) - (z * c)))
else if (y <= 3.5d-29) then
tmp = (y1 * y3) * ((z * a) - (j * y4))
else if (y <= 1.45d+240) then
tmp = t_1
else
tmp = y * (y5 * ((i * k) - (a * 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 * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
double tmp;
if (y <= -6.5e+21) {
tmp = t_1;
} else if (y <= -4.1e-155) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y <= -1.35e-305) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (y <= 4.2e-222) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y <= 3.5e-29) {
tmp = (y1 * y3) * ((z * a) - (j * y4));
} else if (y <= 1.45e+240) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) tmp = 0 if y <= -6.5e+21: tmp = t_1 elif y <= -4.1e-155: tmp = j * (x * ((i * y1) - (b * y0))) elif y <= -1.35e-305: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif y <= 4.2e-222: tmp = y3 * (y0 * ((j * y5) - (z * c))) elif y <= 3.5e-29: tmp = (y1 * y3) * ((z * a) - (j * y4)) elif y <= 1.45e+240: tmp = t_1 else: tmp = y * (y5 * ((i * k) - (a * 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(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))) tmp = 0.0 if (y <= -6.5e+21) tmp = t_1; elseif (y <= -4.1e-155) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y <= -1.35e-305) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (y <= 4.2e-222) tmp = Float64(y3 * Float64(y0 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (y <= 3.5e-29) tmp = Float64(Float64(y1 * y3) * Float64(Float64(z * a) - Float64(j * y4))); elseif (y <= 1.45e+240) tmp = t_1; else tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * 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 * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); tmp = 0.0; if (y <= -6.5e+21) tmp = t_1; elseif (y <= -4.1e-155) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y <= -1.35e-305) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (y <= 4.2e-222) tmp = y3 * (y0 * ((j * y5) - (z * c))); elseif (y <= 3.5e-29) tmp = (y1 * y3) * ((z * a) - (j * y4)); elseif (y <= 1.45e+240) tmp = t_1; else tmp = y * (y5 * ((i * k) - (a * 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[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+21], t$95$1, If[LessEqual[y, -4.1e-155], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.35e-305], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-222], N[(y3 * N[(y0 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e-29], N[(N[(y1 * y3), $MachinePrecision] * N[(N[(z * a), $MachinePrecision] - N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e+240], t$95$1, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-155}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-305}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-222}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-29}:\\
\;\;\;\;\left(y1 \cdot y3\right) \cdot \left(z \cdot a - j \cdot y4\right)\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+240}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\end{array}
\end{array}
if y < -6.5e21 or 3.4999999999999997e-29 < y < 1.44999999999999999e240Initial program 33.7%
Taylor expanded in y around inf 42.0%
Taylor expanded in b around inf 53.3%
if -6.5e21 < y < -4.0999999999999998e-155Initial program 29.6%
Taylor expanded in j around inf 43.8%
Taylor expanded in x around inf 49.6%
if -4.0999999999999998e-155 < y < -1.35e-305Initial program 38.7%
Taylor expanded in y5 around -inf 54.7%
Taylor expanded in i around 0 46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
if -1.35e-305 < y < 4.1999999999999998e-222Initial program 31.7%
Taylor expanded in y3 around -inf 50.4%
Taylor expanded in y0 around inf 50.8%
if 4.1999999999999998e-222 < y < 3.4999999999999997e-29Initial program 15.7%
Taylor expanded in y3 around -inf 27.1%
Taylor expanded in c around 0 29.8%
Taylor expanded in y1 around inf 40.4%
associate-*r*40.4%
*-commutative40.4%
+-commutative40.4%
mul-1-neg40.4%
unsub-neg40.4%
Simplified40.4%
if 1.44999999999999999e240 < y Initial program 18.8%
Taylor expanded in y5 around -inf 62.5%
Taylor expanded in y around -inf 69.4%
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 (* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))))
(if (<= y -1.15e-18)
t_1
(if (<= y 6.4e-221)
(* y3 (* y0 (- (* j y5) (* z c))))
(if (<= y 4.7e-158)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y 1.42e-80)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y 3.4e-34)
(* y2 (* y5 (- (* t a) (* k y0))))
(if (<= y 1.42e+240) t_1 (* y (* y5 (- (* i k) (* a 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 * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
double tmp;
if (y <= -1.15e-18) {
tmp = t_1;
} else if (y <= 6.4e-221) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y <= 4.7e-158) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 1.42e-80) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 3.4e-34) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (y <= 1.42e+240) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * 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 = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
if (y <= (-1.15d-18)) then
tmp = t_1
else if (y <= 6.4d-221) then
tmp = y3 * (y0 * ((j * y5) - (z * c)))
else if (y <= 4.7d-158) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y <= 1.42d-80) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y <= 3.4d-34) then
tmp = y2 * (y5 * ((t * a) - (k * y0)))
else if (y <= 1.42d+240) then
tmp = t_1
else
tmp = y * (y5 * ((i * k) - (a * 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 * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
double tmp;
if (y <= -1.15e-18) {
tmp = t_1;
} else if (y <= 6.4e-221) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y <= 4.7e-158) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 1.42e-80) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y <= 3.4e-34) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (y <= 1.42e+240) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) tmp = 0 if y <= -1.15e-18: tmp = t_1 elif y <= 6.4e-221: tmp = y3 * (y0 * ((j * y5) - (z * c))) elif y <= 4.7e-158: tmp = j * (t * ((b * y4) - (i * y5))) elif y <= 1.42e-80: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y <= 3.4e-34: tmp = y2 * (y5 * ((t * a) - (k * y0))) elif y <= 1.42e+240: tmp = t_1 else: tmp = y * (y5 * ((i * k) - (a * 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(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))) tmp = 0.0 if (y <= -1.15e-18) tmp = t_1; elseif (y <= 6.4e-221) tmp = Float64(y3 * Float64(y0 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (y <= 4.7e-158) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y <= 1.42e-80) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y <= 3.4e-34) tmp = Float64(y2 * Float64(y5 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (y <= 1.42e+240) tmp = t_1; else tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * 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 * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); tmp = 0.0; if (y <= -1.15e-18) tmp = t_1; elseif (y <= 6.4e-221) tmp = y3 * (y0 * ((j * y5) - (z * c))); elseif (y <= 4.7e-158) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y <= 1.42e-80) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y <= 3.4e-34) tmp = y2 * (y5 * ((t * a) - (k * y0))); elseif (y <= 1.42e+240) tmp = t_1; else tmp = y * (y5 * ((i * k) - (a * 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[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e-18], t$95$1, If[LessEqual[y, 6.4e-221], N[(y3 * N[(y0 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e-158], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.42e-80], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-34], N[(y2 * N[(y5 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.42e+240], t$95$1, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{-221}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{-158}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.42 \cdot 10^{-80}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-34}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq 1.42 \cdot 10^{+240}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\end{array}
\end{array}
if y < -1.15e-18 or 3.4000000000000001e-34 < y < 1.41999999999999999e240Initial program 32.9%
Taylor expanded in y around inf 41.2%
Taylor expanded in b around inf 49.9%
if -1.15e-18 < y < 6.40000000000000031e-221Initial program 35.5%
Taylor expanded in y3 around -inf 54.7%
Taylor expanded in y0 around inf 45.9%
if 6.40000000000000031e-221 < y < 4.70000000000000036e-158Initial program 9.1%
Taylor expanded in j around inf 55.3%
Taylor expanded in t around inf 65.5%
if 4.70000000000000036e-158 < y < 1.42000000000000004e-80Initial program 23.4%
Taylor expanded in y2 around inf 36.5%
Taylor expanded in x around inf 42.2%
if 1.42000000000000004e-80 < y < 3.4000000000000001e-34Initial program 0.0%
Taylor expanded in y2 around inf 12.6%
Taylor expanded in y5 around -inf 50.7%
associate-*r*50.7%
neg-mul-150.7%
Simplified50.7%
if 1.41999999999999999e240 < y Initial program 18.8%
Taylor expanded in y5 around -inf 62.5%
Taylor expanded in y around -inf 69.4%
Final simplification50.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y3 (- (* z y1) (* y y5))))))
(if (<= b -8.2e+247)
(* a (* (* x y) b))
(if (<= b -1.2e+36)
(* j (* x (- (* i y1) (* b y0))))
(if (<= b -7.5e-179)
t_1
(if (<= b -7e-283)
(* i (* k (- (* y y5) (* z y1))))
(if (<= b 2.3e-70)
t_1
(if (<= b 2.95e+47)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 7.5e+212)
t_1
(* j (* t (- (* b y4) (* i 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 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (b <= -8.2e+247) {
tmp = a * ((x * y) * b);
} else if (b <= -1.2e+36) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (b <= -7.5e-179) {
tmp = t_1;
} else if (b <= -7e-283) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (b <= 2.3e-70) {
tmp = t_1;
} else if (b <= 2.95e+47) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 7.5e+212) {
tmp = t_1;
} else {
tmp = j * (t * ((b * y4) - (i * 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 = a * (y3 * ((z * y1) - (y * y5)))
if (b <= (-8.2d+247)) then
tmp = a * ((x * y) * b)
else if (b <= (-1.2d+36)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (b <= (-7.5d-179)) then
tmp = t_1
else if (b <= (-7d-283)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (b <= 2.3d-70) then
tmp = t_1
else if (b <= 2.95d+47) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 7.5d+212) then
tmp = t_1
else
tmp = j * (t * ((b * y4) - (i * 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 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (b <= -8.2e+247) {
tmp = a * ((x * y) * b);
} else if (b <= -1.2e+36) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (b <= -7.5e-179) {
tmp = t_1;
} else if (b <= -7e-283) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (b <= 2.3e-70) {
tmp = t_1;
} else if (b <= 2.95e+47) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 7.5e+212) {
tmp = t_1;
} else {
tmp = j * (t * ((b * y4) - (i * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y3 * ((z * y1) - (y * y5))) tmp = 0 if b <= -8.2e+247: tmp = a * ((x * y) * b) elif b <= -1.2e+36: tmp = j * (x * ((i * y1) - (b * y0))) elif b <= -7.5e-179: tmp = t_1 elif b <= -7e-283: tmp = i * (k * ((y * y5) - (z * y1))) elif b <= 2.3e-70: tmp = t_1 elif b <= 2.95e+47: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 7.5e+212: tmp = t_1 else: tmp = j * (t * ((b * y4) - (i * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))) tmp = 0.0 if (b <= -8.2e+247) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (b <= -1.2e+36) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (b <= -7.5e-179) tmp = t_1; elseif (b <= -7e-283) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (b <= 2.3e-70) tmp = t_1; elseif (b <= 2.95e+47) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 7.5e+212) tmp = t_1; else tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * 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 = a * (y3 * ((z * y1) - (y * y5))); tmp = 0.0; if (b <= -8.2e+247) tmp = a * ((x * y) * b); elseif (b <= -1.2e+36) tmp = j * (x * ((i * y1) - (b * y0))); elseif (b <= -7.5e-179) tmp = t_1; elseif (b <= -7e-283) tmp = i * (k * ((y * y5) - (z * y1))); elseif (b <= 2.3e-70) tmp = t_1; elseif (b <= 2.95e+47) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 7.5e+212) tmp = t_1; else tmp = j * (t * ((b * y4) - (i * 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[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.2e+247], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.2e+36], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e-179], t$95$1, If[LessEqual[b, -7e-283], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-70], t$95$1, If[LessEqual[b, 2.95e+47], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e+212], t$95$1, N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{if}\;b \leq -8.2 \cdot 10^{+247}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{+36}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-179}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-283}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.95 \cdot 10^{+47}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+212}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\end{array}
\end{array}
if b < -8.2000000000000004e247Initial program 30.8%
Taylor expanded in y around inf 38.5%
Taylor expanded in x around inf 47.1%
Taylor expanded in a around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -8.2000000000000004e247 < b < -1.19999999999999996e36Initial program 19.8%
Taylor expanded in j around inf 40.0%
Taylor expanded in x around inf 50.7%
if -1.19999999999999996e36 < b < -7.4999999999999996e-179 or -6.9999999999999997e-283 < b < 2.30000000000000001e-70 or 2.95000000000000017e47 < b < 7.5000000000000003e212Initial program 35.3%
Taylor expanded in y3 around -inf 50.1%
Taylor expanded in a around -inf 46.6%
mul-1-neg46.6%
Simplified46.6%
if -7.4999999999999996e-179 < b < -6.9999999999999997e-283Initial program 26.3%
Taylor expanded in k around inf 36.5%
Taylor expanded in i around inf 40.1%
if 2.30000000000000001e-70 < b < 2.95000000000000017e47Initial program 25.0%
Taylor expanded in y around inf 26.1%
Taylor expanded in y1 around inf 60.8%
if 7.5000000000000003e212 < b Initial program 27.8%
Taylor expanded in j around inf 55.7%
Taylor expanded in t around inf 61.8%
Final simplification49.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (- (* t y4) (* x y0))))))
(if (<= y -1.02e+150)
(* x (* y (* a b)))
(if (<= y -3.1e-71)
t_1
(if (<= y -8.6e-169)
(* y3 (* y0 (* c (- z))))
(if (<= y 2.6e-269)
(* y3 (* y0 (* j y5)))
(if (<= y 114000.0)
t_1
(if (<= y 9.5e+68)
(* y3 (* y (* c y4)))
(if (<= y 1.9e+92)
(* x (* c (* y (- i))))
(* 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 t_1 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (y <= -1.02e+150) {
tmp = x * (y * (a * b));
} else if (y <= -3.1e-71) {
tmp = t_1;
} else if (y <= -8.6e-169) {
tmp = y3 * (y0 * (c * -z));
} else if (y <= 2.6e-269) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 114000.0) {
tmp = t_1;
} else if (y <= 9.5e+68) {
tmp = y3 * (y * (c * y4));
} else if (y <= 1.9e+92) {
tmp = x * (c * (y * -i));
} 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) :: t_1
real(8) :: tmp
t_1 = b * (j * ((t * y4) - (x * y0)))
if (y <= (-1.02d+150)) then
tmp = x * (y * (a * b))
else if (y <= (-3.1d-71)) then
tmp = t_1
else if (y <= (-8.6d-169)) then
tmp = y3 * (y0 * (c * -z))
else if (y <= 2.6d-269) then
tmp = y3 * (y0 * (j * y5))
else if (y <= 114000.0d0) then
tmp = t_1
else if (y <= 9.5d+68) then
tmp = y3 * (y * (c * y4))
else if (y <= 1.9d+92) then
tmp = x * (c * (y * -i))
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 t_1 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (y <= -1.02e+150) {
tmp = x * (y * (a * b));
} else if (y <= -3.1e-71) {
tmp = t_1;
} else if (y <= -8.6e-169) {
tmp = y3 * (y0 * (c * -z));
} else if (y <= 2.6e-269) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 114000.0) {
tmp = t_1;
} else if (y <= 9.5e+68) {
tmp = y3 * (y * (c * y4));
} else if (y <= 1.9e+92) {
tmp = x * (c * (y * -i));
} 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): t_1 = b * (j * ((t * y4) - (x * y0))) tmp = 0 if y <= -1.02e+150: tmp = x * (y * (a * b)) elif y <= -3.1e-71: tmp = t_1 elif y <= -8.6e-169: tmp = y3 * (y0 * (c * -z)) elif y <= 2.6e-269: tmp = y3 * (y0 * (j * y5)) elif y <= 114000.0: tmp = t_1 elif y <= 9.5e+68: tmp = y3 * (y * (c * y4)) elif y <= 1.9e+92: tmp = x * (c * (y * -i)) 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) t_1 = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))) tmp = 0.0 if (y <= -1.02e+150) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -3.1e-71) tmp = t_1; elseif (y <= -8.6e-169) tmp = Float64(y3 * Float64(y0 * Float64(c * Float64(-z)))); elseif (y <= 2.6e-269) tmp = Float64(y3 * Float64(y0 * Float64(j * y5))); elseif (y <= 114000.0) tmp = t_1; elseif (y <= 9.5e+68) tmp = Float64(y3 * Float64(y * Float64(c * y4))); elseif (y <= 1.9e+92) tmp = Float64(x * Float64(c * Float64(y * Float64(-i)))); 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) t_1 = b * (j * ((t * y4) - (x * y0))); tmp = 0.0; if (y <= -1.02e+150) tmp = x * (y * (a * b)); elseif (y <= -3.1e-71) tmp = t_1; elseif (y <= -8.6e-169) tmp = y3 * (y0 * (c * -z)); elseif (y <= 2.6e-269) tmp = y3 * (y0 * (j * y5)); elseif (y <= 114000.0) tmp = t_1; elseif (y <= 9.5e+68) tmp = y3 * (y * (c * y4)); elseif (y <= 1.9e+92) tmp = x * (c * (y * -i)); 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_] := Block[{t$95$1 = N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.02e+150], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.1e-71], t$95$1, If[LessEqual[y, -8.6e-169], N[(y3 * N[(y0 * N[(c * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-269], N[(y3 * N[(y0 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 114000.0], t$95$1, If[LessEqual[y, 9.5e+68], N[(y3 * N[(y * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+92], N[(x * N[(c * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{if}\;y \leq -1.02 \cdot 10^{+150}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.6 \cdot 10^{-169}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(c \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-269}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 114000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{+68}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+92}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y \cdot \left(-i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.0199999999999999e150Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -1.0199999999999999e150 < y < -3.10000000000000002e-71 or 2.6e-269 < y < 114000Initial program 20.9%
Taylor expanded in j around inf 47.8%
Taylor expanded in b around inf 36.9%
if -3.10000000000000002e-71 < y < -8.59999999999999967e-169Initial program 40.7%
Taylor expanded in y3 around -inf 60.1%
Taylor expanded in y0 around inf 50.5%
Taylor expanded in j around 0 37.2%
*-commutative37.2%
Simplified37.2%
if -8.59999999999999967e-169 < y < 2.6e-269Initial program 37.0%
Taylor expanded in y3 around -inf 54.2%
Taylor expanded in y0 around inf 40.6%
Taylor expanded in j around inf 30.8%
neg-mul-130.8%
distribute-rgt-neg-in30.8%
Simplified30.8%
if 114000 < y < 9.50000000000000069e68Initial program 45.5%
Taylor expanded in y3 around -inf 63.7%
Taylor expanded in y around inf 46.5%
Taylor expanded in a around 0 45.9%
neg-mul-145.9%
distribute-rgt-neg-in45.9%
Simplified45.9%
if 9.50000000000000069e68 < y < 1.9e92Initial program 25.0%
Taylor expanded in y around inf 75.0%
Taylor expanded in x around inf 75.2%
Taylor expanded in a around 0 75.4%
mul-1-neg75.4%
Simplified75.4%
if 1.9e92 < y Initial program 30.7%
Taylor expanded in y around inf 36.9%
Taylor expanded in x around inf 47.4%
Taylor expanded in a around inf 47.3%
Final simplification40.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -9.5e+45)
t_2
(if (<= y2 -5.2e-159)
t_1
(if (<= y2 6.5e-301)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 2.7e+79)
t_1
(if (or (<= y2 2.6e+135) (not (<= y2 8e+257)))
(* t (* y2 (- (* a y5) (* c y4))))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -9.5e+45) {
tmp = t_2;
} else if (y2 <= -5.2e-159) {
tmp = t_1;
} else if (y2 <= 6.5e-301) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 2.7e+79) {
tmp = t_1;
} else if ((y2 <= 2.6e+135) || !(y2 <= 8e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-9.5d+45)) then
tmp = t_2
else if (y2 <= (-5.2d-159)) then
tmp = t_1
else if (y2 <= 6.5d-301) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= 2.7d+79) then
tmp = t_1
else if ((y2 <= 2.6d+135) .or. (.not. (y2 <= 8d+257))) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -9.5e+45) {
tmp = t_2;
} else if (y2 <= -5.2e-159) {
tmp = t_1;
} else if (y2 <= 6.5e-301) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 2.7e+79) {
tmp = t_1;
} else if ((y2 <= 2.6e+135) || !(y2 <= 8e+257)) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -9.5e+45: tmp = t_2 elif y2 <= -5.2e-159: tmp = t_1 elif y2 <= 6.5e-301: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= 2.7e+79: tmp = t_1 elif (y2 <= 2.6e+135) or not (y2 <= 8e+257): tmp = t * (y2 * ((a * y5) - (c * y4))) 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -9.5e+45) tmp = t_2; elseif (y2 <= -5.2e-159) tmp = t_1; elseif (y2 <= 6.5e-301) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= 2.7e+79) tmp = t_1; elseif ((y2 <= 2.6e+135) || !(y2 <= 8e+257)) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); 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 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -9.5e+45) tmp = t_2; elseif (y2 <= -5.2e-159) tmp = t_1; elseif (y2 <= 6.5e-301) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= 2.7e+79) tmp = t_1; elseif ((y2 <= 2.6e+135) || ~((y2 <= 8e+257))) tmp = t * (y2 * ((a * y5) - (c * y4))); 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -9.5e+45], t$95$2, If[LessEqual[y2, -5.2e-159], t$95$1, If[LessEqual[y2, 6.5e-301], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.7e+79], t$95$1, If[Or[LessEqual[y2, 2.6e+135], N[Not[LessEqual[y2, 8e+257]], $MachinePrecision]], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -9.5 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -5.2 \cdot 10^{-159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-301}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 2.7 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 2.6 \cdot 10^{+135} \lor \neg \left(y2 \leq 8 \cdot 10^{+257}\right):\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -9.4999999999999998e45 or 2.6e135 < y2 < 8.00000000000000024e257Initial program 28.1%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in k around inf 54.1%
if -9.4999999999999998e45 < y2 < -5.1999999999999997e-159 or 6.49999999999999991e-301 < y2 < 2.7e79Initial program 30.1%
Taylor expanded in j around inf 40.0%
Taylor expanded in x around inf 42.9%
if -5.1999999999999997e-159 < y2 < 6.49999999999999991e-301Initial program 38.6%
Taylor expanded in k around inf 46.1%
Taylor expanded in i around inf 40.0%
if 2.7e79 < y2 < 2.6e135 or 8.00000000000000024e257 < y2 Initial program 21.7%
Taylor expanded in y2 around inf 60.9%
Taylor expanded in t around inf 70.2%
Final simplification48.3%
(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) (* z y1))))))
(if (<= k -4e+29)
t_1
(if (<= k -6e-52)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= k -6.2e-118)
(* j (* t (- (* b y4) (* i y5))))
(if (<= k -2.15e-201)
(* c (* y (* y3 y4)))
(if (<= k -1.3e-298)
(* b (* j (- (* t y4) (* x y0))))
(if (<= k 1.6e+73) (* j (* x (- (* i y1) (* b y0)))) 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 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -4e+29) {
tmp = t_1;
} else if (k <= -6e-52) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (k <= -6.2e-118) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= -2.15e-201) {
tmp = c * (y * (y3 * y4));
} else if (k <= -1.3e-298) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (k <= 1.6e+73) {
tmp = j * (x * ((i * y1) - (b * y0)));
} 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) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
if (k <= (-4d+29)) then
tmp = t_1
else if (k <= (-6d-52)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (k <= (-6.2d-118)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (k <= (-2.15d-201)) then
tmp = c * (y * (y3 * y4))
else if (k <= (-1.3d-298)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (k <= 1.6d+73) then
tmp = j * (x * ((i * y1) - (b * y0)))
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 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -4e+29) {
tmp = t_1;
} else if (k <= -6e-52) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (k <= -6.2e-118) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= -2.15e-201) {
tmp = c * (y * (y3 * y4));
} else if (k <= -1.3e-298) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (k <= 1.6e+73) {
tmp = j * (x * ((i * y1) - (b * y0)));
} 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 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if k <= -4e+29: tmp = t_1 elif k <= -6e-52: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif k <= -6.2e-118: tmp = j * (t * ((b * y4) - (i * y5))) elif k <= -2.15e-201: tmp = c * (y * (y3 * y4)) elif k <= -1.3e-298: tmp = b * (j * ((t * y4) - (x * y0))) elif k <= 1.6e+73: tmp = j * (x * ((i * y1) - (b * y0))) 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(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (k <= -4e+29) tmp = t_1; elseif (k <= -6e-52) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (k <= -6.2e-118) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (k <= -2.15e-201) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (k <= -1.3e-298) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (k <= 1.6e+73) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); 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 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (k <= -4e+29) tmp = t_1; elseif (k <= -6e-52) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (k <= -6.2e-118) tmp = j * (t * ((b * y4) - (i * y5))); elseif (k <= -2.15e-201) tmp = c * (y * (y3 * y4)); elseif (k <= -1.3e-298) tmp = b * (j * ((t * y4) - (x * y0))); elseif (k <= 1.6e+73) tmp = j * (x * ((i * y1) - (b * y0))); 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[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4e+29], t$95$1, If[LessEqual[k, -6e-52], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -6.2e-118], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.15e-201], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.3e-298], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.6e+73], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -4 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -6 \cdot 10^{-52}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;k \leq -6.2 \cdot 10^{-118}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq -2.15 \cdot 10^{-201}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq -1.3 \cdot 10^{-298}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 1.6 \cdot 10^{+73}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -3.99999999999999966e29 or 1.59999999999999991e73 < k Initial program 22.7%
Taylor expanded in k around inf 47.8%
Taylor expanded in i around inf 46.5%
if -3.99999999999999966e29 < k < -6e-52Initial program 50.0%
Taylor expanded in j around inf 57.7%
Taylor expanded in y0 around inf 58.1%
if -6e-52 < k < -6.2000000000000002e-118Initial program 44.9%
Taylor expanded in j around inf 55.2%
Taylor expanded in t around inf 46.2%
if -6.2000000000000002e-118 < k < -2.1499999999999999e-201Initial program 41.7%
Taylor expanded in y3 around -inf 58.4%
Taylor expanded in y around inf 34.3%
Taylor expanded in a around 0 42.3%
mul-1-neg42.3%
*-commutative42.3%
distribute-rgt-neg-in42.3%
Simplified42.3%
if -2.1499999999999999e-201 < k < -1.2999999999999999e-298Initial program 40.5%
Taylor expanded in j around inf 50.9%
Taylor expanded in b around inf 41.0%
if -1.2999999999999999e-298 < k < 1.59999999999999991e73Initial program 28.6%
Taylor expanded in j around inf 40.3%
Taylor expanded in x around inf 37.9%
Final simplification43.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.7e+150)
(* x (* y (* a b)))
(if (<= y -3.1e+37)
(* b (* j (* t y4)))
(if (<= y -7.2e-46)
(* j (* y0 (* y3 y5)))
(if (<= y -1.1e-169)
(* y3 (* y0 (* c (- z))))
(if (<= y 8.5e-218)
(* y3 (* y0 (* j y5)))
(if (<= y 2.9e-25)
(* j (* (* y1 y4) (- y3)))
(* 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 (y <= -2.7e+150) {
tmp = x * (y * (a * b));
} else if (y <= -3.1e+37) {
tmp = b * (j * (t * y4));
} else if (y <= -7.2e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= -1.1e-169) {
tmp = y3 * (y0 * (c * -z));
} else if (y <= 8.5e-218) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 2.9e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 (y <= (-2.7d+150)) then
tmp = x * (y * (a * b))
else if (y <= (-3.1d+37)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.2d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= (-1.1d-169)) then
tmp = y3 * (y0 * (c * -z))
else if (y <= 8.5d-218) then
tmp = y3 * (y0 * (j * y5))
else if (y <= 2.9d-25) then
tmp = j * ((y1 * y4) * -y3)
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 (y <= -2.7e+150) {
tmp = x * (y * (a * b));
} else if (y <= -3.1e+37) {
tmp = b * (j * (t * y4));
} else if (y <= -7.2e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= -1.1e-169) {
tmp = y3 * (y0 * (c * -z));
} else if (y <= 8.5e-218) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 2.9e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 y <= -2.7e+150: tmp = x * (y * (a * b)) elif y <= -3.1e+37: tmp = b * (j * (t * y4)) elif y <= -7.2e-46: tmp = j * (y0 * (y3 * y5)) elif y <= -1.1e-169: tmp = y3 * (y0 * (c * -z)) elif y <= 8.5e-218: tmp = y3 * (y0 * (j * y5)) elif y <= 2.9e-25: tmp = j * ((y1 * y4) * -y3) 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 (y <= -2.7e+150) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -3.1e+37) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.2e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= -1.1e-169) tmp = Float64(y3 * Float64(y0 * Float64(c * Float64(-z)))); elseif (y <= 8.5e-218) tmp = Float64(y3 * Float64(y0 * Float64(j * y5))); elseif (y <= 2.9e-25) tmp = Float64(j * Float64(Float64(y1 * y4) * Float64(-y3))); 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 (y <= -2.7e+150) tmp = x * (y * (a * b)); elseif (y <= -3.1e+37) tmp = b * (j * (t * y4)); elseif (y <= -7.2e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= -1.1e-169) tmp = y3 * (y0 * (c * -z)); elseif (y <= 8.5e-218) tmp = y3 * (y0 * (j * y5)); elseif (y <= 2.9e-25) tmp = j * ((y1 * y4) * -y3); 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[y, -2.7e+150], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.1e+37], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.1e-169], N[(y3 * N[(y0 * N[(c * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e-218], N[(y3 * N[(y0 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e-25], N[(j * N[(N[(y1 * y4), $MachinePrecision] * (-y3)), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+150}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{+37}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-169}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(c \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-218}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(\left(y1 \cdot y4\right) \cdot \left(-y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -2.70000000000000008e150Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -2.70000000000000008e150 < y < -3.1000000000000002e37Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -3.1000000000000002e37 < y < -7.2e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.2e-46 < y < -1.10000000000000004e-169Initial program 38.3%
Taylor expanded in y3 around -inf 58.5%
Taylor expanded in y0 around inf 46.7%
Taylor expanded in j around 0 35.4%
*-commutative35.4%
Simplified35.4%
if -1.10000000000000004e-169 < y < 8.5000000000000004e-218Initial program 36.3%
Taylor expanded in y3 around -inf 51.3%
Taylor expanded in y0 around inf 41.1%
Taylor expanded in j around inf 29.6%
neg-mul-129.6%
distribute-rgt-neg-in29.6%
Simplified29.6%
if 8.5000000000000004e-218 < y < 2.9000000000000001e-25Initial program 18.4%
Taylor expanded in j around inf 40.4%
Taylor expanded in y3 around inf 27.4%
neg-mul-127.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
Taylor expanded in y1 around inf 27.3%
if 2.9000000000000001e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification36.2%
(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) (* z y1))))))
(if (<= k -7.4e-28)
t_1
(if (<= k -4.3e-268)
(* j (* t (- (* b y4) (* i y5))))
(if (<= k 1.25e-257)
(* c (* y0 (* z (- y3))))
(if (<= k 4.7e-111)
(* j (* (* y1 y4) (- y3)))
(if (<= k 1.25e+79) (* x (* a (* y b))) 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 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -7.4e-28) {
tmp = t_1;
} else if (k <= -4.3e-268) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= 1.25e-257) {
tmp = c * (y0 * (z * -y3));
} else if (k <= 4.7e-111) {
tmp = j * ((y1 * y4) * -y3);
} else if (k <= 1.25e+79) {
tmp = x * (a * (y * b));
} 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) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
if (k <= (-7.4d-28)) then
tmp = t_1
else if (k <= (-4.3d-268)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (k <= 1.25d-257) then
tmp = c * (y0 * (z * -y3))
else if (k <= 4.7d-111) then
tmp = j * ((y1 * y4) * -y3)
else if (k <= 1.25d+79) then
tmp = x * (a * (y * b))
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 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -7.4e-28) {
tmp = t_1;
} else if (k <= -4.3e-268) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= 1.25e-257) {
tmp = c * (y0 * (z * -y3));
} else if (k <= 4.7e-111) {
tmp = j * ((y1 * y4) * -y3);
} else if (k <= 1.25e+79) {
tmp = x * (a * (y * b));
} 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 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if k <= -7.4e-28: tmp = t_1 elif k <= -4.3e-268: tmp = j * (t * ((b * y4) - (i * y5))) elif k <= 1.25e-257: tmp = c * (y0 * (z * -y3)) elif k <= 4.7e-111: tmp = j * ((y1 * y4) * -y3) elif k <= 1.25e+79: tmp = x * (a * (y * b)) 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(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (k <= -7.4e-28) tmp = t_1; elseif (k <= -4.3e-268) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (k <= 1.25e-257) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))); elseif (k <= 4.7e-111) tmp = Float64(j * Float64(Float64(y1 * y4) * Float64(-y3))); elseif (k <= 1.25e+79) tmp = Float64(x * Float64(a * Float64(y * b))); 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 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (k <= -7.4e-28) tmp = t_1; elseif (k <= -4.3e-268) tmp = j * (t * ((b * y4) - (i * y5))); elseif (k <= 1.25e-257) tmp = c * (y0 * (z * -y3)); elseif (k <= 4.7e-111) tmp = j * ((y1 * y4) * -y3); elseif (k <= 1.25e+79) tmp = x * (a * (y * b)); 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[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -7.4e-28], t$95$1, If[LessEqual[k, -4.3e-268], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.25e-257], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.7e-111], N[(j * N[(N[(y1 * y4), $MachinePrecision] * (-y3)), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.25e+79], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -7.4 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -4.3 \cdot 10^{-268}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{-257}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;k \leq 4.7 \cdot 10^{-111}:\\
\;\;\;\;j \cdot \left(\left(y1 \cdot y4\right) \cdot \left(-y3\right)\right)\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{+79}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -7.40000000000000039e-28 or 1.25e79 < k Initial program 23.8%
Taylor expanded in k around inf 47.2%
Taylor expanded in i around inf 45.0%
if -7.40000000000000039e-28 < k < -4.3e-268Initial program 45.4%
Taylor expanded in j around inf 57.3%
Taylor expanded in t around inf 33.6%
if -4.3e-268 < k < 1.24999999999999997e-257Initial program 42.9%
Taylor expanded in y3 around -inf 43.3%
Taylor expanded in y0 around inf 37.7%
Taylor expanded in j around 0 43.7%
if 1.24999999999999997e-257 < k < 4.70000000000000006e-111Initial program 29.7%
Taylor expanded in j around inf 44.9%
Taylor expanded in y3 around inf 34.4%
neg-mul-134.4%
distribute-rgt-neg-in34.4%
Simplified34.4%
Taylor expanded in y1 around inf 39.1%
if 4.70000000000000006e-111 < k < 1.25e79Initial program 23.8%
Taylor expanded in y around inf 37.5%
Taylor expanded in x around inf 43.1%
Taylor expanded in a around inf 37.9%
Final simplification40.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (- (* t y4) (* x y0)))))
(t_2 (* i (* k (- (* y y5) (* z y1))))))
(if (<= k -3.3e-17)
t_2
(if (<= k 1.9e-300)
t_1
(if (<= k 1.15e-126)
(* j (* (* y1 y4) (- y3)))
(if (<= k 2.1e-53)
t_1
(if (<= k 1.3e+74) (* x (* y (* a b))) 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 = b * (j * ((t * y4) - (x * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -3.3e-17) {
tmp = t_2;
} else if (k <= 1.9e-300) {
tmp = t_1;
} else if (k <= 1.15e-126) {
tmp = j * ((y1 * y4) * -y3);
} else if (k <= 2.1e-53) {
tmp = t_1;
} else if (k <= 1.3e+74) {
tmp = x * (y * (a * b));
} 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) :: tmp
t_1 = b * (j * ((t * y4) - (x * y0)))
t_2 = i * (k * ((y * y5) - (z * y1)))
if (k <= (-3.3d-17)) then
tmp = t_2
else if (k <= 1.9d-300) then
tmp = t_1
else if (k <= 1.15d-126) then
tmp = j * ((y1 * y4) * -y3)
else if (k <= 2.1d-53) then
tmp = t_1
else if (k <= 1.3d+74) then
tmp = x * (y * (a * b))
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 = b * (j * ((t * y4) - (x * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -3.3e-17) {
tmp = t_2;
} else if (k <= 1.9e-300) {
tmp = t_1;
} else if (k <= 1.15e-126) {
tmp = j * ((y1 * y4) * -y3);
} else if (k <= 2.1e-53) {
tmp = t_1;
} else if (k <= 1.3e+74) {
tmp = x * (y * (a * b));
} 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 = b * (j * ((t * y4) - (x * y0))) t_2 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if k <= -3.3e-17: tmp = t_2 elif k <= 1.9e-300: tmp = t_1 elif k <= 1.15e-126: tmp = j * ((y1 * y4) * -y3) elif k <= 2.1e-53: tmp = t_1 elif k <= 1.3e+74: tmp = x * (y * (a * b)) 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(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))) t_2 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (k <= -3.3e-17) tmp = t_2; elseif (k <= 1.9e-300) tmp = t_1; elseif (k <= 1.15e-126) tmp = Float64(j * Float64(Float64(y1 * y4) * Float64(-y3))); elseif (k <= 2.1e-53) tmp = t_1; elseif (k <= 1.3e+74) tmp = Float64(x * Float64(y * Float64(a * b))); 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 = b * (j * ((t * y4) - (x * y0))); t_2 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (k <= -3.3e-17) tmp = t_2; elseif (k <= 1.9e-300) tmp = t_1; elseif (k <= 1.15e-126) tmp = j * ((y1 * y4) * -y3); elseif (k <= 2.1e-53) tmp = t_1; elseif (k <= 1.3e+74) tmp = x * (y * (a * b)); 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[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -3.3e-17], t$95$2, If[LessEqual[k, 1.9e-300], t$95$1, If[LessEqual[k, 1.15e-126], N[(j * N[(N[(y1 * y4), $MachinePrecision] * (-y3)), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.1e-53], t$95$1, If[LessEqual[k, 1.3e+74], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
t_2 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -3.3 \cdot 10^{-17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;k \leq 1.9 \cdot 10^{-300}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{-126}:\\
\;\;\;\;j \cdot \left(\left(y1 \cdot y4\right) \cdot \left(-y3\right)\right)\\
\mathbf{elif}\;k \leq 2.1 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 1.3 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if k < -3.3e-17 or 1.3e74 < k Initial program 24.0%
Taylor expanded in k around inf 47.6%
Taylor expanded in i around inf 45.4%
if -3.3e-17 < k < 1.90000000000000006e-300 or 1.15000000000000005e-126 < k < 2.09999999999999977e-53Initial program 46.7%
Taylor expanded in j around inf 52.7%
Taylor expanded in b around inf 34.3%
if 1.90000000000000006e-300 < k < 1.15000000000000005e-126Initial program 25.0%
Taylor expanded in j around inf 39.0%
Taylor expanded in y3 around inf 29.5%
neg-mul-129.5%
distribute-rgt-neg-in29.5%
Simplified29.5%
Taylor expanded in y1 around inf 33.8%
if 2.09999999999999977e-53 < k < 1.3e74Initial program 18.1%
Taylor expanded in y around inf 36.1%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 40.3%
associate-*r*43.8%
Simplified43.8%
Final simplification40.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -5.5e+149)
(* x (* y (* a b)))
(if (<= y -1.02e+40)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 8.8e-240)
(* y3 (* y0 (* c (- z))))
(if (<= y 5e-25) (* j (* (* y1 y4) (- y3))) (* 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 (y <= -5.5e+149) {
tmp = x * (y * (a * b));
} else if (y <= -1.02e+40) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 8.8e-240) {
tmp = y3 * (y0 * (c * -z));
} else if (y <= 5e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 (y <= (-5.5d+149)) then
tmp = x * (y * (a * b))
else if (y <= (-1.02d+40)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 8.8d-240) then
tmp = y3 * (y0 * (c * -z))
else if (y <= 5d-25) then
tmp = j * ((y1 * y4) * -y3)
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 (y <= -5.5e+149) {
tmp = x * (y * (a * b));
} else if (y <= -1.02e+40) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 8.8e-240) {
tmp = y3 * (y0 * (c * -z));
} else if (y <= 5e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 y <= -5.5e+149: tmp = x * (y * (a * b)) elif y <= -1.02e+40: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 8.8e-240: tmp = y3 * (y0 * (c * -z)) elif y <= 5e-25: tmp = j * ((y1 * y4) * -y3) 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 (y <= -5.5e+149) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -1.02e+40) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 8.8e-240) tmp = Float64(y3 * Float64(y0 * Float64(c * Float64(-z)))); elseif (y <= 5e-25) tmp = Float64(j * Float64(Float64(y1 * y4) * Float64(-y3))); 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 (y <= -5.5e+149) tmp = x * (y * (a * b)); elseif (y <= -1.02e+40) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 8.8e-240) tmp = y3 * (y0 * (c * -z)); elseif (y <= 5e-25) tmp = j * ((y1 * y4) * -y3); 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[y, -5.5e+149], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.02e+40], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.8e-240], N[(y3 * N[(y0 * N[(c * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e-25], N[(j * N[(N[(y1 * y4), $MachinePrecision] * (-y3)), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -1.02 \cdot 10^{+40}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{-240}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(c \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(\left(y1 \cdot y4\right) \cdot \left(-y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -5.49999999999999999e149Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -5.49999999999999999e149 < y < -1.02e40Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -1.02e40 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < 8.7999999999999997e-240Initial program 38.5%
Taylor expanded in y3 around -inf 54.6%
Taylor expanded in y0 around inf 43.3%
Taylor expanded in j around 0 25.9%
*-commutative25.9%
Simplified25.9%
if 8.7999999999999997e-240 < y < 4.99999999999999962e-25Initial program 17.0%
Taylor expanded in j around inf 37.4%
Taylor expanded in y3 around inf 30.3%
neg-mul-130.3%
distribute-rgt-neg-in30.3%
Simplified30.3%
Taylor expanded in y1 around inf 27.8%
if 4.99999999999999962e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification34.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -5.5e+149)
(* x (* y (* a b)))
(if (<= y -1.4e+40)
(* b (* j (* t y4)))
(if (<= y -7.2e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 3.6e-285)
(* c (* y0 (* z (- y3))))
(if (<= y 4.6e-25)
(* j (* (* y1 y4) (- y3)))
(* 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 (y <= -5.5e+149) {
tmp = x * (y * (a * b));
} else if (y <= -1.4e+40) {
tmp = b * (j * (t * y4));
} else if (y <= -7.2e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 3.6e-285) {
tmp = c * (y0 * (z * -y3));
} else if (y <= 4.6e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 (y <= (-5.5d+149)) then
tmp = x * (y * (a * b))
else if (y <= (-1.4d+40)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.2d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 3.6d-285) then
tmp = c * (y0 * (z * -y3))
else if (y <= 4.6d-25) then
tmp = j * ((y1 * y4) * -y3)
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 (y <= -5.5e+149) {
tmp = x * (y * (a * b));
} else if (y <= -1.4e+40) {
tmp = b * (j * (t * y4));
} else if (y <= -7.2e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 3.6e-285) {
tmp = c * (y0 * (z * -y3));
} else if (y <= 4.6e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 y <= -5.5e+149: tmp = x * (y * (a * b)) elif y <= -1.4e+40: tmp = b * (j * (t * y4)) elif y <= -7.2e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 3.6e-285: tmp = c * (y0 * (z * -y3)) elif y <= 4.6e-25: tmp = j * ((y1 * y4) * -y3) 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 (y <= -5.5e+149) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -1.4e+40) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.2e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 3.6e-285) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))); elseif (y <= 4.6e-25) tmp = Float64(j * Float64(Float64(y1 * y4) * Float64(-y3))); 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 (y <= -5.5e+149) tmp = x * (y * (a * b)); elseif (y <= -1.4e+40) tmp = b * (j * (t * y4)); elseif (y <= -7.2e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 3.6e-285) tmp = c * (y0 * (z * -y3)); elseif (y <= 4.6e-25) tmp = j * ((y1 * y4) * -y3); 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[y, -5.5e+149], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.4e+40], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e-285], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e-25], N[(j * N[(N[(y1 * y4), $MachinePrecision] * (-y3)), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{+40}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-285}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(\left(y1 \cdot y4\right) \cdot \left(-y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -5.49999999999999999e149Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -5.49999999999999999e149 < y < -1.4000000000000001e40Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -1.4000000000000001e40 < y < -7.2e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.2e-46 < y < 3.60000000000000004e-285Initial program 38.8%
Taylor expanded in y3 around -inf 54.5%
Taylor expanded in y0 around inf 41.2%
Taylor expanded in j around 0 22.5%
if 3.60000000000000004e-285 < y < 4.5999999999999998e-25Initial program 21.3%
Taylor expanded in j around inf 47.0%
Taylor expanded in y3 around inf 28.1%
neg-mul-128.1%
distribute-rgt-neg-in28.1%
Simplified28.1%
Taylor expanded in y1 around inf 26.1%
if 4.5999999999999998e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification33.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2e+150)
(* x (* y (* a b)))
(if (<= y -4.1e+39)
(* b (* j (* t y4)))
(if (<= y -7.2e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 1.4e-178)
(* b (* (- j) (* x y0)))
(if (<= y 5.5e-25)
(* j (* (* y1 y4) (- y3)))
(* 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 (y <= -2e+150) {
tmp = x * (y * (a * b));
} else if (y <= -4.1e+39) {
tmp = b * (j * (t * y4));
} else if (y <= -7.2e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 1.4e-178) {
tmp = b * (-j * (x * y0));
} else if (y <= 5.5e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 (y <= (-2d+150)) then
tmp = x * (y * (a * b))
else if (y <= (-4.1d+39)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.2d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 1.4d-178) then
tmp = b * (-j * (x * y0))
else if (y <= 5.5d-25) then
tmp = j * ((y1 * y4) * -y3)
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 (y <= -2e+150) {
tmp = x * (y * (a * b));
} else if (y <= -4.1e+39) {
tmp = b * (j * (t * y4));
} else if (y <= -7.2e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 1.4e-178) {
tmp = b * (-j * (x * y0));
} else if (y <= 5.5e-25) {
tmp = j * ((y1 * y4) * -y3);
} 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 y <= -2e+150: tmp = x * (y * (a * b)) elif y <= -4.1e+39: tmp = b * (j * (t * y4)) elif y <= -7.2e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 1.4e-178: tmp = b * (-j * (x * y0)) elif y <= 5.5e-25: tmp = j * ((y1 * y4) * -y3) 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 (y <= -2e+150) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -4.1e+39) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.2e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 1.4e-178) tmp = Float64(b * Float64(Float64(-j) * Float64(x * y0))); elseif (y <= 5.5e-25) tmp = Float64(j * Float64(Float64(y1 * y4) * Float64(-y3))); 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 (y <= -2e+150) tmp = x * (y * (a * b)); elseif (y <= -4.1e+39) tmp = b * (j * (t * y4)); elseif (y <= -7.2e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 1.4e-178) tmp = b * (-j * (x * y0)); elseif (y <= 5.5e-25) tmp = j * ((y1 * y4) * -y3); 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[y, -2e+150], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.1e+39], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-178], N[(b * N[((-j) * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-25], N[(j * N[(N[(y1 * y4), $MachinePrecision] * (-y3)), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+150}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{+39}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-178}:\\
\;\;\;\;b \cdot \left(\left(-j\right) \cdot \left(x \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(\left(y1 \cdot y4\right) \cdot \left(-y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.99999999999999996e150Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -1.99999999999999996e150 < y < -4.10000000000000004e39Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -4.10000000000000004e39 < y < -7.2e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.2e-46 < y < 1.4000000000000001e-178Initial program 35.1%
Taylor expanded in j around inf 42.1%
Taylor expanded in b around inf 25.3%
Taylor expanded in t around 0 23.1%
associate-*r*23.1%
mul-1-neg23.1%
*-commutative23.1%
Simplified23.1%
if 1.4000000000000001e-178 < y < 5.50000000000000004e-25Initial program 19.3%
Taylor expanded in j around inf 36.6%
Taylor expanded in y3 around inf 26.8%
neg-mul-126.8%
distribute-rgt-neg-in26.8%
Simplified26.8%
Taylor expanded in y1 around inf 26.8%
if 5.50000000000000004e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification33.5%
(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 (* b (* j (* t y4)))))
(if (<= y -6.2e+149)
t_1
(if (<= y -1.05e+75)
t_2
(if (<= y -2.15e+19)
t_1
(if (<= y 5.2e-212)
(* j (* y0 (* y3 y5)))
(if (<= y 2.6e-14) t_2 (* 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 t_1 = x * (y * (a * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -6.2e+149) {
tmp = t_1;
} else if (y <= -1.05e+75) {
tmp = t_2;
} else if (y <= -2.15e+19) {
tmp = t_1;
} else if (y <= 5.2e-212) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 2.6e-14) {
tmp = t_2;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * (a * b))
t_2 = b * (j * (t * y4))
if (y <= (-6.2d+149)) then
tmp = t_1
else if (y <= (-1.05d+75)) then
tmp = t_2
else if (y <= (-2.15d+19)) then
tmp = t_1
else if (y <= 5.2d-212) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 2.6d-14) then
tmp = t_2
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 t_1 = x * (y * (a * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -6.2e+149) {
tmp = t_1;
} else if (y <= -1.05e+75) {
tmp = t_2;
} else if (y <= -2.15e+19) {
tmp = t_1;
} else if (y <= 5.2e-212) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 2.6e-14) {
tmp = t_2;
} 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): t_1 = x * (y * (a * b)) t_2 = b * (j * (t * y4)) tmp = 0 if y <= -6.2e+149: tmp = t_1 elif y <= -1.05e+75: tmp = t_2 elif y <= -2.15e+19: tmp = t_1 elif y <= 5.2e-212: tmp = j * (y0 * (y3 * y5)) elif y <= 2.6e-14: tmp = t_2 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) t_1 = Float64(x * Float64(y * Float64(a * b))) t_2 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (y <= -6.2e+149) tmp = t_1; elseif (y <= -1.05e+75) tmp = t_2; elseif (y <= -2.15e+19) tmp = t_1; elseif (y <= 5.2e-212) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 2.6e-14) tmp = t_2; 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) t_1 = x * (y * (a * b)); t_2 = b * (j * (t * y4)); tmp = 0.0; if (y <= -6.2e+149) tmp = t_1; elseif (y <= -1.05e+75) tmp = t_2; elseif (y <= -2.15e+19) tmp = t_1; elseif (y <= 5.2e-212) tmp = j * (y0 * (y3 * y5)); elseif (y <= 2.6e-14) tmp = t_2; 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_] := Block[{t$95$1 = N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e+149], t$95$1, If[LessEqual[y, -1.05e+75], t$95$2, If[LessEqual[y, -2.15e+19], t$95$1, If[LessEqual[y, 5.2e-212], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-14], t$95$2, N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
t_2 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{+75}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-212}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-14}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -6.19999999999999974e149 or -1.04999999999999999e75 < y < -2.15e19Initial program 30.9%
Taylor expanded in y around inf 28.3%
Taylor expanded in x around inf 46.9%
Taylor expanded in a around inf 47.0%
associate-*r*47.1%
Simplified47.1%
if -6.19999999999999974e149 < y < -1.04999999999999999e75 or 5.2e-212 < y < 2.59999999999999997e-14Initial program 22.0%
Taylor expanded in j around inf 43.2%
Taylor expanded in b around inf 33.3%
Taylor expanded in t around inf 25.1%
*-commutative25.1%
Simplified25.1%
if -2.15e19 < y < 5.2e-212Initial program 33.1%
Taylor expanded in j around inf 41.7%
Taylor expanded in y3 around inf 29.1%
neg-mul-129.1%
distribute-rgt-neg-in29.1%
Simplified29.1%
Taylor expanded in y1 around 0 21.7%
if 2.59999999999999997e-14 < y Initial program 32.9%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 48.4%
Taylor expanded in a around inf 42.6%
Final simplification31.8%
(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)))) (t_2 (* b (* j (* t y4)))))
(if (<= y -5.5e+149)
t_1
(if (<= y -2.9e+35)
t_2
(if (<= y -8.7e+18)
t_1
(if (<= y 2.8e-210)
(* j (* y0 (* y3 y5)))
(if (<= y 4.2e-15) 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 * (a * (y * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -5.5e+149) {
tmp = t_1;
} else if (y <= -2.9e+35) {
tmp = t_2;
} else if (y <= -8.7e+18) {
tmp = t_1;
} else if (y <= 2.8e-210) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 4.2e-15) {
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 * (a * (y * b))
t_2 = b * (j * (t * y4))
if (y <= (-5.5d+149)) then
tmp = t_1
else if (y <= (-2.9d+35)) then
tmp = t_2
else if (y <= (-8.7d+18)) then
tmp = t_1
else if (y <= 2.8d-210) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 4.2d-15) 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 * (a * (y * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -5.5e+149) {
tmp = t_1;
} else if (y <= -2.9e+35) {
tmp = t_2;
} else if (y <= -8.7e+18) {
tmp = t_1;
} else if (y <= 2.8e-210) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 4.2e-15) {
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 * (a * (y * b)) t_2 = b * (j * (t * y4)) tmp = 0 if y <= -5.5e+149: tmp = t_1 elif y <= -2.9e+35: tmp = t_2 elif y <= -8.7e+18: tmp = t_1 elif y <= 2.8e-210: tmp = j * (y0 * (y3 * y5)) elif y <= 4.2e-15: 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(a * Float64(y * b))) t_2 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (y <= -5.5e+149) tmp = t_1; elseif (y <= -2.9e+35) tmp = t_2; elseif (y <= -8.7e+18) tmp = t_1; elseif (y <= 2.8e-210) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 4.2e-15) 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 * (a * (y * b)); t_2 = b * (j * (t * y4)); tmp = 0.0; if (y <= -5.5e+149) tmp = t_1; elseif (y <= -2.9e+35) tmp = t_2; elseif (y <= -8.7e+18) tmp = t_1; elseif (y <= 2.8e-210) tmp = j * (y0 * (y3 * y5)); elseif (y <= 4.2e-15) 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[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+149], t$95$1, If[LessEqual[y, -2.9e+35], t$95$2, If[LessEqual[y, -8.7e+18], t$95$1, If[LessEqual[y, 2.8e-210], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-15], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
t_2 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -8.7 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-210}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.49999999999999999e149 or -2.89999999999999995e35 < y < -8.7e18 or 4.19999999999999962e-15 < y Initial program 34.8%
Taylor expanded in y around inf 40.0%
Taylor expanded in x around inf 49.7%
Taylor expanded in a around inf 45.8%
if -5.49999999999999999e149 < y < -2.89999999999999995e35 or 2.8e-210 < y < 4.19999999999999962e-15Initial program 19.5%
Taylor expanded in j around inf 44.1%
Taylor expanded in b around inf 32.4%
Taylor expanded in t around inf 25.2%
*-commutative25.2%
Simplified25.2%
if -8.7e18 < y < 2.8e-210Initial program 33.1%
Taylor expanded in j around inf 41.7%
Taylor expanded in y3 around inf 29.1%
neg-mul-129.1%
distribute-rgt-neg-in29.1%
Simplified29.1%
Taylor expanded in y1 around 0 21.7%
Final simplification31.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -8.5e+50)
t_2
(if (<= y2 -3.3e-163)
t_1
(if (<= y2 1.45e-301)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y2 1.22e+82) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -8.5e+50) {
tmp = t_2;
} else if (y2 <= -3.3e-163) {
tmp = t_1;
} else if (y2 <= 1.45e-301) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 1.22e+82) {
tmp = t_1;
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-8.5d+50)) then
tmp = t_2
else if (y2 <= (-3.3d-163)) then
tmp = t_1
else if (y2 <= 1.45d-301) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y2 <= 1.22d+82) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -8.5e+50) {
tmp = t_2;
} else if (y2 <= -3.3e-163) {
tmp = t_1;
} else if (y2 <= 1.45e-301) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y2 <= 1.22e+82) {
tmp = t_1;
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -8.5e+50: tmp = t_2 elif y2 <= -3.3e-163: tmp = t_1 elif y2 <= 1.45e-301: tmp = i * (k * ((y * y5) - (z * y1))) elif y2 <= 1.22e+82: tmp = t_1 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -8.5e+50) tmp = t_2; elseif (y2 <= -3.3e-163) tmp = t_1; elseif (y2 <= 1.45e-301) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y2 <= 1.22e+82) tmp = t_1; 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 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -8.5e+50) tmp = t_2; elseif (y2 <= -3.3e-163) tmp = t_1; elseif (y2 <= 1.45e-301) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y2 <= 1.22e+82) tmp = t_1; 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -8.5e+50], t$95$2, If[LessEqual[y2, -3.3e-163], t$95$1, If[LessEqual[y2, 1.45e-301], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.22e+82], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -8.5 \cdot 10^{+50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -3.3 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.45 \cdot 10^{-301}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 1.22 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -8.49999999999999961e50 or 1.22000000000000008e82 < y2 Initial program 26.6%
Taylor expanded in y2 around inf 55.2%
Taylor expanded in k around inf 49.0%
if -8.49999999999999961e50 < y2 < -3.30000000000000001e-163 or 1.44999999999999992e-301 < y2 < 1.22000000000000008e82Initial program 30.1%
Taylor expanded in j around inf 40.0%
Taylor expanded in x around inf 42.9%
if -3.30000000000000001e-163 < y2 < 1.44999999999999992e-301Initial program 38.6%
Taylor expanded in k around inf 46.1%
Taylor expanded in i around inf 40.0%
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 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* i (* k (- (* y y5) (* z y1))))))
(if (<= k -3e+38)
t_2
(if (<= k -7.5e-161)
t_1
(if (<= k -1.25e-267)
(* j (* t (- (* b y4) (* i y5))))
(if (<= k 4e+73) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -3e+38) {
tmp = t_2;
} else if (k <= -7.5e-161) {
tmp = t_1;
} else if (k <= -1.25e-267) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= 4e+73) {
tmp = t_1;
} 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) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = i * (k * ((y * y5) - (z * y1)))
if (k <= (-3d+38)) then
tmp = t_2
else if (k <= (-7.5d-161)) then
tmp = t_1
else if (k <= (-1.25d-267)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (k <= 4d+73) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -3e+38) {
tmp = t_2;
} else if (k <= -7.5e-161) {
tmp = t_1;
} else if (k <= -1.25e-267) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= 4e+73) {
tmp = t_1;
} 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 = j * (x * ((i * y1) - (b * y0))) t_2 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if k <= -3e+38: tmp = t_2 elif k <= -7.5e-161: tmp = t_1 elif k <= -1.25e-267: tmp = j * (t * ((b * y4) - (i * y5))) elif k <= 4e+73: tmp = t_1 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (k <= -3e+38) tmp = t_2; elseif (k <= -7.5e-161) tmp = t_1; elseif (k <= -1.25e-267) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (k <= 4e+73) tmp = t_1; 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 = j * (x * ((i * y1) - (b * y0))); t_2 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (k <= -3e+38) tmp = t_2; elseif (k <= -7.5e-161) tmp = t_1; elseif (k <= -1.25e-267) tmp = j * (t * ((b * y4) - (i * y5))); elseif (k <= 4e+73) tmp = t_1; 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -3e+38], t$95$2, If[LessEqual[k, -7.5e-161], t$95$1, If[LessEqual[k, -1.25e-267], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4e+73], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -3 \cdot 10^{+38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;k \leq -7.5 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -1.25 \cdot 10^{-267}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq 4 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if k < -3.0000000000000001e38 or 3.99999999999999993e73 < k Initial program 22.9%
Taylor expanded in k around inf 47.4%
Taylor expanded in i around inf 46.0%
if -3.0000000000000001e38 < k < -7.49999999999999991e-161 or -1.25e-267 < k < 3.99999999999999993e73Initial program 33.1%
Taylor expanded in j around inf 44.6%
Taylor expanded in x around inf 38.7%
if -7.49999999999999991e-161 < k < -1.25e-267Initial program 48.1%
Taylor expanded in j around inf 58.1%
Taylor expanded in t around inf 35.1%
Final simplification41.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -5.6e+149)
(* x (* y (* a b)))
(if (<= y -7.7e+37)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 2.3e-124) (* b (* (- j) (* x y0))) (* 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 (y <= -5.6e+149) {
tmp = x * (y * (a * b));
} else if (y <= -7.7e+37) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 2.3e-124) {
tmp = b * (-j * (x * y0));
} 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 (y <= (-5.6d+149)) then
tmp = x * (y * (a * b))
else if (y <= (-7.7d+37)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 2.3d-124) then
tmp = b * (-j * (x * y0))
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 (y <= -5.6e+149) {
tmp = x * (y * (a * b));
} else if (y <= -7.7e+37) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 2.3e-124) {
tmp = b * (-j * (x * y0));
} 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 y <= -5.6e+149: tmp = x * (y * (a * b)) elif y <= -7.7e+37: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 2.3e-124: tmp = b * (-j * (x * y0)) 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 (y <= -5.6e+149) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -7.7e+37) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 2.3e-124) tmp = Float64(b * Float64(Float64(-j) * Float64(x * y0))); 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 (y <= -5.6e+149) tmp = x * (y * (a * b)); elseif (y <= -7.7e+37) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 2.3e-124) tmp = b * (-j * (x * y0)); 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[y, -5.6e+149], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.7e+37], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-124], N[(b * N[((-j) * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.6 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -7.7 \cdot 10^{+37}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-124}:\\
\;\;\;\;b \cdot \left(\left(-j\right) \cdot \left(x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -5.5999999999999998e149Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -5.5999999999999998e149 < y < -7.70000000000000022e37Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -7.70000000000000022e37 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < 2.30000000000000012e-124Initial program 31.0%
Taylor expanded in j around inf 42.4%
Taylor expanded in b around inf 25.0%
Taylor expanded in t around 0 21.1%
associate-*r*21.1%
mul-1-neg21.1%
*-commutative21.1%
Simplified21.1%
if 2.30000000000000012e-124 < y Initial program 33.0%
Taylor expanded in y around inf 39.2%
Taylor expanded in x around inf 40.8%
Taylor expanded in a around inf 35.3%
Final simplification31.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))))
(if (<= y -9.5e+23)
t_1
(if (<= y 6e-214)
(* j (* y0 (* y3 y5)))
(if (<= y 1.2e-17) (* b (* j (* t 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 = a * ((x * y) * b);
double tmp;
if (y <= -9.5e+23) {
tmp = t_1;
} else if (y <= 6e-214) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 1.2e-17) {
tmp = b * (j * (t * y4));
} 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) :: tmp
t_1 = a * ((x * y) * b)
if (y <= (-9.5d+23)) then
tmp = t_1
else if (y <= 6d-214) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 1.2d-17) then
tmp = b * (j * (t * y4))
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 = a * ((x * y) * b);
double tmp;
if (y <= -9.5e+23) {
tmp = t_1;
} else if (y <= 6e-214) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 1.2e-17) {
tmp = b * (j * (t * y4));
} 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 = a * ((x * y) * b) tmp = 0 if y <= -9.5e+23: tmp = t_1 elif y <= 6e-214: tmp = j * (y0 * (y3 * y5)) elif y <= 1.2e-17: tmp = b * (j * (t * y4)) 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(a * Float64(Float64(x * y) * b)) tmp = 0.0 if (y <= -9.5e+23) tmp = t_1; elseif (y <= 6e-214) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 1.2e-17) tmp = Float64(b * Float64(j * Float64(t * y4))); 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 = a * ((x * y) * b); tmp = 0.0; if (y <= -9.5e+23) tmp = t_1; elseif (y <= 6e-214) tmp = j * (y0 * (y3 * y5)); elseif (y <= 1.2e-17) tmp = b * (j * (t * y4)); 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[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+23], t$95$1, If[LessEqual[y, 6e-214], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e-17], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-214}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{-17}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.50000000000000038e23 or 1.19999999999999993e-17 < y Initial program 31.0%
Taylor expanded in y around inf 38.4%
Taylor expanded in x around inf 44.7%
Taylor expanded in a around inf 36.2%
*-commutative36.2%
Simplified36.2%
if -9.50000000000000038e23 < y < 5.99999999999999989e-214Initial program 33.1%
Taylor expanded in j around inf 41.4%
Taylor expanded in y3 around inf 29.3%
neg-mul-129.3%
distribute-rgt-neg-in29.3%
Simplified29.3%
Taylor expanded in y1 around 0 22.1%
if 5.99999999999999989e-214 < y < 1.19999999999999993e-17Initial program 20.5%
Taylor expanded in j around inf 41.9%
Taylor expanded in b around inf 29.5%
Taylor expanded in t around inf 22.0%
*-commutative22.0%
Simplified22.0%
Final simplification28.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= x -3.9e-120) (* a (* y (* x b))) (if (<= x 3.1e+95) (* b (* j (* t y4))) (* 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) {
double tmp;
if (x <= -3.9e-120) {
tmp = a * (y * (x * b));
} else if (x <= 3.1e+95) {
tmp = b * (j * (t * y4));
} else {
tmp = a * ((x * 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 (x <= (-3.9d-120)) then
tmp = a * (y * (x * b))
else if (x <= 3.1d+95) then
tmp = b * (j * (t * y4))
else
tmp = a * ((x * 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 (x <= -3.9e-120) {
tmp = a * (y * (x * b));
} else if (x <= 3.1e+95) {
tmp = b * (j * (t * y4));
} else {
tmp = a * ((x * 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 x <= -3.9e-120: tmp = a * (y * (x * b)) elif x <= 3.1e+95: tmp = b * (j * (t * y4)) else: tmp = a * ((x * 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 (x <= -3.9e-120) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 3.1e+95) tmp = Float64(b * Float64(j * Float64(t * y4))); else tmp = Float64(a * Float64(Float64(x * 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 (x <= -3.9e-120) tmp = a * (y * (x * b)); elseif (x <= 3.1e+95) tmp = b * (j * (t * y4)); else tmp = a * ((x * 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[x, -3.9e-120], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+95], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.9 \cdot 10^{-120}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -3.9000000000000002e-120Initial program 27.5%
Taylor expanded in y around inf 30.3%
Taylor expanded in x around inf 27.8%
Taylor expanded in a around inf 21.6%
associate-*r*22.7%
Simplified22.7%
if -3.9000000000000002e-120 < x < 3.1000000000000003e95Initial program 35.4%
Taylor expanded in j around inf 36.3%
Taylor expanded in b around inf 23.1%
Taylor expanded in t around inf 21.3%
*-commutative21.3%
Simplified21.3%
if 3.1000000000000003e95 < x Initial program 21.7%
Taylor expanded in y around inf 26.3%
Taylor expanded in x around inf 46.6%
Taylor expanded in a around inf 48.8%
*-commutative48.8%
Simplified48.8%
Final simplification26.8%
(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 30.2%
Taylor expanded in y around inf 34.1%
Taylor expanded in x around inf 28.2%
Taylor expanded in a around inf 20.8%
associate-*r*21.2%
Simplified21.2%
Final simplification21.2%
(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 30.2%
Taylor expanded in y around inf 34.1%
Taylor expanded in x around inf 28.2%
Taylor expanded in a around inf 20.8%
*-commutative20.8%
Simplified20.8%
Final simplification20.8%
(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 2024091
(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
:alt
(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)))))