
(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 33 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 (- (* a y5) (* c y4)))
(t_2
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_3 (- (* x y2) (* z y3)))
(t_4
(*
y1
(+
(- (* y4 (- (* k y2) (* j y3))) (* a t_3))
(* i (- (* x j) (* z k)))))))
(if (<= j -4e+139)
t_2
(if (<= j -3.5e-52)
t_4
(if (<= j -6e-239)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_1)))
(if (<= j -1.7e-283)
(* y2 (* y5 (- (* t a) (* k y0))))
(if (<= j 5.2e-264)
(* i (* k (- (* y y5) (* z y1))))
(if (<= j 5.3e-236)
(* (* y1 y2) (- (* k y4) (* x a)))
(if (<= j 4.8e-182)
(*
y0
(+
(+ (* c t_3) (* y5 (- (* j y3) (* k y2))))
(* b (- (* z k) (* x j)))))
(if (<= j 9.5e-82)
t_4
(if (<= j 4.3e-7)
(* t (* y2 t_1))
(if (<= j 6.1e+44)
t_4
(if (<= j 4.2e+188)
(* y0 (* j (- (* y3 y5) (* x b))))
(if (<= j 1.7e+222)
(* b (* 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 = (a * y5) - (c * y4);
double t_2 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_3 = (x * y2) - (z * y3);
double t_4 = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * t_3)) + (i * ((x * j) - (z * k))));
double tmp;
if (j <= -4e+139) {
tmp = t_2;
} else if (j <= -3.5e-52) {
tmp = t_4;
} else if (j <= -6e-239) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (j <= -1.7e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 5.2e-264) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 5.3e-236) {
tmp = (y1 * y2) * ((k * y4) - (x * a));
} else if (j <= 4.8e-182) {
tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
} else if (j <= 9.5e-82) {
tmp = t_4;
} else if (j <= 4.3e-7) {
tmp = t * (y2 * t_1);
} else if (j <= 6.1e+44) {
tmp = t_4;
} else if (j <= 4.2e+188) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 1.7e+222) {
tmp = b * (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) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_3 = (x * y2) - (z * y3)
t_4 = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * t_3)) + (i * ((x * j) - (z * k))))
if (j <= (-4d+139)) then
tmp = t_2
else if (j <= (-3.5d-52)) then
tmp = t_4
else if (j <= (-6d-239)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1))
else if (j <= (-1.7d-283)) then
tmp = y2 * (y5 * ((t * a) - (k * y0)))
else if (j <= 5.2d-264) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (j <= 5.3d-236) then
tmp = (y1 * y2) * ((k * y4) - (x * a))
else if (j <= 4.8d-182) then
tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))))
else if (j <= 9.5d-82) then
tmp = t_4
else if (j <= 4.3d-7) then
tmp = t * (y2 * t_1)
else if (j <= 6.1d+44) then
tmp = t_4
else if (j <= 4.2d+188) then
tmp = y0 * (j * ((y3 * y5) - (x * b)))
else if (j <= 1.7d+222) then
tmp = b * (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 = (a * y5) - (c * y4);
double t_2 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_3 = (x * y2) - (z * y3);
double t_4 = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * t_3)) + (i * ((x * j) - (z * k))));
double tmp;
if (j <= -4e+139) {
tmp = t_2;
} else if (j <= -3.5e-52) {
tmp = t_4;
} else if (j <= -6e-239) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (j <= -1.7e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 5.2e-264) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 5.3e-236) {
tmp = (y1 * y2) * ((k * y4) - (x * a));
} else if (j <= 4.8e-182) {
tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
} else if (j <= 9.5e-82) {
tmp = t_4;
} else if (j <= 4.3e-7) {
tmp = t * (y2 * t_1);
} else if (j <= 6.1e+44) {
tmp = t_4;
} else if (j <= 4.2e+188) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 1.7e+222) {
tmp = b * (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 = (a * y5) - (c * y4) t_2 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_3 = (x * y2) - (z * y3) t_4 = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * t_3)) + (i * ((x * j) - (z * k)))) tmp = 0 if j <= -4e+139: tmp = t_2 elif j <= -3.5e-52: tmp = t_4 elif j <= -6e-239: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)) elif j <= -1.7e-283: tmp = y2 * (y5 * ((t * a) - (k * y0))) elif j <= 5.2e-264: tmp = i * (k * ((y * y5) - (z * y1))) elif j <= 5.3e-236: tmp = (y1 * y2) * ((k * y4) - (x * a)) elif j <= 4.8e-182: tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))) elif j <= 9.5e-82: tmp = t_4 elif j <= 4.3e-7: tmp = t * (y2 * t_1) elif j <= 6.1e+44: tmp = t_4 elif j <= 4.2e+188: tmp = y0 * (j * ((y3 * y5) - (x * b))) elif j <= 1.7e+222: tmp = b * (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(Float64(a * y5) - Float64(c * y4)) t_2 = 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_3 = Float64(Float64(x * y2) - Float64(z * y3)) t_4 = Float64(y1 * Float64(Float64(Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))) - Float64(a * t_3)) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))) tmp = 0.0 if (j <= -4e+139) tmp = t_2; elseif (j <= -3.5e-52) tmp = t_4; elseif (j <= -6e-239) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_1))); elseif (j <= -1.7e-283) tmp = Float64(y2 * Float64(y5 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (j <= 5.2e-264) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (j <= 5.3e-236) tmp = Float64(Float64(y1 * y2) * Float64(Float64(k * y4) - Float64(x * a))); elseif (j <= 4.8e-182) tmp = Float64(y0 * Float64(Float64(Float64(c * t_3) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))); elseif (j <= 9.5e-82) tmp = t_4; elseif (j <= 4.3e-7) tmp = Float64(t * Float64(y2 * t_1)); elseif (j <= 6.1e+44) tmp = t_4; elseif (j <= 4.2e+188) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (j <= 1.7e+222) tmp = Float64(b * 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 = (a * y5) - (c * y4); t_2 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_3 = (x * y2) - (z * y3); t_4 = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * t_3)) + (i * ((x * j) - (z * k)))); tmp = 0.0; if (j <= -4e+139) tmp = t_2; elseif (j <= -3.5e-52) tmp = t_4; elseif (j <= -6e-239) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)); elseif (j <= -1.7e-283) tmp = y2 * (y5 * ((t * a) - (k * y0))); elseif (j <= 5.2e-264) tmp = i * (k * ((y * y5) - (z * y1))); elseif (j <= 5.3e-236) tmp = (y1 * y2) * ((k * y4) - (x * a)); elseif (j <= 4.8e-182) tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))); elseif (j <= 9.5e-82) tmp = t_4; elseif (j <= 4.3e-7) tmp = t * (y2 * t_1); elseif (j <= 6.1e+44) tmp = t_4; elseif (j <= 4.2e+188) tmp = y0 * (j * ((y3 * y5) - (x * b))); elseif (j <= 1.7e+222) tmp = b * (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[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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$3 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y1 * N[(N[(N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4e+139], t$95$2, If[LessEqual[j, -3.5e-52], t$95$4, If[LessEqual[j, -6e-239], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.7e-283], N[(y2 * N[(y5 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e-264], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.3e-236], N[(N[(y1 * y2), $MachinePrecision] * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e-182], N[(y0 * N[(N[(N[(c * t$95$3), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e-82], t$95$4, If[LessEqual[j, 4.3e-7], N[(t * N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.1e+44], t$95$4, If[LessEqual[j, 4.2e+188], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.7e+222], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := 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_3 := x \cdot y2 - z \cdot y3\\
t_4 := y1 \cdot \left(\left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - a \cdot t_3\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;j \leq -4 \cdot 10^{+139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.5 \cdot 10^{-52}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq -6 \cdot 10^{-239}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t_1\right)\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-283}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{-264}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 5.3 \cdot 10^{-236}:\\
\;\;\;\;\left(y1 \cdot y2\right) \cdot \left(k \cdot y4 - x \cdot a\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{-182}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot t_3 + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{-82}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{-7}:\\
\;\;\;\;t \cdot \left(y2 \cdot t_1\right)\\
\mathbf{elif}\;j \leq 6.1 \cdot 10^{+44}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{+188}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+222}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -4.00000000000000013e139 or 1.70000000000000008e222 < j Initial program 19.7%
Taylor expanded in j around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
if -4.00000000000000013e139 < j < -3.5e-52 or 4.7999999999999997e-182 < j < 9.4999999999999996e-82 or 4.3000000000000001e-7 < j < 6.09999999999999983e44Initial program 26.3%
Taylor expanded in y1 around inf 54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
*-commutative54.4%
mul-1-neg54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
if -3.5e-52 < j < -5.9999999999999996e-239Initial program 38.6%
Taylor expanded in y2 around inf 57.2%
if -5.9999999999999996e-239 < j < -1.6999999999999999e-283Initial program 16.7%
Taylor expanded in y2 around inf 0.6%
Taylor expanded in y5 around -inf 67.4%
if -1.6999999999999999e-283 < j < 5.2000000000000004e-264Initial program 20.9%
Taylor expanded in k around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
mul-1-neg61.0%
Simplified61.0%
Taylor expanded in i around -inf 80.2%
if 5.2000000000000004e-264 < j < 5.3000000000000002e-236Initial program 0.0%
Taylor expanded in y2 around inf 1.1%
Taylor expanded in y1 around inf 76.5%
associate-*r*76.5%
*-commutative76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
if 5.3000000000000002e-236 < j < 4.7999999999999997e-182Initial program 58.2%
Taylor expanded in y0 around inf 71.2%
+-commutative71.2%
mul-1-neg71.2%
unsub-neg71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
if 9.4999999999999996e-82 < j < 4.3000000000000001e-7Initial program 26.0%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in t around inf 65.5%
if 6.09999999999999983e44 < j < 4.19999999999999973e188Initial program 26.9%
Taylor expanded in y0 around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
*-commutative53.7%
*-commutative53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in j around -inf 61.0%
associate-*r*64.0%
*-commutative64.0%
associate-*l*64.2%
+-commutative64.2%
mul-1-neg64.2%
unsub-neg64.2%
*-commutative64.2%
Simplified64.2%
if 4.19999999999999973e188 < j < 1.70000000000000008e222Initial program 0.0%
Taylor expanded in y4 around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in b around inf 80.8%
Final simplification64.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5)))
(t_2
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* t_1 (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(*
j
(+
(+ (* t t_1) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b 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 = (b * y4) - (i * y5);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
}
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 = (b * y4) - (i * y5);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * 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(b * y4) - Float64(i * y5)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t_1 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(j * Float64(Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * 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 = (b * y4) - (i * y5); t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * 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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(j * N[(N[(N[(t * t$95$1), $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]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t_1 \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(t \cdot t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 94.7%
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 j around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
*-commutative40.2%
Simplified40.2%
Final simplification55.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* z k) (* x j)))
(t_4
(*
j
(+
(+ (* t t_1) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_5 (- (* y1 y4) (* y0 y5)))
(t_6 (* k (+ (- (* y2 t_5) (* y t_1)) (* z (- (* b y0) (* i y1))))))
(t_7 (- (* k y2) (* j y3)))
(t_8 (- (* t j) (* y k))))
(if (<= k -1.45e+107)
t_6
(if (<= k -1.46e+60)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k -4.8e+36)
(* y1 (+ (- (* y4 t_7) (* a t_2)) (* i (- (* x j) (* z k)))))
(if (<= k -4.6e-41)
(* y0 (+ (+ (* c t_2) (* y5 (- (* j y3) (* k y2)))) (* b t_3)))
(if (<= k -6e-157)
(* y4 (+ (+ (* b t_8) (* y1 t_7)) (* c (- (* y y3) (* t y2)))))
(if (<= k 1.75e-235)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* z (- (* a y1) (* c y0))) (* j t_5))))
(if (<= k 1.8e-173)
t_4
(if (<= k 3.7e-116)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= k 1.7e-14)
(+
(* t_7 t_5)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_8))
(* y0 t_3))))
(if (<= k 6.2e+169) t_4 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 = (b * y4) - (i * y5);
double t_2 = (x * y2) - (z * y3);
double t_3 = (z * k) - (x * j);
double t_4 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_5 = (y1 * y4) - (y0 * y5);
double t_6 = k * (((y2 * t_5) - (y * t_1)) + (z * ((b * y0) - (i * y1))));
double t_7 = (k * y2) - (j * y3);
double t_8 = (t * j) - (y * k);
double tmp;
if (k <= -1.45e+107) {
tmp = t_6;
} else if (k <= -1.46e+60) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= -4.8e+36) {
tmp = y1 * (((y4 * t_7) - (a * t_2)) + (i * ((x * j) - (z * k))));
} else if (k <= -4.6e-41) {
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_3));
} else if (k <= -6e-157) {
tmp = y4 * (((b * t_8) + (y1 * t_7)) + (c * ((y * y3) - (t * y2))));
} else if (k <= 1.75e-235) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_5)));
} else if (k <= 1.8e-173) {
tmp = t_4;
} else if (k <= 3.7e-116) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (k <= 1.7e-14) {
tmp = (t_7 * t_5) + (b * (((a * ((x * y) - (z * t))) + (y4 * t_8)) + (y0 * t_3)));
} else if (k <= 6.2e+169) {
tmp = t_4;
} 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) :: t_7
real(8) :: t_8
real(8) :: tmp
t_1 = (b * y4) - (i * y5)
t_2 = (x * y2) - (z * y3)
t_3 = (z * k) - (x * j)
t_4 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_5 = (y1 * y4) - (y0 * y5)
t_6 = k * (((y2 * t_5) - (y * t_1)) + (z * ((b * y0) - (i * y1))))
t_7 = (k * y2) - (j * y3)
t_8 = (t * j) - (y * k)
if (k <= (-1.45d+107)) then
tmp = t_6
else if (k <= (-1.46d+60)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= (-4.8d+36)) then
tmp = y1 * (((y4 * t_7) - (a * t_2)) + (i * ((x * j) - (z * k))))
else if (k <= (-4.6d-41)) then
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_3))
else if (k <= (-6d-157)) then
tmp = y4 * (((b * t_8) + (y1 * t_7)) + (c * ((y * y3) - (t * y2))))
else if (k <= 1.75d-235) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_5)))
else if (k <= 1.8d-173) then
tmp = t_4
else if (k <= 3.7d-116) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (k <= 1.7d-14) then
tmp = (t_7 * t_5) + (b * (((a * ((x * y) - (z * t))) + (y4 * t_8)) + (y0 * t_3)))
else if (k <= 6.2d+169) then
tmp = t_4
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 = (b * y4) - (i * y5);
double t_2 = (x * y2) - (z * y3);
double t_3 = (z * k) - (x * j);
double t_4 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_5 = (y1 * y4) - (y0 * y5);
double t_6 = k * (((y2 * t_5) - (y * t_1)) + (z * ((b * y0) - (i * y1))));
double t_7 = (k * y2) - (j * y3);
double t_8 = (t * j) - (y * k);
double tmp;
if (k <= -1.45e+107) {
tmp = t_6;
} else if (k <= -1.46e+60) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= -4.8e+36) {
tmp = y1 * (((y4 * t_7) - (a * t_2)) + (i * ((x * j) - (z * k))));
} else if (k <= -4.6e-41) {
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_3));
} else if (k <= -6e-157) {
tmp = y4 * (((b * t_8) + (y1 * t_7)) + (c * ((y * y3) - (t * y2))));
} else if (k <= 1.75e-235) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_5)));
} else if (k <= 1.8e-173) {
tmp = t_4;
} else if (k <= 3.7e-116) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (k <= 1.7e-14) {
tmp = (t_7 * t_5) + (b * (((a * ((x * y) - (z * t))) + (y4 * t_8)) + (y0 * t_3)));
} else if (k <= 6.2e+169) {
tmp = t_4;
} 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 = (b * y4) - (i * y5) t_2 = (x * y2) - (z * y3) t_3 = (z * k) - (x * j) t_4 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_5 = (y1 * y4) - (y0 * y5) t_6 = k * (((y2 * t_5) - (y * t_1)) + (z * ((b * y0) - (i * y1)))) t_7 = (k * y2) - (j * y3) t_8 = (t * j) - (y * k) tmp = 0 if k <= -1.45e+107: tmp = t_6 elif k <= -1.46e+60: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= -4.8e+36: tmp = y1 * (((y4 * t_7) - (a * t_2)) + (i * ((x * j) - (z * k)))) elif k <= -4.6e-41: tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_3)) elif k <= -6e-157: tmp = y4 * (((b * t_8) + (y1 * t_7)) + (c * ((y * y3) - (t * y2)))) elif k <= 1.75e-235: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_5))) elif k <= 1.8e-173: tmp = t_4 elif k <= 3.7e-116: tmp = t * (y2 * ((a * y5) - (c * y4))) elif k <= 1.7e-14: tmp = (t_7 * t_5) + (b * (((a * ((x * y) - (z * t))) + (y4 * t_8)) + (y0 * t_3))) elif k <= 6.2e+169: tmp = t_4 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(b * y4) - Float64(i * y5)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(z * k) - Float64(x * j)) t_4 = Float64(j * Float64(Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) t_5 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_6 = Float64(k * Float64(Float64(Float64(y2 * t_5) - Float64(y * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))) t_7 = Float64(Float64(k * y2) - Float64(j * y3)) t_8 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (k <= -1.45e+107) tmp = t_6; elseif (k <= -1.46e+60) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= -4.8e+36) tmp = Float64(y1 * Float64(Float64(Float64(y4 * t_7) - Float64(a * t_2)) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); elseif (k <= -4.6e-41) tmp = Float64(y0 * Float64(Float64(Float64(c * t_2) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * t_3))); elseif (k <= -6e-157) tmp = Float64(y4 * Float64(Float64(Float64(b * t_8) + Float64(y1 * t_7)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (k <= 1.75e-235) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(j * t_5)))); elseif (k <= 1.8e-173) tmp = t_4; elseif (k <= 3.7e-116) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (k <= 1.7e-14) tmp = Float64(Float64(t_7 * t_5) + Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_8)) + Float64(y0 * t_3)))); elseif (k <= 6.2e+169) tmp = t_4; 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 = (b * y4) - (i * y5); t_2 = (x * y2) - (z * y3); t_3 = (z * k) - (x * j); t_4 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_5 = (y1 * y4) - (y0 * y5); t_6 = k * (((y2 * t_5) - (y * t_1)) + (z * ((b * y0) - (i * y1)))); t_7 = (k * y2) - (j * y3); t_8 = (t * j) - (y * k); tmp = 0.0; if (k <= -1.45e+107) tmp = t_6; elseif (k <= -1.46e+60) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= -4.8e+36) tmp = y1 * (((y4 * t_7) - (a * t_2)) + (i * ((x * j) - (z * k)))); elseif (k <= -4.6e-41) tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_3)); elseif (k <= -6e-157) tmp = y4 * (((b * t_8) + (y1 * t_7)) + (c * ((y * y3) - (t * y2)))); elseif (k <= 1.75e-235) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_5))); elseif (k <= 1.8e-173) tmp = t_4; elseif (k <= 3.7e-116) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (k <= 1.7e-14) tmp = (t_7 * t_5) + (b * (((a * ((x * y) - (z * t))) + (y4 * t_8)) + (y0 * t_3))); elseif (k <= 6.2e+169) tmp = t_4; 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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(N[(t * t$95$1), $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[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(k * N[(N[(N[(y2 * t$95$5), $MachinePrecision] - N[(y * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.45e+107], t$95$6, If[LessEqual[k, -1.46e+60], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.8e+36], N[(y1 * N[(N[(N[(y4 * t$95$7), $MachinePrecision] - N[(a * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.6e-41], N[(y0 * N[(N[(N[(c * t$95$2), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -6e-157], N[(y4 * N[(N[(N[(b * t$95$8), $MachinePrecision] + N[(y1 * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.75e-235], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.8e-173], t$95$4, If[LessEqual[k, 3.7e-116], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.7e-14], N[(N[(t$95$7 * t$95$5), $MachinePrecision] + N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$8), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.2e+169], t$95$4, t$95$6]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := z \cdot k - x \cdot j\\
t_4 := j \cdot \left(\left(t \cdot t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_5 := y1 \cdot y4 - y0 \cdot y5\\
t_6 := k \cdot \left(\left(y2 \cdot t_5 - y \cdot t_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_7 := k \cdot y2 - j \cdot y3\\
t_8 := t \cdot j - y \cdot k\\
\mathbf{if}\;k \leq -1.45 \cdot 10^{+107}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;k \leq -1.46 \cdot 10^{+60}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq -4.8 \cdot 10^{+36}:\\
\;\;\;\;y1 \cdot \left(\left(y4 \cdot t_7 - a \cdot t_2\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq -4.6 \cdot 10^{-41}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot t_2 + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot t_3\right)\\
\mathbf{elif}\;k \leq -6 \cdot 10^{-157}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_8 + y1 \cdot t_7\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 1.75 \cdot 10^{-235}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) - j \cdot t_5\right)\right)\\
\mathbf{elif}\;k \leq 1.8 \cdot 10^{-173}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;k \leq 3.7 \cdot 10^{-116}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 1.7 \cdot 10^{-14}:\\
\;\;\;\;t_7 \cdot t_5 + b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_8\right) + y0 \cdot t_3\right)\\
\mathbf{elif}\;k \leq 6.2 \cdot 10^{+169}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\end{array}
if k < -1.44999999999999994e107 or 6.2e169 < k Initial program 28.9%
Taylor expanded in k around inf 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
mul-1-neg66.8%
Simplified66.8%
if -1.44999999999999994e107 < k < -1.4600000000000001e60Initial program 25.0%
Taylor expanded in y2 around inf 62.5%
Taylor expanded in c around inf 75.8%
if -1.4600000000000001e60 < k < -4.79999999999999985e36Initial program 74.6%
Taylor expanded in y1 around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
*-commutative75.5%
mul-1-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -4.79999999999999985e36 < k < -4.6000000000000002e-41Initial program 31.3%
Taylor expanded in y0 around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
*-commutative63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
if -4.6000000000000002e-41 < k < -6e-157Initial program 23.3%
Taylor expanded in y4 around inf 60.3%
if -6e-157 < k < 1.7499999999999999e-235Initial program 24.8%
Taylor expanded in y3 around -inf 51.5%
if 1.7499999999999999e-235 < k < 1.79999999999999986e-173 or 1.70000000000000001e-14 < k < 6.2e169Initial program 20.5%
Taylor expanded in j around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
if 1.79999999999999986e-173 < k < 3.7000000000000002e-116Initial program 20.0%
Taylor expanded in y2 around inf 30.3%
Taylor expanded in t around inf 60.4%
if 3.7000000000000002e-116 < k < 1.70000000000000001e-14Initial program 29.1%
Taylor expanded in b around inf 58.6%
Final simplification63.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y0 y5) (* y1 y4)))
(t_2 (* x (* a (- (* y b) (* y1 y2)))))
(t_3 (* y3 (+ (* j t_1) (* y (- (* c y4) (* a y5))))))
(t_4
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 t_1))
(* x (- (* i y1) (* b y0))))))
(t_5 (- (* x y2) (* z y3))))
(if (<= k -9e+112)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -2.1e-71)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k -1.9e-100)
t_3
(if (<= k -1.28e-151)
(* y0 (* y3 (* j y5)))
(if (<= k -5e-173)
t_2
(if (<= k 2.75e-253)
t_3
(if (<= k 7.8e-171)
t_4
(if (<= k 1.6e-129)
(* t_5 (* c y0))
(if (<= k 5.6e-73)
t_2
(if (<= k 2.6e-15)
(* c (* y0 t_5))
(if (<= k 1.25e+182)
t_4
(* y0 (* y2 (- (* x c) (* k 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 = (y0 * y5) - (y1 * y4);
double t_2 = x * (a * ((y * b) - (y1 * y2)));
double t_3 = y3 * ((j * t_1) + (y * ((c * y4) - (a * y5))));
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_1)) + (x * ((i * y1) - (b * y0))));
double t_5 = (x * y2) - (z * y3);
double tmp;
if (k <= -9e+112) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -2.1e-71) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= -1.9e-100) {
tmp = t_3;
} else if (k <= -1.28e-151) {
tmp = y0 * (y3 * (j * y5));
} else if (k <= -5e-173) {
tmp = t_2;
} else if (k <= 2.75e-253) {
tmp = t_3;
} else if (k <= 7.8e-171) {
tmp = t_4;
} else if (k <= 1.6e-129) {
tmp = t_5 * (c * y0);
} else if (k <= 5.6e-73) {
tmp = t_2;
} else if (k <= 2.6e-15) {
tmp = c * (y0 * t_5);
} else if (k <= 1.25e+182) {
tmp = t_4;
} else {
tmp = y0 * (y2 * ((x * c) - (k * 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) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (y0 * y5) - (y1 * y4)
t_2 = x * (a * ((y * b) - (y1 * y2)))
t_3 = y3 * ((j * t_1) + (y * ((c * y4) - (a * y5))))
t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_1)) + (x * ((i * y1) - (b * y0))))
t_5 = (x * y2) - (z * y3)
if (k <= (-9d+112)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-2.1d-71)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= (-1.9d-100)) then
tmp = t_3
else if (k <= (-1.28d-151)) then
tmp = y0 * (y3 * (j * y5))
else if (k <= (-5d-173)) then
tmp = t_2
else if (k <= 2.75d-253) then
tmp = t_3
else if (k <= 7.8d-171) then
tmp = t_4
else if (k <= 1.6d-129) then
tmp = t_5 * (c * y0)
else if (k <= 5.6d-73) then
tmp = t_2
else if (k <= 2.6d-15) then
tmp = c * (y0 * t_5)
else if (k <= 1.25d+182) then
tmp = t_4
else
tmp = y0 * (y2 * ((x * c) - (k * 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 = (y0 * y5) - (y1 * y4);
double t_2 = x * (a * ((y * b) - (y1 * y2)));
double t_3 = y3 * ((j * t_1) + (y * ((c * y4) - (a * y5))));
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_1)) + (x * ((i * y1) - (b * y0))));
double t_5 = (x * y2) - (z * y3);
double tmp;
if (k <= -9e+112) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -2.1e-71) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= -1.9e-100) {
tmp = t_3;
} else if (k <= -1.28e-151) {
tmp = y0 * (y3 * (j * y5));
} else if (k <= -5e-173) {
tmp = t_2;
} else if (k <= 2.75e-253) {
tmp = t_3;
} else if (k <= 7.8e-171) {
tmp = t_4;
} else if (k <= 1.6e-129) {
tmp = t_5 * (c * y0);
} else if (k <= 5.6e-73) {
tmp = t_2;
} else if (k <= 2.6e-15) {
tmp = c * (y0 * t_5);
} else if (k <= 1.25e+182) {
tmp = t_4;
} else {
tmp = y0 * (y2 * ((x * c) - (k * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y0 * y5) - (y1 * y4) t_2 = x * (a * ((y * b) - (y1 * y2))) t_3 = y3 * ((j * t_1) + (y * ((c * y4) - (a * y5)))) t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_1)) + (x * ((i * y1) - (b * y0)))) t_5 = (x * y2) - (z * y3) tmp = 0 if k <= -9e+112: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -2.1e-71: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= -1.9e-100: tmp = t_3 elif k <= -1.28e-151: tmp = y0 * (y3 * (j * y5)) elif k <= -5e-173: tmp = t_2 elif k <= 2.75e-253: tmp = t_3 elif k <= 7.8e-171: tmp = t_4 elif k <= 1.6e-129: tmp = t_5 * (c * y0) elif k <= 5.6e-73: tmp = t_2 elif k <= 2.6e-15: tmp = c * (y0 * t_5) elif k <= 1.25e+182: tmp = t_4 else: tmp = y0 * (y2 * ((x * c) - (k * 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(y0 * y5) - Float64(y1 * y4)) t_2 = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))) t_3 = Float64(y3 * Float64(Float64(j * t_1) + Float64(y * Float64(Float64(c * y4) - Float64(a * y5))))) t_4 = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * t_1)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) t_5 = Float64(Float64(x * y2) - Float64(z * y3)) tmp = 0.0 if (k <= -9e+112) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -2.1e-71) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= -1.9e-100) tmp = t_3; elseif (k <= -1.28e-151) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); elseif (k <= -5e-173) tmp = t_2; elseif (k <= 2.75e-253) tmp = t_3; elseif (k <= 7.8e-171) tmp = t_4; elseif (k <= 1.6e-129) tmp = Float64(t_5 * Float64(c * y0)); elseif (k <= 5.6e-73) tmp = t_2; elseif (k <= 2.6e-15) tmp = Float64(c * Float64(y0 * t_5)); elseif (k <= 1.25e+182) tmp = t_4; else tmp = Float64(y0 * Float64(y2 * Float64(Float64(x * c) - Float64(k * 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 = (y0 * y5) - (y1 * y4); t_2 = x * (a * ((y * b) - (y1 * y2))); t_3 = y3 * ((j * t_1) + (y * ((c * y4) - (a * y5)))); t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_1)) + (x * ((i * y1) - (b * y0)))); t_5 = (x * y2) - (z * y3); tmp = 0.0; if (k <= -9e+112) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -2.1e-71) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= -1.9e-100) tmp = t_3; elseif (k <= -1.28e-151) tmp = y0 * (y3 * (j * y5)); elseif (k <= -5e-173) tmp = t_2; elseif (k <= 2.75e-253) tmp = t_3; elseif (k <= 7.8e-171) tmp = t_4; elseif (k <= 1.6e-129) tmp = t_5 * (c * y0); elseif (k <= 5.6e-73) tmp = t_2; elseif (k <= 2.6e-15) tmp = c * (y0 * t_5); elseif (k <= 1.25e+182) tmp = t_4; else tmp = y0 * (y2 * ((x * c) - (k * 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[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y3 * N[(N[(j * t$95$1), $MachinePrecision] + N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -9e+112], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.1e-71], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.9e-100], t$95$3, If[LessEqual[k, -1.28e-151], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -5e-173], t$95$2, If[LessEqual[k, 2.75e-253], t$95$3, If[LessEqual[k, 7.8e-171], t$95$4, If[LessEqual[k, 1.6e-129], N[(t$95$5 * N[(c * y0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.6e-73], t$95$2, If[LessEqual[k, 2.6e-15], N[(c * N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.25e+182], t$95$4, N[(y0 * N[(y2 * N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot y5 - y1 \cdot y4\\
t_2 := x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
t_3 := y3 \cdot \left(j \cdot t_1 + y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_4 := j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot t_1\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_5 := x \cdot y2 - z \cdot y3\\
\mathbf{if}\;k \leq -9 \cdot 10^{+112}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -2.1 \cdot 10^{-71}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq -1.9 \cdot 10^{-100}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq -1.28 \cdot 10^{-151}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq -5 \cdot 10^{-173}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 2.75 \cdot 10^{-253}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 7.8 \cdot 10^{-171}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;k \leq 1.6 \cdot 10^{-129}:\\
\;\;\;\;t_5 \cdot \left(c \cdot y0\right)\\
\mathbf{elif}\;k \leq 5.6 \cdot 10^{-73}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 2.6 \cdot 10^{-15}:\\
\;\;\;\;c \cdot \left(y0 \cdot t_5\right)\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{+182}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(x \cdot c - k \cdot y5\right)\right)\\
\end{array}
\end{array}
if k < -8.9999999999999998e112Initial program 36.6%
Taylor expanded in k around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
mul-1-neg63.5%
Simplified63.5%
Taylor expanded in i around -inf 64.0%
if -8.9999999999999998e112 < k < -2.1000000000000001e-71Initial program 33.3%
Taylor expanded in y2 around inf 49.3%
Taylor expanded in c around inf 54.8%
if -2.1000000000000001e-71 < k < -1.89999999999999999e-100 or -5.0000000000000002e-173 < k < 2.74999999999999987e-253Initial program 23.8%
Taylor expanded in y4 around inf 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in y3 around -inf 55.2%
if -1.89999999999999999e-100 < k < -1.28000000000000005e-151Initial program 28.6%
Taylor expanded in j around inf 15.7%
+-commutative15.7%
mul-1-neg15.7%
unsub-neg15.7%
*-commutative15.7%
Simplified15.7%
Taylor expanded in y3 around -inf 29.2%
mul-1-neg29.2%
associate-*r*29.2%
distribute-lft-neg-in29.2%
*-commutative29.2%
distribute-rgt-neg-in29.2%
Simplified29.2%
Taylor expanded in y1 around 0 31.0%
*-commutative31.0%
*-commutative31.0%
associate-*l*44.7%
Simplified44.7%
Taylor expanded in y3 around 0 31.0%
*-commutative31.0%
associate-*l*58.3%
associate-*l*58.3%
*-commutative58.3%
Simplified58.3%
if -1.28000000000000005e-151 < k < -5.0000000000000002e-173 or 1.6000000000000001e-129 < k < 5.60000000000000023e-73Initial program 22.2%
Simplified22.2%
Taylor expanded in a around inf 55.6%
Taylor expanded in x around inf 62.2%
*-commutative62.2%
associate-*l*67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
Simplified67.8%
if 2.74999999999999987e-253 < k < 7.7999999999999997e-171 or 2.60000000000000004e-15 < k < 1.24999999999999993e182Initial program 19.2%
Taylor expanded in j around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
Simplified67.7%
if 7.7999999999999997e-171 < k < 1.6000000000000001e-129Initial program 16.7%
Taylor expanded in y0 around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in c around inf 67.7%
associate-*r*83.6%
Simplified83.6%
if 5.60000000000000023e-73 < k < 2.60000000000000004e-15Initial program 38.3%
Taylor expanded in y0 around inf 24.8%
+-commutative24.8%
mul-1-neg24.8%
unsub-neg24.8%
*-commutative24.8%
*-commutative24.8%
*-commutative24.8%
*-commutative24.8%
Simplified24.8%
Taylor expanded in c around inf 47.9%
if 1.24999999999999993e182 < k Initial program 16.1%
Taylor expanded in y2 around inf 57.9%
Taylor expanded in y0 around -inf 63.7%
mul-1-neg63.7%
*-commutative63.7%
distribute-rgt-neg-in63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Final simplification61.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_2 (- (* a y5) (* c y4)))
(t_3
(*
y0
(+
(+ (* c (- (* x y2) (* z y3))) (* y5 (- (* j y3) (* k y2))))
(* b (- (* z k) (* x j))))))
(t_4 (- (* t j) (* y k))))
(if (<= j -1.15e+140)
t_1
(if (<= j -2.25e+60)
(* (- (* y2 y4) (* z i)) (* k y1))
(if (<= j -2.8e-52)
t_3
(if (<= j -1.25e-239)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_2)))
(if (<= j -8.5e-283)
(* y2 (* y5 (- (* t a) (* k y0))))
(if (<= j 9.8e-256)
(* i (* k (- (* y y5) (* z y1))))
(if (<= j 2.7e-110)
t_3
(if (<= j 6.5e-7)
(* t (* y2 t_2))
(if (<= j 4e+59)
(*
y4
(+
(+ (* b t_4) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= j 2.05e+188)
(* y0 (* j (- (* y3 y5) (* x b))))
(if (<= j 4.3e+222) (* b (* y4 t_4)) 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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_2 = (a * y5) - (c * y4);
double t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
double t_4 = (t * j) - (y * k);
double tmp;
if (j <= -1.15e+140) {
tmp = t_1;
} else if (j <= -2.25e+60) {
tmp = ((y2 * y4) - (z * i)) * (k * y1);
} else if (j <= -2.8e-52) {
tmp = t_3;
} else if (j <= -1.25e-239) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (j <= -8.5e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 9.8e-256) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 2.7e-110) {
tmp = t_3;
} else if (j <= 6.5e-7) {
tmp = t * (y2 * t_2);
} else if (j <= 4e+59) {
tmp = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (j <= 2.05e+188) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 4.3e+222) {
tmp = b * (y4 * t_4);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_2 = (a * y5) - (c * y4)
t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))))
t_4 = (t * j) - (y * k)
if (j <= (-1.15d+140)) then
tmp = t_1
else if (j <= (-2.25d+60)) then
tmp = ((y2 * y4) - (z * i)) * (k * y1)
else if (j <= (-2.8d-52)) then
tmp = t_3
else if (j <= (-1.25d-239)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (j <= (-8.5d-283)) then
tmp = y2 * (y5 * ((t * a) - (k * y0)))
else if (j <= 9.8d-256) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (j <= 2.7d-110) then
tmp = t_3
else if (j <= 6.5d-7) then
tmp = t * (y2 * t_2)
else if (j <= 4d+59) then
tmp = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (j <= 2.05d+188) then
tmp = y0 * (j * ((y3 * y5) - (x * b)))
else if (j <= 4.3d+222) then
tmp = b * (y4 * t_4)
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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_2 = (a * y5) - (c * y4);
double t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
double t_4 = (t * j) - (y * k);
double tmp;
if (j <= -1.15e+140) {
tmp = t_1;
} else if (j <= -2.25e+60) {
tmp = ((y2 * y4) - (z * i)) * (k * y1);
} else if (j <= -2.8e-52) {
tmp = t_3;
} else if (j <= -1.25e-239) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (j <= -8.5e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 9.8e-256) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 2.7e-110) {
tmp = t_3;
} else if (j <= 6.5e-7) {
tmp = t * (y2 * t_2);
} else if (j <= 4e+59) {
tmp = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (j <= 2.05e+188) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 4.3e+222) {
tmp = b * (y4 * t_4);
} 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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_2 = (a * y5) - (c * y4) t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))) t_4 = (t * j) - (y * k) tmp = 0 if j <= -1.15e+140: tmp = t_1 elif j <= -2.25e+60: tmp = ((y2 * y4) - (z * i)) * (k * y1) elif j <= -2.8e-52: tmp = t_3 elif j <= -1.25e-239: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif j <= -8.5e-283: tmp = y2 * (y5 * ((t * a) - (k * y0))) elif j <= 9.8e-256: tmp = i * (k * ((y * y5) - (z * y1))) elif j <= 2.7e-110: tmp = t_3 elif j <= 6.5e-7: tmp = t * (y2 * t_2) elif j <= 4e+59: tmp = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif j <= 2.05e+188: tmp = y0 * (j * ((y3 * y5) - (x * b))) elif j <= 4.3e+222: tmp = b * (y4 * t_4) 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(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_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(y0 * Float64(Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))) t_4 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (j <= -1.15e+140) tmp = t_1; elseif (j <= -2.25e+60) tmp = Float64(Float64(Float64(y2 * y4) - Float64(z * i)) * Float64(k * y1)); elseif (j <= -2.8e-52) tmp = t_3; elseif (j <= -1.25e-239) 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 (j <= -8.5e-283) tmp = Float64(y2 * Float64(y5 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (j <= 9.8e-256) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (j <= 2.7e-110) tmp = t_3; elseif (j <= 6.5e-7) tmp = Float64(t * Float64(y2 * t_2)); elseif (j <= 4e+59) tmp = Float64(y4 * Float64(Float64(Float64(b * t_4) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (j <= 2.05e+188) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (j <= 4.3e+222) tmp = Float64(b * Float64(y4 * t_4)); 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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_2 = (a * y5) - (c * y4); t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))); t_4 = (t * j) - (y * k); tmp = 0.0; if (j <= -1.15e+140) tmp = t_1; elseif (j <= -2.25e+60) tmp = ((y2 * y4) - (z * i)) * (k * y1); elseif (j <= -2.8e-52) tmp = t_3; elseif (j <= -1.25e-239) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (j <= -8.5e-283) tmp = y2 * (y5 * ((t * a) - (k * y0))); elseif (j <= 9.8e-256) tmp = i * (k * ((y * y5) - (z * y1))); elseif (j <= 2.7e-110) tmp = t_3; elseif (j <= 6.5e-7) tmp = t * (y2 * t_2); elseif (j <= 4e+59) tmp = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (j <= 2.05e+188) tmp = y0 * (j * ((y3 * y5) - (x * b))); elseif (j <= 4.3e+222) tmp = b * (y4 * t_4); 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[(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$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * N[(N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.15e+140], t$95$1, If[LessEqual[j, -2.25e+60], N[(N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision] * N[(k * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.8e-52], t$95$3, If[LessEqual[j, -1.25e-239], 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[j, -8.5e-283], N[(y2 * N[(y5 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.8e-256], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.7e-110], t$95$3, If[LessEqual[j, 6.5e-7], N[(t * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e+59], N[(y4 * N[(N[(N[(b * t$95$4), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.05e+188], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.3e+222], N[(b * N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 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_2 := a \cdot y5 - c \cdot y4\\
t_3 := y0 \cdot \left(\left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_4 := t \cdot j - y \cdot k\\
\mathbf{if}\;j \leq -1.15 \cdot 10^{+140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.25 \cdot 10^{+60}:\\
\;\;\;\;\left(y2 \cdot y4 - z \cdot i\right) \cdot \left(k \cdot y1\right)\\
\mathbf{elif}\;j \leq -2.8 \cdot 10^{-52}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -1.25 \cdot 10^{-239}:\\
\;\;\;\;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}\;j \leq -8.5 \cdot 10^{-283}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;j \leq 9.8 \cdot 10^{-256}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 2.7 \cdot 10^{-110}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{-7}:\\
\;\;\;\;t \cdot \left(y2 \cdot t_2\right)\\
\mathbf{elif}\;j \leq 4 \cdot 10^{+59}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_4 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq 2.05 \cdot 10^{+188}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{+222}:\\
\;\;\;\;b \cdot \left(y4 \cdot t_4\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -1.14999999999999995e140 or 4.2999999999999999e222 < j Initial program 19.7%
Taylor expanded in j around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
if -1.14999999999999995e140 < j < -2.25000000000000006e60Initial program 20.0%
Taylor expanded in k around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
mul-1-neg60.0%
Simplified60.0%
Taylor expanded in y1 around inf 61.1%
associate-*r*55.2%
*-commutative55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
if -2.25000000000000006e60 < j < -2.79999999999999995e-52 or 9.79999999999999993e-256 < j < 2.6999999999999998e-110Initial program 34.8%
Taylor expanded in y0 around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
*-commutative51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
if -2.79999999999999995e-52 < j < -1.25e-239Initial program 38.6%
Taylor expanded in y2 around inf 57.2%
if -1.25e-239 < j < -8.49999999999999997e-283Initial program 16.7%
Taylor expanded in y2 around inf 0.6%
Taylor expanded in y5 around -inf 67.4%
if -8.49999999999999997e-283 < j < 9.79999999999999993e-256Initial program 17.4%
Taylor expanded in k around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
mul-1-neg51.2%
Simplified51.2%
Taylor expanded in i around -inf 75.0%
if 2.6999999999999998e-110 < j < 6.50000000000000024e-7Initial program 25.0%
Taylor expanded in y2 around inf 43.9%
Taylor expanded in t around inf 56.7%
if 6.50000000000000024e-7 < j < 3.99999999999999989e59Initial program 25.0%
Taylor expanded in y4 around inf 69.0%
if 3.99999999999999989e59 < j < 2.05e188Initial program 23.4%
Taylor expanded in y0 around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
*-commutative54.0%
*-commutative54.0%
*-commutative54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in j around -inf 62.3%
associate-*r*62.2%
*-commutative62.2%
associate-*l*65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
if 2.05e188 < j < 4.2999999999999999e222Initial program 0.0%
Taylor expanded in y4 around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in b around inf 80.8%
Final simplification63.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* b y4) (* i y5)))
(t_3
(*
j
(+
(+ (* t t_2) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_4 (- (* a y5) (* c y4)))
(t_5 (- (* t j) (* y k)))
(t_6
(*
y0
(+
(+ (* c (- (* x y2) (* z y3))) (* y5 (- (* j y3) (* k y2))))
(* b (- (* z k) (* x j)))))))
(if (<= j -8.5e+138)
t_3
(if (<= j -9.5e+60)
(* k (+ (- (* y2 t_1) (* y t_2)) (* z (- (* b y0) (* i y1)))))
(if (<= j -2.85e-52)
t_6
(if (<= j -2.2e-239)
(* y2 (+ (+ (* k t_1) (* x (- (* c y0) (* a y1)))) (* t t_4)))
(if (<= j -5e-283)
(* y2 (* y5 (- (* t a) (* k y0))))
(if (<= j 3.5e-256)
(* i (* k (- (* y y5) (* z y1))))
(if (<= j 7e-110)
t_6
(if (<= j 6.4e-7)
(* t (* y2 t_4))
(if (<= j 1.95e+59)
(*
y4
(+
(+ (* b t_5) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= j 4.2e+188)
(* y0 (* j (- (* y3 y5) (* x b))))
(if (<= j 4.6e+223) (* b (* y4 t_5)) t_3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (b * y4) - (i * y5);
double t_3 = j * (((t * t_2) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_4 = (a * y5) - (c * y4);
double t_5 = (t * j) - (y * k);
double t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
double tmp;
if (j <= -8.5e+138) {
tmp = t_3;
} else if (j <= -9.5e+60) {
tmp = k * (((y2 * t_1) - (y * t_2)) + (z * ((b * y0) - (i * y1))));
} else if (j <= -2.85e-52) {
tmp = t_6;
} else if (j <= -2.2e-239) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_4));
} else if (j <= -5e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 3.5e-256) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 7e-110) {
tmp = t_6;
} else if (j <= 6.4e-7) {
tmp = t * (y2 * t_4);
} else if (j <= 1.95e+59) {
tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (j <= 4.2e+188) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 4.6e+223) {
tmp = b * (y4 * t_5);
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (y1 * y4) - (y0 * y5)
t_2 = (b * y4) - (i * y5)
t_3 = j * (((t * t_2) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_4 = (a * y5) - (c * y4)
t_5 = (t * j) - (y * k)
t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))))
if (j <= (-8.5d+138)) then
tmp = t_3
else if (j <= (-9.5d+60)) then
tmp = k * (((y2 * t_1) - (y * t_2)) + (z * ((b * y0) - (i * y1))))
else if (j <= (-2.85d-52)) then
tmp = t_6
else if (j <= (-2.2d-239)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_4))
else if (j <= (-5d-283)) then
tmp = y2 * (y5 * ((t * a) - (k * y0)))
else if (j <= 3.5d-256) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (j <= 7d-110) then
tmp = t_6
else if (j <= 6.4d-7) then
tmp = t * (y2 * t_4)
else if (j <= 1.95d+59) then
tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (j <= 4.2d+188) then
tmp = y0 * (j * ((y3 * y5) - (x * b)))
else if (j <= 4.6d+223) then
tmp = b * (y4 * t_5)
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (b * y4) - (i * y5);
double t_3 = j * (((t * t_2) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_4 = (a * y5) - (c * y4);
double t_5 = (t * j) - (y * k);
double t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
double tmp;
if (j <= -8.5e+138) {
tmp = t_3;
} else if (j <= -9.5e+60) {
tmp = k * (((y2 * t_1) - (y * t_2)) + (z * ((b * y0) - (i * y1))));
} else if (j <= -2.85e-52) {
tmp = t_6;
} else if (j <= -2.2e-239) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_4));
} else if (j <= -5e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 3.5e-256) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 7e-110) {
tmp = t_6;
} else if (j <= 6.4e-7) {
tmp = t * (y2 * t_4);
} else if (j <= 1.95e+59) {
tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (j <= 4.2e+188) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 4.6e+223) {
tmp = b * (y4 * t_5);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = (b * y4) - (i * y5) t_3 = j * (((t * t_2) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_4 = (a * y5) - (c * y4) t_5 = (t * j) - (y * k) t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))) tmp = 0 if j <= -8.5e+138: tmp = t_3 elif j <= -9.5e+60: tmp = k * (((y2 * t_1) - (y * t_2)) + (z * ((b * y0) - (i * y1)))) elif j <= -2.85e-52: tmp = t_6 elif j <= -2.2e-239: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_4)) elif j <= -5e-283: tmp = y2 * (y5 * ((t * a) - (k * y0))) elif j <= 3.5e-256: tmp = i * (k * ((y * y5) - (z * y1))) elif j <= 7e-110: tmp = t_6 elif j <= 6.4e-7: tmp = t * (y2 * t_4) elif j <= 1.95e+59: tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif j <= 4.2e+188: tmp = y0 * (j * ((y3 * y5) - (x * b))) elif j <= 4.6e+223: tmp = b * (y4 * t_5) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(b * y4) - Float64(i * y5)) t_3 = Float64(j * Float64(Float64(Float64(t * t_2) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) t_4 = Float64(Float64(a * y5) - Float64(c * y4)) t_5 = Float64(Float64(t * j) - Float64(y * k)) t_6 = Float64(y0 * Float64(Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (j <= -8.5e+138) tmp = t_3; elseif (j <= -9.5e+60) tmp = Float64(k * Float64(Float64(Float64(y2 * t_1) - Float64(y * t_2)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (j <= -2.85e-52) tmp = t_6; elseif (j <= -2.2e-239) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_4))); elseif (j <= -5e-283) tmp = Float64(y2 * Float64(y5 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (j <= 3.5e-256) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (j <= 7e-110) tmp = t_6; elseif (j <= 6.4e-7) tmp = Float64(t * Float64(y2 * t_4)); elseif (j <= 1.95e+59) tmp = Float64(y4 * Float64(Float64(Float64(b * t_5) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (j <= 4.2e+188) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (j <= 4.6e+223) tmp = Float64(b * Float64(y4 * t_5)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y1 * y4) - (y0 * y5); t_2 = (b * y4) - (i * y5); t_3 = j * (((t * t_2) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_4 = (a * y5) - (c * y4); t_5 = (t * j) - (y * k); t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))); tmp = 0.0; if (j <= -8.5e+138) tmp = t_3; elseif (j <= -9.5e+60) tmp = k * (((y2 * t_1) - (y * t_2)) + (z * ((b * y0) - (i * y1)))); elseif (j <= -2.85e-52) tmp = t_6; elseif (j <= -2.2e-239) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * t_4)); elseif (j <= -5e-283) tmp = y2 * (y5 * ((t * a) - (k * y0))); elseif (j <= 3.5e-256) tmp = i * (k * ((y * y5) - (z * y1))); elseif (j <= 7e-110) tmp = t_6; elseif (j <= 6.4e-7) tmp = t * (y2 * t_4); elseif (j <= 1.95e+59) tmp = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (j <= 4.2e+188) tmp = y0 * (j * ((y3 * y5) - (x * b))); elseif (j <= 4.6e+223) tmp = b * (y4 * t_5); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(N[(t * t$95$2), $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$4 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y0 * N[(N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.5e+138], t$95$3, If[LessEqual[j, -9.5e+60], N[(k * N[(N[(N[(y2 * t$95$1), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.85e-52], t$95$6, If[LessEqual[j, -2.2e-239], 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$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5e-283], N[(y2 * N[(y5 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.5e-256], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e-110], t$95$6, If[LessEqual[j, 6.4e-7], N[(t * N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.95e+59], N[(y4 * N[(N[(N[(b * t$95$5), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.2e+188], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.6e+223], N[(b * N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := b \cdot y4 - i \cdot y5\\
t_3 := j \cdot \left(\left(t \cdot t_2 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_4 := a \cdot y5 - c \cdot y4\\
t_5 := t \cdot j - y \cdot k\\
t_6 := y0 \cdot \left(\left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;j \leq -8.5 \cdot 10^{+138}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -9.5 \cdot 10^{+60}:\\
\;\;\;\;k \cdot \left(\left(y2 \cdot t_1 - y \cdot t_2\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq -2.85 \cdot 10^{-52}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;j \leq -2.2 \cdot 10^{-239}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t_4\right)\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-283}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-256}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{-110}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;j \leq 6.4 \cdot 10^{-7}:\\
\;\;\;\;t \cdot \left(y2 \cdot t_4\right)\\
\mathbf{elif}\;j \leq 1.95 \cdot 10^{+59}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_5 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{+188}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+223}:\\
\;\;\;\;b \cdot \left(y4 \cdot t_5\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -8.5000000000000006e138 or 4.60000000000000009e223 < j Initial program 19.7%
Taylor expanded in j around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
if -8.5000000000000006e138 < j < -9.49999999999999988e60Initial program 20.0%
Taylor expanded in k around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
mul-1-neg60.0%
Simplified60.0%
if -9.49999999999999988e60 < j < -2.8499999999999999e-52 or 3.50000000000000014e-256 < j < 6.99999999999999947e-110Initial program 34.8%
Taylor expanded in y0 around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
*-commutative51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
if -2.8499999999999999e-52 < j < -2.19999999999999983e-239Initial program 38.6%
Taylor expanded in y2 around inf 57.2%
if -2.19999999999999983e-239 < j < -5.0000000000000001e-283Initial program 16.7%
Taylor expanded in y2 around inf 0.6%
Taylor expanded in y5 around -inf 67.4%
if -5.0000000000000001e-283 < j < 3.50000000000000014e-256Initial program 17.4%
Taylor expanded in k around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
mul-1-neg51.2%
Simplified51.2%
Taylor expanded in i around -inf 75.0%
if 6.99999999999999947e-110 < j < 6.4000000000000001e-7Initial program 25.0%
Taylor expanded in y2 around inf 43.9%
Taylor expanded in t around inf 56.7%
if 6.4000000000000001e-7 < j < 1.95000000000000011e59Initial program 25.0%
Taylor expanded in y4 around inf 69.0%
if 1.95000000000000011e59 < j < 4.19999999999999973e188Initial program 23.4%
Taylor expanded in y0 around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
*-commutative54.0%
*-commutative54.0%
*-commutative54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in j around -inf 62.3%
associate-*r*62.2%
*-commutative62.2%
associate-*l*65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
if 4.19999999999999973e188 < j < 4.60000000000000009e223Initial program 0.0%
Taylor expanded in y4 around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in b around inf 80.8%
Final simplification63.6%
(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
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* z (- (* a y1) (* c y0))) (* j t_1)))))
(t_3 (* t (- (* b y4) (* i y5))))
(t_4 (- (* x c) (* k y5))))
(if (<= b -2.5e+150)
(* j t_3)
(if (<= b -1.1e-41)
(*
j
(+ (+ t_3 (* y3 (- (* y0 y5) (* y1 y4)))) (* x (- (* i y1) (* b y0)))))
(if (<= b -7.5e-75)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= b -3.2e-92)
(* j (* y0 (* y3 y5)))
(if (<= b -7e-197)
t_2
(if (<= b 1.25e-250)
(*
y2
(+
(+ (* k t_1) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= b 3.6e-197)
(* y3 (* a (- (* z y1) (* y y5))))
(if (<= b 2.3e-137)
(* y0 (* y2 t_4))
(if (<= b 1.25e-98)
t_2
(if (<= b 1e-21)
(* y2 (* y0 t_4))
(if (<= b 8.2e+138)
(*
y1
(+
(-
(* y4 (- (* k y2) (* j y3)))
(* a (- (* x y2) (* z y3))))
(* i (- (* x j) (* z k)))))
(* (* b k) (- (* z y0) (* y 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 = (y1 * y4) - (y0 * y5);
double t_2 = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1)));
double t_3 = t * ((b * y4) - (i * y5));
double t_4 = (x * c) - (k * y5);
double tmp;
if (b <= -2.5e+150) {
tmp = j * t_3;
} else if (b <= -1.1e-41) {
tmp = j * ((t_3 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (b <= -7.5e-75) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (b <= -3.2e-92) {
tmp = j * (y0 * (y3 * y5));
} else if (b <= -7e-197) {
tmp = t_2;
} else if (b <= 1.25e-250) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (b <= 3.6e-197) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (b <= 2.3e-137) {
tmp = y0 * (y2 * t_4);
} else if (b <= 1.25e-98) {
tmp = t_2;
} else if (b <= 1e-21) {
tmp = y2 * (y0 * t_4);
} else if (b <= 8.2e+138) {
tmp = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * ((x * y2) - (z * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = (b * k) * ((z * y0) - (y * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (y1 * y4) - (y0 * y5)
t_2 = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1)))
t_3 = t * ((b * y4) - (i * y5))
t_4 = (x * c) - (k * y5)
if (b <= (-2.5d+150)) then
tmp = j * t_3
else if (b <= (-1.1d-41)) then
tmp = j * ((t_3 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
else if (b <= (-7.5d-75)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (b <= (-3.2d-92)) then
tmp = j * (y0 * (y3 * y5))
else if (b <= (-7d-197)) then
tmp = t_2
else if (b <= 1.25d-250) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (b <= 3.6d-197) then
tmp = y3 * (a * ((z * y1) - (y * y5)))
else if (b <= 2.3d-137) then
tmp = y0 * (y2 * t_4)
else if (b <= 1.25d-98) then
tmp = t_2
else if (b <= 1d-21) then
tmp = y2 * (y0 * t_4)
else if (b <= 8.2d+138) then
tmp = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * ((x * y2) - (z * y3)))) + (i * ((x * j) - (z * k))))
else
tmp = (b * k) * ((z * y0) - (y * 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 = (y1 * y4) - (y0 * y5);
double t_2 = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1)));
double t_3 = t * ((b * y4) - (i * y5));
double t_4 = (x * c) - (k * y5);
double tmp;
if (b <= -2.5e+150) {
tmp = j * t_3;
} else if (b <= -1.1e-41) {
tmp = j * ((t_3 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (b <= -7.5e-75) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (b <= -3.2e-92) {
tmp = j * (y0 * (y3 * y5));
} else if (b <= -7e-197) {
tmp = t_2;
} else if (b <= 1.25e-250) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (b <= 3.6e-197) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (b <= 2.3e-137) {
tmp = y0 * (y2 * t_4);
} else if (b <= 1.25e-98) {
tmp = t_2;
} else if (b <= 1e-21) {
tmp = y2 * (y0 * t_4);
} else if (b <= 8.2e+138) {
tmp = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * ((x * y2) - (z * y3)))) + (i * ((x * j) - (z * k))));
} else {
tmp = (b * k) * ((z * y0) - (y * y4));
}
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 = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1))) t_3 = t * ((b * y4) - (i * y5)) t_4 = (x * c) - (k * y5) tmp = 0 if b <= -2.5e+150: tmp = j * t_3 elif b <= -1.1e-41: tmp = j * ((t_3 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) elif b <= -7.5e-75: tmp = x * (a * ((y * b) - (y1 * y2))) elif b <= -3.2e-92: tmp = j * (y0 * (y3 * y5)) elif b <= -7e-197: tmp = t_2 elif b <= 1.25e-250: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif b <= 3.6e-197: tmp = y3 * (a * ((z * y1) - (y * y5))) elif b <= 2.3e-137: tmp = y0 * (y2 * t_4) elif b <= 1.25e-98: tmp = t_2 elif b <= 1e-21: tmp = y2 * (y0 * t_4) elif b <= 8.2e+138: tmp = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * ((x * y2) - (z * y3)))) + (i * ((x * j) - (z * k)))) else: tmp = (b * k) * ((z * y0) - (y * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(j * t_1)))) t_3 = Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) t_4 = Float64(Float64(x * c) - Float64(k * y5)) tmp = 0.0 if (b <= -2.5e+150) tmp = Float64(j * t_3); elseif (b <= -1.1e-41) tmp = Float64(j * Float64(Float64(t_3 + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (b <= -7.5e-75) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (b <= -3.2e-92) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (b <= -7e-197) tmp = t_2; elseif (b <= 1.25e-250) tmp = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (b <= 3.6e-197) tmp = Float64(y3 * Float64(a * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (b <= 2.3e-137) tmp = Float64(y0 * Float64(y2 * t_4)); elseif (b <= 1.25e-98) tmp = t_2; elseif (b <= 1e-21) tmp = Float64(y2 * Float64(y0 * t_4)); elseif (b <= 8.2e+138) tmp = Float64(y1 * Float64(Float64(Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))) - Float64(a * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); else tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * 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 = (y1 * y4) - (y0 * y5); t_2 = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1))); t_3 = t * ((b * y4) - (i * y5)); t_4 = (x * c) - (k * y5); tmp = 0.0; if (b <= -2.5e+150) tmp = j * t_3; elseif (b <= -1.1e-41) tmp = j * ((t_3 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); elseif (b <= -7.5e-75) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (b <= -3.2e-92) tmp = j * (y0 * (y3 * y5)); elseif (b <= -7e-197) tmp = t_2; elseif (b <= 1.25e-250) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (b <= 3.6e-197) tmp = y3 * (a * ((z * y1) - (y * y5))); elseif (b <= 2.3e-137) tmp = y0 * (y2 * t_4); elseif (b <= 1.25e-98) tmp = t_2; elseif (b <= 1e-21) tmp = y2 * (y0 * t_4); elseif (b <= 8.2e+138) tmp = y1 * (((y4 * ((k * y2) - (j * y3))) - (a * ((x * y2) - (z * y3)))) + (i * ((x * j) - (z * k)))); else tmp = (b * k) * ((z * y0) - (y * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+150], N[(j * t$95$3), $MachinePrecision], If[LessEqual[b, -1.1e-41], N[(j * N[(N[(t$95$3 + 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], If[LessEqual[b, -7.5e-75], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.2e-92], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7e-197], t$95$2, If[LessEqual[b, 1.25e-250], 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 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e-197], N[(y3 * N[(a * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-137], N[(y0 * N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-98], t$95$2, If[LessEqual[b, 1e-21], N[(y2 * N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+138], N[(y1 * N[(N[(N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) - j \cdot t_1\right)\right)\\
t_3 := t \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_4 := x \cdot c - k \cdot y5\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+150}:\\
\;\;\;\;j \cdot t_3\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-41}:\\
\;\;\;\;j \cdot \left(\left(t_3 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-75}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-92}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-197}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-250}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-197}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-137}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot t_4\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 10^{-21}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot t_4\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+138}:\\
\;\;\;\;y1 \cdot \left(\left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) - a \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\end{array}
\end{array}
if b < -2.50000000000000004e150Initial program 24.2%
Taylor expanded in j around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in t around inf 76.3%
if -2.50000000000000004e150 < b < -1.1e-41Initial program 27.2%
Taylor expanded in j around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -1.1e-41 < b < -7.50000000000000017e-75Initial program 20.0%
Simplified20.0%
Taylor expanded in a around inf 70.0%
Taylor expanded in x around inf 61.2%
*-commutative61.2%
associate-*l*62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
Simplified62.6%
if -7.50000000000000017e-75 < b < -3.1999999999999997e-92Initial program 41.8%
Taylor expanded in j around inf 40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in y3 around -inf 40.7%
mul-1-neg40.7%
associate-*r*22.5%
distribute-lft-neg-in22.5%
*-commutative22.5%
distribute-rgt-neg-in22.5%
Simplified22.5%
Taylor expanded in y1 around 0 60.3%
*-commutative60.3%
Simplified60.3%
if -3.1999999999999997e-92 < b < -6.9999999999999996e-197 or 2.30000000000000008e-137 < b < 1.25000000000000005e-98Initial program 20.0%
Taylor expanded in y3 around -inf 63.3%
if -6.9999999999999996e-197 < b < 1.25000000000000007e-250Initial program 28.8%
Taylor expanded in y2 around inf 62.5%
if 1.25000000000000007e-250 < b < 3.5999999999999998e-197Initial program 9.1%
Simplified9.1%
Taylor expanded in a around inf 36.8%
Taylor expanded in y3 around inf 55.6%
*-commutative55.6%
associate-*l*55.6%
Simplified55.6%
if 3.5999999999999998e-197 < b < 2.30000000000000008e-137Initial program 37.2%
Taylor expanded in y2 around inf 47.5%
Taylor expanded in y0 around -inf 58.8%
mul-1-neg58.8%
*-commutative58.8%
distribute-rgt-neg-in58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
if 1.25000000000000005e-98 < b < 9.99999999999999908e-22Initial program 20.0%
Taylor expanded in y0 around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in y2 around inf 61.2%
associate-*r*54.6%
*-commutative54.6%
*-commutative54.6%
associate-*l*67.6%
*-commutative67.6%
Simplified67.6%
if 9.99999999999999908e-22 < b < 8.19999999999999961e138Initial program 33.3%
Taylor expanded in y1 around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
*-commutative57.0%
*-commutative57.0%
mul-1-neg57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
if 8.19999999999999961e138 < b Initial program 25.0%
Taylor expanded in k around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
mul-1-neg50.6%
Simplified50.6%
Taylor expanded in b around inf 48.8%
associate-*r*55.3%
*-commutative55.3%
Simplified55.3%
Final simplification62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (- (* b y4) (* i y5))))
(t_2 (- (* x c) (* k y5)))
(t_3
(*
c
(+
(+ (* y0 (- (* x y2) (* z y3))) (* i (- (* z t) (* x y))))
(* y4 (- (* y y3) (* t y2))))))
(t_4 (- (* y1 y4) (* y0 y5))))
(if (<= b -4.4e+150)
(* j t_1)
(if (<= b -1.5e-41)
(*
j
(+ (+ t_1 (* y3 (- (* y0 y5) (* y1 y4)))) (* x (- (* i y1) (* b y0)))))
(if (<= b -1.14e-79)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= b -2.75e-92)
t_3
(if (<= b -2.5e-196)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* z (- (* a y1) (* c y0))) (* j t_4))))
(if (<= b 7e-252)
(*
y2
(+
(+ (* k t_4) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= b 3.5e-196)
(* y3 (* a (- (* z y1) (* y y5))))
(if (<= b 6.6e-137)
(* y0 (* y2 t_2))
(if (<= b 6.5e-99)
t_3
(if (<= b 8.5)
(* y2 (* y0 t_2))
(if (<= b 3.8e+110)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(-
(* y0 (- (* j y3) (* k y2)))
(* i (- (* t j) (* y k))))))
t_3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * ((b * y4) - (i * y5));
double t_2 = (x * c) - (k * y5);
double t_3 = c * (((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) + (y4 * ((y * y3) - (t * y2))));
double t_4 = (y1 * y4) - (y0 * y5);
double tmp;
if (b <= -4.4e+150) {
tmp = j * t_1;
} else if (b <= -1.5e-41) {
tmp = j * ((t_1 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (b <= -1.14e-79) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (b <= -2.75e-92) {
tmp = t_3;
} else if (b <= -2.5e-196) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4)));
} else if (b <= 7e-252) {
tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (b <= 3.5e-196) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (b <= 6.6e-137) {
tmp = y0 * (y2 * t_2);
} else if (b <= 6.5e-99) {
tmp = t_3;
} else if (b <= 8.5) {
tmp = y2 * (y0 * t_2);
} else if (b <= 3.8e+110) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = t * ((b * y4) - (i * y5))
t_2 = (x * c) - (k * y5)
t_3 = c * (((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) + (y4 * ((y * y3) - (t * y2))))
t_4 = (y1 * y4) - (y0 * y5)
if (b <= (-4.4d+150)) then
tmp = j * t_1
else if (b <= (-1.5d-41)) then
tmp = j * ((t_1 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
else if (b <= (-1.14d-79)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (b <= (-2.75d-92)) then
tmp = t_3
else if (b <= (-2.5d-196)) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4)))
else if (b <= 7d-252) then
tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (b <= 3.5d-196) then
tmp = y3 * (a * ((z * y1) - (y * y5)))
else if (b <= 6.6d-137) then
tmp = y0 * (y2 * t_2)
else if (b <= 6.5d-99) then
tmp = t_3
else if (b <= 8.5d0) then
tmp = y2 * (y0 * t_2)
else if (b <= 3.8d+110) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * ((b * y4) - (i * y5));
double t_2 = (x * c) - (k * y5);
double t_3 = c * (((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) + (y4 * ((y * y3) - (t * y2))));
double t_4 = (y1 * y4) - (y0 * y5);
double tmp;
if (b <= -4.4e+150) {
tmp = j * t_1;
} else if (b <= -1.5e-41) {
tmp = j * ((t_1 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (b <= -1.14e-79) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (b <= -2.75e-92) {
tmp = t_3;
} else if (b <= -2.5e-196) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4)));
} else if (b <= 7e-252) {
tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (b <= 3.5e-196) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (b <= 6.6e-137) {
tmp = y0 * (y2 * t_2);
} else if (b <= 6.5e-99) {
tmp = t_3;
} else if (b <= 8.5) {
tmp = y2 * (y0 * t_2);
} else if (b <= 3.8e+110) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * ((b * y4) - (i * y5)) t_2 = (x * c) - (k * y5) t_3 = c * (((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) + (y4 * ((y * y3) - (t * y2)))) t_4 = (y1 * y4) - (y0 * y5) tmp = 0 if b <= -4.4e+150: tmp = j * t_1 elif b <= -1.5e-41: tmp = j * ((t_1 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) elif b <= -1.14e-79: tmp = x * (a * ((y * b) - (y1 * y2))) elif b <= -2.75e-92: tmp = t_3 elif b <= -2.5e-196: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4))) elif b <= 7e-252: tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif b <= 3.5e-196: tmp = y3 * (a * ((z * y1) - (y * y5))) elif b <= 6.6e-137: tmp = y0 * (y2 * t_2) elif b <= 6.5e-99: tmp = t_3 elif b <= 8.5: tmp = y2 * (y0 * t_2) elif b <= 3.8e+110: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) t_2 = Float64(Float64(x * c) - Float64(k * y5)) t_3 = Float64(c * Float64(Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(i * Float64(Float64(z * t) - Float64(x * y)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (b <= -4.4e+150) tmp = Float64(j * t_1); elseif (b <= -1.5e-41) tmp = Float64(j * Float64(Float64(t_1 + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (b <= -1.14e-79) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (b <= -2.75e-92) tmp = t_3; elseif (b <= -2.5e-196) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(j * t_4)))); elseif (b <= 7e-252) tmp = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (b <= 3.5e-196) tmp = Float64(y3 * Float64(a * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (b <= 6.6e-137) tmp = Float64(y0 * Float64(y2 * t_2)); elseif (b <= 6.5e-99) tmp = t_3; elseif (b <= 8.5) tmp = Float64(y2 * Float64(y0 * t_2)); elseif (b <= 3.8e+110) 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 = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * ((b * y4) - (i * y5)); t_2 = (x * c) - (k * y5); t_3 = c * (((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) + (y4 * ((y * y3) - (t * y2)))); t_4 = (y1 * y4) - (y0 * y5); tmp = 0.0; if (b <= -4.4e+150) tmp = j * t_1; elseif (b <= -1.5e-41) tmp = j * ((t_1 + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); elseif (b <= -1.14e-79) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (b <= -2.75e-92) tmp = t_3; elseif (b <= -2.5e-196) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4))); elseif (b <= 7e-252) tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (b <= 3.5e-196) tmp = y3 * (a * ((z * y1) - (y * y5))); elseif (b <= 6.6e-137) tmp = y0 * (y2 * t_2); elseif (b <= 6.5e-99) tmp = t_3; elseif (b <= 8.5) tmp = y2 * (y0 * t_2); elseif (b <= 3.8e+110) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+150], N[(j * t$95$1), $MachinePrecision], If[LessEqual[b, -1.5e-41], N[(j * N[(N[(t$95$1 + 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], If[LessEqual[b, -1.14e-79], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.75e-92], t$95$3, If[LessEqual[b, -2.5e-196], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-252], N[(y2 * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e-196], N[(y3 * N[(a * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e-137], N[(y0 * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-99], t$95$3, If[LessEqual[b, 8.5], N[(y2 * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+110], 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], t$95$3]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_2 := x \cdot c - k \cdot y5\\
t_3 := c \cdot \left(\left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) + i \cdot \left(z \cdot t - x \cdot y\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+150}:\\
\;\;\;\;j \cdot t_1\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-41}:\\
\;\;\;\;j \cdot \left(\left(t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.14 \cdot 10^{-79}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-92}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-196}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) - j \cdot t_4\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-252}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t_4 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-196}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{-137}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot t_2\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-99}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 8.5:\\
\;\;\;\;y2 \cdot \left(y0 \cdot t_2\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+110}:\\
\;\;\;\;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}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -4.39999999999999999e150Initial program 24.2%
Taylor expanded in j around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in t around inf 76.3%
if -4.39999999999999999e150 < b < -1.49999999999999994e-41Initial program 27.2%
Taylor expanded in j around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
if -1.49999999999999994e-41 < b < -1.14e-79Initial program 18.2%
Simplified18.2%
Taylor expanded in a around inf 63.6%
Taylor expanded in x around inf 55.7%
*-commutative55.7%
associate-*l*57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
Simplified57.0%
if -1.14e-79 < b < -2.7500000000000001e-92 or 6.6000000000000004e-137 < b < 6.50000000000000033e-99 or 3.79999999999999989e110 < b Initial program 26.9%
Simplified26.9%
Taylor expanded in c around inf 64.9%
if -2.7500000000000001e-92 < b < -2.5000000000000002e-196Initial program 15.0%
Taylor expanded in y3 around -inf 59.9%
if -2.5000000000000002e-196 < b < 6.99999999999999972e-252Initial program 28.8%
Taylor expanded in y2 around inf 62.5%
if 6.99999999999999972e-252 < b < 3.50000000000000004e-196Initial program 9.1%
Simplified9.1%
Taylor expanded in a around inf 36.8%
Taylor expanded in y3 around inf 55.6%
*-commutative55.6%
associate-*l*55.6%
Simplified55.6%
if 3.50000000000000004e-196 < b < 6.6000000000000004e-137Initial program 37.2%
Taylor expanded in y2 around inf 47.5%
Taylor expanded in y0 around -inf 58.8%
mul-1-neg58.8%
*-commutative58.8%
distribute-rgt-neg-in58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
if 6.50000000000000033e-99 < b < 8.5Initial program 20.0%
Taylor expanded in y0 around inf 36.1%
+-commutative36.1%
mul-1-neg36.1%
unsub-neg36.1%
*-commutative36.1%
*-commutative36.1%
*-commutative36.1%
*-commutative36.1%
Simplified36.1%
Taylor expanded in y2 around inf 51.0%
associate-*r*46.1%
*-commutative46.1%
*-commutative46.1%
associate-*l*55.8%
*-commutative55.8%
Simplified55.8%
if 8.5 < b < 3.79999999999999989e110Initial program 40.9%
Taylor expanded in y5 around -inf 64.2%
Final simplification63.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y2) (* z y3)))
(t_2 (* x (- (* i y1) (* b y0))))
(t_3 (- (* y0 y5) (* y1 y4)))
(t_4 (* j (+ (+ (* t (- (* b y4) (* i y5))) (* y3 t_3)) t_2))))
(if (<= k -1.12e+113)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -5.5e+44)
(* j t_2)
(if (<= k -2e-40)
(*
y0
(+
(+ (* c t_1) (* y5 (- (* j y3) (* k y2))))
(* b (- (* z k) (* x j)))))
(if (<= k -3.2e-72)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k 4.7e-253)
(* y3 (+ (* j t_3) (* y (- (* c y4) (* a y5)))))
(if (<= k 1.8e-170)
t_4
(if (<= k 5e-129)
(* t_1 (* c y0))
(if (<= k 4.5e-70)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= k 9e-16)
(* c (* y0 t_1))
(if (<= k 1.55e+181)
t_4
(* y0 (* y2 (- (* x c) (* k y5))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y2) - (z * y3);
double t_2 = x * ((i * y1) - (b * y0));
double t_3 = (y0 * y5) - (y1 * y4);
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_3)) + t_2);
double tmp;
if (k <= -1.12e+113) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -5.5e+44) {
tmp = j * t_2;
} else if (k <= -2e-40) {
tmp = y0 * (((c * t_1) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
} else if (k <= -3.2e-72) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 4.7e-253) {
tmp = y3 * ((j * t_3) + (y * ((c * y4) - (a * y5))));
} else if (k <= 1.8e-170) {
tmp = t_4;
} else if (k <= 5e-129) {
tmp = t_1 * (c * y0);
} else if (k <= 4.5e-70) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 9e-16) {
tmp = c * (y0 * t_1);
} else if (k <= 1.55e+181) {
tmp = t_4;
} else {
tmp = y0 * (y2 * ((x * c) - (k * 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) :: t_4
real(8) :: tmp
t_1 = (x * y2) - (z * y3)
t_2 = x * ((i * y1) - (b * y0))
t_3 = (y0 * y5) - (y1 * y4)
t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_3)) + t_2)
if (k <= (-1.12d+113)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-5.5d+44)) then
tmp = j * t_2
else if (k <= (-2d-40)) then
tmp = y0 * (((c * t_1) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))))
else if (k <= (-3.2d-72)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= 4.7d-253) then
tmp = y3 * ((j * t_3) + (y * ((c * y4) - (a * y5))))
else if (k <= 1.8d-170) then
tmp = t_4
else if (k <= 5d-129) then
tmp = t_1 * (c * y0)
else if (k <= 4.5d-70) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (k <= 9d-16) then
tmp = c * (y0 * t_1)
else if (k <= 1.55d+181) then
tmp = t_4
else
tmp = y0 * (y2 * ((x * c) - (k * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y2) - (z * y3);
double t_2 = x * ((i * y1) - (b * y0));
double t_3 = (y0 * y5) - (y1 * y4);
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_3)) + t_2);
double tmp;
if (k <= -1.12e+113) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -5.5e+44) {
tmp = j * t_2;
} else if (k <= -2e-40) {
tmp = y0 * (((c * t_1) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
} else if (k <= -3.2e-72) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 4.7e-253) {
tmp = y3 * ((j * t_3) + (y * ((c * y4) - (a * y5))));
} else if (k <= 1.8e-170) {
tmp = t_4;
} else if (k <= 5e-129) {
tmp = t_1 * (c * y0);
} else if (k <= 4.5e-70) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (k <= 9e-16) {
tmp = c * (y0 * t_1);
} else if (k <= 1.55e+181) {
tmp = t_4;
} else {
tmp = y0 * (y2 * ((x * c) - (k * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y2) - (z * y3) t_2 = x * ((i * y1) - (b * y0)) t_3 = (y0 * y5) - (y1 * y4) t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_3)) + t_2) tmp = 0 if k <= -1.12e+113: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -5.5e+44: tmp = j * t_2 elif k <= -2e-40: tmp = y0 * (((c * t_1) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))) elif k <= -3.2e-72: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= 4.7e-253: tmp = y3 * ((j * t_3) + (y * ((c * y4) - (a * y5)))) elif k <= 1.8e-170: tmp = t_4 elif k <= 5e-129: tmp = t_1 * (c * y0) elif k <= 4.5e-70: tmp = x * (a * ((y * b) - (y1 * y2))) elif k <= 9e-16: tmp = c * (y0 * t_1) elif k <= 1.55e+181: tmp = t_4 else: tmp = y0 * (y2 * ((x * c) - (k * 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(x * y2) - Float64(z * y3)) t_2 = Float64(x * Float64(Float64(i * y1) - Float64(b * y0))) t_3 = Float64(Float64(y0 * y5) - Float64(y1 * y4)) t_4 = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * t_3)) + t_2)) tmp = 0.0 if (k <= -1.12e+113) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -5.5e+44) tmp = Float64(j * t_2); elseif (k <= -2e-40) tmp = Float64(y0 * Float64(Float64(Float64(c * t_1) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))); elseif (k <= -3.2e-72) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= 4.7e-253) tmp = Float64(y3 * Float64(Float64(j * t_3) + Float64(y * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (k <= 1.8e-170) tmp = t_4; elseif (k <= 5e-129) tmp = Float64(t_1 * Float64(c * y0)); elseif (k <= 4.5e-70) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (k <= 9e-16) tmp = Float64(c * Float64(y0 * t_1)); elseif (k <= 1.55e+181) tmp = t_4; else tmp = Float64(y0 * Float64(y2 * Float64(Float64(x * c) - Float64(k * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y2) - (z * y3); t_2 = x * ((i * y1) - (b * y0)); t_3 = (y0 * y5) - (y1 * y4); t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_3)) + t_2); tmp = 0.0; if (k <= -1.12e+113) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -5.5e+44) tmp = j * t_2; elseif (k <= -2e-40) tmp = y0 * (((c * t_1) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))); elseif (k <= -3.2e-72) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= 4.7e-253) tmp = y3 * ((j * t_3) + (y * ((c * y4) - (a * y5)))); elseif (k <= 1.8e-170) tmp = t_4; elseif (k <= 5e-129) tmp = t_1 * (c * y0); elseif (k <= 4.5e-70) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (k <= 9e-16) tmp = c * (y0 * t_1); elseif (k <= 1.55e+181) tmp = t_4; else tmp = y0 * (y2 * ((x * c) - (k * 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[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.12e+113], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -5.5e+44], N[(j * t$95$2), $MachinePrecision], If[LessEqual[k, -2e-40], N[(y0 * N[(N[(N[(c * t$95$1), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3.2e-72], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.7e-253], N[(y3 * N[(N[(j * t$95$3), $MachinePrecision] + N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.8e-170], t$95$4, If[LessEqual[k, 5e-129], N[(t$95$1 * N[(c * y0), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.5e-70], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9e-16], N[(c * N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.55e+181], t$95$4, N[(y0 * N[(y2 * N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y2 - z \cdot y3\\
t_2 := x \cdot \left(i \cdot y1 - b \cdot y0\right)\\
t_3 := y0 \cdot y5 - y1 \cdot y4\\
t_4 := j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot t_3\right) + t_2\right)\\
\mathbf{if}\;k \leq -1.12 \cdot 10^{+113}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -5.5 \cdot 10^{+44}:\\
\;\;\;\;j \cdot t_2\\
\mathbf{elif}\;k \leq -2 \cdot 10^{-40}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot t_1 + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;k \leq -3.2 \cdot 10^{-72}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 4.7 \cdot 10^{-253}:\\
\;\;\;\;y3 \cdot \left(j \cdot t_3 + y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq 1.8 \cdot 10^{-170}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;k \leq 5 \cdot 10^{-129}:\\
\;\;\;\;t_1 \cdot \left(c \cdot y0\right)\\
\mathbf{elif}\;k \leq 4.5 \cdot 10^{-70}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 9 \cdot 10^{-16}:\\
\;\;\;\;c \cdot \left(y0 \cdot t_1\right)\\
\mathbf{elif}\;k \leq 1.55 \cdot 10^{+181}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(x \cdot c - k \cdot y5\right)\right)\\
\end{array}
\end{array}
if k < -1.1200000000000001e113Initial program 36.6%
Taylor expanded in k around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
mul-1-neg63.5%
Simplified63.5%
Taylor expanded in i around -inf 64.0%
if -1.1200000000000001e113 < k < -5.5000000000000001e44Initial program 31.2%
Taylor expanded in j around inf 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
*-commutative38.3%
Simplified38.3%
Taylor expanded in x around inf 62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
if -5.5000000000000001e44 < k < -1.9999999999999999e-40Initial program 37.5%
Taylor expanded in y0 around inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
*-commutative69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
if -1.9999999999999999e-40 < k < -3.19999999999999999e-72Initial program 28.6%
Taylor expanded in y2 around inf 43.0%
Taylor expanded in c around inf 71.7%
if -3.19999999999999999e-72 < k < 4.69999999999999981e-253Initial program 24.7%
Taylor expanded in y4 around inf 45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in y3 around -inf 51.4%
if 4.69999999999999981e-253 < k < 1.8000000000000002e-170 or 9.0000000000000003e-16 < k < 1.54999999999999995e181Initial program 19.2%
Taylor expanded in j around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
Simplified67.7%
if 1.8000000000000002e-170 < k < 5.00000000000000027e-129Initial program 16.7%
Taylor expanded in y0 around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in c around inf 67.7%
associate-*r*83.6%
Simplified83.6%
if 5.00000000000000027e-129 < k < 4.50000000000000022e-70Initial program 20.0%
Simplified20.0%
Taylor expanded in a around inf 53.3%
Taylor expanded in x around inf 54.6%
*-commutative54.6%
associate-*l*61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
Simplified61.4%
if 4.50000000000000022e-70 < k < 9.0000000000000003e-16Initial program 38.3%
Taylor expanded in y0 around inf 24.8%
+-commutative24.8%
mul-1-neg24.8%
unsub-neg24.8%
*-commutative24.8%
*-commutative24.8%
*-commutative24.8%
*-commutative24.8%
Simplified24.8%
Taylor expanded in c around inf 47.9%
if 1.54999999999999995e181 < k Initial program 16.1%
Taylor expanded in y2 around inf 57.9%
Taylor expanded in y0 around -inf 63.7%
mul-1-neg63.7%
*-commutative63.7%
distribute-rgt-neg-in63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Final simplification61.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_2 (- (* a y5) (* c y4)))
(t_3
(*
y0
(+
(+ (* c (- (* x y2) (* z y3))) (* y5 (- (* j y3) (* k y2))))
(* b (- (* z k) (* x j)))))))
(if (<= j -9.2e+138)
t_1
(if (<= j -3.4e+63)
(* (- (* y2 y4) (* z i)) (* k y1))
(if (<= j -4.2e-52)
t_3
(if (<= j -1.5e-239)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_2)))
(if (<= j -1.3e-283)
(* y2 (* y5 (- (* t a) (* k y0))))
(if (<= j 4.9e-254)
(* i (* k (- (* y y5) (* z y1))))
(if (<= j 2.8e-110)
t_3
(if (<= j 1860000000000.0)
(* t (* y2 t_2))
(if (<= j 2.8e+187)
(* y0 (* j (- (* y3 y5) (* x b))))
(if (<= j 6e+221)
(* b (* y4 (- (* t j) (* y k))))
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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_2 = (a * y5) - (c * y4);
double t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
double tmp;
if (j <= -9.2e+138) {
tmp = t_1;
} else if (j <= -3.4e+63) {
tmp = ((y2 * y4) - (z * i)) * (k * y1);
} else if (j <= -4.2e-52) {
tmp = t_3;
} else if (j <= -1.5e-239) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (j <= -1.3e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 4.9e-254) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 2.8e-110) {
tmp = t_3;
} else if (j <= 1860000000000.0) {
tmp = t * (y2 * t_2);
} else if (j <= 2.8e+187) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 6e+221) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_2 = (a * y5) - (c * y4)
t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))))
if (j <= (-9.2d+138)) then
tmp = t_1
else if (j <= (-3.4d+63)) then
tmp = ((y2 * y4) - (z * i)) * (k * y1)
else if (j <= (-4.2d-52)) then
tmp = t_3
else if (j <= (-1.5d-239)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else if (j <= (-1.3d-283)) then
tmp = y2 * (y5 * ((t * a) - (k * y0)))
else if (j <= 4.9d-254) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (j <= 2.8d-110) then
tmp = t_3
else if (j <= 1860000000000.0d0) then
tmp = t * (y2 * t_2)
else if (j <= 2.8d+187) then
tmp = y0 * (j * ((y3 * y5) - (x * b)))
else if (j <= 6d+221) then
tmp = b * (y4 * ((t * j) - (y * k)))
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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_2 = (a * y5) - (c * y4);
double t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
double tmp;
if (j <= -9.2e+138) {
tmp = t_1;
} else if (j <= -3.4e+63) {
tmp = ((y2 * y4) - (z * i)) * (k * y1);
} else if (j <= -4.2e-52) {
tmp = t_3;
} else if (j <= -1.5e-239) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else if (j <= -1.3e-283) {
tmp = y2 * (y5 * ((t * a) - (k * y0)));
} else if (j <= 4.9e-254) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (j <= 2.8e-110) {
tmp = t_3;
} else if (j <= 1860000000000.0) {
tmp = t * (y2 * t_2);
} else if (j <= 2.8e+187) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (j <= 6e+221) {
tmp = b * (y4 * ((t * j) - (y * k)));
} 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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_2 = (a * y5) - (c * y4) t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))) tmp = 0 if j <= -9.2e+138: tmp = t_1 elif j <= -3.4e+63: tmp = ((y2 * y4) - (z * i)) * (k * y1) elif j <= -4.2e-52: tmp = t_3 elif j <= -1.5e-239: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) elif j <= -1.3e-283: tmp = y2 * (y5 * ((t * a) - (k * y0))) elif j <= 4.9e-254: tmp = i * (k * ((y * y5) - (z * y1))) elif j <= 2.8e-110: tmp = t_3 elif j <= 1860000000000.0: tmp = t * (y2 * t_2) elif j <= 2.8e+187: tmp = y0 * (j * ((y3 * y5) - (x * b))) elif j <= 6e+221: tmp = b * (y4 * ((t * j) - (y * k))) 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(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_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(y0 * Float64(Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (j <= -9.2e+138) tmp = t_1; elseif (j <= -3.4e+63) tmp = Float64(Float64(Float64(y2 * y4) - Float64(z * i)) * Float64(k * y1)); elseif (j <= -4.2e-52) tmp = t_3; elseif (j <= -1.5e-239) 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 (j <= -1.3e-283) tmp = Float64(y2 * Float64(y5 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (j <= 4.9e-254) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (j <= 2.8e-110) tmp = t_3; elseif (j <= 1860000000000.0) tmp = Float64(t * Float64(y2 * t_2)); elseif (j <= 2.8e+187) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (j <= 6e+221) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); 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 * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_2 = (a * y5) - (c * y4); t_3 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))); tmp = 0.0; if (j <= -9.2e+138) tmp = t_1; elseif (j <= -3.4e+63) tmp = ((y2 * y4) - (z * i)) * (k * y1); elseif (j <= -4.2e-52) tmp = t_3; elseif (j <= -1.5e-239) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); elseif (j <= -1.3e-283) tmp = y2 * (y5 * ((t * a) - (k * y0))); elseif (j <= 4.9e-254) tmp = i * (k * ((y * y5) - (z * y1))); elseif (j <= 2.8e-110) tmp = t_3; elseif (j <= 1860000000000.0) tmp = t * (y2 * t_2); elseif (j <= 2.8e+187) tmp = y0 * (j * ((y3 * y5) - (x * b))); elseif (j <= 6e+221) tmp = b * (y4 * ((t * j) - (y * k))); 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[(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$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * N[(N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.2e+138], t$95$1, If[LessEqual[j, -3.4e+63], N[(N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision] * N[(k * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.2e-52], t$95$3, If[LessEqual[j, -1.5e-239], 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[j, -1.3e-283], N[(y2 * N[(y5 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.9e-254], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-110], t$95$3, If[LessEqual[j, 1860000000000.0], N[(t * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+187], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e+221], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 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_2 := a \cdot y5 - c \cdot y4\\
t_3 := y0 \cdot \left(\left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;j \leq -9.2 \cdot 10^{+138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{+63}:\\
\;\;\;\;\left(y2 \cdot y4 - z \cdot i\right) \cdot \left(k \cdot y1\right)\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-52}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -1.5 \cdot 10^{-239}:\\
\;\;\;\;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}\;j \leq -1.3 \cdot 10^{-283}:\\
\;\;\;\;y2 \cdot \left(y5 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{-254}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-110}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 1860000000000:\\
\;\;\;\;t \cdot \left(y2 \cdot t_2\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+187}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+221}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -9.2000000000000003e138 or 6.0000000000000003e221 < j Initial program 19.7%
Taylor expanded in j around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
if -9.2000000000000003e138 < j < -3.3999999999999999e63Initial program 20.0%
Taylor expanded in k around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
mul-1-neg60.0%
Simplified60.0%
Taylor expanded in y1 around inf 61.1%
associate-*r*55.2%
*-commutative55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
if -3.3999999999999999e63 < j < -4.1999999999999997e-52 or 4.8999999999999998e-254 < j < 2.8e-110Initial program 34.8%
Taylor expanded in y0 around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
*-commutative51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
if -4.1999999999999997e-52 < j < -1.4999999999999999e-239Initial program 38.6%
Taylor expanded in y2 around inf 57.2%
if -1.4999999999999999e-239 < j < -1.3000000000000001e-283Initial program 16.7%
Taylor expanded in y2 around inf 0.6%
Taylor expanded in y5 around -inf 67.4%
if -1.3000000000000001e-283 < j < 4.8999999999999998e-254Initial program 17.4%
Taylor expanded in k around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
mul-1-neg51.2%
Simplified51.2%
Taylor expanded in i around -inf 75.0%
if 2.8e-110 < j < 1.86e12Initial program 23.0%
Taylor expanded in y2 around inf 46.4%
Taylor expanded in t around inf 54.3%
if 1.86e12 < j < 2.79999999999999989e187Initial program 26.0%
Taylor expanded in y0 around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
*-commutative46.1%
*-commutative46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in j around -inf 55.2%
associate-*r*57.8%
*-commutative57.8%
associate-*l*57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if 2.79999999999999989e187 < j < 6.0000000000000003e221Initial program 0.0%
Taylor expanded in y4 around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in b around inf 80.8%
Final simplification61.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5)))
(t_2 (- (* x y2) (* z y3)))
(t_3
(*
j
(+
(+ (* t t_1) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (* k (+ (- (* y2 t_4) (* y t_1)) (* z (- (* b y0) (* i y1))))))
(t_6 (- (* k y2) (* j y3))))
(if (<= k -1.45e+107)
t_5
(if (<= k -7.2e+60)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k -4.8e+36)
(* y1 (+ (- (* y4 t_6) (* a t_2)) (* i (- (* x j) (* z k)))))
(if (<= k -3.5e-41)
(*
y0
(+
(+ (* c t_2) (* y5 (- (* j y3) (* k y2))))
(* b (- (* z k) (* x j)))))
(if (<= k -5.5e-158)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 t_6))
(* c (- (* y y3) (* t y2)))))
(if (<= k 1.08e-234)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* z (- (* a y1) (* c y0))) (* j t_4))))
(if (<= k 2e-170)
t_3
(if (<= k 7.5e-48)
(*
a
(+
(- (* b (- (* x y) (* z t))) (* y1 t_2))
(* y5 (- (* t y2) (* y y3)))))
(if (<= k 1.75e-14)
(* c (* y0 t_2))
(if (<= k 5e+169) t_3 t_5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y4) - (i * y5);
double t_2 = (x * y2) - (z * y3);
double t_3 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = k * (((y2 * t_4) - (y * t_1)) + (z * ((b * y0) - (i * y1))));
double t_6 = (k * y2) - (j * y3);
double tmp;
if (k <= -1.45e+107) {
tmp = t_5;
} else if (k <= -7.2e+60) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= -4.8e+36) {
tmp = y1 * (((y4 * t_6) - (a * t_2)) + (i * ((x * j) - (z * k))));
} else if (k <= -3.5e-41) {
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
} else if (k <= -5.5e-158) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_6)) + (c * ((y * y3) - (t * y2))));
} else if (k <= 1.08e-234) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4)));
} else if (k <= 2e-170) {
tmp = t_3;
} else if (k <= 7.5e-48) {
tmp = a * (((b * ((x * y) - (z * t))) - (y1 * t_2)) + (y5 * ((t * y2) - (y * y3))));
} else if (k <= 1.75e-14) {
tmp = c * (y0 * t_2);
} else if (k <= 5e+169) {
tmp = t_3;
} 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 = (b * y4) - (i * y5)
t_2 = (x * y2) - (z * y3)
t_3 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_4 = (y1 * y4) - (y0 * y5)
t_5 = k * (((y2 * t_4) - (y * t_1)) + (z * ((b * y0) - (i * y1))))
t_6 = (k * y2) - (j * y3)
if (k <= (-1.45d+107)) then
tmp = t_5
else if (k <= (-7.2d+60)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= (-4.8d+36)) then
tmp = y1 * (((y4 * t_6) - (a * t_2)) + (i * ((x * j) - (z * k))))
else if (k <= (-3.5d-41)) then
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))))
else if (k <= (-5.5d-158)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_6)) + (c * ((y * y3) - (t * y2))))
else if (k <= 1.08d-234) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4)))
else if (k <= 2d-170) then
tmp = t_3
else if (k <= 7.5d-48) then
tmp = a * (((b * ((x * y) - (z * t))) - (y1 * t_2)) + (y5 * ((t * y2) - (y * y3))))
else if (k <= 1.75d-14) then
tmp = c * (y0 * t_2)
else if (k <= 5d+169) then
tmp = t_3
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 = (b * y4) - (i * y5);
double t_2 = (x * y2) - (z * y3);
double t_3 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = k * (((y2 * t_4) - (y * t_1)) + (z * ((b * y0) - (i * y1))));
double t_6 = (k * y2) - (j * y3);
double tmp;
if (k <= -1.45e+107) {
tmp = t_5;
} else if (k <= -7.2e+60) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= -4.8e+36) {
tmp = y1 * (((y4 * t_6) - (a * t_2)) + (i * ((x * j) - (z * k))));
} else if (k <= -3.5e-41) {
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j))));
} else if (k <= -5.5e-158) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_6)) + (c * ((y * y3) - (t * y2))));
} else if (k <= 1.08e-234) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4)));
} else if (k <= 2e-170) {
tmp = t_3;
} else if (k <= 7.5e-48) {
tmp = a * (((b * ((x * y) - (z * t))) - (y1 * t_2)) + (y5 * ((t * y2) - (y * y3))));
} else if (k <= 1.75e-14) {
tmp = c * (y0 * t_2);
} else if (k <= 5e+169) {
tmp = t_3;
} 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 = (b * y4) - (i * y5) t_2 = (x * y2) - (z * y3) t_3 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_4 = (y1 * y4) - (y0 * y5) t_5 = k * (((y2 * t_4) - (y * t_1)) + (z * ((b * y0) - (i * y1)))) t_6 = (k * y2) - (j * y3) tmp = 0 if k <= -1.45e+107: tmp = t_5 elif k <= -7.2e+60: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= -4.8e+36: tmp = y1 * (((y4 * t_6) - (a * t_2)) + (i * ((x * j) - (z * k)))) elif k <= -3.5e-41: tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))) elif k <= -5.5e-158: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_6)) + (c * ((y * y3) - (t * y2)))) elif k <= 1.08e-234: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4))) elif k <= 2e-170: tmp = t_3 elif k <= 7.5e-48: tmp = a * (((b * ((x * y) - (z * t))) - (y1 * t_2)) + (y5 * ((t * y2) - (y * y3)))) elif k <= 1.75e-14: tmp = c * (y0 * t_2) elif k <= 5e+169: tmp = t_3 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(b * y4) - Float64(i * y5)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(j * Float64(Float64(Float64(t * t_1) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(k * Float64(Float64(Float64(y2 * t_4) - Float64(y * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))) t_6 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (k <= -1.45e+107) tmp = t_5; elseif (k <= -7.2e+60) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= -4.8e+36) tmp = Float64(y1 * Float64(Float64(Float64(y4 * t_6) - Float64(a * t_2)) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); elseif (k <= -3.5e-41) tmp = Float64(y0 * Float64(Float64(Float64(c * t_2) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))); elseif (k <= -5.5e-158) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * t_6)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (k <= 1.08e-234) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(j * t_4)))); elseif (k <= 2e-170) tmp = t_3; elseif (k <= 7.5e-48) tmp = Float64(a * Float64(Float64(Float64(b * Float64(Float64(x * y) - Float64(z * t))) - Float64(y1 * t_2)) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (k <= 1.75e-14) tmp = Float64(c * Float64(y0 * t_2)); elseif (k <= 5e+169) tmp = t_3; 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 = (b * y4) - (i * y5); t_2 = (x * y2) - (z * y3); t_3 = j * (((t * t_1) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_4 = (y1 * y4) - (y0 * y5); t_5 = k * (((y2 * t_4) - (y * t_1)) + (z * ((b * y0) - (i * y1)))); t_6 = (k * y2) - (j * y3); tmp = 0.0; if (k <= -1.45e+107) tmp = t_5; elseif (k <= -7.2e+60) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= -4.8e+36) tmp = y1 * (((y4 * t_6) - (a * t_2)) + (i * ((x * j) - (z * k)))); elseif (k <= -3.5e-41) tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * ((z * k) - (x * j)))); elseif (k <= -5.5e-158) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_6)) + (c * ((y * y3) - (t * y2)))); elseif (k <= 1.08e-234) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_4))); elseif (k <= 2e-170) tmp = t_3; elseif (k <= 7.5e-48) tmp = a * (((b * ((x * y) - (z * t))) - (y1 * t_2)) + (y5 * ((t * y2) - (y * y3)))); elseif (k <= 1.75e-14) tmp = c * (y0 * t_2); elseif (k <= 5e+169) tmp = t_3; 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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(N[(t * t$95$1), $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$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(k * N[(N[(N[(y2 * t$95$4), $MachinePrecision] - N[(y * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.45e+107], t$95$5, If[LessEqual[k, -7.2e+60], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.8e+36], N[(y1 * N[(N[(N[(y4 * t$95$6), $MachinePrecision] - N[(a * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3.5e-41], N[(y0 * N[(N[(N[(c * t$95$2), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -5.5e-158], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.08e-234], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2e-170], t$95$3, If[LessEqual[k, 7.5e-48], N[(a * N[(N[(N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.75e-14], N[(c * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5e+169], t$95$3, t$95$5]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := j \cdot \left(\left(t \cdot t_1 + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := k \cdot \left(\left(y2 \cdot t_4 - y \cdot t_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_6 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;k \leq -1.45 \cdot 10^{+107}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;k \leq -7.2 \cdot 10^{+60}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq -4.8 \cdot 10^{+36}:\\
\;\;\;\;y1 \cdot \left(\left(y4 \cdot t_6 - a \cdot t_2\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq -3.5 \cdot 10^{-41}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot t_2 + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;k \leq -5.5 \cdot 10^{-158}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot t_6\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 1.08 \cdot 10^{-234}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) - j \cdot t_4\right)\right)\\
\mathbf{elif}\;k \leq 2 \cdot 10^{-170}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 7.5 \cdot 10^{-48}:\\
\;\;\;\;a \cdot \left(\left(b \cdot \left(x \cdot y - z \cdot t\right) - y1 \cdot t_2\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 1.75 \cdot 10^{-14}:\\
\;\;\;\;c \cdot \left(y0 \cdot t_2\right)\\
\mathbf{elif}\;k \leq 5 \cdot 10^{+169}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if k < -1.44999999999999994e107 or 5.00000000000000017e169 < k Initial program 28.9%
Taylor expanded in k around inf 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
mul-1-neg66.8%
Simplified66.8%
if -1.44999999999999994e107 < k < -7.19999999999999935e60Initial program 25.0%
Taylor expanded in y2 around inf 62.5%
Taylor expanded in c around inf 75.8%
if -7.19999999999999935e60 < k < -4.79999999999999985e36Initial program 74.6%
Taylor expanded in y1 around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
*-commutative75.5%
mul-1-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -4.79999999999999985e36 < k < -3.5e-41Initial program 31.3%
Taylor expanded in y0 around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
*-commutative63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
if -3.5e-41 < k < -5.50000000000000025e-158Initial program 23.3%
Taylor expanded in y4 around inf 60.3%
if -5.50000000000000025e-158 < k < 1.0800000000000001e-234Initial program 24.8%
Taylor expanded in y3 around -inf 51.5%
if 1.0800000000000001e-234 < k < 1.99999999999999997e-170 or 1.7500000000000001e-14 < k < 5.00000000000000017e169Initial program 20.5%
Taylor expanded in j around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
Simplified72.0%
if 1.99999999999999997e-170 < k < 7.50000000000000042e-48Initial program 28.6%
Simplified28.6%
Taylor expanded in a around inf 57.7%
if 7.50000000000000042e-48 < k < 1.7500000000000001e-14Initial program 16.4%
Taylor expanded in y0 around inf 18.0%
+-commutative18.0%
mul-1-neg18.0%
unsub-neg18.0%
*-commutative18.0%
*-commutative18.0%
*-commutative18.0%
*-commutative18.0%
Simplified18.0%
Taylor expanded in c around inf 52.2%
Final simplification63.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -1.4e+158)
(* j (* t (* b y4)))
(if (<= y4 -1.8e+88)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= y4 -1.12e-82)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -2.3e-222)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y4 -6.6e-300)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= y4 1.32e-204)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y4 3.8e-12)
(* y3 (* a (- (* z y1) (* y y5))))
(if (<= y4 1.55e+66)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 2.7e+130)
(*
y3
(+
(* j (- (* y0 y5) (* y1 y4)))
(* y (- (* c y4) (* a y5)))))
(if (<= y4 9e+205)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y4 9e+242)
(* c (* y2 (- (* x y0) (* t y4))))
(* j (* y4 (- (* t b) (* y1 y3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -1.4e+158) {
tmp = j * (t * (b * y4));
} else if (y4 <= -1.8e+88) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (y4 <= -1.12e-82) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -2.3e-222) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= -6.6e-300) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y4 <= 1.32e-204) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y4 <= 3.8e-12) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 1.55e+66) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 2.7e+130) {
tmp = y3 * ((j * ((y0 * y5) - (y1 * y4))) + (y * ((c * y4) - (a * y5))));
} else if (y4 <= 9e+205) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 9e+242) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= (-1.4d+158)) then
tmp = j * (t * (b * y4))
else if (y4 <= (-1.8d+88)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (y4 <= (-1.12d-82)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-2.3d-222)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y4 <= (-6.6d-300)) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (y4 <= 1.32d-204) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y4 <= 3.8d-12) then
tmp = y3 * (a * ((z * y1) - (y * y5)))
else if (y4 <= 1.55d+66) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 2.7d+130) then
tmp = y3 * ((j * ((y0 * y5) - (y1 * y4))) + (y * ((c * y4) - (a * y5))))
else if (y4 <= 9d+205) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y4 <= 9d+242) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -1.4e+158) {
tmp = j * (t * (b * y4));
} else if (y4 <= -1.8e+88) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (y4 <= -1.12e-82) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -2.3e-222) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= -6.6e-300) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y4 <= 1.32e-204) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y4 <= 3.8e-12) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 1.55e+66) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 2.7e+130) {
tmp = y3 * ((j * ((y0 * y5) - (y1 * y4))) + (y * ((c * y4) - (a * y5))));
} else if (y4 <= 9e+205) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 9e+242) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -1.4e+158: tmp = j * (t * (b * y4)) elif y4 <= -1.8e+88: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif y4 <= -1.12e-82: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -2.3e-222: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y4 <= -6.6e-300: tmp = t * (y5 * ((a * y2) - (i * j))) elif y4 <= 1.32e-204: tmp = i * (k * ((y * y5) - (z * y1))) elif y4 <= 3.8e-12: tmp = y3 * (a * ((z * y1) - (y * y5))) elif y4 <= 1.55e+66: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 2.7e+130: tmp = y3 * ((j * ((y0 * y5) - (y1 * y4))) + (y * ((c * y4) - (a * y5)))) elif y4 <= 9e+205: tmp = k * (y * ((i * y5) - (b * y4))) elif y4 <= 9e+242: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -1.4e+158) tmp = Float64(j * Float64(t * Float64(b * y4))); elseif (y4 <= -1.8e+88) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (y4 <= -1.12e-82) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -2.3e-222) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y4 <= -6.6e-300) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (y4 <= 1.32e-204) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y4 <= 3.8e-12) tmp = Float64(y3 * Float64(a * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (y4 <= 1.55e+66) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 2.7e+130) tmp = Float64(y3 * Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(y * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (y4 <= 9e+205) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y4 <= 9e+242) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= -1.4e+158) tmp = j * (t * (b * y4)); elseif (y4 <= -1.8e+88) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (y4 <= -1.12e-82) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -2.3e-222) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y4 <= -6.6e-300) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (y4 <= 1.32e-204) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y4 <= 3.8e-12) tmp = y3 * (a * ((z * y1) - (y * y5))); elseif (y4 <= 1.55e+66) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 2.7e+130) tmp = y3 * ((j * ((y0 * y5) - (y1 * y4))) + (y * ((c * y4) - (a * y5)))); elseif (y4 <= 9e+205) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y4 <= 9e+242) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -1.4e+158], N[(j * N[(t * N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.8e+88], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.12e-82], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.3e-222], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6.6e-300], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.32e-204], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.8e-12], N[(y3 * N[(a * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e+66], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.7e+130], N[(y3 * N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9e+205], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9e+242], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.4 \cdot 10^{+158}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.8 \cdot 10^{+88}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;y4 \leq -1.12 \cdot 10^{-82}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -2.3 \cdot 10^{-222}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq -6.6 \cdot 10^{-300}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq 1.32 \cdot 10^{-204}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 3.8 \cdot 10^{-12}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.55 \cdot 10^{+66}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 2.7 \cdot 10^{+130}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 9 \cdot 10^{+205}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 9 \cdot 10^{+242}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -1.40000000000000001e158Initial program 11.1%
Taylor expanded in j around inf 44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in t around inf 56.2%
Taylor expanded in b around inf 56.3%
if -1.40000000000000001e158 < y4 < -1.8000000000000001e88Initial program 7.1%
Taylor expanded in j around inf 7.1%
+-commutative7.1%
mul-1-neg7.1%
unsub-neg7.1%
*-commutative7.1%
Simplified7.1%
Taylor expanded in y1 around -inf 58.4%
associate-*r*58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
if -1.8000000000000001e88 < y4 < -1.12e-82Initial program 38.8%
Taylor expanded in y2 around inf 48.9%
Taylor expanded in y4 around inf 43.4%
if -1.12e-82 < y4 < -2.3000000000000001e-222Initial program 36.0%
Taylor expanded in y0 around inf 57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
*-commutative57.1%
*-commutative57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in c around inf 58.1%
if -2.3000000000000001e-222 < y4 < -6.6000000000000004e-300Initial program 31.8%
Taylor expanded in y5 around -inf 32.2%
Taylor expanded in t around inf 50.6%
if -6.6000000000000004e-300 < y4 < 1.32e-204Initial program 16.2%
Taylor expanded in k around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
mul-1-neg42.3%
Simplified42.3%
Taylor expanded in i around -inf 47.9%
if 1.32e-204 < y4 < 3.79999999999999996e-12Initial program 29.5%
Simplified31.9%
Taylor expanded in a around inf 61.1%
Taylor expanded in y3 around inf 56.9%
*-commutative56.9%
associate-*l*59.2%
Simplified59.2%
if 3.79999999999999996e-12 < y4 < 1.55000000000000009e66Initial program 18.8%
Taylor expanded in j around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in x around inf 69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
if 1.55000000000000009e66 < y4 < 2.6999999999999998e130Initial program 33.2%
Taylor expanded in y4 around inf 53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in y3 around -inf 60.5%
if 2.6999999999999998e130 < y4 < 9.00000000000000071e205Initial program 23.4%
Taylor expanded in k around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
mul-1-neg64.9%
Simplified64.9%
Taylor expanded in y around inf 70.7%
if 9.00000000000000071e205 < y4 < 8.9999999999999992e242Initial program 25.0%
Taylor expanded in y2 around inf 50.1%
Taylor expanded in c around inf 83.5%
if 8.9999999999999992e242 < y4 Initial program 28.6%
Taylor expanded in j around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y4 around inf 85.7%
*-commutative85.7%
Simplified85.7%
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 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= y4 -3.7e+158)
(* j (* t (* b y4)))
(if (<= y4 -1.42e+88)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= y4 -3.55e-81)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -1.8e-222)
t_1
(if (<= y4 -2.1e-267)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= y4 4.4e-201)
t_1
(if (<= y4 8.5e-13)
(* y3 (* a (- (* z y1) (* y y5))))
(if (<= y4 2.1e+87)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 2.4e+116)
(* x (* c (* y0 y2)))
(if (<= y4 9e+206)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y4 8e+242)
(* c (* y2 (- (* x y0) (* t y4))))
(* j (* y4 (- (* t b) (* y1 y3)))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y4 <= -3.7e+158) {
tmp = j * (t * (b * y4));
} else if (y4 <= -1.42e+88) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (y4 <= -3.55e-81) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.8e-222) {
tmp = t_1;
} else if (y4 <= -2.1e-267) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y4 <= 4.4e-201) {
tmp = t_1;
} else if (y4 <= 8.5e-13) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 2.1e+87) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 2.4e+116) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 9e+206) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 8e+242) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
if (y4 <= (-3.7d+158)) then
tmp = j * (t * (b * y4))
else if (y4 <= (-1.42d+88)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (y4 <= (-3.55d-81)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-1.8d-222)) then
tmp = t_1
else if (y4 <= (-2.1d-267)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (y4 <= 4.4d-201) then
tmp = t_1
else if (y4 <= 8.5d-13) then
tmp = y3 * (a * ((z * y1) - (y * y5)))
else if (y4 <= 2.1d+87) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 2.4d+116) then
tmp = x * (c * (y0 * y2))
else if (y4 <= 9d+206) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y4 <= 8d+242) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y4 <= -3.7e+158) {
tmp = j * (t * (b * y4));
} else if (y4 <= -1.42e+88) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (y4 <= -3.55e-81) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.8e-222) {
tmp = t_1;
} else if (y4 <= -2.1e-267) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y4 <= 4.4e-201) {
tmp = t_1;
} else if (y4 <= 8.5e-13) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 2.1e+87) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 2.4e+116) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 9e+206) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 8e+242) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) tmp = 0 if y4 <= -3.7e+158: tmp = j * (t * (b * y4)) elif y4 <= -1.42e+88: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif y4 <= -3.55e-81: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -1.8e-222: tmp = t_1 elif y4 <= -2.1e-267: tmp = x * (a * ((y * b) - (y1 * y2))) elif y4 <= 4.4e-201: tmp = t_1 elif y4 <= 8.5e-13: tmp = y3 * (a * ((z * y1) - (y * y5))) elif y4 <= 2.1e+87: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 2.4e+116: tmp = x * (c * (y0 * y2)) elif y4 <= 9e+206: tmp = k * (y * ((i * y5) - (b * y4))) elif y4 <= 8e+242: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (y4 <= -3.7e+158) tmp = Float64(j * Float64(t * Float64(b * y4))); elseif (y4 <= -1.42e+88) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (y4 <= -3.55e-81) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -1.8e-222) tmp = t_1; elseif (y4 <= -2.1e-267) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (y4 <= 4.4e-201) tmp = t_1; elseif (y4 <= 8.5e-13) tmp = Float64(y3 * Float64(a * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (y4 <= 2.1e+87) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 2.4e+116) tmp = Float64(x * Float64(c * Float64(y0 * y2))); elseif (y4 <= 9e+206) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y4 <= 8e+242) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (y4 <= -3.7e+158) tmp = j * (t * (b * y4)); elseif (y4 <= -1.42e+88) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (y4 <= -3.55e-81) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -1.8e-222) tmp = t_1; elseif (y4 <= -2.1e-267) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (y4 <= 4.4e-201) tmp = t_1; elseif (y4 <= 8.5e-13) tmp = y3 * (a * ((z * y1) - (y * y5))); elseif (y4 <= 2.1e+87) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 2.4e+116) tmp = x * (c * (y0 * y2)); elseif (y4 <= 9e+206) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y4 <= 8e+242) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.7e+158], N[(j * N[(t * N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.42e+88], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.55e-81], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.8e-222], t$95$1, If[LessEqual[y4, -2.1e-267], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.4e-201], t$95$1, If[LessEqual[y4, 8.5e-13], N[(y3 * N[(a * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.1e+87], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.4e+116], N[(x * N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9e+206], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8e+242], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;y4 \leq -3.7 \cdot 10^{+158}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.42 \cdot 10^{+88}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;y4 \leq -3.55 \cdot 10^{-81}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -1.8 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq -2.1 \cdot 10^{-267}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 4.4 \cdot 10^{-201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq 8.5 \cdot 10^{-13}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 2.1 \cdot 10^{+87}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 2.4 \cdot 10^{+116}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 9 \cdot 10^{+206}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 8 \cdot 10^{+242}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -3.70000000000000011e158Initial program 11.1%
Taylor expanded in j around inf 44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in t around inf 56.2%
Taylor expanded in b around inf 56.3%
if -3.70000000000000011e158 < y4 < -1.41999999999999996e88Initial program 7.1%
Taylor expanded in j around inf 7.1%
+-commutative7.1%
mul-1-neg7.1%
unsub-neg7.1%
*-commutative7.1%
Simplified7.1%
Taylor expanded in y1 around -inf 58.4%
associate-*r*58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
if -1.41999999999999996e88 < y4 < -3.5500000000000001e-81Initial program 38.8%
Taylor expanded in y2 around inf 48.9%
Taylor expanded in y4 around inf 43.4%
if -3.5500000000000001e-81 < y4 < -1.79999999999999987e-222 or -2.1000000000000001e-267 < y4 < 4.4e-201Initial program 31.4%
Taylor expanded in y0 around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
*-commutative47.9%
*-commutative47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in c around inf 48.9%
if -1.79999999999999987e-222 < y4 < -2.1000000000000001e-267Initial program 20.0%
Simplified20.0%
Taylor expanded in a around inf 30.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
associate-*l*51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
if 4.4e-201 < y4 < 8.5000000000000001e-13Initial program 28.4%
Simplified31.0%
Taylor expanded in a around inf 61.7%
Taylor expanded in y3 around inf 59.7%
*-commutative59.7%
associate-*l*62.2%
Simplified62.2%
if 8.5000000000000001e-13 < y4 < 2.1e87Initial program 24.9%
Taylor expanded in j around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in x around inf 65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
if 2.1e87 < y4 < 2.4e116Initial program 25.0%
Taylor expanded in y2 around inf 62.5%
Taylor expanded in y0 around inf 63.6%
associate-*r*63.6%
*-commutative63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in x around inf 63.9%
associate-*r*51.4%
*-commutative51.4%
associate-*l*75.5%
Simplified75.5%
if 2.4e116 < y4 < 9.00000000000000035e206Initial program 24.9%
Taylor expanded in k around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
mul-1-neg60.7%
Simplified60.7%
Taylor expanded in y around inf 60.6%
if 9.00000000000000035e206 < y4 < 8.00000000000000041e242Initial program 25.0%
Taylor expanded in y2 around inf 50.1%
Taylor expanded in c around inf 83.5%
if 8.00000000000000041e242 < y4 Initial program 28.6%
Taylor expanded in j around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y4 around inf 85.7%
*-commutative85.7%
Simplified85.7%
Final simplification58.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -5e+157)
(* j (* t (* b y4)))
(if (<= y4 -1.8e+88)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= y4 -1.05e-84)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -2.5e-222)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y4 -9e-299)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= y4 2.2e-205)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y4 6.6e-13)
(* y3 (* a (- (* z y1) (* y y5))))
(if (<= y4 1.85e+86)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 1.95e+116)
(* x (* c (* y0 y2)))
(if (<= y4 1.35e+207)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y4 6.4e+242)
(* c (* y2 (- (* x y0) (* t y4))))
(* j (* y4 (- (* t b) (* y1 y3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -5e+157) {
tmp = j * (t * (b * y4));
} else if (y4 <= -1.8e+88) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (y4 <= -1.05e-84) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -2.5e-222) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= -9e-299) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y4 <= 2.2e-205) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y4 <= 6.6e-13) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 1.85e+86) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 1.95e+116) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 1.35e+207) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 6.4e+242) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= (-5d+157)) then
tmp = j * (t * (b * y4))
else if (y4 <= (-1.8d+88)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (y4 <= (-1.05d-84)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-2.5d-222)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y4 <= (-9d-299)) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (y4 <= 2.2d-205) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y4 <= 6.6d-13) then
tmp = y3 * (a * ((z * y1) - (y * y5)))
else if (y4 <= 1.85d+86) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 1.95d+116) then
tmp = x * (c * (y0 * y2))
else if (y4 <= 1.35d+207) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y4 <= 6.4d+242) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -5e+157) {
tmp = j * (t * (b * y4));
} else if (y4 <= -1.8e+88) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (y4 <= -1.05e-84) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -2.5e-222) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= -9e-299) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y4 <= 2.2e-205) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y4 <= 6.6e-13) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 1.85e+86) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 1.95e+116) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 1.35e+207) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 6.4e+242) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -5e+157: tmp = j * (t * (b * y4)) elif y4 <= -1.8e+88: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif y4 <= -1.05e-84: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -2.5e-222: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y4 <= -9e-299: tmp = t * (y5 * ((a * y2) - (i * j))) elif y4 <= 2.2e-205: tmp = i * (k * ((y * y5) - (z * y1))) elif y4 <= 6.6e-13: tmp = y3 * (a * ((z * y1) - (y * y5))) elif y4 <= 1.85e+86: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 1.95e+116: tmp = x * (c * (y0 * y2)) elif y4 <= 1.35e+207: tmp = k * (y * ((i * y5) - (b * y4))) elif y4 <= 6.4e+242: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -5e+157) tmp = Float64(j * Float64(t * Float64(b * y4))); elseif (y4 <= -1.8e+88) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (y4 <= -1.05e-84) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -2.5e-222) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y4 <= -9e-299) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (y4 <= 2.2e-205) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y4 <= 6.6e-13) tmp = Float64(y3 * Float64(a * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (y4 <= 1.85e+86) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 1.95e+116) tmp = Float64(x * Float64(c * Float64(y0 * y2))); elseif (y4 <= 1.35e+207) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y4 <= 6.4e+242) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= -5e+157) tmp = j * (t * (b * y4)); elseif (y4 <= -1.8e+88) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (y4 <= -1.05e-84) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -2.5e-222) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y4 <= -9e-299) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (y4 <= 2.2e-205) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y4 <= 6.6e-13) tmp = y3 * (a * ((z * y1) - (y * y5))); elseif (y4 <= 1.85e+86) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 1.95e+116) tmp = x * (c * (y0 * y2)); elseif (y4 <= 1.35e+207) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y4 <= 6.4e+242) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -5e+157], N[(j * N[(t * N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.8e+88], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.05e-84], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.5e-222], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-299], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.2e-205], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.6e-13], N[(y3 * N[(a * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.85e+86], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.95e+116], N[(x * N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.35e+207], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.4e+242], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -5 \cdot 10^{+157}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.8 \cdot 10^{+88}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;y4 \leq -1.05 \cdot 10^{-84}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -2.5 \cdot 10^{-222}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{-299}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq 2.2 \cdot 10^{-205}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 6.6 \cdot 10^{-13}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.85 \cdot 10^{+86}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{+116}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 1.35 \cdot 10^{+207}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 6.4 \cdot 10^{+242}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -4.99999999999999976e157Initial program 11.1%
Taylor expanded in j around inf 44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in t around inf 56.2%
Taylor expanded in b around inf 56.3%
if -4.99999999999999976e157 < y4 < -1.8000000000000001e88Initial program 7.1%
Taylor expanded in j around inf 7.1%
+-commutative7.1%
mul-1-neg7.1%
unsub-neg7.1%
*-commutative7.1%
Simplified7.1%
Taylor expanded in y1 around -inf 58.4%
associate-*r*58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
if -1.8000000000000001e88 < y4 < -1.04999999999999999e-84Initial program 38.8%
Taylor expanded in y2 around inf 48.9%
Taylor expanded in y4 around inf 43.4%
if -1.04999999999999999e-84 < y4 < -2.50000000000000004e-222Initial program 36.0%
Taylor expanded in y0 around inf 57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
*-commutative57.1%
*-commutative57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in c around inf 58.1%
if -2.50000000000000004e-222 < y4 < -9.00000000000000006e-299Initial program 31.8%
Taylor expanded in y5 around -inf 32.2%
Taylor expanded in t around inf 50.6%
if -9.00000000000000006e-299 < y4 < 2.20000000000000009e-205Initial program 16.2%
Taylor expanded in k around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
mul-1-neg42.3%
Simplified42.3%
Taylor expanded in i around -inf 47.9%
if 2.20000000000000009e-205 < y4 < 6.6000000000000001e-13Initial program 29.5%
Simplified31.9%
Taylor expanded in a around inf 61.1%
Taylor expanded in y3 around inf 56.9%
*-commutative56.9%
associate-*l*59.2%
Simplified59.2%
if 6.6000000000000001e-13 < y4 < 1.84999999999999996e86Initial program 24.9%
Taylor expanded in j around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in x around inf 65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
if 1.84999999999999996e86 < y4 < 1.95000000000000016e116Initial program 25.0%
Taylor expanded in y2 around inf 62.5%
Taylor expanded in y0 around inf 63.6%
associate-*r*63.6%
*-commutative63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in x around inf 63.9%
associate-*r*51.4%
*-commutative51.4%
associate-*l*75.5%
Simplified75.5%
if 1.95000000000000016e116 < y4 < 1.35000000000000012e207Initial program 24.9%
Taylor expanded in k around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
mul-1-neg60.7%
Simplified60.7%
Taylor expanded in y around inf 60.6%
if 1.35000000000000012e207 < y4 < 6.4000000000000003e242Initial program 25.0%
Taylor expanded in y2 around inf 50.1%
Taylor expanded in c around inf 83.5%
if 6.4000000000000003e242 < y4 Initial program 28.6%
Taylor expanded in j around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y4 around inf 85.7%
*-commutative85.7%
Simplified85.7%
Final simplification59.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y3 y5) (* x b))) (t_2 (* t (* y2 (- (* a y5) (* c y4))))))
(if (<= j -4.3e+113)
(* j (* t (- (* b y4) (* i y5))))
(if (<= j -4.2e-44)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= j -1.08e-69)
(* j (* y4 (- (* t b) (* y1 y3))))
(if (<= j -1.1e-150)
(* c (* x (* y0 y2)))
(if (<= j -5.4e-199)
t_2
(if (<= j -1.02e-215)
(* b (* j (* t y4)))
(if (<= j 3.7e-81)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= j 14000000000000.0)
t_2
(if (<= j 2.8e+188)
(* y0 (* j t_1))
(if (<= j 5.5e+237)
(* b (* y4 (- (* t j) (* y k))))
(* j (* y0 t_1))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y3 * y5) - (x * b);
double t_2 = t * (y2 * ((a * y5) - (c * y4)));
double tmp;
if (j <= -4.3e+113) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (j <= -4.2e-44) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (j <= -1.08e-69) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (j <= -1.1e-150) {
tmp = c * (x * (y0 * y2));
} else if (j <= -5.4e-199) {
tmp = t_2;
} else if (j <= -1.02e-215) {
tmp = b * (j * (t * y4));
} else if (j <= 3.7e-81) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (j <= 14000000000000.0) {
tmp = t_2;
} else if (j <= 2.8e+188) {
tmp = y0 * (j * t_1);
} else if (j <= 5.5e+237) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = j * (y0 * 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 = (y3 * y5) - (x * b)
t_2 = t * (y2 * ((a * y5) - (c * y4)))
if (j <= (-4.3d+113)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (j <= (-4.2d-44)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (j <= (-1.08d-69)) then
tmp = j * (y4 * ((t * b) - (y1 * y3)))
else if (j <= (-1.1d-150)) then
tmp = c * (x * (y0 * y2))
else if (j <= (-5.4d-199)) then
tmp = t_2
else if (j <= (-1.02d-215)) then
tmp = b * (j * (t * y4))
else if (j <= 3.7d-81) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (j <= 14000000000000.0d0) then
tmp = t_2
else if (j <= 2.8d+188) then
tmp = y0 * (j * t_1)
else if (j <= 5.5d+237) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = j * (y0 * 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 = (y3 * y5) - (x * b);
double t_2 = t * (y2 * ((a * y5) - (c * y4)));
double tmp;
if (j <= -4.3e+113) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (j <= -4.2e-44) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (j <= -1.08e-69) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (j <= -1.1e-150) {
tmp = c * (x * (y0 * y2));
} else if (j <= -5.4e-199) {
tmp = t_2;
} else if (j <= -1.02e-215) {
tmp = b * (j * (t * y4));
} else if (j <= 3.7e-81) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (j <= 14000000000000.0) {
tmp = t_2;
} else if (j <= 2.8e+188) {
tmp = y0 * (j * t_1);
} else if (j <= 5.5e+237) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = j * (y0 * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y3 * y5) - (x * b) t_2 = t * (y2 * ((a * y5) - (c * y4))) tmp = 0 if j <= -4.3e+113: tmp = j * (t * ((b * y4) - (i * y5))) elif j <= -4.2e-44: tmp = c * (y2 * ((x * y0) - (t * y4))) elif j <= -1.08e-69: tmp = j * (y4 * ((t * b) - (y1 * y3))) elif j <= -1.1e-150: tmp = c * (x * (y0 * y2)) elif j <= -5.4e-199: tmp = t_2 elif j <= -1.02e-215: tmp = b * (j * (t * y4)) elif j <= 3.7e-81: tmp = c * (y0 * ((x * y2) - (z * y3))) elif j <= 14000000000000.0: tmp = t_2 elif j <= 2.8e+188: tmp = y0 * (j * t_1) elif j <= 5.5e+237: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = j * (y0 * 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(y3 * y5) - Float64(x * b)) t_2 = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))) tmp = 0.0 if (j <= -4.3e+113) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (j <= -4.2e-44) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (j <= -1.08e-69) tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (j <= -1.1e-150) tmp = Float64(c * Float64(x * Float64(y0 * y2))); elseif (j <= -5.4e-199) tmp = t_2; elseif (j <= -1.02e-215) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (j <= 3.7e-81) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (j <= 14000000000000.0) tmp = t_2; elseif (j <= 2.8e+188) tmp = Float64(y0 * Float64(j * t_1)); elseif (j <= 5.5e+237) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(j * Float64(y0 * 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 = (y3 * y5) - (x * b); t_2 = t * (y2 * ((a * y5) - (c * y4))); tmp = 0.0; if (j <= -4.3e+113) tmp = j * (t * ((b * y4) - (i * y5))); elseif (j <= -4.2e-44) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (j <= -1.08e-69) tmp = j * (y4 * ((t * b) - (y1 * y3))); elseif (j <= -1.1e-150) tmp = c * (x * (y0 * y2)); elseif (j <= -5.4e-199) tmp = t_2; elseif (j <= -1.02e-215) tmp = b * (j * (t * y4)); elseif (j <= 3.7e-81) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (j <= 14000000000000.0) tmp = t_2; elseif (j <= 2.8e+188) tmp = y0 * (j * t_1); elseif (j <= 5.5e+237) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = j * (y0 * 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[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+113], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.2e-44], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.08e-69], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.1e-150], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.4e-199], t$95$2, If[LessEqual[j, -1.02e-215], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.7e-81], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 14000000000000.0], t$95$2, If[LessEqual[j, 2.8e+188], N[(y0 * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.5e+237], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot y5 - x \cdot b\\
t_2 := t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;j \leq -4.3 \cdot 10^{+113}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-44}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq -1.08 \cdot 10^{-69}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;j \leq -1.1 \cdot 10^{-150}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -5.4 \cdot 10^{-199}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -1.02 \cdot 10^{-215}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 3.7 \cdot 10^{-81}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;j \leq 14000000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+188}:\\
\;\;\;\;y0 \cdot \left(j \cdot t_1\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+237}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot t_1\right)\\
\end{array}
\end{array}
if j < -4.3000000000000003e113Initial program 15.5%
Taylor expanded in j around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in t around inf 57.5%
if -4.3000000000000003e113 < j < -4.20000000000000003e-44Initial program 37.5%
Taylor expanded in y2 around inf 41.1%
Taylor expanded in c around inf 35.4%
if -4.20000000000000003e-44 < j < -1.0800000000000001e-69Initial program 37.5%
Taylor expanded in j around inf 26.5%
+-commutative26.5%
mul-1-neg26.5%
unsub-neg26.5%
*-commutative26.5%
Simplified26.5%
Taylor expanded in y4 around inf 50.9%
*-commutative50.9%
Simplified50.9%
if -1.0800000000000001e-69 < j < -1.1e-150Initial program 52.3%
Taylor expanded in y2 around inf 48.3%
Taylor expanded in y0 around inf 34.6%
associate-*r*34.6%
*-commutative34.6%
+-commutative34.6%
mul-1-neg34.6%
unsub-neg34.6%
*-commutative34.6%
*-commutative34.6%
Simplified34.6%
Taylor expanded in x around inf 44.0%
if -1.1e-150 < j < -5.39999999999999979e-199 or 3.69999999999999986e-81 < j < 1.4e13Initial program 18.4%
Taylor expanded in y2 around inf 52.8%
Taylor expanded in t around inf 61.3%
if -5.39999999999999979e-199 < j < -1.0200000000000001e-215Initial program 25.0%
Taylor expanded in j around inf 25.0%
+-commutative25.0%
mul-1-neg25.0%
unsub-neg25.0%
*-commutative25.0%
Simplified25.0%
Taylor expanded in t around inf 75.4%
Taylor expanded in b around inf 75.4%
if -1.0200000000000001e-215 < j < 3.69999999999999986e-81Initial program 27.1%
Taylor expanded in y0 around inf 37.7%
+-commutative37.7%
mul-1-neg37.7%
unsub-neg37.7%
*-commutative37.7%
*-commutative37.7%
*-commutative37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in c around inf 43.7%
if 1.4e13 < j < 2.7999999999999998e188Initial program 26.0%
Taylor expanded in y0 around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
*-commutative46.1%
*-commutative46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in j around -inf 55.2%
associate-*r*57.8%
*-commutative57.8%
associate-*l*57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if 2.7999999999999998e188 < j < 5.5000000000000001e237Initial program 0.0%
Taylor expanded in y4 around inf 42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in b around inf 84.0%
if 5.5000000000000001e237 < j Initial program 27.3%
Taylor expanded in j around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y0 around -inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Final simplification53.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* j (* x (- (* i y1) (* b y0))))))
(if (<= y4 -6.6e-84)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -3.1e-223)
t_1
(if (<= y4 -1e-263)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= y4 2.25e-237)
t_1
(if (<= y4 9.8e-113)
t_2
(if (<= y4 6.8e-46)
t_1
(if (<= y4 6.2e+85)
t_2
(if (<= y4 1.95e+120)
(* x (* c (* y0 y2)))
(if (<= y4 2.4e+206)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y4 1.1e+243)
(* c (* y2 (- (* x y0) (* t y4))))
(* j (* y4 (- (* t b) (* y1 y3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (y4 <= -6.6e-84) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -3.1e-223) {
tmp = t_1;
} else if (y4 <= -1e-263) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y4 <= 2.25e-237) {
tmp = t_1;
} else if (y4 <= 9.8e-113) {
tmp = t_2;
} else if (y4 <= 6.8e-46) {
tmp = t_1;
} else if (y4 <= 6.2e+85) {
tmp = t_2;
} else if (y4 <= 1.95e+120) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 2.4e+206) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 1.1e+243) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = j * (x * ((i * y1) - (b * y0)))
if (y4 <= (-6.6d-84)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-3.1d-223)) then
tmp = t_1
else if (y4 <= (-1d-263)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (y4 <= 2.25d-237) then
tmp = t_1
else if (y4 <= 9.8d-113) then
tmp = t_2
else if (y4 <= 6.8d-46) then
tmp = t_1
else if (y4 <= 6.2d+85) then
tmp = t_2
else if (y4 <= 1.95d+120) then
tmp = x * (c * (y0 * y2))
else if (y4 <= 2.4d+206) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y4 <= 1.1d+243) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (y4 <= -6.6e-84) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -3.1e-223) {
tmp = t_1;
} else if (y4 <= -1e-263) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y4 <= 2.25e-237) {
tmp = t_1;
} else if (y4 <= 9.8e-113) {
tmp = t_2;
} else if (y4 <= 6.8e-46) {
tmp = t_1;
} else if (y4 <= 6.2e+85) {
tmp = t_2;
} else if (y4 <= 1.95e+120) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 2.4e+206) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 1.1e+243) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) t_2 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if y4 <= -6.6e-84: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -3.1e-223: tmp = t_1 elif y4 <= -1e-263: tmp = x * (a * ((y * b) - (y1 * y2))) elif y4 <= 2.25e-237: tmp = t_1 elif y4 <= 9.8e-113: tmp = t_2 elif y4 <= 6.8e-46: tmp = t_1 elif y4 <= 6.2e+85: tmp = t_2 elif y4 <= 1.95e+120: tmp = x * (c * (y0 * y2)) elif y4 <= 2.4e+206: tmp = k * (y * ((i * y5) - (b * y4))) elif y4 <= 1.1e+243: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (y4 <= -6.6e-84) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -3.1e-223) tmp = t_1; elseif (y4 <= -1e-263) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (y4 <= 2.25e-237) tmp = t_1; elseif (y4 <= 9.8e-113) tmp = t_2; elseif (y4 <= 6.8e-46) tmp = t_1; elseif (y4 <= 6.2e+85) tmp = t_2; elseif (y4 <= 1.95e+120) tmp = Float64(x * Float64(c * Float64(y0 * y2))); elseif (y4 <= 2.4e+206) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y4 <= 1.1e+243) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); t_2 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (y4 <= -6.6e-84) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -3.1e-223) tmp = t_1; elseif (y4 <= -1e-263) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (y4 <= 2.25e-237) tmp = t_1; elseif (y4 <= 9.8e-113) tmp = t_2; elseif (y4 <= 6.8e-46) tmp = t_1; elseif (y4 <= 6.2e+85) tmp = t_2; elseif (y4 <= 1.95e+120) tmp = x * (c * (y0 * y2)); elseif (y4 <= 2.4e+206) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y4 <= 1.1e+243) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * 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[y4, -6.6e-84], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.1e-223], t$95$1, If[LessEqual[y4, -1e-263], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.25e-237], t$95$1, If[LessEqual[y4, 9.8e-113], t$95$2, If[LessEqual[y4, 6.8e-46], t$95$1, If[LessEqual[y4, 6.2e+85], t$95$2, If[LessEqual[y4, 1.95e+120], N[(x * N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.4e+206], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.1e+243], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
t_2 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;y4 \leq -6.6 \cdot 10^{-84}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -3.1 \cdot 10^{-223}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq -1 \cdot 10^{-263}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 2.25 \cdot 10^{-237}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq 9.8 \cdot 10^{-113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y4 \leq 6.8 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq 6.2 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{+120}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 2.4 \cdot 10^{+206}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 1.1 \cdot 10^{+243}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -6.59999999999999968e-84Initial program 22.3%
Taylor expanded in y2 around inf 41.9%
Taylor expanded in y4 around inf 45.2%
if -6.59999999999999968e-84 < y4 < -3.10000000000000018e-223 or -1e-263 < y4 < 2.25000000000000005e-237 or 9.8000000000000006e-113 < y4 < 6.79999999999999992e-46Initial program 33.6%
Taylor expanded in y0 around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in c around inf 54.6%
if -3.10000000000000018e-223 < y4 < -1e-263Initial program 20.0%
Simplified20.0%
Taylor expanded in a around inf 30.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
associate-*l*51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
if 2.25000000000000005e-237 < y4 < 9.8000000000000006e-113 or 6.79999999999999992e-46 < y4 < 6.20000000000000023e85Initial program 23.7%
Taylor expanded in j around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in x around inf 48.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
if 6.20000000000000023e85 < y4 < 1.9499999999999999e120Initial program 25.0%
Taylor expanded in y2 around inf 62.5%
Taylor expanded in y0 around inf 63.6%
associate-*r*63.6%
*-commutative63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in x around inf 63.9%
associate-*r*51.4%
*-commutative51.4%
associate-*l*75.5%
Simplified75.5%
if 1.9499999999999999e120 < y4 < 2.4e206Initial program 24.9%
Taylor expanded in k around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
mul-1-neg60.7%
Simplified60.7%
Taylor expanded in y around inf 60.6%
if 2.4e206 < y4 < 1.10000000000000004e243Initial program 25.0%
Taylor expanded in y2 around inf 50.1%
Taylor expanded in c around inf 83.5%
if 1.10000000000000004e243 < y4 Initial program 28.6%
Taylor expanded in j around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y4 around inf 85.7%
*-commutative85.7%
Simplified85.7%
Final simplification54.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* t (- (* b y4) (* i y5)))))
(t_2 (* x (* a (- (* y b) (* y1 y2)))))
(t_3 (* c (* y2 (- (* x y0) (* t y4))))))
(if (<= k -2.75e+110)
(* y0 (* b (* z k)))
(if (<= k -3e-79)
t_3
(if (<= k -2.8e-205)
t_2
(if (<= k 3.25e-292)
t_3
(if (<= k 3.2e-223)
t_1
(if (<= k 2.6e-128)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= k 1.36e-14)
t_2
(if (<= k 5.6e+118)
t_1
(if (<= k 8.4e+167)
(* j (* x (- (* i y1) (* b y0))))
(* k (* y (- (* i y5) (* b 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 = j * (t * ((b * y4) - (i * y5)));
double t_2 = x * (a * ((y * b) - (y1 * y2)));
double t_3 = c * (y2 * ((x * y0) - (t * y4)));
double tmp;
if (k <= -2.75e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= -3e-79) {
tmp = t_3;
} else if (k <= -2.8e-205) {
tmp = t_2;
} else if (k <= 3.25e-292) {
tmp = t_3;
} else if (k <= 3.2e-223) {
tmp = t_1;
} else if (k <= 2.6e-128) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 1.36e-14) {
tmp = t_2;
} else if (k <= 5.6e+118) {
tmp = t_1;
} else if (k <= 8.4e+167) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = k * (y * ((i * y5) - (b * y4)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (t * ((b * y4) - (i * y5)))
t_2 = x * (a * ((y * b) - (y1 * y2)))
t_3 = c * (y2 * ((x * y0) - (t * y4)))
if (k <= (-2.75d+110)) then
tmp = y0 * (b * (z * k))
else if (k <= (-3d-79)) then
tmp = t_3
else if (k <= (-2.8d-205)) then
tmp = t_2
else if (k <= 3.25d-292) then
tmp = t_3
else if (k <= 3.2d-223) then
tmp = t_1
else if (k <= 2.6d-128) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (k <= 1.36d-14) then
tmp = t_2
else if (k <= 5.6d+118) then
tmp = t_1
else if (k <= 8.4d+167) then
tmp = j * (x * ((i * y1) - (b * y0)))
else
tmp = k * (y * ((i * y5) - (b * 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 = j * (t * ((b * y4) - (i * y5)));
double t_2 = x * (a * ((y * b) - (y1 * y2)));
double t_3 = c * (y2 * ((x * y0) - (t * y4)));
double tmp;
if (k <= -2.75e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= -3e-79) {
tmp = t_3;
} else if (k <= -2.8e-205) {
tmp = t_2;
} else if (k <= 3.25e-292) {
tmp = t_3;
} else if (k <= 3.2e-223) {
tmp = t_1;
} else if (k <= 2.6e-128) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 1.36e-14) {
tmp = t_2;
} else if (k <= 5.6e+118) {
tmp = t_1;
} else if (k <= 8.4e+167) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = k * (y * ((i * y5) - (b * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (t * ((b * y4) - (i * y5))) t_2 = x * (a * ((y * b) - (y1 * y2))) t_3 = c * (y2 * ((x * y0) - (t * y4))) tmp = 0 if k <= -2.75e+110: tmp = y0 * (b * (z * k)) elif k <= -3e-79: tmp = t_3 elif k <= -2.8e-205: tmp = t_2 elif k <= 3.25e-292: tmp = t_3 elif k <= 3.2e-223: tmp = t_1 elif k <= 2.6e-128: tmp = c * (y0 * ((x * y2) - (z * y3))) elif k <= 1.36e-14: tmp = t_2 elif k <= 5.6e+118: tmp = t_1 elif k <= 8.4e+167: tmp = j * (x * ((i * y1) - (b * y0))) else: tmp = k * (y * ((i * y5) - (b * y4))) 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(t * Float64(Float64(b * y4) - Float64(i * y5)))) t_2 = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))) t_3 = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))) tmp = 0.0 if (k <= -2.75e+110) tmp = Float64(y0 * Float64(b * Float64(z * k))); elseif (k <= -3e-79) tmp = t_3; elseif (k <= -2.8e-205) tmp = t_2; elseif (k <= 3.25e-292) tmp = t_3; elseif (k <= 3.2e-223) tmp = t_1; elseif (k <= 2.6e-128) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (k <= 1.36e-14) tmp = t_2; elseif (k <= 5.6e+118) tmp = t_1; elseif (k <= 8.4e+167) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * 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 = j * (t * ((b * y4) - (i * y5))); t_2 = x * (a * ((y * b) - (y1 * y2))); t_3 = c * (y2 * ((x * y0) - (t * y4))); tmp = 0.0; if (k <= -2.75e+110) tmp = y0 * (b * (z * k)); elseif (k <= -3e-79) tmp = t_3; elseif (k <= -2.8e-205) tmp = t_2; elseif (k <= 3.25e-292) tmp = t_3; elseif (k <= 3.2e-223) tmp = t_1; elseif (k <= 2.6e-128) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (k <= 1.36e-14) tmp = t_2; elseif (k <= 5.6e+118) tmp = t_1; elseif (k <= 8.4e+167) tmp = j * (x * ((i * y1) - (b * y0))); else tmp = k * (y * ((i * y5) - (b * 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[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2.75e+110], N[(y0 * N[(b * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3e-79], t$95$3, If[LessEqual[k, -2.8e-205], t$95$2, If[LessEqual[k, 3.25e-292], t$95$3, If[LessEqual[k, 3.2e-223], t$95$1, If[LessEqual[k, 2.6e-128], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.36e-14], t$95$2, If[LessEqual[k, 5.6e+118], t$95$1, If[LessEqual[k, 8.4e+167], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
t_2 := x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
t_3 := c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{if}\;k \leq -2.75 \cdot 10^{+110}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq -3 \cdot 10^{-79}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq -2.8 \cdot 10^{-205}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 3.25 \cdot 10^{-292}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{-223}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 2.6 \cdot 10^{-128}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 1.36 \cdot 10^{-14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 5.6 \cdot 10^{+118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 8.4 \cdot 10^{+167}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\end{array}
\end{array}
if k < -2.74999999999999998e110Initial program 37.2%
Taylor expanded in k around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
mul-1-neg65.2%
Simplified65.2%
Taylor expanded in b around inf 44.7%
Taylor expanded in y0 around inf 33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in b around 0 33.7%
associate-*r*33.6%
*-commutative33.6%
associate-*l*42.5%
*-commutative42.5%
associate-*l*47.0%
*-commutative47.0%
Simplified47.0%
if -2.74999999999999998e110 < k < -3e-79 or -2.79999999999999991e-205 < k < 3.2499999999999998e-292Initial program 29.3%
Taylor expanded in y2 around inf 46.6%
Taylor expanded in c around inf 48.2%
if -3e-79 < k < -2.79999999999999991e-205 or 2.59999999999999981e-128 < k < 1.36e-14Initial program 28.5%
Simplified28.5%
Taylor expanded in a around inf 47.5%
Taylor expanded in x around inf 48.1%
*-commutative48.1%
associate-*l*48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
if 3.2499999999999998e-292 < k < 3.2000000000000001e-223 or 1.36e-14 < k < 5.59999999999999972e118Initial program 20.2%
Taylor expanded in j around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in t around inf 56.7%
if 3.2000000000000001e-223 < k < 2.59999999999999981e-128Initial program 13.3%
Taylor expanded in y0 around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in c around inf 60.6%
if 5.59999999999999972e118 < k < 8.3999999999999997e167Initial program 18.2%
Taylor expanded in j around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in x around inf 55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
if 8.3999999999999997e167 < k Initial program 14.9%
Taylor expanded in k around inf 67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
mul-1-neg67.0%
Simplified67.0%
Taylor expanded in y around inf 48.7%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= y4 -1.7e-82)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -2e-222)
t_1
(if (<= y4 -4.3e-262)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= y4 2e-202)
t_1
(if (<= y4 7.4e-12)
(* y3 (* a (- (* z y1) (* y y5))))
(if (<= y4 2.25e+86)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 4e+119)
(* x (* c (* y0 y2)))
(if (<= y4 9e+205)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y4 1.1e+243)
(* c (* y2 (- (* x y0) (* t y4))))
(* j (* y4 (- (* t b) (* y1 y3)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y4 <= -1.7e-82) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -2e-222) {
tmp = t_1;
} else if (y4 <= -4.3e-262) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y4 <= 2e-202) {
tmp = t_1;
} else if (y4 <= 7.4e-12) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 2.25e+86) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 4e+119) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 9e+205) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 1.1e+243) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
if (y4 <= (-1.7d-82)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-2d-222)) then
tmp = t_1
else if (y4 <= (-4.3d-262)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (y4 <= 2d-202) then
tmp = t_1
else if (y4 <= 7.4d-12) then
tmp = y3 * (a * ((z * y1) - (y * y5)))
else if (y4 <= 2.25d+86) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 4d+119) then
tmp = x * (c * (y0 * y2))
else if (y4 <= 9d+205) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y4 <= 1.1d+243) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y4 <= -1.7e-82) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -2e-222) {
tmp = t_1;
} else if (y4 <= -4.3e-262) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y4 <= 2e-202) {
tmp = t_1;
} else if (y4 <= 7.4e-12) {
tmp = y3 * (a * ((z * y1) - (y * y5)));
} else if (y4 <= 2.25e+86) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 4e+119) {
tmp = x * (c * (y0 * y2));
} else if (y4 <= 9e+205) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y4 <= 1.1e+243) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) tmp = 0 if y4 <= -1.7e-82: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -2e-222: tmp = t_1 elif y4 <= -4.3e-262: tmp = x * (a * ((y * b) - (y1 * y2))) elif y4 <= 2e-202: tmp = t_1 elif y4 <= 7.4e-12: tmp = y3 * (a * ((z * y1) - (y * y5))) elif y4 <= 2.25e+86: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 4e+119: tmp = x * (c * (y0 * y2)) elif y4 <= 9e+205: tmp = k * (y * ((i * y5) - (b * y4))) elif y4 <= 1.1e+243: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (y4 <= -1.7e-82) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -2e-222) tmp = t_1; elseif (y4 <= -4.3e-262) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (y4 <= 2e-202) tmp = t_1; elseif (y4 <= 7.4e-12) tmp = Float64(y3 * Float64(a * Float64(Float64(z * y1) - Float64(y * y5)))); elseif (y4 <= 2.25e+86) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 4e+119) tmp = Float64(x * Float64(c * Float64(y0 * y2))); elseif (y4 <= 9e+205) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y4 <= 1.1e+243) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (y4 <= -1.7e-82) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -2e-222) tmp = t_1; elseif (y4 <= -4.3e-262) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (y4 <= 2e-202) tmp = t_1; elseif (y4 <= 7.4e-12) tmp = y3 * (a * ((z * y1) - (y * y5))); elseif (y4 <= 2.25e+86) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 4e+119) tmp = x * (c * (y0 * y2)); elseif (y4 <= 9e+205) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y4 <= 1.1e+243) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.7e-82], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2e-222], t$95$1, If[LessEqual[y4, -4.3e-262], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2e-202], t$95$1, If[LessEqual[y4, 7.4e-12], N[(y3 * N[(a * N[(N[(z * y1), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.25e+86], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4e+119], N[(x * N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9e+205], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.1e+243], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;y4 \leq -1.7 \cdot 10^{-82}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -2 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq -4.3 \cdot 10^{-262}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 2 \cdot 10^{-202}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq 7.4 \cdot 10^{-12}:\\
\;\;\;\;y3 \cdot \left(a \cdot \left(z \cdot y1 - y \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 2.25 \cdot 10^{+86}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 4 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq 9 \cdot 10^{+205}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 1.1 \cdot 10^{+243}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -1.69999999999999988e-82Initial program 22.3%
Taylor expanded in y2 around inf 41.9%
Taylor expanded in y4 around inf 45.2%
if -1.69999999999999988e-82 < y4 < -2.0000000000000001e-222 or -4.3000000000000001e-262 < y4 < 2.0000000000000001e-202Initial program 31.4%
Taylor expanded in y0 around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
*-commutative47.9%
*-commutative47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in c around inf 48.9%
if -2.0000000000000001e-222 < y4 < -4.3000000000000001e-262Initial program 20.0%
Simplified20.0%
Taylor expanded in a around inf 30.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
associate-*l*51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
if 2.0000000000000001e-202 < y4 < 7.39999999999999997e-12Initial program 28.4%
Simplified31.0%
Taylor expanded in a around inf 61.7%
Taylor expanded in y3 around inf 59.7%
*-commutative59.7%
associate-*l*62.2%
Simplified62.2%
if 7.39999999999999997e-12 < y4 < 2.24999999999999996e86Initial program 24.9%
Taylor expanded in j around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in x around inf 65.9%
*-commutative65.9%
*-commutative65.9%
Simplified65.9%
if 2.24999999999999996e86 < y4 < 3.99999999999999978e119Initial program 25.0%
Taylor expanded in y2 around inf 62.5%
Taylor expanded in y0 around inf 63.6%
associate-*r*63.6%
*-commutative63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in x around inf 63.9%
associate-*r*51.4%
*-commutative51.4%
associate-*l*75.5%
Simplified75.5%
if 3.99999999999999978e119 < y4 < 9.00000000000000071e205Initial program 24.9%
Taylor expanded in k around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
mul-1-neg60.7%
Simplified60.7%
Taylor expanded in y around inf 60.6%
if 9.00000000000000071e205 < y4 < 1.10000000000000004e243Initial program 25.0%
Taylor expanded in y2 around inf 50.1%
Taylor expanded in c around inf 83.5%
if 1.10000000000000004e243 < y4 Initial program 28.6%
Taylor expanded in j around inf 64.3%
+-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y4 around inf 85.7%
*-commutative85.7%
Simplified85.7%
Final simplification56.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y3 y5) (* x b))) (t_2 (* y2 (* y0 (- (* x c) (* k y5))))))
(if (<= j -1.1e+137)
(* j (* t (- (* b y4) (* i y5))))
(if (<= j -1.2e-107)
t_2
(if (<= j -2.4e-210)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= j -1.35e-282)
t_2
(if (<= j 1.62e-80)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= j 16800000000000.0)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= j 3.6e+188)
(* y0 (* j t_1))
(if (<= j 5.5e+235)
(* b (* y4 (- (* t j) (* y k))))
(* j (* y0 t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y3 * y5) - (x * b);
double t_2 = y2 * (y0 * ((x * c) - (k * y5)));
double tmp;
if (j <= -1.1e+137) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (j <= -1.2e-107) {
tmp = t_2;
} else if (j <= -2.4e-210) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (j <= -1.35e-282) {
tmp = t_2;
} else if (j <= 1.62e-80) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (j <= 16800000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (j <= 3.6e+188) {
tmp = y0 * (j * t_1);
} else if (j <= 5.5e+235) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = j * (y0 * 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 = (y3 * y5) - (x * b)
t_2 = y2 * (y0 * ((x * c) - (k * y5)))
if (j <= (-1.1d+137)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (j <= (-1.2d-107)) then
tmp = t_2
else if (j <= (-2.4d-210)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (j <= (-1.35d-282)) then
tmp = t_2
else if (j <= 1.62d-80) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (j <= 16800000000000.0d0) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (j <= 3.6d+188) then
tmp = y0 * (j * t_1)
else if (j <= 5.5d+235) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = j * (y0 * 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 = (y3 * y5) - (x * b);
double t_2 = y2 * (y0 * ((x * c) - (k * y5)));
double tmp;
if (j <= -1.1e+137) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (j <= -1.2e-107) {
tmp = t_2;
} else if (j <= -2.4e-210) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (j <= -1.35e-282) {
tmp = t_2;
} else if (j <= 1.62e-80) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (j <= 16800000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (j <= 3.6e+188) {
tmp = y0 * (j * t_1);
} else if (j <= 5.5e+235) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = j * (y0 * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y3 * y5) - (x * b) t_2 = y2 * (y0 * ((x * c) - (k * y5))) tmp = 0 if j <= -1.1e+137: tmp = j * (t * ((b * y4) - (i * y5))) elif j <= -1.2e-107: tmp = t_2 elif j <= -2.4e-210: tmp = x * (a * ((y * b) - (y1 * y2))) elif j <= -1.35e-282: tmp = t_2 elif j <= 1.62e-80: tmp = c * (y0 * ((x * y2) - (z * y3))) elif j <= 16800000000000.0: tmp = t * (y2 * ((a * y5) - (c * y4))) elif j <= 3.6e+188: tmp = y0 * (j * t_1) elif j <= 5.5e+235: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = j * (y0 * 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(y3 * y5) - Float64(x * b)) t_2 = Float64(y2 * Float64(y0 * Float64(Float64(x * c) - Float64(k * y5)))) tmp = 0.0 if (j <= -1.1e+137) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (j <= -1.2e-107) tmp = t_2; elseif (j <= -2.4e-210) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (j <= -1.35e-282) tmp = t_2; elseif (j <= 1.62e-80) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (j <= 16800000000000.0) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (j <= 3.6e+188) tmp = Float64(y0 * Float64(j * t_1)); elseif (j <= 5.5e+235) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(j * Float64(y0 * 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 = (y3 * y5) - (x * b); t_2 = y2 * (y0 * ((x * c) - (k * y5))); tmp = 0.0; if (j <= -1.1e+137) tmp = j * (t * ((b * y4) - (i * y5))); elseif (j <= -1.2e-107) tmp = t_2; elseif (j <= -2.4e-210) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (j <= -1.35e-282) tmp = t_2; elseif (j <= 1.62e-80) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (j <= 16800000000000.0) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (j <= 3.6e+188) tmp = y0 * (j * t_1); elseif (j <= 5.5e+235) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = j * (y0 * 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[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(y0 * N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.1e+137], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e-107], t$95$2, If[LessEqual[j, -2.4e-210], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.35e-282], t$95$2, If[LessEqual[j, 1.62e-80], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 16800000000000.0], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.6e+188], N[(y0 * N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.5e+235], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot y5 - x \cdot b\\
t_2 := y2 \cdot \left(y0 \cdot \left(x \cdot c - k \cdot y5\right)\right)\\
\mathbf{if}\;j \leq -1.1 \cdot 10^{+137}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -2.4 \cdot 10^{-210}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -1.35 \cdot 10^{-282}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.62 \cdot 10^{-80}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;j \leq 16800000000000:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{+188}:\\
\;\;\;\;y0 \cdot \left(j \cdot t_1\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+235}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot t_1\right)\\
\end{array}
\end{array}
if j < -1.10000000000000008e137Initial program 17.8%
Taylor expanded in j around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in t around inf 60.0%
if -1.10000000000000008e137 < j < -1.19999999999999997e-107 or -2.40000000000000004e-210 < j < -1.34999999999999991e-282Initial program 35.7%
Taylor expanded in y0 around inf 42.2%
+-commutative42.2%
mul-1-neg42.2%
unsub-neg42.2%
*-commutative42.2%
*-commutative42.2%
*-commutative42.2%
*-commutative42.2%
Simplified42.2%
Taylor expanded in y2 around inf 43.9%
associate-*r*39.7%
*-commutative39.7%
*-commutative39.7%
associate-*l*46.6%
*-commutative46.6%
Simplified46.6%
if -1.19999999999999997e-107 < j < -2.40000000000000004e-210Initial program 28.6%
Simplified28.6%
Taylor expanded in a around inf 43.1%
Taylor expanded in x around inf 48.4%
*-commutative48.4%
associate-*l*44.4%
+-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
Simplified44.4%
if -1.34999999999999991e-282 < j < 1.62e-80Initial program 28.3%
Taylor expanded in y0 around inf 37.4%
+-commutative37.4%
mul-1-neg37.4%
unsub-neg37.4%
*-commutative37.4%
*-commutative37.4%
*-commutative37.4%
*-commutative37.4%
Simplified37.4%
Taylor expanded in c around inf 40.5%
if 1.62e-80 < j < 1.68e13Initial program 19.9%
Taylor expanded in y2 around inf 50.2%
Taylor expanded in t around inf 60.4%
if 1.68e13 < j < 3.60000000000000021e188Initial program 26.0%
Taylor expanded in y0 around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
*-commutative46.1%
*-commutative46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in j around -inf 55.2%
associate-*r*57.8%
*-commutative57.8%
associate-*l*57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if 3.60000000000000021e188 < j < 5.49999999999999945e235Initial program 0.0%
Taylor expanded in y4 around inf 42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in b around inf 84.0%
if 5.49999999999999945e235 < j Initial program 27.3%
Taylor expanded in j around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y0 around -inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Final simplification53.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y2 (- (* x y0) (* t y4)))))
(t_2 (* j (* t (- (* b y4) (* i y5)))))
(t_3 (* x (* a (- (* y b) (* y1 y2))))))
(if (<= k -5.6e+112)
(* i (* k (- (* y y5) (* z y1))))
(if (<= k -1.05e-79)
t_1
(if (<= k -2.3e-204)
t_3
(if (<= k 2.05e-292)
t_1
(if (<= k 4.2e-225)
t_2
(if (<= k 4.8e-129)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= k 8e-15)
t_3
(if (<= k 1.5e+80)
t_2
(* (- (* y2 y4) (* z i)) (* k 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 = c * (y2 * ((x * y0) - (t * y4)));
double t_2 = j * (t * ((b * y4) - (i * y5)));
double t_3 = x * (a * ((y * b) - (y1 * y2)));
double tmp;
if (k <= -5.6e+112) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.05e-79) {
tmp = t_1;
} else if (k <= -2.3e-204) {
tmp = t_3;
} else if (k <= 2.05e-292) {
tmp = t_1;
} else if (k <= 4.2e-225) {
tmp = t_2;
} else if (k <= 4.8e-129) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 8e-15) {
tmp = t_3;
} else if (k <= 1.5e+80) {
tmp = t_2;
} else {
tmp = ((y2 * y4) - (z * i)) * (k * 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) :: t_3
real(8) :: tmp
t_1 = c * (y2 * ((x * y0) - (t * y4)))
t_2 = j * (t * ((b * y4) - (i * y5)))
t_3 = x * (a * ((y * b) - (y1 * y2)))
if (k <= (-5.6d+112)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (k <= (-1.05d-79)) then
tmp = t_1
else if (k <= (-2.3d-204)) then
tmp = t_3
else if (k <= 2.05d-292) then
tmp = t_1
else if (k <= 4.2d-225) then
tmp = t_2
else if (k <= 4.8d-129) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (k <= 8d-15) then
tmp = t_3
else if (k <= 1.5d+80) then
tmp = t_2
else
tmp = ((y2 * y4) - (z * i)) * (k * 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 = c * (y2 * ((x * y0) - (t * y4)));
double t_2 = j * (t * ((b * y4) - (i * y5)));
double t_3 = x * (a * ((y * b) - (y1 * y2)));
double tmp;
if (k <= -5.6e+112) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (k <= -1.05e-79) {
tmp = t_1;
} else if (k <= -2.3e-204) {
tmp = t_3;
} else if (k <= 2.05e-292) {
tmp = t_1;
} else if (k <= 4.2e-225) {
tmp = t_2;
} else if (k <= 4.8e-129) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 8e-15) {
tmp = t_3;
} else if (k <= 1.5e+80) {
tmp = t_2;
} else {
tmp = ((y2 * y4) - (z * i)) * (k * y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y2 * ((x * y0) - (t * y4))) t_2 = j * (t * ((b * y4) - (i * y5))) t_3 = x * (a * ((y * b) - (y1 * y2))) tmp = 0 if k <= -5.6e+112: tmp = i * (k * ((y * y5) - (z * y1))) elif k <= -1.05e-79: tmp = t_1 elif k <= -2.3e-204: tmp = t_3 elif k <= 2.05e-292: tmp = t_1 elif k <= 4.2e-225: tmp = t_2 elif k <= 4.8e-129: tmp = c * (y0 * ((x * y2) - (z * y3))) elif k <= 8e-15: tmp = t_3 elif k <= 1.5e+80: tmp = t_2 else: tmp = ((y2 * y4) - (z * i)) * (k * y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))) t_2 = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) t_3 = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))) tmp = 0.0 if (k <= -5.6e+112) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (k <= -1.05e-79) tmp = t_1; elseif (k <= -2.3e-204) tmp = t_3; elseif (k <= 2.05e-292) tmp = t_1; elseif (k <= 4.2e-225) tmp = t_2; elseif (k <= 4.8e-129) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (k <= 8e-15) tmp = t_3; elseif (k <= 1.5e+80) tmp = t_2; else tmp = Float64(Float64(Float64(y2 * y4) - Float64(z * i)) * Float64(k * 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 = c * (y2 * ((x * y0) - (t * y4))); t_2 = j * (t * ((b * y4) - (i * y5))); t_3 = x * (a * ((y * b) - (y1 * y2))); tmp = 0.0; if (k <= -5.6e+112) tmp = i * (k * ((y * y5) - (z * y1))); elseif (k <= -1.05e-79) tmp = t_1; elseif (k <= -2.3e-204) tmp = t_3; elseif (k <= 2.05e-292) tmp = t_1; elseif (k <= 4.2e-225) tmp = t_2; elseif (k <= 4.8e-129) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (k <= 8e-15) tmp = t_3; elseif (k <= 1.5e+80) tmp = t_2; else tmp = ((y2 * y4) - (z * i)) * (k * 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[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -5.6e+112], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.05e-79], t$95$1, If[LessEqual[k, -2.3e-204], t$95$3, If[LessEqual[k, 2.05e-292], t$95$1, If[LessEqual[k, 4.2e-225], t$95$2, If[LessEqual[k, 4.8e-129], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8e-15], t$95$3, If[LessEqual[k, 1.5e+80], t$95$2, N[(N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision] * N[(k * y1), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
t_2 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
t_3 := x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{if}\;k \leq -5.6 \cdot 10^{+112}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -1.05 \cdot 10^{-79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -2.3 \cdot 10^{-204}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 2.05 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 4.2 \cdot 10^{-225}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;k \leq 4.8 \cdot 10^{-129}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 8 \cdot 10^{-15}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{+80}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(y2 \cdot y4 - z \cdot i\right) \cdot \left(k \cdot y1\right)\\
\end{array}
\end{array}
if k < -5.6000000000000003e112Initial program 36.6%
Taylor expanded in k around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
mul-1-neg63.5%
Simplified63.5%
Taylor expanded in i around -inf 64.0%
if -5.6000000000000003e112 < k < -1.05e-79 or -2.2999999999999999e-204 < k < 2.05000000000000022e-292Initial program 29.8%
Taylor expanded in y2 around inf 46.8%
Taylor expanded in c around inf 48.3%
if -1.05e-79 < k < -2.2999999999999999e-204 or 4.79999999999999977e-129 < k < 8.0000000000000006e-15Initial program 28.5%
Simplified28.5%
Taylor expanded in a around inf 47.5%
Taylor expanded in x around inf 48.1%
*-commutative48.1%
associate-*l*48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
if 2.05000000000000022e-292 < k < 4.20000000000000001e-225 or 8.0000000000000006e-15 < k < 1.49999999999999993e80Initial program 17.4%
Taylor expanded in j around inf 60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in t around inf 55.5%
if 4.20000000000000001e-225 < k < 4.79999999999999977e-129Initial program 13.3%
Taylor expanded in y0 around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in c around inf 60.6%
if 1.49999999999999993e80 < k Initial program 19.4%
Taylor expanded in k around inf 59.7%
+-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
mul-1-neg59.7%
Simplified59.7%
Taylor expanded in y1 around inf 53.3%
associate-*r*55.5%
*-commutative55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
Final simplification53.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* t (- (* b y4) (* i y5))))))
(if (<= k -2.75e+110)
(* y0 (* b (* z k)))
(if (<= k 3.25e-292)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k 2.2e-226)
t_1
(if (<= k 3.1e-15)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= k 1.05e+117)
t_1
(if (<= k 7.2e+247)
(* j (* x (- (* i y1) (* b y0))))
(* (* k y5) (* y2 (- 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 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (k <= -2.75e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= 3.25e-292) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 2.2e-226) {
tmp = t_1;
} else if (k <= 3.1e-15) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 1.05e+117) {
tmp = t_1;
} else if (k <= 7.2e+247) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = (k * y5) * (y2 * -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 = j * (t * ((b * y4) - (i * y5)))
if (k <= (-2.75d+110)) then
tmp = y0 * (b * (z * k))
else if (k <= 3.25d-292) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= 2.2d-226) then
tmp = t_1
else if (k <= 3.1d-15) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (k <= 1.05d+117) then
tmp = t_1
else if (k <= 7.2d+247) then
tmp = j * (x * ((i * y1) - (b * y0)))
else
tmp = (k * y5) * (y2 * -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 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (k <= -2.75e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= 3.25e-292) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 2.2e-226) {
tmp = t_1;
} else if (k <= 3.1e-15) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 1.05e+117) {
tmp = t_1;
} else if (k <= 7.2e+247) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = (k * y5) * (y2 * -y0);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (t * ((b * y4) - (i * y5))) tmp = 0 if k <= -2.75e+110: tmp = y0 * (b * (z * k)) elif k <= 3.25e-292: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= 2.2e-226: tmp = t_1 elif k <= 3.1e-15: tmp = c * (y0 * ((x * y2) - (z * y3))) elif k <= 1.05e+117: tmp = t_1 elif k <= 7.2e+247: tmp = j * (x * ((i * y1) - (b * y0))) else: tmp = (k * y5) * (y2 * -y0) 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(t * Float64(Float64(b * y4) - Float64(i * y5)))) tmp = 0.0 if (k <= -2.75e+110) tmp = Float64(y0 * Float64(b * Float64(z * k))); elseif (k <= 3.25e-292) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= 2.2e-226) tmp = t_1; elseif (k <= 3.1e-15) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (k <= 1.05e+117) tmp = t_1; elseif (k <= 7.2e+247) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(Float64(k * y5) * Float64(y2 * Float64(-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 = j * (t * ((b * y4) - (i * y5))); tmp = 0.0; if (k <= -2.75e+110) tmp = y0 * (b * (z * k)); elseif (k <= 3.25e-292) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= 2.2e-226) tmp = t_1; elseif (k <= 3.1e-15) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (k <= 1.05e+117) tmp = t_1; elseif (k <= 7.2e+247) tmp = j * (x * ((i * y1) - (b * y0))); else tmp = (k * y5) * (y2 * -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[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2.75e+110], N[(y0 * N[(b * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.25e-292], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.2e-226], t$95$1, If[LessEqual[k, 3.1e-15], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.05e+117], t$95$1, If[LessEqual[k, 7.2e+247], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * y5), $MachinePrecision] * N[(y2 * (-y0)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -2.75 \cdot 10^{+110}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq 3.25 \cdot 10^{-292}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 2.2 \cdot 10^{-226}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 3.1 \cdot 10^{-15}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 1.05 \cdot 10^{+117}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 7.2 \cdot 10^{+247}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y5\right) \cdot \left(y2 \cdot \left(-y0\right)\right)\\
\end{array}
\end{array}
if k < -2.74999999999999998e110Initial program 37.2%
Taylor expanded in k around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
mul-1-neg65.2%
Simplified65.2%
Taylor expanded in b around inf 44.7%
Taylor expanded in y0 around inf 33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in b around 0 33.7%
associate-*r*33.6%
*-commutative33.6%
associate-*l*42.5%
*-commutative42.5%
associate-*l*47.0%
*-commutative47.0%
Simplified47.0%
if -2.74999999999999998e110 < k < 3.2499999999999998e-292Initial program 29.1%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in c around inf 42.9%
if 3.2499999999999998e-292 < k < 2.2e-226 or 3.0999999999999999e-15 < k < 1.0500000000000001e117Initial program 20.2%
Taylor expanded in j around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in t around inf 56.7%
if 2.2e-226 < k < 3.0999999999999999e-15Initial program 23.2%
Taylor expanded in y0 around inf 29.2%
+-commutative29.2%
mul-1-neg29.2%
unsub-neg29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
Simplified29.2%
Taylor expanded in c around inf 43.0%
if 1.0500000000000001e117 < k < 7.2e247Initial program 14.3%
Taylor expanded in j around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in x around inf 46.5%
*-commutative46.5%
*-commutative46.5%
Simplified46.5%
if 7.2e247 < k Initial program 20.0%
Taylor expanded in y2 around inf 50.0%
Taylor expanded in y0 around inf 80.0%
associate-*r*61.1%
*-commutative61.1%
+-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in x around 0 51.3%
mul-1-neg51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
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 (* j (* t (- (* b y4) (* i y5))))))
(if (<= k -8e+109)
(* y0 (* b (* z k)))
(if (<= k 2.4e-292)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k 2.8e-226)
t_1
(if (<= k 1.3e-15)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= k 1.15e+119)
t_1
(if (<= k 1.15e+167)
(* j (* x (- (* i y1) (* b y0))))
(* k (* y (- (* i y5) (* b 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 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (k <= -8e+109) {
tmp = y0 * (b * (z * k));
} else if (k <= 2.4e-292) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 2.8e-226) {
tmp = t_1;
} else if (k <= 1.3e-15) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 1.15e+119) {
tmp = t_1;
} else if (k <= 1.15e+167) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = k * (y * ((i * y5) - (b * 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 = j * (t * ((b * y4) - (i * y5)))
if (k <= (-8d+109)) then
tmp = y0 * (b * (z * k))
else if (k <= 2.4d-292) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= 2.8d-226) then
tmp = t_1
else if (k <= 1.3d-15) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (k <= 1.15d+119) then
tmp = t_1
else if (k <= 1.15d+167) then
tmp = j * (x * ((i * y1) - (b * y0)))
else
tmp = k * (y * ((i * y5) - (b * 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 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (k <= -8e+109) {
tmp = y0 * (b * (z * k));
} else if (k <= 2.4e-292) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 2.8e-226) {
tmp = t_1;
} else if (k <= 1.3e-15) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (k <= 1.15e+119) {
tmp = t_1;
} else if (k <= 1.15e+167) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = k * (y * ((i * y5) - (b * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (t * ((b * y4) - (i * y5))) tmp = 0 if k <= -8e+109: tmp = y0 * (b * (z * k)) elif k <= 2.4e-292: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= 2.8e-226: tmp = t_1 elif k <= 1.3e-15: tmp = c * (y0 * ((x * y2) - (z * y3))) elif k <= 1.15e+119: tmp = t_1 elif k <= 1.15e+167: tmp = j * (x * ((i * y1) - (b * y0))) else: tmp = k * (y * ((i * y5) - (b * y4))) 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(t * Float64(Float64(b * y4) - Float64(i * y5)))) tmp = 0.0 if (k <= -8e+109) tmp = Float64(y0 * Float64(b * Float64(z * k))); elseif (k <= 2.4e-292) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= 2.8e-226) tmp = t_1; elseif (k <= 1.3e-15) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (k <= 1.15e+119) tmp = t_1; elseif (k <= 1.15e+167) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * 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 = j * (t * ((b * y4) - (i * y5))); tmp = 0.0; if (k <= -8e+109) tmp = y0 * (b * (z * k)); elseif (k <= 2.4e-292) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= 2.8e-226) tmp = t_1; elseif (k <= 1.3e-15) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (k <= 1.15e+119) tmp = t_1; elseif (k <= 1.15e+167) tmp = j * (x * ((i * y1) - (b * y0))); else tmp = k * (y * ((i * y5) - (b * 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[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -8e+109], N[(y0 * N[(b * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.4e-292], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.8e-226], t$95$1, If[LessEqual[k, 1.3e-15], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.15e+119], t$95$1, If[LessEqual[k, 1.15e+167], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -8 \cdot 10^{+109}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq 2.4 \cdot 10^{-292}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 2.8 \cdot 10^{-226}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 1.3 \cdot 10^{-15}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{+119}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{+167}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\end{array}
\end{array}
if k < -7.99999999999999985e109Initial program 37.2%
Taylor expanded in k around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
mul-1-neg65.2%
Simplified65.2%
Taylor expanded in b around inf 44.7%
Taylor expanded in y0 around inf 33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in b around 0 33.7%
associate-*r*33.6%
*-commutative33.6%
associate-*l*42.5%
*-commutative42.5%
associate-*l*47.0%
*-commutative47.0%
Simplified47.0%
if -7.99999999999999985e109 < k < 2.4000000000000001e-292Initial program 29.1%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in c around inf 42.9%
if 2.4000000000000001e-292 < k < 2.80000000000000008e-226 or 1.30000000000000002e-15 < k < 1.15e119Initial program 20.2%
Taylor expanded in j around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in t around inf 56.7%
if 2.80000000000000008e-226 < k < 1.30000000000000002e-15Initial program 23.2%
Taylor expanded in y0 around inf 29.2%
+-commutative29.2%
mul-1-neg29.2%
unsub-neg29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
Simplified29.2%
Taylor expanded in c around inf 43.0%
if 1.15e119 < k < 1.14999999999999994e167Initial program 18.2%
Taylor expanded in j around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in x around inf 55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
if 1.14999999999999994e167 < k Initial program 14.9%
Taylor expanded in k around inf 67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
mul-1-neg67.0%
Simplified67.0%
Taylor expanded in y around inf 48.7%
Final simplification47.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.15e+71)
(* x (* c (* y0 y2)))
(if (<= y2 -600000000.0)
(* i (* j (* x y1)))
(if (<= y2 -2.9e-83)
(* b (* k (- (* z y0) (* y y4))))
(if (<= y2 -3.05e-173)
(* j (* y0 (* y3 y5)))
(if (<= y2 2.4e+47)
(* b (* y4 (- (* t j) (* y k))))
(* c (* x (* y0 y2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.15e+71) {
tmp = x * (c * (y0 * y2));
} else if (y2 <= -600000000.0) {
tmp = i * (j * (x * y1));
} else if (y2 <= -2.9e-83) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (y2 <= -3.05e-173) {
tmp = j * (y0 * (y3 * y5));
} else if (y2 <= 2.4e+47) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.15d+71)) then
tmp = x * (c * (y0 * y2))
else if (y2 <= (-600000000.0d0)) then
tmp = i * (j * (x * y1))
else if (y2 <= (-2.9d-83)) then
tmp = b * (k * ((z * y0) - (y * y4)))
else if (y2 <= (-3.05d-173)) then
tmp = j * (y0 * (y3 * y5))
else if (y2 <= 2.4d+47) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = c * (x * (y0 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.15e+71) {
tmp = x * (c * (y0 * y2));
} else if (y2 <= -600000000.0) {
tmp = i * (j * (x * y1));
} else if (y2 <= -2.9e-83) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (y2 <= -3.05e-173) {
tmp = j * (y0 * (y3 * y5));
} else if (y2 <= 2.4e+47) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.15e+71: tmp = x * (c * (y0 * y2)) elif y2 <= -600000000.0: tmp = i * (j * (x * y1)) elif y2 <= -2.9e-83: tmp = b * (k * ((z * y0) - (y * y4))) elif y2 <= -3.05e-173: tmp = j * (y0 * (y3 * y5)) elif y2 <= 2.4e+47: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.15e+71) tmp = Float64(x * Float64(c * Float64(y0 * y2))); elseif (y2 <= -600000000.0) tmp = Float64(i * Float64(j * Float64(x * y1))); elseif (y2 <= -2.9e-83) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (y2 <= -3.05e-173) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y2 <= 2.4e+47) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.15e+71) tmp = x * (c * (y0 * y2)); elseif (y2 <= -600000000.0) tmp = i * (j * (x * y1)); elseif (y2 <= -2.9e-83) tmp = b * (k * ((z * y0) - (y * y4))); elseif (y2 <= -3.05e-173) tmp = j * (y0 * (y3 * y5)); elseif (y2 <= 2.4e+47) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.15e+71], N[(x * N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -600000000.0], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.9e-83], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.05e-173], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.4e+47], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.15 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(c \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -600000000:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq -2.9 \cdot 10^{-83}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -3.05 \cdot 10^{-173}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{+47}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -2.14999999999999992e71Initial program 17.6%
Taylor expanded in y2 around inf 64.9%
Taylor expanded in y0 around inf 47.5%
associate-*r*40.0%
*-commutative40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
*-commutative40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in x around inf 40.2%
associate-*r*38.3%
*-commutative38.3%
associate-*l*43.9%
Simplified43.9%
if -2.14999999999999992e71 < y2 < -6e8Initial program 49.9%
Taylor expanded in j around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in y1 around -inf 45.9%
associate-*r*45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
if -6e8 < y2 < -2.8999999999999999e-83Initial program 42.9%
Taylor expanded in k around inf 57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
mul-1-neg57.3%
Simplified57.3%
Taylor expanded in b around inf 50.4%
if -2.8999999999999999e-83 < y2 < -3.0499999999999999e-173Initial program 24.1%
Taylor expanded in j around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y3 around -inf 39.2%
mul-1-neg39.2%
associate-*r*34.9%
distribute-lft-neg-in34.9%
*-commutative34.9%
distribute-rgt-neg-in34.9%
Simplified34.9%
Taylor expanded in y1 around 0 44.1%
*-commutative44.1%
Simplified44.1%
if -3.0499999999999999e-173 < y2 < 2.40000000000000019e47Initial program 29.7%
Taylor expanded in y4 around inf 36.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in b around inf 32.7%
if 2.40000000000000019e47 < y2 Initial program 16.3%
Taylor expanded in y2 around inf 47.4%
Taylor expanded in y0 around inf 43.4%
associate-*r*41.4%
*-commutative41.4%
+-commutative41.4%
mul-1-neg41.4%
unsub-neg41.4%
*-commutative41.4%
*-commutative41.4%
Simplified41.4%
Taylor expanded in x around inf 47.9%
Final simplification40.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (* y0 y2)))) (t_2 (* j (* y4 (* y1 (- y3))))))
(if (<= y3 -3.4e+261)
t_1
(if (<= y3 -5.7e+174)
t_2
(if (<= y3 3.7e-232)
t_1
(if (<= y3 1.85e+193)
(* (* b y4) (* t j))
(if (<= y3 1.25e+211)
(* y0 (* y3 (* j y5)))
(if (<= y3 1.6e+254) (* j (* b (* t y4))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (x * (y0 * y2));
double t_2 = j * (y4 * (y1 * -y3));
double tmp;
if (y3 <= -3.4e+261) {
tmp = t_1;
} else if (y3 <= -5.7e+174) {
tmp = t_2;
} else if (y3 <= 3.7e-232) {
tmp = t_1;
} else if (y3 <= 1.85e+193) {
tmp = (b * y4) * (t * j);
} else if (y3 <= 1.25e+211) {
tmp = y0 * (y3 * (j * y5));
} else if (y3 <= 1.6e+254) {
tmp = j * (b * (t * y4));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (x * (y0 * y2))
t_2 = j * (y4 * (y1 * -y3))
if (y3 <= (-3.4d+261)) then
tmp = t_1
else if (y3 <= (-5.7d+174)) then
tmp = t_2
else if (y3 <= 3.7d-232) then
tmp = t_1
else if (y3 <= 1.85d+193) then
tmp = (b * y4) * (t * j)
else if (y3 <= 1.25d+211) then
tmp = y0 * (y3 * (j * y5))
else if (y3 <= 1.6d+254) then
tmp = j * (b * (t * y4))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (x * (y0 * y2));
double t_2 = j * (y4 * (y1 * -y3));
double tmp;
if (y3 <= -3.4e+261) {
tmp = t_1;
} else if (y3 <= -5.7e+174) {
tmp = t_2;
} else if (y3 <= 3.7e-232) {
tmp = t_1;
} else if (y3 <= 1.85e+193) {
tmp = (b * y4) * (t * j);
} else if (y3 <= 1.25e+211) {
tmp = y0 * (y3 * (j * y5));
} else if (y3 <= 1.6e+254) {
tmp = j * (b * (t * y4));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (x * (y0 * y2)) t_2 = j * (y4 * (y1 * -y3)) tmp = 0 if y3 <= -3.4e+261: tmp = t_1 elif y3 <= -5.7e+174: tmp = t_2 elif y3 <= 3.7e-232: tmp = t_1 elif y3 <= 1.85e+193: tmp = (b * y4) * (t * j) elif y3 <= 1.25e+211: tmp = y0 * (y3 * (j * y5)) elif y3 <= 1.6e+254: tmp = j * (b * (t * y4)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(x * Float64(y0 * y2))) t_2 = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))) tmp = 0.0 if (y3 <= -3.4e+261) tmp = t_1; elseif (y3 <= -5.7e+174) tmp = t_2; elseif (y3 <= 3.7e-232) tmp = t_1; elseif (y3 <= 1.85e+193) tmp = Float64(Float64(b * y4) * Float64(t * j)); elseif (y3 <= 1.25e+211) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); elseif (y3 <= 1.6e+254) tmp = Float64(j * Float64(b * Float64(t * y4))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (x * (y0 * y2)); t_2 = j * (y4 * (y1 * -y3)); tmp = 0.0; if (y3 <= -3.4e+261) tmp = t_1; elseif (y3 <= -5.7e+174) tmp = t_2; elseif (y3 <= 3.7e-232) tmp = t_1; elseif (y3 <= 1.85e+193) tmp = (b * y4) * (t * j); elseif (y3 <= 1.25e+211) tmp = y0 * (y3 * (j * y5)); elseif (y3 <= 1.6e+254) tmp = j * (b * (t * y4)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -3.4e+261], t$95$1, If[LessEqual[y3, -5.7e+174], t$95$2, If[LessEqual[y3, 3.7e-232], t$95$1, If[LessEqual[y3, 1.85e+193], N[(N[(b * y4), $MachinePrecision] * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.25e+211], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.6e+254], N[(j * N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
t_2 := j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\mathbf{if}\;y3 \leq -3.4 \cdot 10^{+261}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq -5.7 \cdot 10^{+174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y3 \leq 3.7 \cdot 10^{-232}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq 1.85 \cdot 10^{+193}:\\
\;\;\;\;\left(b \cdot y4\right) \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y3 \leq 1.25 \cdot 10^{+211}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 1.6 \cdot 10^{+254}:\\
\;\;\;\;j \cdot \left(b \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y3 < -3.4e261 or -5.6999999999999999e174 < y3 < 3.69999999999999979e-232Initial program 24.5%
Taylor expanded in y2 around inf 38.4%
Taylor expanded in y0 around inf 36.3%
associate-*r*33.9%
*-commutative33.9%
+-commutative33.9%
mul-1-neg33.9%
unsub-neg33.9%
*-commutative33.9%
*-commutative33.9%
Simplified33.9%
Taylor expanded in x around inf 32.4%
if -3.4e261 < y3 < -5.6999999999999999e174 or 1.5999999999999999e254 < y3 Initial program 17.1%
Taylor expanded in j around inf 46.4%
+-commutative46.4%
mul-1-neg46.4%
unsub-neg46.4%
*-commutative46.4%
Simplified46.4%
Taylor expanded in y4 around inf 54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in t around 0 49.5%
neg-mul-149.5%
distribute-rgt-neg-in49.5%
Simplified49.5%
if 3.69999999999999979e-232 < y3 < 1.8500000000000001e193Initial program 37.0%
Taylor expanded in j around inf 40.4%
+-commutative40.4%
mul-1-neg40.4%
unsub-neg40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in t around inf 39.4%
Taylor expanded in b around inf 35.7%
*-commutative35.7%
associate-*r*35.6%
associate-*l*39.3%
*-commutative39.3%
Simplified39.3%
if 1.8500000000000001e193 < y3 < 1.2499999999999999e211Initial program 33.3%
Taylor expanded in j around inf 12.0%
+-commutative12.0%
mul-1-neg12.0%
unsub-neg12.0%
*-commutative12.0%
Simplified12.0%
Taylor expanded in y3 around -inf 12.5%
mul-1-neg12.5%
associate-*r*12.5%
distribute-lft-neg-in12.5%
*-commutative12.5%
distribute-rgt-neg-in12.5%
Simplified12.5%
Taylor expanded in y1 around 0 45.9%
*-commutative45.9%
*-commutative45.9%
associate-*l*45.8%
Simplified45.8%
Taylor expanded in y3 around 0 45.9%
*-commutative45.9%
associate-*l*56.5%
associate-*l*56.5%
*-commutative56.5%
Simplified56.5%
if 1.2499999999999999e211 < y3 < 1.5999999999999999e254Initial program 0.0%
Taylor expanded in j around inf 36.4%
+-commutative36.4%
mul-1-neg36.4%
unsub-neg36.4%
*-commutative36.4%
Simplified36.4%
Taylor expanded in y4 around inf 27.6%
*-commutative27.6%
Simplified27.6%
Taylor expanded in t around inf 46.1%
Final simplification38.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -1.05e+110)
(* y0 (* b (* z k)))
(if (<= k 1.62e-292)
(* c (* y2 (- (* x y0) (* t y4))))
(if (or (<= k 7.2e-224) (not (<= k 8e-16)))
(* j (* t (- (* b y4) (* i y5))))
(* c (* y0 (- (* x y2) (* z y3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.05e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= 1.62e-292) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if ((k <= 7.2e-224) || !(k <= 8e-16)) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= (-1.05d+110)) then
tmp = y0 * (b * (z * k))
else if (k <= 1.62d-292) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if ((k <= 7.2d-224) .or. (.not. (k <= 8d-16))) then
tmp = j * (t * ((b * y4) - (i * y5)))
else
tmp = c * (y0 * ((x * y2) - (z * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.05e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= 1.62e-292) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if ((k <= 7.2e-224) || !(k <= 8e-16)) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if k <= -1.05e+110: tmp = y0 * (b * (z * k)) elif k <= 1.62e-292: tmp = c * (y2 * ((x * y0) - (t * y4))) elif (k <= 7.2e-224) or not (k <= 8e-16): tmp = j * (t * ((b * y4) - (i * y5))) else: tmp = c * (y0 * ((x * y2) - (z * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -1.05e+110) tmp = Float64(y0 * Float64(b * Float64(z * k))); elseif (k <= 1.62e-292) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif ((k <= 7.2e-224) || !(k <= 8e-16)) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); else tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= -1.05e+110) tmp = y0 * (b * (z * k)); elseif (k <= 1.62e-292) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif ((k <= 7.2e-224) || ~((k <= 8e-16))) tmp = j * (t * ((b * y4) - (i * y5))); else tmp = c * (y0 * ((x * y2) - (z * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -1.05e+110], N[(y0 * N[(b * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.62e-292], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[k, 7.2e-224], N[Not[LessEqual[k, 8e-16]], $MachinePrecision]], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.05 \cdot 10^{+110}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq 1.62 \cdot 10^{-292}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 7.2 \cdot 10^{-224} \lor \neg \left(k \leq 8 \cdot 10^{-16}\right):\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\end{array}
\end{array}
if k < -1.05000000000000007e110Initial program 37.2%
Taylor expanded in k around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
mul-1-neg65.2%
Simplified65.2%
Taylor expanded in b around inf 44.7%
Taylor expanded in y0 around inf 33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in b around 0 33.7%
associate-*r*33.6%
*-commutative33.6%
associate-*l*42.5%
*-commutative42.5%
associate-*l*47.0%
*-commutative47.0%
Simplified47.0%
if -1.05000000000000007e110 < k < 1.61999999999999991e-292Initial program 29.1%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in c around inf 42.9%
if 1.61999999999999991e-292 < k < 7.1999999999999999e-224 or 7.9999999999999998e-16 < k Initial program 18.5%
Taylor expanded in j around inf 48.7%
+-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in t around inf 44.0%
if 7.1999999999999999e-224 < k < 7.9999999999999998e-16Initial program 23.2%
Taylor expanded in y0 around inf 29.2%
+-commutative29.2%
mul-1-neg29.2%
unsub-neg29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
Simplified29.2%
Taylor expanded in c around inf 43.0%
Final simplification44.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -1.85e+71)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 -76000000000.0)
(* i (* j (* x y1)))
(if (<= y2 -2.1e-170)
(* b (* k (- (* z y0) (* y y4))))
(if (<= y2 2.1e+47)
(* b (* y4 (- (* t j) (* y k))))
(* c (* x (* y0 y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.85e+71) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -76000000000.0) {
tmp = i * (j * (x * y1));
} else if (y2 <= -2.1e-170) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (y2 <= 2.1e+47) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-1.85d+71)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= (-76000000000.0d0)) then
tmp = i * (j * (x * y1))
else if (y2 <= (-2.1d-170)) then
tmp = b * (k * ((z * y0) - (y * y4)))
else if (y2 <= 2.1d+47) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = c * (x * (y0 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.85e+71) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -76000000000.0) {
tmp = i * (j * (x * y1));
} else if (y2 <= -2.1e-170) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (y2 <= 2.1e+47) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.85e+71: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= -76000000000.0: tmp = i * (j * (x * y1)) elif y2 <= -2.1e-170: tmp = b * (k * ((z * y0) - (y * y4))) elif y2 <= 2.1e+47: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -1.85e+71) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= -76000000000.0) tmp = Float64(i * Float64(j * Float64(x * y1))); elseif (y2 <= -2.1e-170) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (y2 <= 2.1e+47) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -1.85e+71) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= -76000000000.0) tmp = i * (j * (x * y1)); elseif (y2 <= -2.1e-170) tmp = b * (k * ((z * y0) - (y * y4))); elseif (y2 <= 2.1e+47) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.85e+71], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -76000000000.0], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.1e-170], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.1e+47], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.85 \cdot 10^{+71}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -76000000000:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq -2.1 \cdot 10^{-170}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{+47}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -1.85e71Initial program 17.6%
Taylor expanded in y0 around inf 43.2%
+-commutative43.2%
mul-1-neg43.2%
unsub-neg43.2%
*-commutative43.2%
*-commutative43.2%
*-commutative43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in c around inf 55.5%
if -1.85e71 < y2 < -7.6e10Initial program 49.9%
Taylor expanded in j around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in y1 around -inf 45.9%
associate-*r*45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
if -7.6e10 < y2 < -2.1000000000000001e-170Initial program 33.3%
Taylor expanded in k around inf 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
mul-1-neg51.8%
Simplified51.8%
Taylor expanded in b around inf 43.2%
if -2.1000000000000001e-170 < y2 < 2.1e47Initial program 29.2%
Taylor expanded in y4 around inf 36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in b around inf 32.1%
if 2.1e47 < y2 Initial program 16.3%
Taylor expanded in y2 around inf 47.4%
Taylor expanded in y0 around inf 43.4%
associate-*r*41.4%
*-commutative41.4%
+-commutative41.4%
mul-1-neg41.4%
unsub-neg41.4%
*-commutative41.4%
*-commutative41.4%
Simplified41.4%
Taylor expanded in x around inf 47.9%
Final simplification42.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* k (- (* z y0) (* y y4))))))
(if (<= k -1.65e-59)
t_1
(if (<= k 2.65e-303)
(* y0 (* y3 (* j y5)))
(if (<= k 2.7e+88) (* b (* t (* 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 = b * (k * ((z * y0) - (y * y4)));
double tmp;
if (k <= -1.65e-59) {
tmp = t_1;
} else if (k <= 2.65e-303) {
tmp = y0 * (y3 * (j * y5));
} else if (k <= 2.7e+88) {
tmp = b * (t * (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) :: tmp
t_1 = b * (k * ((z * y0) - (y * y4)))
if (k <= (-1.65d-59)) then
tmp = t_1
else if (k <= 2.65d-303) then
tmp = y0 * (y3 * (j * y5))
else if (k <= 2.7d+88) then
tmp = b * (t * (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 = b * (k * ((z * y0) - (y * y4)));
double tmp;
if (k <= -1.65e-59) {
tmp = t_1;
} else if (k <= 2.65e-303) {
tmp = y0 * (y3 * (j * y5));
} else if (k <= 2.7e+88) {
tmp = b * (t * (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 = b * (k * ((z * y0) - (y * y4))) tmp = 0 if k <= -1.65e-59: tmp = t_1 elif k <= 2.65e-303: tmp = y0 * (y3 * (j * y5)) elif k <= 2.7e+88: tmp = b * (t * (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(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))) tmp = 0.0 if (k <= -1.65e-59) tmp = t_1; elseif (k <= 2.65e-303) tmp = Float64(y0 * Float64(y3 * Float64(j * y5))); elseif (k <= 2.7e+88) tmp = Float64(b * Float64(t * 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 = b * (k * ((z * y0) - (y * y4))); tmp = 0.0; if (k <= -1.65e-59) tmp = t_1; elseif (k <= 2.65e-303) tmp = y0 * (y3 * (j * y5)); elseif (k <= 2.7e+88) tmp = b * (t * (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[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.65e-59], t$95$1, If[LessEqual[k, 2.65e-303], N[(y0 * N[(y3 * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.7e+88], N[(b * N[(t * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{if}\;k \leq -1.65 \cdot 10^{-59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 2.65 \cdot 10^{-303}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq 2.7 \cdot 10^{+88}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -1.64999999999999991e-59 or 2.70000000000000016e88 < k Initial program 29.2%
Taylor expanded in k around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
mul-1-neg54.8%
Simplified54.8%
Taylor expanded in b around inf 42.6%
if -1.64999999999999991e-59 < k < 2.65e-303Initial program 29.8%
Taylor expanded in j around inf 32.0%
+-commutative32.0%
mul-1-neg32.0%
unsub-neg32.0%
*-commutative32.0%
Simplified32.0%
Taylor expanded in y3 around -inf 27.4%
mul-1-neg27.4%
associate-*r*27.3%
distribute-lft-neg-in27.3%
*-commutative27.3%
distribute-rgt-neg-in27.3%
Simplified27.3%
Taylor expanded in y1 around 0 26.0%
*-commutative26.0%
*-commutative26.0%
associate-*l*29.3%
Simplified29.3%
Taylor expanded in y3 around 0 26.0%
*-commutative26.0%
associate-*l*29.5%
associate-*l*32.9%
*-commutative32.9%
Simplified32.9%
if 2.65e-303 < k < 2.70000000000000016e88Initial program 20.1%
Taylor expanded in j around inf 46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in y4 around inf 31.7%
*-commutative31.7%
Simplified31.7%
Taylor expanded in t around inf 26.1%
*-commutative26.1%
associate-*l*27.3%
Simplified27.3%
Final simplification35.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -2.7e+110)
(* y0 (* b (* z k)))
(if (<= k -9.2e-104)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= k 3.9e-12)
(* c (* y0 (- (* x y2) (* z y3))))
(* b (* y4 (- (* t j) (* y k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -2.7e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= -9.2e-104) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 3.9e-12) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else {
tmp = b * (y4 * ((t * j) - (y * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= (-2.7d+110)) then
tmp = y0 * (b * (z * k))
else if (k <= (-9.2d-104)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (k <= 3.9d-12) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else
tmp = b * (y4 * ((t * j) - (y * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -2.7e+110) {
tmp = y0 * (b * (z * k));
} else if (k <= -9.2e-104) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (k <= 3.9e-12) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else {
tmp = b * (y4 * ((t * j) - (y * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if k <= -2.7e+110: tmp = y0 * (b * (z * k)) elif k <= -9.2e-104: tmp = c * (y2 * ((x * y0) - (t * y4))) elif k <= 3.9e-12: tmp = c * (y0 * ((x * y2) - (z * y3))) else: tmp = b * (y4 * ((t * j) - (y * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -2.7e+110) tmp = Float64(y0 * Float64(b * Float64(z * k))); elseif (k <= -9.2e-104) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= 3.9e-12) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); else tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= -2.7e+110) tmp = y0 * (b * (z * k)); elseif (k <= -9.2e-104) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (k <= 3.9e-12) tmp = c * (y0 * ((x * y2) - (z * y3))); else tmp = b * (y4 * ((t * j) - (y * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -2.7e+110], N[(y0 * N[(b * N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -9.2e-104], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.9e-12], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -2.7 \cdot 10^{+110}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq -9.2 \cdot 10^{-104}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 3.9 \cdot 10^{-12}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\end{array}
\end{array}
if k < -2.7000000000000001e110Initial program 37.2%
Taylor expanded in k around inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
mul-1-neg65.2%
Simplified65.2%
Taylor expanded in b around inf 44.7%
Taylor expanded in y0 around inf 33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in b around 0 33.7%
associate-*r*33.6%
*-commutative33.6%
associate-*l*42.5%
*-commutative42.5%
associate-*l*47.0%
*-commutative47.0%
Simplified47.0%
if -2.7000000000000001e110 < k < -9.1999999999999998e-104Initial program 27.7%
Taylor expanded in y2 around inf 50.4%
Taylor expanded in c around inf 47.2%
if -9.1999999999999998e-104 < k < 3.89999999999999994e-12Initial program 23.7%
Taylor expanded in y0 around inf 33.2%
+-commutative33.2%
mul-1-neg33.2%
unsub-neg33.2%
*-commutative33.2%
*-commutative33.2%
*-commutative33.2%
*-commutative33.2%
Simplified33.2%
Taylor expanded in c around inf 36.6%
if 3.89999999999999994e-12 < k Initial program 21.3%
Taylor expanded in y4 around inf 35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in b around inf 38.1%
Final simplification40.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (* y0 y2)))) (t_2 (* b (* j (* t y4)))))
(if (<= y0 -1.25e+69)
t_1
(if (<= y0 -1.36e-129)
t_2
(if (<= y0 -5e-293)
(* i (* j (* x y1)))
(if (<= y0 5.9e-61) 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 = c * (x * (y0 * y2));
double t_2 = b * (j * (t * y4));
double tmp;
if (y0 <= -1.25e+69) {
tmp = t_1;
} else if (y0 <= -1.36e-129) {
tmp = t_2;
} else if (y0 <= -5e-293) {
tmp = i * (j * (x * y1));
} else if (y0 <= 5.9e-61) {
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 = c * (x * (y0 * y2))
t_2 = b * (j * (t * y4))
if (y0 <= (-1.25d+69)) then
tmp = t_1
else if (y0 <= (-1.36d-129)) then
tmp = t_2
else if (y0 <= (-5d-293)) then
tmp = i * (j * (x * y1))
else if (y0 <= 5.9d-61) 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 = c * (x * (y0 * y2));
double t_2 = b * (j * (t * y4));
double tmp;
if (y0 <= -1.25e+69) {
tmp = t_1;
} else if (y0 <= -1.36e-129) {
tmp = t_2;
} else if (y0 <= -5e-293) {
tmp = i * (j * (x * y1));
} else if (y0 <= 5.9e-61) {
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 = c * (x * (y0 * y2)) t_2 = b * (j * (t * y4)) tmp = 0 if y0 <= -1.25e+69: tmp = t_1 elif y0 <= -1.36e-129: tmp = t_2 elif y0 <= -5e-293: tmp = i * (j * (x * y1)) elif y0 <= 5.9e-61: 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(c * Float64(x * Float64(y0 * y2))) t_2 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (y0 <= -1.25e+69) tmp = t_1; elseif (y0 <= -1.36e-129) tmp = t_2; elseif (y0 <= -5e-293) tmp = Float64(i * Float64(j * Float64(x * y1))); elseif (y0 <= 5.9e-61) 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 = c * (x * (y0 * y2)); t_2 = b * (j * (t * y4)); tmp = 0.0; if (y0 <= -1.25e+69) tmp = t_1; elseif (y0 <= -1.36e-129) tmp = t_2; elseif (y0 <= -5e-293) tmp = i * (j * (x * y1)); elseif (y0 <= 5.9e-61) 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[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1.25e+69], t$95$1, If[LessEqual[y0, -1.36e-129], t$95$2, If[LessEqual[y0, -5e-293], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5.9e-61], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
t_2 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;y0 \leq -1.25 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq -1.36 \cdot 10^{-129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y0 \leq -5 \cdot 10^{-293}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq 5.9 \cdot 10^{-61}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y0 < -1.25000000000000009e69 or 5.89999999999999972e-61 < y0 Initial program 18.5%
Taylor expanded in y2 around inf 37.8%
Taylor expanded in y0 around inf 36.9%
associate-*r*38.4%
*-commutative38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in x around inf 38.5%
if -1.25000000000000009e69 < y0 < -1.36000000000000002e-129 or -5.0000000000000003e-293 < y0 < 5.89999999999999972e-61Initial program 33.0%
Taylor expanded in j around inf 38.1%
+-commutative38.1%
mul-1-neg38.1%
unsub-neg38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in t around inf 39.6%
Taylor expanded in b around inf 31.2%
if -1.36000000000000002e-129 < y0 < -5.0000000000000003e-293Initial program 38.7%
Taylor expanded in j around inf 39.5%
+-commutative39.5%
mul-1-neg39.5%
unsub-neg39.5%
*-commutative39.5%
Simplified39.5%
Taylor expanded in y1 around -inf 33.2%
associate-*r*33.0%
+-commutative33.0%
mul-1-neg33.0%
unsub-neg33.0%
*-commutative33.0%
*-commutative33.0%
Simplified33.0%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
*-commutative30.2%
Simplified30.2%
Final simplification34.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (* y0 y2)))))
(if (<= y0 -1.6e+69)
t_1
(if (<= y0 -6.8e-127)
(* j (* b (* t y4)))
(if (<= y0 -4.8e-292)
(* i (* j (* x y1)))
(if (<= y0 5.8e-61) (* 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 = c * (x * (y0 * y2));
double tmp;
if (y0 <= -1.6e+69) {
tmp = t_1;
} else if (y0 <= -6.8e-127) {
tmp = j * (b * (t * y4));
} else if (y0 <= -4.8e-292) {
tmp = i * (j * (x * y1));
} else if (y0 <= 5.8e-61) {
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 = c * (x * (y0 * y2))
if (y0 <= (-1.6d+69)) then
tmp = t_1
else if (y0 <= (-6.8d-127)) then
tmp = j * (b * (t * y4))
else if (y0 <= (-4.8d-292)) then
tmp = i * (j * (x * y1))
else if (y0 <= 5.8d-61) 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 = c * (x * (y0 * y2));
double tmp;
if (y0 <= -1.6e+69) {
tmp = t_1;
} else if (y0 <= -6.8e-127) {
tmp = j * (b * (t * y4));
} else if (y0 <= -4.8e-292) {
tmp = i * (j * (x * y1));
} else if (y0 <= 5.8e-61) {
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 = c * (x * (y0 * y2)) tmp = 0 if y0 <= -1.6e+69: tmp = t_1 elif y0 <= -6.8e-127: tmp = j * (b * (t * y4)) elif y0 <= -4.8e-292: tmp = i * (j * (x * y1)) elif y0 <= 5.8e-61: 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(c * Float64(x * Float64(y0 * y2))) tmp = 0.0 if (y0 <= -1.6e+69) tmp = t_1; elseif (y0 <= -6.8e-127) tmp = Float64(j * Float64(b * Float64(t * y4))); elseif (y0 <= -4.8e-292) tmp = Float64(i * Float64(j * Float64(x * y1))); elseif (y0 <= 5.8e-61) 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 = c * (x * (y0 * y2)); tmp = 0.0; if (y0 <= -1.6e+69) tmp = t_1; elseif (y0 <= -6.8e-127) tmp = j * (b * (t * y4)); elseif (y0 <= -4.8e-292) tmp = i * (j * (x * y1)); elseif (y0 <= 5.8e-61) 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[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1.6e+69], t$95$1, If[LessEqual[y0, -6.8e-127], N[(j * N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -4.8e-292], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5.8e-61], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{if}\;y0 \leq -1.6 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq -6.8 \cdot 10^{-127}:\\
\;\;\;\;j \cdot \left(b \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq -4.8 \cdot 10^{-292}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq 5.8 \cdot 10^{-61}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y0 < -1.59999999999999992e69 or 5.7999999999999999e-61 < y0 Initial program 18.5%
Taylor expanded in y2 around inf 37.8%
Taylor expanded in y0 around inf 36.9%
associate-*r*38.4%
*-commutative38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in x around inf 38.5%
if -1.59999999999999992e69 < y0 < -6.7999999999999997e-127Initial program 36.5%
Taylor expanded in j around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in y4 around inf 43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in t around inf 35.9%
if -6.7999999999999997e-127 < y0 < -4.8000000000000002e-292Initial program 38.7%
Taylor expanded in j around inf 39.5%
+-commutative39.5%
mul-1-neg39.5%
unsub-neg39.5%
*-commutative39.5%
Simplified39.5%
Taylor expanded in y1 around -inf 33.2%
associate-*r*33.0%
+-commutative33.0%
mul-1-neg33.0%
unsub-neg33.0%
*-commutative33.0%
*-commutative33.0%
Simplified33.0%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
*-commutative30.2%
Simplified30.2%
if -4.8000000000000002e-292 < y0 < 5.7999999999999999e-61Initial program 30.3%
Taylor expanded in j around inf 34.7%
+-commutative34.7%
mul-1-neg34.7%
unsub-neg34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in t around inf 37.0%
Taylor expanded in b around inf 27.7%
Final simplification34.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y0 -1.65e+97) (not (<= y0 9e+145))) (* b (* k (* z y0))) (* b (* j (* t 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 tmp;
if ((y0 <= -1.65e+97) || !(y0 <= 9e+145)) {
tmp = b * (k * (z * y0));
} else {
tmp = b * (j * (t * 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) :: tmp
if ((y0 <= (-1.65d+97)) .or. (.not. (y0 <= 9d+145))) then
tmp = b * (k * (z * y0))
else
tmp = b * (j * (t * 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 tmp;
if ((y0 <= -1.65e+97) || !(y0 <= 9e+145)) {
tmp = b * (k * (z * y0));
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y0 <= -1.65e+97) or not (y0 <= 9e+145): tmp = b * (k * (z * y0)) else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y0 <= -1.65e+97) || !(y0 <= 9e+145)) tmp = Float64(b * Float64(k * Float64(z * y0))); else tmp = Float64(b * Float64(j * Float64(t * 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) tmp = 0.0; if ((y0 <= -1.65e+97) || ~((y0 <= 9e+145))) tmp = b * (k * (z * y0)); else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y0, -1.65e+97], N[Not[LessEqual[y0, 9e+145]], $MachinePrecision]], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -1.65 \cdot 10^{+97} \lor \neg \left(y0 \leq 9 \cdot 10^{+145}\right):\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if y0 < -1.6500000000000001e97 or 8.9999999999999996e145 < y0 Initial program 12.2%
Taylor expanded in k around inf 33.4%
+-commutative33.4%
mul-1-neg33.4%
unsub-neg33.4%
mul-1-neg33.4%
Simplified33.4%
Taylor expanded in b around inf 33.0%
Taylor expanded in y0 around inf 31.7%
*-commutative31.7%
Simplified31.7%
if -1.6500000000000001e97 < y0 < 8.9999999999999996e145Initial program 32.1%
Taylor expanded in j around inf 39.9%
+-commutative39.9%
mul-1-neg39.9%
unsub-neg39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in t around inf 35.5%
Taylor expanded in b around inf 25.3%
Final simplification27.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y0 -1.2e+69) (not (<= y0 3.3e-60))) (* c (* x (* y0 y2))) (* b (* j (* t 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 tmp;
if ((y0 <= -1.2e+69) || !(y0 <= 3.3e-60)) {
tmp = c * (x * (y0 * y2));
} else {
tmp = b * (j * (t * 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) :: tmp
if ((y0 <= (-1.2d+69)) .or. (.not. (y0 <= 3.3d-60))) then
tmp = c * (x * (y0 * y2))
else
tmp = b * (j * (t * 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 tmp;
if ((y0 <= -1.2e+69) || !(y0 <= 3.3e-60)) {
tmp = c * (x * (y0 * y2));
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y0 <= -1.2e+69) or not (y0 <= 3.3e-60): tmp = c * (x * (y0 * y2)) else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y0 <= -1.2e+69) || !(y0 <= 3.3e-60)) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = Float64(b * Float64(j * Float64(t * 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) tmp = 0.0; if ((y0 <= -1.2e+69) || ~((y0 <= 3.3e-60))) tmp = c * (x * (y0 * y2)); else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y0, -1.2e+69], N[Not[LessEqual[y0, 3.3e-60]], $MachinePrecision]], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -1.2 \cdot 10^{+69} \lor \neg \left(y0 \leq 3.3 \cdot 10^{-60}\right):\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if y0 < -1.2000000000000001e69 or 3.2999999999999998e-60 < y0 Initial program 18.5%
Taylor expanded in y2 around inf 37.8%
Taylor expanded in y0 around inf 36.9%
associate-*r*38.4%
*-commutative38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in x around inf 38.5%
if -1.2000000000000001e69 < y0 < 3.2999999999999998e-60Initial program 34.4%
Taylor expanded in j around inf 38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in t around inf 35.7%
Taylor expanded in b around inf 27.1%
Final simplification32.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* b (* j (* t 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) {
return b * (j * (t * y4));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = b * (j * (t * y4))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return b * (j * (t * y4));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return b * (j * (t * y4))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(b * Float64(j * Float64(t * y4))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = b * (j * (t * y4)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(j \cdot \left(t \cdot y4\right)\right)
\end{array}
Initial program 26.3%
Taylor expanded in j around inf 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
Simplified39.2%
Taylor expanded in t around inf 31.8%
Taylor expanded in b around inf 21.9%
Final simplification21.9%
(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 2023321
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))