
(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 34 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
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j))))))
(t_2 (* y3 (- (* c y4) (* a y5))))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4 (- (* c y0) (* a y1)))
(t_5 (* t (- (* a y5) (* c y4))))
(t_6 (* k t_3))
(t_7 (- (* b y0) (* i y1)))
(t_8 (- (* i y5) (* b y4)))
(t_9 (- (* a b) (* c i)))
(t_10 (* x t_9))
(t_11
(*
z
(+
(* k t_7)
(+ (* y3 (- (* a y1) (* c y0))) (* t (- (* c i) (* a b))))))))
(if (<= c -6.6e+187)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= c -4.6e+81)
t_1
(if (<= c -3.9e+52)
(* (* y b) (- (* x a) (* k y4)))
(if (<= c -2.5e-18)
(* y2 (+ (- t_6 (* y1 (* x a))) t_5))
(if (<= c -9.5e-96)
t_1
(if (<= c -2.15e-193)
(+
(* (- (* k y2) (* j y3)) t_3)
(+
(* y t_10)
(+
(* (- (* x y2) (* z y3)) t_4)
(+
(* k (* y t_8))
(- (* y t_2) (* t_7 (- (* x j) (* z k))))))))
(if (<= c -1.7e-268)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= c 4.4e-301)
(*
x
(+ (+ (* y t_9) (* y2 t_4)) (* j (- (* i y1) (* b y0)))))
(if (<= c 1.15e-133)
t_11
(if (<= c 2.35e-17)
(* y (+ (* k t_8) (+ t_10 t_2)))
(if (<= c 3.2e+140)
t_11
(* y2 (+ (+ t_6 (* x t_4)) 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 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_2 = y3 * ((c * y4) - (a * y5));
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = (c * y0) - (a * y1);
double t_5 = t * ((a * y5) - (c * y4));
double t_6 = k * t_3;
double t_7 = (b * y0) - (i * y1);
double t_8 = (i * y5) - (b * y4);
double t_9 = (a * b) - (c * i);
double t_10 = x * t_9;
double t_11 = z * ((k * t_7) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))));
double tmp;
if (c <= -6.6e+187) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (c <= -4.6e+81) {
tmp = t_1;
} else if (c <= -3.9e+52) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (c <= -2.5e-18) {
tmp = y2 * ((t_6 - (y1 * (x * a))) + t_5);
} else if (c <= -9.5e-96) {
tmp = t_1;
} else if (c <= -2.15e-193) {
tmp = (((k * y2) - (j * y3)) * t_3) + ((y * t_10) + ((((x * y2) - (z * y3)) * t_4) + ((k * (y * t_8)) + ((y * t_2) - (t_7 * ((x * j) - (z * k)))))));
} else if (c <= -1.7e-268) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (c <= 4.4e-301) {
tmp = x * (((y * t_9) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (c <= 1.15e-133) {
tmp = t_11;
} else if (c <= 2.35e-17) {
tmp = y * ((k * t_8) + (t_10 + t_2));
} else if (c <= 3.2e+140) {
tmp = t_11;
} else {
tmp = y2 * ((t_6 + (x * t_4)) + 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_10
real(8) :: t_11
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
t_2 = y3 * ((c * y4) - (a * y5))
t_3 = (y1 * y4) - (y0 * y5)
t_4 = (c * y0) - (a * y1)
t_5 = t * ((a * y5) - (c * y4))
t_6 = k * t_3
t_7 = (b * y0) - (i * y1)
t_8 = (i * y5) - (b * y4)
t_9 = (a * b) - (c * i)
t_10 = x * t_9
t_11 = z * ((k * t_7) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))))
if (c <= (-6.6d+187)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (c <= (-4.6d+81)) then
tmp = t_1
else if (c <= (-3.9d+52)) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (c <= (-2.5d-18)) then
tmp = y2 * ((t_6 - (y1 * (x * a))) + t_5)
else if (c <= (-9.5d-96)) then
tmp = t_1
else if (c <= (-2.15d-193)) then
tmp = (((k * y2) - (j * y3)) * t_3) + ((y * t_10) + ((((x * y2) - (z * y3)) * t_4) + ((k * (y * t_8)) + ((y * t_2) - (t_7 * ((x * j) - (z * k)))))))
else if (c <= (-1.7d-268)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (c <= 4.4d-301) then
tmp = x * (((y * t_9) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))))
else if (c <= 1.15d-133) then
tmp = t_11
else if (c <= 2.35d-17) then
tmp = y * ((k * t_8) + (t_10 + t_2))
else if (c <= 3.2d+140) then
tmp = t_11
else
tmp = y2 * ((t_6 + (x * t_4)) + 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 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_2 = y3 * ((c * y4) - (a * y5));
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = (c * y0) - (a * y1);
double t_5 = t * ((a * y5) - (c * y4));
double t_6 = k * t_3;
double t_7 = (b * y0) - (i * y1);
double t_8 = (i * y5) - (b * y4);
double t_9 = (a * b) - (c * i);
double t_10 = x * t_9;
double t_11 = z * ((k * t_7) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))));
double tmp;
if (c <= -6.6e+187) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (c <= -4.6e+81) {
tmp = t_1;
} else if (c <= -3.9e+52) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (c <= -2.5e-18) {
tmp = y2 * ((t_6 - (y1 * (x * a))) + t_5);
} else if (c <= -9.5e-96) {
tmp = t_1;
} else if (c <= -2.15e-193) {
tmp = (((k * y2) - (j * y3)) * t_3) + ((y * t_10) + ((((x * y2) - (z * y3)) * t_4) + ((k * (y * t_8)) + ((y * t_2) - (t_7 * ((x * j) - (z * k)))))));
} else if (c <= -1.7e-268) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (c <= 4.4e-301) {
tmp = x * (((y * t_9) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (c <= 1.15e-133) {
tmp = t_11;
} else if (c <= 2.35e-17) {
tmp = y * ((k * t_8) + (t_10 + t_2));
} else if (c <= 3.2e+140) {
tmp = t_11;
} else {
tmp = y2 * ((t_6 + (x * t_4)) + t_5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) t_2 = y3 * ((c * y4) - (a * y5)) t_3 = (y1 * y4) - (y0 * y5) t_4 = (c * y0) - (a * y1) t_5 = t * ((a * y5) - (c * y4)) t_6 = k * t_3 t_7 = (b * y0) - (i * y1) t_8 = (i * y5) - (b * y4) t_9 = (a * b) - (c * i) t_10 = x * t_9 t_11 = z * ((k * t_7) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b))))) tmp = 0 if c <= -6.6e+187: tmp = c * (y4 * ((y * y3) - (t * y2))) elif c <= -4.6e+81: tmp = t_1 elif c <= -3.9e+52: tmp = (y * b) * ((x * a) - (k * y4)) elif c <= -2.5e-18: tmp = y2 * ((t_6 - (y1 * (x * a))) + t_5) elif c <= -9.5e-96: tmp = t_1 elif c <= -2.15e-193: tmp = (((k * y2) - (j * y3)) * t_3) + ((y * t_10) + ((((x * y2) - (z * y3)) * t_4) + ((k * (y * t_8)) + ((y * t_2) - (t_7 * ((x * j) - (z * k))))))) elif c <= -1.7e-268: tmp = y1 * (z * ((a * y3) - (i * k))) elif c <= 4.4e-301: tmp = x * (((y * t_9) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))) elif c <= 1.15e-133: tmp = t_11 elif c <= 2.35e-17: tmp = y * ((k * t_8) + (t_10 + t_2)) elif c <= 3.2e+140: tmp = t_11 else: tmp = y2 * ((t_6 + (x * t_4)) + 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(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_2 = Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) t_3 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(t * Float64(Float64(a * y5) - Float64(c * y4))) t_6 = Float64(k * t_3) t_7 = Float64(Float64(b * y0) - Float64(i * y1)) t_8 = Float64(Float64(i * y5) - Float64(b * y4)) t_9 = Float64(Float64(a * b) - Float64(c * i)) t_10 = Float64(x * t_9) t_11 = Float64(z * Float64(Float64(k * t_7) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))) tmp = 0.0 if (c <= -6.6e+187) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (c <= -4.6e+81) tmp = t_1; elseif (c <= -3.9e+52) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (c <= -2.5e-18) tmp = Float64(y2 * Float64(Float64(t_6 - Float64(y1 * Float64(x * a))) + t_5)); elseif (c <= -9.5e-96) tmp = t_1; elseif (c <= -2.15e-193) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_3) + Float64(Float64(y * t_10) + Float64(Float64(Float64(Float64(x * y2) - Float64(z * y3)) * t_4) + Float64(Float64(k * Float64(y * t_8)) + Float64(Float64(y * t_2) - Float64(t_7 * Float64(Float64(x * j) - Float64(z * k)))))))); elseif (c <= -1.7e-268) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (c <= 4.4e-301) tmp = Float64(x * Float64(Float64(Float64(y * t_9) + Float64(y2 * t_4)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (c <= 1.15e-133) tmp = t_11; elseif (c <= 2.35e-17) tmp = Float64(y * Float64(Float64(k * t_8) + Float64(t_10 + t_2))); elseif (c <= 3.2e+140) tmp = t_11; else tmp = Float64(y2 * Float64(Float64(t_6 + Float64(x * t_4)) + 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 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); t_2 = y3 * ((c * y4) - (a * y5)); t_3 = (y1 * y4) - (y0 * y5); t_4 = (c * y0) - (a * y1); t_5 = t * ((a * y5) - (c * y4)); t_6 = k * t_3; t_7 = (b * y0) - (i * y1); t_8 = (i * y5) - (b * y4); t_9 = (a * b) - (c * i); t_10 = x * t_9; t_11 = z * ((k * t_7) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b))))); tmp = 0.0; if (c <= -6.6e+187) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (c <= -4.6e+81) tmp = t_1; elseif (c <= -3.9e+52) tmp = (y * b) * ((x * a) - (k * y4)); elseif (c <= -2.5e-18) tmp = y2 * ((t_6 - (y1 * (x * a))) + t_5); elseif (c <= -9.5e-96) tmp = t_1; elseif (c <= -2.15e-193) tmp = (((k * y2) - (j * y3)) * t_3) + ((y * t_10) + ((((x * y2) - (z * y3)) * t_4) + ((k * (y * t_8)) + ((y * t_2) - (t_7 * ((x * j) - (z * k))))))); elseif (c <= -1.7e-268) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (c <= 4.4e-301) tmp = x * (((y * t_9) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))); elseif (c <= 1.15e-133) tmp = t_11; elseif (c <= 2.35e-17) tmp = y * ((k * t_8) + (t_10 + t_2)); elseif (c <= 3.2e+140) tmp = t_11; else tmp = y2 * ((t_6 + (x * t_4)) + 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[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(k * t$95$3), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(x * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(z * N[(N[(k * t$95$7), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.6e+187], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.6e+81], t$95$1, If[LessEqual[c, -3.9e+52], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.5e-18], N[(y2 * N[(N[(t$95$6 - N[(y1 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9.5e-96], t$95$1, If[LessEqual[c, -2.15e-193], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$3), $MachinePrecision] + N[(N[(y * t$95$10), $MachinePrecision] + N[(N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision] + N[(N[(k * N[(y * t$95$8), $MachinePrecision]), $MachinePrecision] + N[(N[(y * t$95$2), $MachinePrecision] - N[(t$95$7 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.7e-268], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.4e-301], N[(x * N[(N[(N[(y * t$95$9), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.15e-133], t$95$11, If[LessEqual[c, 2.35e-17], N[(y * N[(N[(k * t$95$8), $MachinePrecision] + N[(t$95$10 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+140], t$95$11, N[(y2 * N[(N[(t$95$6 + N[(x * t$95$4), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := t \cdot \left(a \cdot y5 - c \cdot y4\right)\\
t_6 := k \cdot t_3\\
t_7 := b \cdot y0 - i \cdot y1\\
t_8 := i \cdot y5 - b \cdot y4\\
t_9 := a \cdot b - c \cdot i\\
t_10 := x \cdot t_9\\
t_11 := z \cdot \left(k \cdot t_7 + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{if}\;c \leq -6.6 \cdot 10^{+187}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;c \leq -4.6 \cdot 10^{+81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -3.9 \cdot 10^{+52}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-18}:\\
\;\;\;\;y2 \cdot \left(\left(t_6 - y1 \cdot \left(x \cdot a\right)\right) + t_5\right)\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{-96}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.15 \cdot 10^{-193}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot t_3 + \left(y \cdot t_10 + \left(\left(x \cdot y2 - z \cdot y3\right) \cdot t_4 + \left(k \cdot \left(y \cdot t_8\right) + \left(y \cdot t_2 - t_7 \cdot \left(x \cdot j - z \cdot k\right)\right)\right)\right)\right)\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-268}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-301}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_9 + y2 \cdot t_4\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-133}:\\
\;\;\;\;t_11\\
\mathbf{elif}\;c \leq 2.35 \cdot 10^{-17}:\\
\;\;\;\;y \cdot \left(k \cdot t_8 + \left(t_10 + t_2\right)\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+140}:\\
\;\;\;\;t_11\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(t_6 + x \cdot t_4\right) + t_5\right)\\
\end{array}
\end{array}
if c < -6.6000000000000003e187Initial program 19.4%
Simplified19.4%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in c around inf 72.5%
if -6.6000000000000003e187 < c < -4.5999999999999998e81 or -2.50000000000000018e-18 < c < -9.4999999999999993e-96Initial program 33.9%
Simplified33.9%
Taylor expanded in b around inf 61.9%
if -4.5999999999999998e81 < c < -3.9e52Initial program 25.0%
Simplified37.5%
Taylor expanded in y around inf 63.4%
mul-1-neg63.4%
*-commutative63.4%
*-commutative63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in b around inf 52.5%
associate-*r*64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
if -3.9e52 < c < -2.50000000000000018e-18Initial program 12.5%
Simplified12.5%
Taylor expanded in y2 around inf 37.6%
Taylor expanded in c around 0 50.1%
if -9.4999999999999993e-96 < c < -2.1500000000000001e-193Initial program 76.5%
Simplified76.5%
Taylor expanded in t around 0 76.5%
if -2.1500000000000001e-193 < c < -1.7e-268Initial program 12.0%
Simplified12.0%
Taylor expanded in z around -inf 30.0%
Taylor expanded in y1 around inf 59.8%
*-commutative59.8%
associate-*l*65.3%
cancel-sign-sub-inv65.3%
metadata-eval65.3%
*-lft-identity65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
Simplified65.3%
if -1.7e-268 < c < 4.4e-301Initial program 30.0%
Simplified30.0%
Taylor expanded in x around inf 70.8%
if 4.4e-301 < c < 1.15e-133 or 2.35e-17 < c < 3.20000000000000011e140Initial program 30.6%
Simplified30.6%
Taylor expanded in z around -inf 61.7%
if 1.15e-133 < c < 2.35e-17Initial program 26.9%
Simplified30.7%
Taylor expanded in y around inf 65.7%
mul-1-neg65.7%
*-commutative65.7%
*-commutative65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
if 3.20000000000000011e140 < c Initial program 21.2%
Simplified21.2%
Taylor expanded in y2 around inf 64.0%
Final simplification64.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(t_4 (- (* a b) (* c i)))
(t_5 (- (* y1 y4) (* y0 y5)))
(t_6 (* t_4 (- (* x y) (* z t))))
(t_7 (- (* c y0) (* a y1)))
(t_8 (- (* b y4) (* i y5)))
(t_9 (- (* k y2) (* j y3))))
(if (<=
(+
(+
(+
(+
(+ t_6 (* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* t_2 t_7))
(* t_8 t_1))
t_3)
(* t_9 t_5))
INFINITY)
(fma
t_9
t_5
(+
(fma
t_1
t_8
(fma t_2 t_7 (+ t_6 (* (fma x j (* z (- k))) (- (* i y1) (* b y0))))))
t_3))
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x t_4) (* y3 (- (* c y4) (* a 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 = (t * j) - (y * k);
double t_2 = (x * y2) - (z * y3);
double t_3 = ((t * y2) - (y * y3)) * ((a * y5) - (c * y4));
double t_4 = (a * b) - (c * i);
double t_5 = (y1 * y4) - (y0 * y5);
double t_6 = t_4 * ((x * y) - (z * t));
double t_7 = (c * y0) - (a * y1);
double t_8 = (b * y4) - (i * y5);
double t_9 = (k * y2) - (j * y3);
double tmp;
if ((((((t_6 + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (t_2 * t_7)) + (t_8 * t_1)) + t_3) + (t_9 * t_5)) <= ((double) INFINITY)) {
tmp = fma(t_9, t_5, (fma(t_1, t_8, fma(t_2, t_7, (t_6 + (fma(x, j, (z * -k)) * ((i * y1) - (b * y0)))))) + t_3));
} else {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_4) + (y3 * ((c * y4) - (a * y5)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4))) t_4 = Float64(Float64(a * b) - Float64(c * i)) t_5 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_6 = Float64(t_4 * Float64(Float64(x * y) - Float64(z * t))) t_7 = Float64(Float64(c * y0) - Float64(a * y1)) t_8 = Float64(Float64(b * y4) - Float64(i * y5)) t_9 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t_6 + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(t_2 * t_7)) + Float64(t_8 * t_1)) + t_3) + Float64(t_9 * t_5)) <= Inf) tmp = fma(t_9, t_5, Float64(fma(t_1, t_8, fma(t_2, t_7, Float64(t_6 + Float64(fma(x, j, Float64(z * Float64(-k))) * Float64(Float64(i * y1) - Float64(b * y0)))))) + t_3)); else tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_4) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(t$95$4 * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t$95$6 + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision] + N[(t$95$9 * t$95$5), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$9 * t$95$5 + N[(N[(t$95$1 * t$95$8 + N[(t$95$2 * t$95$7 + N[(t$95$6 + N[(N[(x * j + N[(z * (-k)), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$4), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\\
t_4 := a \cdot b - c \cdot i\\
t_5 := y1 \cdot y4 - y0 \cdot y5\\
t_6 := t_4 \cdot \left(x \cdot y - z \cdot t\right)\\
t_7 := c \cdot y0 - a \cdot y1\\
t_8 := b \cdot y4 - i \cdot y5\\
t_9 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;\left(\left(\left(\left(t_6 + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + t_2 \cdot t_7\right) + t_8 \cdot t_1\right) + t_3\right) + t_9 \cdot t_5 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t_9, t_5, \mathsf{fma}\left(t_1, t_8, \mathsf{fma}\left(t_2, t_7, t_6 + \mathsf{fma}\left(x, j, z \cdot \left(-k\right)\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\right) + t_3\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_4 + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\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 91.8%
Simplified91.8%
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%
Simplified9.7%
Taylor expanded in y around inf 39.2%
mul-1-neg39.2%
*-commutative39.2%
*-commutative39.2%
*-commutative39.2%
*-commutative39.2%
Simplified39.2%
Final simplification55.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i)))
(t_2
(+
(+
(+
(+
(+
(* t_1 (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x t_1) (* y3 (- (* c y4) (* a 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 * b) - (c * i);
double t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5)))));
}
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 * b) - (c * i);
double t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * b) - (c * i) t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * b) - Float64(c * i)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(t_1 * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_1) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * 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 * b) - (c * i); t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(t$95$1 * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $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$2, Infinity], t$95$2, N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := \left(\left(\left(\left(t_1 \cdot \left(x \cdot y - z \cdot t\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + \left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_1 + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\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 91.8%
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%
Simplified9.7%
Taylor expanded in y around inf 39.2%
mul-1-neg39.2%
*-commutative39.2%
*-commutative39.2%
*-commutative39.2%
*-commutative39.2%
Simplified39.2%
Final simplification55.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y5
(-
(* i (- (* y k) (* t j)))
(+ (* y0 (- (* k y2) (* j y3))) (* a (- (* y y3) (* t y2)))))))
(t_2 (- (* a y5) (* c y4)))
(t_3
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_2))))
(t_4
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))))
(if (<= y2 -2.7e+149)
t_3
(if (<= y2 -3.5e+110)
t_4
(if (<= y2 -1.06e+27)
(*
t
(+
(* z (- (* c i) (* a b)))
(+ (* j (- (* b y4) (* i y5))) (* y2 t_2))))
(if (<= y2 -4.2e-90)
t_1
(if (<= y2 -4e-186)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 -1.45e-263)
t_1
(if (<= y2 2.1e-186)
t_4
(if (<= y2 5.4e+80)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+
(* x (- (* a b) (* c i)))
(* y3 (- (* c y4) (* a y5))))))
(if (or (<= y2 1.3e+202) (not (<= y2 4.5e+241)))
t_3
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 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2)))));
double t_2 = (a * y5) - (c * y4);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (y2 <= -2.7e+149) {
tmp = t_3;
} else if (y2 <= -3.5e+110) {
tmp = t_4;
} else if (y2 <= -1.06e+27) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)));
} else if (y2 <= -4.2e-90) {
tmp = t_1;
} else if (y2 <= -4e-186) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= -1.45e-263) {
tmp = t_1;
} else if (y2 <= 2.1e-186) {
tmp = t_4;
} else if (y2 <= 5.4e+80) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if ((y2 <= 1.3e+202) || !(y2 <= 4.5e+241)) {
tmp = t_3;
} 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) :: tmp
t_1 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2)))))
t_2 = (a * y5) - (c * y4)
t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
if (y2 <= (-2.7d+149)) then
tmp = t_3
else if (y2 <= (-3.5d+110)) then
tmp = t_4
else if (y2 <= (-1.06d+27)) then
tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)))
else if (y2 <= (-4.2d-90)) then
tmp = t_1
else if (y2 <= (-4d-186)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= (-1.45d-263)) then
tmp = t_1
else if (y2 <= 2.1d-186) then
tmp = t_4
else if (y2 <= 5.4d+80) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
else if ((y2 <= 1.3d+202) .or. (.not. (y2 <= 4.5d+241))) then
tmp = t_3
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 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2)))));
double t_2 = (a * y5) - (c * y4);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (y2 <= -2.7e+149) {
tmp = t_3;
} else if (y2 <= -3.5e+110) {
tmp = t_4;
} else if (y2 <= -1.06e+27) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)));
} else if (y2 <= -4.2e-90) {
tmp = t_1;
} else if (y2 <= -4e-186) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= -1.45e-263) {
tmp = t_1;
} else if (y2 <= 2.1e-186) {
tmp = t_4;
} else if (y2 <= 5.4e+80) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if ((y2 <= 1.3e+202) || !(y2 <= 4.5e+241)) {
tmp = t_3;
} 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 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2))))) t_2 = (a * y5) - (c * y4) t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) tmp = 0 if y2 <= -2.7e+149: tmp = t_3 elif y2 <= -3.5e+110: tmp = t_4 elif y2 <= -1.06e+27: tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2))) elif y2 <= -4.2e-90: tmp = t_1 elif y2 <= -4e-186: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= -1.45e-263: tmp = t_1 elif y2 <= 2.1e-186: tmp = t_4 elif y2 <= 5.4e+80: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) elif (y2 <= 1.3e+202) or not (y2 <= 4.5e+241): tmp = t_3 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(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) - Float64(Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(a * Float64(Float64(y * y3) - Float64(t * y2)))))) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = 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_2))) t_4 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (y2 <= -2.7e+149) tmp = t_3; elseif (y2 <= -3.5e+110) tmp = t_4; elseif (y2 <= -1.06e+27) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * t_2)))); elseif (y2 <= -4.2e-90) tmp = t_1; elseif (y2 <= -4e-186) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= -1.45e-263) tmp = t_1; elseif (y2 <= 2.1e-186) tmp = t_4; elseif (y2 <= 5.4e+80) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif ((y2 <= 1.3e+202) || !(y2 <= 4.5e+241)) tmp = t_3; 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 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2))))); t_2 = (a * y5) - (c * y4); t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (y2 <= -2.7e+149) tmp = t_3; elseif (y2 <= -3.5e+110) tmp = t_4; elseif (y2 <= -1.06e+27) tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2))); elseif (y2 <= -4.2e-90) tmp = t_1; elseif (y2 <= -4e-186) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= -1.45e-263) tmp = t_1; elseif (y2 <= 2.1e-186) tmp = t_4; elseif (y2 <= 5.4e+80) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); elseif ((y2 <= 1.3e+202) || ~((y2 <= 4.5e+241))) tmp = t_3; 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[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = 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$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.7e+149], t$95$3, If[LessEqual[y2, -3.5e+110], t$95$4, If[LessEqual[y2, -1.06e+27], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.2e-90], t$95$1, If[LessEqual[y2, -4e-186], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.45e-263], t$95$1, If[LessEqual[y2, 2.1e-186], t$95$4, If[LessEqual[y2, 5.4e+80], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y2, 1.3e+202], N[Not[LessEqual[y2, 4.5e+241]], $MachinePrecision]], t$95$3, t$95$4]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) - \left(y0 \cdot \left(k \cdot y2 - j \cdot y3\right) + a \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\right)\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := 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_2\right)\\
t_4 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;y2 \leq -2.7 \cdot 10^{+149}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -3.5 \cdot 10^{+110}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y2 \leq -1.06 \cdot 10^{+27}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot t_2\right)\right)\\
\mathbf{elif}\;y2 \leq -4.2 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -4 \cdot 10^{-186}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq -1.45 \cdot 10^{-263}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{-186}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y2 \leq 5.4 \cdot 10^{+80}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 1.3 \cdot 10^{+202} \lor \neg \left(y2 \leq 4.5 \cdot 10^{+241}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if y2 < -2.7000000000000001e149 or 5.39999999999999966e80 < y2 < 1.3000000000000001e202 or 4.49999999999999993e241 < y2 Initial program 28.6%
Simplified28.6%
Taylor expanded in y2 around inf 71.6%
if -2.7000000000000001e149 < y2 < -3.4999999999999999e110 or -1.45000000000000002e-263 < y2 < 2.1000000000000002e-186 or 1.3000000000000001e202 < y2 < 4.49999999999999993e241Initial program 25.8%
Simplified25.8%
Taylor expanded in b around inf 65.4%
if -3.4999999999999999e110 < y2 < -1.05999999999999994e27Initial program 14.9%
Simplified14.9%
Taylor expanded in t around inf 55.3%
associate--l+55.3%
*-commutative55.3%
mul-1-neg55.3%
*-commutative55.3%
*-commutative55.3%
*-commutative55.3%
*-commutative55.3%
Simplified55.3%
if -1.05999999999999994e27 < y2 < -4.1999999999999998e-90 or -3.9999999999999996e-186 < y2 < -1.45000000000000002e-263Initial program 29.5%
Simplified29.5%
Taylor expanded in y5 around -inf 51.6%
mul-1-neg51.6%
associate--l+51.6%
*-commutative51.6%
Simplified51.6%
if -4.1999999999999998e-90 < y2 < -3.9999999999999996e-186Initial program 42.1%
Simplified42.1%
Taylor expanded in z around -inf 52.6%
Taylor expanded in y3 around inf 68.9%
if 2.1000000000000002e-186 < y2 < 5.39999999999999966e80Initial program 33.7%
Simplified44.1%
Taylor expanded in y around inf 59.2%
mul-1-neg59.2%
*-commutative59.2%
*-commutative59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Final simplification63.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y0
(+
(* c (- (* x y2) (* z y3)))
(+ (* y5 (- (* j y3) (* k y2))) (* b (- (* z k) (* x j)))))))
(t_2 (- (* x y) (* z t)))
(t_3
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5))))))))
(if (<= a -1.1e+88)
(* (* a b) t_2)
(if (<= a -8.5e-63)
t_1
(if (<= a -3.5e-267)
t_3
(if (<= a 1.9e-248)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= a 1.4e-165)
(*
i
(-
(* y1 (- (* x j) (* z k)))
(+ (* c t_2) (* y5 (- (* t j) (* y k))))))
(if (<= a 8.6e-58)
t_1
(if (<= a 3.3e+92)
t_3
(if (<= a 2.4e+159)
(*
y5
(-
(* i (- (* y k) (* t j)))
(+
(* y0 (- (* k y2) (* j y3)))
(* a (- (* y y3) (* t y2))))))
(if (<= a 2.6e+249)
(* (* y b) (- (* x a) (* k y4)))
(if (<= a 1.02e+271)
(*
z
(+
(* k (- (* b y0) (* i y1)))
(+
(* y3 (- (* a y1) (* c y0)))
(* t (- (* c i) (* a b))))))
(* y1 (* z (- (* a y3) (* i k))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j)))));
double t_2 = (x * y) - (z * t);
double t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double tmp;
if (a <= -1.1e+88) {
tmp = (a * b) * t_2;
} else if (a <= -8.5e-63) {
tmp = t_1;
} else if (a <= -3.5e-267) {
tmp = t_3;
} else if (a <= 1.9e-248) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (a <= 1.4e-165) {
tmp = i * ((y1 * ((x * j) - (z * k))) - ((c * t_2) + (y5 * ((t * j) - (y * k)))));
} else if (a <= 8.6e-58) {
tmp = t_1;
} else if (a <= 3.3e+92) {
tmp = t_3;
} else if (a <= 2.4e+159) {
tmp = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2)))));
} else if (a <= 2.6e+249) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (a <= 1.02e+271) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))));
} else {
tmp = y1 * (z * ((a * y3) - (i * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j)))))
t_2 = (x * y) - (z * t)
t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
if (a <= (-1.1d+88)) then
tmp = (a * b) * t_2
else if (a <= (-8.5d-63)) then
tmp = t_1
else if (a <= (-3.5d-267)) then
tmp = t_3
else if (a <= 1.9d-248) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (a <= 1.4d-165) then
tmp = i * ((y1 * ((x * j) - (z * k))) - ((c * t_2) + (y5 * ((t * j) - (y * k)))))
else if (a <= 8.6d-58) then
tmp = t_1
else if (a <= 3.3d+92) then
tmp = t_3
else if (a <= 2.4d+159) then
tmp = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2)))))
else if (a <= 2.6d+249) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (a <= 1.02d+271) then
tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))))
else
tmp = y1 * (z * ((a * y3) - (i * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j)))));
double t_2 = (x * y) - (z * t);
double t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double tmp;
if (a <= -1.1e+88) {
tmp = (a * b) * t_2;
} else if (a <= -8.5e-63) {
tmp = t_1;
} else if (a <= -3.5e-267) {
tmp = t_3;
} else if (a <= 1.9e-248) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (a <= 1.4e-165) {
tmp = i * ((y1 * ((x * j) - (z * k))) - ((c * t_2) + (y5 * ((t * j) - (y * k)))));
} else if (a <= 8.6e-58) {
tmp = t_1;
} else if (a <= 3.3e+92) {
tmp = t_3;
} else if (a <= 2.4e+159) {
tmp = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2)))));
} else if (a <= 2.6e+249) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (a <= 1.02e+271) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))));
} else {
tmp = y1 * (z * ((a * y3) - (i * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j))))) t_2 = (x * y) - (z * t) t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) tmp = 0 if a <= -1.1e+88: tmp = (a * b) * t_2 elif a <= -8.5e-63: tmp = t_1 elif a <= -3.5e-267: tmp = t_3 elif a <= 1.9e-248: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif a <= 1.4e-165: tmp = i * ((y1 * ((x * j) - (z * k))) - ((c * t_2) + (y5 * ((t * j) - (y * k))))) elif a <= 8.6e-58: tmp = t_1 elif a <= 3.3e+92: tmp = t_3 elif a <= 2.4e+159: tmp = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2))))) elif a <= 2.6e+249: tmp = (y * b) * ((x * a) - (k * y4)) elif a <= 1.02e+271: tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b))))) else: tmp = y1 * (z * ((a * y3) - (i * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(b * Float64(Float64(z * k) - Float64(x * j)))))) t_2 = Float64(Float64(x * y) - Float64(z * t)) t_3 = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))) tmp = 0.0 if (a <= -1.1e+88) tmp = Float64(Float64(a * b) * t_2); elseif (a <= -8.5e-63) tmp = t_1; elseif (a <= -3.5e-267) tmp = t_3; elseif (a <= 1.9e-248) 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 (a <= 1.4e-165) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) - Float64(Float64(c * t_2) + Float64(y5 * Float64(Float64(t * j) - Float64(y * k)))))); elseif (a <= 8.6e-58) tmp = t_1; elseif (a <= 3.3e+92) tmp = t_3; elseif (a <= 2.4e+159) tmp = Float64(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) - Float64(Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(a * Float64(Float64(y * y3) - Float64(t * y2)))))); elseif (a <= 2.6e+249) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (a <= 1.02e+271) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))); else tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j))))); t_2 = (x * y) - (z * t); t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); tmp = 0.0; if (a <= -1.1e+88) tmp = (a * b) * t_2; elseif (a <= -8.5e-63) tmp = t_1; elseif (a <= -3.5e-267) tmp = t_3; elseif (a <= 1.9e-248) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (a <= 1.4e-165) tmp = i * ((y1 * ((x * j) - (z * k))) - ((c * t_2) + (y5 * ((t * j) - (y * k))))); elseif (a <= 8.6e-58) tmp = t_1; elseif (a <= 3.3e+92) tmp = t_3; elseif (a <= 2.4e+159) tmp = y5 * ((i * ((y * k) - (t * j))) - ((y0 * ((k * y2) - (j * y3))) + (a * ((y * y3) - (t * y2))))); elseif (a <= 2.6e+249) tmp = (y * b) * ((x * a) - (k * y4)); elseif (a <= 1.02e+271) tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b))))); else tmp = y1 * (z * ((a * y3) - (i * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.1e+88], N[(N[(a * b), $MachinePrecision] * t$95$2), $MachinePrecision], If[LessEqual[a, -8.5e-63], t$95$1, If[LessEqual[a, -3.5e-267], t$95$3, If[LessEqual[a, 1.9e-248], 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[a, 1.4e-165], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(c * t$95$2), $MachinePrecision] + N[(y5 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.6e-58], t$95$1, If[LessEqual[a, 3.3e+92], t$95$3, If[LessEqual[a, 2.4e+159], N[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e+249], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.02e+271], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\right)\\
t_2 := x \cdot y - z \cdot t\\
t_3 := y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+88}:\\
\;\;\;\;\left(a \cdot b\right) \cdot t_2\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.5 \cdot 10^{-267}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-248}:\\
\;\;\;\;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}\;a \leq 1.4 \cdot 10^{-165}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) - \left(c \cdot t_2 + y5 \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+92}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{+159}:\\
\;\;\;\;y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) - \left(y0 \cdot \left(k \cdot y2 - j \cdot y3\right) + a \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+249}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{+271}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\end{array}
\end{array}
if a < -1.10000000000000004e88Initial program 24.5%
Simplified24.5%
Taylor expanded in b around inf 41.1%
Taylor expanded in a around inf 52.0%
associate-*r*53.9%
Simplified53.9%
if -1.10000000000000004e88 < a < -8.49999999999999969e-63 or 1.4e-165 < a < 8.5999999999999999e-58Initial program 36.2%
Simplified44.2%
Taylor expanded in y0 around inf 68.6%
*-commutative68.6%
mul-1-neg68.6%
*-commutative68.6%
*-commutative68.6%
Simplified68.6%
if -8.49999999999999969e-63 < a < -3.4999999999999999e-267 or 8.5999999999999999e-58 < a < 3.29999999999999974e92Initial program 29.5%
Simplified38.3%
Taylor expanded in y around inf 63.6%
mul-1-neg63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
if -3.4999999999999999e-267 < a < 1.8999999999999999e-248Initial program 43.4%
Simplified43.4%
Taylor expanded in y2 around inf 48.8%
if 1.8999999999999999e-248 < a < 1.4e-165Initial program 6.6%
Simplified6.6%
Taylor expanded in i around -inf 62.7%
if 3.29999999999999974e92 < a < 2.4e159Initial program 18.7%
Simplified18.7%
Taylor expanded in y5 around -inf 65.0%
mul-1-neg65.0%
associate--l+65.0%
*-commutative65.0%
Simplified65.0%
if 2.4e159 < a < 2.60000000000000019e249Initial program 27.3%
Simplified36.4%
Taylor expanded in y around inf 55.0%
mul-1-neg55.0%
*-commutative55.0%
*-commutative55.0%
*-commutative55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in b around inf 73.0%
associate-*r*73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
if 2.60000000000000019e249 < a < 1.02e271Initial program 0.0%
Simplified0.0%
Taylor expanded in z around -inf 100.0%
if 1.02e271 < a Initial program 43.8%
Simplified43.8%
Taylor expanded in z around -inf 37.6%
Taylor expanded in y1 around inf 56.5%
*-commutative56.5%
associate-*l*62.7%
cancel-sign-sub-inv62.7%
metadata-eval62.7%
*-lft-identity62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
Simplified62.7%
Final simplification62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k))))
(if (<= i -5e+214)
(* (* y k) (- (* i y5) (* b y4)))
(if (<= i -8.6e+136)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= i -5800.0)
(* j (+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4)))))
(if (<= i -3.2e-146)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))
(if (<= i -1.18e-210)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= i 3.5e-306)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= i 4.5e-276)
(*
y2
(+
(- (* k (- (* y1 y4) (* y0 y5))) (* y1 (* x a)))
(* t (- (* a y5) (* c y4)))))
(if (<= i 5.5e-240)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= i 1.45e+30)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double tmp;
if (i <= -5e+214) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (i <= -8.6e+136) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -5800.0) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (i <= -3.2e-146) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (i <= -1.18e-210) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (i <= 3.5e-306) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (i <= 4.5e-276) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))));
} else if (i <= 5.5e-240) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (i <= 1.45e+30) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (t * j) - (y * k)
if (i <= (-5d+214)) then
tmp = (y * k) * ((i * y5) - (b * y4))
else if (i <= (-8.6d+136)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (i <= (-5800.0d0)) then
tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4))))
else if (i <= (-3.2d-146)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
else if (i <= (-1.18d-210)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (i <= 3.5d-306) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (i <= 4.5d-276) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))))
else if (i <= 5.5d-240) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (i <= 1.45d+30) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double tmp;
if (i <= -5e+214) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (i <= -8.6e+136) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -5800.0) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (i <= -3.2e-146) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (i <= -1.18e-210) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (i <= 3.5e-306) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (i <= 4.5e-276) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))));
} else if (i <= 5.5e-240) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (i <= 1.45e+30) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) tmp = 0 if i <= -5e+214: tmp = (y * k) * ((i * y5) - (b * y4)) elif i <= -8.6e+136: tmp = c * (y * ((y3 * y4) - (x * i))) elif i <= -5800.0: tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) elif i <= -3.2e-146: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) elif i <= -1.18e-210: tmp = (z * y3) * ((a * y1) - (c * y0)) elif i <= 3.5e-306: tmp = c * (y0 * ((x * y2) - (z * y3))) elif i <= 4.5e-276: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4)))) elif i <= 5.5e-240: tmp = y4 * (t * ((b * j) - (c * y2))) elif i <= 1.45e+30: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) else: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (i <= -5e+214) tmp = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))); elseif (i <= -8.6e+136) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (i <= -5800.0) tmp = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))); elseif (i <= -3.2e-146) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (i <= -1.18e-210) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (i <= 3.5e-306) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (i <= 4.5e-276) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(y1 * Float64(x * a))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (i <= 5.5e-240) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (i <= 1.45e+30) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); else tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); tmp = 0.0; if (i <= -5e+214) tmp = (y * k) * ((i * y5) - (b * y4)); elseif (i <= -8.6e+136) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (i <= -5800.0) tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))); elseif (i <= -3.2e-146) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); elseif (i <= -1.18e-210) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (i <= 3.5e-306) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (i <= 4.5e-276) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4)))); elseif (i <= 5.5e-240) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (i <= 1.45e+30) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); else tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5e+214], N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.6e+136], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5800.0], N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.2e-146], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.18e-210], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e-306], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.5e-276], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e-240], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.45e+30], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
\mathbf{if}\;i \leq -5 \cdot 10^{+214}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
\mathbf{elif}\;i \leq -8.6 \cdot 10^{+136}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;i \leq -5800:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{-146}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq -1.18 \cdot 10^{-210}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{-306}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;i \leq 4.5 \cdot 10^{-276}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - y1 \cdot \left(x \cdot a\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{-240}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{+30}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\end{array}
\end{array}
if i < -4.99999999999999953e214Initial program 13.6%
Simplified18.2%
Taylor expanded in y around inf 63.6%
mul-1-neg63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in k around inf 73.0%
associate-*r*77.3%
*-commutative77.3%
Simplified77.3%
if -4.99999999999999953e214 < i < -8.5999999999999997e136Initial program 36.4%
Simplified45.5%
Taylor expanded in y around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around -inf 64.4%
associate-*r*64.4%
neg-mul-164.4%
mul-1-neg64.4%
unsub-neg64.4%
*-commutative64.4%
Simplified64.4%
if -8.5999999999999997e136 < i < -5800Initial program 24.1%
Simplified27.6%
Taylor expanded in j around inf 59.1%
Taylor expanded in x around 0 55.8%
*-commutative55.8%
+-commutative55.8%
mul-1-neg55.8%
*-commutative55.8%
unsub-neg55.8%
*-commutative55.8%
Simplified55.8%
if -5800 < i < -3.1999999999999999e-146Initial program 30.5%
Simplified30.5%
Taylor expanded in x around inf 55.4%
if -3.1999999999999999e-146 < i < -1.18e-210Initial program 43.1%
Simplified43.1%
Taylor expanded in z around -inf 36.7%
Taylor expanded in y3 around inf 44.0%
if -1.18e-210 < i < 3.50000000000000018e-306Initial program 35.3%
Simplified44.0%
Taylor expanded in y0 around inf 61.1%
*-commutative61.1%
mul-1-neg61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in c around inf 66.1%
if 3.50000000000000018e-306 < i < 4.49999999999999962e-276Initial program 57.1%
Simplified57.1%
Taylor expanded in y2 around inf 85.7%
Taylor expanded in c around 0 85.7%
if 4.49999999999999962e-276 < i < 5.49999999999999957e-240Initial program 30.0%
Simplified30.0%
Taylor expanded in y4 around inf 20.1%
Taylor expanded in t around inf 70.0%
if 5.49999999999999957e-240 < i < 1.4499999999999999e30Initial program 33.9%
Simplified33.9%
Taylor expanded in y4 around inf 58.9%
if 1.4499999999999999e30 < i Initial program 20.6%
Simplified20.6%
Taylor expanded in b around inf 45.2%
Final simplification58.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j))))))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_2))
(* t (- (* a y5) (* c y4)))))))
(if (<= b -6.5e-24)
t_1
(if (<= b -2.2e-133)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= b -8.8e-183)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0)))))
(if (<= b -7.5e-259)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= b 2.15e-108)
t_3
(if (<= b 2.2e-10)
t_1
(if (<= b 5.1e+73)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= b 2.1e+116)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 4.1e+214) t_3 t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
double tmp;
if (b <= -6.5e-24) {
tmp = t_1;
} else if (b <= -2.2e-133) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (b <= -8.8e-183) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (b <= -7.5e-259) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (b <= 2.15e-108) {
tmp = t_3;
} else if (b <= 2.2e-10) {
tmp = t_1;
} else if (b <= 5.1e+73) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (b <= 2.1e+116) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 4.1e+214) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
t_2 = (c * y0) - (a * y1)
t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))))
if (b <= (-6.5d-24)) then
tmp = t_1
else if (b <= (-2.2d-133)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (b <= (-8.8d-183)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
else if (b <= (-7.5d-259)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (b <= 2.15d-108) then
tmp = t_3
else if (b <= 2.2d-10) then
tmp = t_1
else if (b <= 5.1d+73) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (b <= 2.1d+116) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 4.1d+214) then
tmp = t_3
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
double tmp;
if (b <= -6.5e-24) {
tmp = t_1;
} else if (b <= -2.2e-133) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (b <= -8.8e-183) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (b <= -7.5e-259) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (b <= 2.15e-108) {
tmp = t_3;
} else if (b <= 2.2e-10) {
tmp = t_1;
} else if (b <= 5.1e+73) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (b <= 2.1e+116) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 4.1e+214) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) t_2 = (c * y0) - (a * y1) t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4)))) tmp = 0 if b <= -6.5e-24: tmp = t_1 elif b <= -2.2e-133: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif b <= -8.8e-183: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) elif b <= -7.5e-259: tmp = c * (y4 * ((y * y3) - (t * y2))) elif b <= 2.15e-108: tmp = t_3 elif b <= 2.2e-10: tmp = t_1 elif b <= 5.1e+73: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif b <= 2.1e+116: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 4.1e+214: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_2)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (b <= -6.5e-24) tmp = t_1; elseif (b <= -2.2e-133) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= -8.8e-183) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (b <= -7.5e-259) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (b <= 2.15e-108) tmp = t_3; elseif (b <= 2.2e-10) tmp = t_1; elseif (b <= 5.1e+73) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (b <= 2.1e+116) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 4.1e+214) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); t_2 = (c * y0) - (a * y1); t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4)))); tmp = 0.0; if (b <= -6.5e-24) tmp = t_1; elseif (b <= -2.2e-133) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (b <= -8.8e-183) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); elseif (b <= -7.5e-259) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (b <= 2.15e-108) tmp = t_3; elseif (b <= 2.2e-10) tmp = t_1; elseif (b <= 5.1e+73) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (b <= 2.1e+116) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 4.1e+214) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e-24], t$95$1, If[LessEqual[b, -2.2e-133], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.8e-183], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e-259], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.15e-108], t$95$3, If[LessEqual[b, 2.2e-10], t$95$1, If[LessEqual[b, 5.1e+73], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+116], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.1e+214], t$95$3, t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_2\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-133}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-183}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_2\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-259}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-108}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{+73}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{+214}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -6.5e-24 or 2.15e-108 < b < 2.1999999999999999e-10 or 4.1e214 < b Initial program 24.3%
Simplified24.3%
Taylor expanded in b around inf 60.1%
if -6.5e-24 < b < -2.2000000000000001e-133Initial program 45.0%
Simplified45.0%
Taylor expanded in y4 around inf 50.5%
Taylor expanded in y1 around inf 55.8%
if -2.2000000000000001e-133 < b < -8.7999999999999999e-183Initial program 46.6%
Simplified46.6%
Taylor expanded in x around inf 72.8%
if -8.7999999999999999e-183 < b < -7.50000000000000052e-259Initial program 17.8%
Simplified17.8%
Taylor expanded in y4 around inf 35.7%
Taylor expanded in c around inf 47.9%
if -7.50000000000000052e-259 < b < 2.15e-108 or 2.1000000000000001e116 < b < 4.1e214Initial program 37.8%
Simplified37.8%
Taylor expanded in y2 around inf 61.4%
if 2.1999999999999999e-10 < b < 5.10000000000000024e73Initial program 13.3%
Simplified33.3%
Taylor expanded in y0 around inf 54.2%
*-commutative54.2%
mul-1-neg54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in y5 around inf 61.0%
if 5.10000000000000024e73 < b < 2.1000000000000001e116Initial program 9.1%
Simplified18.2%
Taylor expanded in y0 around inf 45.5%
*-commutative45.5%
mul-1-neg45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in c around inf 64.6%
Final simplification60.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5)))
(t_2
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= i -8.8e+216)
(* (* y k) (- (* i y5) (* b y4)))
(if (<= i -1.15e+137)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= i -1.35e-35)
(* j (+ (* t t_1) (* y3 (- (* y0 y5) (* y1 y4)))))
(if (<= i -8.2e-122)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= i -3.1e-212)
t_2
(if (<= i 1.5e-279)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= i 8.5e-246)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= i 3e-37)
t_2
(if (<= i 4.2e+152)
(* t (* j t_1))
(* (* y b) (- (* x a) (* k y4))))))))))))))
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 * y4) - (i * y5);
double t_2 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (i <= -8.8e+216) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (i <= -1.15e+137) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -1.35e-35) {
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (i <= -8.2e-122) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (i <= -3.1e-212) {
tmp = t_2;
} else if (i <= 1.5e-279) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (i <= 8.5e-246) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (i <= 3e-37) {
tmp = t_2;
} else if (i <= 4.2e+152) {
tmp = t * (j * t_1);
} else {
tmp = (y * b) * ((x * a) - (k * y4));
}
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 * y4) - (i * y5)
t_2 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (i <= (-8.8d+216)) then
tmp = (y * k) * ((i * y5) - (b * y4))
else if (i <= (-1.15d+137)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (i <= (-1.35d-35)) then
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))))
else if (i <= (-8.2d-122)) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (i <= (-3.1d-212)) then
tmp = t_2
else if (i <= 1.5d-279) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (i <= 8.5d-246) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (i <= 3d-37) then
tmp = t_2
else if (i <= 4.2d+152) then
tmp = t * (j * t_1)
else
tmp = (y * b) * ((x * a) - (k * y4))
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 * y4) - (i * y5);
double t_2 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (i <= -8.8e+216) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (i <= -1.15e+137) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -1.35e-35) {
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (i <= -8.2e-122) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (i <= -3.1e-212) {
tmp = t_2;
} else if (i <= 1.5e-279) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (i <= 8.5e-246) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (i <= 3e-37) {
tmp = t_2;
} else if (i <= 4.2e+152) {
tmp = t * (j * t_1);
} else {
tmp = (y * b) * ((x * a) - (k * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if i <= -8.8e+216: tmp = (y * k) * ((i * y5) - (b * y4)) elif i <= -1.15e+137: tmp = c * (y * ((y3 * y4) - (x * i))) elif i <= -1.35e-35: tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) elif i <= -8.2e-122: tmp = t * (y2 * ((a * y5) - (c * y4))) elif i <= -3.1e-212: tmp = t_2 elif i <= 1.5e-279: tmp = c * (y0 * ((x * y2) - (z * y3))) elif i <= 8.5e-246: tmp = y4 * (t * ((b * j) - (c * y2))) elif i <= 3e-37: tmp = t_2 elif i <= 4.2e+152: tmp = t * (j * t_1) else: tmp = (y * b) * ((x * a) - (k * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = 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))))) tmp = 0.0 if (i <= -8.8e+216) tmp = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))); elseif (i <= -1.15e+137) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (i <= -1.35e-35) tmp = Float64(j * Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))); elseif (i <= -8.2e-122) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (i <= -3.1e-212) tmp = t_2; elseif (i <= 1.5e-279) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (i <= 8.5e-246) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (i <= 3e-37) tmp = t_2; elseif (i <= 4.2e+152) tmp = Float64(t * Float64(j * t_1)); else tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); 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 * y4) - (i * y5); t_2 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (i <= -8.8e+216) tmp = (y * k) * ((i * y5) - (b * y4)); elseif (i <= -1.15e+137) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (i <= -1.35e-35) tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))); elseif (i <= -8.2e-122) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (i <= -3.1e-212) tmp = t_2; elseif (i <= 1.5e-279) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (i <= 8.5e-246) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (i <= 3e-37) tmp = t_2; elseif (i <= 4.2e+152) tmp = t * (j * t_1); else tmp = (y * b) * ((x * a) - (k * y4)); 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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[i, -8.8e+216], N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.15e+137], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.35e-35], N[(j * N[(N[(t * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.2e-122], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.1e-212], t$95$2, If[LessEqual[i, 1.5e-279], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e-246], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e-37], t$95$2, If[LessEqual[i, 4.2e+152], N[(t * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := 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{if}\;i \leq -8.8 \cdot 10^{+216}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{+137}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-35}:\\
\;\;\;\;j \cdot \left(t \cdot t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq -8.2 \cdot 10^{-122}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq -3.1 \cdot 10^{-212}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.5 \cdot 10^{-279}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-246}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{+152}:\\
\;\;\;\;t \cdot \left(j \cdot t_1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\end{array}
\end{array}
if i < -8.8e216Initial program 13.6%
Simplified18.2%
Taylor expanded in y around inf 63.6%
mul-1-neg63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in k around inf 73.0%
associate-*r*77.3%
*-commutative77.3%
Simplified77.3%
if -8.8e216 < i < -1.15e137Initial program 36.4%
Simplified45.5%
Taylor expanded in y around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around -inf 64.4%
associate-*r*64.4%
neg-mul-164.4%
mul-1-neg64.4%
unsub-neg64.4%
*-commutative64.4%
Simplified64.4%
if -1.15e137 < i < -1.3499999999999999e-35Initial program 27.3%
Simplified33.3%
Taylor expanded in j around inf 58.0%
Taylor expanded in x around 0 55.2%
*-commutative55.2%
+-commutative55.2%
mul-1-neg55.2%
*-commutative55.2%
unsub-neg55.2%
*-commutative55.2%
Simplified55.2%
if -1.3499999999999999e-35 < i < -8.2000000000000001e-122Initial program 21.7%
Simplified21.7%
Taylor expanded in y2 around inf 65.5%
Taylor expanded in t around -inf 52.7%
associate-*r*52.7%
neg-mul-152.7%
Simplified52.7%
if -8.2000000000000001e-122 < i < -3.10000000000000006e-212 or 8.4999999999999998e-246 < i < 3e-37Initial program 40.5%
Simplified40.5%
Taylor expanded in y4 around inf 55.4%
if -3.10000000000000006e-212 < i < 1.5e-279Initial program 40.4%
Simplified47.1%
Taylor expanded in y0 around inf 60.7%
*-commutative60.7%
mul-1-neg60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in c around inf 64.7%
if 1.5e-279 < i < 8.4999999999999998e-246Initial program 30.0%
Simplified30.0%
Taylor expanded in y4 around inf 20.1%
Taylor expanded in t around inf 70.0%
if 3e-37 < i < 4.2000000000000003e152Initial program 14.6%
Simplified23.2%
Taylor expanded in j around inf 43.1%
Taylor expanded in t around inf 46.9%
if 4.2000000000000003e152 < i Initial program 26.7%
Simplified33.3%
Taylor expanded in y around inf 47.1%
mul-1-neg47.1%
*-commutative47.1%
*-commutative47.1%
*-commutative47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in b around inf 51.1%
associate-*r*54.3%
*-commutative54.3%
*-commutative54.3%
Simplified54.3%
Final simplification57.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j)))))))
(if (<= i -6.8e+214)
(* (* y k) (- (* i y5) (* b y4)))
(if (<= i -3.75e+140)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= i -1.08e-38)
(* j (+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4)))))
(if (<= i -6.8e-69)
t_2
(if (<= i -1.35e-162)
(*
y2
(+
(- (* k (- (* y1 y4) (* y0 y5))) (* y1 (* x a)))
(* t (- (* a y5) (* c y4)))))
(if (<= i -4e-208)
t_2
(if (<= i 7e-255)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= i 1.05e+31)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t 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 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double tmp;
if (i <= -6.8e+214) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (i <= -3.75e+140) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -1.08e-38) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (i <= -6.8e-69) {
tmp = t_2;
} else if (i <= -1.35e-162) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))));
} else if (i <= -4e-208) {
tmp = t_2;
} else if (i <= 7e-255) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (i <= 1.05e+31) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} 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 = (t * j) - (y * k)
t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
if (i <= (-6.8d+214)) then
tmp = (y * k) * ((i * y5) - (b * y4))
else if (i <= (-3.75d+140)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (i <= (-1.08d-38)) then
tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4))))
else if (i <= (-6.8d-69)) then
tmp = t_2
else if (i <= (-1.35d-162)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))))
else if (i <= (-4d-208)) then
tmp = t_2
else if (i <= 7d-255) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (i <= 1.05d+31) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
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 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double tmp;
if (i <= -6.8e+214) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (i <= -3.75e+140) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -1.08e-38) {
tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (i <= -6.8e-69) {
tmp = t_2;
} else if (i <= -1.35e-162) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))));
} else if (i <= -4e-208) {
tmp = t_2;
} else if (i <= 7e-255) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (i <= 1.05e+31) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} 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 = (t * j) - (y * k) t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) tmp = 0 if i <= -6.8e+214: tmp = (y * k) * ((i * y5) - (b * y4)) elif i <= -3.75e+140: tmp = c * (y * ((y3 * y4) - (x * i))) elif i <= -1.08e-38: tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) elif i <= -6.8e-69: tmp = t_2 elif i <= -1.35e-162: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4)))) elif i <= -4e-208: tmp = t_2 elif i <= 7e-255: tmp = c * (y0 * ((x * y2) - (z * y3))) elif i <= 1.05e+31: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (i <= -6.8e+214) tmp = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))); elseif (i <= -3.75e+140) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (i <= -1.08e-38) tmp = Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))); elseif (i <= -6.8e-69) tmp = t_2; elseif (i <= -1.35e-162) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(y1 * Float64(x * a))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (i <= -4e-208) tmp = t_2; elseif (i <= 7e-255) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (i <= 1.05e+31) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); 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 = (t * j) - (y * k); t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (i <= -6.8e+214) tmp = (y * k) * ((i * y5) - (b * y4)); elseif (i <= -3.75e+140) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (i <= -1.08e-38) tmp = j * ((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))); elseif (i <= -6.8e-69) tmp = t_2; elseif (i <= -1.35e-162) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4)))); elseif (i <= -4e-208) tmp = t_2; elseif (i <= 7e-255) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (i <= 1.05e+31) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6.8e+214], N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.75e+140], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.08e-38], N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6.8e-69], t$95$2, If[LessEqual[i, -1.35e-162], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4e-208], t$95$2, If[LessEqual[i, 7e-255], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e+31], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;i \leq -6.8 \cdot 10^{+214}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
\mathbf{elif}\;i \leq -3.75 \cdot 10^{+140}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;i \leq -1.08 \cdot 10^{-38}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq -6.8 \cdot 10^{-69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-162}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - y1 \cdot \left(x \cdot a\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq -4 \cdot 10^{-208}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 7 \cdot 10^{-255}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{+31}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -6.7999999999999996e214Initial program 13.6%
Simplified18.2%
Taylor expanded in y around inf 63.6%
mul-1-neg63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in k around inf 73.0%
associate-*r*77.3%
*-commutative77.3%
Simplified77.3%
if -6.7999999999999996e214 < i < -3.7499999999999999e140Initial program 36.4%
Simplified45.5%
Taylor expanded in y around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around -inf 64.4%
associate-*r*64.4%
neg-mul-164.4%
mul-1-neg64.4%
unsub-neg64.4%
*-commutative64.4%
Simplified64.4%
if -3.7499999999999999e140 < i < -1.08e-38Initial program 25.7%
Simplified31.4%
Taylor expanded in j around inf 54.8%
Taylor expanded in x around 0 52.2%
*-commutative52.2%
+-commutative52.2%
mul-1-neg52.2%
*-commutative52.2%
unsub-neg52.2%
*-commutative52.2%
Simplified52.2%
if -1.08e-38 < i < -6.80000000000000016e-69 or -1.34999999999999992e-162 < i < -4.0000000000000004e-208 or 1.04999999999999989e31 < i Initial program 26.2%
Simplified26.2%
Taylor expanded in b around inf 48.9%
if -6.80000000000000016e-69 < i < -1.34999999999999992e-162Initial program 31.9%
Simplified31.9%
Taylor expanded in y2 around inf 73.9%
Taylor expanded in c around 0 53.1%
if -4.0000000000000004e-208 < i < 6.99999999999999958e-255Initial program 35.3%
Simplified40.3%
Taylor expanded in y0 around inf 53.1%
*-commutative53.1%
mul-1-neg53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in c around inf 56.3%
if 6.99999999999999958e-255 < i < 1.04999999999999989e31Initial program 33.9%
Simplified33.9%
Taylor expanded in y4 around inf 57.5%
Final simplification55.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5)))))))
(t_2
(*
y0
(+
(* c (- (* x y2) (* z y3)))
(+ (* y5 (- (* j y3) (* k y2))) (* b (- (* z k) (* x j)))))))
(t_3 (* k (- (* y1 y4) (* y0 y5))))
(t_4 (- (* a y5) (* c y4)))
(t_5 (* t t_4))
(t_6
(*
t
(+
(* z (- (* c i) (* a b)))
(+ (* j (- (* b y4) (* i y5))) (* y2 t_4))))))
(if (<= y -3e+24)
t_1
(if (<= y -4.8e-183)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= y -3.5e-234)
t_2
(if (<= y 3.6e-292)
t_6
(if (<= y 1.02e-206)
t_2
(if (<= y 7.5e-120)
(* y2 (+ (+ t_3 (* x (- (* c y0) (* a y1)))) t_5))
(if (<= y 2.85e-61)
t_6
(if (<= y 2.95e+87)
(* y2 (+ (- t_3 (* y1 (* x a))) t_5))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double t_2 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j)))));
double t_3 = k * ((y1 * y4) - (y0 * y5));
double t_4 = (a * y5) - (c * y4);
double t_5 = t * t_4;
double t_6 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_4)));
double tmp;
if (y <= -3e+24) {
tmp = t_1;
} else if (y <= -4.8e-183) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y <= -3.5e-234) {
tmp = t_2;
} else if (y <= 3.6e-292) {
tmp = t_6;
} else if (y <= 1.02e-206) {
tmp = t_2;
} else if (y <= 7.5e-120) {
tmp = y2 * ((t_3 + (x * ((c * y0) - (a * y1)))) + t_5);
} else if (y <= 2.85e-61) {
tmp = t_6;
} else if (y <= 2.95e+87) {
tmp = y2 * ((t_3 - (y1 * (x * a))) + t_5);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
t_2 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j)))))
t_3 = k * ((y1 * y4) - (y0 * y5))
t_4 = (a * y5) - (c * y4)
t_5 = t * t_4
t_6 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_4)))
if (y <= (-3d+24)) then
tmp = t_1
else if (y <= (-4.8d-183)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (y <= (-3.5d-234)) then
tmp = t_2
else if (y <= 3.6d-292) then
tmp = t_6
else if (y <= 1.02d-206) then
tmp = t_2
else if (y <= 7.5d-120) then
tmp = y2 * ((t_3 + (x * ((c * y0) - (a * y1)))) + t_5)
else if (y <= 2.85d-61) then
tmp = t_6
else if (y <= 2.95d+87) then
tmp = y2 * ((t_3 - (y1 * (x * a))) + t_5)
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 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double t_2 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j)))));
double t_3 = k * ((y1 * y4) - (y0 * y5));
double t_4 = (a * y5) - (c * y4);
double t_5 = t * t_4;
double t_6 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_4)));
double tmp;
if (y <= -3e+24) {
tmp = t_1;
} else if (y <= -4.8e-183) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y <= -3.5e-234) {
tmp = t_2;
} else if (y <= 3.6e-292) {
tmp = t_6;
} else if (y <= 1.02e-206) {
tmp = t_2;
} else if (y <= 7.5e-120) {
tmp = y2 * ((t_3 + (x * ((c * y0) - (a * y1)))) + t_5);
} else if (y <= 2.85e-61) {
tmp = t_6;
} else if (y <= 2.95e+87) {
tmp = y2 * ((t_3 - (y1 * (x * a))) + t_5);
} 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 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) t_2 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j))))) t_3 = k * ((y1 * y4) - (y0 * y5)) t_4 = (a * y5) - (c * y4) t_5 = t * t_4 t_6 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_4))) tmp = 0 if y <= -3e+24: tmp = t_1 elif y <= -4.8e-183: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif y <= -3.5e-234: tmp = t_2 elif y <= 3.6e-292: tmp = t_6 elif y <= 1.02e-206: tmp = t_2 elif y <= 7.5e-120: tmp = y2 * ((t_3 + (x * ((c * y0) - (a * y1)))) + t_5) elif y <= 2.85e-61: tmp = t_6 elif y <= 2.95e+87: tmp = y2 * ((t_3 - (y1 * (x * a))) + t_5) 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(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))) t_2 = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(b * Float64(Float64(z * k) - Float64(x * j)))))) t_3 = Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) t_4 = Float64(Float64(a * y5) - Float64(c * y4)) t_5 = Float64(t * t_4) t_6 = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * t_4)))) tmp = 0.0 if (y <= -3e+24) tmp = t_1; elseif (y <= -4.8e-183) 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 (y <= -3.5e-234) tmp = t_2; elseif (y <= 3.6e-292) tmp = t_6; elseif (y <= 1.02e-206) tmp = t_2; elseif (y <= 7.5e-120) tmp = Float64(y2 * Float64(Float64(t_3 + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + t_5)); elseif (y <= 2.85e-61) tmp = t_6; elseif (y <= 2.95e+87) tmp = Float64(y2 * Float64(Float64(t_3 - Float64(y1 * Float64(x * a))) + t_5)); 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 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); t_2 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) + (b * ((z * k) - (x * j))))); t_3 = k * ((y1 * y4) - (y0 * y5)); t_4 = (a * y5) - (c * y4); t_5 = t * t_4; t_6 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_4))); tmp = 0.0; if (y <= -3e+24) tmp = t_1; elseif (y <= -4.8e-183) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (y <= -3.5e-234) tmp = t_2; elseif (y <= 3.6e-292) tmp = t_6; elseif (y <= 1.02e-206) tmp = t_2; elseif (y <= 7.5e-120) tmp = y2 * ((t_3 + (x * ((c * y0) - (a * y1)))) + t_5); elseif (y <= 2.85e-61) tmp = t_6; elseif (y <= 2.95e+87) tmp = y2 * ((t_3 - (y1 * (x * a))) + t_5); 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[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t * t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+24], t$95$1, If[LessEqual[y, -4.8e-183], 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[y, -3.5e-234], t$95$2, If[LessEqual[y, 3.6e-292], t$95$6, If[LessEqual[y, 1.02e-206], t$95$2, If[LessEqual[y, 7.5e-120], N[(y2 * N[(N[(t$95$3 + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.85e-61], t$95$6, If[LessEqual[y, 2.95e+87], N[(y2 * N[(N[(t$95$3 - N[(y1 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
t_2 := y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\right)\\
t_3 := k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
t_4 := a \cdot y5 - c \cdot y4\\
t_5 := t \cdot t_4\\
t_6 := t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot t_4\right)\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{-183}:\\
\;\;\;\;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}\;y \leq -3.5 \cdot 10^{-234}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-292}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-206}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-120}:\\
\;\;\;\;y2 \cdot \left(\left(t_3 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t_5\right)\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{-61}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+87}:\\
\;\;\;\;y2 \cdot \left(\left(t_3 - y1 \cdot \left(x \cdot a\right)\right) + t_5\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.99999999999999995e24 or 2.9499999999999998e87 < y Initial program 24.7%
Simplified29.6%
Taylor expanded in y around inf 65.1%
mul-1-neg65.1%
*-commutative65.1%
*-commutative65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
if -2.99999999999999995e24 < y < -4.79999999999999986e-183Initial program 34.1%
Simplified34.1%
Taylor expanded in y4 around inf 54.2%
if -4.79999999999999986e-183 < y < -3.5000000000000001e-234 or 3.6000000000000002e-292 < y < 1.0200000000000001e-206Initial program 18.0%
Simplified28.7%
Taylor expanded in y0 around inf 68.1%
*-commutative68.1%
mul-1-neg68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
if -3.5000000000000001e-234 < y < 3.6000000000000002e-292 or 7.5000000000000004e-120 < y < 2.85000000000000003e-61Initial program 28.7%
Simplified28.7%
Taylor expanded in t around inf 52.1%
associate--l+52.1%
*-commutative52.1%
mul-1-neg52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
if 1.0200000000000001e-206 < y < 7.5000000000000004e-120Initial program 43.8%
Simplified43.8%
Taylor expanded in y2 around inf 63.0%
if 2.85000000000000003e-61 < y < 2.9499999999999998e87Initial program 38.5%
Simplified38.5%
Taylor expanded in y2 around inf 53.6%
Taylor expanded in c around 0 62.3%
Final simplification61.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j))))))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* y y3) (* t y2)))
(t_5 (* y5 (- (* i (- (* y k) (* t j))) (+ (* y0 t_3) (* a t_4))))))
(if (<= b -1.5e-24)
t_2
(if (<= b -2.8e-217)
t_5
(if (<= b -1.4e-258)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= b 6.8e-105)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= b 7e+76)
t_5
(if (<= b 5.5e+172)
(* y4 (+ (+ (* b t_1) (* y1 t_3)) (* c t_4)))
(if (<= b 4.4e+185)
(* y0 (* y5 (- (* j y3) (* k 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 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double t_3 = (k * y2) - (j * y3);
double t_4 = (y * y3) - (t * y2);
double t_5 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * t_3) + (a * t_4)));
double tmp;
if (b <= -1.5e-24) {
tmp = t_2;
} else if (b <= -2.8e-217) {
tmp = t_5;
} else if (b <= -1.4e-258) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (b <= 6.8e-105) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (b <= 7e+76) {
tmp = t_5;
} else if (b <= 5.5e+172) {
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * t_4));
} else if (b <= 4.4e+185) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} 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) :: t_5
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
t_3 = (k * y2) - (j * y3)
t_4 = (y * y3) - (t * y2)
t_5 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * t_3) + (a * t_4)))
if (b <= (-1.5d-24)) then
tmp = t_2
else if (b <= (-2.8d-217)) then
tmp = t_5
else if (b <= (-1.4d-258)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (b <= 6.8d-105) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (b <= 7d+76) then
tmp = t_5
else if (b <= 5.5d+172) then
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * t_4))
else if (b <= 4.4d+185) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
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 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double t_3 = (k * y2) - (j * y3);
double t_4 = (y * y3) - (t * y2);
double t_5 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * t_3) + (a * t_4)));
double tmp;
if (b <= -1.5e-24) {
tmp = t_2;
} else if (b <= -2.8e-217) {
tmp = t_5;
} else if (b <= -1.4e-258) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (b <= 6.8e-105) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (b <= 7e+76) {
tmp = t_5;
} else if (b <= 5.5e+172) {
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * t_4));
} else if (b <= 4.4e+185) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} 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 = (t * j) - (y * k) t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) t_3 = (k * y2) - (j * y3) t_4 = (y * y3) - (t * y2) t_5 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * t_3) + (a * t_4))) tmp = 0 if b <= -1.5e-24: tmp = t_2 elif b <= -2.8e-217: tmp = t_5 elif b <= -1.4e-258: tmp = y1 * (z * ((a * y3) - (i * k))) elif b <= 6.8e-105: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif b <= 7e+76: tmp = t_5 elif b <= 5.5e+172: tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * t_4)) elif b <= 4.4e+185: tmp = y0 * (y5 * ((j * y3) - (k * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(y * y3) - Float64(t * y2)) t_5 = Float64(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) - Float64(Float64(y0 * t_3) + Float64(a * t_4)))) tmp = 0.0 if (b <= -1.5e-24) tmp = t_2; elseif (b <= -2.8e-217) tmp = t_5; elseif (b <= -1.4e-258) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (b <= 6.8e-105) 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 (b <= 7e+76) tmp = t_5; elseif (b <= 5.5e+172) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * t_3)) + Float64(c * t_4))); elseif (b <= 4.4e+185) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); 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 = (t * j) - (y * k); t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); t_3 = (k * y2) - (j * y3); t_4 = (y * y3) - (t * y2); t_5 = y5 * ((i * ((y * k) - (t * j))) - ((y0 * t_3) + (a * t_4))); tmp = 0.0; if (b <= -1.5e-24) tmp = t_2; elseif (b <= -2.8e-217) tmp = t_5; elseif (b <= -1.4e-258) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (b <= 6.8e-105) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (b <= 7e+76) tmp = t_5; elseif (b <= 5.5e+172) tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * t_4)); elseif (b <= 4.4e+185) tmp = y0 * (y5 * ((j * y3) - (k * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * t$95$3), $MachinePrecision] + N[(a * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e-24], t$95$2, If[LessEqual[b, -2.8e-217], t$95$5, If[LessEqual[b, -1.4e-258], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-105], 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[b, 7e+76], t$95$5, If[LessEqual[b, 5.5e+172], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e+185], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := y \cdot y3 - t \cdot y2\\
t_5 := y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) - \left(y0 \cdot t_3 + a \cdot t_4\right)\right)\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{-24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-217}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-258}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-105}:\\
\;\;\;\;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}\;b \leq 7 \cdot 10^{+76}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+172}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot t_3\right) + c \cdot t_4\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+185}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.49999999999999998e-24 or 4.4000000000000002e185 < b Initial program 23.1%
Simplified23.1%
Taylor expanded in b around inf 59.2%
if -1.49999999999999998e-24 < b < -2.8e-217 or 6.79999999999999984e-105 < b < 7.00000000000000001e76Initial program 33.1%
Simplified33.1%
Taylor expanded in y5 around -inf 53.7%
mul-1-neg53.7%
associate--l+53.7%
*-commutative53.7%
Simplified53.7%
if -2.8e-217 < b < -1.4000000000000001e-258Initial program 18.6%
Simplified18.6%
Taylor expanded in z around -inf 46.2%
Taylor expanded in y1 around inf 55.1%
*-commutative55.1%
associate-*l*55.1%
cancel-sign-sub-inv55.1%
metadata-eval55.1%
*-lft-identity55.1%
+-commutative55.1%
mul-1-neg55.1%
unsub-neg55.1%
Simplified55.1%
if -1.4000000000000001e-258 < b < 6.79999999999999984e-105Initial program 43.3%
Simplified43.3%
Taylor expanded in y2 around inf 62.8%
if 7.00000000000000001e76 < b < 5.4999999999999999e172Initial program 10.5%
Simplified10.5%
Taylor expanded in y4 around inf 63.2%
if 5.4999999999999999e172 < b < 4.4000000000000002e185Initial program 25.0%
Simplified25.0%
Taylor expanded in y0 around inf 50.0%
*-commutative50.0%
mul-1-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y5 around inf 100.0%
Final simplification59.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5))) (t_2 (* t (* j t_1))))
(if (<= y2 -5.5e+56)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 -1.72e-46)
t_2
(if (<= y2 -1.75e-227)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y2 -8.2e-297)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y2 2.15e-176)
t_2
(if (<= y2 5.8e-41)
(* j (+ (* t t_1) (* y3 (- (* y0 y5) (* y1 y4)))))
(if (<= y2 1.85e+96)
(* y (* a (- (* x b) (* y3 y5))))
(*
y2
(+
(- (* k (- (* y1 y4) (* y0 y5))) (* y1 (* x a)))
(* t (- (* a y5) (* c y4))))))))))))))
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 * y4) - (i * y5);
double t_2 = t * (j * t_1);
double tmp;
if (y2 <= -5.5e+56) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -1.72e-46) {
tmp = t_2;
} else if (y2 <= -1.75e-227) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y2 <= -8.2e-297) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 2.15e-176) {
tmp = t_2;
} else if (y2 <= 5.8e-41) {
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (y2 <= 1.85e+96) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))));
}
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 * y4) - (i * y5)
t_2 = t * (j * t_1)
if (y2 <= (-5.5d+56)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= (-1.72d-46)) then
tmp = t_2
else if (y2 <= (-1.75d-227)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y2 <= (-8.2d-297)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y2 <= 2.15d-176) then
tmp = t_2
else if (y2 <= 5.8d-41) then
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))))
else if (y2 <= 1.85d+96) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))))
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 * y4) - (i * y5);
double t_2 = t * (j * t_1);
double tmp;
if (y2 <= -5.5e+56) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -1.72e-46) {
tmp = t_2;
} else if (y2 <= -1.75e-227) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y2 <= -8.2e-297) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 2.15e-176) {
tmp = t_2;
} else if (y2 <= 5.8e-41) {
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (y2 <= 1.85e+96) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = t * (j * t_1) tmp = 0 if y2 <= -5.5e+56: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= -1.72e-46: tmp = t_2 elif y2 <= -1.75e-227: tmp = y1 * (z * ((a * y3) - (i * k))) elif y2 <= -8.2e-297: tmp = j * (x * ((i * y1) - (b * y0))) elif y2 <= 2.15e-176: tmp = t_2 elif y2 <= 5.8e-41: tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) elif y2 <= 1.85e+96: tmp = y * (a * ((x * b) - (y3 * y5))) else: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = Float64(t * Float64(j * t_1)) tmp = 0.0 if (y2 <= -5.5e+56) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= -1.72e-46) tmp = t_2; elseif (y2 <= -1.75e-227) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y2 <= -8.2e-297) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y2 <= 2.15e-176) tmp = t_2; elseif (y2 <= 5.8e-41) tmp = Float64(j * Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))); elseif (y2 <= 1.85e+96) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); else tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(y1 * Float64(x * a))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); 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 * y4) - (i * y5); t_2 = t * (j * t_1); tmp = 0.0; if (y2 <= -5.5e+56) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= -1.72e-46) tmp = t_2; elseif (y2 <= -1.75e-227) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y2 <= -8.2e-297) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y2 <= 2.15e-176) tmp = t_2; elseif (y2 <= 5.8e-41) tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))); elseif (y2 <= 1.85e+96) tmp = y * (a * ((x * b) - (y3 * y5))); else tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) - (y1 * (x * a))) + (t * ((a * y5) - (c * y4)))); 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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -5.5e+56], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.72e-46], t$95$2, If[LessEqual[y2, -1.75e-227], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.2e-297], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.15e-176], t$95$2, If[LessEqual[y2, 5.8e-41], N[(j * N[(N[(t * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.85e+96], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := t \cdot \left(j \cdot t_1\right)\\
\mathbf{if}\;y2 \leq -5.5 \cdot 10^{+56}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.72 \cdot 10^{-46}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -1.75 \cdot 10^{-227}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq -8.2 \cdot 10^{-297}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 2.15 \cdot 10^{-176}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-41}:\\
\;\;\;\;j \cdot \left(t \cdot t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 1.85 \cdot 10^{+96}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - y1 \cdot \left(x \cdot a\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -5.5000000000000002e56Initial program 16.9%
Simplified25.4%
Taylor expanded in y0 around inf 47.6%
*-commutative47.6%
mul-1-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in c around inf 55.3%
if -5.5000000000000002e56 < y2 < -1.7199999999999999e-46 or -8.2000000000000004e-297 < y2 < 2.15000000000000006e-176Initial program 20.1%
Simplified30.1%
Taylor expanded in j around inf 40.9%
Taylor expanded in t around inf 45.5%
if -1.7199999999999999e-46 < y2 < -1.75000000000000005e-227Initial program 39.2%
Simplified39.2%
Taylor expanded in z around -inf 46.9%
Taylor expanded in y1 around inf 46.9%
*-commutative46.9%
associate-*l*51.6%
cancel-sign-sub-inv51.6%
metadata-eval51.6%
*-lft-identity51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
if -1.75000000000000005e-227 < y2 < -8.2000000000000004e-297Initial program 45.5%
Simplified54.5%
Taylor expanded in j around inf 46.1%
Taylor expanded in x around inf 64.4%
if 2.15000000000000006e-176 < y2 < 5.79999999999999955e-41Initial program 31.6%
Simplified35.1%
Taylor expanded in j around inf 31.7%
Taylor expanded in x around 0 48.8%
*-commutative48.8%
+-commutative48.8%
mul-1-neg48.8%
*-commutative48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
if 5.79999999999999955e-41 < y2 < 1.84999999999999996e96Initial program 42.1%
Simplified47.4%
Taylor expanded in y around inf 64.0%
mul-1-neg64.0%
*-commutative64.0%
*-commutative64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
sub-neg58.5%
Simplified58.5%
if 1.84999999999999996e96 < y2 Initial program 34.2%
Simplified34.2%
Taylor expanded in y2 around inf 66.5%
Taylor expanded in c around 0 64.4%
Final simplification54.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5))) (t_2 (* t (* j t_1))))
(if (<= y2 -1.04e+58)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 -6.6e-47)
t_2
(if (<= y2 -4.2e-227)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y2 -6e-298)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y2 1.62e-183)
t_2
(if (<= y2 1.8e-39)
(* j (+ (* t t_1) (* y3 (- (* y0 y5) (* y1 y4)))))
(if (<= y2 7.8e+130)
(* (* y b) (- (* x a) (* k y4)))
(* (* x y2) (- (* c y0) (* a y1))))))))))))
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 * y4) - (i * y5);
double t_2 = t * (j * t_1);
double tmp;
if (y2 <= -1.04e+58) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -6.6e-47) {
tmp = t_2;
} else if (y2 <= -4.2e-227) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y2 <= -6e-298) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 1.62e-183) {
tmp = t_2;
} else if (y2 <= 1.8e-39) {
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (y2 <= 7.8e+130) {
tmp = (y * b) * ((x * a) - (k * y4));
} else {
tmp = (x * y2) * ((c * y0) - (a * y1));
}
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 * y4) - (i * y5)
t_2 = t * (j * t_1)
if (y2 <= (-1.04d+58)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= (-6.6d-47)) then
tmp = t_2
else if (y2 <= (-4.2d-227)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y2 <= (-6d-298)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y2 <= 1.62d-183) then
tmp = t_2
else if (y2 <= 1.8d-39) then
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))))
else if (y2 <= 7.8d+130) then
tmp = (y * b) * ((x * a) - (k * y4))
else
tmp = (x * y2) * ((c * y0) - (a * y1))
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 * y4) - (i * y5);
double t_2 = t * (j * t_1);
double tmp;
if (y2 <= -1.04e+58) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -6.6e-47) {
tmp = t_2;
} else if (y2 <= -4.2e-227) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y2 <= -6e-298) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 1.62e-183) {
tmp = t_2;
} else if (y2 <= 1.8e-39) {
tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4))));
} else if (y2 <= 7.8e+130) {
tmp = (y * b) * ((x * a) - (k * y4));
} else {
tmp = (x * y2) * ((c * y0) - (a * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = t * (j * t_1) tmp = 0 if y2 <= -1.04e+58: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= -6.6e-47: tmp = t_2 elif y2 <= -4.2e-227: tmp = y1 * (z * ((a * y3) - (i * k))) elif y2 <= -6e-298: tmp = j * (x * ((i * y1) - (b * y0))) elif y2 <= 1.62e-183: tmp = t_2 elif y2 <= 1.8e-39: tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) elif y2 <= 7.8e+130: tmp = (y * b) * ((x * a) - (k * y4)) else: tmp = (x * y2) * ((c * y0) - (a * y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = Float64(t * Float64(j * t_1)) tmp = 0.0 if (y2 <= -1.04e+58) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= -6.6e-47) tmp = t_2; elseif (y2 <= -4.2e-227) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y2 <= -6e-298) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y2 <= 1.62e-183) tmp = t_2; elseif (y2 <= 1.8e-39) tmp = Float64(j * Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))))); elseif (y2 <= 7.8e+130) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); else tmp = Float64(Float64(x * y2) * Float64(Float64(c * y0) - Float64(a * y1))); 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 * y4) - (i * y5); t_2 = t * (j * t_1); tmp = 0.0; if (y2 <= -1.04e+58) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= -6.6e-47) tmp = t_2; elseif (y2 <= -4.2e-227) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y2 <= -6e-298) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y2 <= 1.62e-183) tmp = t_2; elseif (y2 <= 1.8e-39) tmp = j * ((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))); elseif (y2 <= 7.8e+130) tmp = (y * b) * ((x * a) - (k * y4)); else tmp = (x * y2) * ((c * y0) - (a * y1)); 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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.04e+58], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.6e-47], t$95$2, If[LessEqual[y2, -4.2e-227], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6e-298], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.62e-183], t$95$2, If[LessEqual[y2, 1.8e-39], N[(j * N[(N[(t * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.8e+130], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y2), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := t \cdot \left(j \cdot t_1\right)\\
\mathbf{if}\;y2 \leq -1.04 \cdot 10^{+58}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -6.6 \cdot 10^{-47}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -4.2 \cdot 10^{-227}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq -6 \cdot 10^{-298}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 1.62 \cdot 10^{-183}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-39}:\\
\;\;\;\;j \cdot \left(t \cdot t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 7.8 \cdot 10^{+130}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\\
\end{array}
\end{array}
if y2 < -1.04e58Initial program 16.9%
Simplified25.4%
Taylor expanded in y0 around inf 47.6%
*-commutative47.6%
mul-1-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in c around inf 55.3%
if -1.04e58 < y2 < -6.60000000000000007e-47 or -5.9999999999999999e-298 < y2 < 1.62e-183Initial program 20.1%
Simplified30.1%
Taylor expanded in j around inf 40.9%
Taylor expanded in t around inf 45.5%
if -6.60000000000000007e-47 < y2 < -4.1999999999999999e-227Initial program 39.2%
Simplified39.2%
Taylor expanded in z around -inf 46.9%
Taylor expanded in y1 around inf 46.9%
*-commutative46.9%
associate-*l*51.6%
cancel-sign-sub-inv51.6%
metadata-eval51.6%
*-lft-identity51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
if -4.1999999999999999e-227 < y2 < -5.9999999999999999e-298Initial program 45.5%
Simplified54.5%
Taylor expanded in j around inf 46.1%
Taylor expanded in x around inf 64.4%
if 1.62e-183 < y2 < 1.8e-39Initial program 31.6%
Simplified35.1%
Taylor expanded in j around inf 31.7%
Taylor expanded in x around 0 48.8%
*-commutative48.8%
+-commutative48.8%
mul-1-neg48.8%
*-commutative48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
if 1.8e-39 < y2 < 7.8000000000000004e130Initial program 39.1%
Simplified43.5%
Taylor expanded in y around inf 53.1%
mul-1-neg53.1%
*-commutative53.1%
*-commutative53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in b around inf 53.5%
associate-*r*53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
if 7.8000000000000004e130 < y2 Initial program 35.0%
Simplified35.0%
Taylor expanded in y2 around inf 68.0%
Taylor expanded in x around inf 56.6%
Final simplification52.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* y1 (- (* k y2) (* j y3)))))
(t_2 (* t (* j (- (* b y4) (* i y5))))))
(if (<= y1 -4.5e+228)
t_1
(if (<= y1 -4e+196)
(* y2 (* a (* t y5)))
(if (<= y1 -1.05e+144)
t_1
(if (<= y1 -2.05e+70)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y1 -9e-40)
t_2
(if (<= y1 -1.06e-252)
(* (* y b) (- (* x a) (* k y4)))
(if (<= y1 1.45e-283)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= y1 6.2e+36)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y1 3.2e+111) 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 = y4 * (y1 * ((k * y2) - (j * y3)));
double t_2 = t * (j * ((b * y4) - (i * y5)));
double tmp;
if (y1 <= -4.5e+228) {
tmp = t_1;
} else if (y1 <= -4e+196) {
tmp = y2 * (a * (t * y5));
} else if (y1 <= -1.05e+144) {
tmp = t_1;
} else if (y1 <= -2.05e+70) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y1 <= -9e-40) {
tmp = t_2;
} else if (y1 <= -1.06e-252) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (y1 <= 1.45e-283) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y1 <= 6.2e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 3.2e+111) {
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 = y4 * (y1 * ((k * y2) - (j * y3)))
t_2 = t * (j * ((b * y4) - (i * y5)))
if (y1 <= (-4.5d+228)) then
tmp = t_1
else if (y1 <= (-4d+196)) then
tmp = y2 * (a * (t * y5))
else if (y1 <= (-1.05d+144)) then
tmp = t_1
else if (y1 <= (-2.05d+70)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y1 <= (-9d-40)) then
tmp = t_2
else if (y1 <= (-1.06d-252)) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (y1 <= 1.45d-283) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (y1 <= 6.2d+36) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y1 <= 3.2d+111) 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 = y4 * (y1 * ((k * y2) - (j * y3)));
double t_2 = t * (j * ((b * y4) - (i * y5)));
double tmp;
if (y1 <= -4.5e+228) {
tmp = t_1;
} else if (y1 <= -4e+196) {
tmp = y2 * (a * (t * y5));
} else if (y1 <= -1.05e+144) {
tmp = t_1;
} else if (y1 <= -2.05e+70) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y1 <= -9e-40) {
tmp = t_2;
} else if (y1 <= -1.06e-252) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (y1 <= 1.45e-283) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y1 <= 6.2e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 3.2e+111) {
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 = y4 * (y1 * ((k * y2) - (j * y3))) t_2 = t * (j * ((b * y4) - (i * y5))) tmp = 0 if y1 <= -4.5e+228: tmp = t_1 elif y1 <= -4e+196: tmp = y2 * (a * (t * y5)) elif y1 <= -1.05e+144: tmp = t_1 elif y1 <= -2.05e+70: tmp = j * (x * ((i * y1) - (b * y0))) elif y1 <= -9e-40: tmp = t_2 elif y1 <= -1.06e-252: tmp = (y * b) * ((x * a) - (k * y4)) elif y1 <= 1.45e-283: tmp = y4 * (t * ((b * j) - (c * y2))) elif y1 <= 6.2e+36: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y1 <= 3.2e+111: 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(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) t_2 = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) tmp = 0.0 if (y1 <= -4.5e+228) tmp = t_1; elseif (y1 <= -4e+196) tmp = Float64(y2 * Float64(a * Float64(t * y5))); elseif (y1 <= -1.05e+144) tmp = t_1; elseif (y1 <= -2.05e+70) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y1 <= -9e-40) tmp = t_2; elseif (y1 <= -1.06e-252) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (y1 <= 1.45e-283) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y1 <= 6.2e+36) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y1 <= 3.2e+111) 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 = y4 * (y1 * ((k * y2) - (j * y3))); t_2 = t * (j * ((b * y4) - (i * y5))); tmp = 0.0; if (y1 <= -4.5e+228) tmp = t_1; elseif (y1 <= -4e+196) tmp = y2 * (a * (t * y5)); elseif (y1 <= -1.05e+144) tmp = t_1; elseif (y1 <= -2.05e+70) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y1 <= -9e-40) tmp = t_2; elseif (y1 <= -1.06e-252) tmp = (y * b) * ((x * a) - (k * y4)); elseif (y1 <= 1.45e-283) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (y1 <= 6.2e+36) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y1 <= 3.2e+111) 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[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -4.5e+228], t$95$1, If[LessEqual[y1, -4e+196], N[(y2 * N[(a * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -1.05e+144], t$95$1, If[LessEqual[y1, -2.05e+70], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -9e-40], t$95$2, If[LessEqual[y1, -1.06e-252], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.45e-283], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 6.2e+36], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 3.2e+111], t$95$2, t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
t_2 := t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{if}\;y1 \leq -4.5 \cdot 10^{+228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y1 \leq -4 \cdot 10^{+196}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq -1.05 \cdot 10^{+144}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y1 \leq -2.05 \cdot 10^{+70}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y1 \leq -9 \cdot 10^{-40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y1 \leq -1.06 \cdot 10^{-252}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;y1 \leq 1.45 \cdot 10^{-283}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y1 \leq 6.2 \cdot 10^{+36}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 3.2 \cdot 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y1 < -4.49999999999999983e228 or -3.9999999999999998e196 < y1 < -1.04999999999999998e144 or 3.2000000000000001e111 < y1 Initial program 27.3%
Simplified27.3%
Taylor expanded in y4 around inf 50.4%
Taylor expanded in y1 around inf 55.1%
if -4.49999999999999983e228 < y1 < -3.9999999999999998e196Initial program 0.0%
Simplified0.0%
Taylor expanded in y2 around inf 16.8%
Taylor expanded in t around -inf 18.5%
associate-*r*18.5%
neg-mul-118.5%
Simplified18.5%
Taylor expanded in c around 0 27.4%
pow127.4%
Applied egg-rr27.4%
unpow127.4%
associate-*r*43.3%
associate-*r*51.2%
Simplified51.2%
if -1.04999999999999998e144 < y1 < -2.0500000000000001e70Initial program 16.7%
Simplified25.0%
Taylor expanded in j around inf 33.9%
Taylor expanded in x around inf 59.3%
if -2.0500000000000001e70 < y1 < -9.0000000000000002e-40 or 6.1999999999999999e36 < y1 < 3.2000000000000001e111Initial program 24.1%
Simplified24.1%
Taylor expanded in j around inf 48.7%
Taylor expanded in t around inf 49.9%
if -9.0000000000000002e-40 < y1 < -1.06e-252Initial program 40.1%
Simplified46.7%
Taylor expanded in y around inf 51.5%
mul-1-neg51.5%
*-commutative51.5%
*-commutative51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in b around inf 49.9%
associate-*r*47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
if -1.06e-252 < y1 < 1.44999999999999994e-283Initial program 39.6%
Simplified39.6%
Taylor expanded in y4 around inf 28.7%
Taylor expanded in t around inf 56.5%
if 1.44999999999999994e-283 < y1 < 6.1999999999999999e36Initial program 30.0%
Simplified35.4%
Taylor expanded in y0 around inf 37.3%
*-commutative37.3%
mul-1-neg37.3%
*-commutative37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in c around inf 41.8%
Final simplification49.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* y1 (- (* k y2) (* j y3))))))
(if (<= y1 -4.5e+228)
t_1
(if (<= y1 -4e+196)
(* y2 (* a (* t y5)))
(if (<= y1 -5.2e+143)
t_1
(if (<= y1 -3.3e+70)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y1 -4.6e-39)
(* (* y k) (- (* i y5) (* b y4)))
(if (<= y1 -9.6e-254)
(* (* y b) (- (* x a) (* k y4)))
(if (<= y1 2.7e-291)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= y1 4.5e+45)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y1 5.2e+110)
(* t (* j (- (* b y4) (* i y5))))
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 = y4 * (y1 * ((k * y2) - (j * y3)));
double tmp;
if (y1 <= -4.5e+228) {
tmp = t_1;
} else if (y1 <= -4e+196) {
tmp = y2 * (a * (t * y5));
} else if (y1 <= -5.2e+143) {
tmp = t_1;
} else if (y1 <= -3.3e+70) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y1 <= -4.6e-39) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (y1 <= -9.6e-254) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (y1 <= 2.7e-291) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y1 <= 4.5e+45) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 5.2e+110) {
tmp = t * (j * ((b * y4) - (i * y5)));
} 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 = y4 * (y1 * ((k * y2) - (j * y3)))
if (y1 <= (-4.5d+228)) then
tmp = t_1
else if (y1 <= (-4d+196)) then
tmp = y2 * (a * (t * y5))
else if (y1 <= (-5.2d+143)) then
tmp = t_1
else if (y1 <= (-3.3d+70)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y1 <= (-4.6d-39)) then
tmp = (y * k) * ((i * y5) - (b * y4))
else if (y1 <= (-9.6d-254)) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (y1 <= 2.7d-291) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (y1 <= 4.5d+45) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y1 <= 5.2d+110) then
tmp = t * (j * ((b * y4) - (i * y5)))
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 = y4 * (y1 * ((k * y2) - (j * y3)));
double tmp;
if (y1 <= -4.5e+228) {
tmp = t_1;
} else if (y1 <= -4e+196) {
tmp = y2 * (a * (t * y5));
} else if (y1 <= -5.2e+143) {
tmp = t_1;
} else if (y1 <= -3.3e+70) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y1 <= -4.6e-39) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (y1 <= -9.6e-254) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (y1 <= 2.7e-291) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y1 <= 4.5e+45) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 5.2e+110) {
tmp = t * (j * ((b * y4) - (i * y5)));
} 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 = y4 * (y1 * ((k * y2) - (j * y3))) tmp = 0 if y1 <= -4.5e+228: tmp = t_1 elif y1 <= -4e+196: tmp = y2 * (a * (t * y5)) elif y1 <= -5.2e+143: tmp = t_1 elif y1 <= -3.3e+70: tmp = j * (x * ((i * y1) - (b * y0))) elif y1 <= -4.6e-39: tmp = (y * k) * ((i * y5) - (b * y4)) elif y1 <= -9.6e-254: tmp = (y * b) * ((x * a) - (k * y4)) elif y1 <= 2.7e-291: tmp = y4 * (t * ((b * j) - (c * y2))) elif y1 <= 4.5e+45: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y1 <= 5.2e+110: tmp = t * (j * ((b * y4) - (i * y5))) 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(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (y1 <= -4.5e+228) tmp = t_1; elseif (y1 <= -4e+196) tmp = Float64(y2 * Float64(a * Float64(t * y5))); elseif (y1 <= -5.2e+143) tmp = t_1; elseif (y1 <= -3.3e+70) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y1 <= -4.6e-39) tmp = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))); elseif (y1 <= -9.6e-254) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (y1 <= 2.7e-291) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y1 <= 4.5e+45) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y1 <= 5.2e+110) tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))); 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 = y4 * (y1 * ((k * y2) - (j * y3))); tmp = 0.0; if (y1 <= -4.5e+228) tmp = t_1; elseif (y1 <= -4e+196) tmp = y2 * (a * (t * y5)); elseif (y1 <= -5.2e+143) tmp = t_1; elseif (y1 <= -3.3e+70) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y1 <= -4.6e-39) tmp = (y * k) * ((i * y5) - (b * y4)); elseif (y1 <= -9.6e-254) tmp = (y * b) * ((x * a) - (k * y4)); elseif (y1 <= 2.7e-291) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (y1 <= 4.5e+45) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y1 <= 5.2e+110) tmp = t * (j * ((b * y4) - (i * y5))); 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[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -4.5e+228], t$95$1, If[LessEqual[y1, -4e+196], N[(y2 * N[(a * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -5.2e+143], t$95$1, If[LessEqual[y1, -3.3e+70], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -4.6e-39], N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -9.6e-254], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.7e-291], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4.5e+45], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 5.2e+110], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{if}\;y1 \leq -4.5 \cdot 10^{+228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y1 \leq -4 \cdot 10^{+196}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq -5.2 \cdot 10^{+143}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y1 \leq -3.3 \cdot 10^{+70}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y1 \leq -4.6 \cdot 10^{-39}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
\mathbf{elif}\;y1 \leq -9.6 \cdot 10^{-254}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;y1 \leq 2.7 \cdot 10^{-291}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y1 \leq 4.5 \cdot 10^{+45}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 5.2 \cdot 10^{+110}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y1 < -4.49999999999999983e228 or -3.9999999999999998e196 < y1 < -5.1999999999999998e143 or 5.2e110 < y1 Initial program 27.3%
Simplified27.3%
Taylor expanded in y4 around inf 50.4%
Taylor expanded in y1 around inf 55.1%
if -4.49999999999999983e228 < y1 < -3.9999999999999998e196Initial program 0.0%
Simplified0.0%
Taylor expanded in y2 around inf 16.8%
Taylor expanded in t around -inf 18.5%
associate-*r*18.5%
neg-mul-118.5%
Simplified18.5%
Taylor expanded in c around 0 27.4%
pow127.4%
Applied egg-rr27.4%
unpow127.4%
associate-*r*43.3%
associate-*r*51.2%
Simplified51.2%
if -5.1999999999999998e143 < y1 < -3.30000000000000016e70Initial program 16.7%
Simplified25.0%
Taylor expanded in j around inf 33.9%
Taylor expanded in x around inf 59.3%
if -3.30000000000000016e70 < y1 < -4.60000000000000016e-39Initial program 33.3%
Simplified33.3%
Taylor expanded in y around inf 41.5%
mul-1-neg41.5%
*-commutative41.5%
*-commutative41.5%
*-commutative41.5%
*-commutative41.5%
Simplified41.5%
Taylor expanded in k around inf 35.2%
associate-*r*35.0%
*-commutative35.0%
Simplified35.0%
if -4.60000000000000016e-39 < y1 < -9.60000000000000007e-254Initial program 40.1%
Simplified46.7%
Taylor expanded in y around inf 51.5%
mul-1-neg51.5%
*-commutative51.5%
*-commutative51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in b around inf 49.9%
associate-*r*47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
if -9.60000000000000007e-254 < y1 < 2.69999999999999992e-291Initial program 39.6%
Simplified39.6%
Taylor expanded in y4 around inf 28.7%
Taylor expanded in t around inf 56.5%
if 2.69999999999999992e-291 < y1 < 4.4999999999999998e45Initial program 30.0%
Simplified35.4%
Taylor expanded in y0 around inf 37.3%
*-commutative37.3%
mul-1-neg37.3%
*-commutative37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in c around inf 41.8%
if 4.4999999999999998e45 < y1 < 5.2e110Initial program 14.2%
Simplified14.3%
Taylor expanded in j around inf 57.2%
Taylor expanded in t around inf 66.0%
Final simplification49.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* j (- (* b y4) (* i y5)))))
(t_2 (* (* y b) (- (* x a) (* k y4)))))
(if (<= y2 -8e+52)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 -6.2e-63)
t_1
(if (<= y2 -4.4e-177)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y2 -3.7e-303)
t_2
(if (<= y2 2e-184)
t_1
(if (<= y2 3.8e-131)
(* y4 (* j (- (* t b) (* y1 y3))))
(if (<= y2 1.2e-70)
(* (* y k) (- (* i y5) (* b y4)))
(if (<= y2 1.25e-63)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= y2 3.4e+129)
t_2
(* (* x y2) (- (* c y0) (* a y1))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (j * ((b * y4) - (i * y5)));
double t_2 = (y * b) * ((x * a) - (k * y4));
double tmp;
if (y2 <= -8e+52) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -6.2e-63) {
tmp = t_1;
} else if (y2 <= -4.4e-177) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -3.7e-303) {
tmp = t_2;
} else if (y2 <= 2e-184) {
tmp = t_1;
} else if (y2 <= 3.8e-131) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (y2 <= 1.2e-70) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (y2 <= 1.25e-63) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= 3.4e+129) {
tmp = t_2;
} else {
tmp = (x * y2) * ((c * y0) - (a * y1));
}
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 = t * (j * ((b * y4) - (i * y5)))
t_2 = (y * b) * ((x * a) - (k * y4))
if (y2 <= (-8d+52)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= (-6.2d-63)) then
tmp = t_1
else if (y2 <= (-4.4d-177)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y2 <= (-3.7d-303)) then
tmp = t_2
else if (y2 <= 2d-184) then
tmp = t_1
else if (y2 <= 3.8d-131) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else if (y2 <= 1.2d-70) then
tmp = (y * k) * ((i * y5) - (b * y4))
else if (y2 <= 1.25d-63) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (y2 <= 3.4d+129) then
tmp = t_2
else
tmp = (x * y2) * ((c * y0) - (a * y1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (j * ((b * y4) - (i * y5)));
double t_2 = (y * b) * ((x * a) - (k * y4));
double tmp;
if (y2 <= -8e+52) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -6.2e-63) {
tmp = t_1;
} else if (y2 <= -4.4e-177) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -3.7e-303) {
tmp = t_2;
} else if (y2 <= 2e-184) {
tmp = t_1;
} else if (y2 <= 3.8e-131) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (y2 <= 1.2e-70) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (y2 <= 1.25e-63) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= 3.4e+129) {
tmp = t_2;
} else {
tmp = (x * y2) * ((c * y0) - (a * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * (j * ((b * y4) - (i * y5))) t_2 = (y * b) * ((x * a) - (k * y4)) tmp = 0 if y2 <= -8e+52: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= -6.2e-63: tmp = t_1 elif y2 <= -4.4e-177: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y2 <= -3.7e-303: tmp = t_2 elif y2 <= 2e-184: tmp = t_1 elif y2 <= 3.8e-131: tmp = y4 * (j * ((t * b) - (y1 * y3))) elif y2 <= 1.2e-70: tmp = (y * k) * ((i * y5) - (b * y4)) elif y2 <= 1.25e-63: tmp = c * (y4 * ((y * y3) - (t * y2))) elif y2 <= 3.4e+129: tmp = t_2 else: tmp = (x * y2) * ((c * y0) - (a * y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) t_2 = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))) tmp = 0.0 if (y2 <= -8e+52) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= -6.2e-63) tmp = t_1; elseif (y2 <= -4.4e-177) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -3.7e-303) tmp = t_2; elseif (y2 <= 2e-184) tmp = t_1; elseif (y2 <= 3.8e-131) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (y2 <= 1.2e-70) tmp = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))); elseif (y2 <= 1.25e-63) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (y2 <= 3.4e+129) tmp = t_2; else tmp = Float64(Float64(x * y2) * Float64(Float64(c * y0) - Float64(a * y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * (j * ((b * y4) - (i * y5))); t_2 = (y * b) * ((x * a) - (k * y4)); tmp = 0.0; if (y2 <= -8e+52) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= -6.2e-63) tmp = t_1; elseif (y2 <= -4.4e-177) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y2 <= -3.7e-303) tmp = t_2; elseif (y2 <= 2e-184) tmp = t_1; elseif (y2 <= 3.8e-131) tmp = y4 * (j * ((t * b) - (y1 * y3))); elseif (y2 <= 1.2e-70) tmp = (y * k) * ((i * y5) - (b * y4)); elseif (y2 <= 1.25e-63) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (y2 <= 3.4e+129) tmp = t_2; else tmp = (x * y2) * ((c * y0) - (a * y1)); 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[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -8e+52], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.2e-63], t$95$1, If[LessEqual[y2, -4.4e-177], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.7e-303], t$95$2, If[LessEqual[y2, 2e-184], t$95$1, If[LessEqual[y2, 3.8e-131], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.2e-70], N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.25e-63], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.4e+129], t$95$2, N[(N[(x * y2), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
t_2 := \left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{if}\;y2 \leq -8 \cdot 10^{+52}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -6.2 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -4.4 \cdot 10^{-177}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -3.7 \cdot 10^{-303}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{-184}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 3.8 \cdot 10^{-131}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{-70}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
\mathbf{elif}\;y2 \leq 1.25 \cdot 10^{-63}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 3.4 \cdot 10^{+129}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\\
\end{array}
\end{array}
if y2 < -7.9999999999999999e52Initial program 16.9%
Simplified25.4%
Taylor expanded in y0 around inf 47.6%
*-commutative47.6%
mul-1-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in c around inf 55.3%
if -7.9999999999999999e52 < y2 < -6.19999999999999968e-63 or -3.7000000000000003e-303 < y2 < 2.0000000000000001e-184Initial program 21.0%
Simplified30.4%
Taylor expanded in j around inf 40.4%
Taylor expanded in t around inf 44.9%
if -6.19999999999999968e-63 < y2 < -4.40000000000000023e-177Initial program 46.2%
Simplified46.2%
Taylor expanded in y4 around inf 61.9%
Taylor expanded in y1 around inf 50.8%
if -4.40000000000000023e-177 < y2 < -3.7000000000000003e-303 or 1.25e-63 < y2 < 3.40000000000000018e129Initial program 37.3%
Simplified43.2%
Taylor expanded in y around inf 50.1%
mul-1-neg50.1%
*-commutative50.1%
*-commutative50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in b around inf 48.2%
associate-*r*46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
if 2.0000000000000001e-184 < y2 < 3.79999999999999995e-131Initial program 40.0%
Simplified40.0%
Taylor expanded in y4 around inf 50.5%
Taylor expanded in j around -inf 60.8%
associate-*r*60.8%
neg-mul-160.8%
*-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
if 3.79999999999999995e-131 < y2 < 1.2000000000000001e-70Initial program 25.9%
Simplified51.0%
Taylor expanded in y around inf 50.3%
mul-1-neg50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in k around inf 50.5%
associate-*r*50.5%
*-commutative50.5%
Simplified50.5%
if 1.2000000000000001e-70 < y2 < 1.25e-63Initial program 0.0%
Simplified0.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 100.0%
if 3.40000000000000018e129 < y2 Initial program 35.0%
Simplified35.0%
Taylor expanded in y2 around inf 68.0%
Taylor expanded in x around inf 56.6%
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 (* y (* a (- (* x b) (* y3 y5))))))
(if (<= a -2.2e+87)
(* (* a b) (- (* x y) (* z t)))
(if (<= a -0.0052)
(* (* c y2) (* x y0))
(if (<= a -6e-54)
t_1
(if (<= a -9.5e-305)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= a 2.2e-165)
(* j (* x (- (* i y1) (* b y0))))
(if (<= a 27.0)
(* c (* y0 (- (* x y2) (* z y3))))
(if (or (<= a 2e+245) (not (<= a 3.9e+300)))
t_1
(* y4 (* y1 (- (* k y2) (* j 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 = y * (a * ((x * b) - (y3 * y5)));
double tmp;
if (a <= -2.2e+87) {
tmp = (a * b) * ((x * y) - (z * t));
} else if (a <= -0.0052) {
tmp = (c * y2) * (x * y0);
} else if (a <= -6e-54) {
tmp = t_1;
} else if (a <= -9.5e-305) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (a <= 2.2e-165) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (a <= 27.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if ((a <= 2e+245) || !(a <= 3.9e+300)) {
tmp = t_1;
} else {
tmp = y4 * (y1 * ((k * y2) - (j * 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 = y * (a * ((x * b) - (y3 * y5)))
if (a <= (-2.2d+87)) then
tmp = (a * b) * ((x * y) - (z * t))
else if (a <= (-0.0052d0)) then
tmp = (c * y2) * (x * y0)
else if (a <= (-6d-54)) then
tmp = t_1
else if (a <= (-9.5d-305)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (a <= 2.2d-165) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (a <= 27.0d0) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if ((a <= 2d+245) .or. (.not. (a <= 3.9d+300))) then
tmp = t_1
else
tmp = y4 * (y1 * ((k * y2) - (j * 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 = y * (a * ((x * b) - (y3 * y5)));
double tmp;
if (a <= -2.2e+87) {
tmp = (a * b) * ((x * y) - (z * t));
} else if (a <= -0.0052) {
tmp = (c * y2) * (x * y0);
} else if (a <= -6e-54) {
tmp = t_1;
} else if (a <= -9.5e-305) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (a <= 2.2e-165) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (a <= 27.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if ((a <= 2e+245) || !(a <= 3.9e+300)) {
tmp = t_1;
} else {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (a * ((x * b) - (y3 * y5))) tmp = 0 if a <= -2.2e+87: tmp = (a * b) * ((x * y) - (z * t)) elif a <= -0.0052: tmp = (c * y2) * (x * y0) elif a <= -6e-54: tmp = t_1 elif a <= -9.5e-305: tmp = c * (y4 * ((y * y3) - (t * y2))) elif a <= 2.2e-165: tmp = j * (x * ((i * y1) - (b * y0))) elif a <= 27.0: tmp = c * (y0 * ((x * y2) - (z * y3))) elif (a <= 2e+245) or not (a <= 3.9e+300): tmp = t_1 else: tmp = y4 * (y1 * ((k * y2) - (j * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))) tmp = 0.0 if (a <= -2.2e+87) tmp = Float64(Float64(a * b) * Float64(Float64(x * y) - Float64(z * t))); elseif (a <= -0.0052) tmp = Float64(Float64(c * y2) * Float64(x * y0)); elseif (a <= -6e-54) tmp = t_1; elseif (a <= -9.5e-305) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (a <= 2.2e-165) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (a <= 27.0) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif ((a <= 2e+245) || !(a <= 3.9e+300)) tmp = t_1; else tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * 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 = y * (a * ((x * b) - (y3 * y5))); tmp = 0.0; if (a <= -2.2e+87) tmp = (a * b) * ((x * y) - (z * t)); elseif (a <= -0.0052) tmp = (c * y2) * (x * y0); elseif (a <= -6e-54) tmp = t_1; elseif (a <= -9.5e-305) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (a <= 2.2e-165) tmp = j * (x * ((i * y1) - (b * y0))); elseif (a <= 27.0) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif ((a <= 2e+245) || ~((a <= 3.9e+300))) tmp = t_1; else tmp = y4 * (y1 * ((k * y2) - (j * 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[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e+87], N[(N[(a * b), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -0.0052], N[(N[(c * y2), $MachinePrecision] * N[(x * y0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6e-54], t$95$1, If[LessEqual[a, -9.5e-305], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-165], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 27.0], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 2e+245], N[Not[LessEqual[a, 3.9e+300]], $MachinePrecision]], t$95$1, N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+87}:\\
\;\;\;\;\left(a \cdot b\right) \cdot \left(x \cdot y - z \cdot t\right)\\
\mathbf{elif}\;a \leq -0.0052:\\
\;\;\;\;\left(c \cdot y2\right) \cdot \left(x \cdot y0\right)\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-165}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq 27:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+245} \lor \neg \left(a \leq 3.9 \cdot 10^{+300}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\end{array}
\end{array}
if a < -2.2000000000000001e87Initial program 24.5%
Simplified24.5%
Taylor expanded in b around inf 41.1%
Taylor expanded in a around inf 52.0%
associate-*r*53.9%
Simplified53.9%
if -2.2000000000000001e87 < a < -0.0051999999999999998Initial program 9.1%
Simplified27.3%
Taylor expanded in y0 around inf 72.9%
*-commutative72.9%
mul-1-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in c around inf 55.7%
Taylor expanded in x around inf 47.1%
*-commutative47.1%
*-commutative47.1%
associate-*r*55.5%
associate-*l*64.2%
Simplified64.2%
if -0.0051999999999999998 < a < -6.00000000000000018e-54 or 27 < a < 2.00000000000000009e245 or 3.8999999999999999e300 < a Initial program 29.4%
Simplified39.0%
Taylor expanded in y around inf 56.2%
mul-1-neg56.2%
*-commutative56.2%
*-commutative56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in a around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
sub-neg50.7%
Simplified50.7%
if -6.00000000000000018e-54 < a < -9.49999999999999902e-305Initial program 42.6%
Simplified42.6%
Taylor expanded in y4 around inf 39.0%
Taylor expanded in c around inf 39.5%
if -9.49999999999999902e-305 < a < 2.1999999999999999e-165Initial program 23.7%
Simplified29.6%
Taylor expanded in j around inf 38.6%
Taylor expanded in x around inf 39.1%
if 2.1999999999999999e-165 < a < 27Initial program 27.5%
Simplified35.0%
Taylor expanded in y0 around inf 50.5%
*-commutative50.5%
mul-1-neg50.5%
*-commutative50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in c around inf 46.3%
if 2.00000000000000009e245 < a < 3.8999999999999999e300Initial program 30.4%
Simplified30.4%
Taylor expanded in y4 around inf 48.2%
Taylor expanded in y1 around inf 49.6%
Final simplification47.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* y (- (* x b) (* y3 y5)))))
(t_3 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y5 -1750000000.0)
t_2
(if (<= y5 -9.5e-221)
t_1
(if (<= y5 3e-201)
(* (* a b) (- (* x y) (* z t)))
(if (<= y5 4e+17)
t_1
(if (<= y5 2.3e+60)
t_3
(if (<= y5 8.5e+92)
t_1
(if (<= y5 3.15e+206)
t_2
(if (<= y5 1.6e+283)
t_3
(* c (* y4 (- (* y y3) (* t y2))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (y * ((x * b) - (y3 * y5)));
double t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y5 <= -1750000000.0) {
tmp = t_2;
} else if (y5 <= -9.5e-221) {
tmp = t_1;
} else if (y5 <= 3e-201) {
tmp = (a * b) * ((x * y) - (z * t));
} else if (y5 <= 4e+17) {
tmp = t_1;
} else if (y5 <= 2.3e+60) {
tmp = t_3;
} else if (y5 <= 8.5e+92) {
tmp = t_1;
} else if (y5 <= 3.15e+206) {
tmp = t_2;
} else if (y5 <= 1.6e+283) {
tmp = t_3;
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (y * ((x * b) - (y3 * y5)))
t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y5 <= (-1750000000.0d0)) then
tmp = t_2
else if (y5 <= (-9.5d-221)) then
tmp = t_1
else if (y5 <= 3d-201) then
tmp = (a * b) * ((x * y) - (z * t))
else if (y5 <= 4d+17) then
tmp = t_1
else if (y5 <= 2.3d+60) then
tmp = t_3
else if (y5 <= 8.5d+92) then
tmp = t_1
else if (y5 <= 3.15d+206) then
tmp = t_2
else if (y5 <= 1.6d+283) then
tmp = t_3
else
tmp = c * (y4 * ((y * y3) - (t * y2)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (y * ((x * b) - (y3 * y5)));
double t_3 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y5 <= -1750000000.0) {
tmp = t_2;
} else if (y5 <= -9.5e-221) {
tmp = t_1;
} else if (y5 <= 3e-201) {
tmp = (a * b) * ((x * y) - (z * t));
} else if (y5 <= 4e+17) {
tmp = t_1;
} else if (y5 <= 2.3e+60) {
tmp = t_3;
} else if (y5 <= 8.5e+92) {
tmp = t_1;
} else if (y5 <= 3.15e+206) {
tmp = t_2;
} else if (y5 <= 1.6e+283) {
tmp = t_3;
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) t_2 = a * (y * ((x * b) - (y3 * y5))) t_3 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y5 <= -1750000000.0: tmp = t_2 elif y5 <= -9.5e-221: tmp = t_1 elif y5 <= 3e-201: tmp = (a * b) * ((x * y) - (z * t)) elif y5 <= 4e+17: tmp = t_1 elif y5 <= 2.3e+60: tmp = t_3 elif y5 <= 8.5e+92: tmp = t_1 elif y5 <= 3.15e+206: tmp = t_2 elif y5 <= 1.6e+283: tmp = t_3 else: tmp = c * (y4 * ((y * y3) - (t * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))) t_3 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y5 <= -1750000000.0) tmp = t_2; elseif (y5 <= -9.5e-221) tmp = t_1; elseif (y5 <= 3e-201) tmp = Float64(Float64(a * b) * Float64(Float64(x * y) - Float64(z * t))); elseif (y5 <= 4e+17) tmp = t_1; elseif (y5 <= 2.3e+60) tmp = t_3; elseif (y5 <= 8.5e+92) tmp = t_1; elseif (y5 <= 3.15e+206) tmp = t_2; elseif (y5 <= 1.6e+283) tmp = t_3; else tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); t_2 = a * (y * ((x * b) - (y3 * y5))); t_3 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y5 <= -1750000000.0) tmp = t_2; elseif (y5 <= -9.5e-221) tmp = t_1; elseif (y5 <= 3e-201) tmp = (a * b) * ((x * y) - (z * t)); elseif (y5 <= 4e+17) tmp = t_1; elseif (y5 <= 2.3e+60) tmp = t_3; elseif (y5 <= 8.5e+92) tmp = t_1; elseif (y5 <= 3.15e+206) tmp = t_2; elseif (y5 <= 1.6e+283) tmp = t_3; else tmp = c * (y4 * ((y * y3) - (t * y2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $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[y5, -1750000000.0], t$95$2, If[LessEqual[y5, -9.5e-221], t$95$1, If[LessEqual[y5, 3e-201], N[(N[(a * b), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4e+17], t$95$1, If[LessEqual[y5, 2.3e+60], t$95$3, If[LessEqual[y5, 8.5e+92], t$95$1, If[LessEqual[y5, 3.15e+206], t$95$2, If[LessEqual[y5, 1.6e+283], t$95$3, N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
t_2 := a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
t_3 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y5 \leq -1750000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y5 \leq -9.5 \cdot 10^{-221}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 3 \cdot 10^{-201}:\\
\;\;\;\;\left(a \cdot b\right) \cdot \left(x \cdot y - z \cdot t\right)\\
\mathbf{elif}\;y5 \leq 4 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 2.3 \cdot 10^{+60}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y5 \leq 8.5 \cdot 10^{+92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 3.15 \cdot 10^{+206}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y5 \leq 1.6 \cdot 10^{+283}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\end{array}
\end{array}
if y5 < -1.75e9 or 8.5000000000000001e92 < y5 < 3.14999999999999998e206Initial program 25.0%
Simplified34.4%
Taylor expanded in y around inf 46.3%
mul-1-neg46.3%
*-commutative46.3%
*-commutative46.3%
*-commutative46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in a around -inf 45.3%
associate-*r*45.3%
neg-mul-145.3%
+-commutative45.3%
mul-1-neg45.3%
sub-neg45.3%
Simplified45.3%
if -1.75e9 < y5 < -9.50000000000000022e-221 or 3.00000000000000002e-201 < y5 < 4e17 or 2.30000000000000017e60 < y5 < 8.5000000000000001e92Initial program 32.9%
Simplified40.4%
Taylor expanded in y0 around inf 43.2%
*-commutative43.2%
mul-1-neg43.2%
*-commutative43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in c around inf 46.9%
if -9.50000000000000022e-221 < y5 < 3.00000000000000002e-201Initial program 42.5%
Simplified42.5%
Taylor expanded in b around inf 58.2%
Taylor expanded in a around inf 39.4%
associate-*r*41.4%
Simplified41.4%
if 4e17 < y5 < 2.30000000000000017e60 or 3.14999999999999998e206 < y5 < 1.60000000000000005e283Initial program 11.1%
Simplified11.1%
Taylor expanded in y2 around inf 56.2%
Taylor expanded in k around inf 74.4%
*-commutative74.4%
Simplified74.4%
if 1.60000000000000005e283 < y5 Initial program 0.0%
Simplified0.0%
Taylor expanded in y4 around inf 20.0%
Taylor expanded in c around inf 80.3%
Final simplification48.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y k) (- (* i y5) (* b y4))))
(t_2 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= y -1.12e+138)
t_1
(if (<= y -3000000.0)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y 1.65e-124)
t_2
(if (<= y 1.5e-30)
(* (* t y2) (- (* a y5) (* c y4)))
(if (<= y 1.16e+36)
t_2
(if (<= y 5.6e+55)
(* (* y b) (- (* x a) (* k y4)))
(if (<= y 3.9e+62)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y 7e+267)
t_1
(* c (* y (- (* y3 y4) (* x i))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * k) * ((i * y5) - (b * y4));
double t_2 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y <= -1.12e+138) {
tmp = t_1;
} else if (y <= -3000000.0) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y <= 1.65e-124) {
tmp = t_2;
} else if (y <= 1.5e-30) {
tmp = (t * y2) * ((a * y5) - (c * y4));
} else if (y <= 1.16e+36) {
tmp = t_2;
} else if (y <= 5.6e+55) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (y <= 3.9e+62) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y <= 7e+267) {
tmp = t_1;
} else {
tmp = c * (y * ((y3 * y4) - (x * i)));
}
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 = (y * k) * ((i * y5) - (b * y4))
t_2 = c * (y0 * ((x * y2) - (z * y3)))
if (y <= (-1.12d+138)) then
tmp = t_1
else if (y <= (-3000000.0d0)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y <= 1.65d-124) then
tmp = t_2
else if (y <= 1.5d-30) then
tmp = (t * y2) * ((a * y5) - (c * y4))
else if (y <= 1.16d+36) then
tmp = t_2
else if (y <= 5.6d+55) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (y <= 3.9d+62) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y <= 7d+267) then
tmp = t_1
else
tmp = c * (y * ((y3 * y4) - (x * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * k) * ((i * y5) - (b * y4));
double t_2 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y <= -1.12e+138) {
tmp = t_1;
} else if (y <= -3000000.0) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y <= 1.65e-124) {
tmp = t_2;
} else if (y <= 1.5e-30) {
tmp = (t * y2) * ((a * y5) - (c * y4));
} else if (y <= 1.16e+36) {
tmp = t_2;
} else if (y <= 5.6e+55) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (y <= 3.9e+62) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y <= 7e+267) {
tmp = t_1;
} else {
tmp = c * (y * ((y3 * y4) - (x * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * k) * ((i * y5) - (b * y4)) t_2 = c * (y0 * ((x * y2) - (z * y3))) tmp = 0 if y <= -1.12e+138: tmp = t_1 elif y <= -3000000.0: tmp = a * (y * ((x * b) - (y3 * y5))) elif y <= 1.65e-124: tmp = t_2 elif y <= 1.5e-30: tmp = (t * y2) * ((a * y5) - (c * y4)) elif y <= 1.16e+36: tmp = t_2 elif y <= 5.6e+55: tmp = (y * b) * ((x * a) - (k * y4)) elif y <= 3.9e+62: tmp = j * (x * ((i * y1) - (b * y0))) elif y <= 7e+267: tmp = t_1 else: tmp = c * (y * ((y3 * y4) - (x * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))) t_2 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (y <= -1.12e+138) tmp = t_1; elseif (y <= -3000000.0) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y <= 1.65e-124) tmp = t_2; elseif (y <= 1.5e-30) tmp = Float64(Float64(t * y2) * Float64(Float64(a * y5) - Float64(c * y4))); elseif (y <= 1.16e+36) tmp = t_2; elseif (y <= 5.6e+55) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (y <= 3.9e+62) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y <= 7e+267) tmp = t_1; else tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y * k) * ((i * y5) - (b * y4)); t_2 = c * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (y <= -1.12e+138) tmp = t_1; elseif (y <= -3000000.0) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y <= 1.65e-124) tmp = t_2; elseif (y <= 1.5e-30) tmp = (t * y2) * ((a * y5) - (c * y4)); elseif (y <= 1.16e+36) tmp = t_2; elseif (y <= 5.6e+55) tmp = (y * b) * ((x * a) - (k * y4)); elseif (y <= 3.9e+62) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y <= 7e+267) tmp = t_1; else tmp = c * (y * ((y3 * y4) - (x * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+138], t$95$1, If[LessEqual[y, -3000000.0], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e-124], t$95$2, If[LessEqual[y, 1.5e-30], N[(N[(t * y2), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.16e+36], t$95$2, If[LessEqual[y, 5.6e+55], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e+62], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+267], t$95$1, N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
t_2 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3000000:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-124}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-30}:\\
\;\;\;\;\left(t \cdot y2\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{+36}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+55}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+62}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+267}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -1.12e138 or 3.9e62 < y < 6.9999999999999998e267Initial program 14.6%
Simplified23.3%
Taylor expanded in y around inf 62.7%
mul-1-neg62.7%
*-commutative62.7%
*-commutative62.7%
*-commutative62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in k around inf 51.9%
associate-*r*51.8%
*-commutative51.8%
Simplified51.8%
if -1.12e138 < y < -3e6Initial program 43.7%
Simplified43.7%
Taylor expanded in y around inf 60.1%
mul-1-neg60.1%
*-commutative60.1%
*-commutative60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in a around -inf 54.3%
associate-*r*54.3%
neg-mul-154.3%
+-commutative54.3%
mul-1-neg54.3%
sub-neg54.3%
Simplified54.3%
if -3e6 < y < 1.64999999999999992e-124 or 1.49999999999999995e-30 < y < 1.15999999999999998e36Initial program 28.3%
Simplified37.4%
Taylor expanded in y0 around inf 42.5%
*-commutative42.5%
mul-1-neg42.5%
*-commutative42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in c around inf 44.7%
if 1.64999999999999992e-124 < y < 1.49999999999999995e-30Initial program 54.2%
Simplified54.2%
Taylor expanded in y2 around inf 42.2%
Taylor expanded in t around inf 35.1%
if 1.15999999999999998e36 < y < 5.6000000000000002e55Initial program 28.6%
Simplified28.6%
Taylor expanded in y around inf 71.4%
mul-1-neg71.4%
*-commutative71.4%
*-commutative71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in b around inf 58.8%
associate-*r*58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
if 5.6000000000000002e55 < y < 3.9e62Initial program 0.0%
Simplified50.0%
Taylor expanded in j around inf 0.0%
Taylor expanded in x around inf 100.0%
if 6.9999999999999998e267 < y Initial program 35.7%
Simplified35.7%
Taylor expanded in y around inf 65.1%
mul-1-neg65.1%
*-commutative65.1%
*-commutative65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in c around -inf 72.0%
associate-*r*72.0%
neg-mul-172.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
Final simplification49.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -5.4e+58)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 -3.05e-43)
(* t (* j (- (* b y4) (* i y5))))
(if (<= y2 -9e-238)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y2 -6.2e-295)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y2 1.06e-231)
(* y (* a (- (* x b) (* y3 y5))))
(if (<= y2 1.2e-63)
(* (* y k) (- (* i y5) (* b y4)))
(if (<= y2 1.45e+130)
(* (* y b) (- (* x a) (* k y4)))
(* (* x y2) (- (* c y0) (* a y1)))))))))))
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 (y2 <= -5.4e+58) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -3.05e-43) {
tmp = t * (j * ((b * y4) - (i * y5)));
} else if (y2 <= -9e-238) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y2 <= -6.2e-295) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 1.06e-231) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.2e-63) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (y2 <= 1.45e+130) {
tmp = (y * b) * ((x * a) - (k * y4));
} else {
tmp = (x * y2) * ((c * y0) - (a * y1));
}
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 (y2 <= (-5.4d+58)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= (-3.05d-43)) then
tmp = t * (j * ((b * y4) - (i * y5)))
else if (y2 <= (-9d-238)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y2 <= (-6.2d-295)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y2 <= 1.06d-231) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else if (y2 <= 1.2d-63) then
tmp = (y * k) * ((i * y5) - (b * y4))
else if (y2 <= 1.45d+130) then
tmp = (y * b) * ((x * a) - (k * y4))
else
tmp = (x * y2) * ((c * y0) - (a * y1))
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 (y2 <= -5.4e+58) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -3.05e-43) {
tmp = t * (j * ((b * y4) - (i * y5)));
} else if (y2 <= -9e-238) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y2 <= -6.2e-295) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 1.06e-231) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.2e-63) {
tmp = (y * k) * ((i * y5) - (b * y4));
} else if (y2 <= 1.45e+130) {
tmp = (y * b) * ((x * a) - (k * y4));
} else {
tmp = (x * y2) * ((c * y0) - (a * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -5.4e+58: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= -3.05e-43: tmp = t * (j * ((b * y4) - (i * y5))) elif y2 <= -9e-238: tmp = y1 * (z * ((a * y3) - (i * k))) elif y2 <= -6.2e-295: tmp = j * (x * ((i * y1) - (b * y0))) elif y2 <= 1.06e-231: tmp = y * (a * ((x * b) - (y3 * y5))) elif y2 <= 1.2e-63: tmp = (y * k) * ((i * y5) - (b * y4)) elif y2 <= 1.45e+130: tmp = (y * b) * ((x * a) - (k * y4)) else: tmp = (x * y2) * ((c * y0) - (a * y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -5.4e+58) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= -3.05e-43) tmp = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y2 <= -9e-238) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y2 <= -6.2e-295) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y2 <= 1.06e-231) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y2 <= 1.2e-63) tmp = Float64(Float64(y * k) * Float64(Float64(i * y5) - Float64(b * y4))); elseif (y2 <= 1.45e+130) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); else tmp = Float64(Float64(x * y2) * Float64(Float64(c * y0) - Float64(a * y1))); 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 (y2 <= -5.4e+58) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= -3.05e-43) tmp = t * (j * ((b * y4) - (i * y5))); elseif (y2 <= -9e-238) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y2 <= -6.2e-295) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y2 <= 1.06e-231) tmp = y * (a * ((x * b) - (y3 * y5))); elseif (y2 <= 1.2e-63) tmp = (y * k) * ((i * y5) - (b * y4)); elseif (y2 <= 1.45e+130) tmp = (y * b) * ((x * a) - (k * y4)); else tmp = (x * y2) * ((c * y0) - (a * y1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -5.4e+58], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.05e-43], N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -9e-238], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.2e-295], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.06e-231], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.2e-63], N[(N[(y * k), $MachinePrecision] * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.45e+130], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y2), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -5.4 \cdot 10^{+58}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -3.05 \cdot 10^{-43}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -9 \cdot 10^{-238}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq -6.2 \cdot 10^{-295}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 1.06 \cdot 10^{-231}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{-63}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5 - b \cdot y4\right)\\
\mathbf{elif}\;y2 \leq 1.45 \cdot 10^{+130}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\\
\end{array}
\end{array}
if y2 < -5.4000000000000002e58Initial program 16.9%
Simplified25.4%
Taylor expanded in y0 around inf 47.6%
*-commutative47.6%
mul-1-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in c around inf 55.3%
if -5.4000000000000002e58 < y2 < -3.05000000000000019e-43Initial program 13.6%
Simplified22.7%
Taylor expanded in j around inf 45.7%
Taylor expanded in t around inf 46.7%
if -3.05000000000000019e-43 < y2 < -8.99999999999999992e-238Initial program 39.2%
Simplified39.2%
Taylor expanded in z around -inf 46.9%
Taylor expanded in y1 around inf 46.9%
*-commutative46.9%
associate-*l*51.6%
cancel-sign-sub-inv51.6%
metadata-eval51.6%
*-lft-identity51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
Simplified51.6%
if -8.99999999999999992e-238 < y2 < -6.2000000000000004e-295Initial program 40.0%
Simplified50.0%
Taylor expanded in j around inf 50.1%
Taylor expanded in x around inf 70.3%
if -6.2000000000000004e-295 < y2 < 1.0600000000000001e-231Initial program 23.9%
Simplified35.7%
Taylor expanded in y around inf 59.2%
mul-1-neg59.2%
*-commutative59.2%
*-commutative59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in a around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
sub-neg48.4%
Simplified48.4%
if 1.0600000000000001e-231 < y2 < 1.2e-63Initial program 31.7%
Simplified40.4%
Taylor expanded in y around inf 46.2%
mul-1-neg46.2%
*-commutative46.2%
*-commutative46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in k around inf 40.8%
associate-*r*40.8%
*-commutative40.8%
Simplified40.8%
if 1.2e-63 < y2 < 1.45e130Initial program 38.1%
Simplified45.0%
Taylor expanded in y around inf 49.3%
mul-1-neg49.3%
*-commutative49.3%
*-commutative49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in b around inf 49.5%
associate-*r*49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
if 1.45e130 < y2 Initial program 35.0%
Simplified35.0%
Taylor expanded in y2 around inf 68.0%
Taylor expanded in x around inf 56.6%
Final simplification51.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (- (* x b) (* y3 y5))))))
(if (<= y -190000.0)
t_1
(if (<= y 3.4e+36)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y 1.02e+127)
(* k (* y0 (* y5 (- y2))))
(if (<= y 1.12e+149)
(* z (* y0 (* b k)))
(if (or (<= y 3.6e+241) (not (<= y 2.8e+260)))
(* c (* y4 (- (* y y3) (* t 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 = y * (a * ((x * b) - (y3 * y5)));
double tmp;
if (y <= -190000.0) {
tmp = t_1;
} else if (y <= 3.4e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 1.02e+127) {
tmp = k * (y0 * (y5 * -y2));
} else if (y <= 1.12e+149) {
tmp = z * (y0 * (b * k));
} else if ((y <= 3.6e+241) || !(y <= 2.8e+260)) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} 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 = y * (a * ((x * b) - (y3 * y5)))
if (y <= (-190000.0d0)) then
tmp = t_1
else if (y <= 3.4d+36) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y <= 1.02d+127) then
tmp = k * (y0 * (y5 * -y2))
else if (y <= 1.12d+149) then
tmp = z * (y0 * (b * k))
else if ((y <= 3.6d+241) .or. (.not. (y <= 2.8d+260))) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
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 = y * (a * ((x * b) - (y3 * y5)));
double tmp;
if (y <= -190000.0) {
tmp = t_1;
} else if (y <= 3.4e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 1.02e+127) {
tmp = k * (y0 * (y5 * -y2));
} else if (y <= 1.12e+149) {
tmp = z * (y0 * (b * k));
} else if ((y <= 3.6e+241) || !(y <= 2.8e+260)) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} 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 = y * (a * ((x * b) - (y3 * y5))) tmp = 0 if y <= -190000.0: tmp = t_1 elif y <= 3.4e+36: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y <= 1.02e+127: tmp = k * (y0 * (y5 * -y2)) elif y <= 1.12e+149: tmp = z * (y0 * (b * k)) elif (y <= 3.6e+241) or not (y <= 2.8e+260): tmp = c * (y4 * ((y * y3) - (t * y2))) 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(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))) tmp = 0.0 if (y <= -190000.0) tmp = t_1; elseif (y <= 3.4e+36) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y <= 1.02e+127) tmp = Float64(k * Float64(y0 * Float64(y5 * Float64(-y2)))); elseif (y <= 1.12e+149) tmp = Float64(z * Float64(y0 * Float64(b * k))); elseif ((y <= 3.6e+241) || !(y <= 2.8e+260)) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); 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 = y * (a * ((x * b) - (y3 * y5))); tmp = 0.0; if (y <= -190000.0) tmp = t_1; elseif (y <= 3.4e+36) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y <= 1.02e+127) tmp = k * (y0 * (y5 * -y2)); elseif (y <= 1.12e+149) tmp = z * (y0 * (b * k)); elseif ((y <= 3.6e+241) || ~((y <= 2.8e+260))) tmp = c * (y4 * ((y * y3) - (t * y2))); 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[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -190000.0], t$95$1, If[LessEqual[y, 3.4e+36], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.02e+127], N[(k * N[(y0 * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e+149], N[(z * N[(y0 * N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 3.6e+241], N[Not[LessEqual[y, 2.8e+260]], $MachinePrecision]], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{if}\;y \leq -190000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+36}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{+127}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{+149}:\\
\;\;\;\;z \cdot \left(y0 \cdot \left(b \cdot k\right)\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+241} \lor \neg \left(y \leq 2.8 \cdot 10^{+260}\right):\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.9e5 or 3.59999999999999983e241 < y < 2.7999999999999998e260Initial program 31.8%
Simplified36.8%
Taylor expanded in y around inf 70.0%
mul-1-neg70.0%
*-commutative70.0%
*-commutative70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in a around inf 49.1%
+-commutative49.1%
mul-1-neg49.1%
sub-neg49.1%
Simplified49.1%
if -1.9e5 < y < 3.3999999999999998e36Initial program 33.0%
Simplified41.2%
Taylor expanded in y0 around inf 42.5%
*-commutative42.5%
mul-1-neg42.5%
*-commutative42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in c around inf 39.3%
if 3.3999999999999998e36 < y < 1.02e127Initial program 15.0%
Simplified20.0%
Taylor expanded in y0 around inf 40.2%
*-commutative40.2%
mul-1-neg40.2%
*-commutative40.2%
*-commutative40.2%
Simplified40.2%
Taylor expanded in y5 around inf 40.7%
Taylor expanded in y3 around 0 50.5%
associate-*r*50.5%
neg-mul-150.5%
*-commutative50.5%
Simplified50.5%
if 1.02e127 < y < 1.11999999999999992e149Initial program 11.1%
Simplified33.3%
Taylor expanded in y0 around inf 67.5%
*-commutative67.5%
mul-1-neg67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in z around inf 57.0%
associate-*r*45.9%
+-commutative45.9%
mul-1-neg45.9%
sub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in k around inf 34.3%
associate-*r*34.3%
Simplified34.3%
Taylor expanded in k around 0 34.3%
associate-*r*34.3%
associate-*r*34.3%
*-commutative34.3%
*-commutative34.3%
associate-*l*45.0%
Simplified45.0%
if 1.11999999999999992e149 < y < 3.59999999999999983e241 or 2.7999999999999998e260 < y Initial program 21.4%
Simplified21.4%
Taylor expanded in y4 around inf 42.8%
Taylor expanded in c around inf 58.5%
Final simplification45.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* j (- (* b y4) (* i y5)))))
(t_2 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= y2 -4.6e+54)
t_2
(if (<= y2 -1.45e-54)
t_1
(if (<= y2 -3.6e-189)
t_2
(if (<= y2 -5.8e-297)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y2 9.6e-185)
t_1
(if (<= y2 7.8e+95)
(* y0 (* y5 (* j y3)))
(* k (* y2 (- (* y1 y4) (* y0 y5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (j * ((b * y4) - (i * y5)));
double t_2 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y2 <= -4.6e+54) {
tmp = t_2;
} else if (y2 <= -1.45e-54) {
tmp = t_1;
} else if (y2 <= -3.6e-189) {
tmp = t_2;
} else if (y2 <= -5.8e-297) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 9.6e-185) {
tmp = t_1;
} else if (y2 <= 7.8e+95) {
tmp = y0 * (y5 * (j * y3));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (j * ((b * y4) - (i * y5)))
t_2 = c * (y0 * ((x * y2) - (z * y3)))
if (y2 <= (-4.6d+54)) then
tmp = t_2
else if (y2 <= (-1.45d-54)) then
tmp = t_1
else if (y2 <= (-3.6d-189)) then
tmp = t_2
else if (y2 <= (-5.8d-297)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y2 <= 9.6d-185) then
tmp = t_1
else if (y2 <= 7.8d+95) then
tmp = y0 * (y5 * (j * y3))
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (j * ((b * y4) - (i * y5)));
double t_2 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y2 <= -4.6e+54) {
tmp = t_2;
} else if (y2 <= -1.45e-54) {
tmp = t_1;
} else if (y2 <= -3.6e-189) {
tmp = t_2;
} else if (y2 <= -5.8e-297) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y2 <= 9.6e-185) {
tmp = t_1;
} else if (y2 <= 7.8e+95) {
tmp = y0 * (y5 * (j * y3));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * (j * ((b * y4) - (i * y5))) t_2 = c * (y0 * ((x * y2) - (z * y3))) tmp = 0 if y2 <= -4.6e+54: tmp = t_2 elif y2 <= -1.45e-54: tmp = t_1 elif y2 <= -3.6e-189: tmp = t_2 elif y2 <= -5.8e-297: tmp = j * (x * ((i * y1) - (b * y0))) elif y2 <= 9.6e-185: tmp = t_1 elif y2 <= 7.8e+95: tmp = y0 * (y5 * (j * y3)) else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) t_2 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (y2 <= -4.6e+54) tmp = t_2; elseif (y2 <= -1.45e-54) tmp = t_1; elseif (y2 <= -3.6e-189) tmp = t_2; elseif (y2 <= -5.8e-297) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y2 <= 9.6e-185) tmp = t_1; elseif (y2 <= 7.8e+95) tmp = Float64(y0 * Float64(y5 * Float64(j * y3))); else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * (j * ((b * y4) - (i * y5))); t_2 = c * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (y2 <= -4.6e+54) tmp = t_2; elseif (y2 <= -1.45e-54) tmp = t_1; elseif (y2 <= -3.6e-189) tmp = t_2; elseif (y2 <= -5.8e-297) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y2 <= 9.6e-185) tmp = t_1; elseif (y2 <= 7.8e+95) tmp = y0 * (y5 * (j * y3)); else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(t * N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.6e+54], t$95$2, If[LessEqual[y2, -1.45e-54], t$95$1, If[LessEqual[y2, -3.6e-189], t$95$2, If[LessEqual[y2, -5.8e-297], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.6e-185], t$95$1, If[LessEqual[y2, 7.8e+95], N[(y0 * N[(y5 * N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
t_2 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;y2 \leq -4.6 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -1.45 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -3.6 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -5.8 \cdot 10^{-297}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 9.6 \cdot 10^{-185}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 7.8 \cdot 10^{+95}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -4.59999999999999988e54 or -1.45000000000000007e-54 < y2 < -3.60000000000000017e-189Initial program 26.9%
Simplified33.7%
Taylor expanded in y0 around inf 45.2%
*-commutative45.2%
mul-1-neg45.2%
*-commutative45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in c around inf 50.5%
if -4.59999999999999988e54 < y2 < -1.45000000000000007e-54 or -5.79999999999999979e-297 < y2 < 9.6000000000000005e-185Initial program 21.4%
Simplified31.0%
Taylor expanded in j around inf 39.4%
Taylor expanded in t around inf 45.7%
if -3.60000000000000017e-189 < y2 < -5.79999999999999979e-297Initial program 31.6%
Simplified42.1%
Taylor expanded in j around inf 43.1%
Taylor expanded in x around inf 43.6%
if 9.6000000000000005e-185 < y2 < 7.7999999999999994e95Initial program 35.0%
Simplified45.2%
Taylor expanded in y0 around inf 29.8%
*-commutative29.8%
mul-1-neg29.8%
*-commutative29.8%
*-commutative29.8%
Simplified29.8%
Taylor expanded in y5 around inf 27.9%
Taylor expanded in y3 around inf 29.8%
if 7.7999999999999994e95 < y2 Initial program 34.2%
Simplified34.2%
Taylor expanded in y2 around inf 66.5%
Taylor expanded in k around inf 43.6%
*-commutative43.6%
Simplified43.6%
Final simplification43.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= y -2.2e+171)
t_1
(if (<= y -21.5)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y -1e-109)
t_1
(if (<= y 1e+36)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y 5.8e+111) (* k (* y0 (* y5 (- 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 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y <= -2.2e+171) {
tmp = t_1;
} else if (y <= -21.5) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y <= -1e-109) {
tmp = t_1;
} else if (y <= 1e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 5.8e+111) {
tmp = k * (y0 * (y5 * -y2));
} 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 = c * (y4 * ((y * y3) - (t * y2)))
if (y <= (-2.2d+171)) then
tmp = t_1
else if (y <= (-21.5d0)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y <= (-1d-109)) then
tmp = t_1
else if (y <= 1d+36) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y <= 5.8d+111) then
tmp = k * (y0 * (y5 * -y2))
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 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y <= -2.2e+171) {
tmp = t_1;
} else if (y <= -21.5) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y <= -1e-109) {
tmp = t_1;
} else if (y <= 1e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 5.8e+111) {
tmp = k * (y0 * (y5 * -y2));
} 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 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if y <= -2.2e+171: tmp = t_1 elif y <= -21.5: tmp = j * (x * ((i * y1) - (b * y0))) elif y <= -1e-109: tmp = t_1 elif y <= 1e+36: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y <= 5.8e+111: tmp = k * (y0 * (y5 * -y2)) 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(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y <= -2.2e+171) tmp = t_1; elseif (y <= -21.5) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y <= -1e-109) tmp = t_1; elseif (y <= 1e+36) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y <= 5.8e+111) tmp = Float64(k * Float64(y0 * Float64(y5 * Float64(-y2)))); 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 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (y <= -2.2e+171) tmp = t_1; elseif (y <= -21.5) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y <= -1e-109) tmp = t_1; elseif (y <= 1e+36) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y <= 5.8e+111) tmp = k * (y0 * (y5 * -y2)); 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[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e+171], t$95$1, If[LessEqual[y, -21.5], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1e-109], t$95$1, If[LessEqual[y, 1e+36], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+111], N[(k * N[(y0 * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -21.5:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq -1 \cdot 10^{-109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 10^{+36}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+111}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.1999999999999999e171 or -21.5 < y < -9.9999999999999999e-110 or 5.7999999999999999e111 < y Initial program 24.5%
Simplified24.5%
Taylor expanded in y4 around inf 46.0%
Taylor expanded in c around inf 48.7%
if -2.1999999999999999e171 < y < -21.5Initial program 38.1%
Simplified40.8%
Taylor expanded in j around inf 35.7%
Taylor expanded in x around inf 30.7%
if -9.9999999999999999e-110 < y < 1.00000000000000004e36Initial program 32.0%
Simplified40.2%
Taylor expanded in y0 around inf 43.4%
*-commutative43.4%
mul-1-neg43.4%
*-commutative43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in c around inf 38.6%
if 1.00000000000000004e36 < y < 5.7999999999999999e111Initial program 15.8%
Simplified21.1%
Taylor expanded in y0 around inf 42.3%
*-commutative42.3%
mul-1-neg42.3%
*-commutative42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in y5 around inf 42.9%
Taylor expanded in y3 around 0 47.9%
associate-*r*47.9%
neg-mul-147.9%
*-commutative47.9%
Simplified47.9%
Final simplification41.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -14000.0)
(* y (* a (- (* x b) (* y3 y5))))
(if (<= y 1.02e-107)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y 3.4e+39)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y 1.6e+100)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= y 2.3e+108)
(* y0 (* k (* y5 (- y2))))
(* c (* y4 (- (* y y3) (* t y2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -14000.0) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y <= 1.02e-107) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 3.4e+39) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y <= 1.6e+100) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y <= 2.3e+108) {
tmp = y0 * (k * (y5 * -y2));
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-14000.0d0)) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else if (y <= 1.02d-107) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y <= 3.4d+39) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y <= 1.6d+100) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (y <= 2.3d+108) then
tmp = y0 * (k * (y5 * -y2))
else
tmp = c * (y4 * ((y * y3) - (t * y2)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -14000.0) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y <= 1.02e-107) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 3.4e+39) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y <= 1.6e+100) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y <= 2.3e+108) {
tmp = y0 * (k * (y5 * -y2));
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -14000.0: tmp = y * (a * ((x * b) - (y3 * y5))) elif y <= 1.02e-107: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y <= 3.4e+39: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y <= 1.6e+100: tmp = y4 * (t * ((b * j) - (c * y2))) elif y <= 2.3e+108: tmp = y0 * (k * (y5 * -y2)) else: tmp = c * (y4 * ((y * y3) - (t * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -14000.0) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y <= 1.02e-107) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y <= 3.4e+39) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y <= 1.6e+100) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y <= 2.3e+108) tmp = Float64(y0 * Float64(k * Float64(y5 * Float64(-y2)))); else tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -14000.0) tmp = y * (a * ((x * b) - (y3 * y5))); elseif (y <= 1.02e-107) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y <= 3.4e+39) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y <= 1.6e+100) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (y <= 2.3e+108) tmp = y0 * (k * (y5 * -y2)); else tmp = c * (y4 * ((y * y3) - (t * y2))); 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, -14000.0], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.02e-107], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+39], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+100], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+108], N[(y0 * N[(k * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -14000:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-107}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+39}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+100}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+108}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\end{array}
\end{array}
if y < -14000Initial program 31.1%
Simplified36.6%
Taylor expanded in y around inf 67.3%
mul-1-neg67.3%
*-commutative67.3%
*-commutative67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in a around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
sub-neg46.3%
Simplified46.3%
if -14000 < y < 1.02e-107Initial program 27.7%
Simplified36.3%
Taylor expanded in y0 around inf 41.7%
*-commutative41.7%
mul-1-neg41.7%
*-commutative41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in c around inf 42.2%
if 1.02e-107 < y < 3.3999999999999999e39Initial program 48.6%
Simplified48.6%
Taylor expanded in y4 around inf 43.1%
Taylor expanded in y1 around inf 43.3%
if 3.3999999999999999e39 < y < 1.5999999999999999e100Initial program 20.0%
Simplified20.0%
Taylor expanded in y4 around inf 13.4%
Taylor expanded in t around inf 47.2%
if 1.5999999999999999e100 < y < 2.2999999999999999e108Initial program 0.0%
Simplified0.0%
Taylor expanded in y0 around inf 100.0%
*-commutative100.0%
mul-1-neg100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y5 around inf 100.0%
Taylor expanded in y3 around 0 100.0%
associate-*r*100.0%
neg-mul-1100.0%
*-commutative100.0%
Simplified100.0%
if 2.2999999999999999e108 < y Initial program 21.0%
Simplified21.0%
Taylor expanded in y4 around inf 42.0%
Taylor expanded in c around inf 48.8%
Final simplification45.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= y -1.7e-107)
t_1
(if (<= y 2.4e+36)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y 5.4e+108) (* k (* y0 (* y5 (- 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 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y <= -1.7e-107) {
tmp = t_1;
} else if (y <= 2.4e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 5.4e+108) {
tmp = k * (y0 * (y5 * -y2));
} 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 = c * (y4 * ((y * y3) - (t * y2)))
if (y <= (-1.7d-107)) then
tmp = t_1
else if (y <= 2.4d+36) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y <= 5.4d+108) then
tmp = k * (y0 * (y5 * -y2))
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 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y <= -1.7e-107) {
tmp = t_1;
} else if (y <= 2.4e+36) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 5.4e+108) {
tmp = k * (y0 * (y5 * -y2));
} 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 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if y <= -1.7e-107: tmp = t_1 elif y <= 2.4e+36: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y <= 5.4e+108: tmp = k * (y0 * (y5 * -y2)) 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(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y <= -1.7e-107) tmp = t_1; elseif (y <= 2.4e+36) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y <= 5.4e+108) tmp = Float64(k * Float64(y0 * Float64(y5 * Float64(-y2)))); 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 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (y <= -1.7e-107) tmp = t_1; elseif (y <= 2.4e+36) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y <= 5.4e+108) tmp = k * (y0 * (y5 * -y2)); 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[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e-107], t$95$1, If[LessEqual[y, 2.4e+36], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e+108], N[(k * N[(y0 * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{-107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+36}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{+108}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.69999999999999997e-107 or 5.4e108 < y Initial program 28.5%
Simplified28.5%
Taylor expanded in y4 around inf 42.3%
Taylor expanded in c around inf 40.3%
if -1.69999999999999997e-107 < y < 2.39999999999999992e36Initial program 32.0%
Simplified40.2%
Taylor expanded in y0 around inf 43.4%
*-commutative43.4%
mul-1-neg43.4%
*-commutative43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in c around inf 38.6%
if 2.39999999999999992e36 < y < 5.4e108Initial program 15.8%
Simplified21.1%
Taylor expanded in y0 around inf 42.3%
*-commutative42.3%
mul-1-neg42.3%
*-commutative42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in y5 around inf 42.9%
Taylor expanded in y3 around 0 47.9%
associate-*r*47.9%
neg-mul-147.9%
*-commutative47.9%
Simplified47.9%
Final simplification40.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y2 (* t y5)))))
(if (<= t -0.00135)
t_1
(if (<= t 3.6e-173)
(* k (* y0 (* z b)))
(if (<= t 6.5e-85)
(* y0 (* j (* y3 y5)))
(if (<= t 3.8e+132) (* c (* y0 (* x 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 * (y2 * (t * y5));
double tmp;
if (t <= -0.00135) {
tmp = t_1;
} else if (t <= 3.6e-173) {
tmp = k * (y0 * (z * b));
} else if (t <= 6.5e-85) {
tmp = y0 * (j * (y3 * y5));
} else if (t <= 3.8e+132) {
tmp = c * (y0 * (x * y2));
} 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 * (y2 * (t * y5))
if (t <= (-0.00135d0)) then
tmp = t_1
else if (t <= 3.6d-173) then
tmp = k * (y0 * (z * b))
else if (t <= 6.5d-85) then
tmp = y0 * (j * (y3 * y5))
else if (t <= 3.8d+132) then
tmp = c * (y0 * (x * y2))
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 * (y2 * (t * y5));
double tmp;
if (t <= -0.00135) {
tmp = t_1;
} else if (t <= 3.6e-173) {
tmp = k * (y0 * (z * b));
} else if (t <= 6.5e-85) {
tmp = y0 * (j * (y3 * y5));
} else if (t <= 3.8e+132) {
tmp = c * (y0 * (x * y2));
} 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 * (y2 * (t * y5)) tmp = 0 if t <= -0.00135: tmp = t_1 elif t <= 3.6e-173: tmp = k * (y0 * (z * b)) elif t <= 6.5e-85: tmp = y0 * (j * (y3 * y5)) elif t <= 3.8e+132: tmp = c * (y0 * (x * y2)) 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(y2 * Float64(t * y5))) tmp = 0.0 if (t <= -0.00135) tmp = t_1; elseif (t <= 3.6e-173) tmp = Float64(k * Float64(y0 * Float64(z * b))); elseif (t <= 6.5e-85) tmp = Float64(y0 * Float64(j * Float64(y3 * y5))); elseif (t <= 3.8e+132) tmp = Float64(c * Float64(y0 * Float64(x * y2))); 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 * (y2 * (t * y5)); tmp = 0.0; if (t <= -0.00135) tmp = t_1; elseif (t <= 3.6e-173) tmp = k * (y0 * (z * b)); elseif (t <= 6.5e-85) tmp = y0 * (j * (y3 * y5)); elseif (t <= 3.8e+132) tmp = c * (y0 * (x * y2)); 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[(y2 * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.00135], t$95$1, If[LessEqual[t, 3.6e-173], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-85], N[(y0 * N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+132], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y2 \cdot \left(t \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -0.00135:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-173}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-85}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+132}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -0.0013500000000000001 or 3.80000000000000006e132 < t Initial program 27.1%
Simplified27.1%
Taylor expanded in y2 around inf 37.6%
Taylor expanded in t around -inf 40.2%
associate-*r*40.2%
neg-mul-140.2%
Simplified40.2%
Taylor expanded in c around 0 37.4%
associate-*r*39.3%
Simplified39.3%
if -0.0013500000000000001 < t < 3.59999999999999972e-173Initial program 33.5%
Simplified43.0%
Taylor expanded in y0 around inf 39.7%
*-commutative39.7%
mul-1-neg39.7%
*-commutative39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in z around inf 37.3%
associate-*r*33.6%
+-commutative33.6%
mul-1-neg33.6%
sub-neg33.6%
*-commutative33.6%
Simplified33.6%
Taylor expanded in b around inf 30.8%
if 3.59999999999999972e-173 < t < 6.5e-85Initial program 29.9%
Simplified30.0%
Taylor expanded in y0 around inf 46.3%
*-commutative46.3%
mul-1-neg46.3%
*-commutative46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in y5 around inf 46.1%
Taylor expanded in y3 around inf 36.7%
associate-*r*36.7%
*-commutative36.7%
associate-*l*36.7%
Simplified36.7%
if 6.5e-85 < t < 3.80000000000000006e132Initial program 19.6%
Simplified26.1%
Taylor expanded in y0 around inf 36.1%
*-commutative36.1%
mul-1-neg36.1%
*-commutative36.1%
*-commutative36.1%
Simplified36.1%
Taylor expanded in c around inf 36.4%
Taylor expanded in x around inf 30.3%
Final simplification34.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y2 (* t y5)))))
(if (<= t -0.0052)
t_1
(if (<= t 9.8e-164)
(* k (* y0 (* z b)))
(if (<= t 1.45e-85)
(* y0 (* y3 (* j y5)))
(if (<= t 2.3e+131) (* c (* y0 (* x 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 * (y2 * (t * y5));
double tmp;
if (t <= -0.0052) {
tmp = t_1;
} else if (t <= 9.8e-164) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.45e-85) {
tmp = y0 * (y3 * (j * y5));
} else if (t <= 2.3e+131) {
tmp = c * (y0 * (x * y2));
} 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 * (y2 * (t * y5))
if (t <= (-0.0052d0)) then
tmp = t_1
else if (t <= 9.8d-164) then
tmp = k * (y0 * (z * b))
else if (t <= 1.45d-85) then
tmp = y0 * (y3 * (j * y5))
else if (t <= 2.3d+131) then
tmp = c * (y0 * (x * y2))
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 * (y2 * (t * y5));
double tmp;
if (t <= -0.0052) {
tmp = t_1;
} else if (t <= 9.8e-164) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.45e-85) {
tmp = y0 * (y3 * (j * y5));
} else if (t <= 2.3e+131) {
tmp = c * (y0 * (x * y2));
} 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 * (y2 * (t * y5)) tmp = 0 if t <= -0.0052: tmp = t_1 elif t <= 9.8e-164: tmp = k * (y0 * (z * b)) elif t <= 1.45e-85: tmp = y0 * (y3 * (j * y5)) elif t <= 2.3e+131: tmp = c * (y0 * (x * y2)) 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(y2 * Float64(t * y5))) tmp = 0.0 if (t <= -0.0052) tmp = t_1; elseif (t <= 9.8e-164) tmp = Float64(k * Float64(y0 * Float64(z * b))); elseif (t <= 1.45e-85) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); elseif (t <= 2.3e+131) tmp = Float64(c * Float64(y0 * Float64(x * y2))); 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 * (y2 * (t * y5)); tmp = 0.0; if (t <= -0.0052) tmp = t_1; elseif (t <= 9.8e-164) tmp = k * (y0 * (z * b)); elseif (t <= 1.45e-85) tmp = y0 * (y3 * (j * y5)); elseif (t <= 2.3e+131) tmp = c * (y0 * (x * y2)); 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[(y2 * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.0052], t$95$1, If[LessEqual[t, 9.8e-164], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-85], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+131], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y2 \cdot \left(t \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -0.0052:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-164}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-85}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+131}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -0.0051999999999999998 or 2.29999999999999992e131 < t Initial program 27.1%
Simplified27.1%
Taylor expanded in y2 around inf 37.6%
Taylor expanded in t around -inf 40.2%
associate-*r*40.2%
neg-mul-140.2%
Simplified40.2%
Taylor expanded in c around 0 37.4%
associate-*r*39.3%
Simplified39.3%
if -0.0051999999999999998 < t < 9.7999999999999993e-164Initial program 34.4%
Simplified43.7%
Taylor expanded in y0 around inf 39.6%
*-commutative39.6%
mul-1-neg39.6%
*-commutative39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in z around inf 36.3%
associate-*r*32.7%
+-commutative32.7%
mul-1-neg32.7%
sub-neg32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in b around inf 30.1%
if 9.7999999999999993e-164 < t < 1.4500000000000001e-85Initial program 23.5%
Simplified23.5%
Taylor expanded in y0 around inf 48.1%
*-commutative48.1%
mul-1-neg48.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in y5 around inf 48.0%
Taylor expanded in y3 around inf 42.8%
if 1.4500000000000001e-85 < t < 2.29999999999999992e131Initial program 19.6%
Simplified26.1%
Taylor expanded in y0 around inf 36.1%
*-commutative36.1%
mul-1-neg36.1%
*-commutative36.1%
*-commutative36.1%
Simplified36.1%
Taylor expanded in c around inf 36.4%
Taylor expanded in x around inf 30.3%
Final simplification34.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -0.00046)
(* a (* y2 (* t y5)))
(if (<= t 5.5e-165)
(* k (* y0 (* z b)))
(if (<= t 1.22e-85)
(* y0 (* y3 (* j y5)))
(if (<= t 1.12e+130) (* c (* y0 (* x y2))) (* y2 (* a (* t 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 tmp;
if (t <= -0.00046) {
tmp = a * (y2 * (t * y5));
} else if (t <= 5.5e-165) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.22e-85) {
tmp = y0 * (y3 * (j * y5));
} else if (t <= 1.12e+130) {
tmp = c * (y0 * (x * y2));
} else {
tmp = y2 * (a * (t * 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) :: tmp
if (t <= (-0.00046d0)) then
tmp = a * (y2 * (t * y5))
else if (t <= 5.5d-165) then
tmp = k * (y0 * (z * b))
else if (t <= 1.22d-85) then
tmp = y0 * (y3 * (j * y5))
else if (t <= 1.12d+130) then
tmp = c * (y0 * (x * y2))
else
tmp = y2 * (a * (t * 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 tmp;
if (t <= -0.00046) {
tmp = a * (y2 * (t * y5));
} else if (t <= 5.5e-165) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.22e-85) {
tmp = y0 * (y3 * (j * y5));
} else if (t <= 1.12e+130) {
tmp = c * (y0 * (x * y2));
} else {
tmp = y2 * (a * (t * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -0.00046: tmp = a * (y2 * (t * y5)) elif t <= 5.5e-165: tmp = k * (y0 * (z * b)) elif t <= 1.22e-85: tmp = y0 * (y3 * (j * y5)) elif t <= 1.12e+130: tmp = c * (y0 * (x * y2)) else: tmp = y2 * (a * (t * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -0.00046) tmp = Float64(a * Float64(y2 * Float64(t * y5))); elseif (t <= 5.5e-165) tmp = Float64(k * Float64(y0 * Float64(z * b))); elseif (t <= 1.22e-85) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); elseif (t <= 1.12e+130) tmp = Float64(c * Float64(y0 * Float64(x * y2))); else tmp = Float64(y2 * Float64(a * Float64(t * 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) tmp = 0.0; if (t <= -0.00046) tmp = a * (y2 * (t * y5)); elseif (t <= 5.5e-165) tmp = k * (y0 * (z * b)); elseif (t <= 1.22e-85) tmp = y0 * (y3 * (j * y5)); elseif (t <= 1.12e+130) tmp = c * (y0 * (x * y2)); else tmp = y2 * (a * (t * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -0.00046], N[(a * N[(y2 * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-165], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.22e-85], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.12e+130], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(a * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.00046:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-165}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-85}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{+130}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\
\end{array}
\end{array}
if t < -4.6000000000000001e-4Initial program 27.1%
Simplified27.1%
Taylor expanded in y2 around inf 36.5%
Taylor expanded in t around -inf 37.1%
associate-*r*37.1%
neg-mul-137.1%
Simplified37.1%
Taylor expanded in c around 0 38.4%
associate-*r*39.6%
Simplified39.6%
if -4.6000000000000001e-4 < t < 5.49999999999999969e-165Initial program 34.4%
Simplified43.7%
Taylor expanded in y0 around inf 39.6%
*-commutative39.6%
mul-1-neg39.6%
*-commutative39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in z around inf 36.3%
associate-*r*32.7%
+-commutative32.7%
mul-1-neg32.7%
sub-neg32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in b around inf 30.1%
if 5.49999999999999969e-165 < t < 1.22000000000000006e-85Initial program 23.5%
Simplified23.5%
Taylor expanded in y0 around inf 48.1%
*-commutative48.1%
mul-1-neg48.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in y5 around inf 48.0%
Taylor expanded in y3 around inf 42.8%
if 1.22000000000000006e-85 < t < 1.1199999999999999e130Initial program 19.6%
Simplified26.1%
Taylor expanded in y0 around inf 36.1%
*-commutative36.1%
mul-1-neg36.1%
*-commutative36.1%
*-commutative36.1%
Simplified36.1%
Taylor expanded in c around inf 36.4%
Taylor expanded in x around inf 30.3%
if 1.1199999999999999e130 < t Initial program 27.3%
Simplified27.3%
Taylor expanded in y2 around inf 41.6%
Taylor expanded in t around -inf 51.2%
associate-*r*51.2%
neg-mul-151.2%
Simplified51.2%
Taylor expanded in c around 0 33.8%
pow133.8%
Applied egg-rr33.8%
unpow133.8%
associate-*r*38.1%
associate-*r*42.2%
Simplified42.2%
Final simplification34.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -0.0032)
(* a (* y2 (* t y5)))
(if (<= t 1.28e-163)
(* k (* y0 (* z b)))
(if (<= t 1.5e-32) (* y0 (* y3 (* j y5))) (* y4 (* c (* t (- y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -0.0032) {
tmp = a * (y2 * (t * y5));
} else if (t <= 1.28e-163) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.5e-32) {
tmp = y0 * (y3 * (j * y5));
} else {
tmp = y4 * (c * (t * -y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-0.0032d0)) then
tmp = a * (y2 * (t * y5))
else if (t <= 1.28d-163) then
tmp = k * (y0 * (z * b))
else if (t <= 1.5d-32) then
tmp = y0 * (y3 * (j * y5))
else
tmp = y4 * (c * (t * -y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -0.0032) {
tmp = a * (y2 * (t * y5));
} else if (t <= 1.28e-163) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.5e-32) {
tmp = y0 * (y3 * (j * y5));
} else {
tmp = y4 * (c * (t * -y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -0.0032: tmp = a * (y2 * (t * y5)) elif t <= 1.28e-163: tmp = k * (y0 * (z * b)) elif t <= 1.5e-32: tmp = y0 * (y3 * (j * y5)) else: tmp = y4 * (c * (t * -y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -0.0032) tmp = Float64(a * Float64(y2 * Float64(t * y5))); elseif (t <= 1.28e-163) tmp = Float64(k * Float64(y0 * Float64(z * b))); elseif (t <= 1.5e-32) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); else tmp = Float64(y4 * Float64(c * Float64(t * Float64(-y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -0.0032) tmp = a * (y2 * (t * y5)); elseif (t <= 1.28e-163) tmp = k * (y0 * (z * b)); elseif (t <= 1.5e-32) tmp = y0 * (y3 * (j * y5)); else tmp = y4 * (c * (t * -y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -0.0032], N[(a * N[(y2 * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.28e-163], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-32], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0032:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 1.28 \cdot 10^{-163}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-32}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\end{array}
\end{array}
if t < -0.00320000000000000015Initial program 27.1%
Simplified27.1%
Taylor expanded in y2 around inf 36.5%
Taylor expanded in t around -inf 37.1%
associate-*r*37.1%
neg-mul-137.1%
Simplified37.1%
Taylor expanded in c around 0 38.4%
associate-*r*39.6%
Simplified39.6%
if -0.00320000000000000015 < t < 1.28e-163Initial program 34.4%
Simplified43.7%
Taylor expanded in y0 around inf 39.6%
*-commutative39.6%
mul-1-neg39.6%
*-commutative39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in z around inf 36.3%
associate-*r*32.7%
+-commutative32.7%
mul-1-neg32.7%
sub-neg32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in b around inf 30.1%
if 1.28e-163 < t < 1.5e-32Initial program 25.0%
Simplified25.0%
Taylor expanded in y0 around inf 46.0%
*-commutative46.0%
mul-1-neg46.0%
*-commutative46.0%
*-commutative46.0%
Simplified46.0%
Taylor expanded in y5 around inf 41.2%
Taylor expanded in y3 around inf 36.7%
if 1.5e-32 < t Initial program 22.2%
Simplified22.2%
Taylor expanded in y4 around inf 36.5%
Taylor expanded in t around inf 40.7%
Taylor expanded in j around 0 35.2%
associate-*r*35.2%
neg-mul-135.2%
Simplified35.2%
Final simplification34.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.9e-190)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 7e-185)
(* t (* y4 (* b j)))
(if (<= y2 8.6e+95) (* y0 (* y5 (* j y3))) (* y0 (* k (* y5 (- y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.9e-190) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= 7e-185) {
tmp = t * (y4 * (b * j));
} else if (y2 <= 8.6e+95) {
tmp = y0 * (y5 * (j * y3));
} else {
tmp = y0 * (k * (y5 * -y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.9d-190)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= 7d-185) then
tmp = t * (y4 * (b * j))
else if (y2 <= 8.6d+95) then
tmp = y0 * (y5 * (j * y3))
else
tmp = y0 * (k * (y5 * -y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.9e-190) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= 7e-185) {
tmp = t * (y4 * (b * j));
} else if (y2 <= 8.6e+95) {
tmp = y0 * (y5 * (j * y3));
} else {
tmp = y0 * (k * (y5 * -y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.9e-190: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= 7e-185: tmp = t * (y4 * (b * j)) elif y2 <= 8.6e+95: tmp = y0 * (y5 * (j * y3)) else: tmp = y0 * (k * (y5 * -y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.9e-190) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= 7e-185) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (y2 <= 8.6e+95) tmp = Float64(y0 * Float64(y5 * Float64(j * y3))); else tmp = Float64(y0 * Float64(k * Float64(y5 * Float64(-y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.9e-190) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= 7e-185) tmp = t * (y4 * (b * j)); elseif (y2 <= 8.6e+95) tmp = y0 * (y5 * (j * y3)); else tmp = y0 * (k * (y5 * -y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.9e-190], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7e-185], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.6e+95], N[(y0 * N[(y5 * N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(k * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.9 \cdot 10^{-190}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 7 \cdot 10^{-185}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 8.6 \cdot 10^{+95}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\end{array}
\end{array}
if y2 < -2.9000000000000002e-190Initial program 24.6%
Simplified31.6%
Taylor expanded in y0 around inf 42.6%
*-commutative42.6%
mul-1-neg42.6%
*-commutative42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in c around inf 42.4%
if -2.9000000000000002e-190 < y2 < 6.9999999999999996e-185Initial program 28.4%
Simplified28.4%
Taylor expanded in y4 around inf 38.1%
Taylor expanded in t around inf 23.2%
Taylor expanded in j around inf 19.4%
*-commutative19.4%
associate-*l*27.6%
Simplified27.6%
if 6.9999999999999996e-185 < y2 < 8.6e95Initial program 35.0%
Simplified45.2%
Taylor expanded in y0 around inf 29.8%
*-commutative29.8%
mul-1-neg29.8%
*-commutative29.8%
*-commutative29.8%
Simplified29.8%
Taylor expanded in y5 around inf 27.9%
Taylor expanded in y3 around inf 29.8%
if 8.6e95 < y2 Initial program 34.2%
Simplified36.3%
Taylor expanded in y0 around inf 45.1%
*-commutative45.1%
mul-1-neg45.1%
*-commutative45.1%
*-commutative45.1%
Simplified45.1%
Taylor expanded in y5 around inf 39.6%
Taylor expanded in y3 around 0 41.7%
associate-*r*41.7%
neg-mul-141.7%
*-commutative41.7%
Simplified41.7%
Final simplification37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y2 (* t y5)))))
(if (<= t -0.00152)
t_1
(if (<= t 7.2e-174)
(* k (* y0 (* z b)))
(if (<= t 4.9e+126) (* c (* y0 (* x 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 * (y2 * (t * y5));
double tmp;
if (t <= -0.00152) {
tmp = t_1;
} else if (t <= 7.2e-174) {
tmp = k * (y0 * (z * b));
} else if (t <= 4.9e+126) {
tmp = c * (y0 * (x * y2));
} 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 * (y2 * (t * y5))
if (t <= (-0.00152d0)) then
tmp = t_1
else if (t <= 7.2d-174) then
tmp = k * (y0 * (z * b))
else if (t <= 4.9d+126) then
tmp = c * (y0 * (x * y2))
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 * (y2 * (t * y5));
double tmp;
if (t <= -0.00152) {
tmp = t_1;
} else if (t <= 7.2e-174) {
tmp = k * (y0 * (z * b));
} else if (t <= 4.9e+126) {
tmp = c * (y0 * (x * y2));
} 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 * (y2 * (t * y5)) tmp = 0 if t <= -0.00152: tmp = t_1 elif t <= 7.2e-174: tmp = k * (y0 * (z * b)) elif t <= 4.9e+126: tmp = c * (y0 * (x * y2)) 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(y2 * Float64(t * y5))) tmp = 0.0 if (t <= -0.00152) tmp = t_1; elseif (t <= 7.2e-174) tmp = Float64(k * Float64(y0 * Float64(z * b))); elseif (t <= 4.9e+126) tmp = Float64(c * Float64(y0 * Float64(x * y2))); 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 * (y2 * (t * y5)); tmp = 0.0; if (t <= -0.00152) tmp = t_1; elseif (t <= 7.2e-174) tmp = k * (y0 * (z * b)); elseif (t <= 4.9e+126) tmp = c * (y0 * (x * y2)); 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[(y2 * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -0.00152], t$95$1, If[LessEqual[t, 7.2e-174], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.9e+126], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y2 \cdot \left(t \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -0.00152:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-174}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{+126}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -0.0015200000000000001 or 4.90000000000000001e126 < t Initial program 27.1%
Simplified27.1%
Taylor expanded in y2 around inf 37.6%
Taylor expanded in t around -inf 40.2%
associate-*r*40.2%
neg-mul-140.2%
Simplified40.2%
Taylor expanded in c around 0 37.4%
associate-*r*39.3%
Simplified39.3%
if -0.0015200000000000001 < t < 7.19999999999999997e-174Initial program 33.5%
Simplified43.0%
Taylor expanded in y0 around inf 39.7%
*-commutative39.7%
mul-1-neg39.7%
*-commutative39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in z around inf 37.3%
associate-*r*33.6%
+-commutative33.6%
mul-1-neg33.6%
sub-neg33.6%
*-commutative33.6%
Simplified33.6%
Taylor expanded in b around inf 30.8%
if 7.19999999999999997e-174 < t < 4.90000000000000001e126Initial program 23.7%
Simplified27.6%
Taylor expanded in y0 around inf 40.1%
*-commutative40.1%
mul-1-neg40.1%
*-commutative40.1%
*-commutative40.1%
Simplified40.1%
Taylor expanded in c around inf 32.4%
Taylor expanded in x around inf 23.2%
Final simplification32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -0.0056)
(* a (* y2 (* t y5)))
(if (<= t 9.5e-165)
(* k (* y0 (* z b)))
(if (<= t 1.4e-85) (* y0 (* y3 (* j y5))) (* (* c y2) (* x y0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -0.0056) {
tmp = a * (y2 * (t * y5));
} else if (t <= 9.5e-165) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.4e-85) {
tmp = y0 * (y3 * (j * y5));
} else {
tmp = (c * y2) * (x * y0);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-0.0056d0)) then
tmp = a * (y2 * (t * y5))
else if (t <= 9.5d-165) then
tmp = k * (y0 * (z * b))
else if (t <= 1.4d-85) then
tmp = y0 * (y3 * (j * y5))
else
tmp = (c * y2) * (x * y0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -0.0056) {
tmp = a * (y2 * (t * y5));
} else if (t <= 9.5e-165) {
tmp = k * (y0 * (z * b));
} else if (t <= 1.4e-85) {
tmp = y0 * (y3 * (j * y5));
} else {
tmp = (c * y2) * (x * y0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -0.0056: tmp = a * (y2 * (t * y5)) elif t <= 9.5e-165: tmp = k * (y0 * (z * b)) elif t <= 1.4e-85: tmp = y0 * (y3 * (j * y5)) else: tmp = (c * y2) * (x * y0) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -0.0056) tmp = Float64(a * Float64(y2 * Float64(t * y5))); elseif (t <= 9.5e-165) tmp = Float64(k * Float64(y0 * Float64(z * b))); elseif (t <= 1.4e-85) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); else tmp = Float64(Float64(c * y2) * Float64(x * y0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -0.0056) tmp = a * (y2 * (t * y5)); elseif (t <= 9.5e-165) tmp = k * (y0 * (z * b)); elseif (t <= 1.4e-85) tmp = y0 * (y3 * (j * y5)); else tmp = (c * y2) * (x * y0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -0.0056], N[(a * N[(y2 * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-165], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e-85], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * y2), $MachinePrecision] * N[(x * y0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.0056:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-165}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-85}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot y2\right) \cdot \left(x \cdot y0\right)\\
\end{array}
\end{array}
if t < -0.00559999999999999994Initial program 27.1%
Simplified27.1%
Taylor expanded in y2 around inf 36.5%
Taylor expanded in t around -inf 37.1%
associate-*r*37.1%
neg-mul-137.1%
Simplified37.1%
Taylor expanded in c around 0 38.4%
associate-*r*39.6%
Simplified39.6%
if -0.00559999999999999994 < t < 9.49999999999999973e-165Initial program 34.4%
Simplified43.7%
Taylor expanded in y0 around inf 39.6%
*-commutative39.6%
mul-1-neg39.6%
*-commutative39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in z around inf 36.3%
associate-*r*32.7%
+-commutative32.7%
mul-1-neg32.7%
sub-neg32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in b around inf 30.1%
if 9.49999999999999973e-165 < t < 1.40000000000000008e-85Initial program 23.5%
Simplified23.5%
Taylor expanded in y0 around inf 48.1%
*-commutative48.1%
mul-1-neg48.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in y5 around inf 48.0%
Taylor expanded in y3 around inf 42.8%
if 1.40000000000000008e-85 < t Initial program 22.8%
Simplified30.3%
Taylor expanded in y0 around inf 44.0%
*-commutative44.0%
mul-1-neg44.0%
*-commutative44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in c around inf 31.4%
Taylor expanded in x around inf 24.4%
*-commutative24.4%
*-commutative24.4%
associate-*r*22.6%
associate-*l*31.4%
Simplified31.4%
Final simplification34.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y5 -2.15e+97) (not (<= y5 3e+94))) (* a (* t (* y2 y5))) (* c (* y0 (* x y2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y5 <= -2.15e+97) || !(y5 <= 3e+94)) {
tmp = a * (t * (y2 * y5));
} else {
tmp = c * (y0 * (x * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y5 <= (-2.15d+97)) .or. (.not. (y5 <= 3d+94))) then
tmp = a * (t * (y2 * y5))
else
tmp = c * (y0 * (x * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y5 <= -2.15e+97) || !(y5 <= 3e+94)) {
tmp = a * (t * (y2 * y5));
} else {
tmp = c * (y0 * (x * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y5 <= -2.15e+97) or not (y5 <= 3e+94): tmp = a * (t * (y2 * y5)) else: tmp = c * (y0 * (x * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y5 <= -2.15e+97) || !(y5 <= 3e+94)) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(c * Float64(y0 * Float64(x * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y5 <= -2.15e+97) || ~((y5 <= 3e+94))) tmp = a * (t * (y2 * y5)); else tmp = c * (y0 * (x * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y5, -2.15e+97], N[Not[LessEqual[y5, 3e+94]], $MachinePrecision]], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.15 \cdot 10^{+97} \lor \neg \left(y5 \leq 3 \cdot 10^{+94}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\end{array}
\end{array}
if y5 < -2.1499999999999999e97 or 3.0000000000000001e94 < y5 Initial program 18.9%
Simplified18.9%
Taylor expanded in y2 around inf 35.4%
Taylor expanded in t around -inf 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
Taylor expanded in c around 0 40.6%
if -2.1499999999999999e97 < y5 < 3.0000000000000001e94Initial program 33.6%
Simplified39.9%
Taylor expanded in y0 around inf 40.0%
*-commutative40.0%
mul-1-neg40.0%
*-commutative40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in c around inf 35.4%
Taylor expanded in x around inf 25.4%
Final simplification30.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* t (* y2 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) {
return a * (t * (y2 * y5));
}
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 * (t * (y2 * y5))
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 * (t * (y2 * y5));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (t * (y2 * y5))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(t * Float64(y2 * y5))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (t * (y2 * y5)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)
\end{array}
Initial program 29.0%
Simplified29.0%
Taylor expanded in y2 around inf 38.6%
Taylor expanded in t around -inf 27.1%
associate-*r*27.1%
neg-mul-127.1%
Simplified27.1%
Taylor expanded in c around 0 19.2%
Final simplification19.2%
(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 2023185
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))