
(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 40 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* c y4) (* a y5)))
(t_4 (- (* i y5) (* b y4)))
(t_5 (* y3 (+ (* y t_3) (- (* a (* z y1)) (* c (* z y0))))))
(t_6 (- (* t y2) (* y y3)))
(t_7
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 t_6))))
(t_8 (* y3 (* z (- (* a y1) (* c y0))))))
(if (<= t -1.1e+107)
(* y5 (+ (* a t_6) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -1e+59)
t_8
(if (<= t -2.4e+15)
(* y (+ (+ (* k t_4) (* x (- (* a b) (* c i)))) (* y3 t_3)))
(if (<= t -8.5e-22)
t_8
(if (<= t -1.6e-197)
(* k (+ (+ (* y t_4) (* y2 t_1)) (* z (- (* b y0) (* i y1)))))
(if (<= t -2.35e-272)
(* y2 (+ (+ (* k t_1) (* x (- (* c y0) (* a y1)))) (* t t_2)))
(if (<= t 5.8e-224)
t_7
(if (<= t 2e-198)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 2e-81)
t_7
(if (<= t 1.85e+127)
t_5
(if (<= t 8.2e+168)
(*
c
(+
(+
(* i (- (* z t) (* x y)))
(* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= t 2.1e+257)
t_5
(*
t
(+
(+
(* z (- (* c i) (* a b)))
(* j (- (* b y4) (* i y5))))
(* y2 t_2)))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = (i * y5) - (b * y4);
double t_5 = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0))));
double t_6 = (t * y2) - (y * y3);
double t_7 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_6));
double t_8 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -1.1e+107) {
tmp = y5 * ((a * t_6) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1e+59) {
tmp = t_8;
} else if (t <= -2.4e+15) {
tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
} else if (t <= -8.5e-22) {
tmp = t_8;
} else if (t <= -1.6e-197) {
tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -2.35e-272) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (t <= 5.8e-224) {
tmp = t_7;
} else if (t <= 2e-198) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 2e-81) {
tmp = t_7;
} else if (t <= 1.85e+127) {
tmp = t_5;
} else if (t <= 8.2e+168) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (t <= 2.1e+257) {
tmp = t_5;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: tmp
t_1 = (y1 * y4) - (y0 * y5)
t_2 = (a * y5) - (c * y4)
t_3 = (c * y4) - (a * y5)
t_4 = (i * y5) - (b * y4)
t_5 = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0))))
t_6 = (t * y2) - (y * y3)
t_7 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_6))
t_8 = y3 * (z * ((a * y1) - (c * y0)))
if (t <= (-1.1d+107)) then
tmp = y5 * ((a * t_6) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-1d+59)) then
tmp = t_8
else if (t <= (-2.4d+15)) then
tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3))
else if (t <= (-8.5d-22)) then
tmp = t_8
else if (t <= (-1.6d-197)) then
tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))))
else if (t <= (-2.35d-272)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (t <= 5.8d-224) then
tmp = t_7
else if (t <= 2d-198) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 2d-81) then
tmp = t_7
else if (t <= 1.85d+127) then
tmp = t_5
else if (t <= 8.2d+168) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (t <= 2.1d+257) then
tmp = t_5
else
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = (i * y5) - (b * y4);
double t_5 = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0))));
double t_6 = (t * y2) - (y * y3);
double t_7 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_6));
double t_8 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -1.1e+107) {
tmp = y5 * ((a * t_6) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1e+59) {
tmp = t_8;
} else if (t <= -2.4e+15) {
tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
} else if (t <= -8.5e-22) {
tmp = t_8;
} else if (t <= -1.6e-197) {
tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -2.35e-272) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (t <= 5.8e-224) {
tmp = t_7;
} else if (t <= 2e-198) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 2e-81) {
tmp = t_7;
} else if (t <= 1.85e+127) {
tmp = t_5;
} else if (t <= 8.2e+168) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (t <= 2.1e+257) {
tmp = t_5;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = (a * y5) - (c * y4) t_3 = (c * y4) - (a * y5) t_4 = (i * y5) - (b * y4) t_5 = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0)))) t_6 = (t * y2) - (y * y3) t_7 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_6)) t_8 = y3 * (z * ((a * y1) - (c * y0))) tmp = 0 if t <= -1.1e+107: tmp = y5 * ((a * t_6) + (y0 * ((j * y3) - (k * y2)))) elif t <= -1e+59: tmp = t_8 elif t <= -2.4e+15: tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3)) elif t <= -8.5e-22: tmp = t_8 elif t <= -1.6e-197: tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))) elif t <= -2.35e-272: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif t <= 5.8e-224: tmp = t_7 elif t <= 2e-198: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 2e-81: tmp = t_7 elif t <= 1.85e+127: tmp = t_5 elif t <= 8.2e+168: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif t <= 2.1e+257: tmp = t_5 else: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(Float64(i * y5) - Float64(b * y4)) t_5 = Float64(y3 * Float64(Float64(y * t_3) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))) t_6 = Float64(Float64(t * y2) - Float64(y * y3)) t_7 = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_6))) t_8 = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) tmp = 0.0 if (t <= -1.1e+107) tmp = Float64(y5 * Float64(Float64(a * t_6) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -1e+59) tmp = t_8; elseif (t <= -2.4e+15) tmp = Float64(y * Float64(Float64(Float64(k * t_4) + Float64(x * Float64(Float64(a * b) - Float64(c * i)))) + Float64(y3 * t_3))); elseif (t <= -8.5e-22) tmp = t_8; elseif (t <= -1.6e-197) tmp = Float64(k * Float64(Float64(Float64(y * t_4) + Float64(y2 * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= -2.35e-272) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_2))); elseif (t <= 5.8e-224) tmp = t_7; elseif (t <= 2e-198) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 2e-81) tmp = t_7; elseif (t <= 1.85e+127) tmp = t_5; elseif (t <= 8.2e+168) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= 2.1e+257) tmp = t_5; else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y1 * y4) - (y0 * y5); t_2 = (a * y5) - (c * y4); t_3 = (c * y4) - (a * y5); t_4 = (i * y5) - (b * y4); t_5 = y3 * ((y * t_3) + ((a * (z * y1)) - (c * (z * y0)))); t_6 = (t * y2) - (y * y3); t_7 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_6)); t_8 = y3 * (z * ((a * y1) - (c * y0))); tmp = 0.0; if (t <= -1.1e+107) tmp = y5 * ((a * t_6) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -1e+59) tmp = t_8; elseif (t <= -2.4e+15) tmp = y * (((k * t_4) + (x * ((a * b) - (c * i)))) + (y3 * t_3)); elseif (t <= -8.5e-22) tmp = t_8; elseif (t <= -1.6e-197) tmp = k * (((y * t_4) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))); elseif (t <= -2.35e-272) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (t <= 5.8e-224) tmp = t_7; elseif (t <= 2e-198) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 2e-81) tmp = t_7; elseif (t <= 1.85e+127) tmp = t_5; elseif (t <= 8.2e+168) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (t <= 2.1e+257) tmp = t_5; else tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y3 * N[(N[(y * t$95$3), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e+107], N[(y5 * N[(N[(a * t$95$6), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1e+59], t$95$8, If[LessEqual[t, -2.4e+15], N[(y * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.5e-22], t$95$8, If[LessEqual[t, -1.6e-197], N[(k * N[(N[(N[(y * t$95$4), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.35e-272], N[(y2 * N[(N[(N[(k * t$95$1), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-224], t$95$7, If[LessEqual[t, 2e-198], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-81], t$95$7, If[LessEqual[t, 1.85e+127], t$95$5, If[LessEqual[t, 8.2e+168], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+257], t$95$5, N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := i \cdot y5 - b \cdot y4\\
t_5 := y3 \cdot \left(y \cdot t\_3 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
t_6 := t \cdot y2 - y \cdot y3\\
t_7 := a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_6\right)\\
t_8 := y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{+107}:\\
\;\;\;\;y5 \cdot \left(a \cdot t\_6 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{+59}:\\
\;\;\;\;t\_8\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{+15}:\\
\;\;\;\;y \cdot \left(\left(k \cdot t\_4 + x \cdot \left(a \cdot b - c \cdot i\right)\right) + y3 \cdot t\_3\right)\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-22}:\\
\;\;\;\;t\_8\\
\mathbf{elif}\;t \leq -1.6 \cdot 10^{-197}:\\
\;\;\;\;k \cdot \left(\left(y \cdot t\_4 + y2 \cdot t\_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -2.35 \cdot 10^{-272}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_2\right)\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-224}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-198}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-81}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+127}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+168}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+257}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_2\right)\\
\end{array}
\end{array}
if t < -1.1e107Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -1.1e107 < t < -9.99999999999999972e58 or -2.4e15 < t < -8.5000000000000001e-22Initial program 21.4%
Taylor expanded in y3 around -inf 43.0%
Taylor expanded in z around inf 78.7%
if -9.99999999999999972e58 < t < -2.4e15Initial program 25.0%
Taylor expanded in y around inf 87.5%
if -8.5000000000000001e-22 < t < -1.5999999999999999e-197Initial program 28.8%
Taylor expanded in k around inf 64.9%
if -1.5999999999999999e-197 < t < -2.3499999999999999e-272Initial program 36.4%
Taylor expanded in y2 around inf 77.6%
if -2.3499999999999999e-272 < t < 5.8000000000000001e-224 or 1.9999999999999998e-198 < t < 1.9999999999999999e-81Initial program 45.3%
Taylor expanded in a around inf 56.5%
if 5.8000000000000001e-224 < t < 1.9999999999999998e-198Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 1.9999999999999999e-81 < t < 1.8499999999999999e127 or 8.2000000000000006e168 < t < 2.10000000000000013e257Initial program 32.4%
Taylor expanded in y3 around -inf 55.2%
Taylor expanded in c around 0 59.5%
Taylor expanded in j around 0 60.8%
if 1.8499999999999999e127 < t < 8.2000000000000006e168Initial program 0.0%
Taylor expanded in c around inf 85.7%
if 2.10000000000000013e257 < t Initial program 31.3%
Taylor expanded in t around inf 87.5%
Final simplification67.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* b y4) (* i y5)))
(t_3
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* x j) (* z k)) (- (* i y1) (* b y0))))
(* (- (* c y0) (* a y1)) (- (* x y2) (* z y3))))
(* t_2 (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) t_1))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_3 INFINITY)
t_3
(* t (+ (+ (* z (- (* c i) (* a b))) (* j t_2)) (* y2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (b * y4) - (i * y5);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * t_1));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (b * y4) - (i * y5);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (b * y4) - (i * y5) t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(b * y4) - Float64(i * y5)) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(i * y1) - Float64(b * y0)))) + Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(t_2 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_1)) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * t_2)) + Float64(y2 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (b * y4) - (i * y5); t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = t * (((z * ((c * i) - (a * b))) + (j * t_2)) + (y2 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := b \cdot y4 - i \cdot y5\\
t_3 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(x \cdot j - z \cdot k\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + t\_2 \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot t\_1\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot t\_2\right) + y2 \cdot t\_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 95.3%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in t around inf 39.0%
Final simplification56.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* y y3) (* t y2)))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4
(*
y3
(+ (* y (- (* c y4) (* a y5))) (- (* a (* z y1)) (* c (* z y0))))))
(t_5 (- (* t y2) (* y y3)))
(t_6
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 t_5))))
(t_7 (* y3 (* z (- (* a y1) (* c y0))))))
(if (<= t -4.5e+108)
(* y5 (+ (* a t_5) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -3.4e+59)
t_7
(if (<= t -95000000000.0)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c t_2)))
(if (<= t -4.6e-23)
t_7
(if (<= t -1.9e-194)
(*
k
(+
(+ (* y (- (* i y5) (* b y4))) (* y2 t_3))
(* z (- (* b y0) (* i y1)))))
(if (<= t -1.45e-276)
(* y2 (+ (+ (* k t_3) (* x (- (* c y0) (* a y1)))) (* t t_1)))
(if (<= t 1.16e-225)
t_6
(if (<= t 4.4e-197)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 7.8e-82)
t_6
(if (<= t 9e+126)
t_4
(if (<= t 3.9e+168)
(*
c
(+
(+
(* i (- (* z t) (* x y)))
(* y0 (- (* x y2) (* z y3))))
(* y4 t_2)))
(if (<= t 2e+257)
t_4
(*
t
(+
(+
(* z (- (* c i) (* a b)))
(* j (- (* b y4) (* i 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 = (a * y5) - (c * y4);
double t_2 = (y * y3) - (t * y2);
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
double t_5 = (t * y2) - (y * y3);
double t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5));
double t_7 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -4.5e+108) {
tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.4e+59) {
tmp = t_7;
} else if (t <= -95000000000.0) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (t <= -4.6e-23) {
tmp = t_7;
} else if (t <= -1.9e-194) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_3)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.45e-276) {
tmp = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (t <= 1.16e-225) {
tmp = t_6;
} else if (t <= 4.4e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 7.8e-82) {
tmp = t_6;
} else if (t <= 9e+126) {
tmp = t_4;
} else if (t <= 3.9e+168) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
} else if (t <= 2e+257) {
tmp = t_4;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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) :: t_7
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = (y * y3) - (t * y2)
t_3 = (y1 * y4) - (y0 * y5)
t_4 = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
t_5 = (t * y2) - (y * y3)
t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5))
t_7 = y3 * (z * ((a * y1) - (c * y0)))
if (t <= (-4.5d+108)) then
tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-3.4d+59)) then
tmp = t_7
else if (t <= (-95000000000.0d0)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2))
else if (t <= (-4.6d-23)) then
tmp = t_7
else if (t <= (-1.9d-194)) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_3)) + (z * ((b * y0) - (i * y1))))
else if (t <= (-1.45d-276)) then
tmp = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * t_1))
else if (t <= 1.16d-225) then
tmp = t_6
else if (t <= 4.4d-197) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 7.8d-82) then
tmp = t_6
else if (t <= 9d+126) then
tmp = t_4
else if (t <= 3.9d+168) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2))
else if (t <= 2d+257) then
tmp = t_4
else
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * 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 * y5) - (c * y4);
double t_2 = (y * y3) - (t * y2);
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
double t_5 = (t * y2) - (y * y3);
double t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5));
double t_7 = y3 * (z * ((a * y1) - (c * y0)));
double tmp;
if (t <= -4.5e+108) {
tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -3.4e+59) {
tmp = t_7;
} else if (t <= -95000000000.0) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
} else if (t <= -4.6e-23) {
tmp = t_7;
} else if (t <= -1.9e-194) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_3)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.45e-276) {
tmp = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (t <= 1.16e-225) {
tmp = t_6;
} else if (t <= 4.4e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 7.8e-82) {
tmp = t_6;
} else if (t <= 9e+126) {
tmp = t_4;
} else if (t <= 3.9e+168) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
} else if (t <= 2e+257) {
tmp = t_4;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (y * y3) - (t * y2) t_3 = (y1 * y4) - (y0 * y5) t_4 = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) t_5 = (t * y2) - (y * y3) t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5)) t_7 = y3 * (z * ((a * y1) - (c * y0))) tmp = 0 if t <= -4.5e+108: tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2)))) elif t <= -3.4e+59: tmp = t_7 elif t <= -95000000000.0: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)) elif t <= -4.6e-23: tmp = t_7 elif t <= -1.9e-194: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_3)) + (z * ((b * y0) - (i * y1)))) elif t <= -1.45e-276: tmp = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * t_1)) elif t <= 1.16e-225: tmp = t_6 elif t <= 4.4e-197: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 7.8e-82: tmp = t_6 elif t <= 9e+126: tmp = t_4 elif t <= 3.9e+168: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)) elif t <= 2e+257: tmp = t_4 else: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(y * y3) - Float64(t * y2)) t_3 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))) t_5 = Float64(Float64(t * y2) - Float64(y * y3)) t_6 = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_5))) t_7 = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) tmp = 0.0 if (t <= -4.5e+108) tmp = Float64(y5 * Float64(Float64(a * t_5) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -3.4e+59) tmp = t_7; elseif (t <= -95000000000.0) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_2))); elseif (t <= -4.6e-23) tmp = t_7; elseif (t <= -1.9e-194) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * t_3)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= -1.45e-276) tmp = Float64(y2 * Float64(Float64(Float64(k * t_3) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_1))); elseif (t <= 1.16e-225) tmp = t_6; elseif (t <= 4.4e-197) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 7.8e-82) tmp = t_6; elseif (t <= 9e+126) tmp = t_4; elseif (t <= 3.9e+168) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_2))); elseif (t <= 2e+257) tmp = t_4; else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (y * y3) - (t * y2); t_3 = (y1 * y4) - (y0 * y5); t_4 = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); t_5 = (t * y2) - (y * y3); t_6 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_5)); t_7 = y3 * (z * ((a * y1) - (c * y0))); tmp = 0.0; if (t <= -4.5e+108) tmp = y5 * ((a * t_5) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -3.4e+59) tmp = t_7; elseif (t <= -95000000000.0) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)); elseif (t <= -4.6e-23) tmp = t_7; elseif (t <= -1.9e-194) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_3)) + (z * ((b * y0) - (i * y1)))); elseif (t <= -1.45e-276) tmp = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * t_1)); elseif (t <= 1.16e-225) tmp = t_6; elseif (t <= 4.4e-197) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 7.8e-82) tmp = t_6; elseif (t <= 9e+126) tmp = t_4; elseif (t <= 3.9e+168) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)); elseif (t <= 2e+257) tmp = t_4; else tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+108], N[(y5 * N[(N[(a * t$95$5), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.4e+59], t$95$7, If[LessEqual[t, -95000000000.0], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.6e-23], t$95$7, If[LessEqual[t, -1.9e-194], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.45e-276], N[(y2 * N[(N[(N[(k * t$95$3), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.16e-225], t$95$6, If[LessEqual[t, 4.4e-197], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e-82], t$95$6, If[LessEqual[t, 9e+126], t$95$4, If[LessEqual[t, 3.9e+168], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+257], t$95$4, N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := y \cdot y3 - t \cdot y2\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
t_5 := t \cdot y2 - y \cdot y3\\
t_6 := a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_5\right)\\
t_7 := y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+108}:\\
\;\;\;\;y5 \cdot \left(a \cdot t\_5 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.4 \cdot 10^{+59}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t \leq -95000000000:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t\_2\right)\\
\mathbf{elif}\;t \leq -4.6 \cdot 10^{-23}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-194}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot t\_3\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-276}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_3 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_1\right)\\
\mathbf{elif}\;t \leq 1.16 \cdot 10^{-225}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{-197}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-82}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+126}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+168}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t\_2\right)\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+257}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_1\right)\\
\end{array}
\end{array}
if t < -4.5e108Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -4.5e108 < t < -3.40000000000000006e59 or -9.5e10 < t < -4.6000000000000002e-23Initial program 23.1%
Taylor expanded in y3 around -inf 46.3%
Taylor expanded in z around inf 84.8%
if -3.40000000000000006e59 < t < -9.5e10Initial program 22.2%
Taylor expanded in y4 around inf 77.8%
if -4.6000000000000002e-23 < t < -1.9000000000000001e-194Initial program 28.8%
Taylor expanded in k around inf 64.9%
if -1.9000000000000001e-194 < t < -1.44999999999999994e-276Initial program 36.4%
Taylor expanded in y2 around inf 77.6%
if -1.44999999999999994e-276 < t < 1.16000000000000001e-225 or 4.4000000000000001e-197 < t < 7.79999999999999947e-82Initial program 45.3%
Taylor expanded in a around inf 56.5%
if 1.16000000000000001e-225 < t < 4.4000000000000001e-197Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 7.79999999999999947e-82 < t < 8.99999999999999947e126 or 3.89999999999999999e168 < t < 2.00000000000000006e257Initial program 32.4%
Taylor expanded in y3 around -inf 55.2%
Taylor expanded in c around 0 59.5%
Taylor expanded in j around 0 60.8%
if 8.99999999999999947e126 < t < 3.89999999999999999e168Initial program 0.0%
Taylor expanded in c around inf 85.7%
if 2.00000000000000006e257 < t Initial program 31.3%
Taylor expanded in t around inf 87.5%
Final simplification67.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (- (* c y4) (* a y5))))
(t_2 (- (* c y0) (* a y1)))
(t_3 (* x t_2))
(t_4
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_5 (* a (- (* t y2) (* y y3))))
(t_6 (- (* y1 y4) (* y0 y5)))
(t_7 (* y3 (- t_1 (+ (* j t_6) (* z t_2))))))
(if (<= j -2.9e+231)
t_4
(if (<= j -3.25e+181)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= j -4.5e+39)
t_4
(if (<= j -3.55e-56)
(* k (* y2 t_6))
(if (<= j -3.5e-193)
(* y3 (+ t_1 (- (* a (* z y1)) (* c (* z y0)))))
(if (<= j 1.1e-295)
(* y2 (+ (+ (* k t_6) t_3) (* t (- (* a y5) (* c y4)))))
(if (<= j 4.9e-207)
t_7
(if (<= j 3.65e-81)
(* y5 (+ t_5 (* y0 (- (* j y3) (* k y2)))))
(if (<= j 1.2e-30)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_5))
(if (<= j 3.1e-18)
(* y2 t_3)
(if (<= j 8.5e-6)
(* i (* k (- (* y y5) (* z y1))))
(if (<= j 1.35e+116) t_7 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 = y * ((c * y4) - (a * y5));
double t_2 = (c * y0) - (a * y1);
double t_3 = x * t_2;
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_5 = a * ((t * y2) - (y * y3));
double t_6 = (y1 * y4) - (y0 * y5);
double t_7 = y3 * (t_1 - ((j * t_6) + (z * t_2)));
double tmp;
if (j <= -2.9e+231) {
tmp = t_4;
} else if (j <= -3.25e+181) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (j <= -4.5e+39) {
tmp = t_4;
} else if (j <= -3.55e-56) {
tmp = k * (y2 * t_6);
} else if (j <= -3.5e-193) {
tmp = y3 * (t_1 + ((a * (z * y1)) - (c * (z * y0))));
} else if (j <= 1.1e-295) {
tmp = y2 * (((k * t_6) + t_3) + (t * ((a * y5) - (c * y4))));
} else if (j <= 4.9e-207) {
tmp = t_7;
} else if (j <= 3.65e-81) {
tmp = y5 * (t_5 + (y0 * ((j * y3) - (k * y2))));
} else if (j <= 1.2e-30) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_5);
} else if (j <= 3.1e-18) {
tmp = y2 * t_3;
} else if (j <= 8.5e-6) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 1.35e+116) {
tmp = t_7;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = y * ((c * y4) - (a * y5))
t_2 = (c * y0) - (a * y1)
t_3 = x * t_2
t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_5 = a * ((t * y2) - (y * y3))
t_6 = (y1 * y4) - (y0 * y5)
t_7 = y3 * (t_1 - ((j * t_6) + (z * t_2)))
if (j <= (-2.9d+231)) then
tmp = t_4
else if (j <= (-3.25d+181)) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (j <= (-4.5d+39)) then
tmp = t_4
else if (j <= (-3.55d-56)) then
tmp = k * (y2 * t_6)
else if (j <= (-3.5d-193)) then
tmp = y3 * (t_1 + ((a * (z * y1)) - (c * (z * y0))))
else if (j <= 1.1d-295) then
tmp = y2 * (((k * t_6) + t_3) + (t * ((a * y5) - (c * y4))))
else if (j <= 4.9d-207) then
tmp = t_7
else if (j <= 3.65d-81) then
tmp = y5 * (t_5 + (y0 * ((j * y3) - (k * y2))))
else if (j <= 1.2d-30) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_5)
else if (j <= 3.1d-18) then
tmp = y2 * t_3
else if (j <= 8.5d-6) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (j <= 1.35d+116) then
tmp = t_7
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 = y * ((c * y4) - (a * y5));
double t_2 = (c * y0) - (a * y1);
double t_3 = x * t_2;
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_5 = a * ((t * y2) - (y * y3));
double t_6 = (y1 * y4) - (y0 * y5);
double t_7 = y3 * (t_1 - ((j * t_6) + (z * t_2)));
double tmp;
if (j <= -2.9e+231) {
tmp = t_4;
} else if (j <= -3.25e+181) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (j <= -4.5e+39) {
tmp = t_4;
} else if (j <= -3.55e-56) {
tmp = k * (y2 * t_6);
} else if (j <= -3.5e-193) {
tmp = y3 * (t_1 + ((a * (z * y1)) - (c * (z * y0))));
} else if (j <= 1.1e-295) {
tmp = y2 * (((k * t_6) + t_3) + (t * ((a * y5) - (c * y4))));
} else if (j <= 4.9e-207) {
tmp = t_7;
} else if (j <= 3.65e-81) {
tmp = y5 * (t_5 + (y0 * ((j * y3) - (k * y2))));
} else if (j <= 1.2e-30) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_5);
} else if (j <= 3.1e-18) {
tmp = y2 * t_3;
} else if (j <= 8.5e-6) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 1.35e+116) {
tmp = t_7;
} 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 = y * ((c * y4) - (a * y5)) t_2 = (c * y0) - (a * y1) t_3 = x * t_2 t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_5 = a * ((t * y2) - (y * y3)) t_6 = (y1 * y4) - (y0 * y5) t_7 = y3 * (t_1 - ((j * t_6) + (z * t_2))) tmp = 0 if j <= -2.9e+231: tmp = t_4 elif j <= -3.25e+181: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif j <= -4.5e+39: tmp = t_4 elif j <= -3.55e-56: tmp = k * (y2 * t_6) elif j <= -3.5e-193: tmp = y3 * (t_1 + ((a * (z * y1)) - (c * (z * y0)))) elif j <= 1.1e-295: tmp = y2 * (((k * t_6) + t_3) + (t * ((a * y5) - (c * y4)))) elif j <= 4.9e-207: tmp = t_7 elif j <= 3.65e-81: tmp = y5 * (t_5 + (y0 * ((j * y3) - (k * y2)))) elif j <= 1.2e-30: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_5) elif j <= 3.1e-18: tmp = y2 * t_3 elif j <= 8.5e-6: tmp = i * (k * ((y * y5) - (z * y1))) elif j <= 1.35e+116: tmp = t_7 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(y * Float64(Float64(c * y4) - Float64(a * y5))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(x * t_2) t_4 = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) t_5 = Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) t_6 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_7 = Float64(y3 * Float64(t_1 - Float64(Float64(j * t_6) + Float64(z * t_2)))) tmp = 0.0 if (j <= -2.9e+231) tmp = t_4; elseif (j <= -3.25e+181) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (j <= -4.5e+39) tmp = t_4; elseif (j <= -3.55e-56) tmp = Float64(k * Float64(y2 * t_6)); elseif (j <= -3.5e-193) tmp = Float64(y3 * Float64(t_1 + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); elseif (j <= 1.1e-295) tmp = Float64(y2 * Float64(Float64(Float64(k * t_6) + t_3) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (j <= 4.9e-207) tmp = t_7; elseif (j <= 3.65e-81) tmp = Float64(y5 * Float64(t_5 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (j <= 1.2e-30) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_5)); elseif (j <= 3.1e-18) tmp = Float64(y2 * t_3); elseif (j <= 8.5e-6) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (j <= 1.35e+116) tmp = t_7; 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 = y * ((c * y4) - (a * y5)); t_2 = (c * y0) - (a * y1); t_3 = x * t_2; t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_5 = a * ((t * y2) - (y * y3)); t_6 = (y1 * y4) - (y0 * y5); t_7 = y3 * (t_1 - ((j * t_6) + (z * t_2))); tmp = 0.0; if (j <= -2.9e+231) tmp = t_4; elseif (j <= -3.25e+181) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (j <= -4.5e+39) tmp = t_4; elseif (j <= -3.55e-56) tmp = k * (y2 * t_6); elseif (j <= -3.5e-193) tmp = y3 * (t_1 + ((a * (z * y1)) - (c * (z * y0)))); elseif (j <= 1.1e-295) tmp = y2 * (((k * t_6) + t_3) + (t * ((a * y5) - (c * y4)))); elseif (j <= 4.9e-207) tmp = t_7; elseif (j <= 3.65e-81) tmp = y5 * (t_5 + (y0 * ((j * y3) - (k * y2)))); elseif (j <= 1.2e-30) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_5); elseif (j <= 3.1e-18) tmp = y2 * t_3; elseif (j <= 8.5e-6) tmp = i * (k * ((y * y5) - (z * y1))); elseif (j <= 1.35e+116) tmp = t_7; 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[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y3 * N[(t$95$1 - N[(N[(j * t$95$6), $MachinePrecision] + N[(z * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.9e+231], t$95$4, If[LessEqual[j, -3.25e+181], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.5e+39], t$95$4, If[LessEqual[j, -3.55e-56], N[(k * N[(y2 * t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.5e-193], N[(y3 * N[(t$95$1 + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e-295], N[(y2 * N[(N[(N[(k * t$95$6), $MachinePrecision] + t$95$3), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.9e-207], t$95$7, If[LessEqual[j, 3.65e-81], N[(y5 * N[(t$95$5 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.2e-30], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e-18], N[(y2 * t$95$3), $MachinePrecision], If[LessEqual[j, 8.5e-6], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.35e+116], t$95$7, t$95$4]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := x \cdot t\_2\\
t_4 := j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_5 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
t_6 := y1 \cdot y4 - y0 \cdot y5\\
t_7 := y3 \cdot \left(t\_1 - \left(j \cdot t\_6 + z \cdot t\_2\right)\right)\\
\mathbf{if}\;j \leq -2.9 \cdot 10^{+231}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;j \leq -3.25 \cdot 10^{+181}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{+39}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;j \leq -3.55 \cdot 10^{-56}:\\
\;\;\;\;k \cdot \left(y2 \cdot t\_6\right)\\
\mathbf{elif}\;j \leq -3.5 \cdot 10^{-193}:\\
\;\;\;\;y3 \cdot \left(t\_1 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-295}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_6 + t\_3\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{-207}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;j \leq 3.65 \cdot 10^{-81}:\\
\;\;\;\;y5 \cdot \left(t\_5 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq 1.2 \cdot 10^{-30}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_5\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-18}:\\
\;\;\;\;y2 \cdot t\_3\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{-6}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 1.35 \cdot 10^{+116}:\\
\;\;\;\;t\_7\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if j < -2.9000000000000001e231 or -3.25e181 < j < -4.49999999999999996e39 or 1.35e116 < j Initial program 20.0%
Taylor expanded in j around inf 66.2%
if -2.9000000000000001e231 < j < -3.25e181Initial program 15.4%
Taylor expanded in c around inf 54.5%
if -4.49999999999999996e39 < j < -3.55e-56Initial program 29.2%
Taylor expanded in y2 around inf 42.0%
Taylor expanded in k around inf 67.3%
if -3.55e-56 < j < -3.50000000000000005e-193Initial program 36.4%
Taylor expanded in y3 around -inf 51.2%
Taylor expanded in c around 0 51.2%
Taylor expanded in j around 0 51.3%
if -3.50000000000000005e-193 < j < 1.1000000000000001e-295Initial program 44.6%
Taylor expanded in y2 around inf 60.1%
if 1.1000000000000001e-295 < j < 4.9e-207 or 8.4999999999999999e-6 < j < 1.35e116Initial program 44.2%
Taylor expanded in y3 around -inf 63.8%
if 4.9e-207 < j < 3.6500000000000001e-81Initial program 24.5%
Taylor expanded in y5 around -inf 53.1%
Taylor expanded in i around 0 58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
if 3.6500000000000001e-81 < j < 1.19999999999999992e-30Initial program 33.3%
Taylor expanded in y5 around -inf 67.6%
Taylor expanded in k around 0 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if 1.19999999999999992e-30 < j < 3.10000000000000007e-18Initial program 40.0%
Taylor expanded in y2 around inf 80.0%
Taylor expanded in x around inf 100.0%
if 3.10000000000000007e-18 < j < 8.4999999999999999e-6Initial program 25.0%
Taylor expanded in k around inf 100.0%
Taylor expanded in i around inf 100.0%
Final simplification64.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* t y2) (* y y3)))
(t_3 (- (* a y5) (* c y4)))
(t_4 (- (* z y3) (* x y2)))
(t_5 (* a (+ (+ (* y1 t_4) (* b (- (* x y) (* z t)))) (* y5 t_2))))
(t_6
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 t_3)))))
(if (<= t -1.65e+108)
(* y5 (+ (* a t_2) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -1.05e+22)
(*
y1
(+
(+ (* a t_4) (* y4 (- (* k y2) (* j y3))))
(* i (- (* x j) (* z k)))))
(if (<= t -4.6e-13)
t_6
(if (<= t -8.4e-24)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -8.2e-198)
(*
k
(+
(+ (* y (- (* i y5) (* b y4))) (* y2 t_1))
(* z (- (* b y0) (* i y1)))))
(if (<= t -1.05e-274)
(* y2 (+ (+ (* k t_1) (* x (- (* c y0) (* a y1)))) (* t t_3)))
(if (<= t 9.5e-224)
t_5
(if (<= t 6.2e-199)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 4.3e-82)
t_5
(if (<= t 2e+257)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* z y0)))))
t_6))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (t * y2) - (y * y3);
double t_3 = (a * y5) - (c * y4);
double t_4 = (z * y3) - (x * y2);
double t_5 = a * (((y1 * t_4) + (b * ((x * y) - (z * t)))) + (y5 * t_2));
double t_6 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_3));
double tmp;
if (t <= -1.65e+108) {
tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.05e+22) {
tmp = y1 * (((a * t_4) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else if (t <= -4.6e-13) {
tmp = t_6;
} else if (t <= -8.4e-24) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -8.2e-198) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.05e-274) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_3));
} else if (t <= 9.5e-224) {
tmp = t_5;
} else if (t <= 6.2e-199) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 4.3e-82) {
tmp = t_5;
} else if (t <= 2e+257) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t_6;
}
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 = (y1 * y4) - (y0 * y5)
t_2 = (t * y2) - (y * y3)
t_3 = (a * y5) - (c * y4)
t_4 = (z * y3) - (x * y2)
t_5 = a * (((y1 * t_4) + (b * ((x * y) - (z * t)))) + (y5 * t_2))
t_6 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_3))
if (t <= (-1.65d+108)) then
tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-1.05d+22)) then
tmp = y1 * (((a * t_4) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))))
else if (t <= (-4.6d-13)) then
tmp = t_6
else if (t <= (-8.4d-24)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-8.2d-198)) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))))
else if (t <= (-1.05d-274)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_3))
else if (t <= 9.5d-224) then
tmp = t_5
else if (t <= 6.2d-199) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 4.3d-82) then
tmp = t_5
else if (t <= 2d+257) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
else
tmp = t_6
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (t * y2) - (y * y3);
double t_3 = (a * y5) - (c * y4);
double t_4 = (z * y3) - (x * y2);
double t_5 = a * (((y1 * t_4) + (b * ((x * y) - (z * t)))) + (y5 * t_2));
double t_6 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_3));
double tmp;
if (t <= -1.65e+108) {
tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.05e+22) {
tmp = y1 * (((a * t_4) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else if (t <= -4.6e-13) {
tmp = t_6;
} else if (t <= -8.4e-24) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -8.2e-198) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (t <= -1.05e-274) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_3));
} else if (t <= 9.5e-224) {
tmp = t_5;
} else if (t <= 6.2e-199) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 4.3e-82) {
tmp = t_5;
} else if (t <= 2e+257) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
} else {
tmp = t_6;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = (t * y2) - (y * y3) t_3 = (a * y5) - (c * y4) t_4 = (z * y3) - (x * y2) t_5 = a * (((y1 * t_4) + (b * ((x * y) - (z * t)))) + (y5 * t_2)) t_6 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_3)) tmp = 0 if t <= -1.65e+108: tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2)))) elif t <= -1.05e+22: tmp = y1 * (((a * t_4) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))) elif t <= -4.6e-13: tmp = t_6 elif t <= -8.4e-24: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -8.2e-198: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))) elif t <= -1.05e-274: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_3)) elif t <= 9.5e-224: tmp = t_5 elif t <= 6.2e-199: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 4.3e-82: tmp = t_5 elif t <= 2e+257: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) else: tmp = t_6 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) t_3 = Float64(Float64(a * y5) - Float64(c * y4)) t_4 = Float64(Float64(z * y3) - Float64(x * y2)) t_5 = Float64(a * Float64(Float64(Float64(y1 * t_4) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_2))) t_6 = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_3))) tmp = 0.0 if (t <= -1.65e+108) tmp = Float64(y5 * Float64(Float64(a * t_2) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -1.05e+22) tmp = Float64(y1 * Float64(Float64(Float64(a * t_4) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); elseif (t <= -4.6e-13) tmp = t_6; elseif (t <= -8.4e-24) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -8.2e-198) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= -1.05e-274) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_3))); elseif (t <= 9.5e-224) tmp = t_5; elseif (t <= 6.2e-199) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 4.3e-82) tmp = t_5; elseif (t <= 2e+257) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); else tmp = t_6; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y1 * y4) - (y0 * y5); t_2 = (t * y2) - (y * y3); t_3 = (a * y5) - (c * y4); t_4 = (z * y3) - (x * y2); t_5 = a * (((y1 * t_4) + (b * ((x * y) - (z * t)))) + (y5 * t_2)); t_6 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_3)); tmp = 0.0; if (t <= -1.65e+108) tmp = y5 * ((a * t_2) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -1.05e+22) tmp = y1 * (((a * t_4) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))); elseif (t <= -4.6e-13) tmp = t_6; elseif (t <= -8.4e-24) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -8.2e-198) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_1)) + (z * ((b * y0) - (i * y1)))); elseif (t <= -1.05e-274) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_3)); elseif (t <= 9.5e-224) tmp = t_5; elseif (t <= 6.2e-199) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 4.3e-82) tmp = t_5; elseif (t <= 2e+257) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); else tmp = t_6; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(a * N[(N[(N[(y1 * t$95$4), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.65e+108], N[(y5 * N[(N[(a * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e+22], N[(y1 * N[(N[(N[(a * t$95$4), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.6e-13], t$95$6, If[LessEqual[t, -8.4e-24], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e-198], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-274], N[(y2 * N[(N[(N[(k * t$95$1), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-224], t$95$5, If[LessEqual[t, 6.2e-199], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e-82], t$95$5, If[LessEqual[t, 2e+257], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$6]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := t \cdot y2 - y \cdot y3\\
t_3 := a \cdot y5 - c \cdot y4\\
t_4 := z \cdot y3 - x \cdot y2\\
t_5 := a \cdot \left(\left(y1 \cdot t\_4 + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_2\right)\\
t_6 := t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_3\right)\\
\mathbf{if}\;t \leq -1.65 \cdot 10^{+108}:\\
\;\;\;\;y5 \cdot \left(a \cdot t\_2 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{+22}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot t\_4 + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;t \leq -4.6 \cdot 10^{-13}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq -8.4 \cdot 10^{-24}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-198}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot t\_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-274}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_3\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-224}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-199}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-82}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+257}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_6\\
\end{array}
\end{array}
if t < -1.6500000000000001e108Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -1.6500000000000001e108 < t < -1.0499999999999999e22Initial program 41.7%
Taylor expanded in y1 around inf 75.1%
if -1.0499999999999999e22 < t < -4.59999999999999958e-13 or 2.00000000000000006e257 < t Initial program 22.7%
Taylor expanded in t around inf 86.4%
if -4.59999999999999958e-13 < t < -8.3999999999999997e-24Initial program 0.0%
Taylor expanded in y3 around -inf 75.0%
Taylor expanded in z around inf 100.0%
if -8.3999999999999997e-24 < t < -8.20000000000000025e-198Initial program 28.8%
Taylor expanded in k around inf 64.9%
if -8.20000000000000025e-198 < t < -1.04999999999999997e-274Initial program 36.4%
Taylor expanded in y2 around inf 77.6%
if -1.04999999999999997e-274 < t < 9.5000000000000003e-224 or 6.20000000000000024e-199 < t < 4.30000000000000019e-82Initial program 45.3%
Taylor expanded in a around inf 56.5%
if 9.5000000000000003e-224 < t < 6.20000000000000024e-199Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 4.30000000000000019e-82 < t < 2.00000000000000006e257Initial program 29.4%
Taylor expanded in y3 around -inf 52.7%
Taylor expanded in c around 0 57.9%
Taylor expanded in j around 0 56.6%
Final simplification65.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* z y3) (* x y2)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* c y4) (* a y5)))
(t_4
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x (- (* a b) (* c i))))
(* y3 t_3))))
(t_5
(*
y3
(+
(* y t_3)
(+
(- (* a (* z y1)) (* c (* z y0)))
(* j (- (* y0 y5) (* y1 y4)))))))
(t_6 (* a (* y3 (- (* z y1) (* y y5))))))
(if (<= y3 -3.7e+125)
t_5
(if (<= y3 -2.8e+44)
(* t (* y2 t_2))
(if (<= y3 -9.5e+17)
t_6
(if (<= y3 -8.2e-41)
t_4
(if (<= y3 -3.2e-105)
t_6
(if (<= y3 -3e-171)
t_4
(if (<= y3 -4.1e-229)
(*
y2
(+
(+
(* k (- (* y1 y4) (* y0 y5)))
(* x (- (* c y0) (* a y1))))
(* t t_2)))
(if (<= y3 7.2e-106)
(*
a
(+
(+ (* y1 t_1) (* b (- (* x y) (* z t))))
(* y5 (- (* t y2) (* y y3)))))
(if (<= y3 7.5e+202)
(*
y1
(+
(+ (* a t_1) (* y4 (- (* k y2) (* j y3))))
(* i (- (* x j) (* z k)))))
t_5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * y3) - (x * y2);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
double t_5 = y3 * ((y * t_3) + (((a * (z * y1)) - (c * (z * y0))) + (j * ((y0 * y5) - (y1 * y4)))));
double t_6 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (y3 <= -3.7e+125) {
tmp = t_5;
} else if (y3 <= -2.8e+44) {
tmp = t * (y2 * t_2);
} else if (y3 <= -9.5e+17) {
tmp = t_6;
} else if (y3 <= -8.2e-41) {
tmp = t_4;
} else if (y3 <= -3.2e-105) {
tmp = t_6;
} else if (y3 <= -3e-171) {
tmp = t_4;
} else if (y3 <= -4.1e-229) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (y3 <= 7.2e-106) {
tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= 7.5e+202) {
tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = t_5;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (z * y3) - (x * y2)
t_2 = (a * y5) - (c * y4)
t_3 = (c * y4) - (a * y5)
t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3))
t_5 = y3 * ((y * t_3) + (((a * (z * y1)) - (c * (z * y0))) + (j * ((y0 * y5) - (y1 * y4)))))
t_6 = a * (y3 * ((z * y1) - (y * y5)))
if (y3 <= (-3.7d+125)) then
tmp = t_5
else if (y3 <= (-2.8d+44)) then
tmp = t * (y2 * t_2)
else if (y3 <= (-9.5d+17)) then
tmp = t_6
else if (y3 <= (-8.2d-41)) then
tmp = t_4
else if (y3 <= (-3.2d-105)) then
tmp = t_6
else if (y3 <= (-3d-171)) then
tmp = t_4
else if (y3 <= (-4.1d-229)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (y3 <= 7.2d-106) then
tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))))
else if (y3 <= 7.5d+202) then
tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))))
else
tmp = t_5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * y3) - (x * y2);
double t_2 = (a * y5) - (c * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3));
double t_5 = y3 * ((y * t_3) + (((a * (z * y1)) - (c * (z * y0))) + (j * ((y0 * y5) - (y1 * y4)))));
double t_6 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (y3 <= -3.7e+125) {
tmp = t_5;
} else if (y3 <= -2.8e+44) {
tmp = t * (y2 * t_2);
} else if (y3 <= -9.5e+17) {
tmp = t_6;
} else if (y3 <= -8.2e-41) {
tmp = t_4;
} else if (y3 <= -3.2e-105) {
tmp = t_6;
} else if (y3 <= -3e-171) {
tmp = t_4;
} else if (y3 <= -4.1e-229) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (y3 <= 7.2e-106) {
tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= 7.5e+202) {
tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (z * y3) - (x * y2) t_2 = (a * y5) - (c * y4) t_3 = (c * y4) - (a * y5) t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3)) t_5 = y3 * ((y * t_3) + (((a * (z * y1)) - (c * (z * y0))) + (j * ((y0 * y5) - (y1 * y4))))) t_6 = a * (y3 * ((z * y1) - (y * y5))) tmp = 0 if y3 <= -3.7e+125: tmp = t_5 elif y3 <= -2.8e+44: tmp = t * (y2 * t_2) elif y3 <= -9.5e+17: tmp = t_6 elif y3 <= -8.2e-41: tmp = t_4 elif y3 <= -3.2e-105: tmp = t_6 elif y3 <= -3e-171: tmp = t_4 elif y3 <= -4.1e-229: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif y3 <= 7.2e-106: tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))) elif y3 <= 7.5e+202: tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))) else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(z * y3) - Float64(x * y2)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * Float64(Float64(a * b) - Float64(c * i)))) + Float64(y3 * t_3))) t_5 = Float64(y3 * Float64(Float64(y * t_3) + Float64(Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))) + Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4)))))) t_6 = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))) tmp = 0.0 if (y3 <= -3.7e+125) tmp = t_5; elseif (y3 <= -2.8e+44) tmp = Float64(t * Float64(y2 * t_2)); elseif (y3 <= -9.5e+17) tmp = t_6; elseif (y3 <= -8.2e-41) tmp = t_4; elseif (y3 <= -3.2e-105) tmp = t_6; elseif (y3 <= -3e-171) tmp = t_4; elseif (y3 <= -4.1e-229) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_2))); elseif (y3 <= 7.2e-106) tmp = Float64(a * Float64(Float64(Float64(y1 * t_1) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= 7.5e+202) tmp = Float64(y1 * Float64(Float64(Float64(a * t_1) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (z * y3) - (x * y2); t_2 = (a * y5) - (c * y4); t_3 = (c * y4) - (a * y5); t_4 = y * (((k * ((i * y5) - (b * y4))) + (x * ((a * b) - (c * i)))) + (y3 * t_3)); t_5 = y3 * ((y * t_3) + (((a * (z * y1)) - (c * (z * y0))) + (j * ((y0 * y5) - (y1 * y4))))); t_6 = a * (y3 * ((z * y1) - (y * y5))); tmp = 0.0; if (y3 <= -3.7e+125) tmp = t_5; elseif (y3 <= -2.8e+44) tmp = t * (y2 * t_2); elseif (y3 <= -9.5e+17) tmp = t_6; elseif (y3 <= -8.2e-41) tmp = t_4; elseif (y3 <= -3.2e-105) tmp = t_6; elseif (y3 <= -3e-171) tmp = t_4; elseif (y3 <= -4.1e-229) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (y3 <= 7.2e-106) tmp = a * (((y1 * t_1) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))); elseif (y3 <= 7.5e+202) tmp = y1 * (((a * t_1) + (y4 * ((k * y2) - (j * y3)))) + (i * ((x * j) - (z * k)))); else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y3 * N[(N[(y * t$95$3), $MachinePrecision] + N[(N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -3.7e+125], t$95$5, If[LessEqual[y3, -2.8e+44], N[(t * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -9.5e+17], t$95$6, If[LessEqual[y3, -8.2e-41], t$95$4, If[LessEqual[y3, -3.2e-105], t$95$6, If[LessEqual[y3, -3e-171], t$95$4, If[LessEqual[y3, -4.1e-229], N[(y2 * N[(N[(N[(k * 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], If[LessEqual[y3, 7.2e-106], N[(a * N[(N[(N[(y1 * t$95$1), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.5e+202], N[(y1 * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot y3 - x \cdot y2\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot \left(a \cdot b - c \cdot i\right)\right) + y3 \cdot t\_3\right)\\
t_5 := y3 \cdot \left(y \cdot t\_3 + \left(\left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right) + j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\right)\\
t_6 := a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -3.7 \cdot 10^{+125}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y3 \leq -2.8 \cdot 10^{+44}:\\
\;\;\;\;t \cdot \left(y2 \cdot t\_2\right)\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{+17}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y3 \leq -8.2 \cdot 10^{-41}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y3 \leq -3.2 \cdot 10^{-105}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y3 \leq -3 \cdot 10^{-171}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y3 \leq -4.1 \cdot 10^{-229}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_2\right)\\
\mathbf{elif}\;y3 \leq 7.2 \cdot 10^{-106}:\\
\;\;\;\;a \cdot \left(\left(y1 \cdot t\_1 + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 7.5 \cdot 10^{+202}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot t\_1 + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y3 < -3.6999999999999998e125 or 7.4999999999999999e202 < y3 Initial program 30.8%
Taylor expanded in y3 around -inf 69.5%
Taylor expanded in c around 0 72.1%
if -3.6999999999999998e125 < y3 < -2.8000000000000001e44Initial program 45.5%
Taylor expanded in y2 around inf 64.0%
Taylor expanded in t around inf 73.7%
if -2.8000000000000001e44 < y3 < -9.5e17 or -8.20000000000000028e-41 < y3 < -3.19999999999999981e-105Initial program 22.7%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in a around -inf 73.5%
mul-1-neg73.5%
Simplified73.5%
if -9.5e17 < y3 < -8.20000000000000028e-41 or -3.19999999999999981e-105 < y3 < -3e-171Initial program 25.7%
Taylor expanded in y around inf 63.0%
if -3e-171 < y3 < -4.1e-229Initial program 37.9%
Taylor expanded in y2 around inf 73.8%
if -4.1e-229 < y3 < 7.20000000000000025e-106Initial program 31.3%
Taylor expanded in a around inf 60.6%
if 7.20000000000000025e-106 < y3 < 7.4999999999999999e202Initial program 29.6%
Taylor expanded in y1 around inf 46.8%
Final simplification62.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (* y (- (* c y4) (* a y5))))
(t_3 (* y3 (+ t_2 (- (* a (* z y1)) (* c (* z y0))))))
(t_4 (- (* y1 y4) (* y0 y5))))
(if (<= j -1.5e+246)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= j -1.25e+219)
(* x (* a (* y b)))
(if (<= j -3.15e+178)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= j -6.2e+35)
t_3
(if (<= j -4.4e-59)
(* k (* y2 t_4))
(if (<= j -2.9e-193)
t_3
(if (<= j 8.5e-295)
(* y2 (+ (+ (* k t_4) (* x t_1)) (* t (- (* a y5) (* c y4)))))
(if (<= j 3.1e-164)
t_3
(if (<= j 1.4e-5)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(-
(* y0 (- (* j y3) (* k y2)))
(* i (- (* t j) (* y k))))))
(* y3 (- t_2 (+ (* j t_4) (* z 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 * y0) - (a * y1);
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
double t_4 = (y1 * y4) - (y0 * y5);
double tmp;
if (j <= -1.5e+246) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (j <= -1.25e+219) {
tmp = x * (a * (y * b));
} else if (j <= -3.15e+178) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (j <= -6.2e+35) {
tmp = t_3;
} else if (j <= -4.4e-59) {
tmp = k * (y2 * t_4);
} else if (j <= -2.9e-193) {
tmp = t_3;
} else if (j <= 8.5e-295) {
tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (j <= 3.1e-164) {
tmp = t_3;
} else if (j <= 1.4e-5) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else {
tmp = y3 * (t_2 - ((j * t_4) + (z * t_1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = y * ((c * y4) - (a * y5))
t_3 = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))))
t_4 = (y1 * y4) - (y0 * y5)
if (j <= (-1.5d+246)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (j <= (-1.25d+219)) then
tmp = x * (a * (y * b))
else if (j <= (-3.15d+178)) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (j <= (-6.2d+35)) then
tmp = t_3
else if (j <= (-4.4d-59)) then
tmp = k * (y2 * t_4)
else if (j <= (-2.9d-193)) then
tmp = t_3
else if (j <= 8.5d-295) then
tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4))))
else if (j <= 3.1d-164) then
tmp = t_3
else if (j <= 1.4d-5) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))))
else
tmp = y3 * (t_2 - ((j * t_4) + (z * 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 * y0) - (a * y1);
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
double t_4 = (y1 * y4) - (y0 * y5);
double tmp;
if (j <= -1.5e+246) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (j <= -1.25e+219) {
tmp = x * (a * (y * b));
} else if (j <= -3.15e+178) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (j <= -6.2e+35) {
tmp = t_3;
} else if (j <= -4.4e-59) {
tmp = k * (y2 * t_4);
} else if (j <= -2.9e-193) {
tmp = t_3;
} else if (j <= 8.5e-295) {
tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (j <= 3.1e-164) {
tmp = t_3;
} else if (j <= 1.4e-5) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else {
tmp = y3 * (t_2 - ((j * t_4) + (z * 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 * y0) - (a * y1) t_2 = y * ((c * y4) - (a * y5)) t_3 = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0)))) t_4 = (y1 * y4) - (y0 * y5) tmp = 0 if j <= -1.5e+246: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif j <= -1.25e+219: tmp = x * (a * (y * b)) elif j <= -3.15e+178: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif j <= -6.2e+35: tmp = t_3 elif j <= -4.4e-59: tmp = k * (y2 * t_4) elif j <= -2.9e-193: tmp = t_3 elif j <= 8.5e-295: tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4)))) elif j <= 3.1e-164: tmp = t_3 elif j <= 1.4e-5: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))) else: tmp = y3 * (t_2 - ((j * t_4) + (z * t_1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) t_3 = Float64(y3 * Float64(t_2 + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (j <= -1.5e+246) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (j <= -1.25e+219) tmp = Float64(x * Float64(a * Float64(y * b))); elseif (j <= -3.15e+178) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (j <= -6.2e+35) tmp = t_3; elseif (j <= -4.4e-59) tmp = Float64(k * Float64(y2 * t_4)); elseif (j <= -2.9e-193) tmp = t_3; elseif (j <= 8.5e-295) tmp = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * t_1)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (j <= 3.1e-164) tmp = t_3; elseif (j <= 1.4e-5) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))))); else tmp = Float64(y3 * Float64(t_2 - Float64(Float64(j * t_4) + Float64(z * 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 * y0) - (a * y1); t_2 = y * ((c * y4) - (a * y5)); t_3 = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0)))); t_4 = (y1 * y4) - (y0 * y5); tmp = 0.0; if (j <= -1.5e+246) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (j <= -1.25e+219) tmp = x * (a * (y * b)); elseif (j <= -3.15e+178) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (j <= -6.2e+35) tmp = t_3; elseif (j <= -4.4e-59) tmp = k * (y2 * t_4); elseif (j <= -2.9e-193) tmp = t_3; elseif (j <= 8.5e-295) tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4)))); elseif (j <= 3.1e-164) tmp = t_3; elseif (j <= 1.4e-5) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))); else tmp = y3 * (t_2 - ((j * t_4) + (z * t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y3 * N[(t$95$2 + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.5e+246], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.25e+219], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.15e+178], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.2e+35], t$95$3, If[LessEqual[j, -4.4e-59], N[(k * N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.9e-193], t$95$3, If[LessEqual[j, 8.5e-295], N[(y2 * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e-164], t$95$3, If[LessEqual[j, 1.4e-5], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(t$95$2 - N[(N[(j * t$95$4), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_3 := y3 \cdot \left(t\_2 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+246}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq -1.25 \cdot 10^{+219}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\mathbf{elif}\;j \leq -3.15 \cdot 10^{+178}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -6.2 \cdot 10^{+35}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -4.4 \cdot 10^{-59}:\\
\;\;\;\;k \cdot \left(y2 \cdot t\_4\right)\\
\mathbf{elif}\;j \leq -2.9 \cdot 10^{-193}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{-295}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_4 + x \cdot t\_1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-164}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-5}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(t\_2 - \left(j \cdot t\_4 + z \cdot t\_1\right)\right)\\
\end{array}
\end{array}
if j < -1.5e246Initial program 26.3%
Taylor expanded in j around inf 73.8%
Taylor expanded in y0 around inf 69.3%
if -1.5e246 < j < -1.25e219Initial program 12.5%
Taylor expanded in y around inf 37.5%
Taylor expanded in x around inf 62.8%
Taylor expanded in a around inf 75.4%
if -1.25e219 < j < -3.15000000000000015e178Initial program 33.3%
Taylor expanded in c around inf 67.5%
if -3.15000000000000015e178 < j < -6.19999999999999973e35 or -4.3999999999999998e-59 < j < -2.90000000000000007e-193 or 8.49999999999999953e-295 < j < 3.1000000000000001e-164Initial program 33.0%
Taylor expanded in y3 around -inf 52.1%
Taylor expanded in c around 0 53.5%
Taylor expanded in j around 0 54.9%
if -6.19999999999999973e35 < j < -4.3999999999999998e-59Initial program 31.8%
Taylor expanded in y2 around inf 45.8%
Taylor expanded in k around inf 73.2%
if -2.90000000000000007e-193 < j < 8.49999999999999953e-295Initial program 44.6%
Taylor expanded in y2 around inf 60.1%
if 3.1000000000000001e-164 < j < 1.39999999999999998e-5Initial program 32.6%
Taylor expanded in y5 around -inf 60.4%
if 1.39999999999999998e-5 < j Initial program 21.9%
Taylor expanded in y3 around -inf 52.3%
Final simplification59.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y y4) (* z y0)))
(t_2 (* t (* y2 (- (* a y5) (* c y4)))))
(t_3 (* a (* y3 (- (* z y1) (* y y5))))))
(if (<= y5 -1.05e+266)
t_2
(if (<= y5 -1.66e+124)
(* j (* y3 (- (* y0 y5) (* y1 y4))))
(if (<= y5 -1.4e-60)
t_2
(if (<= y5 -2.2e-65)
(* c (* y3 t_1))
(if (<= y5 -9.5e-194)
t_3
(if (<= y5 -2.6e-279)
(* y3 (* c t_1))
(if (<= y5 2.25e-235)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y5 7.8e-225)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y5 4.8e-68)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= y5 5.8e+46)
t_2
(if (<= y5 1.35e+91)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y5 8.5e+204)
t_3
(* i (* j (- (* x y1) (* 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 t_1 = (y * y4) - (z * y0);
double t_2 = t * (y2 * ((a * y5) - (c * y4)));
double t_3 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (y5 <= -1.05e+266) {
tmp = t_2;
} else if (y5 <= -1.66e+124) {
tmp = j * (y3 * ((y0 * y5) - (y1 * y4)));
} else if (y5 <= -1.4e-60) {
tmp = t_2;
} else if (y5 <= -2.2e-65) {
tmp = c * (y3 * t_1);
} else if (y5 <= -9.5e-194) {
tmp = t_3;
} else if (y5 <= -2.6e-279) {
tmp = y3 * (c * t_1);
} else if (y5 <= 2.25e-235) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y5 <= 7.8e-225) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y5 <= 4.8e-68) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (y5 <= 5.8e+46) {
tmp = t_2;
} else if (y5 <= 1.35e+91) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y5 <= 8.5e+204) {
tmp = t_3;
} else {
tmp = i * (j * ((x * y1) - (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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (y * y4) - (z * y0)
t_2 = t * (y2 * ((a * y5) - (c * y4)))
t_3 = a * (y3 * ((z * y1) - (y * y5)))
if (y5 <= (-1.05d+266)) then
tmp = t_2
else if (y5 <= (-1.66d+124)) then
tmp = j * (y3 * ((y0 * y5) - (y1 * y4)))
else if (y5 <= (-1.4d-60)) then
tmp = t_2
else if (y5 <= (-2.2d-65)) then
tmp = c * (y3 * t_1)
else if (y5 <= (-9.5d-194)) then
tmp = t_3
else if (y5 <= (-2.6d-279)) then
tmp = y3 * (c * t_1)
else if (y5 <= 2.25d-235) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y5 <= 7.8d-225) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y5 <= 4.8d-68) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (y5 <= 5.8d+46) then
tmp = t_2
else if (y5 <= 1.35d+91) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y5 <= 8.5d+204) then
tmp = t_3
else
tmp = i * (j * ((x * y1) - (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 t_1 = (y * y4) - (z * y0);
double t_2 = t * (y2 * ((a * y5) - (c * y4)));
double t_3 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (y5 <= -1.05e+266) {
tmp = t_2;
} else if (y5 <= -1.66e+124) {
tmp = j * (y3 * ((y0 * y5) - (y1 * y4)));
} else if (y5 <= -1.4e-60) {
tmp = t_2;
} else if (y5 <= -2.2e-65) {
tmp = c * (y3 * t_1);
} else if (y5 <= -9.5e-194) {
tmp = t_3;
} else if (y5 <= -2.6e-279) {
tmp = y3 * (c * t_1);
} else if (y5 <= 2.25e-235) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y5 <= 7.8e-225) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y5 <= 4.8e-68) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (y5 <= 5.8e+46) {
tmp = t_2;
} else if (y5 <= 1.35e+91) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y5 <= 8.5e+204) {
tmp = t_3;
} else {
tmp = i * (j * ((x * y1) - (t * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * y4) - (z * y0) t_2 = t * (y2 * ((a * y5) - (c * y4))) t_3 = a * (y3 * ((z * y1) - (y * y5))) tmp = 0 if y5 <= -1.05e+266: tmp = t_2 elif y5 <= -1.66e+124: tmp = j * (y3 * ((y0 * y5) - (y1 * y4))) elif y5 <= -1.4e-60: tmp = t_2 elif y5 <= -2.2e-65: tmp = c * (y3 * t_1) elif y5 <= -9.5e-194: tmp = t_3 elif y5 <= -2.6e-279: tmp = y3 * (c * t_1) elif y5 <= 2.25e-235: tmp = i * (k * ((y * y5) - (z * y1))) elif y5 <= 7.8e-225: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y5 <= 4.8e-68: tmp = y3 * (z * ((a * y1) - (c * y0))) elif y5 <= 5.8e+46: tmp = t_2 elif y5 <= 1.35e+91: tmp = j * (x * ((i * y1) - (b * y0))) elif y5 <= 8.5e+204: tmp = t_3 else: tmp = i * (j * ((x * y1) - (t * 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(y * y4) - Float64(z * y0)) t_2 = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))) t_3 = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))) tmp = 0.0 if (y5 <= -1.05e+266) tmp = t_2; elseif (y5 <= -1.66e+124) tmp = Float64(j * Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))); elseif (y5 <= -1.4e-60) tmp = t_2; elseif (y5 <= -2.2e-65) tmp = Float64(c * Float64(y3 * t_1)); elseif (y5 <= -9.5e-194) tmp = t_3; elseif (y5 <= -2.6e-279) tmp = Float64(y3 * Float64(c * t_1)); elseif (y5 <= 2.25e-235) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y5 <= 7.8e-225) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y5 <= 4.8e-68) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (y5 <= 5.8e+46) tmp = t_2; elseif (y5 <= 1.35e+91) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y5 <= 8.5e+204) tmp = t_3; else tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - 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) t_1 = (y * y4) - (z * y0); t_2 = t * (y2 * ((a * y5) - (c * y4))); t_3 = a * (y3 * ((z * y1) - (y * y5))); tmp = 0.0; if (y5 <= -1.05e+266) tmp = t_2; elseif (y5 <= -1.66e+124) tmp = j * (y3 * ((y0 * y5) - (y1 * y4))); elseif (y5 <= -1.4e-60) tmp = t_2; elseif (y5 <= -2.2e-65) tmp = c * (y3 * t_1); elseif (y5 <= -9.5e-194) tmp = t_3; elseif (y5 <= -2.6e-279) tmp = y3 * (c * t_1); elseif (y5 <= 2.25e-235) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y5 <= 7.8e-225) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y5 <= 4.8e-68) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (y5 <= 5.8e+46) tmp = t_2; elseif (y5 <= 1.35e+91) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y5 <= 8.5e+204) tmp = t_3; else tmp = i * (j * ((x * y1) - (t * 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[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.05e+266], t$95$2, If[LessEqual[y5, -1.66e+124], N[(j * N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.4e-60], t$95$2, If[LessEqual[y5, -2.2e-65], N[(c * N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -9.5e-194], t$95$3, If[LessEqual[y5, -2.6e-279], N[(y3 * N[(c * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.25e-235], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7.8e-225], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.8e-68], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.8e+46], t$95$2, If[LessEqual[y5, 1.35e+91], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8.5e+204], t$95$3, N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot y4 - z \cdot y0\\
t_2 := t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_3 := a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{if}\;y5 \leq -1.05 \cdot 10^{+266}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq -1.66 \cdot 10^{+124}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -1.4 \cdot 10^{-60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq -2.2 \cdot 10^{-65}:\\
\;\;\;\;c \cdot \left(y3 \cdot t\_1\right)\\
\mathbf{elif}\;y5 \leq -9.5 \cdot 10^{-194}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-279}:\\
\;\;\;\;y3 \cdot \left(c \cdot t\_1\right)\\
\mathbf{elif}\;y5 \leq 2.25 \cdot 10^{-235}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 7.8 \cdot 10^{-225}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 4.8 \cdot 10^{-68}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 5.8 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq 1.35 \cdot 10^{+91}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 8.5 \cdot 10^{+204}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -1.04999999999999999e266 or -1.66e124 < y5 < -1.4000000000000001e-60 or 4.79999999999999982e-68 < y5 < 5.8000000000000004e46Initial program 34.9%
Taylor expanded in y2 around inf 40.1%
Taylor expanded in t around inf 46.5%
if -1.04999999999999999e266 < y5 < -1.66e124Initial program 36.4%
Taylor expanded in j around inf 59.2%
Taylor expanded in y3 around inf 64.0%
neg-mul-164.0%
distribute-rgt-neg-in64.0%
Simplified64.0%
if -1.4000000000000001e-60 < y5 < -2.20000000000000021e-65Initial program 66.7%
Taylor expanded in y3 around -inf 66.7%
Taylor expanded in c around inf 100.0%
if -2.20000000000000021e-65 < y5 < -9.50000000000000009e-194 or 1.35e91 < y5 < 8.5e204Initial program 36.3%
Taylor expanded in y3 around -inf 48.8%
Taylor expanded in a around -inf 58.8%
mul-1-neg58.8%
Simplified58.8%
if -9.50000000000000009e-194 < y5 < -2.6000000000000002e-279Initial program 17.4%
Taylor expanded in y3 around -inf 56.9%
Taylor expanded in c around inf 69.2%
if -2.6000000000000002e-279 < y5 < 2.2499999999999999e-235Initial program 23.8%
Taylor expanded in k around inf 48.1%
Taylor expanded in i around inf 48.5%
if 2.2499999999999999e-235 < y5 < 7.8000000000000001e-225Initial program 33.3%
Taylor expanded in y2 around inf 100.0%
Taylor expanded in x around inf 100.0%
if 7.8000000000000001e-225 < y5 < 4.79999999999999982e-68Initial program 35.0%
Taylor expanded in y3 around -inf 43.1%
Taylor expanded in z around inf 43.3%
if 5.8000000000000004e46 < y5 < 1.35e91Initial program 0.0%
Taylor expanded in j around inf 22.2%
Taylor expanded in x around inf 67.4%
if 8.5e204 < y5 Initial program 13.0%
Taylor expanded in j around inf 36.5%
Taylor expanded in i around -inf 56.9%
mul-1-neg56.9%
Simplified56.9%
Final simplification55.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* t y2) (* y y3)))
(t_3
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 t_2))))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (* y3 (- (* y (- (* c y4) (* a y5))) (+ (* j t_4) (* z t_1)))))
(t_6 (* a t_2))
(t_7 (* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_6))))
(if (<= y2 -1.2e+106)
(* y2 (+ (+ (* k t_4) (* x t_1)) (* t (- (* a y5) (* c y4)))))
(if (<= y2 -3.5e+25)
t_7
(if (<= y2 -2.7e-235)
t_5
(if (<= y2 -1.25e-279)
(*
y5
(+ t_6 (- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k))))))
(if (<= y2 3.3e-226)
t_5
(if (<= y2 1.2e-93)
t_3
(if (<= y2 2.4e+21)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= y2 6.9e+232) t_3 t_7))))))))))
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) - (a * y1);
double t_2 = (t * y2) - (y * y3);
double t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2));
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_1)));
double t_6 = a * t_2;
double t_7 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_6);
double tmp;
if (y2 <= -1.2e+106) {
tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (y2 <= -3.5e+25) {
tmp = t_7;
} else if (y2 <= -2.7e-235) {
tmp = t_5;
} else if (y2 <= -1.25e-279) {
tmp = y5 * (t_6 + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else if (y2 <= 3.3e-226) {
tmp = t_5;
} else if (y2 <= 1.2e-93) {
tmp = t_3;
} else if (y2 <= 2.4e+21) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (y2 <= 6.9e+232) {
tmp = t_3;
} else {
tmp = t_7;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = (t * y2) - (y * y3)
t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2))
t_4 = (y1 * y4) - (y0 * y5)
t_5 = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_1)))
t_6 = a * t_2
t_7 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_6)
if (y2 <= (-1.2d+106)) then
tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4))))
else if (y2 <= (-3.5d+25)) then
tmp = t_7
else if (y2 <= (-2.7d-235)) then
tmp = t_5
else if (y2 <= (-1.25d-279)) then
tmp = y5 * (t_6 + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))))
else if (y2 <= 3.3d-226) then
tmp = t_5
else if (y2 <= 1.2d-93) then
tmp = t_3
else if (y2 <= 2.4d+21) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (y2 <= 6.9d+232) then
tmp = t_3
else
tmp = t_7
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) - (a * y1);
double t_2 = (t * y2) - (y * y3);
double t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2));
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_1)));
double t_6 = a * t_2;
double t_7 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_6);
double tmp;
if (y2 <= -1.2e+106) {
tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (y2 <= -3.5e+25) {
tmp = t_7;
} else if (y2 <= -2.7e-235) {
tmp = t_5;
} else if (y2 <= -1.25e-279) {
tmp = y5 * (t_6 + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else if (y2 <= 3.3e-226) {
tmp = t_5;
} else if (y2 <= 1.2e-93) {
tmp = t_3;
} else if (y2 <= 2.4e+21) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (y2 <= 6.9e+232) {
tmp = t_3;
} else {
tmp = t_7;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y0) - (a * y1) t_2 = (t * y2) - (y * y3) t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2)) t_4 = (y1 * y4) - (y0 * y5) t_5 = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_1))) t_6 = a * t_2 t_7 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_6) tmp = 0 if y2 <= -1.2e+106: tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4)))) elif y2 <= -3.5e+25: tmp = t_7 elif y2 <= -2.7e-235: tmp = t_5 elif y2 <= -1.25e-279: tmp = y5 * (t_6 + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))) elif y2 <= 3.3e-226: tmp = t_5 elif y2 <= 1.2e-93: tmp = t_3 elif y2 <= 2.4e+21: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif y2 <= 6.9e+232: tmp = t_3 else: tmp = t_7 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) t_3 = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * t_2))) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) - Float64(Float64(j * t_4) + Float64(z * t_1)))) t_6 = Float64(a * t_2) t_7 = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_6)) tmp = 0.0 if (y2 <= -1.2e+106) tmp = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * t_1)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y2 <= -3.5e+25) tmp = t_7; elseif (y2 <= -2.7e-235) tmp = t_5; elseif (y2 <= -1.25e-279) tmp = Float64(y5 * Float64(t_6 + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))))); elseif (y2 <= 3.3e-226) tmp = t_5; elseif (y2 <= 1.2e-93) tmp = t_3; elseif (y2 <= 2.4e+21) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y2 <= 6.9e+232) tmp = t_3; else tmp = t_7; 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) - (a * y1); t_2 = (t * y2) - (y * y3); t_3 = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * t_2)); t_4 = (y1 * y4) - (y0 * y5); t_5 = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_1))); t_6 = a * t_2; t_7 = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_6); tmp = 0.0; if (y2 <= -1.2e+106) tmp = y2 * (((k * t_4) + (x * t_1)) + (t * ((a * y5) - (c * y4)))); elseif (y2 <= -3.5e+25) tmp = t_7; elseif (y2 <= -2.7e-235) tmp = t_5; elseif (y2 <= -1.25e-279) tmp = y5 * (t_6 + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))); elseif (y2 <= 3.3e-226) tmp = t_5; elseif (y2 <= 1.2e-93) tmp = t_3; elseif (y2 <= 2.4e+21) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (y2 <= 6.9e+232) tmp = t_3; else tmp = t_7; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * t$95$4), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(a * t$95$2), $MachinePrecision]}, Block[{t$95$7 = N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.2e+106], N[(y2 * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.5e+25], t$95$7, If[LessEqual[y2, -2.7e-235], t$95$5, If[LessEqual[y2, -1.25e-279], N[(y5 * N[(t$95$6 + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.3e-226], t$95$5, If[LessEqual[y2, 1.2e-93], t$95$3, If[LessEqual[y2, 2.4e+21], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.9e+232], t$95$3, t$95$7]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := t \cdot y2 - y \cdot y3\\
t_3 := a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot t\_2\right)\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(j \cdot t\_4 + z \cdot t\_1\right)\right)\\
t_6 := a \cdot t\_2\\
t_7 := y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_6\right)\\
\mathbf{if}\;y2 \leq -1.2 \cdot 10^{+106}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_4 + x \cdot t\_1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -3.5 \cdot 10^{+25}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y2 \leq -2.7 \cdot 10^{-235}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y2 \leq -1.25 \cdot 10^{-279}:\\
\;\;\;\;y5 \cdot \left(t\_6 + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 3.3 \cdot 10^{-226}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{-93}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{+21}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 6.9 \cdot 10^{+232}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_7\\
\end{array}
\end{array}
if y2 < -1.2e106Initial program 23.6%
Taylor expanded in y2 around inf 59.3%
if -1.2e106 < y2 < -3.49999999999999999e25 or 6.9000000000000005e232 < y2 Initial program 22.6%
Taylor expanded in y5 around -inf 61.4%
Taylor expanded in k around 0 71.4%
+-commutative71.4%
mul-1-neg71.4%
unsub-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
if -3.49999999999999999e25 < y2 < -2.7000000000000002e-235 or -1.24999999999999992e-279 < y2 < 3.3e-226Initial program 38.8%
Taylor expanded in y3 around -inf 59.2%
if -2.7000000000000002e-235 < y2 < -1.24999999999999992e-279Initial program 29.3%
Taylor expanded in y5 around -inf 65.5%
if 3.3e-226 < y2 < 1.2000000000000001e-93 or 2.4e21 < y2 < 6.9000000000000005e232Initial program 28.7%
Taylor expanded in a around inf 60.9%
if 1.2000000000000001e-93 < y2 < 2.4e21Initial program 28.5%
Taylor expanded in c around inf 53.0%
Final simplification61.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (* y (- (* c y4) (* a y5))))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4 (* y3 (- t_2 (+ (* j t_3) (* z t_1))))))
(if (<= t -6.5e+104)
(* y5 (+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= t -2.3e+59)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -1.15e+33)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= t -8.5e-198)
t_4
(if (<= t 7.2e-295)
(* y2 (+ (+ (* k t_3) (* x t_1)) (* t (- (* a y5) (* c y4)))))
(if (<= t 9e-224)
t_4
(if (<= t 8.8e-178)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 1.3e-81)
(* x (* y (- (* a b) (* c i))))
(* y3 (+ t_2 (- (* a (* z y1)) (* c (* z y0)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = y3 * (t_2 - ((j * t_3) + (z * t_1)));
double tmp;
if (t <= -6.5e+104) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -2.3e+59) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -1.15e+33) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -8.5e-198) {
tmp = t_4;
} else if (t <= 7.2e-295) {
tmp = y2 * (((k * t_3) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (t <= 9e-224) {
tmp = t_4;
} else if (t <= 8.8e-178) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.3e-81) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = y * ((c * y4) - (a * y5))
t_3 = (y1 * y4) - (y0 * y5)
t_4 = y3 * (t_2 - ((j * t_3) + (z * t_1)))
if (t <= (-6.5d+104)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-2.3d+59)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-1.15d+33)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (t <= (-8.5d-198)) then
tmp = t_4
else if (t <= 7.2d-295) then
tmp = y2 * (((k * t_3) + (x * t_1)) + (t * ((a * y5) - (c * y4))))
else if (t <= 9d-224) then
tmp = t_4
else if (t <= 8.8d-178) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 1.3d-81) then
tmp = x * (y * ((a * b) - (c * i)))
else
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = y * ((c * y4) - (a * y5));
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = y3 * (t_2 - ((j * t_3) + (z * t_1)));
double tmp;
if (t <= -6.5e+104) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -2.3e+59) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -1.15e+33) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -8.5e-198) {
tmp = t_4;
} else if (t <= 7.2e-295) {
tmp = y2 * (((k * t_3) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (t <= 9e-224) {
tmp = t_4;
} else if (t <= 8.8e-178) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.3e-81) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y0) - (a * y1) t_2 = y * ((c * y4) - (a * y5)) t_3 = (y1 * y4) - (y0 * y5) t_4 = y3 * (t_2 - ((j * t_3) + (z * t_1))) tmp = 0 if t <= -6.5e+104: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif t <= -2.3e+59: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -1.15e+33: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif t <= -8.5e-198: tmp = t_4 elif t <= 7.2e-295: tmp = y2 * (((k * t_3) + (x * t_1)) + (t * ((a * y5) - (c * y4)))) elif t <= 9e-224: tmp = t_4 elif t <= 8.8e-178: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 1.3e-81: tmp = x * (y * ((a * b) - (c * i))) else: tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) t_3 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(y3 * Float64(t_2 - Float64(Float64(j * t_3) + Float64(z * t_1)))) tmp = 0.0 if (t <= -6.5e+104) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -2.3e+59) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -1.15e+33) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= -8.5e-198) tmp = t_4; elseif (t <= 7.2e-295) tmp = Float64(y2 * Float64(Float64(Float64(k * t_3) + Float64(x * t_1)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (t <= 9e-224) tmp = t_4; elseif (t <= 8.8e-178) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 1.3e-81) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(y3 * Float64(t_2 + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (c * y0) - (a * y1); t_2 = y * ((c * y4) - (a * y5)); t_3 = (y1 * y4) - (y0 * y5); t_4 = y3 * (t_2 - ((j * t_3) + (z * t_1))); tmp = 0.0; if (t <= -6.5e+104) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -2.3e+59) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -1.15e+33) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (t <= -8.5e-198) tmp = t_4; elseif (t <= 7.2e-295) tmp = y2 * (((k * t_3) + (x * t_1)) + (t * ((a * y5) - (c * y4)))); elseif (t <= 9e-224) tmp = t_4; elseif (t <= 8.8e-178) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 1.3e-81) tmp = x * (y * ((a * b) - (c * i))); else tmp = y3 * (t_2 + ((a * (z * y1)) - (c * (z * y0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * 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[(y3 * N[(t$95$2 - N[(N[(j * t$95$3), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e+104], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.3e+59], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.15e+33], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.5e-198], t$95$4, If[LessEqual[t, 7.2e-295], N[(y2 * N[(N[(N[(k * t$95$3), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-224], t$95$4, If[LessEqual[t, 8.8e-178], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e-81], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(t$95$2 + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := y3 \cdot \left(t\_2 - \left(j \cdot t\_3 + z \cdot t\_1\right)\right)\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+104}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{+59}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{+33}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-198}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-295}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_3 + x \cdot t\_1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-224}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-178}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(t\_2 + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -6.5000000000000005e104Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -6.5000000000000005e104 < t < -2.30000000000000008e59Initial program 42.9%
Taylor expanded in y3 around -inf 43.1%
Taylor expanded in z around inf 86.0%
if -2.30000000000000008e59 < t < -1.15000000000000005e33Initial program 66.7%
Taylor expanded in y4 around inf 100.0%
if -1.15000000000000005e33 < t < -8.4999999999999994e-198 or 7.2000000000000003e-295 < t < 9.0000000000000009e-224Initial program 26.3%
Taylor expanded in y3 around -inf 54.9%
if -8.4999999999999994e-198 < t < 7.2000000000000003e-295Initial program 40.6%
Taylor expanded in y2 around inf 66.0%
if 9.0000000000000009e-224 < t < 8.8000000000000005e-178Initial program 9.6%
Taylor expanded in j around inf 73.7%
Taylor expanded in x around inf 73.8%
if 8.8000000000000005e-178 < t < 1.2999999999999999e-81Initial program 39.8%
Taylor expanded in y around inf 45.2%
Taylor expanded in x around inf 41.4%
if 1.2999999999999999e-81 < t Initial program 29.7%
Taylor expanded in y3 around -inf 51.2%
Taylor expanded in c around 0 55.5%
Taylor expanded in j around 0 52.3%
Final simplification57.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (* x (- (* c y0) (* a y1))))))
(if (<= y1 -8.8e+184)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y1 -5e+80)
t_1
(if (<= y1 -6e+27)
(* y3 (* y (* c y4)))
(if (<= y1 -7e-45)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y1 -1.8e-155)
t_1
(if (<= y1 -8e-177)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y1 -6.5e-210)
(* y2 (* y5 (- (* t a) (* k y0))))
(if (<= y1 -2.05e-302)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y1 1.16e-150)
(* y3 (* y0 (- (* j y5) (* z c))))
(if (<= y1 1.22e-85)
(* t (* y2 (- (* a y5) (* c y4))))
(* a (* y3 (- (* z y1) (* y 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 = y2 * (x * ((c * y0) - (a * y1)));
double tmp;
if (y1 <= -8.8e+184) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y1 <= -5e+80) {
tmp = t_1;
} else if (y1 <= -6e+27) {
tmp = y3 * (y * (c * y4));
} else if (y1 <= -7e-45) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y1 <= -1.8e-155) {
tmp = t_1;
} else if (y1 <= -8e-177) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y1 <= -6.5e-210) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (y1 <= -2.05e-302) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y1 <= 1.16e-150) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y1 <= 1.22e-85) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = a * (y3 * ((z * y1) - (y * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y2 * (x * ((c * y0) - (a * y1)))
if (y1 <= (-8.8d+184)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y1 <= (-5d+80)) then
tmp = t_1
else if (y1 <= (-6d+27)) then
tmp = y3 * (y * (c * y4))
else if (y1 <= (-7d-45)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y1 <= (-1.8d-155)) then
tmp = t_1
else if (y1 <= (-8d-177)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y1 <= (-6.5d-210)) then
tmp = y2 * (y5 * ((t * a) - (k * y0)))
else if (y1 <= (-2.05d-302)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y1 <= 1.16d-150) then
tmp = y3 * (y0 * ((j * y5) - (z * c)))
else if (y1 <= 1.22d-85) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = a * (y3 * ((z * y1) - (y * 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 = y2 * (x * ((c * y0) - (a * y1)));
double tmp;
if (y1 <= -8.8e+184) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y1 <= -5e+80) {
tmp = t_1;
} else if (y1 <= -6e+27) {
tmp = y3 * (y * (c * y4));
} else if (y1 <= -7e-45) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y1 <= -1.8e-155) {
tmp = t_1;
} else if (y1 <= -8e-177) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y1 <= -6.5e-210) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (y1 <= -2.05e-302) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y1 <= 1.16e-150) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y1 <= 1.22e-85) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = a * (y3 * ((z * y1) - (y * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y2 * (x * ((c * y0) - (a * y1))) tmp = 0 if y1 <= -8.8e+184: tmp = i * (j * ((x * y1) - (t * y5))) elif y1 <= -5e+80: tmp = t_1 elif y1 <= -6e+27: tmp = y3 * (y * (c * y4)) elif y1 <= -7e-45: tmp = i * (k * ((y * y5) - (z * y1))) elif y1 <= -1.8e-155: tmp = t_1 elif y1 <= -8e-177: tmp = j * (t * ((b * y4) - (i * y5))) elif y1 <= -6.5e-210: tmp = y2 * (y5 * ((t * a) - (k * y0))) elif y1 <= -2.05e-302: tmp = b * (j * ((t * y4) - (x * y0))) elif y1 <= 1.16e-150: tmp = y3 * (y0 * ((j * y5) - (z * c))) elif y1 <= 1.22e-85: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = a * (y3 * ((z * y1) - (y * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) tmp = 0.0 if (y1 <= -8.8e+184) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y1 <= -5e+80) tmp = t_1; elseif (y1 <= -6e+27) tmp = Float64(y3 * Float64(y * Float64(c * y4))); elseif (y1 <= -7e-45) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y1 <= -1.8e-155) tmp = t_1; elseif (y1 <= -8e-177) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y1 <= -6.5e-210) tmp = Float64(y2 * Float64(y5 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (y1 <= -2.05e-302) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y1 <= 1.16e-150) tmp = Float64(y3 * Float64(y0 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (y1 <= 1.22e-85) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * 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 = y2 * (x * ((c * y0) - (a * y1))); tmp = 0.0; if (y1 <= -8.8e+184) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y1 <= -5e+80) tmp = t_1; elseif (y1 <= -6e+27) tmp = y3 * (y * (c * y4)); elseif (y1 <= -7e-45) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y1 <= -1.8e-155) tmp = t_1; elseif (y1 <= -8e-177) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y1 <= -6.5e-210) tmp = y2 * (y5 * ((t * a) - (k * y0))); elseif (y1 <= -2.05e-302) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y1 <= 1.16e-150) tmp = y3 * (y0 * ((j * y5) - (z * c))); elseif (y1 <= 1.22e-85) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = a * (y3 * ((z * y1) - (y * 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[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -8.8e+184], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -5e+80], t$95$1, If[LessEqual[y1, -6e+27], N[(y3 * N[(y * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -7e-45], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -1.8e-155], t$95$1, If[LessEqual[y1, -8e-177], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -6.5e-210], N[(y2 * N[(y5 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -2.05e-302], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.16e-150], N[(y3 * N[(y0 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.22e-85], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{if}\;y1 \leq -8.8 \cdot 10^{+184}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq -5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -6 \cdot 10^{+27}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4\right)\right)\\
\mathbf{elif}\;y1 \leq -7 \cdot 10^{-45}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y1 \leq -1.8 \cdot 10^{-155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -8 \cdot 10^{-177}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq -6.5 \cdot 10^{-210}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;y1 \leq -2.05 \cdot 10^{-302}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y1 \leq 1.16 \cdot 10^{-150}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;y1 \leq 1.22 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\end{array}
\end{array}
if y1 < -8.8e184Initial program 15.4%
Taylor expanded in j around inf 35.3%
Taylor expanded in i around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if -8.8e184 < y1 < -4.99999999999999961e80 or -7e-45 < y1 < -1.79999999999999994e-155Initial program 30.4%
Taylor expanded in y2 around inf 50.7%
Taylor expanded in x around inf 48.8%
if -4.99999999999999961e80 < y1 < -5.99999999999999953e27Initial program 39.8%
Taylor expanded in y3 around -inf 70.6%
Taylor expanded in y around inf 40.9%
Taylor expanded in a around 0 50.8%
neg-mul-150.8%
distribute-rgt-neg-in50.8%
Simplified50.8%
if -5.99999999999999953e27 < y1 < -7e-45Initial program 35.3%
Taylor expanded in k around inf 42.9%
Taylor expanded in i around inf 47.8%
if -1.79999999999999994e-155 < y1 < -7.99999999999999962e-177Initial program 14.3%
Taylor expanded in j around inf 57.1%
Taylor expanded in t around inf 71.5%
if -7.99999999999999962e-177 < y1 < -6.49999999999999961e-210Initial program 14.0%
Taylor expanded in y2 around inf 50.7%
Taylor expanded in y5 around -inf 63.2%
associate-*r*63.2%
neg-mul-163.2%
Simplified63.2%
if -6.49999999999999961e-210 < y1 < -2.0499999999999999e-302Initial program 28.6%
Taylor expanded in j around inf 57.5%
Taylor expanded in b around inf 71.9%
if -2.0499999999999999e-302 < y1 < 1.16000000000000005e-150Initial program 44.6%
Taylor expanded in y3 around -inf 64.4%
Taylor expanded in y0 around inf 53.2%
if 1.16000000000000005e-150 < y1 < 1.22000000000000006e-85Initial program 41.2%
Taylor expanded in y2 around inf 53.3%
Taylor expanded in t around inf 47.6%
if 1.22000000000000006e-85 < y1 Initial program 28.7%
Taylor expanded in y3 around -inf 49.4%
Taylor expanded in a around -inf 49.8%
mul-1-neg49.8%
Simplified49.8%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (- (* t y2) (* y y3)))))
(if (<= t -1.2e+107)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -1.55e+59)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -1.3e+16)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= t -2.45e-23)
(* y3 (* y0 (- (* j y5) (* z c))))
(if (<= t -1.75e-84)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))
(if (<= t 7e-251)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= t 1.5e-82)
(* a (* y3 (- (* z y1) (* y y5))))
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* z y0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -1.2e+107) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.55e+59) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -1.3e+16) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -2.45e-23) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (t <= -1.75e-84) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 7e-251) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 1.5e-82) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((t * y2) - (y * y3))
if (t <= (-1.2d+107)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-1.55d+59)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-1.3d+16)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (t <= (-2.45d-23)) then
tmp = y3 * (y0 * ((j * y5) - (z * c)))
else if (t <= (-1.75d-84)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
else if (t <= 7d-251) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (t <= 1.5d-82) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -1.2e+107) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.55e+59) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -1.3e+16) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (t <= -2.45e-23) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (t <= -1.75e-84) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 7e-251) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 1.5e-82) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((t * y2) - (y * y3)) tmp = 0 if t <= -1.2e+107: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -1.55e+59: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -1.3e+16: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif t <= -2.45e-23: tmp = y3 * (y0 * ((j * y5) - (z * c))) elif t <= -1.75e-84: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) elif t <= 7e-251: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif t <= 1.5e-82: tmp = a * (y3 * ((z * y1) - (y * y5))) else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (t <= -1.2e+107) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -1.55e+59) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -1.3e+16) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (t <= -2.45e-23) tmp = Float64(y3 * Float64(y0 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (t <= -1.75e-84) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)); elseif (t <= 7e-251) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (t <= 1.5e-82) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (t <= -1.2e+107) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -1.55e+59) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -1.3e+16) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (t <= -2.45e-23) tmp = y3 * (y0 * ((j * y5) - (z * c))); elseif (t <= -1.75e-84) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); elseif (t <= 7e-251) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (t <= 1.5e-82) tmp = a * (y3 * ((z * y1) - (y * y5))); else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e+107], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.55e+59], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.3e+16], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.45e-23], N[(y3 * N[(y0 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.75e-84], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-251], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-82], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+107}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{+59}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{+16}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{-23}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-84}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-251}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-82}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.2e107Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -1.2e107 < t < -1.55000000000000007e59Initial program 42.9%
Taylor expanded in y3 around -inf 43.1%
Taylor expanded in z around inf 86.0%
if -1.55000000000000007e59 < t < -1.3e16Initial program 28.6%
Taylor expanded in y4 around inf 85.7%
if -1.3e16 < t < -2.4499999999999999e-23Initial program 0.0%
Taylor expanded in y3 around -inf 50.0%
Taylor expanded in y0 around inf 75.0%
if -2.4499999999999999e-23 < t < -1.7500000000000001e-84Initial program 50.0%
Taylor expanded in y5 around -inf 62.8%
Taylor expanded in k around 0 75.9%
+-commutative75.9%
mul-1-neg75.9%
unsub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
if -1.7500000000000001e-84 < t < 7.00000000000000069e-251Initial program 35.4%
Taylor expanded in y2 around inf 51.6%
if 7.00000000000000069e-251 < t < 1.4999999999999999e-82Initial program 31.5%
Taylor expanded in y3 around -inf 32.2%
Taylor expanded in a around -inf 46.4%
mul-1-neg46.4%
Simplified46.4%
if 1.4999999999999999e-82 < t Initial program 29.4%
Taylor expanded in y3 around -inf 50.7%
Taylor expanded in c around 0 55.0%
Taylor expanded in j around 0 51.8%
Final simplification56.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (- (* t y2) (* y y3)))))
(if (<= t -7.5e+104)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -7.5e+48)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -5.6e-85)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))
(if (<= t -5.5e-288)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= t 1.03e-224)
(* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))
(if (<= t 2.6e-197)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 2.6e-82)
(* x (* y (- (* a b) (* c i))))
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* z y0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -7.5e+104) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -7.5e+48) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -5.6e-85) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= -5.5e-288) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 1.03e-224) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else if (t <= 2.6e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 2.6e-82) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((t * y2) - (y * y3))
if (t <= (-7.5d+104)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-7.5d+48)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-5.6d-85)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
else if (t <= (-5.5d-288)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (t <= 1.03d-224) then
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
else if (t <= 2.6d-197) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 2.6d-82) then
tmp = x * (y * ((a * b) - (c * i)))
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -7.5e+104) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -7.5e+48) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -5.6e-85) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= -5.5e-288) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (t <= 1.03e-224) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else if (t <= 2.6e-197) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 2.6e-82) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((t * y2) - (y * y3)) tmp = 0 if t <= -7.5e+104: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -7.5e+48: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -5.6e-85: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) elif t <= -5.5e-288: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif t <= 1.03e-224: tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) elif t <= 2.6e-197: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 2.6e-82: tmp = x * (y * ((a * b) - (c * i))) else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (t <= -7.5e+104) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -7.5e+48) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -5.6e-85) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)); elseif (t <= -5.5e-288) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (t <= 1.03e-224) tmp = Float64(b * Float64(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))); elseif (t <= 2.6e-197) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 2.6e-82) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (t <= -7.5e+104) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -7.5e+48) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -5.6e-85) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); elseif (t <= -5.5e-288) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (t <= 1.03e-224) tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); elseif (t <= 2.6e-197) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 2.6e-82) tmp = x * (y * ((a * b) - (c * i))); else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e+104], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e+48], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.6e-85], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.5e-288], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.03e-224], N[(b * N[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-197], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e-82], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+104}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{+48}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -5.6 \cdot 10^{-85}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{-288}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 1.03 \cdot 10^{-224}:\\
\;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-197}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-82}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -7.5000000000000002e104Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -7.5000000000000002e104 < t < -7.5000000000000006e48Initial program 50.0%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in z around inf 75.4%
if -7.5000000000000006e48 < t < -5.60000000000000033e-85Initial program 22.7%
Taylor expanded in y5 around -inf 50.3%
Taylor expanded in k around 0 55.7%
+-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
if -5.60000000000000033e-85 < t < -5.5e-288Initial program 29.1%
Taylor expanded in y2 around inf 58.4%
if -5.5e-288 < t < 1.03e-224Initial program 53.4%
Taylor expanded in y around inf 31.1%
Taylor expanded in b around inf 43.8%
if 1.03e-224 < t < 2.6000000000000001e-197Initial program 0.7%
Taylor expanded in j around inf 78.1%
Taylor expanded in x around inf 78.3%
if 2.6000000000000001e-197 < t < 2.6e-82Initial program 40.8%
Taylor expanded in y around inf 45.7%
Taylor expanded in x around inf 42.3%
if 2.6e-82 < t Initial program 29.7%
Taylor expanded in y3 around -inf 51.2%
Taylor expanded in c around 0 55.5%
Taylor expanded in j around 0 52.3%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.1e+22)
(* j (* x (- (* i y1) (* b y0))))
(if (<= i -3.3e-174)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= i 4.4e-157)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) (* a (- (* t y2) (* y y3)))))
(if (<= i 1.8e+90)
(*
y3
(+ (* y (- (* c y4) (* a y5))) (- (* a (* z y1)) (* c (* z y0)))))
(if (<= i 3.6e+156)
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 (- (* a y5) (* c y4)))))
(if (<= i 1.1e+188)
(* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))
(* i (* j (- (* x y1) (* 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 (i <= -2.1e+22) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (i <= -3.3e-174) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (i <= 4.4e-157) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3))));
} else if (i <= 1.8e+90) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
} else if (i <= 3.6e+156) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
} else if (i <= 1.1e+188) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else {
tmp = i * (j * ((x * y1) - (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 (i <= (-2.1d+22)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (i <= (-3.3d-174)) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (i <= 4.4d-157) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3))))
else if (i <= 1.8d+90) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
else if (i <= 3.6d+156) then
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))))
else if (i <= 1.1d+188) then
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
else
tmp = i * (j * ((x * y1) - (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 (i <= -2.1e+22) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (i <= -3.3e-174) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (i <= 4.4e-157) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3))));
} else if (i <= 1.8e+90) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
} else if (i <= 3.6e+156) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
} else if (i <= 1.1e+188) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else {
tmp = i * (j * ((x * y1) - (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 i <= -2.1e+22: tmp = j * (x * ((i * y1) - (b * y0))) elif i <= -3.3e-174: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif i <= 4.4e-157: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3)))) elif i <= 1.8e+90: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) elif i <= 3.6e+156: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))) elif i <= 1.1e+188: tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) else: tmp = i * (j * ((x * y1) - (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 (i <= -2.1e+22) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (i <= -3.3e-174) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (i <= 4.4e-157) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + Float64(a * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (i <= 1.8e+90) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); elseif (i <= 3.6e+156) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (i <= 1.1e+188) tmp = Float64(b * Float64(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))); else tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - 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 (i <= -2.1e+22) tmp = j * (x * ((i * y1) - (b * y0))); elseif (i <= -3.3e-174) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (i <= 4.4e-157) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3)))); elseif (i <= 1.8e+90) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); elseif (i <= 3.6e+156) tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))); elseif (i <= 1.1e+188) tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); else tmp = i * (j * ((x * y1) - (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[i, -2.1e+22], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.3e-174], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.4e-157], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+90], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e+156], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.1e+188], N[(b * N[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.1 \cdot 10^{+22}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq -3.3 \cdot 10^{-174}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq 4.4 \cdot 10^{-157}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+90}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{+156}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{+188}:\\
\;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\end{array}
\end{array}
if i < -2.0999999999999998e22Initial program 19.8%
Taylor expanded in j around inf 39.8%
Taylor expanded in x around inf 51.5%
if -2.0999999999999998e22 < i < -3.3000000000000001e-174Initial program 48.9%
Taylor expanded in c around inf 54.0%
if -3.3000000000000001e-174 < i < 4.4000000000000002e-157Initial program 38.6%
Taylor expanded in y5 around -inf 43.6%
Taylor expanded in k around 0 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 4.4000000000000002e-157 < i < 1.8e90Initial program 23.3%
Taylor expanded in y3 around -inf 48.2%
Taylor expanded in c around 0 54.7%
Taylor expanded in j around 0 59.0%
if 1.8e90 < i < 3.59999999999999979e156Initial program 28.6%
Taylor expanded in t around inf 85.9%
if 3.59999999999999979e156 < i < 1.09999999999999999e188Initial program 16.4%
Taylor expanded in y around inf 33.1%
Taylor expanded in b around inf 67.3%
if 1.09999999999999999e188 < i Initial program 16.7%
Taylor expanded in j around inf 46.2%
Taylor expanded in i around -inf 55.1%
mul-1-neg55.1%
Simplified55.1%
Final simplification56.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (* y4 (- (* k y1) (* t c))))))
(if (<= a -6.8e+129)
(* y2 (* x (- (* c y0) (* a y1))))
(if (<= a -1.46e-8)
(* y3 (* y (- (* c y4) (* a y5))))
(if (<= a 1.8e-191)
(* j (* x (- (* i y1) (* b y0))))
(if (<= a 8.8e-39)
t_1
(if (<= a 3.8e+93)
(* i (* k (- (* y y5) (* z y1))))
(if (<= a 2.22e+136)
t_1
(if (or (<= a 1.35e+194) (not (<= a 1.2e+279)))
(* x (* y (- (* a b) (* c i))))
(* t (* y2 (- (* 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 = y2 * (y4 * ((k * y1) - (t * c)));
double tmp;
if (a <= -6.8e+129) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (a <= -1.46e-8) {
tmp = y3 * (y * ((c * y4) - (a * y5)));
} else if (a <= 1.8e-191) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (a <= 8.8e-39) {
tmp = t_1;
} else if (a <= 3.8e+93) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (a <= 2.22e+136) {
tmp = t_1;
} else if ((a <= 1.35e+194) || !(a <= 1.2e+279)) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = t * (y2 * ((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) :: tmp
t_1 = y2 * (y4 * ((k * y1) - (t * c)))
if (a <= (-6.8d+129)) then
tmp = y2 * (x * ((c * y0) - (a * y1)))
else if (a <= (-1.46d-8)) then
tmp = y3 * (y * ((c * y4) - (a * y5)))
else if (a <= 1.8d-191) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (a <= 8.8d-39) then
tmp = t_1
else if (a <= 3.8d+93) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (a <= 2.22d+136) then
tmp = t_1
else if ((a <= 1.35d+194) .or. (.not. (a <= 1.2d+279))) then
tmp = x * (y * ((a * b) - (c * i)))
else
tmp = t * (y2 * ((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 = y2 * (y4 * ((k * y1) - (t * c)));
double tmp;
if (a <= -6.8e+129) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (a <= -1.46e-8) {
tmp = y3 * (y * ((c * y4) - (a * y5)));
} else if (a <= 1.8e-191) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (a <= 8.8e-39) {
tmp = t_1;
} else if (a <= 3.8e+93) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (a <= 2.22e+136) {
tmp = t_1;
} else if ((a <= 1.35e+194) || !(a <= 1.2e+279)) {
tmp = x * (y * ((a * b) - (c * i)));
} else {
tmp = t * (y2 * ((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 = y2 * (y4 * ((k * y1) - (t * c))) tmp = 0 if a <= -6.8e+129: tmp = y2 * (x * ((c * y0) - (a * y1))) elif a <= -1.46e-8: tmp = y3 * (y * ((c * y4) - (a * y5))) elif a <= 1.8e-191: tmp = j * (x * ((i * y1) - (b * y0))) elif a <= 8.8e-39: tmp = t_1 elif a <= 3.8e+93: tmp = i * (k * ((y * y5) - (z * y1))) elif a <= 2.22e+136: tmp = t_1 elif (a <= 1.35e+194) or not (a <= 1.2e+279): tmp = x * (y * ((a * b) - (c * i))) else: tmp = t * (y2 * ((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(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))) tmp = 0.0 if (a <= -6.8e+129) tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (a <= -1.46e-8) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (a <= 1.8e-191) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (a <= 8.8e-39) tmp = t_1; elseif (a <= 3.8e+93) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (a <= 2.22e+136) tmp = t_1; elseif ((a <= 1.35e+194) || !(a <= 1.2e+279)) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(t * Float64(y2 * 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 = y2 * (y4 * ((k * y1) - (t * c))); tmp = 0.0; if (a <= -6.8e+129) tmp = y2 * (x * ((c * y0) - (a * y1))); elseif (a <= -1.46e-8) tmp = y3 * (y * ((c * y4) - (a * y5))); elseif (a <= 1.8e-191) tmp = j * (x * ((i * y1) - (b * y0))); elseif (a <= 8.8e-39) tmp = t_1; elseif (a <= 3.8e+93) tmp = i * (k * ((y * y5) - (z * y1))); elseif (a <= 2.22e+136) tmp = t_1; elseif ((a <= 1.35e+194) || ~((a <= 1.2e+279))) tmp = x * (y * ((a * b) - (c * i))); else tmp = t * (y2 * ((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[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e+129], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.46e-8], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-191], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e-39], t$95$1, If[LessEqual[a, 3.8e+93], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.22e+136], t$95$1, If[Or[LessEqual[a, 1.35e+194], N[Not[LessEqual[a, 1.2e+279]], $MachinePrecision]], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{+129}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -1.46 \cdot 10^{-8}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-191}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+93}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 2.22 \cdot 10^{+136}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+194} \lor \neg \left(a \leq 1.2 \cdot 10^{+279}\right):\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if a < -6.80000000000000036e129Initial program 29.1%
Taylor expanded in y2 around inf 44.8%
Taylor expanded in x around inf 49.5%
if -6.80000000000000036e129 < a < -1.46e-8Initial program 40.2%
Taylor expanded in y3 around -inf 41.3%
Taylor expanded in y around inf 44.8%
if -1.46e-8 < a < 1.8000000000000001e-191Initial program 32.7%
Taylor expanded in j around inf 47.4%
Taylor expanded in x around inf 40.3%
if 1.8000000000000001e-191 < a < 8.80000000000000003e-39 or 3.7999999999999998e93 < a < 2.22000000000000011e136Initial program 23.5%
Taylor expanded in y2 around inf 44.8%
Taylor expanded in y4 around inf 45.6%
if 8.80000000000000003e-39 < a < 3.7999999999999998e93Initial program 30.3%
Taylor expanded in k around inf 50.1%
Taylor expanded in i around inf 50.5%
if 2.22000000000000011e136 < a < 1.3500000000000001e194 or 1.2e279 < a Initial program 31.9%
Taylor expanded in y around inf 47.9%
Taylor expanded in x around inf 60.7%
if 1.3500000000000001e194 < a < 1.2e279Initial program 13.3%
Taylor expanded in y2 around inf 40.0%
Taylor expanded in t around inf 60.9%
Final simplification47.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3)))))
(t_2 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -1.45e+80)
t_2
(if (<= x -5.2e-265)
t_1
(if (<= x -2.2e-278)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= x 4.6e-245)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= x 7.5e-100)
(* j (* t (- (* b y4) (* i y5))))
(if (<= x 3.3e+59)
t_1
(if (or (<= x 1.2e+152) (not (<= x 1.35e+271)))
t_2
(* y2 (* x (- (* 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 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -1.45e+80) {
tmp = t_2;
} else if (x <= -5.2e-265) {
tmp = t_1;
} else if (x <= -2.2e-278) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (x <= 4.6e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 7.5e-100) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 3.3e+59) {
tmp = t_1;
} else if ((x <= 1.2e+152) || !(x <= 1.35e+271)) {
tmp = t_2;
} else {
tmp = y2 * (x * ((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 = y1 * (y4 * ((k * y2) - (j * y3)))
t_2 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-1.45d+80)) then
tmp = t_2
else if (x <= (-5.2d-265)) then
tmp = t_1
else if (x <= (-2.2d-278)) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (x <= 4.6d-245) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (x <= 7.5d-100) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (x <= 3.3d+59) then
tmp = t_1
else if ((x <= 1.2d+152) .or. (.not. (x <= 1.35d+271))) then
tmp = t_2
else
tmp = y2 * (x * ((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 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -1.45e+80) {
tmp = t_2;
} else if (x <= -5.2e-265) {
tmp = t_1;
} else if (x <= -2.2e-278) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (x <= 4.6e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 7.5e-100) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 3.3e+59) {
tmp = t_1;
} else if ((x <= 1.2e+152) || !(x <= 1.35e+271)) {
tmp = t_2;
} else {
tmp = y2 * (x * ((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 = y1 * (y4 * ((k * y2) - (j * y3))) t_2 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -1.45e+80: tmp = t_2 elif x <= -5.2e-265: tmp = t_1 elif x <= -2.2e-278: tmp = c * (y3 * ((y * y4) - (z * y0))) elif x <= 4.6e-245: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif x <= 7.5e-100: tmp = j * (t * ((b * y4) - (i * y5))) elif x <= 3.3e+59: tmp = t_1 elif (x <= 1.2e+152) or not (x <= 1.35e+271): tmp = t_2 else: tmp = y2 * (x * ((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(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -1.45e+80) tmp = t_2; elseif (x <= -5.2e-265) tmp = t_1; elseif (x <= -2.2e-278) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (x <= 4.6e-245) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (x <= 7.5e-100) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (x <= 3.3e+59) tmp = t_1; elseif ((x <= 1.2e+152) || !(x <= 1.35e+271)) tmp = t_2; else tmp = Float64(y2 * Float64(x * 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 = y1 * (y4 * ((k * y2) - (j * y3))); t_2 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -1.45e+80) tmp = t_2; elseif (x <= -5.2e-265) tmp = t_1; elseif (x <= -2.2e-278) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (x <= 4.6e-245) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (x <= 7.5e-100) tmp = j * (t * ((b * y4) - (i * y5))); elseif (x <= 3.3e+59) tmp = t_1; elseif ((x <= 1.2e+152) || ~((x <= 1.35e+271))) tmp = t_2; else tmp = y2 * (x * ((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[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.45e+80], t$95$2, If[LessEqual[x, -5.2e-265], t$95$1, If[LessEqual[x, -2.2e-278], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-245], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e-100], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e+59], t$95$1, If[Or[LessEqual[x, 1.2e+152], N[Not[LessEqual[x, 1.35e+271]], $MachinePrecision]], t$95$2, N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -1.45 \cdot 10^{+80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-278}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-245}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-100}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+152} \lor \neg \left(x \leq 1.35 \cdot 10^{+271}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -1.44999999999999993e80 or 3.2999999999999999e59 < x < 1.2e152 or 1.34999999999999995e271 < x Initial program 19.8%
Taylor expanded in j around inf 50.0%
Taylor expanded in x around inf 54.1%
if -1.44999999999999993e80 < x < -5.2000000000000002e-265 or 7.50000000000000015e-100 < x < 3.2999999999999999e59Initial program 36.1%
Taylor expanded in y around inf 39.7%
Taylor expanded in y1 around inf 38.3%
if -5.2000000000000002e-265 < x < -2.2000000000000001e-278Initial program 40.0%
Taylor expanded in y3 around -inf 40.2%
Taylor expanded in c around inf 81.1%
if -2.2000000000000001e-278 < x < 4.6000000000000003e-245Initial program 38.7%
Taylor expanded in y2 around inf 58.0%
Taylor expanded in k around inf 49.0%
if 4.6000000000000003e-245 < x < 7.50000000000000015e-100Initial program 33.3%
Taylor expanded in j around inf 43.8%
Taylor expanded in t around inf 47.5%
if 1.2e152 < x < 1.34999999999999995e271Initial program 27.3%
Taylor expanded in y2 around inf 59.1%
Taylor expanded in x around inf 60.2%
Final simplification48.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3)))))
(t_2 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -3.5e+78)
t_2
(if (<= x -7.6e-200)
t_1
(if (<= x -1.65e-281)
(* y3 (* y (* c y4)))
(if (<= x 3.6e-245)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= x 2.8e-99)
(* j (* t (- (* b y4) (* i y5))))
(if (<= x 7e+60)
t_1
(if (or (<= x 8.2e+151) (not (<= x 2.1e+270)))
t_2
(* y2 (* x (- (* 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 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -3.5e+78) {
tmp = t_2;
} else if (x <= -7.6e-200) {
tmp = t_1;
} else if (x <= -1.65e-281) {
tmp = y3 * (y * (c * y4));
} else if (x <= 3.6e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 2.8e-99) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 7e+60) {
tmp = t_1;
} else if ((x <= 8.2e+151) || !(x <= 2.1e+270)) {
tmp = t_2;
} else {
tmp = y2 * (x * ((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 = y1 * (y4 * ((k * y2) - (j * y3)))
t_2 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-3.5d+78)) then
tmp = t_2
else if (x <= (-7.6d-200)) then
tmp = t_1
else if (x <= (-1.65d-281)) then
tmp = y3 * (y * (c * y4))
else if (x <= 3.6d-245) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (x <= 2.8d-99) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (x <= 7d+60) then
tmp = t_1
else if ((x <= 8.2d+151) .or. (.not. (x <= 2.1d+270))) then
tmp = t_2
else
tmp = y2 * (x * ((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 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -3.5e+78) {
tmp = t_2;
} else if (x <= -7.6e-200) {
tmp = t_1;
} else if (x <= -1.65e-281) {
tmp = y3 * (y * (c * y4));
} else if (x <= 3.6e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 2.8e-99) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 7e+60) {
tmp = t_1;
} else if ((x <= 8.2e+151) || !(x <= 2.1e+270)) {
tmp = t_2;
} else {
tmp = y2 * (x * ((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 = y1 * (y4 * ((k * y2) - (j * y3))) t_2 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -3.5e+78: tmp = t_2 elif x <= -7.6e-200: tmp = t_1 elif x <= -1.65e-281: tmp = y3 * (y * (c * y4)) elif x <= 3.6e-245: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif x <= 2.8e-99: tmp = j * (t * ((b * y4) - (i * y5))) elif x <= 7e+60: tmp = t_1 elif (x <= 8.2e+151) or not (x <= 2.1e+270): tmp = t_2 else: tmp = y2 * (x * ((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(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -3.5e+78) tmp = t_2; elseif (x <= -7.6e-200) tmp = t_1; elseif (x <= -1.65e-281) tmp = Float64(y3 * Float64(y * Float64(c * y4))); elseif (x <= 3.6e-245) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (x <= 2.8e-99) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (x <= 7e+60) tmp = t_1; elseif ((x <= 8.2e+151) || !(x <= 2.1e+270)) tmp = t_2; else tmp = Float64(y2 * Float64(x * 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 = y1 * (y4 * ((k * y2) - (j * y3))); t_2 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -3.5e+78) tmp = t_2; elseif (x <= -7.6e-200) tmp = t_1; elseif (x <= -1.65e-281) tmp = y3 * (y * (c * y4)); elseif (x <= 3.6e-245) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (x <= 2.8e-99) tmp = j * (t * ((b * y4) - (i * y5))); elseif (x <= 7e+60) tmp = t_1; elseif ((x <= 8.2e+151) || ~((x <= 2.1e+270))) tmp = t_2; else tmp = y2 * (x * ((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[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.5e+78], t$95$2, If[LessEqual[x, -7.6e-200], t$95$1, If[LessEqual[x, -1.65e-281], N[(y3 * N[(y * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.6e-245], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e-99], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e+60], t$95$1, If[Or[LessEqual[x, 8.2e+151], N[Not[LessEqual[x, 2.1e+270]], $MachinePrecision]], t$95$2, N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -3.5 \cdot 10^{+78}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -7.6 \cdot 10^{-200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-281}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-245}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{-99}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+151} \lor \neg \left(x \leq 2.1 \cdot 10^{+270}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -3.5000000000000001e78 or 7.0000000000000004e60 < x < 8.1999999999999996e151 or 2.1000000000000001e270 < x Initial program 19.6%
Taylor expanded in j around inf 49.4%
Taylor expanded in x around inf 53.5%
if -3.5000000000000001e78 < x < -7.6000000000000001e-200 or 2.8000000000000001e-99 < x < 7.0000000000000004e60Initial program 36.8%
Taylor expanded in y around inf 39.7%
Taylor expanded in y1 around inf 39.1%
if -7.6000000000000001e-200 < x < -1.65e-281Initial program 31.3%
Taylor expanded in y3 around -inf 50.1%
Taylor expanded in y around inf 44.3%
Taylor expanded in a around 0 45.1%
neg-mul-145.1%
distribute-rgt-neg-in45.1%
Simplified45.1%
if -1.65e-281 < x < 3.59999999999999999e-245Initial program 40.6%
Taylor expanded in y2 around inf 55.9%
Taylor expanded in k around inf 51.2%
if 3.59999999999999999e-245 < x < 2.8000000000000001e-99Initial program 33.3%
Taylor expanded in j around inf 43.8%
Taylor expanded in t around inf 47.5%
if 8.1999999999999996e151 < x < 2.1000000000000001e270Initial program 28.6%
Taylor expanded in y2 around inf 62.0%
Taylor expanded in x around inf 63.1%
Final simplification47.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y3 (- (* z y1) (* y y5))))))
(if (<= y4 -4e+230)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -3.15e+130)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y4 -1.25e+19)
(* y3 (* y (- (* c y4) (* a y5))))
(if (<= y4 -3.15e-52)
(* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))
(if (<= y4 -9.5e-197)
(*
y5
(+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= y4 6e-302)
t_1
(if (<= y4 2.05e-230)
(* y3 (* y0 (- (* j y5) (* z c))))
(if (<= y4 5.8e+66)
t_1
(* y1 (* y4 (- (* 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 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (y4 <= -4e+230) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -3.15e+130) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y4 <= -1.25e+19) {
tmp = y3 * (y * ((c * y4) - (a * y5)));
} else if (y4 <= -3.15e-52) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else if (y4 <= -9.5e-197) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (y4 <= 6e-302) {
tmp = t_1;
} else if (y4 <= 2.05e-230) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y4 <= 5.8e+66) {
tmp = t_1;
} else {
tmp = y1 * (y4 * ((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 = a * (y3 * ((z * y1) - (y * y5)))
if (y4 <= (-4d+230)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-3.15d+130)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y4 <= (-1.25d+19)) then
tmp = y3 * (y * ((c * y4) - (a * y5)))
else if (y4 <= (-3.15d-52)) then
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
else if (y4 <= (-9.5d-197)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (y4 <= 6d-302) then
tmp = t_1
else if (y4 <= 2.05d-230) then
tmp = y3 * (y0 * ((j * y5) - (z * c)))
else if (y4 <= 5.8d+66) then
tmp = t_1
else
tmp = y1 * (y4 * ((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 = a * (y3 * ((z * y1) - (y * y5)));
double tmp;
if (y4 <= -4e+230) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -3.15e+130) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y4 <= -1.25e+19) {
tmp = y3 * (y * ((c * y4) - (a * y5)));
} else if (y4 <= -3.15e-52) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else if (y4 <= -9.5e-197) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (y4 <= 6e-302) {
tmp = t_1;
} else if (y4 <= 2.05e-230) {
tmp = y3 * (y0 * ((j * y5) - (z * c)));
} else if (y4 <= 5.8e+66) {
tmp = t_1;
} else {
tmp = y1 * (y4 * ((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 = a * (y3 * ((z * y1) - (y * y5))) tmp = 0 if y4 <= -4e+230: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -3.15e+130: tmp = k * (z * ((b * y0) - (i * y1))) elif y4 <= -1.25e+19: tmp = y3 * (y * ((c * y4) - (a * y5))) elif y4 <= -3.15e-52: tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) elif y4 <= -9.5e-197: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif y4 <= 6e-302: tmp = t_1 elif y4 <= 2.05e-230: tmp = y3 * (y0 * ((j * y5) - (z * c))) elif y4 <= 5.8e+66: tmp = t_1 else: tmp = y1 * (y4 * ((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(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))) tmp = 0.0 if (y4 <= -4e+230) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -3.15e+130) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y4 <= -1.25e+19) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y4 <= -3.15e-52) tmp = Float64(b * Float64(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))); elseif (y4 <= -9.5e-197) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (y4 <= 6e-302) tmp = t_1; elseif (y4 <= 2.05e-230) tmp = Float64(y3 * Float64(y0 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (y4 <= 5.8e+66) tmp = t_1; else tmp = Float64(y1 * Float64(y4 * 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 = a * (y3 * ((z * y1) - (y * y5))); tmp = 0.0; if (y4 <= -4e+230) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -3.15e+130) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y4 <= -1.25e+19) tmp = y3 * (y * ((c * y4) - (a * y5))); elseif (y4 <= -3.15e-52) tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); elseif (y4 <= -9.5e-197) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (y4 <= 6e-302) tmp = t_1; elseif (y4 <= 2.05e-230) tmp = y3 * (y0 * ((j * y5) - (z * c))); elseif (y4 <= 5.8e+66) tmp = t_1; else tmp = y1 * (y4 * ((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[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4e+230], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.15e+130], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.25e+19], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.15e-52], N[(b * N[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9.5e-197], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6e-302], t$95$1, If[LessEqual[y4, 2.05e-230], N[(y3 * N[(y0 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.8e+66], t$95$1, N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{if}\;y4 \leq -4 \cdot 10^{+230}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -3.15 \cdot 10^{+130}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq -1.25 \cdot 10^{+19}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq -3.15 \cdot 10^{-52}:\\
\;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -9.5 \cdot 10^{-197}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 6 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 2.05 \cdot 10^{-230}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq 5.8 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -4.0000000000000004e230Initial program 18.2%
Taylor expanded in y2 around inf 54.5%
Taylor expanded in y4 around inf 81.9%
if -4.0000000000000004e230 < y4 < -3.15e130Initial program 16.7%
Taylor expanded in k around inf 42.0%
Taylor expanded in z around inf 55.1%
if -3.15e130 < y4 < -1.25e19Initial program 27.8%
Taylor expanded in y3 around -inf 77.8%
Taylor expanded in y around inf 61.5%
if -1.25e19 < y4 < -3.1500000000000002e-52Initial program 39.9%
Taylor expanded in y around inf 35.5%
Taylor expanded in b around inf 55.5%
if -3.1500000000000002e-52 < y4 < -9.5000000000000003e-197Initial program 46.6%
Taylor expanded in y5 around -inf 51.2%
Taylor expanded in i around 0 58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
if -9.5000000000000003e-197 < y4 < 5.99999999999999978e-302 or 2.0500000000000001e-230 < y4 < 5.79999999999999972e66Initial program 28.0%
Taylor expanded in y3 around -inf 48.2%
Taylor expanded in a around -inf 43.5%
mul-1-neg43.5%
Simplified43.5%
if 5.99999999999999978e-302 < y4 < 2.0500000000000001e-230Initial program 42.1%
Taylor expanded in y3 around -inf 59.8%
Taylor expanded in y0 around inf 69.1%
if 5.79999999999999972e66 < y4 Initial program 24.2%
Taylor expanded in y around inf 36.7%
Taylor expanded in y1 around inf 52.4%
Final simplification53.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (* x (- (* c y0) (* a y1)))))
(t_2 (* y2 (* y4 (- (* k y1) (* t c))))))
(if (<= a -9e+129)
t_1
(if (<= a -1.16e-7)
(* y3 (* y (- (* c y4) (* a y5))))
(if (<= a 3.3e-191)
(* j (* x (- (* i y1) (* b y0))))
(if (<= a 2.55e-42)
t_2
(if (<= a 6.8e+95)
(* i (* k (- (* y y5) (* z y1))))
(if (<= a 3.7e+136)
t_2
(if (<= a 1.05e+211)
(* x (* y (- (* a b) (* c i))))
(if (<= a 7e+273)
(* (* y1 y3) (- (* z a) (* j y4)))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * (x * ((c * y0) - (a * y1)));
double t_2 = y2 * (y4 * ((k * y1) - (t * c)));
double tmp;
if (a <= -9e+129) {
tmp = t_1;
} else if (a <= -1.16e-7) {
tmp = y3 * (y * ((c * y4) - (a * y5)));
} else if (a <= 3.3e-191) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (a <= 2.55e-42) {
tmp = t_2;
} else if (a <= 6.8e+95) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (a <= 3.7e+136) {
tmp = t_2;
} else if (a <= 1.05e+211) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (a <= 7e+273) {
tmp = (y1 * y3) * ((z * a) - (j * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y2 * (x * ((c * y0) - (a * y1)))
t_2 = y2 * (y4 * ((k * y1) - (t * c)))
if (a <= (-9d+129)) then
tmp = t_1
else if (a <= (-1.16d-7)) then
tmp = y3 * (y * ((c * y4) - (a * y5)))
else if (a <= 3.3d-191) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (a <= 2.55d-42) then
tmp = t_2
else if (a <= 6.8d+95) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (a <= 3.7d+136) then
tmp = t_2
else if (a <= 1.05d+211) then
tmp = x * (y * ((a * b) - (c * i)))
else if (a <= 7d+273) then
tmp = (y1 * y3) * ((z * a) - (j * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * (x * ((c * y0) - (a * y1)));
double t_2 = y2 * (y4 * ((k * y1) - (t * c)));
double tmp;
if (a <= -9e+129) {
tmp = t_1;
} else if (a <= -1.16e-7) {
tmp = y3 * (y * ((c * y4) - (a * y5)));
} else if (a <= 3.3e-191) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (a <= 2.55e-42) {
tmp = t_2;
} else if (a <= 6.8e+95) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (a <= 3.7e+136) {
tmp = t_2;
} else if (a <= 1.05e+211) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (a <= 7e+273) {
tmp = (y1 * y3) * ((z * a) - (j * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y2 * (x * ((c * y0) - (a * y1))) t_2 = y2 * (y4 * ((k * y1) - (t * c))) tmp = 0 if a <= -9e+129: tmp = t_1 elif a <= -1.16e-7: tmp = y3 * (y * ((c * y4) - (a * y5))) elif a <= 3.3e-191: tmp = j * (x * ((i * y1) - (b * y0))) elif a <= 2.55e-42: tmp = t_2 elif a <= 6.8e+95: tmp = i * (k * ((y * y5) - (z * y1))) elif a <= 3.7e+136: tmp = t_2 elif a <= 1.05e+211: tmp = x * (y * ((a * b) - (c * i))) elif a <= 7e+273: tmp = (y1 * y3) * ((z * a) - (j * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) t_2 = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))) tmp = 0.0 if (a <= -9e+129) tmp = t_1; elseif (a <= -1.16e-7) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (a <= 3.3e-191) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (a <= 2.55e-42) tmp = t_2; elseif (a <= 6.8e+95) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (a <= 3.7e+136) tmp = t_2; elseif (a <= 1.05e+211) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (a <= 7e+273) tmp = Float64(Float64(y1 * y3) * Float64(Float64(z * a) - Float64(j * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y2 * (x * ((c * y0) - (a * y1))); t_2 = y2 * (y4 * ((k * y1) - (t * c))); tmp = 0.0; if (a <= -9e+129) tmp = t_1; elseif (a <= -1.16e-7) tmp = y3 * (y * ((c * y4) - (a * y5))); elseif (a <= 3.3e-191) tmp = j * (x * ((i * y1) - (b * y0))); elseif (a <= 2.55e-42) tmp = t_2; elseif (a <= 6.8e+95) tmp = i * (k * ((y * y5) - (z * y1))); elseif (a <= 3.7e+136) tmp = t_2; elseif (a <= 1.05e+211) tmp = x * (y * ((a * b) - (c * i))); elseif (a <= 7e+273) tmp = (y1 * y3) * ((z * a) - (j * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e+129], t$95$1, If[LessEqual[a, -1.16e-7], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-191], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.55e-42], t$95$2, If[LessEqual[a, 6.8e+95], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.7e+136], t$95$2, If[LessEqual[a, 1.05e+211], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+273], N[(N[(y1 * y3), $MachinePrecision] * N[(N[(z * a), $MachinePrecision] - N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
t_2 := y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{if}\;a \leq -9 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.16 \cdot 10^{-7}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-191}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{-42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{+136}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+211}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+273}:\\
\;\;\;\;\left(y1 \cdot y3\right) \cdot \left(z \cdot a - j \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.0000000000000003e129 or 7.00000000000000022e273 < a Initial program 25.6%
Taylor expanded in y2 around inf 49.4%
Taylor expanded in x around inf 51.8%
if -9.0000000000000003e129 < a < -1.1600000000000001e-7Initial program 40.2%
Taylor expanded in y3 around -inf 41.3%
Taylor expanded in y around inf 44.8%
if -1.1600000000000001e-7 < a < 3.29999999999999981e-191Initial program 32.7%
Taylor expanded in j around inf 47.4%
Taylor expanded in x around inf 40.3%
if 3.29999999999999981e-191 < a < 2.55e-42 or 6.80000000000000043e95 < a < 3.7000000000000001e136Initial program 23.5%
Taylor expanded in y2 around inf 44.8%
Taylor expanded in y4 around inf 45.6%
if 2.55e-42 < a < 6.80000000000000043e95Initial program 30.3%
Taylor expanded in k around inf 50.1%
Taylor expanded in i around inf 50.5%
if 3.7000000000000001e136 < a < 1.05e211Initial program 38.0%
Taylor expanded in y around inf 57.1%
Taylor expanded in x around inf 57.8%
if 1.05e211 < a < 7.00000000000000022e273Initial program 11.1%
Taylor expanded in y3 around -inf 66.7%
Taylor expanded in c around 0 77.8%
Taylor expanded in y1 around inf 77.9%
associate-*r*78.0%
*-commutative78.0%
+-commutative78.0%
mul-1-neg78.0%
unsub-neg78.0%
Simplified78.0%
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 (* a (- (* t y2) (* y y3)))))
(if (<= t -2.15e+105)
(* y5 (+ t_1 (* y0 (- (* j y3) (* k y2)))))
(if (<= t -1.45e+52)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= t -1.4e-202)
(* y5 (+ (- (* j (* y0 y3)) (* i (* t j))) t_1))
(if (<= t 3.2e-251)
(* y2 (* x (- (* c y0) (* a y1))))
(if (<= t 5.8e-83)
(* a (* y3 (- (* z y1) (* y y5))))
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* a (* z y1)) (* c (* z y0))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -2.15e+105) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.45e+52) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -1.4e-202) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 3.2e-251) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (t <= 5.8e-83) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((t * y2) - (y * y3))
if (t <= (-2.15d+105)) then
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))))
else if (t <= (-1.45d+52)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (t <= (-1.4d-202)) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1)
else if (t <= 3.2d-251) then
tmp = y2 * (x * ((c * y0) - (a * y1)))
else if (t <= 5.8d-83) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((t * y2) - (y * y3));
double tmp;
if (t <= -2.15e+105) {
tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2))));
} else if (t <= -1.45e+52) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (t <= -1.4e-202) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1);
} else if (t <= 3.2e-251) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (t <= 5.8e-83) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((t * y2) - (y * y3)) tmp = 0 if t <= -2.15e+105: tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))) elif t <= -1.45e+52: tmp = y3 * (z * ((a * y1) - (c * y0))) elif t <= -1.4e-202: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1) elif t <= 3.2e-251: tmp = y2 * (x * ((c * y0) - (a * y1))) elif t <= 5.8e-83: tmp = a * (y3 * ((z * y1) - (y * y5))) else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (t <= -2.15e+105) tmp = Float64(y5 * Float64(t_1 + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (t <= -1.45e+52) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (t <= -1.4e-202) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + t_1)); elseif (t <= 3.2e-251) tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (t <= 5.8e-83) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(a * Float64(z * y1)) - Float64(c * Float64(z * y0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * ((t * y2) - (y * y3)); tmp = 0.0; if (t <= -2.15e+105) tmp = y5 * (t_1 + (y0 * ((j * y3) - (k * y2)))); elseif (t <= -1.45e+52) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (t <= -1.4e-202) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + t_1); elseif (t <= 3.2e-251) tmp = y2 * (x * ((c * y0) - (a * y1))); elseif (t <= 5.8e-83) tmp = a * (y3 * ((z * y1) - (y * y5))); else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((a * (z * y1)) - (c * (z * y0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.15e+105], N[(y5 * N[(t$95$1 + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.45e+52], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.4e-202], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-251], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-83], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(z * y1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;t \leq -2.15 \cdot 10^{+105}:\\
\;\;\;\;y5 \cdot \left(t\_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{+52}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-202}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + t\_1\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-251}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-83}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(a \cdot \left(z \cdot y1\right) - c \cdot \left(z \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if t < -2.1500000000000001e105Initial program 23.8%
Taylor expanded in y5 around -inf 59.9%
Taylor expanded in i around 0 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
if -2.1500000000000001e105 < t < -1.45e52Initial program 50.0%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in z around inf 75.4%
if -1.45e52 < t < -1.4000000000000001e-202Initial program 24.1%
Taylor expanded in y5 around -inf 42.2%
Taylor expanded in k around 0 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
if -1.4000000000000001e-202 < t < 3.19999999999999982e-251Initial program 42.7%
Taylor expanded in y2 around inf 55.3%
Taylor expanded in x around inf 43.4%
if 3.19999999999999982e-251 < t < 5.7999999999999998e-83Initial program 31.5%
Taylor expanded in y3 around -inf 32.2%
Taylor expanded in a around -inf 46.4%
mul-1-neg46.4%
Simplified46.4%
if 5.7999999999999998e-83 < t Initial program 29.4%
Taylor expanded in y3 around -inf 50.7%
Taylor expanded in c around 0 55.0%
Taylor expanded in j around 0 51.8%
Final simplification51.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y2 -7.5e+44)
t_2
(if (<= y2 -3.1e-154)
t_1
(if (<= y2 1.85e-304)
(* a (* y3 (- (* z y1) (* y y5))))
(if (<= y2 2.4e-178)
t_1
(if (<= y2 8.5e-33)
(* x (* y (- (* a b) (* c i))))
(if (<= y2 3.6e+110)
(* b (+ (* (* x y) a) (* y4 (- (* t j) (* y k)))))
t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -7.5e+44) {
tmp = t_2;
} else if (y2 <= -3.1e-154) {
tmp = t_1;
} else if (y2 <= 1.85e-304) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else if (y2 <= 2.4e-178) {
tmp = t_1;
} else if (y2 <= 8.5e-33) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y2 <= 3.6e+110) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y2 <= (-7.5d+44)) then
tmp = t_2
else if (y2 <= (-3.1d-154)) then
tmp = t_1
else if (y2 <= 1.85d-304) then
tmp = a * (y3 * ((z * y1) - (y * y5)))
else if (y2 <= 2.4d-178) then
tmp = t_1
else if (y2 <= 8.5d-33) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y2 <= 3.6d+110) then
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double t_2 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y2 <= -7.5e+44) {
tmp = t_2;
} else if (y2 <= -3.1e-154) {
tmp = t_1;
} else if (y2 <= 1.85e-304) {
tmp = a * (y3 * ((z * y1) - (y * y5)));
} else if (y2 <= 2.4e-178) {
tmp = t_1;
} else if (y2 <= 8.5e-33) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y2 <= 3.6e+110) {
tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (x * ((i * y1) - (b * y0))) t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y2 <= -7.5e+44: tmp = t_2 elif y2 <= -3.1e-154: tmp = t_1 elif y2 <= 1.85e-304: tmp = a * (y3 * ((z * y1) - (y * y5))) elif y2 <= 2.4e-178: tmp = t_1 elif y2 <= 8.5e-33: tmp = x * (y * ((a * b) - (c * i))) elif y2 <= 3.6e+110: tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y2 <= -7.5e+44) tmp = t_2; elseif (y2 <= -3.1e-154) tmp = t_1; elseif (y2 <= 1.85e-304) tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (y2 <= 2.4e-178) tmp = t_1; elseif (y2 <= 8.5e-33) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y2 <= 3.6e+110) tmp = Float64(b * Float64(Float64(Float64(x * y) * a) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (x * ((i * y1) - (b * y0))); t_2 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y2 <= -7.5e+44) tmp = t_2; elseif (y2 <= -3.1e-154) tmp = t_1; elseif (y2 <= 1.85e-304) tmp = a * (y3 * ((z * y1) - (y * y5))); elseif (y2 <= 2.4e-178) tmp = t_1; elseif (y2 <= 8.5e-33) tmp = x * (y * ((a * b) - (c * i))); elseif (y2 <= 3.6e+110) tmp = b * (((x * y) * a) + (y4 * ((t * j) - (y * k)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -7.5e+44], t$95$2, If[LessEqual[y2, -3.1e-154], t$95$1, If[LessEqual[y2, 1.85e-304], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.4e-178], t$95$1, If[LessEqual[y2, 8.5e-33], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e+110], N[(b * N[(N[(N[(x * y), $MachinePrecision] * a), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -7.5 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -3.1 \cdot 10^{-154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.85 \cdot 10^{-304}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{-178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 8.5 \cdot 10^{-33}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+110}:\\
\;\;\;\;b \cdot \left(\left(x \cdot y\right) \cdot a + y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y2 < -7.50000000000000027e44 or 3.5999999999999997e110 < y2 Initial program 27.1%
Taylor expanded in y2 around inf 56.3%
Taylor expanded in k around inf 50.4%
if -7.50000000000000027e44 < y2 < -3.09999999999999982e-154 or 1.8500000000000001e-304 < y2 < 2.40000000000000005e-178Initial program 31.3%
Taylor expanded in j around inf 41.5%
Taylor expanded in x around inf 46.8%
if -3.09999999999999982e-154 < y2 < 1.8500000000000001e-304Initial program 36.3%
Taylor expanded in y3 around -inf 57.6%
Taylor expanded in a around -inf 51.4%
mul-1-neg51.4%
Simplified51.4%
if 2.40000000000000005e-178 < y2 < 8.49999999999999945e-33Initial program 31.9%
Taylor expanded in y around inf 36.4%
Taylor expanded in x around inf 45.1%
if 8.49999999999999945e-33 < y2 < 3.5999999999999997e110Initial program 27.3%
Taylor expanded in y around inf 33.5%
Taylor expanded in b around inf 48.9%
Final simplification49.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (- (* t y4) (* x y0))))))
(if (<= y -1.2e+150)
(* x (* y (* a b)))
(if (<= y -8.4e-72)
t_1
(if (<= y -1.08e-170)
(* y3 (* (* z c) (- y0)))
(if (<= y 4.8e-272)
(* y3 (* y0 (* j y5)))
(if (<= y 15000000.0)
t_1
(if (<= y 2.5e+70)
(* y3 (* y (* c y4)))
(if (<= y 7.6e+92)
(* x (* c (* i (- y))))
(* x (* a (* y b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (y <= -1.2e+150) {
tmp = x * (y * (a * b));
} else if (y <= -8.4e-72) {
tmp = t_1;
} else if (y <= -1.08e-170) {
tmp = y3 * ((z * c) * -y0);
} else if (y <= 4.8e-272) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 15000000.0) {
tmp = t_1;
} else if (y <= 2.5e+70) {
tmp = y3 * (y * (c * y4));
} else if (y <= 7.6e+92) {
tmp = x * (c * (i * -y));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * ((t * y4) - (x * y0)))
if (y <= (-1.2d+150)) then
tmp = x * (y * (a * b))
else if (y <= (-8.4d-72)) then
tmp = t_1
else if (y <= (-1.08d-170)) then
tmp = y3 * ((z * c) * -y0)
else if (y <= 4.8d-272) then
tmp = y3 * (y0 * (j * y5))
else if (y <= 15000000.0d0) then
tmp = t_1
else if (y <= 2.5d+70) then
tmp = y3 * (y * (c * y4))
else if (y <= 7.6d+92) then
tmp = x * (c * (i * -y))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (y <= -1.2e+150) {
tmp = x * (y * (a * b));
} else if (y <= -8.4e-72) {
tmp = t_1;
} else if (y <= -1.08e-170) {
tmp = y3 * ((z * c) * -y0);
} else if (y <= 4.8e-272) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 15000000.0) {
tmp = t_1;
} else if (y <= 2.5e+70) {
tmp = y3 * (y * (c * y4));
} else if (y <= 7.6e+92) {
tmp = x * (c * (i * -y));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * ((t * y4) - (x * y0))) tmp = 0 if y <= -1.2e+150: tmp = x * (y * (a * b)) elif y <= -8.4e-72: tmp = t_1 elif y <= -1.08e-170: tmp = y3 * ((z * c) * -y0) elif y <= 4.8e-272: tmp = y3 * (y0 * (j * y5)) elif y <= 15000000.0: tmp = t_1 elif y <= 2.5e+70: tmp = y3 * (y * (c * y4)) elif y <= 7.6e+92: tmp = x * (c * (i * -y)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))) tmp = 0.0 if (y <= -1.2e+150) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -8.4e-72) tmp = t_1; elseif (y <= -1.08e-170) tmp = Float64(y3 * Float64(Float64(z * c) * Float64(-y0))); elseif (y <= 4.8e-272) tmp = Float64(y3 * Float64(y0 * Float64(j * y5))); elseif (y <= 15000000.0) tmp = t_1; elseif (y <= 2.5e+70) tmp = Float64(y3 * Float64(y * Float64(c * y4))); elseif (y <= 7.6e+92) tmp = Float64(x * Float64(c * Float64(i * Float64(-y)))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * ((t * y4) - (x * y0))); tmp = 0.0; if (y <= -1.2e+150) tmp = x * (y * (a * b)); elseif (y <= -8.4e-72) tmp = t_1; elseif (y <= -1.08e-170) tmp = y3 * ((z * c) * -y0); elseif (y <= 4.8e-272) tmp = y3 * (y0 * (j * y5)); elseif (y <= 15000000.0) tmp = t_1; elseif (y <= 2.5e+70) tmp = y3 * (y * (c * y4)); elseif (y <= 7.6e+92) tmp = x * (c * (i * -y)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.2e+150], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.4e-72], t$95$1, If[LessEqual[y, -1.08e-170], N[(y3 * N[(N[(z * c), $MachinePrecision] * (-y0)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-272], N[(y3 * N[(y0 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 15000000.0], t$95$1, If[LessEqual[y, 2.5e+70], N[(y3 * N[(y * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.6e+92], N[(x * N[(c * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{if}\;y \leq -1.2 \cdot 10^{+150}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -8.4 \cdot 10^{-72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.08 \cdot 10^{-170}:\\
\;\;\;\;y3 \cdot \left(\left(z \cdot c\right) \cdot \left(-y0\right)\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-272}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 15000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+70}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{+92}:\\
\;\;\;\;x \cdot \left(c \cdot \left(i \cdot \left(-y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.20000000000000001e150Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -1.20000000000000001e150 < y < -8.4e-72 or 4.7999999999999998e-272 < y < 1.5e7Initial program 20.9%
Taylor expanded in j around inf 47.8%
Taylor expanded in b around inf 36.9%
if -8.4e-72 < y < -1.08000000000000006e-170Initial program 40.7%
Taylor expanded in y3 around -inf 60.1%
Taylor expanded in y0 around inf 50.5%
Taylor expanded in j around 0 37.2%
*-commutative37.2%
Simplified37.2%
if -1.08000000000000006e-170 < y < 4.7999999999999998e-272Initial program 37.0%
Taylor expanded in y3 around -inf 54.2%
Taylor expanded in y0 around inf 40.6%
Taylor expanded in j around inf 30.8%
neg-mul-130.8%
distribute-rgt-neg-in30.8%
Simplified30.8%
if 1.5e7 < y < 2.5000000000000001e70Initial program 45.5%
Taylor expanded in y3 around -inf 63.7%
Taylor expanded in y around inf 46.5%
Taylor expanded in a around 0 45.9%
neg-mul-145.9%
distribute-rgt-neg-in45.9%
Simplified45.9%
if 2.5000000000000001e70 < y < 7.6000000000000001e92Initial program 25.0%
Taylor expanded in y around inf 75.0%
Taylor expanded in x around inf 75.2%
Taylor expanded in a around 0 75.4%
mul-1-neg75.4%
Simplified75.4%
if 7.6000000000000001e92 < y Initial program 30.7%
Taylor expanded in y around inf 36.9%
Taylor expanded in x around inf 47.4%
Taylor expanded in a around inf 47.3%
Final simplification40.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 -7.2e+184)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y1 -6e+80)
(* y2 (* x (- (* c y0) (* a y1))))
(if (<= y1 -1.85e+69)
(* y3 (* y (* c y4)))
(if (<= y1 1.8e+42)
(*
y5
(+ (- (* j (* y0 y3)) (* i (* t j))) (* a (- (* t y2) (* y y3)))))
(* a (* y3 (- (* z y1) (* y 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 (y1 <= -7.2e+184) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y1 <= -6e+80) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (y1 <= -1.85e+69) {
tmp = y3 * (y * (c * y4));
} else if (y1 <= 1.8e+42) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3))));
} else {
tmp = a * (y3 * ((z * y1) - (y * 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 (y1 <= (-7.2d+184)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y1 <= (-6d+80)) then
tmp = y2 * (x * ((c * y0) - (a * y1)))
else if (y1 <= (-1.85d+69)) then
tmp = y3 * (y * (c * y4))
else if (y1 <= 1.8d+42) then
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3))))
else
tmp = a * (y3 * ((z * y1) - (y * 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 (y1 <= -7.2e+184) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y1 <= -6e+80) {
tmp = y2 * (x * ((c * y0) - (a * y1)));
} else if (y1 <= -1.85e+69) {
tmp = y3 * (y * (c * y4));
} else if (y1 <= 1.8e+42) {
tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3))));
} else {
tmp = a * (y3 * ((z * y1) - (y * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= -7.2e+184: tmp = i * (j * ((x * y1) - (t * y5))) elif y1 <= -6e+80: tmp = y2 * (x * ((c * y0) - (a * y1))) elif y1 <= -1.85e+69: tmp = y3 * (y * (c * y4)) elif y1 <= 1.8e+42: tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3)))) else: tmp = a * (y3 * ((z * y1) - (y * 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 (y1 <= -7.2e+184) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y1 <= -6e+80) tmp = Float64(y2 * Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y1 <= -1.85e+69) tmp = Float64(y3 * Float64(y * Float64(c * y4))); elseif (y1 <= 1.8e+42) tmp = Float64(y5 * Float64(Float64(Float64(j * Float64(y0 * y3)) - Float64(i * Float64(t * j))) + Float64(a * Float64(Float64(t * y2) - Float64(y * y3))))); else tmp = Float64(a * Float64(y3 * Float64(Float64(z * y1) - Float64(y * 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 (y1 <= -7.2e+184) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y1 <= -6e+80) tmp = y2 * (x * ((c * y0) - (a * y1))); elseif (y1 <= -1.85e+69) tmp = y3 * (y * (c * y4)); elseif (y1 <= 1.8e+42) tmp = y5 * (((j * (y0 * y3)) - (i * (t * j))) + (a * ((t * y2) - (y * y3)))); else tmp = a * (y3 * ((z * y1) - (y * 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[y1, -7.2e+184], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -6e+80], N[(y2 * N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -1.85e+69], N[(y3 * N[(y * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e+42], N[(y5 * N[(N[(N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y3 * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -7.2 \cdot 10^{+184}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq -6 \cdot 10^{+80}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y1 \leq -1.85 \cdot 10^{+69}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4\right)\right)\\
\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{+42}:\\
\;\;\;\;y5 \cdot \left(\left(j \cdot \left(y0 \cdot y3\right) - i \cdot \left(t \cdot j\right)\right) + a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\end{array}
\end{array}
if y1 < -7.20000000000000028e184Initial program 15.4%
Taylor expanded in j around inf 35.3%
Taylor expanded in i around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if -7.20000000000000028e184 < y1 < -5.99999999999999974e80Initial program 20.0%
Taylor expanded in y2 around inf 52.4%
Taylor expanded in x around inf 52.8%
if -5.99999999999999974e80 < y1 < -1.8499999999999999e69Initial program 39.7%
Taylor expanded in y3 around -inf 79.7%
Taylor expanded in y around inf 40.8%
Taylor expanded in a around 0 61.0%
neg-mul-161.0%
distribute-rgt-neg-in61.0%
Simplified61.0%
if -1.8499999999999999e69 < y1 < 1.8e42Initial program 35.5%
Taylor expanded in y5 around -inf 46.6%
Taylor expanded in k around 0 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
if 1.8e42 < y1 Initial program 26.9%
Taylor expanded in y3 around -inf 45.2%
Taylor expanded in a around -inf 49.2%
mul-1-neg49.2%
Simplified49.2%
Final simplification49.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3)))))
(t_2 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -4.5e+83)
t_2
(if (<= x -4e-265)
t_1
(if (<= x -2.7e-278)
(* y3 (* c (- (* y y4) (* z y0))))
(if (<= x 4.6e-245)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= x 5.1e-101)
(* j (* t (- (* b y4) (* i y5))))
(if (<= x 9.2e+60) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -4.5e+83) {
tmp = t_2;
} else if (x <= -4e-265) {
tmp = t_1;
} else if (x <= -2.7e-278) {
tmp = y3 * (c * ((y * y4) - (z * y0)));
} else if (x <= 4.6e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 5.1e-101) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 9.2e+60) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y1 * (y4 * ((k * y2) - (j * y3)))
t_2 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-4.5d+83)) then
tmp = t_2
else if (x <= (-4d-265)) then
tmp = t_1
else if (x <= (-2.7d-278)) then
tmp = y3 * (c * ((y * y4) - (z * y0)))
else if (x <= 4.6d-245) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (x <= 5.1d-101) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (x <= 9.2d+60) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -4.5e+83) {
tmp = t_2;
} else if (x <= -4e-265) {
tmp = t_1;
} else if (x <= -2.7e-278) {
tmp = y3 * (c * ((y * y4) - (z * y0)));
} else if (x <= 4.6e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 5.1e-101) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 9.2e+60) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (y4 * ((k * y2) - (j * y3))) t_2 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -4.5e+83: tmp = t_2 elif x <= -4e-265: tmp = t_1 elif x <= -2.7e-278: tmp = y3 * (c * ((y * y4) - (z * y0))) elif x <= 4.6e-245: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif x <= 5.1e-101: tmp = j * (t * ((b * y4) - (i * y5))) elif x <= 9.2e+60: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -4.5e+83) tmp = t_2; elseif (x <= -4e-265) tmp = t_1; elseif (x <= -2.7e-278) tmp = Float64(y3 * Float64(c * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (x <= 4.6e-245) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (x <= 5.1e-101) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (x <= 9.2e+60) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (y4 * ((k * y2) - (j * y3))); t_2 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -4.5e+83) tmp = t_2; elseif (x <= -4e-265) tmp = t_1; elseif (x <= -2.7e-278) tmp = y3 * (c * ((y * y4) - (z * y0))); elseif (x <= 4.6e-245) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (x <= 5.1e-101) tmp = j * (t * ((b * y4) - (i * y5))); elseif (x <= 9.2e+60) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.5e+83], t$95$2, If[LessEqual[x, -4e-265], t$95$1, If[LessEqual[x, -2.7e-278], N[(y3 * N[(c * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-245], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.1e-101], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e+60], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -4.5 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{-278}:\\
\;\;\;\;y3 \cdot \left(c \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-245}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 5.1 \cdot 10^{-101}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -4.4999999999999999e83 or 9.20000000000000068e60 < x Initial program 21.4%
Taylor expanded in j around inf 45.3%
Taylor expanded in x around inf 51.5%
if -4.4999999999999999e83 < x < -3.99999999999999994e-265 or 5.1000000000000002e-101 < x < 9.20000000000000068e60Initial program 36.1%
Taylor expanded in y around inf 39.7%
Taylor expanded in y1 around inf 38.3%
if -3.99999999999999994e-265 < x < -2.7000000000000001e-278Initial program 40.0%
Taylor expanded in y3 around -inf 40.2%
Taylor expanded in c around inf 95.7%
if -2.7000000000000001e-278 < x < 4.6000000000000003e-245Initial program 38.7%
Taylor expanded in y2 around inf 58.0%
Taylor expanded in k around inf 49.0%
if 4.6000000000000003e-245 < x < 5.1000000000000002e-101Initial program 33.3%
Taylor expanded in j around inf 43.8%
Taylor expanded in t around inf 47.5%
Final simplification46.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3)))))
(t_2 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -6.2e+76)
t_2
(if (<= x -7.2e-200)
t_1
(if (<= x -1.5e-281)
(* y3 (* y (* c y4)))
(if (<= x 6.2e-245)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= x 4.1e-101)
(* j (* t (- (* b y4) (* i y5))))
(if (<= x 2.85e+60) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -6.2e+76) {
tmp = t_2;
} else if (x <= -7.2e-200) {
tmp = t_1;
} else if (x <= -1.5e-281) {
tmp = y3 * (y * (c * y4));
} else if (x <= 6.2e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 4.1e-101) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 2.85e+60) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y1 * (y4 * ((k * y2) - (j * y3)))
t_2 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-6.2d+76)) then
tmp = t_2
else if (x <= (-7.2d-200)) then
tmp = t_1
else if (x <= (-1.5d-281)) then
tmp = y3 * (y * (c * y4))
else if (x <= 6.2d-245) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (x <= 4.1d-101) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (x <= 2.85d+60) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -6.2e+76) {
tmp = t_2;
} else if (x <= -7.2e-200) {
tmp = t_1;
} else if (x <= -1.5e-281) {
tmp = y3 * (y * (c * y4));
} else if (x <= 6.2e-245) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 4.1e-101) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 2.85e+60) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (y4 * ((k * y2) - (j * y3))) t_2 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -6.2e+76: tmp = t_2 elif x <= -7.2e-200: tmp = t_1 elif x <= -1.5e-281: tmp = y3 * (y * (c * y4)) elif x <= 6.2e-245: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif x <= 4.1e-101: tmp = j * (t * ((b * y4) - (i * y5))) elif x <= 2.85e+60: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -6.2e+76) tmp = t_2; elseif (x <= -7.2e-200) tmp = t_1; elseif (x <= -1.5e-281) tmp = Float64(y3 * Float64(y * Float64(c * y4))); elseif (x <= 6.2e-245) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (x <= 4.1e-101) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (x <= 2.85e+60) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (y4 * ((k * y2) - (j * y3))); t_2 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -6.2e+76) tmp = t_2; elseif (x <= -7.2e-200) tmp = t_1; elseif (x <= -1.5e-281) tmp = y3 * (y * (c * y4)); elseif (x <= 6.2e-245) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (x <= 4.1e-101) tmp = j * (t * ((b * y4) - (i * y5))); elseif (x <= 2.85e+60) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.2e+76], t$95$2, If[LessEqual[x, -7.2e-200], t$95$1, If[LessEqual[x, -1.5e-281], N[(y3 * N[(y * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.2e-245], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.1e-101], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.85e+60], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -6.2 \cdot 10^{+76}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-281}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-245}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-101}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 2.85 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -6.20000000000000023e76 or 2.84999999999999989e60 < x Initial program 21.4%
Taylor expanded in j around inf 45.3%
Taylor expanded in x around inf 51.5%
if -6.20000000000000023e76 < x < -7.2000000000000003e-200 or 4.10000000000000026e-101 < x < 2.84999999999999989e60Initial program 36.8%
Taylor expanded in y around inf 39.7%
Taylor expanded in y1 around inf 39.1%
if -7.2000000000000003e-200 < x < -1.49999999999999987e-281Initial program 31.3%
Taylor expanded in y3 around -inf 50.1%
Taylor expanded in y around inf 44.3%
Taylor expanded in a around 0 45.1%
neg-mul-145.1%
distribute-rgt-neg-in45.1%
Simplified45.1%
if -1.49999999999999987e-281 < x < 6.20000000000000006e-245Initial program 40.6%
Taylor expanded in y2 around inf 55.9%
Taylor expanded in k around inf 51.2%
if 6.20000000000000006e-245 < x < 4.10000000000000026e-101Initial program 33.3%
Taylor expanded in j around inf 43.8%
Taylor expanded in t around inf 47.5%
Final simplification46.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0)))))
(t_2 (* i (* k (- (* y y5) (* z y1))))))
(if (<= x -3.6e+67)
t_1
(if (<= x -1.22e-76)
(* c (* y0 (* z (- y3))))
(if (<= x -1e-261)
t_2
(if (<= x -4.3e-272)
(* c (* y (* y3 y4)))
(if (<= x 4.6e-245)
t_2
(if (<= x 5.4e+17) (* j (* t (- (* 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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (x <= -3.6e+67) {
tmp = t_1;
} else if (x <= -1.22e-76) {
tmp = c * (y0 * (z * -y3));
} else if (x <= -1e-261) {
tmp = t_2;
} else if (x <= -4.3e-272) {
tmp = c * (y * (y3 * y4));
} else if (x <= 4.6e-245) {
tmp = t_2;
} else if (x <= 5.4e+17) {
tmp = j * (t * ((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) :: t_2
real(8) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
t_2 = i * (k * ((y * y5) - (z * y1)))
if (x <= (-3.6d+67)) then
tmp = t_1
else if (x <= (-1.22d-76)) then
tmp = c * (y0 * (z * -y3))
else if (x <= (-1d-261)) then
tmp = t_2
else if (x <= (-4.3d-272)) then
tmp = c * (y * (y3 * y4))
else if (x <= 4.6d-245) then
tmp = t_2
else if (x <= 5.4d+17) then
tmp = j * (t * ((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 = j * (x * ((i * y1) - (b * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (x <= -3.6e+67) {
tmp = t_1;
} else if (x <= -1.22e-76) {
tmp = c * (y0 * (z * -y3));
} else if (x <= -1e-261) {
tmp = t_2;
} else if (x <= -4.3e-272) {
tmp = c * (y * (y3 * y4));
} else if (x <= 4.6e-245) {
tmp = t_2;
} else if (x <= 5.4e+17) {
tmp = j * (t * ((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 = j * (x * ((i * y1) - (b * y0))) t_2 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if x <= -3.6e+67: tmp = t_1 elif x <= -1.22e-76: tmp = c * (y0 * (z * -y3)) elif x <= -1e-261: tmp = t_2 elif x <= -4.3e-272: tmp = c * (y * (y3 * y4)) elif x <= 4.6e-245: tmp = t_2 elif x <= 5.4e+17: tmp = j * (t * ((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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (x <= -3.6e+67) tmp = t_1; elseif (x <= -1.22e-76) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))); elseif (x <= -1e-261) tmp = t_2; elseif (x <= -4.3e-272) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (x <= 4.6e-245) tmp = t_2; elseif (x <= 5.4e+17) tmp = Float64(j * Float64(t * 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 = j * (x * ((i * y1) - (b * y0))); t_2 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (x <= -3.6e+67) tmp = t_1; elseif (x <= -1.22e-76) tmp = c * (y0 * (z * -y3)); elseif (x <= -1e-261) tmp = t_2; elseif (x <= -4.3e-272) tmp = c * (y * (y3 * y4)); elseif (x <= 4.6e-245) tmp = t_2; elseif (x <= 5.4e+17) tmp = j * (t * ((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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e+67], t$95$1, If[LessEqual[x, -1.22e-76], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1e-261], t$95$2, If[LessEqual[x, -4.3e-272], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-245], t$95$2, If[LessEqual[x, 5.4e+17], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;x \leq -3.6 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.22 \cdot 10^{-76}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-261}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{-272}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-245}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{+17}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.5999999999999999e67 or 5.4e17 < x Initial program 21.1%
Taylor expanded in j around inf 45.3%
Taylor expanded in x around inf 49.2%
if -3.5999999999999999e67 < x < -1.22e-76Initial program 37.1%
Taylor expanded in y3 around -inf 46.2%
Taylor expanded in y0 around inf 27.0%
Taylor expanded in j around 0 26.9%
if -1.22e-76 < x < -9.99999999999999984e-262 or -4.2999999999999997e-272 < x < 4.6000000000000003e-245Initial program 39.4%
Taylor expanded in k around inf 46.4%
Taylor expanded in i around inf 40.7%
if -9.99999999999999984e-262 < x < -4.2999999999999997e-272Initial program 50.0%
Taylor expanded in y3 around -inf 66.7%
Taylor expanded in y around inf 67.3%
Taylor expanded in a around 0 83.9%
mul-1-neg83.9%
*-commutative83.9%
distribute-rgt-neg-in83.9%
Simplified83.9%
if 4.6000000000000003e-245 < x < 5.4e17Initial program 34.1%
Taylor expanded in j around inf 44.4%
Taylor expanded in t around inf 42.8%
Final simplification44.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.02e+150)
(* x (* y (* a b)))
(if (<= y -3e+39)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y -3.1e-169)
(* y3 (* (* z c) (- y0)))
(if (<= y 5.2e-212)
(* y3 (* y0 (* j y5)))
(if (<= y 3.5e-25)
(* j (* y3 (* y1 (- y4))))
(* x (* a (* y b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.02e+150) {
tmp = x * (y * (a * b));
} else if (y <= -3e+39) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= -3.1e-169) {
tmp = y3 * ((z * c) * -y0);
} else if (y <= 5.2e-212) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 3.5e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.02d+150)) then
tmp = x * (y * (a * b))
else if (y <= (-3d+39)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= (-3.1d-169)) then
tmp = y3 * ((z * c) * -y0)
else if (y <= 5.2d-212) then
tmp = y3 * (y0 * (j * y5))
else if (y <= 3.5d-25) then
tmp = j * (y3 * (y1 * -y4))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.02e+150) {
tmp = x * (y * (a * b));
} else if (y <= -3e+39) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= -3.1e-169) {
tmp = y3 * ((z * c) * -y0);
} else if (y <= 5.2e-212) {
tmp = y3 * (y0 * (j * y5));
} else if (y <= 3.5e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.02e+150: tmp = x * (y * (a * b)) elif y <= -3e+39: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= -3.1e-169: tmp = y3 * ((z * c) * -y0) elif y <= 5.2e-212: tmp = y3 * (y0 * (j * y5)) elif y <= 3.5e-25: tmp = j * (y3 * (y1 * -y4)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.02e+150) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -3e+39) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= -3.1e-169) tmp = Float64(y3 * Float64(Float64(z * c) * Float64(-y0))); elseif (y <= 5.2e-212) tmp = Float64(y3 * Float64(y0 * Float64(j * y5))); elseif (y <= 3.5e-25) tmp = Float64(j * Float64(y3 * Float64(y1 * Float64(-y4)))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.02e+150) tmp = x * (y * (a * b)); elseif (y <= -3e+39) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= -3.1e-169) tmp = y3 * ((z * c) * -y0); elseif (y <= 5.2e-212) tmp = y3 * (y0 * (j * y5)); elseif (y <= 3.5e-25) tmp = j * (y3 * (y1 * -y4)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.02e+150], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e+39], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.1e-169], N[(y3 * N[(N[(z * c), $MachinePrecision] * (-y0)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e-212], N[(y3 * N[(y0 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e-25], N[(j * N[(y3 * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+150}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -3 \cdot 10^{+39}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{-169}:\\
\;\;\;\;y3 \cdot \left(\left(z \cdot c\right) \cdot \left(-y0\right)\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-212}:\\
\;\;\;\;y3 \cdot \left(y0 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.0199999999999999e150Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -1.0199999999999999e150 < y < -3e39Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -3e39 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < -3.1000000000000002e-169Initial program 38.3%
Taylor expanded in y3 around -inf 58.5%
Taylor expanded in y0 around inf 46.7%
Taylor expanded in j around 0 35.4%
*-commutative35.4%
Simplified35.4%
if -3.1000000000000002e-169 < y < 5.2e-212Initial program 36.3%
Taylor expanded in y3 around -inf 51.3%
Taylor expanded in y0 around inf 41.1%
Taylor expanded in j around inf 29.6%
neg-mul-129.6%
distribute-rgt-neg-in29.6%
Simplified29.6%
if 5.2e-212 < y < 3.5000000000000002e-25Initial program 18.4%
Taylor expanded in j around inf 40.4%
Taylor expanded in y3 around inf 27.4%
neg-mul-127.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
Taylor expanded in y1 around inf 27.3%
if 3.5000000000000002e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification36.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y2 (- (* y1 y4) (* y0 y5)))))
(t_2 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -2.35e+70)
t_2
(if (<= x -3.5e-86)
t_1
(if (<= x -2.1e-256)
(* i (* k (- (* y y5) (* z y1))))
(if (<= x 3.7e-245)
t_1
(if (<= x 4.1e+17) (* j (* t (- (* b y4) (* i y5)))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -2.35e+70) {
tmp = t_2;
} else if (x <= -3.5e-86) {
tmp = t_1;
} else if (x <= -2.1e-256) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (x <= 3.7e-245) {
tmp = t_1;
} else if (x <= 4.1e+17) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)))
t_2 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-2.35d+70)) then
tmp = t_2
else if (x <= (-3.5d-86)) then
tmp = t_1
else if (x <= (-2.1d-256)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (x <= 3.7d-245) then
tmp = t_1
else if (x <= 4.1d+17) then
tmp = j * (t * ((b * y4) - (i * y5)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -2.35e+70) {
tmp = t_2;
} else if (x <= -3.5e-86) {
tmp = t_1;
} else if (x <= -2.1e-256) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (x <= 3.7e-245) {
tmp = t_1;
} else if (x <= 4.1e+17) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * ((y1 * y4) - (y0 * y5))) t_2 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -2.35e+70: tmp = t_2 elif x <= -3.5e-86: tmp = t_1 elif x <= -2.1e-256: tmp = i * (k * ((y * y5) - (z * y1))) elif x <= 3.7e-245: tmp = t_1 elif x <= 4.1e+17: tmp = j * (t * ((b * y4) - (i * y5))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -2.35e+70) tmp = t_2; elseif (x <= -3.5e-86) tmp = t_1; elseif (x <= -2.1e-256) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (x <= 3.7e-245) tmp = t_1; elseif (x <= 4.1e+17) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * ((y1 * y4) - (y0 * y5))); t_2 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -2.35e+70) tmp = t_2; elseif (x <= -3.5e-86) tmp = t_1; elseif (x <= -2.1e-256) tmp = i * (k * ((y * y5) - (z * y1))); elseif (x <= 3.7e-245) tmp = t_1; elseif (x <= 4.1e+17) tmp = j * (t * ((b * y4) - (i * y5))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.35e+70], t$95$2, If[LessEqual[x, -3.5e-86], t$95$1, If[LessEqual[x, -2.1e-256], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e-245], t$95$1, If[LessEqual[x, 4.1e+17], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -2.35 \cdot 10^{+70}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-256}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-245}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{+17}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -2.3499999999999999e70 or 4.1e17 < x Initial program 21.1%
Taylor expanded in j around inf 45.3%
Taylor expanded in x around inf 49.2%
if -2.3499999999999999e70 < x < -3.50000000000000021e-86 or -2.10000000000000003e-256 < x < 3.7000000000000002e-245Initial program 37.1%
Taylor expanded in y2 around inf 40.9%
Taylor expanded in k around inf 36.8%
if -3.50000000000000021e-86 < x < -2.10000000000000003e-256Initial program 44.3%
Taylor expanded in k around inf 35.0%
Taylor expanded in i around inf 48.9%
if 3.7000000000000002e-245 < x < 4.1e17Initial program 34.1%
Taylor expanded in j around inf 44.4%
Taylor expanded in t around inf 42.8%
Final simplification44.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (- (* y y5) (* z y1))))))
(if (<= k -2.8e-27)
t_1
(if (<= k -3.6e-271)
(* j (* t (- (* b y4) (* i y5))))
(if (<= k 8.6e-259)
(* c (* y0 (* z (- y3))))
(if (<= k 1.05e-110)
(* j (* y3 (* y1 (- y4))))
(if (<= k 4.2e+77) (* x (* a (* y b))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -2.8e-27) {
tmp = t_1;
} else if (k <= -3.6e-271) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= 8.6e-259) {
tmp = c * (y0 * (z * -y3));
} else if (k <= 1.05e-110) {
tmp = j * (y3 * (y1 * -y4));
} else if (k <= 4.2e+77) {
tmp = x * (a * (y * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
if (k <= (-2.8d-27)) then
tmp = t_1
else if (k <= (-3.6d-271)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (k <= 8.6d-259) then
tmp = c * (y0 * (z * -y3))
else if (k <= 1.05d-110) then
tmp = j * (y3 * (y1 * -y4))
else if (k <= 4.2d+77) then
tmp = x * (a * (y * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -2.8e-27) {
tmp = t_1;
} else if (k <= -3.6e-271) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (k <= 8.6e-259) {
tmp = c * (y0 * (z * -y3));
} else if (k <= 1.05e-110) {
tmp = j * (y3 * (y1 * -y4));
} else if (k <= 4.2e+77) {
tmp = x * (a * (y * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if k <= -2.8e-27: tmp = t_1 elif k <= -3.6e-271: tmp = j * (t * ((b * y4) - (i * y5))) elif k <= 8.6e-259: tmp = c * (y0 * (z * -y3)) elif k <= 1.05e-110: tmp = j * (y3 * (y1 * -y4)) elif k <= 4.2e+77: tmp = x * (a * (y * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (k <= -2.8e-27) tmp = t_1; elseif (k <= -3.6e-271) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (k <= 8.6e-259) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))); elseif (k <= 1.05e-110) tmp = Float64(j * Float64(y3 * Float64(y1 * Float64(-y4)))); elseif (k <= 4.2e+77) tmp = Float64(x * Float64(a * Float64(y * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (k <= -2.8e-27) tmp = t_1; elseif (k <= -3.6e-271) tmp = j * (t * ((b * y4) - (i * y5))); elseif (k <= 8.6e-259) tmp = c * (y0 * (z * -y3)); elseif (k <= 1.05e-110) tmp = j * (y3 * (y1 * -y4)); elseif (k <= 4.2e+77) tmp = x * (a * (y * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2.8e-27], t$95$1, If[LessEqual[k, -3.6e-271], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.6e-259], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.05e-110], N[(j * N[(y3 * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.2e+77], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -2.8 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -3.6 \cdot 10^{-271}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq 8.6 \cdot 10^{-259}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;k \leq 1.05 \cdot 10^{-110}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;k \leq 4.2 \cdot 10^{+77}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -2.8e-27 or 4.1999999999999997e77 < k Initial program 23.8%
Taylor expanded in k around inf 47.2%
Taylor expanded in i around inf 45.0%
if -2.8e-27 < k < -3.5999999999999998e-271Initial program 45.4%
Taylor expanded in j around inf 57.3%
Taylor expanded in t around inf 33.6%
if -3.5999999999999998e-271 < k < 8.6000000000000001e-259Initial program 42.9%
Taylor expanded in y3 around -inf 43.3%
Taylor expanded in y0 around inf 37.7%
Taylor expanded in j around 0 43.7%
if 8.6000000000000001e-259 < k < 1.05000000000000001e-110Initial program 29.7%
Taylor expanded in j around inf 44.9%
Taylor expanded in y3 around inf 34.4%
neg-mul-134.4%
distribute-rgt-neg-in34.4%
Simplified34.4%
Taylor expanded in y1 around inf 39.1%
if 1.05000000000000001e-110 < k < 4.1999999999999997e77Initial program 23.8%
Taylor expanded in y around inf 37.5%
Taylor expanded in x around inf 43.1%
Taylor expanded in a around inf 37.9%
Final simplification40.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (- (* t y4) (* x y0)))))
(t_2 (* i (* k (- (* y y5) (* z y1))))))
(if (<= k -5.3e-17)
t_2
(if (<= k 4.2e-299)
t_1
(if (<= k 5.2e-127)
(* j (* y3 (* y1 (- y4))))
(if (<= k 1e-52) t_1 (if (<= k 1.4e+76) (* x (* y (* a b))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * ((t * y4) - (x * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -5.3e-17) {
tmp = t_2;
} else if (k <= 4.2e-299) {
tmp = t_1;
} else if (k <= 5.2e-127) {
tmp = j * (y3 * (y1 * -y4));
} else if (k <= 1e-52) {
tmp = t_1;
} else if (k <= 1.4e+76) {
tmp = x * (y * (a * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (j * ((t * y4) - (x * y0)))
t_2 = i * (k * ((y * y5) - (z * y1)))
if (k <= (-5.3d-17)) then
tmp = t_2
else if (k <= 4.2d-299) then
tmp = t_1
else if (k <= 5.2d-127) then
tmp = j * (y3 * (y1 * -y4))
else if (k <= 1d-52) then
tmp = t_1
else if (k <= 1.4d+76) then
tmp = x * (y * (a * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * ((t * y4) - (x * y0)));
double t_2 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (k <= -5.3e-17) {
tmp = t_2;
} else if (k <= 4.2e-299) {
tmp = t_1;
} else if (k <= 5.2e-127) {
tmp = j * (y3 * (y1 * -y4));
} else if (k <= 1e-52) {
tmp = t_1;
} else if (k <= 1.4e+76) {
tmp = x * (y * (a * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * ((t * y4) - (x * y0))) t_2 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if k <= -5.3e-17: tmp = t_2 elif k <= 4.2e-299: tmp = t_1 elif k <= 5.2e-127: tmp = j * (y3 * (y1 * -y4)) elif k <= 1e-52: tmp = t_1 elif k <= 1.4e+76: tmp = x * (y * (a * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))) t_2 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (k <= -5.3e-17) tmp = t_2; elseif (k <= 4.2e-299) tmp = t_1; elseif (k <= 5.2e-127) tmp = Float64(j * Float64(y3 * Float64(y1 * Float64(-y4)))); elseif (k <= 1e-52) tmp = t_1; elseif (k <= 1.4e+76) tmp = Float64(x * Float64(y * Float64(a * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * ((t * y4) - (x * y0))); t_2 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (k <= -5.3e-17) tmp = t_2; elseif (k <= 4.2e-299) tmp = t_1; elseif (k <= 5.2e-127) tmp = j * (y3 * (y1 * -y4)); elseif (k <= 1e-52) tmp = t_1; elseif (k <= 1.4e+76) tmp = x * (y * (a * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -5.3e-17], t$95$2, If[LessEqual[k, 4.2e-299], t$95$1, If[LessEqual[k, 5.2e-127], N[(j * N[(y3 * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1e-52], t$95$1, If[LessEqual[k, 1.4e+76], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
t_2 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;k \leq -5.3 \cdot 10^{-17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;k \leq 4.2 \cdot 10^{-299}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 5.2 \cdot 10^{-127}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;k \leq 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 1.4 \cdot 10^{+76}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if k < -5.2999999999999998e-17 or 1.3999999999999999e76 < k Initial program 24.0%
Taylor expanded in k around inf 47.6%
Taylor expanded in i around inf 45.4%
if -5.2999999999999998e-17 < k < 4.2000000000000002e-299 or 5.19999999999999982e-127 < k < 1e-52Initial program 46.7%
Taylor expanded in j around inf 52.7%
Taylor expanded in b around inf 34.3%
if 4.2000000000000002e-299 < k < 5.19999999999999982e-127Initial program 25.0%
Taylor expanded in j around inf 39.0%
Taylor expanded in y3 around inf 29.5%
neg-mul-129.5%
distribute-rgt-neg-in29.5%
Simplified29.5%
Taylor expanded in y1 around inf 33.8%
if 1e-52 < k < 1.3999999999999999e76Initial program 18.1%
Taylor expanded in y around inf 36.1%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 40.3%
associate-*r*43.8%
Simplified43.8%
Final simplification40.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -5.8e+149)
(* x (* y (* a b)))
(if (<= y -8.8e+36)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 2.1e-240)
(* y3 (* (* z c) (- y0)))
(if (<= y 6.2e-25)
(* j (* y3 (* y1 (- y4))))
(* x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -5.8e+149) {
tmp = x * (y * (a * b));
} else if (y <= -8.8e+36) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 2.1e-240) {
tmp = y3 * ((z * c) * -y0);
} else if (y <= 6.2e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-5.8d+149)) then
tmp = x * (y * (a * b))
else if (y <= (-8.8d+36)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 2.1d-240) then
tmp = y3 * ((z * c) * -y0)
else if (y <= 6.2d-25) then
tmp = j * (y3 * (y1 * -y4))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -5.8e+149) {
tmp = x * (y * (a * b));
} else if (y <= -8.8e+36) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 2.1e-240) {
tmp = y3 * ((z * c) * -y0);
} else if (y <= 6.2e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -5.8e+149: tmp = x * (y * (a * b)) elif y <= -8.8e+36: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 2.1e-240: tmp = y3 * ((z * c) * -y0) elif y <= 6.2e-25: tmp = j * (y3 * (y1 * -y4)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -5.8e+149) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -8.8e+36) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 2.1e-240) tmp = Float64(y3 * Float64(Float64(z * c) * Float64(-y0))); elseif (y <= 6.2e-25) tmp = Float64(j * Float64(y3 * Float64(y1 * Float64(-y4)))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -5.8e+149) tmp = x * (y * (a * b)); elseif (y <= -8.8e+36) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 2.1e-240) tmp = y3 * ((z * c) * -y0); elseif (y <= 6.2e-25) tmp = j * (y3 * (y1 * -y4)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -5.8e+149], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.8e+36], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e-240], N[(y3 * N[(N[(z * c), $MachinePrecision] * (-y0)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-25], N[(j * N[(y3 * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.8 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{+36}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-240}:\\
\;\;\;\;y3 \cdot \left(\left(z \cdot c\right) \cdot \left(-y0\right)\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -5.8000000000000004e149Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -5.8000000000000004e149 < y < -8.80000000000000002e36Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -8.80000000000000002e36 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < 2.09999999999999994e-240Initial program 38.5%
Taylor expanded in y3 around -inf 54.6%
Taylor expanded in y0 around inf 43.3%
Taylor expanded in j around 0 25.9%
*-commutative25.9%
Simplified25.9%
if 2.09999999999999994e-240 < y < 6.19999999999999989e-25Initial program 17.0%
Taylor expanded in j around inf 37.4%
Taylor expanded in y3 around inf 30.3%
neg-mul-130.3%
distribute-rgt-neg-in30.3%
Simplified30.3%
Taylor expanded in y1 around inf 27.8%
if 6.19999999999999989e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification34.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -9e+149)
(* x (* y (* a b)))
(if (<= y -9.5e+37)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 7.2e-292)
(* c (* y0 (* z (- y3))))
(if (<= y 4.6e-25)
(* j (* y3 (* y1 (- y4))))
(* x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -9e+149) {
tmp = x * (y * (a * b));
} else if (y <= -9.5e+37) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 7.2e-292) {
tmp = c * (y0 * (z * -y3));
} else if (y <= 4.6e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-9d+149)) then
tmp = x * (y * (a * b))
else if (y <= (-9.5d+37)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 7.2d-292) then
tmp = c * (y0 * (z * -y3))
else if (y <= 4.6d-25) then
tmp = j * (y3 * (y1 * -y4))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -9e+149) {
tmp = x * (y * (a * b));
} else if (y <= -9.5e+37) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 7.2e-292) {
tmp = c * (y0 * (z * -y3));
} else if (y <= 4.6e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -9e+149: tmp = x * (y * (a * b)) elif y <= -9.5e+37: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 7.2e-292: tmp = c * (y0 * (z * -y3)) elif y <= 4.6e-25: tmp = j * (y3 * (y1 * -y4)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -9e+149) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -9.5e+37) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 7.2e-292) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))); elseif (y <= 4.6e-25) tmp = Float64(j * Float64(y3 * Float64(y1 * Float64(-y4)))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -9e+149) tmp = x * (y * (a * b)); elseif (y <= -9.5e+37) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 7.2e-292) tmp = c * (y0 * (z * -y3)); elseif (y <= 4.6e-25) tmp = j * (y3 * (y1 * -y4)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -9e+149], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.5e+37], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e-292], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e-25], N[(j * N[(y3 * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{+37}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-292}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -8.99999999999999965e149Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -8.99999999999999965e149 < y < -9.4999999999999995e37Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -9.4999999999999995e37 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < 7.2000000000000004e-292Initial program 38.8%
Taylor expanded in y3 around -inf 54.5%
Taylor expanded in y0 around inf 41.2%
Taylor expanded in j around 0 22.5%
if 7.2000000000000004e-292 < y < 4.5999999999999998e-25Initial program 21.3%
Taylor expanded in j around inf 47.0%
Taylor expanded in y3 around inf 28.1%
neg-mul-128.1%
distribute-rgt-neg-in28.1%
Simplified28.1%
Taylor expanded in y1 around inf 26.1%
if 4.5999999999999998e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification33.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.1e+150)
(* x (* y (* a b)))
(if (<= y -1.32e+36)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 4.3e-184)
(* b (* j (* x (- y0))))
(if (<= y 4.5e-25)
(* j (* y3 (* y1 (- y4))))
(* x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.1e+150) {
tmp = x * (y * (a * b));
} else if (y <= -1.32e+36) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 4.3e-184) {
tmp = b * (j * (x * -y0));
} else if (y <= 4.5e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.1d+150)) then
tmp = x * (y * (a * b))
else if (y <= (-1.32d+36)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 4.3d-184) then
tmp = b * (j * (x * -y0))
else if (y <= 4.5d-25) then
tmp = j * (y3 * (y1 * -y4))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.1e+150) {
tmp = x * (y * (a * b));
} else if (y <= -1.32e+36) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 4.3e-184) {
tmp = b * (j * (x * -y0));
} else if (y <= 4.5e-25) {
tmp = j * (y3 * (y1 * -y4));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.1e+150: tmp = x * (y * (a * b)) elif y <= -1.32e+36: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 4.3e-184: tmp = b * (j * (x * -y0)) elif y <= 4.5e-25: tmp = j * (y3 * (y1 * -y4)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.1e+150) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -1.32e+36) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 4.3e-184) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); elseif (y <= 4.5e-25) tmp = Float64(j * Float64(y3 * Float64(y1 * Float64(-y4)))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.1e+150) tmp = x * (y * (a * b)); elseif (y <= -1.32e+36) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 4.3e-184) tmp = b * (j * (x * -y0)); elseif (y <= 4.5e-25) tmp = j * (y3 * (y1 * -y4)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.1e+150], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.32e+36], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e-184], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-25], N[(j * N[(y3 * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+150}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -1.32 \cdot 10^{+36}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{-184}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-25}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.1e150Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -1.1e150 < y < -1.3200000000000001e36Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -1.3200000000000001e36 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < 4.30000000000000007e-184Initial program 35.1%
Taylor expanded in j around inf 42.1%
Taylor expanded in b around inf 25.3%
Taylor expanded in t around 0 23.1%
associate-*r*23.1%
mul-1-neg23.1%
*-commutative23.1%
Simplified23.1%
if 4.30000000000000007e-184 < y < 4.5000000000000001e-25Initial program 19.3%
Taylor expanded in j around inf 36.6%
Taylor expanded in y3 around inf 26.8%
neg-mul-126.8%
distribute-rgt-neg-in26.8%
Simplified26.8%
Taylor expanded in y1 around inf 26.8%
if 4.5000000000000001e-25 < y Initial program 33.9%
Taylor expanded in y around inf 42.9%
Taylor expanded in x around inf 47.7%
Taylor expanded in a around inf 42.0%
Final simplification33.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* y (* a b)))) (t_2 (* b (* j (* t y4)))))
(if (<= y -7e+149)
t_1
(if (<= y -1.15e+76)
t_2
(if (<= y -1.32e+19)
t_1
(if (<= y 1.22e-214)
(* j (* y0 (* y3 y5)))
(if (<= y 7e-25) t_2 (* x (* a (* y b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * (a * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -7e+149) {
tmp = t_1;
} else if (y <= -1.15e+76) {
tmp = t_2;
} else if (y <= -1.32e+19) {
tmp = t_1;
} else if (y <= 1.22e-214) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 7e-25) {
tmp = t_2;
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * (a * b))
t_2 = b * (j * (t * y4))
if (y <= (-7d+149)) then
tmp = t_1
else if (y <= (-1.15d+76)) then
tmp = t_2
else if (y <= (-1.32d+19)) then
tmp = t_1
else if (y <= 1.22d-214) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 7d-25) then
tmp = t_2
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y * (a * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -7e+149) {
tmp = t_1;
} else if (y <= -1.15e+76) {
tmp = t_2;
} else if (y <= -1.32e+19) {
tmp = t_1;
} else if (y <= 1.22e-214) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 7e-25) {
tmp = t_2;
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (y * (a * b)) t_2 = b * (j * (t * y4)) tmp = 0 if y <= -7e+149: tmp = t_1 elif y <= -1.15e+76: tmp = t_2 elif y <= -1.32e+19: tmp = t_1 elif y <= 1.22e-214: tmp = j * (y0 * (y3 * y5)) elif y <= 7e-25: tmp = t_2 else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(y * Float64(a * b))) t_2 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (y <= -7e+149) tmp = t_1; elseif (y <= -1.15e+76) tmp = t_2; elseif (y <= -1.32e+19) tmp = t_1; elseif (y <= 1.22e-214) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 7e-25) tmp = t_2; else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (y * (a * b)); t_2 = b * (j * (t * y4)); tmp = 0.0; if (y <= -7e+149) tmp = t_1; elseif (y <= -1.15e+76) tmp = t_2; elseif (y <= -1.32e+19) tmp = t_1; elseif (y <= 1.22e-214) tmp = j * (y0 * (y3 * y5)); elseif (y <= 7e-25) tmp = t_2; else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+149], t$95$1, If[LessEqual[y, -1.15e+76], t$95$2, If[LessEqual[y, -1.32e+19], t$95$1, If[LessEqual[y, 1.22e-214], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-25], t$95$2, N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
t_2 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;y \leq -7 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.15 \cdot 10^{+76}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.32 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.22 \cdot 10^{-214}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-25}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -7.00000000000000023e149 or -1.15000000000000001e76 < y < -1.32e19Initial program 30.9%
Taylor expanded in y around inf 28.3%
Taylor expanded in x around inf 46.9%
Taylor expanded in a around inf 47.0%
associate-*r*47.1%
Simplified47.1%
if -7.00000000000000023e149 < y < -1.15000000000000001e76 or 1.22000000000000004e-214 < y < 7.0000000000000004e-25Initial program 22.0%
Taylor expanded in j around inf 43.2%
Taylor expanded in b around inf 33.3%
Taylor expanded in t around inf 25.1%
*-commutative25.1%
Simplified25.1%
if -1.32e19 < y < 1.22000000000000004e-214Initial program 33.1%
Taylor expanded in j around inf 41.7%
Taylor expanded in y3 around inf 29.1%
neg-mul-129.1%
distribute-rgt-neg-in29.1%
Simplified29.1%
Taylor expanded in y1 around 0 21.7%
if 7.0000000000000004e-25 < y Initial program 32.9%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 48.4%
Taylor expanded in a around inf 42.6%
Final simplification31.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* a (* y b)))) (t_2 (* b (* j (* t y4)))))
(if (<= y -5.5e+149)
t_1
(if (<= y -3.8e+35)
t_2
(if (<= y -1.62e+19)
t_1
(if (<= y 1.6e-212)
(* j (* y0 (* y3 y5)))
(if (<= y 8e-25) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (a * (y * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -5.5e+149) {
tmp = t_1;
} else if (y <= -3.8e+35) {
tmp = t_2;
} else if (y <= -1.62e+19) {
tmp = t_1;
} else if (y <= 1.6e-212) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 8e-25) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (a * (y * b))
t_2 = b * (j * (t * y4))
if (y <= (-5.5d+149)) then
tmp = t_1
else if (y <= (-3.8d+35)) then
tmp = t_2
else if (y <= (-1.62d+19)) then
tmp = t_1
else if (y <= 1.6d-212) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 8d-25) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (a * (y * b));
double t_2 = b * (j * (t * y4));
double tmp;
if (y <= -5.5e+149) {
tmp = t_1;
} else if (y <= -3.8e+35) {
tmp = t_2;
} else if (y <= -1.62e+19) {
tmp = t_1;
} else if (y <= 1.6e-212) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 8e-25) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (a * (y * b)) t_2 = b * (j * (t * y4)) tmp = 0 if y <= -5.5e+149: tmp = t_1 elif y <= -3.8e+35: tmp = t_2 elif y <= -1.62e+19: tmp = t_1 elif y <= 1.6e-212: tmp = j * (y0 * (y3 * y5)) elif y <= 8e-25: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(a * Float64(y * b))) t_2 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (y <= -5.5e+149) tmp = t_1; elseif (y <= -3.8e+35) tmp = t_2; elseif (y <= -1.62e+19) tmp = t_1; elseif (y <= 1.6e-212) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 8e-25) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (a * (y * b)); t_2 = b * (j * (t * y4)); tmp = 0.0; if (y <= -5.5e+149) tmp = t_1; elseif (y <= -3.8e+35) tmp = t_2; elseif (y <= -1.62e+19) tmp = t_1; elseif (y <= 1.6e-212) tmp = j * (y0 * (y3 * y5)); elseif (y <= 8e-25) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+149], t$95$1, If[LessEqual[y, -3.8e+35], t$95$2, If[LessEqual[y, -1.62e+19], t$95$1, If[LessEqual[y, 1.6e-212], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-25], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
t_2 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.62 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-212}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-25}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.49999999999999999e149 or -3.8e35 < y < -1.62e19 or 8.00000000000000031e-25 < y Initial program 34.8%
Taylor expanded in y around inf 40.0%
Taylor expanded in x around inf 49.7%
Taylor expanded in a around inf 45.8%
if -5.49999999999999999e149 < y < -3.8e35 or 1.5999999999999999e-212 < y < 8.00000000000000031e-25Initial program 19.5%
Taylor expanded in j around inf 44.1%
Taylor expanded in b around inf 32.4%
Taylor expanded in t around inf 25.2%
*-commutative25.2%
Simplified25.2%
if -1.62e19 < y < 1.5999999999999999e-212Initial program 33.1%
Taylor expanded in j around inf 41.7%
Taylor expanded in y3 around inf 29.1%
neg-mul-129.1%
distribute-rgt-neg-in29.1%
Simplified29.1%
Taylor expanded in y1 around 0 21.7%
Final simplification31.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -6.2e+149)
(* x (* y (* a b)))
(if (<= y -5.2e+40)
(* b (* j (* t y4)))
(if (<= y -7.5e-46)
(* j (* y0 (* y3 y5)))
(if (<= y 1.25e-124) (* b (* j (* x (- y0)))) (* x (* a (* y b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -6.2e+149) {
tmp = x * (y * (a * b));
} else if (y <= -5.2e+40) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 1.25e-124) {
tmp = b * (j * (x * -y0));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-6.2d+149)) then
tmp = x * (y * (a * b))
else if (y <= (-5.2d+40)) then
tmp = b * (j * (t * y4))
else if (y <= (-7.5d-46)) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 1.25d-124) then
tmp = b * (j * (x * -y0))
else
tmp = x * (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -6.2e+149) {
tmp = x * (y * (a * b));
} else if (y <= -5.2e+40) {
tmp = b * (j * (t * y4));
} else if (y <= -7.5e-46) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 1.25e-124) {
tmp = b * (j * (x * -y0));
} else {
tmp = x * (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -6.2e+149: tmp = x * (y * (a * b)) elif y <= -5.2e+40: tmp = b * (j * (t * y4)) elif y <= -7.5e-46: tmp = j * (y0 * (y3 * y5)) elif y <= 1.25e-124: tmp = b * (j * (x * -y0)) else: tmp = x * (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -6.2e+149) tmp = Float64(x * Float64(y * Float64(a * b))); elseif (y <= -5.2e+40) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= -7.5e-46) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 1.25e-124) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); else tmp = Float64(x * Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -6.2e+149) tmp = x * (y * (a * b)); elseif (y <= -5.2e+40) tmp = b * (j * (t * y4)); elseif (y <= -7.5e-46) tmp = j * (y0 * (y3 * y5)); elseif (y <= 1.25e-124) tmp = b * (j * (x * -y0)); else tmp = x * (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -6.2e+149], N[(x * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.2e+40], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-46], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e-124], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{+40}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-46}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-124}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -6.19999999999999974e149Initial program 42.3%
Taylor expanded in y around inf 34.6%
Taylor expanded in x around inf 50.6%
Taylor expanded in a around inf 50.9%
associate-*r*50.9%
Simplified50.9%
if -6.19999999999999974e149 < y < -5.2000000000000001e40Initial program 18.7%
Taylor expanded in j around inf 45.1%
Taylor expanded in b around inf 37.7%
Taylor expanded in t around inf 30.5%
*-commutative30.5%
Simplified30.5%
if -5.2000000000000001e40 < y < -7.50000000000000027e-46Initial program 14.3%
Taylor expanded in j around inf 47.8%
Taylor expanded in y3 around inf 33.8%
neg-mul-133.8%
distribute-rgt-neg-in33.8%
Simplified33.8%
Taylor expanded in y1 around 0 38.8%
if -7.50000000000000027e-46 < y < 1.2500000000000001e-124Initial program 31.0%
Taylor expanded in j around inf 42.4%
Taylor expanded in b around inf 25.0%
Taylor expanded in t around 0 21.1%
associate-*r*21.1%
mul-1-neg21.1%
*-commutative21.1%
Simplified21.1%
if 1.2500000000000001e-124 < y Initial program 33.0%
Taylor expanded in y around inf 39.2%
Taylor expanded in x around inf 40.8%
Taylor expanded in a around inf 35.3%
Final simplification31.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))))
(if (<= y -1.5e+26)
t_1
(if (<= y 1.1e-211)
(* j (* y0 (* y3 y5)))
(if (<= y 6e-21) (* b (* j (* t y4))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((x * y) * b);
double tmp;
if (y <= -1.5e+26) {
tmp = t_1;
} else if (y <= 1.1e-211) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 6e-21) {
tmp = b * (j * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((x * y) * b)
if (y <= (-1.5d+26)) then
tmp = t_1
else if (y <= 1.1d-211) then
tmp = j * (y0 * (y3 * y5))
else if (y <= 6d-21) then
tmp = b * (j * (t * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((x * y) * b);
double tmp;
if (y <= -1.5e+26) {
tmp = t_1;
} else if (y <= 1.1e-211) {
tmp = j * (y0 * (y3 * y5));
} else if (y <= 6e-21) {
tmp = b * (j * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((x * y) * b) tmp = 0 if y <= -1.5e+26: tmp = t_1 elif y <= 1.1e-211: tmp = j * (y0 * (y3 * y5)) elif y <= 6e-21: tmp = b * (j * (t * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(Float64(x * y) * b)) tmp = 0.0 if (y <= -1.5e+26) tmp = t_1; elseif (y <= 1.1e-211) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y <= 6e-21) tmp = Float64(b * Float64(j * Float64(t * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * ((x * y) * b); tmp = 0.0; if (y <= -1.5e+26) tmp = t_1; elseif (y <= 1.1e-211) tmp = j * (y0 * (y3 * y5)); elseif (y <= 6e-21) tmp = b * (j * (t * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+26], t$95$1, If[LessEqual[y, 1.1e-211], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-21], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-211}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-21}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.49999999999999999e26 or 5.99999999999999982e-21 < y Initial program 31.0%
Taylor expanded in y around inf 38.4%
Taylor expanded in x around inf 44.7%
Taylor expanded in a around inf 36.2%
*-commutative36.2%
Simplified36.2%
if -1.49999999999999999e26 < y < 1.09999999999999999e-211Initial program 33.1%
Taylor expanded in j around inf 41.4%
Taylor expanded in y3 around inf 29.3%
neg-mul-129.3%
distribute-rgt-neg-in29.3%
Simplified29.3%
Taylor expanded in y1 around 0 22.1%
if 1.09999999999999999e-211 < y < 5.99999999999999982e-21Initial program 20.5%
Taylor expanded in j around inf 41.9%
Taylor expanded in b around inf 29.5%
Taylor expanded in t around inf 22.0%
*-commutative22.0%
Simplified22.0%
Final simplification28.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= x -7.6e-127) (* a (* y (* x b))) (if (<= x 5.8e+95) (* b (* j (* t y4))) (* a (* (* x y) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -7.6e-127) {
tmp = a * (y * (x * b));
} else if (x <= 5.8e+95) {
tmp = b * (j * (t * y4));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-7.6d-127)) then
tmp = a * (y * (x * b))
else if (x <= 5.8d+95) then
tmp = b * (j * (t * y4))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -7.6e-127) {
tmp = a * (y * (x * b));
} else if (x <= 5.8e+95) {
tmp = b * (j * (t * y4));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -7.6e-127: tmp = a * (y * (x * b)) elif x <= 5.8e+95: tmp = b * (j * (t * y4)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -7.6e-127) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 5.8e+95) tmp = Float64(b * Float64(j * Float64(t * y4))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -7.6e-127) tmp = a * (y * (x * b)); elseif (x <= 5.8e+95) tmp = b * (j * (t * y4)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -7.6e-127], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e+95], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.6 \cdot 10^{-127}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+95}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -7.60000000000000005e-127Initial program 27.5%
Taylor expanded in y around inf 30.3%
Taylor expanded in x around inf 27.8%
Taylor expanded in a around inf 21.6%
associate-*r*22.7%
Simplified22.7%
if -7.60000000000000005e-127 < x < 5.80000000000000027e95Initial program 35.4%
Taylor expanded in j around inf 36.3%
Taylor expanded in b around inf 23.1%
Taylor expanded in t around inf 21.3%
*-commutative21.3%
Simplified21.3%
if 5.80000000000000027e95 < x Initial program 21.7%
Taylor expanded in y around inf 26.3%
Taylor expanded in x around inf 46.6%
Taylor expanded in a around inf 48.8%
*-commutative48.8%
Simplified48.8%
Final simplification26.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* y (* x b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y * (x * b));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * (y * (x * b))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y * (x * b));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (y * (x * b))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(y * Float64(x * b))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (y * (x * b)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(y \cdot \left(x \cdot b\right)\right)
\end{array}
Initial program 30.2%
Taylor expanded in y around inf 34.1%
Taylor expanded in x around inf 28.2%
Taylor expanded in a around inf 20.8%
associate-*r*21.2%
Simplified21.2%
Final simplification21.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 30.2%
Taylor expanded in y around inf 34.1%
Taylor expanded in x around inf 28.2%
Taylor expanded in a around inf 20.8%
*-commutative20.8%
Simplified20.8%
Final simplification20.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2024091
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))