
(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 37 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 (- (* y k) (* t j)))
(t_2 (- (* a b) (* c i)))
(t_3 (- (* x y2) (* z y3)))
(t_4 (- (* c y0) (* a y1)))
(t_5 (- (* k y2) (* j y3)))
(t_6 (* y5 (+ (* i t_1) (- (* a (- (* t y2) (* y y3))) (* y0 t_5)))))
(t_7 (- (* y y3) (* t y2))))
(if (<= y4 -2.4e+109)
(* y4 (+ (- (* y1 t_5) (* t_1 b)) (* c t_7)))
(if (<= y4 -1.5e-9)
(* x (+ (+ (* y t_2) (* y2 t_4)) (* j (- (* i y1) (* b y0)))))
(if (<= y4 -4.7e-117)
(*
y2
(+
(+ (* x t_4) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 -9e-288)
t_6
(if (<= y4 9.6e-147)
(* c (+ (+ (* i (- (* z t) (* x y))) (* y0 t_3)) (* y4 t_7)))
(if (<= y4 6.5e-43)
t_6
(if (<= y4 30.0)
(*
y1
(-
(* i (- (* x j) (* z k)))
(+ (* a t_3) (* y4 (- (* j y3) (* k y2))))))
(if (or (<= y4 4.4e+33) (not (<= y4 4.8e+120)))
(* (* c y4) t_7)
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x t_2))
(* y3 (- (* c y4) (* a y5)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * k) - (t * j);
double t_2 = (a * b) - (c * i);
double t_3 = (x * y2) - (z * y3);
double t_4 = (c * y0) - (a * y1);
double t_5 = (k * y2) - (j * y3);
double t_6 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_5)));
double t_7 = (y * y3) - (t * y2);
double tmp;
if (y4 <= -2.4e+109) {
tmp = y4 * (((y1 * t_5) - (t_1 * b)) + (c * t_7));
} else if (y4 <= -1.5e-9) {
tmp = x * (((y * t_2) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (y4 <= -4.7e-117) {
tmp = y2 * (((x * t_4) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -9e-288) {
tmp = t_6;
} else if (y4 <= 9.6e-147) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_3)) + (y4 * t_7));
} else if (y4 <= 6.5e-43) {
tmp = t_6;
} else if (y4 <= 30.0) {
tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_3) + (y4 * ((j * y3) - (k * y2)))));
} else if ((y4 <= 4.4e+33) || !(y4 <= 4.8e+120)) {
tmp = (c * y4) * t_7;
} else {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * 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) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (y * k) - (t * j)
t_2 = (a * b) - (c * i)
t_3 = (x * y2) - (z * y3)
t_4 = (c * y0) - (a * y1)
t_5 = (k * y2) - (j * y3)
t_6 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_5)))
t_7 = (y * y3) - (t * y2)
if (y4 <= (-2.4d+109)) then
tmp = y4 * (((y1 * t_5) - (t_1 * b)) + (c * t_7))
else if (y4 <= (-1.5d-9)) then
tmp = x * (((y * t_2) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))))
else if (y4 <= (-4.7d-117)) then
tmp = y2 * (((x * t_4) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= (-9d-288)) then
tmp = t_6
else if (y4 <= 9.6d-147) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_3)) + (y4 * t_7))
else if (y4 <= 6.5d-43) then
tmp = t_6
else if (y4 <= 30.0d0) then
tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_3) + (y4 * ((j * y3) - (k * y2)))))
else if ((y4 <= 4.4d+33) .or. (.not. (y4 <= 4.8d+120))) then
tmp = (c * y4) * t_7
else
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * k) - (t * j);
double t_2 = (a * b) - (c * i);
double t_3 = (x * y2) - (z * y3);
double t_4 = (c * y0) - (a * y1);
double t_5 = (k * y2) - (j * y3);
double t_6 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_5)));
double t_7 = (y * y3) - (t * y2);
double tmp;
if (y4 <= -2.4e+109) {
tmp = y4 * (((y1 * t_5) - (t_1 * b)) + (c * t_7));
} else if (y4 <= -1.5e-9) {
tmp = x * (((y * t_2) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (y4 <= -4.7e-117) {
tmp = y2 * (((x * t_4) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -9e-288) {
tmp = t_6;
} else if (y4 <= 9.6e-147) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_3)) + (y4 * t_7));
} else if (y4 <= 6.5e-43) {
tmp = t_6;
} else if (y4 <= 30.0) {
tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_3) + (y4 * ((j * y3) - (k * y2)))));
} else if ((y4 <= 4.4e+33) || !(y4 <= 4.8e+120)) {
tmp = (c * y4) * t_7;
} else {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * k) - (t * j) t_2 = (a * b) - (c * i) t_3 = (x * y2) - (z * y3) t_4 = (c * y0) - (a * y1) t_5 = (k * y2) - (j * y3) t_6 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_5))) t_7 = (y * y3) - (t * y2) tmp = 0 if y4 <= -2.4e+109: tmp = y4 * (((y1 * t_5) - (t_1 * b)) + (c * t_7)) elif y4 <= -1.5e-9: tmp = x * (((y * t_2) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))) elif y4 <= -4.7e-117: tmp = y2 * (((x * t_4) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= -9e-288: tmp = t_6 elif y4 <= 9.6e-147: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_3)) + (y4 * t_7)) elif y4 <= 6.5e-43: tmp = t_6 elif y4 <= 30.0: tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_3) + (y4 * ((j * y3) - (k * y2))))) elif (y4 <= 4.4e+33) or not (y4 <= 4.8e+120): tmp = (c * y4) * t_7 else: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * k) - Float64(t * j)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(Float64(x * y2) - Float64(z * y3)) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(Float64(k * y2) - Float64(j * y3)) t_6 = Float64(y5 * Float64(Float64(i * t_1) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) - Float64(y0 * t_5)))) t_7 = Float64(Float64(y * y3) - Float64(t * y2)) tmp = 0.0 if (y4 <= -2.4e+109) tmp = Float64(y4 * Float64(Float64(Float64(y1 * t_5) - Float64(t_1 * b)) + Float64(c * t_7))); elseif (y4 <= -1.5e-9) tmp = Float64(x * Float64(Float64(Float64(y * t_2) + Float64(y2 * t_4)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y4 <= -4.7e-117) tmp = Float64(y2 * Float64(Float64(Float64(x * t_4) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -9e-288) tmp = t_6; elseif (y4 <= 9.6e-147) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * t_3)) + Float64(y4 * t_7))); elseif (y4 <= 6.5e-43) tmp = t_6; elseif (y4 <= 30.0) tmp = Float64(y1 * Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) - Float64(Float64(a * t_3) + Float64(y4 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif ((y4 <= 4.4e+33) || !(y4 <= 4.8e+120)) tmp = Float64(Float64(c * y4) * t_7); else tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_2)) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y * k) - (t * j); t_2 = (a * b) - (c * i); t_3 = (x * y2) - (z * y3); t_4 = (c * y0) - (a * y1); t_5 = (k * y2) - (j * y3); t_6 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_5))); t_7 = (y * y3) - (t * y2); tmp = 0.0; if (y4 <= -2.4e+109) tmp = y4 * (((y1 * t_5) - (t_1 * b)) + (c * t_7)); elseif (y4 <= -1.5e-9) tmp = x * (((y * t_2) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))); elseif (y4 <= -4.7e-117) tmp = y2 * (((x * t_4) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= -9e-288) tmp = t_6; elseif (y4 <= 9.6e-147) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_3)) + (y4 * t_7)); elseif (y4 <= 6.5e-43) tmp = t_6; elseif (y4 <= 30.0) tmp = y1 * ((i * ((x * j) - (z * k))) - ((a * t_3) + (y4 * ((j * y3) - (k * y2))))); elseif ((y4 <= 4.4e+33) || ~((y4 <= 4.8e+120))) tmp = (c * y4) * t_7; else tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y5 * N[(N[(i * t$95$1), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.4e+109], N[(y4 * N[(N[(N[(y1 * t$95$5), $MachinePrecision] - N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.5e-9], N[(x * N[(N[(N[(y * t$95$2), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -4.7e-117], N[(y2 * N[(N[(N[(x * t$95$4), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-288], t$95$6, If[LessEqual[y4, 9.6e-147], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.5e-43], t$95$6, If[LessEqual[y4, 30.0], N[(y1 * N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t$95$3), $MachinePrecision] + N[(y4 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y4, 4.4e+33], N[Not[LessEqual[y4, 4.8e+120]], $MachinePrecision]], N[(N[(c * y4), $MachinePrecision] * t$95$7), $MachinePrecision], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot k - t \cdot j\\
t_2 := a \cdot b - c \cdot i\\
t_3 := x \cdot y2 - z \cdot y3\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := k \cdot y2 - j \cdot y3\\
t_6 := y5 \cdot \left(i \cdot t_1 + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) - y0 \cdot t_5\right)\right)\\
t_7 := y \cdot y3 - t \cdot y2\\
\mathbf{if}\;y4 \leq -2.4 \cdot 10^{+109}:\\
\;\;\;\;y4 \cdot \left(\left(y1 \cdot t_5 - t_1 \cdot b\right) + c \cdot t_7\right)\\
\mathbf{elif}\;y4 \leq -1.5 \cdot 10^{-9}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_2 + y2 \cdot t_4\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq -4.7 \cdot 10^{-117}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_4 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{-288}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y4 \leq 9.6 \cdot 10^{-147}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot t_3\right) + y4 \cdot t_7\right)\\
\mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-43}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y4 \leq 30:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) - \left(a \cdot t_3 + y4 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 4.4 \cdot 10^{+33} \lor \neg \left(y4 \leq 4.8 \cdot 10^{+120}\right):\\
\;\;\;\;\left(c \cdot y4\right) \cdot t_7\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t_2\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\end{array}
\end{array}
if y4 < -2.39999999999999987e109Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in y4 around inf 67.1%
if -2.39999999999999987e109 < y4 < -1.49999999999999999e-9Initial program 30.0%
associate-+l-30.0%
Simplified30.0%
Taylor expanded in x around inf 55.6%
if -1.49999999999999999e-9 < y4 < -4.70000000000000009e-117Initial program 4.3%
associate-+l-4.3%
Simplified4.3%
Taylor expanded in y2 around inf 56.8%
if -4.70000000000000009e-117 < y4 < -9.0000000000000003e-288 or 9.59999999999999994e-147 < y4 < 6.50000000000000001e-43Initial program 35.9%
associate-+l-35.9%
Simplified35.9%
Taylor expanded in y5 around -inf 60.2%
mul-1-neg60.2%
associate--l+60.2%
Simplified60.2%
if -9.0000000000000003e-288 < y4 < 9.59999999999999994e-147Initial program 34.5%
associate-+l-34.5%
Simplified34.5%
Taylor expanded in c around inf 66.5%
mul-1-neg66.5%
Simplified66.5%
if 6.50000000000000001e-43 < y4 < 30Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y1 around inf 64.1%
mul-1-neg64.1%
mul-1-neg64.1%
Simplified64.1%
if 30 < y4 < 4.39999999999999988e33 or 4.80000000000000002e120 < y4 Initial program 9.1%
associate-+l-9.1%
Simplified9.1%
Taylor expanded in y4 around inf 41.1%
Taylor expanded in c around inf 59.5%
associate-*r*57.4%
Simplified57.4%
if 4.39999999999999988e33 < y4 < 4.80000000000000002e120Initial program 23.8%
associate-+l-23.8%
Simplified23.8%
Taylor expanded in y around inf 77.0%
mul-1-neg77.0%
mul-1-neg77.0%
Simplified77.0%
Final simplification62.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i)))
(t_2
(+
(+
(+
(+
(+
(* t_1 (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* c y0) (* a y1)) (- (* x y2) (* z y3))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x t_1))
(* y3 (- (* c y4) (* a y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * b) - (c * i);
double t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_1)) + (y3 * ((c * y4) - (a * y5))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * b) - (c * i);
double t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_1)) + (y3 * ((c * y4) - (a * y5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * b) - (c * i) t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_1)) + (y3 * ((c * y4) - (a * y5)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * b) - Float64(c * i)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(t_1 * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_1)) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * b) - (c * i); t_2 = (((((t_1 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_1)) + (y3 * ((c * y4) - (a * y5)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(t$95$1 * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := \left(\left(\left(\left(t_1 \cdot \left(x \cdot y - z \cdot t\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + \left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t_1\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\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 87.3%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y around inf 42.0%
mul-1-neg42.0%
mul-1-neg42.0%
Simplified42.0%
Final simplification54.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y k) (* t j)))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
y2
(+
(+ (* x t_2) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4))))))
(t_4 (- (* k y2) (* j y3)))
(t_5 (* y5 (+ (* i t_1) (- (* a (- (* t y2) (* y y3))) (* y0 t_4)))))
(t_6
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0)))))))
(if (<= y5 -2.4e+162)
t_5
(if (<= y5 -1.75e+105)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y5 -1.9e+96)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= y5 -1.85e-134)
t_3
(if (<= y5 -3.8e-169)
(* z (* i (- (* t c) (* k y1))))
(if (<= y5 -1.4e-189)
(* y4 (+ (- (* y1 t_4) (* t_1 b)) (* c (- (* y y3) (* t y2)))))
(if (<= y5 1.6e-272)
t_6
(if (<= y5 2.7e-234)
(* (- (* b j) (* c y2)) (* t y4))
(if (<= y5 1.25e-38)
t_6
(if (<= y5 5.6e-12)
(* a (* b (- (* x y) (* z t))))
(if (<= y5 1.3e+54) 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 = (y * k) - (t * j);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
double t_4 = (k * y2) - (j * y3);
double t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4)));
double t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double tmp;
if (y5 <= -2.4e+162) {
tmp = t_5;
} else if (y5 <= -1.75e+105) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y5 <= -1.9e+96) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (y5 <= -1.85e-134) {
tmp = t_3;
} else if (y5 <= -3.8e-169) {
tmp = z * (i * ((t * c) - (k * y1)));
} else if (y5 <= -1.4e-189) {
tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * ((y * y3) - (t * y2))));
} else if (y5 <= 1.6e-272) {
tmp = t_6;
} else if (y5 <= 2.7e-234) {
tmp = ((b * j) - (c * y2)) * (t * y4);
} else if (y5 <= 1.25e-38) {
tmp = t_6;
} else if (y5 <= 5.6e-12) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= 1.3e+54) {
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 = (y * k) - (t * j)
t_2 = (c * y0) - (a * y1)
t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
t_4 = (k * y2) - (j * y3)
t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4)))
t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
if (y5 <= (-2.4d+162)) then
tmp = t_5
else if (y5 <= (-1.75d+105)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y5 <= (-1.9d+96)) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (y5 <= (-1.85d-134)) then
tmp = t_3
else if (y5 <= (-3.8d-169)) then
tmp = z * (i * ((t * c) - (k * y1)))
else if (y5 <= (-1.4d-189)) then
tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * ((y * y3) - (t * y2))))
else if (y5 <= 1.6d-272) then
tmp = t_6
else if (y5 <= 2.7d-234) then
tmp = ((b * j) - (c * y2)) * (t * y4)
else if (y5 <= 1.25d-38) then
tmp = t_6
else if (y5 <= 5.6d-12) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y5 <= 1.3d+54) 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 = (y * k) - (t * j);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
double t_4 = (k * y2) - (j * y3);
double t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4)));
double t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double tmp;
if (y5 <= -2.4e+162) {
tmp = t_5;
} else if (y5 <= -1.75e+105) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y5 <= -1.9e+96) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (y5 <= -1.85e-134) {
tmp = t_3;
} else if (y5 <= -3.8e-169) {
tmp = z * (i * ((t * c) - (k * y1)));
} else if (y5 <= -1.4e-189) {
tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * ((y * y3) - (t * y2))));
} else if (y5 <= 1.6e-272) {
tmp = t_6;
} else if (y5 <= 2.7e-234) {
tmp = ((b * j) - (c * y2)) * (t * y4);
} else if (y5 <= 1.25e-38) {
tmp = t_6;
} else if (y5 <= 5.6e-12) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= 1.3e+54) {
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 = (y * k) - (t * j) t_2 = (c * y0) - (a * y1) t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) t_4 = (k * y2) - (j * y3) t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4))) t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) tmp = 0 if y5 <= -2.4e+162: tmp = t_5 elif y5 <= -1.75e+105: tmp = c * (x * ((y0 * y2) - (y * i))) elif y5 <= -1.9e+96: tmp = z * (a * ((y1 * y3) - (t * b))) elif y5 <= -1.85e-134: tmp = t_3 elif y5 <= -3.8e-169: tmp = z * (i * ((t * c) - (k * y1))) elif y5 <= -1.4e-189: tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * ((y * y3) - (t * y2)))) elif y5 <= 1.6e-272: tmp = t_6 elif y5 <= 2.7e-234: tmp = ((b * j) - (c * y2)) * (t * y4) elif y5 <= 1.25e-38: tmp = t_6 elif y5 <= 5.6e-12: tmp = a * (b * ((x * y) - (z * t))) elif y5 <= 1.3e+54: 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(y * k) - Float64(t * j)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(y2 * Float64(Float64(Float64(x * t_2) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(y5 * Float64(Float64(i * t_1) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) - Float64(y0 * t_4)))) t_6 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))) tmp = 0.0 if (y5 <= -2.4e+162) tmp = t_5; elseif (y5 <= -1.75e+105) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y5 <= -1.9e+96) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (y5 <= -1.85e-134) tmp = t_3; elseif (y5 <= -3.8e-169) tmp = Float64(z * Float64(i * Float64(Float64(t * c) - Float64(k * y1)))); elseif (y5 <= -1.4e-189) tmp = Float64(y4 * Float64(Float64(Float64(y1 * t_4) - Float64(t_1 * b)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y5 <= 1.6e-272) tmp = t_6; elseif (y5 <= 2.7e-234) tmp = Float64(Float64(Float64(b * j) - Float64(c * y2)) * Float64(t * y4)); elseif (y5 <= 1.25e-38) tmp = t_6; elseif (y5 <= 5.6e-12) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y5 <= 1.3e+54) 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 = (y * k) - (t * j); t_2 = (c * y0) - (a * y1); t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); t_4 = (k * y2) - (j * y3); t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4))); t_6 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); tmp = 0.0; if (y5 <= -2.4e+162) tmp = t_5; elseif (y5 <= -1.75e+105) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y5 <= -1.9e+96) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (y5 <= -1.85e-134) tmp = t_3; elseif (y5 <= -3.8e-169) tmp = z * (i * ((t * c) - (k * y1))); elseif (y5 <= -1.4e-189) tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * ((y * y3) - (t * y2)))); elseif (y5 <= 1.6e-272) tmp = t_6; elseif (y5 <= 2.7e-234) tmp = ((b * j) - (c * y2)) * (t * y4); elseif (y5 <= 1.25e-38) tmp = t_6; elseif (y5 <= 5.6e-12) tmp = a * (b * ((x * y) - (z * t))); elseif (y5 <= 1.3e+54) 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[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(N[(i * t$95$1), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.4e+162], t$95$5, If[LessEqual[y5, -1.75e+105], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.9e+96], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.85e-134], t$95$3, If[LessEqual[y5, -3.8e-169], N[(z * N[(i * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.4e-189], N[(y4 * N[(N[(N[(y1 * t$95$4), $MachinePrecision] - N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.6e-272], t$95$6, If[LessEqual[y5, 2.7e-234], N[(N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision] * N[(t * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.25e-38], t$95$6, If[LessEqual[y5, 5.6e-12], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.3e+54], t$95$3, t$95$5]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot k - t \cdot j\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := y2 \cdot \left(\left(x \cdot t_2 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y5 \cdot \left(i \cdot t_1 + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) - y0 \cdot t_4\right)\right)\\
t_6 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_2\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;y5 \leq -2.4 \cdot 10^{+162}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y5 \leq -1.75 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -1.9 \cdot 10^{+96}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;y5 \leq -1.85 \cdot 10^{-134}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y5 \leq -3.8 \cdot 10^{-169}:\\
\;\;\;\;z \cdot \left(i \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq -1.4 \cdot 10^{-189}:\\
\;\;\;\;y4 \cdot \left(\left(y1 \cdot t_4 - t_1 \cdot b\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y5 \leq 1.6 \cdot 10^{-272}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y5 \leq 2.7 \cdot 10^{-234}:\\
\;\;\;\;\left(b \cdot j - c \cdot y2\right) \cdot \left(t \cdot y4\right)\\
\mathbf{elif}\;y5 \leq 1.25 \cdot 10^{-38}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y5 \leq 5.6 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+54}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if y5 < -2.40000000000000009e162 or 1.30000000000000003e54 < y5 Initial program 17.9%
associate-+l-17.9%
Simplified17.9%
Taylor expanded in y5 around -inf 64.2%
mul-1-neg64.2%
associate--l+64.2%
Simplified64.2%
if -2.40000000000000009e162 < y5 < -1.74999999999999996e105Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in c around inf 40.0%
mul-1-neg40.0%
Simplified40.0%
Taylor expanded in x around inf 70.2%
if -1.74999999999999996e105 < y5 < -1.9000000000000001e96Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in z around -inf 34.1%
Taylor expanded in a around inf 67.4%
mul-1-neg67.4%
sub-neg67.4%
*-commutative67.4%
Simplified67.4%
if -1.9000000000000001e96 < y5 < -1.85e-134 or 5.6000000000000004e-12 < y5 < 1.30000000000000003e54Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y2 around inf 54.1%
if -1.85e-134 < y5 < -3.8e-169Initial program 27.3%
associate-+l-27.3%
Simplified27.3%
Taylor expanded in z around -inf 46.0%
Taylor expanded in i around inf 55.6%
associate-*r*55.7%
distribute-lft-out--55.7%
associate-*r*55.7%
mul-1-neg55.7%
*-commutative55.7%
*-commutative55.7%
Simplified55.7%
if -3.8e-169 < y5 < -1.4e-189Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y4 around inf 100.0%
if -1.4e-189 < y5 < 1.6e-272 or 2.7000000000000002e-234 < y5 < 1.25000000000000008e-38Initial program 34.7%
associate-+l-34.7%
Simplified34.7%
Taylor expanded in x around inf 53.7%
if 1.6e-272 < y5 < 2.7000000000000002e-234Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in t around inf 83.9%
associate-*r*83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
if 1.25000000000000008e-38 < y5 < 5.6000000000000004e-12Initial program 28.6%
associate-+l-28.6%
Simplified28.6%
Taylor expanded in a around inf 71.4%
associate--l+71.4%
mul-1-neg71.4%
mul-1-neg71.4%
Simplified71.4%
Taylor expanded in b around inf 86.2%
Final simplification60.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t y2) (* y y3)))
(t_2 (- (* c y0) (* a y1)))
(t_3 (- (* c y4) (* a y5)))
(t_4 (- (* y y3) (* t y2)))
(t_5 (- (* i y1) (* b y0)))
(t_6 (- (* a b) (* c i)))
(t_7 (- (* y k) (* t j)))
(t_8 (* y5 t_1))
(t_9 (- (* k y2) (* j y3))))
(if (<= j -2.4e+149)
(* x (+ (+ (* y t_6) (* y2 t_2)) (* j t_5)))
(if (<= j -2.1e+67)
(* a t_8)
(if (<= j -3.6e-263)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 t_4)))
(if (<= j 8.5e-130)
(* y (+ (+ (* k (- (* i y5) (* b y4))) (* x t_6)) (* y3 t_3)))
(if (<= j 1.55e-51)
(+
(* (* x y2) t_2)
(- (* t_9 (- (* y1 y4) (* y0 y5))) (* t_1 t_3)))
(if (<= j 6.9e+40)
(* y4 (+ (- (* y1 t_9) (* t_7 b)) (* c t_4)))
(if (<= j 4.3e+142)
(*
a
(+
(* b (- (* x y) (* z t)))
(+ t_8 (* y1 (- (* z y3) (* x y2))))))
(if (<= j 2.1e+212)
(* y5 (+ (* i t_7) (- (* a t_1) (* y0 t_9))))
(if (<= j 1.45e+306)
(*
j
(+
(+
(* y3 (- (* y0 y5) (* y1 y4)))
(* t (- (* b y4) (* i y5))))
(* x t_5)))
(* (* t y5) (- (* a y2) (* i j))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * y2) - (y * y3);
double t_2 = (c * y0) - (a * y1);
double t_3 = (c * y4) - (a * y5);
double t_4 = (y * y3) - (t * y2);
double t_5 = (i * y1) - (b * y0);
double t_6 = (a * b) - (c * i);
double t_7 = (y * k) - (t * j);
double t_8 = y5 * t_1;
double t_9 = (k * y2) - (j * y3);
double tmp;
if (j <= -2.4e+149) {
tmp = x * (((y * t_6) + (y2 * t_2)) + (j * t_5));
} else if (j <= -2.1e+67) {
tmp = a * t_8;
} else if (j <= -3.6e-263) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4));
} else if (j <= 8.5e-130) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3));
} else if (j <= 1.55e-51) {
tmp = ((x * y2) * t_2) + ((t_9 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3));
} else if (j <= 6.9e+40) {
tmp = y4 * (((y1 * t_9) - (t_7 * b)) + (c * t_4));
} else if (j <= 4.3e+142) {
tmp = a * ((b * ((x * y) - (z * t))) + (t_8 + (y1 * ((z * y3) - (x * y2)))));
} else if (j <= 2.1e+212) {
tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_9)));
} else if (j <= 1.45e+306) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5));
} else {
tmp = (t * y5) * ((a * y2) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: 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 = (t * y2) - (y * y3)
t_2 = (c * y0) - (a * y1)
t_3 = (c * y4) - (a * y5)
t_4 = (y * y3) - (t * y2)
t_5 = (i * y1) - (b * y0)
t_6 = (a * b) - (c * i)
t_7 = (y * k) - (t * j)
t_8 = y5 * t_1
t_9 = (k * y2) - (j * y3)
if (j <= (-2.4d+149)) then
tmp = x * (((y * t_6) + (y2 * t_2)) + (j * t_5))
else if (j <= (-2.1d+67)) then
tmp = a * t_8
else if (j <= (-3.6d-263)) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4))
else if (j <= 8.5d-130) then
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3))
else if (j <= 1.55d-51) then
tmp = ((x * y2) * t_2) + ((t_9 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3))
else if (j <= 6.9d+40) then
tmp = y4 * (((y1 * t_9) - (t_7 * b)) + (c * t_4))
else if (j <= 4.3d+142) then
tmp = a * ((b * ((x * y) - (z * t))) + (t_8 + (y1 * ((z * y3) - (x * y2)))))
else if (j <= 2.1d+212) then
tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_9)))
else if (j <= 1.45d+306) then
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5))
else
tmp = (t * y5) * ((a * y2) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * y2) - (y * y3);
double t_2 = (c * y0) - (a * y1);
double t_3 = (c * y4) - (a * y5);
double t_4 = (y * y3) - (t * y2);
double t_5 = (i * y1) - (b * y0);
double t_6 = (a * b) - (c * i);
double t_7 = (y * k) - (t * j);
double t_8 = y5 * t_1;
double t_9 = (k * y2) - (j * y3);
double tmp;
if (j <= -2.4e+149) {
tmp = x * (((y * t_6) + (y2 * t_2)) + (j * t_5));
} else if (j <= -2.1e+67) {
tmp = a * t_8;
} else if (j <= -3.6e-263) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4));
} else if (j <= 8.5e-130) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3));
} else if (j <= 1.55e-51) {
tmp = ((x * y2) * t_2) + ((t_9 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3));
} else if (j <= 6.9e+40) {
tmp = y4 * (((y1 * t_9) - (t_7 * b)) + (c * t_4));
} else if (j <= 4.3e+142) {
tmp = a * ((b * ((x * y) - (z * t))) + (t_8 + (y1 * ((z * y3) - (x * y2)))));
} else if (j <= 2.1e+212) {
tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_9)));
} else if (j <= 1.45e+306) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5));
} else {
tmp = (t * y5) * ((a * y2) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * y2) - (y * y3) t_2 = (c * y0) - (a * y1) t_3 = (c * y4) - (a * y5) t_4 = (y * y3) - (t * y2) t_5 = (i * y1) - (b * y0) t_6 = (a * b) - (c * i) t_7 = (y * k) - (t * j) t_8 = y5 * t_1 t_9 = (k * y2) - (j * y3) tmp = 0 if j <= -2.4e+149: tmp = x * (((y * t_6) + (y2 * t_2)) + (j * t_5)) elif j <= -2.1e+67: tmp = a * t_8 elif j <= -3.6e-263: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4)) elif j <= 8.5e-130: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3)) elif j <= 1.55e-51: tmp = ((x * y2) * t_2) + ((t_9 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3)) elif j <= 6.9e+40: tmp = y4 * (((y1 * t_9) - (t_7 * b)) + (c * t_4)) elif j <= 4.3e+142: tmp = a * ((b * ((x * y) - (z * t))) + (t_8 + (y1 * ((z * y3) - (x * y2))))) elif j <= 2.1e+212: tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_9))) elif j <= 1.45e+306: tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5)) else: tmp = (t * y5) * ((a * y2) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(Float64(y * y3) - Float64(t * y2)) t_5 = Float64(Float64(i * y1) - Float64(b * y0)) t_6 = Float64(Float64(a * b) - Float64(c * i)) t_7 = Float64(Float64(y * k) - Float64(t * j)) t_8 = Float64(y5 * t_1) t_9 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (j <= -2.4e+149) tmp = Float64(x * Float64(Float64(Float64(y * t_6) + Float64(y2 * t_2)) + Float64(j * t_5))); elseif (j <= -2.1e+67) tmp = Float64(a * t_8); elseif (j <= -3.6e-263) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_4))); elseif (j <= 8.5e-130) tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_6)) + Float64(y3 * t_3))); elseif (j <= 1.55e-51) tmp = Float64(Float64(Float64(x * y2) * t_2) + Float64(Float64(t_9 * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(t_1 * t_3))); elseif (j <= 6.9e+40) tmp = Float64(y4 * Float64(Float64(Float64(y1 * t_9) - Float64(t_7 * b)) + Float64(c * t_4))); elseif (j <= 4.3e+142) tmp = Float64(a * Float64(Float64(b * Float64(Float64(x * y) - Float64(z * t))) + Float64(t_8 + Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))))); elseif (j <= 2.1e+212) tmp = Float64(y5 * Float64(Float64(i * t_7) + Float64(Float64(a * t_1) - Float64(y0 * t_9)))); elseif (j <= 1.45e+306) tmp = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(x * t_5))); else tmp = Float64(Float64(t * y5) * Float64(Float64(a * y2) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * y2) - (y * y3); t_2 = (c * y0) - (a * y1); t_3 = (c * y4) - (a * y5); t_4 = (y * y3) - (t * y2); t_5 = (i * y1) - (b * y0); t_6 = (a * b) - (c * i); t_7 = (y * k) - (t * j); t_8 = y5 * t_1; t_9 = (k * y2) - (j * y3); tmp = 0.0; if (j <= -2.4e+149) tmp = x * (((y * t_6) + (y2 * t_2)) + (j * t_5)); elseif (j <= -2.1e+67) tmp = a * t_8; elseif (j <= -3.6e-263) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4)); elseif (j <= 8.5e-130) tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3)); elseif (j <= 1.55e-51) tmp = ((x * y2) * t_2) + ((t_9 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3)); elseif (j <= 6.9e+40) tmp = y4 * (((y1 * t_9) - (t_7 * b)) + (c * t_4)); elseif (j <= 4.3e+142) tmp = a * ((b * ((x * y) - (z * t))) + (t_8 + (y1 * ((z * y3) - (x * y2))))); elseif (j <= 2.1e+212) tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_9))); elseif (j <= 1.45e+306) tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5)); else tmp = (t * y5) * ((a * y2) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(y5 * t$95$1), $MachinePrecision]}, Block[{t$95$9 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e+149], N[(x * N[(N[(N[(y * t$95$6), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.1e+67], N[(a * t$95$8), $MachinePrecision], If[LessEqual[j, -3.6e-263], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e-130], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.55e-51], N[(N[(N[(x * y2), $MachinePrecision] * t$95$2), $MachinePrecision] + N[(N[(t$95$9 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.9e+40], N[(y4 * N[(N[(N[(y1 * t$95$9), $MachinePrecision] - N[(t$95$7 * b), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.3e+142], N[(a * N[(N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 + N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.1e+212], N[(y5 * N[(N[(i * t$95$7), $MachinePrecision] + N[(N[(a * t$95$1), $MachinePrecision] - N[(y0 * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+306], N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * y5), $MachinePrecision] * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := y \cdot y3 - t \cdot y2\\
t_5 := i \cdot y1 - b \cdot y0\\
t_6 := a \cdot b - c \cdot i\\
t_7 := y \cdot k - t \cdot j\\
t_8 := y5 \cdot t_1\\
t_9 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_6 + y2 \cdot t_2\right) + j \cdot t_5\right)\\
\mathbf{elif}\;j \leq -2.1 \cdot 10^{+67}:\\
\;\;\;\;a \cdot t_8\\
\mathbf{elif}\;j \leq -3.6 \cdot 10^{-263}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_4\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{-130}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t_6\right) + y3 \cdot t_3\right)\\
\mathbf{elif}\;j \leq 1.55 \cdot 10^{-51}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot t_2 + \left(t_9 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - t_1 \cdot t_3\right)\\
\mathbf{elif}\;j \leq 6.9 \cdot 10^{+40}:\\
\;\;\;\;y4 \cdot \left(\left(y1 \cdot t_9 - t_7 \cdot b\right) + c \cdot t_4\right)\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{+142}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right) + \left(t_8 + y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{elif}\;j \leq 2.1 \cdot 10^{+212}:\\
\;\;\;\;y5 \cdot \left(i \cdot t_7 + \left(a \cdot t_1 - y0 \cdot t_9\right)\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{+306}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot t_5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot y5\right) \cdot \left(a \cdot y2 - i \cdot j\right)\\
\end{array}
\end{array}
if j < -2.40000000000000012e149Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in x around inf 50.4%
if -2.40000000000000012e149 < j < -2.1000000000000001e67Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in a around inf 50.2%
associate--l+50.2%
mul-1-neg50.2%
mul-1-neg50.2%
Simplified50.2%
Taylor expanded in y5 around inf 67.6%
if -2.1000000000000001e67 < j < -3.6e-263Initial program 21.9%
associate-+l-21.9%
Simplified21.9%
Taylor expanded in c around inf 60.0%
mul-1-neg60.0%
Simplified60.0%
if -3.6e-263 < j < 8.50000000000000033e-130Initial program 26.5%
associate-+l-26.5%
Simplified26.5%
Taylor expanded in y around inf 59.7%
mul-1-neg59.7%
mul-1-neg59.7%
Simplified59.7%
if 8.50000000000000033e-130 < j < 1.5499999999999999e-51Initial program 57.5%
associate-+l-57.5%
Simplified57.5%
Taylor expanded in y2 around inf 79.0%
if 1.5499999999999999e-51 < j < 6.9000000000000003e40Initial program 6.3%
associate-+l-6.3%
Simplified6.3%
Taylor expanded in y4 around inf 62.6%
if 6.9000000000000003e40 < j < 4.30000000000000012e142Initial program 13.6%
associate-+l-13.6%
Simplified13.6%
Taylor expanded in a around inf 54.7%
associate--l+54.7%
mul-1-neg54.7%
mul-1-neg54.7%
Simplified54.7%
if 4.30000000000000012e142 < j < 2.1e212Initial program 36.8%
associate-+l-36.8%
Simplified36.8%
Taylor expanded in y5 around -inf 68.7%
mul-1-neg68.7%
associate--l+68.7%
Simplified68.7%
if 2.1e212 < j < 1.45000000000000005e306Initial program 18.2%
+-commutative18.2%
fma-def22.7%
*-commutative22.7%
*-commutative22.7%
Simplified27.3%
Taylor expanded in j around inf 63.7%
if 1.45000000000000005e306 < j Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y5 around -inf 100.0%
mul-1-neg100.0%
associate--l+100.0%
Simplified100.0%
Taylor expanded in t around inf 100.0%
*-commutative100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Final simplification61.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t y2) (* y y3)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* c y4) (* a y5)))
(t_4 (- (* y y3) (* t y2)))
(t_5 (- (* i y1) (* b y0)))
(t_6 (- (* a b) (* c i)))
(t_7 (- (* y k) (* t j))))
(if (<= j -4.8e+149)
(* x (+ (+ (* y t_6) (* y2 (- (* c y0) (* a y1)))) (* j t_5)))
(if (<= j -1.15e+67)
(* a (* y5 t_1))
(if (<= j -3.6e-263)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 t_4)))
(if (<= j 2e-267)
(* y (+ (+ (* k (- (* i y5) (* b y4))) (* x t_6)) (* y3 t_3)))
(if (<= j 2.05e-52)
(+
(* (* i y5) t_7)
(- (* t_2 (- (* y1 y4) (* y0 y5))) (* t_1 t_3)))
(if (<= j 7.1e+19)
(* y4 (+ (- (* y1 t_2) (* t_7 b)) (* c t_4)))
(if (<= j 1.65e+152)
(* a (* y2 (- (* t y5) (* x y1))))
(if (<= j 1.35e+219)
(* y5 (+ (* i t_7) (- (* a t_1) (* y0 t_2))))
(*
j
(+
(+
(* y3 (- (* y0 y5) (* y1 y4)))
(* t (- (* b y4) (* i y5))))
(* x 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 = (t * y2) - (y * y3);
double t_2 = (k * y2) - (j * y3);
double t_3 = (c * y4) - (a * y5);
double t_4 = (y * y3) - (t * y2);
double t_5 = (i * y1) - (b * y0);
double t_6 = (a * b) - (c * i);
double t_7 = (y * k) - (t * j);
double tmp;
if (j <= -4.8e+149) {
tmp = x * (((y * t_6) + (y2 * ((c * y0) - (a * y1)))) + (j * t_5));
} else if (j <= -1.15e+67) {
tmp = a * (y5 * t_1);
} else if (j <= -3.6e-263) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4));
} else if (j <= 2e-267) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3));
} else if (j <= 2.05e-52) {
tmp = ((i * y5) * t_7) + ((t_2 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3));
} else if (j <= 7.1e+19) {
tmp = y4 * (((y1 * t_2) - (t_7 * b)) + (c * t_4));
} else if (j <= 1.65e+152) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (j <= 1.35e+219) {
tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_2)));
} else {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (t * y2) - (y * y3)
t_2 = (k * y2) - (j * y3)
t_3 = (c * y4) - (a * y5)
t_4 = (y * y3) - (t * y2)
t_5 = (i * y1) - (b * y0)
t_6 = (a * b) - (c * i)
t_7 = (y * k) - (t * j)
if (j <= (-4.8d+149)) then
tmp = x * (((y * t_6) + (y2 * ((c * y0) - (a * y1)))) + (j * t_5))
else if (j <= (-1.15d+67)) then
tmp = a * (y5 * t_1)
else if (j <= (-3.6d-263)) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4))
else if (j <= 2d-267) then
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3))
else if (j <= 2.05d-52) then
tmp = ((i * y5) * t_7) + ((t_2 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3))
else if (j <= 7.1d+19) then
tmp = y4 * (((y1 * t_2) - (t_7 * b)) + (c * t_4))
else if (j <= 1.65d+152) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else if (j <= 1.35d+219) then
tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_2)))
else
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * 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 = (t * y2) - (y * y3);
double t_2 = (k * y2) - (j * y3);
double t_3 = (c * y4) - (a * y5);
double t_4 = (y * y3) - (t * y2);
double t_5 = (i * y1) - (b * y0);
double t_6 = (a * b) - (c * i);
double t_7 = (y * k) - (t * j);
double tmp;
if (j <= -4.8e+149) {
tmp = x * (((y * t_6) + (y2 * ((c * y0) - (a * y1)))) + (j * t_5));
} else if (j <= -1.15e+67) {
tmp = a * (y5 * t_1);
} else if (j <= -3.6e-263) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4));
} else if (j <= 2e-267) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3));
} else if (j <= 2.05e-52) {
tmp = ((i * y5) * t_7) + ((t_2 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3));
} else if (j <= 7.1e+19) {
tmp = y4 * (((y1 * t_2) - (t_7 * b)) + (c * t_4));
} else if (j <= 1.65e+152) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (j <= 1.35e+219) {
tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_2)));
} else {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * t_5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * y2) - (y * y3) t_2 = (k * y2) - (j * y3) t_3 = (c * y4) - (a * y5) t_4 = (y * y3) - (t * y2) t_5 = (i * y1) - (b * y0) t_6 = (a * b) - (c * i) t_7 = (y * k) - (t * j) tmp = 0 if j <= -4.8e+149: tmp = x * (((y * t_6) + (y2 * ((c * y0) - (a * y1)))) + (j * t_5)) elif j <= -1.15e+67: tmp = a * (y5 * t_1) elif j <= -3.6e-263: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4)) elif j <= 2e-267: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3)) elif j <= 2.05e-52: tmp = ((i * y5) * t_7) + ((t_2 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3)) elif j <= 7.1e+19: tmp = y4 * (((y1 * t_2) - (t_7 * b)) + (c * t_4)) elif j <= 1.65e+152: tmp = a * (y2 * ((t * y5) - (x * y1))) elif j <= 1.35e+219: tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_2))) else: tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * 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(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(Float64(y * y3) - Float64(t * y2)) t_5 = Float64(Float64(i * y1) - Float64(b * y0)) t_6 = Float64(Float64(a * b) - Float64(c * i)) t_7 = Float64(Float64(y * k) - Float64(t * j)) tmp = 0.0 if (j <= -4.8e+149) tmp = Float64(x * Float64(Float64(Float64(y * t_6) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_5))); elseif (j <= -1.15e+67) tmp = Float64(a * Float64(y5 * t_1)); elseif (j <= -3.6e-263) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_4))); elseif (j <= 2e-267) tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_6)) + Float64(y3 * t_3))); elseif (j <= 2.05e-52) tmp = Float64(Float64(Float64(i * y5) * t_7) + Float64(Float64(t_2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(t_1 * t_3))); elseif (j <= 7.1e+19) tmp = Float64(y4 * Float64(Float64(Float64(y1 * t_2) - Float64(t_7 * b)) + Float64(c * t_4))); elseif (j <= 1.65e+152) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); elseif (j <= 1.35e+219) tmp = Float64(y5 * Float64(Float64(i * t_7) + Float64(Float64(a * t_1) - Float64(y0 * t_2)))); else tmp = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(x * 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 = (t * y2) - (y * y3); t_2 = (k * y2) - (j * y3); t_3 = (c * y4) - (a * y5); t_4 = (y * y3) - (t * y2); t_5 = (i * y1) - (b * y0); t_6 = (a * b) - (c * i); t_7 = (y * k) - (t * j); tmp = 0.0; if (j <= -4.8e+149) tmp = x * (((y * t_6) + (y2 * ((c * y0) - (a * y1)))) + (j * t_5)); elseif (j <= -1.15e+67) tmp = a * (y5 * t_1); elseif (j <= -3.6e-263) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_4)); elseif (j <= 2e-267) tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_6)) + (y3 * t_3)); elseif (j <= 2.05e-52) tmp = ((i * y5) * t_7) + ((t_2 * ((y1 * y4) - (y0 * y5))) - (t_1 * t_3)); elseif (j <= 7.1e+19) tmp = y4 * (((y1 * t_2) - (t_7 * b)) + (c * t_4)); elseif (j <= 1.65e+152) tmp = a * (y2 * ((t * y5) - (x * y1))); elseif (j <= 1.35e+219) tmp = y5 * ((i * t_7) + ((a * t_1) - (y0 * t_2))); else tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) + (x * 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[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.8e+149], N[(x * N[(N[(N[(y * t$95$6), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.15e+67], N[(a * N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.6e-263], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e-267], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.05e-52], N[(N[(N[(i * y5), $MachinePrecision] * t$95$7), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.1e+19], N[(y4 * N[(N[(N[(y1 * t$95$2), $MachinePrecision] - N[(t$95$7 * b), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.65e+152], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.35e+219], N[(y5 * N[(N[(i * t$95$7), $MachinePrecision] + N[(N[(a * t$95$1), $MachinePrecision] - N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := y \cdot y3 - t \cdot y2\\
t_5 := i \cdot y1 - b \cdot y0\\
t_6 := a \cdot b - c \cdot i\\
t_7 := y \cdot k - t \cdot j\\
\mathbf{if}\;j \leq -4.8 \cdot 10^{+149}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_6 + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t_5\right)\\
\mathbf{elif}\;j \leq -1.15 \cdot 10^{+67}:\\
\;\;\;\;a \cdot \left(y5 \cdot t_1\right)\\
\mathbf{elif}\;j \leq -3.6 \cdot 10^{-263}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_4\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{-267}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t_6\right) + y3 \cdot t_3\right)\\
\mathbf{elif}\;j \leq 2.05 \cdot 10^{-52}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot t_7 + \left(t_2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - t_1 \cdot t_3\right)\\
\mathbf{elif}\;j \leq 7.1 \cdot 10^{+19}:\\
\;\;\;\;y4 \cdot \left(\left(y1 \cdot t_2 - t_7 \cdot b\right) + c \cdot t_4\right)\\
\mathbf{elif}\;j \leq 1.65 \cdot 10^{+152}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 1.35 \cdot 10^{+219}:\\
\;\;\;\;y5 \cdot \left(i \cdot t_7 + \left(a \cdot t_1 - y0 \cdot t_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot t_5\right)\\
\end{array}
\end{array}
if j < -4.80000000000000024e149Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in x around inf 50.4%
if -4.80000000000000024e149 < j < -1.1499999999999999e67Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in a around inf 50.2%
associate--l+50.2%
mul-1-neg50.2%
mul-1-neg50.2%
Simplified50.2%
Taylor expanded in y5 around inf 67.6%
if -1.1499999999999999e67 < j < -3.6e-263Initial program 21.9%
associate-+l-21.9%
Simplified21.9%
Taylor expanded in c around inf 60.0%
mul-1-neg60.0%
Simplified60.0%
if -3.6e-263 < j < 2e-267Initial program 40.0%
associate-+l-40.0%
Simplified40.0%
Taylor expanded in y around inf 80.4%
mul-1-neg80.4%
mul-1-neg80.4%
Simplified80.4%
if 2e-267 < j < 2.04999999999999994e-52Initial program 30.4%
associate-+l-30.4%
Simplified30.4%
Taylor expanded in y5 around inf 56.6%
mul-1-neg56.6%
Simplified56.6%
if 2.04999999999999994e-52 < j < 7.1e19Initial program 9.1%
associate-+l-9.1%
Simplified9.1%
Taylor expanded in y4 around inf 72.8%
if 7.1e19 < j < 1.6500000000000001e152Initial program 10.3%
associate-+l-10.3%
Simplified10.3%
Taylor expanded in a around inf 41.5%
associate--l+41.5%
mul-1-neg41.5%
mul-1-neg41.5%
Simplified41.5%
Taylor expanded in y2 around inf 51.3%
if 1.6500000000000001e152 < j < 1.3499999999999999e219Initial program 35.0%
associate-+l-35.0%
Simplified35.0%
Taylor expanded in y5 around -inf 65.2%
mul-1-neg65.2%
associate--l+65.2%
Simplified65.2%
if 1.3499999999999999e219 < j Initial program 18.2%
+-commutative18.2%
fma-def22.7%
*-commutative22.7%
*-commutative22.7%
Simplified22.7%
Taylor expanded in j around inf 59.1%
Final simplification60.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y y3) (* t y2)))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
y2
(+
(+ (* x t_2) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4))))))
(t_4
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0)))))))
(if (<= y4 -1.45e+110)
(*
y4
(+ (- (* y1 (- (* k y2) (* j y3))) (* (- (* y k) (* t j)) b)) (* c t_1)))
(if (<= y4 -8e-10)
t_4
(if (<= y4 -1.25e-111)
t_3
(if (<= y4 -1e-165)
(* a (* y2 (- (* t y5) (* x y1))))
(if (<= y4 -6e-192)
(* k (- (* i (* z y1))))
(if (<= y4 -5.6e-223)
t_4
(if (<= y4 2.25e-262)
t_3
(if (<= y4 4.4e-132)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y4 2e-85)
(* (* t y5) (- (* a y2) (* i j)))
(if (<= y4 1.4e-38) t_4 (* (* c y4) t_1)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double tmp;
if (y4 <= -1.45e+110) {
tmp = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * t_1));
} else if (y4 <= -8e-10) {
tmp = t_4;
} else if (y4 <= -1.25e-111) {
tmp = t_3;
} else if (y4 <= -1e-165) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (y4 <= -6e-192) {
tmp = k * -(i * (z * y1));
} else if (y4 <= -5.6e-223) {
tmp = t_4;
} else if (y4 <= 2.25e-262) {
tmp = t_3;
} else if (y4 <= 4.4e-132) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y4 <= 2e-85) {
tmp = (t * y5) * ((a * y2) - (i * j));
} else if (y4 <= 1.4e-38) {
tmp = t_4;
} else {
tmp = (c * y4) * 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 = (y * y3) - (t * y2)
t_2 = (c * y0) - (a * y1)
t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
if (y4 <= (-1.45d+110)) then
tmp = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * t_1))
else if (y4 <= (-8d-10)) then
tmp = t_4
else if (y4 <= (-1.25d-111)) then
tmp = t_3
else if (y4 <= (-1d-165)) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else if (y4 <= (-6d-192)) then
tmp = k * -(i * (z * y1))
else if (y4 <= (-5.6d-223)) then
tmp = t_4
else if (y4 <= 2.25d-262) then
tmp = t_3
else if (y4 <= 4.4d-132) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y4 <= 2d-85) then
tmp = (t * y5) * ((a * y2) - (i * j))
else if (y4 <= 1.4d-38) then
tmp = t_4
else
tmp = (c * y4) * t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double tmp;
if (y4 <= -1.45e+110) {
tmp = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * t_1));
} else if (y4 <= -8e-10) {
tmp = t_4;
} else if (y4 <= -1.25e-111) {
tmp = t_3;
} else if (y4 <= -1e-165) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (y4 <= -6e-192) {
tmp = k * -(i * (z * y1));
} else if (y4 <= -5.6e-223) {
tmp = t_4;
} else if (y4 <= 2.25e-262) {
tmp = t_3;
} else if (y4 <= 4.4e-132) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y4 <= 2e-85) {
tmp = (t * y5) * ((a * y2) - (i * j));
} else if (y4 <= 1.4e-38) {
tmp = t_4;
} else {
tmp = (c * y4) * t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * y3) - (t * y2) t_2 = (c * y0) - (a * y1) t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) tmp = 0 if y4 <= -1.45e+110: tmp = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * t_1)) elif y4 <= -8e-10: tmp = t_4 elif y4 <= -1.25e-111: tmp = t_3 elif y4 <= -1e-165: tmp = a * (y2 * ((t * y5) - (x * y1))) elif y4 <= -6e-192: tmp = k * -(i * (z * y1)) elif y4 <= -5.6e-223: tmp = t_4 elif y4 <= 2.25e-262: tmp = t_3 elif y4 <= 4.4e-132: tmp = c * (x * ((y0 * y2) - (y * i))) elif y4 <= 2e-85: tmp = (t * y5) * ((a * y2) - (i * j)) elif y4 <= 1.4e-38: tmp = t_4 else: tmp = (c * y4) * t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * y3) - Float64(t * y2)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(y2 * Float64(Float64(Float64(x * t_2) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) t_4 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))) tmp = 0.0 if (y4 <= -1.45e+110) tmp = Float64(y4 * Float64(Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) - Float64(Float64(Float64(y * k) - Float64(t * j)) * b)) + Float64(c * t_1))); elseif (y4 <= -8e-10) tmp = t_4; elseif (y4 <= -1.25e-111) tmp = t_3; elseif (y4 <= -1e-165) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); elseif (y4 <= -6e-192) tmp = Float64(k * Float64(-Float64(i * Float64(z * y1)))); elseif (y4 <= -5.6e-223) tmp = t_4; elseif (y4 <= 2.25e-262) tmp = t_3; elseif (y4 <= 4.4e-132) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y4 <= 2e-85) tmp = Float64(Float64(t * y5) * Float64(Float64(a * y2) - Float64(i * j))); elseif (y4 <= 1.4e-38) tmp = t_4; else tmp = Float64(Float64(c * y4) * t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y * y3) - (t * y2); t_2 = (c * y0) - (a * y1); t_3 = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); tmp = 0.0; if (y4 <= -1.45e+110) tmp = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * t_1)); elseif (y4 <= -8e-10) tmp = t_4; elseif (y4 <= -1.25e-111) tmp = t_3; elseif (y4 <= -1e-165) tmp = a * (y2 * ((t * y5) - (x * y1))); elseif (y4 <= -6e-192) tmp = k * -(i * (z * y1)); elseif (y4 <= -5.6e-223) tmp = t_4; elseif (y4 <= 2.25e-262) tmp = t_3; elseif (y4 <= 4.4e-132) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y4 <= 2e-85) tmp = (t * y5) * ((a * y2) - (i * j)); elseif (y4 <= 1.4e-38) tmp = t_4; else tmp = (c * y4) * t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.45e+110], N[(y4 * N[(N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8e-10], t$95$4, If[LessEqual[y4, -1.25e-111], t$95$3, If[LessEqual[y4, -1e-165], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6e-192], N[(k * (-N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[y4, -5.6e-223], t$95$4, If[LessEqual[y4, 2.25e-262], t$95$3, If[LessEqual[y4, 4.4e-132], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2e-85], N[(N[(t * y5), $MachinePrecision] * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.4e-38], t$95$4, N[(N[(c * y4), $MachinePrecision] * t$95$1), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot y3 - t \cdot y2\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := y2 \cdot \left(\left(x \cdot t_2 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_4 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_2\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;y4 \leq -1.45 \cdot 10^{+110}:\\
\;\;\;\;y4 \cdot \left(\left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) - \left(y \cdot k - t \cdot j\right) \cdot b\right) + c \cdot t_1\right)\\
\mathbf{elif}\;y4 \leq -8 \cdot 10^{-10}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y4 \leq -1.25 \cdot 10^{-111}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y4 \leq -1 \cdot 10^{-165}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq -6 \cdot 10^{-192}:\\
\;\;\;\;k \cdot \left(-i \cdot \left(z \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq -5.6 \cdot 10^{-223}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y4 \leq 2.25 \cdot 10^{-262}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y4 \leq 4.4 \cdot 10^{-132}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y4 \leq 2 \cdot 10^{-85}:\\
\;\;\;\;\left(t \cdot y5\right) \cdot \left(a \cdot y2 - i \cdot j\right)\\
\mathbf{elif}\;y4 \leq 1.4 \cdot 10^{-38}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot y4\right) \cdot t_1\\
\end{array}
\end{array}
if y4 < -1.45e110Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in y4 around inf 67.1%
if -1.45e110 < y4 < -8.00000000000000029e-10 or -5.9999999999999998e-192 < y4 < -5.6000000000000003e-223 or 2e-85 < y4 < 1.4e-38Initial program 37.8%
associate-+l-37.8%
Simplified37.8%
Taylor expanded in x around inf 60.1%
if -8.00000000000000029e-10 < y4 < -1.2500000000000001e-111 or -5.6000000000000003e-223 < y4 < 2.24999999999999999e-262Initial program 15.1%
associate-+l-15.1%
Simplified15.1%
Taylor expanded in y2 around inf 56.4%
if -1.2500000000000001e-111 < y4 < -1e-165Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in a around inf 53.4%
associate--l+53.4%
mul-1-neg53.4%
mul-1-neg53.4%
Simplified53.4%
Taylor expanded in y2 around inf 48.2%
if -1e-165 < y4 < -5.9999999999999998e-192Initial program 37.5%
associate-+l-37.5%
Simplified37.5%
Taylor expanded in z around -inf 50.2%
Taylor expanded in k around inf 39.3%
Taylor expanded in y1 around inf 27.4%
*-commutative27.4%
associate-*r*63.2%
Simplified63.2%
if 2.24999999999999999e-262 < y4 < 4.39999999999999981e-132Initial program 47.8%
associate-+l-47.8%
Simplified47.8%
Taylor expanded in c around inf 65.9%
mul-1-neg65.9%
Simplified65.9%
Taylor expanded in x around inf 57.2%
if 4.39999999999999981e-132 < y4 < 2e-85Initial program 33.8%
associate-+l-33.8%
Simplified33.8%
Taylor expanded in y5 around -inf 78.1%
mul-1-neg78.1%
associate--l+78.1%
Simplified78.1%
Taylor expanded in t around inf 68.3%
*-commutative68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
if 1.4e-38 < y4 Initial program 13.9%
associate-+l-13.9%
Simplified13.9%
Taylor expanded in y4 around inf 43.3%
Taylor expanded in c around inf 54.6%
associate-*r*50.7%
Simplified50.7%
Final simplification57.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y4
(+
(- (* y1 (- (* k y2) (* j y3))) (* (- (* y k) (* t j)) b))
(* c (- (* y y3) (* t y2))))))
(t_2
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))))
(if (<= a -3.6e+157)
(* y5 (* y2 (- (* t a) (* k y0))))
(if (<= a -1.5e+63)
t_1
(if (<= a -6e+33)
(* (* y2 y4) (- (* k y1) (* t c)))
(if (<= a -7.5e+19)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= a -7e-227)
t_2
(if (<= a -5e-303)
t_1
(if (<= a 9.5e-172)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= a 0.0064)
(* z (* i (- (* t c) (* k y1))))
(if (<= a 8.8e+55)
t_2
(if (<= a 2.7e+86)
(* z (* k (- (* b y0) (* i y1))))
(if (<= a 1e+113)
(* (* t a) (- (* y2 y5) (* z b)))
(* (* y a) (- (* x b) (* y3 y5))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2))));
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double tmp;
if (a <= -3.6e+157) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (a <= -1.5e+63) {
tmp = t_1;
} else if (a <= -6e+33) {
tmp = (y2 * y4) * ((k * y1) - (t * c));
} else if (a <= -7.5e+19) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (a <= -7e-227) {
tmp = t_2;
} else if (a <= -5e-303) {
tmp = t_1;
} else if (a <= 9.5e-172) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 0.0064) {
tmp = z * (i * ((t * c) - (k * y1)));
} else if (a <= 8.8e+55) {
tmp = t_2;
} else if (a <= 2.7e+86) {
tmp = z * (k * ((b * y0) - (i * y1)));
} else if (a <= 1e+113) {
tmp = (t * a) * ((y2 * y5) - (z * b));
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2))))
t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
if (a <= (-3.6d+157)) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
else if (a <= (-1.5d+63)) then
tmp = t_1
else if (a <= (-6d+33)) then
tmp = (y2 * y4) * ((k * y1) - (t * c))
else if (a <= (-7.5d+19)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (a <= (-7d-227)) then
tmp = t_2
else if (a <= (-5d-303)) then
tmp = t_1
else if (a <= 9.5d-172) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (a <= 0.0064d0) then
tmp = z * (i * ((t * c) - (k * y1)))
else if (a <= 8.8d+55) then
tmp = t_2
else if (a <= 2.7d+86) then
tmp = z * (k * ((b * y0) - (i * y1)))
else if (a <= 1d+113) then
tmp = (t * a) * ((y2 * y5) - (z * b))
else
tmp = (y * a) * ((x * b) - (y3 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2))));
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double tmp;
if (a <= -3.6e+157) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (a <= -1.5e+63) {
tmp = t_1;
} else if (a <= -6e+33) {
tmp = (y2 * y4) * ((k * y1) - (t * c));
} else if (a <= -7.5e+19) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (a <= -7e-227) {
tmp = t_2;
} else if (a <= -5e-303) {
tmp = t_1;
} else if (a <= 9.5e-172) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 0.0064) {
tmp = z * (i * ((t * c) - (k * y1)));
} else if (a <= 8.8e+55) {
tmp = t_2;
} else if (a <= 2.7e+86) {
tmp = z * (k * ((b * y0) - (i * y1)));
} else if (a <= 1e+113) {
tmp = (t * a) * ((y2 * y5) - (z * b));
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2)))) t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) tmp = 0 if a <= -3.6e+157: tmp = y5 * (y2 * ((t * a) - (k * y0))) elif a <= -1.5e+63: tmp = t_1 elif a <= -6e+33: tmp = (y2 * y4) * ((k * y1) - (t * c)) elif a <= -7.5e+19: tmp = c * (y * ((y3 * y4) - (x * i))) elif a <= -7e-227: tmp = t_2 elif a <= -5e-303: tmp = t_1 elif a <= 9.5e-172: tmp = c * (x * ((y0 * y2) - (y * i))) elif a <= 0.0064: tmp = z * (i * ((t * c) - (k * y1))) elif a <= 8.8e+55: tmp = t_2 elif a <= 2.7e+86: tmp = z * (k * ((b * y0) - (i * y1))) elif a <= 1e+113: tmp = (t * a) * ((y2 * y5) - (z * b)) else: tmp = (y * a) * ((x * b) - (y3 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) - Float64(Float64(Float64(y * k) - Float64(t * j)) * b)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_2 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))) tmp = 0.0 if (a <= -3.6e+157) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (a <= -1.5e+63) tmp = t_1; elseif (a <= -6e+33) tmp = Float64(Float64(y2 * y4) * Float64(Float64(k * y1) - Float64(t * c))); elseif (a <= -7.5e+19) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (a <= -7e-227) tmp = t_2; elseif (a <= -5e-303) tmp = t_1; elseif (a <= 9.5e-172) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (a <= 0.0064) tmp = Float64(z * Float64(i * Float64(Float64(t * c) - Float64(k * y1)))); elseif (a <= 8.8e+55) tmp = t_2; elseif (a <= 2.7e+86) tmp = Float64(z * Float64(k * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= 1e+113) tmp = Float64(Float64(t * a) * Float64(Float64(y2 * y5) - Float64(z * b))); else tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2)))); t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); tmp = 0.0; if (a <= -3.6e+157) tmp = y5 * (y2 * ((t * a) - (k * y0))); elseif (a <= -1.5e+63) tmp = t_1; elseif (a <= -6e+33) tmp = (y2 * y4) * ((k * y1) - (t * c)); elseif (a <= -7.5e+19) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (a <= -7e-227) tmp = t_2; elseif (a <= -5e-303) tmp = t_1; elseif (a <= 9.5e-172) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (a <= 0.0064) tmp = z * (i * ((t * c) - (k * y1))); elseif (a <= 8.8e+55) tmp = t_2; elseif (a <= 2.7e+86) tmp = z * (k * ((b * y0) - (i * y1))); elseif (a <= 1e+113) tmp = (t * a) * ((y2 * y5) - (z * b)); else tmp = (y * a) * ((x * b) - (y3 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.6e+157], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.5e+63], t$95$1, If[LessEqual[a, -6e+33], N[(N[(y2 * y4), $MachinePrecision] * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.5e+19], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7e-227], t$95$2, If[LessEqual[a, -5e-303], t$95$1, If[LessEqual[a, 9.5e-172], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.0064], N[(z * N[(i * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e+55], t$95$2, If[LessEqual[a, 2.7e+86], N[(z * N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+113], N[(N[(t * a), $MachinePrecision] * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(\left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) - \left(y \cdot k - t \cdot j\right) \cdot b\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_2 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;a \leq -3.6 \cdot 10^{+157}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6 \cdot 10^{+33}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(k \cdot y1 - t \cdot c\right)\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{+19}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-227}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-303}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-172}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 0.0064:\\
\;\;\;\;z \cdot \left(i \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+86}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 10^{+113}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(y2 \cdot y5 - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\end{array}
\end{array}
if a < -3.60000000000000024e157Initial program 30.8%
associate-+l-30.8%
Simplified30.8%
Taylor expanded in y2 around inf 61.9%
Taylor expanded in y5 around inf 66.0%
associate-*r*69.7%
*-commutative69.7%
associate-*l*66.0%
cancel-sign-sub-inv66.0%
metadata-eval66.0%
*-lft-identity66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
if -3.60000000000000024e157 < a < -1.5e63 or -7.0000000000000002e-227 < a < -4.9999999999999998e-303Initial program 17.9%
associate-+l-17.9%
Simplified17.9%
Taylor expanded in y4 around inf 56.9%
if -1.5e63 < a < -5.99999999999999967e33Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y4 around inf 33.7%
Taylor expanded in y2 around inf 68.0%
associate-*r*68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
if -5.99999999999999967e33 < a < -7.5e19Initial program 20.0%
associate-+l-20.0%
Simplified20.0%
Taylor expanded in c around inf 80.0%
mul-1-neg80.0%
Simplified80.0%
Taylor expanded in y around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if -7.5e19 < a < -7.0000000000000002e-227 or 0.00640000000000000031 < a < 8.80000000000000042e55Initial program 27.9%
associate-+l-27.9%
Simplified27.9%
Taylor expanded in x around inf 49.5%
if -4.9999999999999998e-303 < a < 9.50000000000000053e-172Initial program 29.7%
associate-+l-29.7%
Simplified29.7%
Taylor expanded in c around inf 44.6%
mul-1-neg44.6%
Simplified44.6%
Taylor expanded in x around inf 53.8%
if 9.50000000000000053e-172 < a < 0.00640000000000000031Initial program 26.7%
associate-+l-26.7%
Simplified26.7%
Taylor expanded in z around -inf 39.0%
Taylor expanded in i around inf 45.5%
associate-*r*51.0%
distribute-lft-out--51.0%
associate-*r*51.0%
mul-1-neg51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
if 8.80000000000000042e55 < a < 2.70000000000000018e86Initial program 9.6%
associate-+l-9.6%
Simplified9.6%
Taylor expanded in z around -inf 73.3%
Taylor expanded in k around inf 73.6%
if 2.70000000000000018e86 < a < 1e113Initial program 50.0%
associate-+l-50.0%
Simplified50.0%
Taylor expanded in a around inf 66.7%
associate--l+66.7%
mul-1-neg66.7%
mul-1-neg66.7%
Simplified66.7%
Taylor expanded in t around inf 84.1%
*-commutative84.1%
*-commutative84.1%
mul-1-neg84.1%
unsub-neg84.1%
*-commutative84.1%
Simplified84.1%
if 1e113 < a Initial program 6.5%
associate-+l-6.5%
Simplified6.5%
Taylor expanded in a around inf 51.7%
associate--l+51.7%
mul-1-neg51.7%
mul-1-neg51.7%
Simplified51.7%
Taylor expanded in y around inf 58.9%
associate-*r*58.9%
*-commutative58.9%
+-commutative58.9%
mul-1-neg58.9%
unsub-neg58.9%
*-commutative58.9%
Simplified58.9%
Final simplification57.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y5
(+
(* i (- (* y k) (* t j)))
(- (* a (- (* t y2) (* y y3))) (* y0 (- (* k y2) (* j y3)))))))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))))
(if (<= y5 -1.8e+162)
t_1
(if (<= y5 -2.25e+114)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y5 -1.4e+32)
t_1
(if (<= y5 -3.2e-45)
t_3
(if (<= y5 -1.28e-163)
(*
z
(+
(* k (- (* b y0) (* i y1)))
(+ (* y3 (- (* a y1) (* c y0))) (* t (- (* c i) (* a b))))))
(if (<= y5 3.2e-234)
t_3
(if (<= y5 1.15e-38)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0)))))
(if (<= y5 3.1e-12)
(* a (* b (- (* x y) (* z t))))
(if (<= y5 2.4e+56)
(*
y2
(+
(+ (* x t_2) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3)))));
double t_2 = (c * y0) - (a * y1);
double t_3 = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
double tmp;
if (y5 <= -1.8e+162) {
tmp = t_1;
} else if (y5 <= -2.25e+114) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y5 <= -1.4e+32) {
tmp = t_1;
} else if (y5 <= -3.2e-45) {
tmp = t_3;
} else if (y5 <= -1.28e-163) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))));
} else if (y5 <= 3.2e-234) {
tmp = t_3;
} else if (y5 <= 1.15e-38) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (y5 <= 3.1e-12) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= 2.4e+56) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3)))))
t_2 = (c * y0) - (a * y1)
t_3 = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
if (y5 <= (-1.8d+162)) then
tmp = t_1
else if (y5 <= (-2.25d+114)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y5 <= (-1.4d+32)) then
tmp = t_1
else if (y5 <= (-3.2d-45)) then
tmp = t_3
else if (y5 <= (-1.28d-163)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))))
else if (y5 <= 3.2d-234) then
tmp = t_3
else if (y5 <= 1.15d-38) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
else if (y5 <= 3.1d-12) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y5 <= 2.4d+56) then
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3)))));
double t_2 = (c * y0) - (a * y1);
double t_3 = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
double tmp;
if (y5 <= -1.8e+162) {
tmp = t_1;
} else if (y5 <= -2.25e+114) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y5 <= -1.4e+32) {
tmp = t_1;
} else if (y5 <= -3.2e-45) {
tmp = t_3;
} else if (y5 <= -1.28e-163) {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b)))));
} else if (y5 <= 3.2e-234) {
tmp = t_3;
} else if (y5 <= 1.15e-38) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (y5 <= 3.1e-12) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= 2.4e+56) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3))))) t_2 = (c * y0) - (a * y1) t_3 = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) tmp = 0 if y5 <= -1.8e+162: tmp = t_1 elif y5 <= -2.25e+114: tmp = c * (x * ((y0 * y2) - (y * i))) elif y5 <= -1.4e+32: tmp = t_1 elif y5 <= -3.2e-45: tmp = t_3 elif y5 <= -1.28e-163: tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b))))) elif y5 <= 3.2e-234: tmp = t_3 elif y5 <= 1.15e-38: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) elif y5 <= 3.1e-12: tmp = a * (b * ((x * y) - (z * t))) elif y5 <= 2.4e+56: tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) - Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3)))))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (y5 <= -1.8e+162) tmp = t_1; elseif (y5 <= -2.25e+114) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y5 <= -1.4e+32) tmp = t_1; elseif (y5 <= -3.2e-45) tmp = t_3; elseif (y5 <= -1.28e-163) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))); elseif (y5 <= 3.2e-234) tmp = t_3; elseif (y5 <= 1.15e-38) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y5 <= 3.1e-12) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y5 <= 2.4e+56) tmp = Float64(y2 * Float64(Float64(Float64(x * t_2) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3))))); t_2 = (c * y0) - (a * y1); t_3 = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); tmp = 0.0; if (y5 <= -1.8e+162) tmp = t_1; elseif (y5 <= -2.25e+114) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y5 <= -1.4e+32) tmp = t_1; elseif (y5 <= -3.2e-45) tmp = t_3; elseif (y5 <= -1.28e-163) tmp = z * ((k * ((b * y0) - (i * y1))) + ((y3 * ((a * y1) - (c * y0))) + (t * ((c * i) - (a * b))))); elseif (y5 <= 3.2e-234) tmp = t_3; elseif (y5 <= 1.15e-38) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); elseif (y5 <= 3.1e-12) tmp = a * (b * ((x * y) - (z * t))); elseif (y5 <= 2.4e+56) tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.8e+162], t$95$1, If[LessEqual[y5, -2.25e+114], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.4e+32], t$95$1, If[LessEqual[y5, -3.2e-45], t$95$3, If[LessEqual[y5, -1.28e-163], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.2e-234], t$95$3, If[LessEqual[y5, 1.15e-38], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.1e-12], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.4e+56], N[(y2 * N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) - y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y5 \leq -1.8 \cdot 10^{+162}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -2.25 \cdot 10^{+114}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -1.4 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -3.2 \cdot 10^{-45}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y5 \leq -1.28 \cdot 10^{-163}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 3.2 \cdot 10^{-234}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y5 \leq 1.15 \cdot 10^{-38}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_2\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 3.1 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+56}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_2 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y5 < -1.79999999999999997e162 or -2.25e114 < y5 < -1.4e32 or 2.40000000000000013e56 < y5 Initial program 20.5%
associate-+l-20.5%
Simplified20.5%
Taylor expanded in y5 around -inf 63.2%
mul-1-neg63.2%
associate--l+63.2%
Simplified63.2%
if -1.79999999999999997e162 < y5 < -2.25e114Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in x around inf 66.8%
if -1.4e32 < y5 < -3.20000000000000007e-45 or -1.28e-163 < y5 < 3.1999999999999999e-234Initial program 28.3%
associate-+l-28.3%
Simplified28.3%
Taylor expanded in c around inf 57.0%
mul-1-neg57.0%
Simplified57.0%
if -3.20000000000000007e-45 < y5 < -1.28e-163Initial program 22.6%
associate-+l-22.6%
Simplified22.6%
Taylor expanded in z around -inf 52.0%
if 3.1999999999999999e-234 < y5 < 1.15000000000000001e-38Initial program 36.7%
associate-+l-36.7%
Simplified36.7%
Taylor expanded in x around inf 55.8%
if 1.15000000000000001e-38 < y5 < 3.1000000000000001e-12Initial program 28.6%
associate-+l-28.6%
Simplified28.6%
Taylor expanded in a around inf 71.4%
associate--l+71.4%
mul-1-neg71.4%
mul-1-neg71.4%
Simplified71.4%
Taylor expanded in b around inf 86.2%
if 3.1000000000000001e-12 < y5 < 2.40000000000000013e56Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y2 around inf 77.8%
Final simplification61.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y5
(+
(* i (- (* y k) (* t j)))
(- (* a (- (* t y2) (* y y3))) (* y0 (- (* k y2) (* j y3)))))))
(t_2 (- (* c y0) (* a y1))))
(if (<= y5 -4e+166)
t_1
(if (<= y5 -1.8e+116)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y5 -2e+32)
t_1
(if (<= y5 2.2e-234)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= y5 6.2e-39)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0)))))
(if (<= y5 1.75e-12)
(* a (* b (- (* x y) (* z t))))
(if (<= y5 9.8e+57)
(*
y2
(+
(+ (* x t_2) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3)))));
double t_2 = (c * y0) - (a * y1);
double tmp;
if (y5 <= -4e+166) {
tmp = t_1;
} else if (y5 <= -1.8e+116) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y5 <= -2e+32) {
tmp = t_1;
} else if (y5 <= 2.2e-234) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (y5 <= 6.2e-39) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (y5 <= 1.75e-12) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= 9.8e+57) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3)))))
t_2 = (c * y0) - (a * y1)
if (y5 <= (-4d+166)) then
tmp = t_1
else if (y5 <= (-1.8d+116)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y5 <= (-2d+32)) then
tmp = t_1
else if (y5 <= 2.2d-234) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (y5 <= 6.2d-39) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
else if (y5 <= 1.75d-12) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y5 <= 9.8d+57) then
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3)))));
double t_2 = (c * y0) - (a * y1);
double tmp;
if (y5 <= -4e+166) {
tmp = t_1;
} else if (y5 <= -1.8e+116) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y5 <= -2e+32) {
tmp = t_1;
} else if (y5 <= 2.2e-234) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (y5 <= 6.2e-39) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (y5 <= 1.75e-12) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= 9.8e+57) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3))))) t_2 = (c * y0) - (a * y1) tmp = 0 if y5 <= -4e+166: tmp = t_1 elif y5 <= -1.8e+116: tmp = c * (x * ((y0 * y2) - (y * i))) elif y5 <= -2e+32: tmp = t_1 elif y5 <= 2.2e-234: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif y5 <= 6.2e-39: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) elif y5 <= 1.75e-12: tmp = a * (b * ((x * y) - (z * t))) elif y5 <= 9.8e+57: tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) - Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3)))))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y5 <= -4e+166) tmp = t_1; elseif (y5 <= -1.8e+116) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y5 <= -2e+32) tmp = t_1; elseif (y5 <= 2.2e-234) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y5 <= 6.2e-39) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y5 <= 1.75e-12) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y5 <= 9.8e+57) tmp = Float64(y2 * Float64(Float64(Float64(x * t_2) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * 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 = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) - (y0 * ((k * y2) - (j * y3))))); t_2 = (c * y0) - (a * y1); tmp = 0.0; if (y5 <= -4e+166) tmp = t_1; elseif (y5 <= -1.8e+116) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y5 <= -2e+32) tmp = t_1; elseif (y5 <= 2.2e-234) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (y5 <= 6.2e-39) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); elseif (y5 <= 1.75e-12) tmp = a * (b * ((x * y) - (z * t))); elseif (y5 <= 9.8e+57) tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * 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[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -4e+166], t$95$1, If[LessEqual[y5, -1.8e+116], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2e+32], t$95$1, If[LessEqual[y5, 2.2e-234], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.2e-39], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.75e-12], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.8e+57], N[(y2 * N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) - y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y5 \leq -4 \cdot 10^{+166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -1.8 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -2 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 2.2 \cdot 10^{-234}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-39}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_2\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 1.75 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y5 \leq 9.8 \cdot 10^{+57}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_2 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y5 < -3.99999999999999976e166 or -1.79999999999999985e116 < y5 < -2.00000000000000011e32 or 9.7999999999999998e57 < y5 Initial program 20.5%
associate-+l-20.5%
Simplified20.5%
Taylor expanded in y5 around -inf 63.2%
mul-1-neg63.2%
associate--l+63.2%
Simplified63.2%
if -3.99999999999999976e166 < y5 < -1.79999999999999985e116Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in x around inf 66.8%
if -2.00000000000000011e32 < y5 < 2.1999999999999999e-234Initial program 26.4%
associate-+l-26.4%
Simplified26.4%
Taylor expanded in c around inf 49.8%
mul-1-neg49.8%
Simplified49.8%
if 2.1999999999999999e-234 < y5 < 6.1999999999999994e-39Initial program 36.7%
associate-+l-36.7%
Simplified36.7%
Taylor expanded in x around inf 55.8%
if 6.1999999999999994e-39 < y5 < 1.75e-12Initial program 28.6%
associate-+l-28.6%
Simplified28.6%
Taylor expanded in a around inf 71.4%
associate--l+71.4%
mul-1-neg71.4%
mul-1-neg71.4%
Simplified71.4%
Taylor expanded in b around inf 86.2%
if 1.75e-12 < y5 < 9.7999999999999998e57Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y2 around inf 77.8%
Final simplification59.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y k) (* t j)))
(t_2 (- (* a b) (* c i)))
(t_3 (- (* c y0) (* a y1)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (* y5 (+ (* i t_1) (- (* a (- (* t y2) (* y y3))) (* y0 t_4)))))
(t_6 (- (* y y3) (* t y2))))
(if (<= y4 -2.2e+109)
(* y4 (+ (- (* y1 t_4) (* t_1 b)) (* c t_6)))
(if (<= y4 -1.6e-8)
(* x (+ (+ (* y t_2) (* y2 t_3)) (* j (- (* i y1) (* b y0)))))
(if (<= y4 -2.45e-117)
(*
y2
(+
(+ (* x t_3) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 -1.9e-290)
t_5
(if (<= y4 4.8e-146)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 t_6)))
(if (<= y4 1.9e-41)
t_5
(if (<= y4 7.2e+120)
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x t_2))
(* y3 (- (* c y4) (* a y5)))))
(* (* c y4) 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 = (y * k) - (t * j);
double t_2 = (a * b) - (c * i);
double t_3 = (c * y0) - (a * y1);
double t_4 = (k * y2) - (j * y3);
double t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4)));
double t_6 = (y * y3) - (t * y2);
double tmp;
if (y4 <= -2.2e+109) {
tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * t_6));
} else if (y4 <= -1.6e-8) {
tmp = x * (((y * t_2) + (y2 * t_3)) + (j * ((i * y1) - (b * y0))));
} else if (y4 <= -2.45e-117) {
tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -1.9e-290) {
tmp = t_5;
} else if (y4 <= 4.8e-146) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6));
} else if (y4 <= 1.9e-41) {
tmp = t_5;
} else if (y4 <= 7.2e+120) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))));
} else {
tmp = (c * y4) * t_6;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (y * k) - (t * j)
t_2 = (a * b) - (c * i)
t_3 = (c * y0) - (a * y1)
t_4 = (k * y2) - (j * y3)
t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4)))
t_6 = (y * y3) - (t * y2)
if (y4 <= (-2.2d+109)) then
tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * t_6))
else if (y4 <= (-1.6d-8)) then
tmp = x * (((y * t_2) + (y2 * t_3)) + (j * ((i * y1) - (b * y0))))
else if (y4 <= (-2.45d-117)) then
tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= (-1.9d-290)) then
tmp = t_5
else if (y4 <= 4.8d-146) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6))
else if (y4 <= 1.9d-41) then
tmp = t_5
else if (y4 <= 7.2d+120) then
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))))
else
tmp = (c * y4) * 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 = (y * k) - (t * j);
double t_2 = (a * b) - (c * i);
double t_3 = (c * y0) - (a * y1);
double t_4 = (k * y2) - (j * y3);
double t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4)));
double t_6 = (y * y3) - (t * y2);
double tmp;
if (y4 <= -2.2e+109) {
tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * t_6));
} else if (y4 <= -1.6e-8) {
tmp = x * (((y * t_2) + (y2 * t_3)) + (j * ((i * y1) - (b * y0))));
} else if (y4 <= -2.45e-117) {
tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -1.9e-290) {
tmp = t_5;
} else if (y4 <= 4.8e-146) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6));
} else if (y4 <= 1.9e-41) {
tmp = t_5;
} else if (y4 <= 7.2e+120) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5))));
} else {
tmp = (c * y4) * t_6;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * k) - (t * j) t_2 = (a * b) - (c * i) t_3 = (c * y0) - (a * y1) t_4 = (k * y2) - (j * y3) t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4))) t_6 = (y * y3) - (t * y2) tmp = 0 if y4 <= -2.2e+109: tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * t_6)) elif y4 <= -1.6e-8: tmp = x * (((y * t_2) + (y2 * t_3)) + (j * ((i * y1) - (b * y0)))) elif y4 <= -2.45e-117: tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= -1.9e-290: tmp = t_5 elif y4 <= 4.8e-146: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6)) elif y4 <= 1.9e-41: tmp = t_5 elif y4 <= 7.2e+120: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5)))) else: tmp = (c * y4) * 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(y * k) - Float64(t * j)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(y5 * Float64(Float64(i * t_1) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) - Float64(y0 * t_4)))) t_6 = Float64(Float64(y * y3) - Float64(t * y2)) tmp = 0.0 if (y4 <= -2.2e+109) tmp = Float64(y4 * Float64(Float64(Float64(y1 * t_4) - Float64(t_1 * b)) + Float64(c * t_6))); elseif (y4 <= -1.6e-8) tmp = Float64(x * Float64(Float64(Float64(y * t_2) + Float64(y2 * t_3)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y4 <= -2.45e-117) tmp = Float64(y2 * Float64(Float64(Float64(x * t_3) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -1.9e-290) tmp = t_5; elseif (y4 <= 4.8e-146) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_6))); elseif (y4 <= 1.9e-41) tmp = t_5; elseif (y4 <= 7.2e+120) tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_2)) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(Float64(c * y4) * 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 = (y * k) - (t * j); t_2 = (a * b) - (c * i); t_3 = (c * y0) - (a * y1); t_4 = (k * y2) - (j * y3); t_5 = y5 * ((i * t_1) + ((a * ((t * y2) - (y * y3))) - (y0 * t_4))); t_6 = (y * y3) - (t * y2); tmp = 0.0; if (y4 <= -2.2e+109) tmp = y4 * (((y1 * t_4) - (t_1 * b)) + (c * t_6)); elseif (y4 <= -1.6e-8) tmp = x * (((y * t_2) + (y2 * t_3)) + (j * ((i * y1) - (b * y0)))); elseif (y4 <= -2.45e-117) tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= -1.9e-290) tmp = t_5; elseif (y4 <= 4.8e-146) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6)); elseif (y4 <= 1.9e-41) tmp = t_5; elseif (y4 <= 7.2e+120) tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_2)) + (y3 * ((c * y4) - (a * y5)))); else tmp = (c * y4) * 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[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(N[(i * t$95$1), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.2e+109], N[(y4 * N[(N[(N[(y1 * t$95$4), $MachinePrecision] - N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.6e-8], N[(x * N[(N[(N[(y * t$95$2), $MachinePrecision] + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.45e-117], N[(y2 * N[(N[(N[(x * t$95$3), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.9e-290], t$95$5, If[LessEqual[y4, 4.8e-146], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.9e-41], t$95$5, If[LessEqual[y4, 7.2e+120], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * y4), $MachinePrecision] * t$95$6), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot k - t \cdot j\\
t_2 := a \cdot b - c \cdot i\\
t_3 := c \cdot y0 - a \cdot y1\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y5 \cdot \left(i \cdot t_1 + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) - y0 \cdot t_4\right)\right)\\
t_6 := y \cdot y3 - t \cdot y2\\
\mathbf{if}\;y4 \leq -2.2 \cdot 10^{+109}:\\
\;\;\;\;y4 \cdot \left(\left(y1 \cdot t_4 - t_1 \cdot b\right) + c \cdot t_6\right)\\
\mathbf{elif}\;y4 \leq -1.6 \cdot 10^{-8}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_2 + y2 \cdot t_3\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq -2.45 \cdot 10^{-117}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_3 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.9 \cdot 10^{-290}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y4 \leq 4.8 \cdot 10^{-146}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t_6\right)\\
\mathbf{elif}\;y4 \leq 1.9 \cdot 10^{-41}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y4 \leq 7.2 \cdot 10^{+120}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t_2\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot y4\right) \cdot t_6\\
\end{array}
\end{array}
if y4 < -2.1999999999999999e109Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in y4 around inf 67.1%
if -2.1999999999999999e109 < y4 < -1.6000000000000001e-8Initial program 30.0%
associate-+l-30.0%
Simplified30.0%
Taylor expanded in x around inf 55.6%
if -1.6000000000000001e-8 < y4 < -2.4499999999999999e-117Initial program 4.3%
associate-+l-4.3%
Simplified4.3%
Taylor expanded in y2 around inf 56.8%
if -2.4499999999999999e-117 < y4 < -1.89999999999999988e-290 or 4.8000000000000003e-146 < y4 < 1.8999999999999999e-41Initial program 36.8%
associate-+l-36.8%
Simplified36.8%
Taylor expanded in y5 around -inf 59.4%
mul-1-neg59.4%
associate--l+59.4%
Simplified59.4%
if -1.89999999999999988e-290 < y4 < 4.8000000000000003e-146Initial program 34.5%
associate-+l-34.5%
Simplified34.5%
Taylor expanded in c around inf 66.5%
mul-1-neg66.5%
Simplified66.5%
if 1.8999999999999999e-41 < y4 < 7.20000000000000031e120Initial program 20.6%
associate-+l-20.6%
Simplified20.6%
Taylor expanded in y around inf 62.5%
mul-1-neg62.5%
mul-1-neg62.5%
Simplified62.5%
if 7.20000000000000031e120 < y4 Initial program 7.9%
associate-+l-7.9%
Simplified7.9%
Taylor expanded in y4 around inf 42.1%
Taylor expanded in c around inf 58.2%
associate-*r*55.7%
Simplified55.7%
Final simplification60.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y4
(+
(- (* y1 (- (* k y2) (* j y3))) (* (- (* y k) (* t j)) b))
(* c (- (* y y3) (* t y2)))))))
(if (<= a -5.2e+160)
(* y5 (* y2 (- (* t a) (* k y0))))
(if (<= a -3.25e+63)
t_1
(if (<= a -9e+32)
(* (* y2 y4) (- (* k y1) (* t c)))
(if (<= a -7e+19)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= a -7.8e-241)
(* b (* y4 (- (* t j) (* y k))))
(if (<= a -1.6e-307)
t_1
(if (<= a 4e-172)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= a 9.5e-56)
(* z (* i (- (* t c) (* k y1))))
(if (<= a 2.45e+145)
(* a (* y2 (- (* t y5) (* x y1))))
(* (* y a) (- (* x b) (* y3 y5))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2))));
double tmp;
if (a <= -5.2e+160) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (a <= -3.25e+63) {
tmp = t_1;
} else if (a <= -9e+32) {
tmp = (y2 * y4) * ((k * y1) - (t * c));
} else if (a <= -7e+19) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (a <= -7.8e-241) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (a <= -1.6e-307) {
tmp = t_1;
} else if (a <= 4e-172) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 9.5e-56) {
tmp = z * (i * ((t * c) - (k * y1)));
} else if (a <= 2.45e+145) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2))))
if (a <= (-5.2d+160)) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
else if (a <= (-3.25d+63)) then
tmp = t_1
else if (a <= (-9d+32)) then
tmp = (y2 * y4) * ((k * y1) - (t * c))
else if (a <= (-7d+19)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (a <= (-7.8d-241)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (a <= (-1.6d-307)) then
tmp = t_1
else if (a <= 4d-172) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (a <= 9.5d-56) then
tmp = z * (i * ((t * c) - (k * y1)))
else if (a <= 2.45d+145) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else
tmp = (y * a) * ((x * b) - (y3 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2))));
double tmp;
if (a <= -5.2e+160) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (a <= -3.25e+63) {
tmp = t_1;
} else if (a <= -9e+32) {
tmp = (y2 * y4) * ((k * y1) - (t * c));
} else if (a <= -7e+19) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (a <= -7.8e-241) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (a <= -1.6e-307) {
tmp = t_1;
} else if (a <= 4e-172) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 9.5e-56) {
tmp = z * (i * ((t * c) - (k * y1)));
} else if (a <= 2.45e+145) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2)))) tmp = 0 if a <= -5.2e+160: tmp = y5 * (y2 * ((t * a) - (k * y0))) elif a <= -3.25e+63: tmp = t_1 elif a <= -9e+32: tmp = (y2 * y4) * ((k * y1) - (t * c)) elif a <= -7e+19: tmp = c * (y * ((y3 * y4) - (x * i))) elif a <= -7.8e-241: tmp = b * (y4 * ((t * j) - (y * k))) elif a <= -1.6e-307: tmp = t_1 elif a <= 4e-172: tmp = c * (x * ((y0 * y2) - (y * i))) elif a <= 9.5e-56: tmp = z * (i * ((t * c) - (k * y1))) elif a <= 2.45e+145: tmp = a * (y2 * ((t * y5) - (x * y1))) else: tmp = (y * a) * ((x * b) - (y3 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) - Float64(Float64(Float64(y * k) - Float64(t * j)) * b)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (a <= -5.2e+160) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (a <= -3.25e+63) tmp = t_1; elseif (a <= -9e+32) tmp = Float64(Float64(y2 * y4) * Float64(Float64(k * y1) - Float64(t * c))); elseif (a <= -7e+19) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (a <= -7.8e-241) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (a <= -1.6e-307) tmp = t_1; elseif (a <= 4e-172) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (a <= 9.5e-56) tmp = Float64(z * Float64(i * Float64(Float64(t * c) - Float64(k * y1)))); elseif (a <= 2.45e+145) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); else tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * (((y1 * ((k * y2) - (j * y3))) - (((y * k) - (t * j)) * b)) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (a <= -5.2e+160) tmp = y5 * (y2 * ((t * a) - (k * y0))); elseif (a <= -3.25e+63) tmp = t_1; elseif (a <= -9e+32) tmp = (y2 * y4) * ((k * y1) - (t * c)); elseif (a <= -7e+19) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (a <= -7.8e-241) tmp = b * (y4 * ((t * j) - (y * k))); elseif (a <= -1.6e-307) tmp = t_1; elseif (a <= 4e-172) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (a <= 9.5e-56) tmp = z * (i * ((t * c) - (k * y1))); elseif (a <= 2.45e+145) tmp = a * (y2 * ((t * y5) - (x * y1))); else tmp = (y * a) * ((x * b) - (y3 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.2e+160], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.25e+63], t$95$1, If[LessEqual[a, -9e+32], N[(N[(y2 * y4), $MachinePrecision] * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7e+19], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.8e-241], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.6e-307], t$95$1, If[LessEqual[a, 4e-172], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-56], N[(z * N[(i * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.45e+145], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(\left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) - \left(y \cdot k - t \cdot j\right) \cdot b\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;a \leq -5.2 \cdot 10^{+160}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -3.25 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -9 \cdot 10^{+32}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(k \cdot y1 - t \cdot c\right)\\
\mathbf{elif}\;a \leq -7 \cdot 10^{+19}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{-241}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-172}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-56}:\\
\;\;\;\;z \cdot \left(i \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 2.45 \cdot 10^{+145}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\end{array}
\end{array}
if a < -5.2000000000000001e160Initial program 30.8%
associate-+l-30.8%
Simplified30.8%
Taylor expanded in y2 around inf 61.9%
Taylor expanded in y5 around inf 66.0%
associate-*r*69.7%
*-commutative69.7%
associate-*l*66.0%
cancel-sign-sub-inv66.0%
metadata-eval66.0%
*-lft-identity66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
if -5.2000000000000001e160 < a < -3.24999999999999996e63 or -7.7999999999999998e-241 < a < -1.60000000000000005e-307Initial program 20.0%
associate-+l-20.0%
Simplified20.0%
Taylor expanded in y4 around inf 60.5%
if -3.24999999999999996e63 < a < -9.0000000000000007e32Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y4 around inf 33.7%
Taylor expanded in y2 around inf 68.0%
associate-*r*68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
if -9.0000000000000007e32 < a < -7e19Initial program 20.0%
associate-+l-20.0%
Simplified20.0%
Taylor expanded in c around inf 80.0%
mul-1-neg80.0%
Simplified80.0%
Taylor expanded in y around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if -7e19 < a < -7.7999999999999998e-241Initial program 26.3%
associate-+l-26.3%
Simplified26.3%
Taylor expanded in y4 around inf 25.2%
Taylor expanded in b around inf 42.9%
associate-*r*41.2%
Simplified41.2%
if -1.60000000000000005e-307 < a < 4.0000000000000002e-172Initial program 29.7%
associate-+l-29.7%
Simplified29.7%
Taylor expanded in c around inf 44.6%
mul-1-neg44.6%
Simplified44.6%
Taylor expanded in x around inf 53.8%
if 4.0000000000000002e-172 < a < 9.4999999999999991e-56Initial program 24.3%
associate-+l-24.3%
Simplified24.3%
Taylor expanded in z around -inf 36.9%
Taylor expanded in i around inf 45.4%
associate-*r*52.9%
distribute-lft-out--52.9%
associate-*r*52.9%
mul-1-neg52.9%
*-commutative52.9%
*-commutative52.9%
Simplified52.9%
if 9.4999999999999991e-56 < a < 2.45000000000000001e145Initial program 20.6%
associate-+l-20.6%
Simplified20.6%
Taylor expanded in a around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in y2 around inf 50.9%
if 2.45000000000000001e145 < a Initial program 9.5%
associate-+l-9.5%
Simplified9.5%
Taylor expanded in a around inf 52.6%
associate--l+52.6%
mul-1-neg52.6%
mul-1-neg52.6%
Simplified52.6%
Taylor expanded in y around inf 67.1%
associate-*r*67.1%
*-commutative67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
Final simplification55.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3)))))
(t_2 (* c (* i (- (* z t) (* x y)))))
(t_3 (* c (* x (- (* y0 y2) (* y i))))))
(if (<= x -3.6e+211)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= x -4.1e+99)
(* a (* b (- (* x y) (* z t))))
(if (<= x -2.45e+38)
t_3
(if (<= x -1.55e+26)
(* c (* (* t y2) (- y4)))
(if (<= x -4.3e-178)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= x 1.85e-250)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= x 1.75e-176)
t_1
(if (<= x 1.2e-118)
t_2
(if (<= x 1.3e-85)
(* y1 (* a (- (* z y3) (* x y2))))
(if (<= x 2.6e-62)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= x 2e-40)
t_2
(if (<= x 6.5e+125) t_1 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 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (i * ((z * t) - (x * y)));
double t_3 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -3.6e+211) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -4.1e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -2.45e+38) {
tmp = t_3;
} else if (x <= -1.55e+26) {
tmp = c * ((t * y2) * -y4);
} else if (x <= -4.3e-178) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (x <= 1.85e-250) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (x <= 1.75e-176) {
tmp = t_1;
} else if (x <= 1.2e-118) {
tmp = t_2;
} else if (x <= 1.3e-85) {
tmp = y1 * (a * ((z * y3) - (x * y2)));
} else if (x <= 2.6e-62) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (x <= 2e-40) {
tmp = t_2;
} else if (x <= 6.5e+125) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
t_2 = c * (i * ((z * t) - (x * y)))
t_3 = c * (x * ((y0 * y2) - (y * i)))
if (x <= (-3.6d+211)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (x <= (-4.1d+99)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (x <= (-2.45d+38)) then
tmp = t_3
else if (x <= (-1.55d+26)) then
tmp = c * ((t * y2) * -y4)
else if (x <= (-4.3d-178)) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (x <= 1.85d-250) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (x <= 1.75d-176) then
tmp = t_1
else if (x <= 1.2d-118) then
tmp = t_2
else if (x <= 1.3d-85) then
tmp = y1 * (a * ((z * y3) - (x * y2)))
else if (x <= 2.6d-62) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (x <= 2d-40) then
tmp = t_2
else if (x <= 6.5d+125) then
tmp = t_1
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 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (i * ((z * t) - (x * y)));
double t_3 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -3.6e+211) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -4.1e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -2.45e+38) {
tmp = t_3;
} else if (x <= -1.55e+26) {
tmp = c * ((t * y2) * -y4);
} else if (x <= -4.3e-178) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (x <= 1.85e-250) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (x <= 1.75e-176) {
tmp = t_1;
} else if (x <= 1.2e-118) {
tmp = t_2;
} else if (x <= 1.3e-85) {
tmp = y1 * (a * ((z * y3) - (x * y2)));
} else if (x <= 2.6e-62) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (x <= 2e-40) {
tmp = t_2;
} else if (x <= 6.5e+125) {
tmp = t_1;
} 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 = a * (y5 * ((t * y2) - (y * y3))) t_2 = c * (i * ((z * t) - (x * y))) t_3 = c * (x * ((y0 * y2) - (y * i))) tmp = 0 if x <= -3.6e+211: tmp = c * (y2 * ((x * y0) - (t * y4))) elif x <= -4.1e+99: tmp = a * (b * ((x * y) - (z * t))) elif x <= -2.45e+38: tmp = t_3 elif x <= -1.55e+26: tmp = c * ((t * y2) * -y4) elif x <= -4.3e-178: tmp = t * (y2 * ((a * y5) - (c * y4))) elif x <= 1.85e-250: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif x <= 1.75e-176: tmp = t_1 elif x <= 1.2e-118: tmp = t_2 elif x <= 1.3e-85: tmp = y1 * (a * ((z * y3) - (x * y2))) elif x <= 2.6e-62: tmp = c * (y * ((y3 * y4) - (x * i))) elif x <= 2e-40: tmp = t_2 elif x <= 6.5e+125: tmp = t_1 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(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) t_2 = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))) t_3 = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))) tmp = 0.0 if (x <= -3.6e+211) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (x <= -4.1e+99) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (x <= -2.45e+38) tmp = t_3; elseif (x <= -1.55e+26) tmp = Float64(c * Float64(Float64(t * y2) * Float64(-y4))); elseif (x <= -4.3e-178) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (x <= 1.85e-250) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (x <= 1.75e-176) tmp = t_1; elseif (x <= 1.2e-118) tmp = t_2; elseif (x <= 1.3e-85) tmp = Float64(y1 * Float64(a * Float64(Float64(z * y3) - Float64(x * y2)))); elseif (x <= 2.6e-62) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (x <= 2e-40) tmp = t_2; elseif (x <= 6.5e+125) tmp = t_1; 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 = a * (y5 * ((t * y2) - (y * y3))); t_2 = c * (i * ((z * t) - (x * y))); t_3 = c * (x * ((y0 * y2) - (y * i))); tmp = 0.0; if (x <= -3.6e+211) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (x <= -4.1e+99) tmp = a * (b * ((x * y) - (z * t))); elseif (x <= -2.45e+38) tmp = t_3; elseif (x <= -1.55e+26) tmp = c * ((t * y2) * -y4); elseif (x <= -4.3e-178) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (x <= 1.85e-250) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (x <= 1.75e-176) tmp = t_1; elseif (x <= 1.2e-118) tmp = t_2; elseif (x <= 1.3e-85) tmp = y1 * (a * ((z * y3) - (x * y2))); elseif (x <= 2.6e-62) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (x <= 2e-40) tmp = t_2; elseif (x <= 6.5e+125) tmp = t_1; 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[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e+211], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.1e+99], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.45e+38], t$95$3, If[LessEqual[x, -1.55e+26], N[(c * N[(N[(t * y2), $MachinePrecision] * (-y4)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.3e-178], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e-250], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.75e-176], t$95$1, If[LessEqual[x, 1.2e-118], t$95$2, If[LessEqual[x, 1.3e-85], N[(y1 * N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e-62], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e-40], t$95$2, If[LessEqual[x, 6.5e+125], t$95$1, t$95$3]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_2 := c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
t_3 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{if}\;x \leq -3.6 \cdot 10^{+211}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -4.1 \cdot 10^{+99}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq -2.45 \cdot 10^{+38}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.55 \cdot 10^{+26}:\\
\;\;\;\;c \cdot \left(\left(t \cdot y2\right) \cdot \left(-y4\right)\right)\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{-178}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-250}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-176}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-85}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-62}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -3.60000000000000003e211Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in y2 around inf 62.0%
if -3.60000000000000003e211 < x < -4.09999999999999979e99Initial program 23.4%
associate-+l-23.4%
Simplified23.4%
Taylor expanded in a around inf 50.1%
associate--l+50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in b around inf 65.8%
if -4.09999999999999979e99 < x < -2.45000000000000001e38 or 6.4999999999999999e125 < x Initial program 16.4%
associate-+l-16.4%
Simplified16.4%
Taylor expanded in c around inf 49.4%
mul-1-neg49.4%
Simplified49.4%
Taylor expanded in x around inf 58.6%
if -2.45000000000000001e38 < x < -1.55e26Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 34.3%
associate-*r*34.3%
*-commutative34.3%
*-commutative34.3%
Simplified34.3%
Taylor expanded in k around 0 67.4%
associate-*r*67.4%
neg-mul-167.4%
Simplified67.4%
if -1.55e26 < x < -4.3e-178Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in t around inf 50.3%
associate--l+50.3%
mul-1-neg50.3%
Simplified50.3%
Taylor expanded in y2 around inf 48.1%
if -4.3e-178 < x < 1.8499999999999999e-250Initial program 28.5%
associate-+l-28.5%
Simplified28.5%
Taylor expanded in y4 around inf 40.9%
Taylor expanded in y1 around inf 44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
if 1.8499999999999999e-250 < x < 1.75e-176 or 1.9999999999999999e-40 < x < 6.4999999999999999e125Initial program 24.2%
associate-+l-24.2%
Simplified24.2%
Taylor expanded in a around inf 44.4%
associate--l+44.4%
mul-1-neg44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in y5 around inf 50.5%
if 1.75e-176 < x < 1.2000000000000001e-118 or 2.5999999999999999e-62 < x < 1.9999999999999999e-40Initial program 26.6%
associate-+l-26.6%
Simplified26.6%
Taylor expanded in c around inf 47.7%
mul-1-neg47.7%
Simplified47.7%
Taylor expanded in i around inf 58.7%
if 1.2000000000000001e-118 < x < 1.30000000000000006e-85Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in a around inf 36.1%
associate--l+36.1%
mul-1-neg36.1%
mul-1-neg36.1%
Simplified36.1%
Taylor expanded in y1 around inf 51.8%
if 1.30000000000000006e-85 < x < 2.5999999999999999e-62Initial program 12.5%
associate-+l-12.5%
Simplified12.5%
Taylor expanded in c around inf 75.0%
mul-1-neg75.0%
Simplified75.0%
Taylor expanded in y around -inf 63.8%
mul-1-neg63.8%
unsub-neg63.8%
*-commutative63.8%
Simplified63.8%
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 (* c (* x (- (* y0 y2) (* y i)))))
(t_2 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= x -2.4e+212)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= x -1.35e+99)
(* a (* b (- (* x y) (* z t))))
(if (<= x -6.1e+38)
t_1
(if (<= x -2.05e+30)
(* c (* (* t y2) (- y4)))
(if (<= x 6.2e-306)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= x 5.4e-257)
(* (* k y2) (* y1 y4))
(if (<= x 8e-190)
t_2
(if (<= x 2.2e-174)
(* (- b) (* (* y k) y4))
(if (<= x 2.4e-40)
(* c (* i (- (* z t) (* x y))))
(if (<= x 2.3e+127) 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) - (y * i)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (x <= -2.4e+212) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -1.35e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -6.1e+38) {
tmp = t_1;
} else if (x <= -2.05e+30) {
tmp = c * ((t * y2) * -y4);
} else if (x <= 6.2e-306) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (x <= 5.4e-257) {
tmp = (k * y2) * (y1 * y4);
} else if (x <= 8e-190) {
tmp = t_2;
} else if (x <= 2.2e-174) {
tmp = -b * ((y * k) * y4);
} else if (x <= 2.4e-40) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (x <= 2.3e+127) {
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) - (y * i)))
t_2 = a * (y5 * ((t * y2) - (y * y3)))
if (x <= (-2.4d+212)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (x <= (-1.35d+99)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (x <= (-6.1d+38)) then
tmp = t_1
else if (x <= (-2.05d+30)) then
tmp = c * ((t * y2) * -y4)
else if (x <= 6.2d-306) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (x <= 5.4d-257) then
tmp = (k * y2) * (y1 * y4)
else if (x <= 8d-190) then
tmp = t_2
else if (x <= 2.2d-174) then
tmp = -b * ((y * k) * y4)
else if (x <= 2.4d-40) then
tmp = c * (i * ((z * t) - (x * y)))
else if (x <= 2.3d+127) 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) - (y * i)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (x <= -2.4e+212) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -1.35e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -6.1e+38) {
tmp = t_1;
} else if (x <= -2.05e+30) {
tmp = c * ((t * y2) * -y4);
} else if (x <= 6.2e-306) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (x <= 5.4e-257) {
tmp = (k * y2) * (y1 * y4);
} else if (x <= 8e-190) {
tmp = t_2;
} else if (x <= 2.2e-174) {
tmp = -b * ((y * k) * y4);
} else if (x <= 2.4e-40) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (x <= 2.3e+127) {
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) - (y * i))) t_2 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if x <= -2.4e+212: tmp = c * (y2 * ((x * y0) - (t * y4))) elif x <= -1.35e+99: tmp = a * (b * ((x * y) - (z * t))) elif x <= -6.1e+38: tmp = t_1 elif x <= -2.05e+30: tmp = c * ((t * y2) * -y4) elif x <= 6.2e-306: tmp = t * (y2 * ((a * y5) - (c * y4))) elif x <= 5.4e-257: tmp = (k * y2) * (y1 * y4) elif x <= 8e-190: tmp = t_2 elif x <= 2.2e-174: tmp = -b * ((y * k) * y4) elif x <= 2.4e-40: tmp = c * (i * ((z * t) - (x * y))) elif x <= 2.3e+127: 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(Float64(y0 * y2) - Float64(y * i)))) t_2 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (x <= -2.4e+212) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (x <= -1.35e+99) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (x <= -6.1e+38) tmp = t_1; elseif (x <= -2.05e+30) tmp = Float64(c * Float64(Float64(t * y2) * Float64(-y4))); elseif (x <= 6.2e-306) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (x <= 5.4e-257) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (x <= 8e-190) tmp = t_2; elseif (x <= 2.2e-174) tmp = Float64(Float64(-b) * Float64(Float64(y * k) * y4)); elseif (x <= 2.4e-40) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (x <= 2.3e+127) 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) - (y * i))); t_2 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (x <= -2.4e+212) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (x <= -1.35e+99) tmp = a * (b * ((x * y) - (z * t))); elseif (x <= -6.1e+38) tmp = t_1; elseif (x <= -2.05e+30) tmp = c * ((t * y2) * -y4); elseif (x <= 6.2e-306) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (x <= 5.4e-257) tmp = (k * y2) * (y1 * y4); elseif (x <= 8e-190) tmp = t_2; elseif (x <= 2.2e-174) tmp = -b * ((y * k) * y4); elseif (x <= 2.4e-40) tmp = c * (i * ((z * t) - (x * y))); elseif (x <= 2.3e+127) 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[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.4e+212], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.35e+99], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.1e+38], t$95$1, If[LessEqual[x, -2.05e+30], N[(c * N[(N[(t * y2), $MachinePrecision] * (-y4)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.2e-306], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-257], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e-190], t$95$2, If[LessEqual[x, 2.2e-174], N[((-b) * N[(N[(y * k), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-40], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e+127], t$95$2, t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
t_2 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;x \leq -2.4 \cdot 10^{+212}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -1.35 \cdot 10^{+99}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq -6.1 \cdot 10^{+38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.05 \cdot 10^{+30}:\\
\;\;\;\;c \cdot \left(\left(t \cdot y2\right) \cdot \left(-y4\right)\right)\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-306}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-257}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{-190}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-174}:\\
\;\;\;\;\left(-b\right) \cdot \left(\left(y \cdot k\right) \cdot y4\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-40}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{+127}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.4e212Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in y2 around inf 62.0%
if -2.4e212 < x < -1.34999999999999994e99Initial program 23.4%
associate-+l-23.4%
Simplified23.4%
Taylor expanded in a around inf 50.1%
associate--l+50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in b around inf 65.8%
if -1.34999999999999994e99 < x < -6.0999999999999999e38 or 2.3000000000000002e127 < x Initial program 16.4%
associate-+l-16.4%
Simplified16.4%
Taylor expanded in c around inf 49.4%
mul-1-neg49.4%
Simplified49.4%
Taylor expanded in x around inf 58.6%
if -6.0999999999999999e38 < x < -2.05000000000000003e30Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 34.3%
associate-*r*34.3%
*-commutative34.3%
*-commutative34.3%
Simplified34.3%
Taylor expanded in k around 0 67.4%
associate-*r*67.4%
neg-mul-167.4%
Simplified67.4%
if -2.05000000000000003e30 < x < 6.19999999999999995e-306Initial program 27.1%
associate-+l-27.1%
Simplified27.1%
Taylor expanded in t around inf 48.1%
associate--l+48.1%
mul-1-neg48.1%
Simplified48.1%
Taylor expanded in y2 around inf 43.3%
if 6.19999999999999995e-306 < x < 5.3999999999999997e-257Initial program 11.1%
associate-+l-11.1%
Simplified11.1%
Taylor expanded in y4 around inf 23.1%
Taylor expanded in y2 around inf 36.9%
associate-*r*46.6%
*-commutative46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in k around inf 38.1%
*-commutative38.1%
associate-*r*48.2%
associate-*l*56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
if 5.3999999999999997e-257 < x < 8.0000000000000002e-190 or 2.39999999999999991e-40 < x < 2.3000000000000002e127Initial program 21.9%
associate-+l-21.9%
Simplified21.9%
Taylor expanded in a around inf 39.6%
associate--l+39.6%
mul-1-neg39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in y5 around inf 46.2%
if 8.0000000000000002e-190 < x < 2.20000000000000022e-174Initial program 50.0%
associate-+l-50.0%
Simplified50.0%
Taylor expanded in y4 around inf 63.1%
Taylor expanded in b around inf 51.6%
associate-*r*63.3%
Simplified63.3%
Taylor expanded in t around 0 75.8%
mul-1-neg75.8%
distribute-lft-neg-out75.8%
*-commutative75.8%
Simplified75.8%
if 2.20000000000000022e-174 < x < 2.39999999999999991e-40Initial program 25.2%
associate-+l-25.2%
Simplified25.2%
Taylor expanded in c around inf 50.4%
mul-1-neg50.4%
Simplified50.4%
Taylor expanded in i around inf 47.9%
Final simplification53.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3)))))
(t_2 (* c (* y2 (- (* x y0) (* t y4)))))
(t_3 (* c (* i (- (* z t) (* x y))))))
(if (<= x -7e+213)
t_2
(if (<= x -1.6e-13)
(* a (* b (- (* x y) (* z t))))
(if (<= x -3.4e-155)
(* a (* y2 (- (* t y5) (* x y1))))
(if (<= x 1.06e-252)
(* (* k (* i y1)) (- z))
(if (<= x 1.55e-176)
t_1
(if (<= x 3.1e-40)
t_3
(if (<= x 1.46e+127)
t_1
(if (<= x 5.8e+157)
t_2
(if (<= x 1.3e+261)
(* c (* y (- (* y3 y4) (* x i))))
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 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (y2 * ((x * y0) - (t * y4)));
double t_3 = c * (i * ((z * t) - (x * y)));
double tmp;
if (x <= -7e+213) {
tmp = t_2;
} else if (x <= -1.6e-13) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -3.4e-155) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (x <= 1.06e-252) {
tmp = (k * (i * y1)) * -z;
} else if (x <= 1.55e-176) {
tmp = t_1;
} else if (x <= 3.1e-40) {
tmp = t_3;
} else if (x <= 1.46e+127) {
tmp = t_1;
} else if (x <= 5.8e+157) {
tmp = t_2;
} else if (x <= 1.3e+261) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
t_2 = c * (y2 * ((x * y0) - (t * y4)))
t_3 = c * (i * ((z * t) - (x * y)))
if (x <= (-7d+213)) then
tmp = t_2
else if (x <= (-1.6d-13)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (x <= (-3.4d-155)) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else if (x <= 1.06d-252) then
tmp = (k * (i * y1)) * -z
else if (x <= 1.55d-176) then
tmp = t_1
else if (x <= 3.1d-40) then
tmp = t_3
else if (x <= 1.46d+127) then
tmp = t_1
else if (x <= 5.8d+157) then
tmp = t_2
else if (x <= 1.3d+261) then
tmp = c * (y * ((y3 * y4) - (x * i)))
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 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (y2 * ((x * y0) - (t * y4)));
double t_3 = c * (i * ((z * t) - (x * y)));
double tmp;
if (x <= -7e+213) {
tmp = t_2;
} else if (x <= -1.6e-13) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -3.4e-155) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (x <= 1.06e-252) {
tmp = (k * (i * y1)) * -z;
} else if (x <= 1.55e-176) {
tmp = t_1;
} else if (x <= 3.1e-40) {
tmp = t_3;
} else if (x <= 1.46e+127) {
tmp = t_1;
} else if (x <= 5.8e+157) {
tmp = t_2;
} else if (x <= 1.3e+261) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} 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 = a * (y5 * ((t * y2) - (y * y3))) t_2 = c * (y2 * ((x * y0) - (t * y4))) t_3 = c * (i * ((z * t) - (x * y))) tmp = 0 if x <= -7e+213: tmp = t_2 elif x <= -1.6e-13: tmp = a * (b * ((x * y) - (z * t))) elif x <= -3.4e-155: tmp = a * (y2 * ((t * y5) - (x * y1))) elif x <= 1.06e-252: tmp = (k * (i * y1)) * -z elif x <= 1.55e-176: tmp = t_1 elif x <= 3.1e-40: tmp = t_3 elif x <= 1.46e+127: tmp = t_1 elif x <= 5.8e+157: tmp = t_2 elif x <= 1.3e+261: tmp = c * (y * ((y3 * y4) - (x * i))) 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(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) t_2 = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))) t_3 = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))) tmp = 0.0 if (x <= -7e+213) tmp = t_2; elseif (x <= -1.6e-13) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (x <= -3.4e-155) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); elseif (x <= 1.06e-252) tmp = Float64(Float64(k * Float64(i * y1)) * Float64(-z)); elseif (x <= 1.55e-176) tmp = t_1; elseif (x <= 3.1e-40) tmp = t_3; elseif (x <= 1.46e+127) tmp = t_1; elseif (x <= 5.8e+157) tmp = t_2; elseif (x <= 1.3e+261) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); 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 = a * (y5 * ((t * y2) - (y * y3))); t_2 = c * (y2 * ((x * y0) - (t * y4))); t_3 = c * (i * ((z * t) - (x * y))); tmp = 0.0; if (x <= -7e+213) tmp = t_2; elseif (x <= -1.6e-13) tmp = a * (b * ((x * y) - (z * t))); elseif (x <= -3.4e-155) tmp = a * (y2 * ((t * y5) - (x * y1))); elseif (x <= 1.06e-252) tmp = (k * (i * y1)) * -z; elseif (x <= 1.55e-176) tmp = t_1; elseif (x <= 3.1e-40) tmp = t_3; elseif (x <= 1.46e+127) tmp = t_1; elseif (x <= 5.8e+157) tmp = t_2; elseif (x <= 1.3e+261) tmp = c * (y * ((y3 * y4) - (x * i))); 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[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+213], t$95$2, If[LessEqual[x, -1.6e-13], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.4e-155], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e-252], N[(N[(k * N[(i * y1), $MachinePrecision]), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[x, 1.55e-176], t$95$1, If[LessEqual[x, 3.1e-40], t$95$3, If[LessEqual[x, 1.46e+127], t$95$1, If[LessEqual[x, 5.8e+157], t$95$2, If[LessEqual[x, 1.3e+261], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_2 := c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
t_3 := c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{if}\;x \leq -7 \cdot 10^{+213}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-13}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq -3.4 \cdot 10^{-155}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-252}:\\
\;\;\;\;\left(k \cdot \left(i \cdot y1\right)\right) \cdot \left(-z\right)\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{-176}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-40}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 1.46 \cdot 10^{+127}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+157}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+261}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -6.9999999999999994e213 or 1.45999999999999997e127 < x < 5.79999999999999975e157Initial program 29.2%
associate-+l-29.2%
Simplified29.2%
Taylor expanded in c around inf 46.1%
mul-1-neg46.1%
Simplified46.1%
Taylor expanded in y2 around inf 67.4%
if -6.9999999999999994e213 < x < -1.6e-13Initial program 21.4%
associate-+l-21.4%
Simplified21.4%
Taylor expanded in a around inf 42.8%
associate--l+42.8%
mul-1-neg42.8%
mul-1-neg42.8%
Simplified42.8%
Taylor expanded in b around inf 51.5%
if -1.6e-13 < x < -3.4e-155Initial program 24.0%
associate-+l-24.0%
Simplified24.0%
Taylor expanded in a around inf 44.6%
associate--l+44.6%
mul-1-neg44.6%
mul-1-neg44.6%
Simplified44.6%
Taylor expanded in y2 around inf 48.8%
if -3.4e-155 < x < 1.06e-252Initial program 30.7%
associate-+l-30.7%
Simplified30.7%
Taylor expanded in z around -inf 41.7%
Taylor expanded in k around inf 44.3%
Taylor expanded in y1 around inf 34.2%
if 1.06e-252 < x < 1.54999999999999996e-176 or 3.10000000000000011e-40 < x < 1.45999999999999997e127Initial program 23.7%
associate-+l-23.7%
Simplified23.7%
Taylor expanded in a around inf 43.6%
associate--l+43.6%
mul-1-neg43.6%
mul-1-neg43.6%
Simplified43.6%
Taylor expanded in y5 around inf 49.5%
if 1.54999999999999996e-176 < x < 3.10000000000000011e-40 or 1.29999999999999991e261 < x Initial program 17.4%
associate-+l-17.4%
Simplified17.4%
Taylor expanded in c around inf 50.3%
mul-1-neg50.3%
Simplified50.3%
Taylor expanded in i around inf 51.0%
if 5.79999999999999975e157 < x < 1.29999999999999991e261Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in c around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in y around -inf 61.4%
mul-1-neg61.4%
unsub-neg61.4%
*-commutative61.4%
Simplified61.4%
Final simplification50.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3)))))
(t_2 (* c (* x (- (* y0 y2) (* y i))))))
(if (<= x -6.5e+215)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= x -2.3e+99)
(* a (* b (- (* x y) (* z t))))
(if (<= x -4.3e+38)
t_2
(if (<= x -3e+29)
(* c (* (* t y2) (- y4)))
(if (<= x -2.8e-178)
(* (* t j) (- (* b y4) (* i y5)))
(if (<= x 1.85e-250)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= x 7e-175)
t_1
(if (<= x 9.5e-41)
(* c (* i (- (* z t) (* x y))))
(if (<= x 4e+125) t_1 t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -6.5e+215) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -2.3e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -4.3e+38) {
tmp = t_2;
} else if (x <= -3e+29) {
tmp = c * ((t * y2) * -y4);
} else if (x <= -2.8e-178) {
tmp = (t * j) * ((b * y4) - (i * y5));
} else if (x <= 1.85e-250) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (x <= 7e-175) {
tmp = t_1;
} else if (x <= 9.5e-41) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (x <= 4e+125) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
t_2 = c * (x * ((y0 * y2) - (y * i)))
if (x <= (-6.5d+215)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (x <= (-2.3d+99)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (x <= (-4.3d+38)) then
tmp = t_2
else if (x <= (-3d+29)) then
tmp = c * ((t * y2) * -y4)
else if (x <= (-2.8d-178)) then
tmp = (t * j) * ((b * y4) - (i * y5))
else if (x <= 1.85d-250) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (x <= 7d-175) then
tmp = t_1
else if (x <= 9.5d-41) then
tmp = c * (i * ((z * t) - (x * y)))
else if (x <= 4d+125) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -6.5e+215) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -2.3e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -4.3e+38) {
tmp = t_2;
} else if (x <= -3e+29) {
tmp = c * ((t * y2) * -y4);
} else if (x <= -2.8e-178) {
tmp = (t * j) * ((b * y4) - (i * y5));
} else if (x <= 1.85e-250) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (x <= 7e-175) {
tmp = t_1;
} else if (x <= 9.5e-41) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (x <= 4e+125) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * ((t * y2) - (y * y3))) t_2 = c * (x * ((y0 * y2) - (y * i))) tmp = 0 if x <= -6.5e+215: tmp = c * (y2 * ((x * y0) - (t * y4))) elif x <= -2.3e+99: tmp = a * (b * ((x * y) - (z * t))) elif x <= -4.3e+38: tmp = t_2 elif x <= -3e+29: tmp = c * ((t * y2) * -y4) elif x <= -2.8e-178: tmp = (t * j) * ((b * y4) - (i * y5)) elif x <= 1.85e-250: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif x <= 7e-175: tmp = t_1 elif x <= 9.5e-41: tmp = c * (i * ((z * t) - (x * y))) elif x <= 4e+125: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) t_2 = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))) tmp = 0.0 if (x <= -6.5e+215) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (x <= -2.3e+99) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (x <= -4.3e+38) tmp = t_2; elseif (x <= -3e+29) tmp = Float64(c * Float64(Float64(t * y2) * Float64(-y4))); elseif (x <= -2.8e-178) tmp = Float64(Float64(t * j) * Float64(Float64(b * y4) - Float64(i * y5))); elseif (x <= 1.85e-250) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (x <= 7e-175) tmp = t_1; elseif (x <= 9.5e-41) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (x <= 4e+125) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * ((t * y2) - (y * y3))); t_2 = c * (x * ((y0 * y2) - (y * i))); tmp = 0.0; if (x <= -6.5e+215) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (x <= -2.3e+99) tmp = a * (b * ((x * y) - (z * t))); elseif (x <= -4.3e+38) tmp = t_2; elseif (x <= -3e+29) tmp = c * ((t * y2) * -y4); elseif (x <= -2.8e-178) tmp = (t * j) * ((b * y4) - (i * y5)); elseif (x <= 1.85e-250) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (x <= 7e-175) tmp = t_1; elseif (x <= 9.5e-41) tmp = c * (i * ((z * t) - (x * y))); elseif (x <= 4e+125) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.5e+215], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.3e+99], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.3e+38], t$95$2, If[LessEqual[x, -3e+29], N[(c * N[(N[(t * y2), $MachinePrecision] * (-y4)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.8e-178], N[(N[(t * j), $MachinePrecision] * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e-250], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-175], t$95$1, If[LessEqual[x, 9.5e-41], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+125], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_2 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+215}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+99}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{+38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -3 \cdot 10^{+29}:\\
\;\;\;\;c \cdot \left(\left(t \cdot y2\right) \cdot \left(-y4\right)\right)\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-178}:\\
\;\;\;\;\left(t \cdot j\right) \cdot \left(b \cdot y4 - i \cdot y5\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-250}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-175}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-41}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -6.4999999999999997e215Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in y2 around inf 62.0%
if -6.4999999999999997e215 < x < -2.30000000000000019e99Initial program 23.4%
associate-+l-23.4%
Simplified23.4%
Taylor expanded in a around inf 50.1%
associate--l+50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in b around inf 65.8%
if -2.30000000000000019e99 < x < -4.2999999999999997e38 or 3.9999999999999997e125 < x Initial program 16.4%
associate-+l-16.4%
Simplified16.4%
Taylor expanded in c around inf 49.4%
mul-1-neg49.4%
Simplified49.4%
Taylor expanded in x around inf 58.6%
if -4.2999999999999997e38 < x < -2.9999999999999999e29Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 34.3%
associate-*r*34.3%
*-commutative34.3%
*-commutative34.3%
Simplified34.3%
Taylor expanded in k around 0 67.4%
associate-*r*67.4%
neg-mul-167.4%
Simplified67.4%
if -2.9999999999999999e29 < x < -2.80000000000000019e-178Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in t around inf 50.3%
associate--l+50.3%
mul-1-neg50.3%
Simplified50.3%
Taylor expanded in j around inf 53.7%
associate-*r*53.7%
*-commutative53.7%
Simplified53.7%
if -2.80000000000000019e-178 < x < 1.8499999999999999e-250Initial program 28.5%
associate-+l-28.5%
Simplified28.5%
Taylor expanded in y4 around inf 40.9%
Taylor expanded in y1 around inf 44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
if 1.8499999999999999e-250 < x < 6.99999999999999997e-175 or 9.4999999999999997e-41 < x < 3.9999999999999997e125Initial program 24.2%
associate-+l-24.2%
Simplified24.2%
Taylor expanded in a around inf 44.4%
associate--l+44.4%
mul-1-neg44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in y5 around inf 50.5%
if 6.99999999999999997e-175 < x < 9.4999999999999997e-41Initial program 24.4%
associate-+l-24.4%
Simplified24.4%
Taylor expanded in c around inf 48.9%
mul-1-neg48.9%
Simplified48.9%
Taylor expanded in i around inf 46.5%
Final simplification53.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -1.75e+76)
(* b (* y4 (- (* t j) (* y k))))
(if (<= k -8.5e-92)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= k -1.6e-206)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= k -9e-241)
(* c (* i (- (* z t) (* x y))))
(if (<= k -1.35e-272)
(* y2 (* c (- (* x y0) (* t y4))))
(if (<= k 6.1e-34)
(* (* t y5) (- (* a y2) (* i j)))
(if (<= k 1.04e+34)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= k 4.4e+67)
(* y5 (* y2 (- (* t a) (* k y0))))
(if (<= k 8.5e+146)
(* y4 (* y2 (* k y1)))
(* (* y0 y5) (- (* j y3) (* k 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 (k <= -1.75e+76) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (k <= -8.5e-92) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (k <= -1.6e-206) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (k <= -9e-241) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (k <= -1.35e-272) {
tmp = y2 * (c * ((x * y0) - (t * y4)));
} else if (k <= 6.1e-34) {
tmp = (t * y5) * ((a * y2) - (i * j));
} else if (k <= 1.04e+34) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 4.4e+67) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (k <= 8.5e+146) {
tmp = y4 * (y2 * (k * y1));
} else {
tmp = (y0 * y5) * ((j * y3) - (k * 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 (k <= (-1.75d+76)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (k <= (-8.5d-92)) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (k <= (-1.6d-206)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (k <= (-9d-241)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (k <= (-1.35d-272)) then
tmp = y2 * (c * ((x * y0) - (t * y4)))
else if (k <= 6.1d-34) then
tmp = (t * y5) * ((a * y2) - (i * j))
else if (k <= 1.04d+34) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (k <= 4.4d+67) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
else if (k <= 8.5d+146) then
tmp = y4 * (y2 * (k * y1))
else
tmp = (y0 * y5) * ((j * y3) - (k * 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 (k <= -1.75e+76) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (k <= -8.5e-92) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (k <= -1.6e-206) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (k <= -9e-241) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (k <= -1.35e-272) {
tmp = y2 * (c * ((x * y0) - (t * y4)));
} else if (k <= 6.1e-34) {
tmp = (t * y5) * ((a * y2) - (i * j));
} else if (k <= 1.04e+34) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 4.4e+67) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (k <= 8.5e+146) {
tmp = y4 * (y2 * (k * y1));
} else {
tmp = (y0 * y5) * ((j * y3) - (k * y2));
}
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.75e+76: tmp = b * (y4 * ((t * j) - (y * k))) elif k <= -8.5e-92: tmp = z * (a * ((y1 * y3) - (t * b))) elif k <= -1.6e-206: tmp = a * (y5 * ((t * y2) - (y * y3))) elif k <= -9e-241: tmp = c * (i * ((z * t) - (x * y))) elif k <= -1.35e-272: tmp = y2 * (c * ((x * y0) - (t * y4))) elif k <= 6.1e-34: tmp = (t * y5) * ((a * y2) - (i * j)) elif k <= 1.04e+34: tmp = (y * a) * ((x * b) - (y3 * y5)) elif k <= 4.4e+67: tmp = y5 * (y2 * ((t * a) - (k * y0))) elif k <= 8.5e+146: tmp = y4 * (y2 * (k * y1)) else: tmp = (y0 * y5) * ((j * y3) - (k * 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 (k <= -1.75e+76) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (k <= -8.5e-92) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (k <= -1.6e-206) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (k <= -9e-241) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (k <= -1.35e-272) tmp = Float64(y2 * Float64(c * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (k <= 6.1e-34) tmp = Float64(Float64(t * y5) * Float64(Float64(a * y2) - Float64(i * j))); elseif (k <= 1.04e+34) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (k <= 4.4e+67) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (k <= 8.5e+146) tmp = Float64(y4 * Float64(y2 * Float64(k * y1))); else tmp = Float64(Float64(y0 * y5) * Float64(Float64(j * y3) - Float64(k * 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 (k <= -1.75e+76) tmp = b * (y4 * ((t * j) - (y * k))); elseif (k <= -8.5e-92) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (k <= -1.6e-206) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (k <= -9e-241) tmp = c * (i * ((z * t) - (x * y))); elseif (k <= -1.35e-272) tmp = y2 * (c * ((x * y0) - (t * y4))); elseif (k <= 6.1e-34) tmp = (t * y5) * ((a * y2) - (i * j)); elseif (k <= 1.04e+34) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (k <= 4.4e+67) tmp = y5 * (y2 * ((t * a) - (k * y0))); elseif (k <= 8.5e+146) tmp = y4 * (y2 * (k * y1)); else tmp = (y0 * y5) * ((j * y3) - (k * 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[k, -1.75e+76], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -8.5e-92], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.6e-206], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -9e-241], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.35e-272], N[(y2 * N[(c * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.1e-34], N[(N[(t * y5), $MachinePrecision] * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.04e+34], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.4e+67], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.5e+146], N[(y4 * N[(y2 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y0 * y5), $MachinePrecision] * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.75 \cdot 10^{+76}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;k \leq -8.5 \cdot 10^{-92}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;k \leq -1.6 \cdot 10^{-206}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq -9 \cdot 10^{-241}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;k \leq -1.35 \cdot 10^{-272}:\\
\;\;\;\;y2 \cdot \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 6.1 \cdot 10^{-34}:\\
\;\;\;\;\left(t \cdot y5\right) \cdot \left(a \cdot y2 - i \cdot j\right)\\
\mathbf{elif}\;k \leq 1.04 \cdot 10^{+34}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;k \leq 4.4 \cdot 10^{+67}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 8.5 \cdot 10^{+146}:\\
\;\;\;\;y4 \cdot \left(y2 \cdot \left(k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y0 \cdot y5\right) \cdot \left(j \cdot y3 - k \cdot y2\right)\\
\end{array}
\end{array}
if k < -1.75e76Initial program 15.2%
associate-+l-15.2%
Simplified15.2%
Taylor expanded in y4 around inf 43.5%
Taylor expanded in b around inf 57.3%
associate-*r*59.4%
Simplified59.4%
if -1.75e76 < k < -8.50000000000000067e-92Initial program 23.9%
associate-+l-23.9%
Simplified23.9%
Taylor expanded in z around -inf 45.6%
Taylor expanded in a around inf 43.7%
mul-1-neg43.7%
sub-neg43.7%
*-commutative43.7%
Simplified43.7%
if -8.50000000000000067e-92 < k < -1.59999999999999988e-206Initial program 38.9%
associate-+l-38.9%
Simplified38.9%
Taylor expanded in a around inf 44.9%
associate--l+44.9%
mul-1-neg44.9%
mul-1-neg44.9%
Simplified44.9%
Taylor expanded in y5 around inf 56.6%
if -1.59999999999999988e-206 < k < -8.9999999999999997e-241Initial program 12.5%
associate-+l-12.5%
Simplified12.5%
Taylor expanded in c around inf 87.3%
mul-1-neg87.3%
Simplified87.3%
Taylor expanded in i around inf 87.3%
if -8.9999999999999997e-241 < k < -1.34999999999999996e-272Initial program 27.3%
associate-+l-27.3%
Simplified27.3%
Taylor expanded in y2 around inf 64.2%
Taylor expanded in c around inf 72.8%
if -1.34999999999999996e-272 < k < 6.0999999999999998e-34Initial program 29.7%
associate-+l-29.7%
Simplified29.7%
Taylor expanded in y5 around -inf 57.3%
mul-1-neg57.3%
associate--l+57.3%
Simplified57.3%
Taylor expanded in t around inf 46.2%
*-commutative46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
if 6.0999999999999998e-34 < k < 1.0399999999999999e34Initial program 9.1%
associate-+l-9.1%
Simplified9.1%
Taylor expanded in a around inf 36.4%
associate--l+36.4%
mul-1-neg36.4%
mul-1-neg36.4%
Simplified36.4%
Taylor expanded in y around inf 72.7%
associate-*r*72.7%
*-commutative72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
Simplified72.7%
if 1.0399999999999999e34 < k < 4.4e67Initial program 40.0%
associate-+l-40.0%
Simplified40.0%
Taylor expanded in y2 around inf 60.0%
Taylor expanded in y5 around inf 82.4%
associate-*r*82.4%
*-commutative82.4%
associate-*l*100.0%
cancel-sign-sub-inv100.0%
metadata-eval100.0%
*-lft-identity100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
if 4.4e67 < k < 8.5e146Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in y1 around inf 50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in k around inf 45.0%
*-commutative45.0%
associate-*r*50.9%
associate-*r*63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
if 8.5e146 < k Initial program 20.4%
associate-+l-20.4%
Simplified20.4%
Taylor expanded in y5 around -inf 43.5%
mul-1-neg43.5%
associate--l+43.5%
Simplified43.5%
Taylor expanded in y0 around inf 44.0%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
Final simplification54.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3)))))
(t_2 (* c (* x (- (* y0 y2) (* y i))))))
(if (<= x -2.35e+213)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= x -2.1e+99)
(* a (* b (- (* x y) (* z t))))
(if (<= x -6.5e+37)
t_2
(if (<= x -6.8e-13)
(* (* t c) (* y4 (- y2)))
(if (<= x -1e-151)
(* a (* y2 (- (* t y5) (* x y1))))
(if (<= x 7e-176)
t_1
(if (<= x 1.6e-40)
(* c (* i (- (* z t) (* x y))))
(if (<= x 3.05e+125) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -2.35e+213) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -2.1e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -6.5e+37) {
tmp = t_2;
} else if (x <= -6.8e-13) {
tmp = (t * c) * (y4 * -y2);
} else if (x <= -1e-151) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (x <= 7e-176) {
tmp = t_1;
} else if (x <= 1.6e-40) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (x <= 3.05e+125) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
t_2 = c * (x * ((y0 * y2) - (y * i)))
if (x <= (-2.35d+213)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (x <= (-2.1d+99)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (x <= (-6.5d+37)) then
tmp = t_2
else if (x <= (-6.8d-13)) then
tmp = (t * c) * (y4 * -y2)
else if (x <= (-1d-151)) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else if (x <= 7d-176) then
tmp = t_1
else if (x <= 1.6d-40) then
tmp = c * (i * ((z * t) - (x * y)))
else if (x <= 3.05d+125) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double t_2 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -2.35e+213) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= -2.1e+99) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -6.5e+37) {
tmp = t_2;
} else if (x <= -6.8e-13) {
tmp = (t * c) * (y4 * -y2);
} else if (x <= -1e-151) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (x <= 7e-176) {
tmp = t_1;
} else if (x <= 1.6e-40) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (x <= 3.05e+125) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * ((t * y2) - (y * y3))) t_2 = c * (x * ((y0 * y2) - (y * i))) tmp = 0 if x <= -2.35e+213: tmp = c * (y2 * ((x * y0) - (t * y4))) elif x <= -2.1e+99: tmp = a * (b * ((x * y) - (z * t))) elif x <= -6.5e+37: tmp = t_2 elif x <= -6.8e-13: tmp = (t * c) * (y4 * -y2) elif x <= -1e-151: tmp = a * (y2 * ((t * y5) - (x * y1))) elif x <= 7e-176: tmp = t_1 elif x <= 1.6e-40: tmp = c * (i * ((z * t) - (x * y))) elif x <= 3.05e+125: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) t_2 = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))) tmp = 0.0 if (x <= -2.35e+213) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (x <= -2.1e+99) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (x <= -6.5e+37) tmp = t_2; elseif (x <= -6.8e-13) tmp = Float64(Float64(t * c) * Float64(y4 * Float64(-y2))); elseif (x <= -1e-151) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); elseif (x <= 7e-176) tmp = t_1; elseif (x <= 1.6e-40) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (x <= 3.05e+125) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * ((t * y2) - (y * y3))); t_2 = c * (x * ((y0 * y2) - (y * i))); tmp = 0.0; if (x <= -2.35e+213) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (x <= -2.1e+99) tmp = a * (b * ((x * y) - (z * t))); elseif (x <= -6.5e+37) tmp = t_2; elseif (x <= -6.8e-13) tmp = (t * c) * (y4 * -y2); elseif (x <= -1e-151) tmp = a * (y2 * ((t * y5) - (x * y1))); elseif (x <= 7e-176) tmp = t_1; elseif (x <= 1.6e-40) tmp = c * (i * ((z * t) - (x * y))); elseif (x <= 3.05e+125) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.35e+213], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.1e+99], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.5e+37], t$95$2, If[LessEqual[x, -6.8e-13], N[(N[(t * c), $MachinePrecision] * N[(y4 * (-y2)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1e-151], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-176], t$95$1, If[LessEqual[x, 1.6e-40], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.05e+125], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_2 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{if}\;x \leq -2.35 \cdot 10^{+213}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{+99}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{+37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-13}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(y4 \cdot \left(-y2\right)\right)\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-151}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-176}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-40}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -2.3499999999999999e213Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in y2 around inf 62.0%
if -2.3499999999999999e213 < x < -2.1000000000000001e99Initial program 23.4%
associate-+l-23.4%
Simplified23.4%
Taylor expanded in a around inf 50.1%
associate--l+50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in b around inf 65.8%
if -2.1000000000000001e99 < x < -6.4999999999999998e37 or 3.04999999999999988e125 < x Initial program 16.4%
associate-+l-16.4%
Simplified16.4%
Taylor expanded in c around inf 49.4%
mul-1-neg49.4%
Simplified49.4%
Taylor expanded in x around inf 58.6%
if -6.4999999999999998e37 < x < -6.80000000000000031e-13Initial program 11.1%
associate-+l-11.1%
Simplified11.1%
Taylor expanded in y4 around inf 55.6%
Taylor expanded in y2 around inf 56.6%
associate-*r*56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in k around 0 57.0%
neg-mul-157.0%
*-commutative57.0%
distribute-rgt-neg-in57.0%
Simplified57.0%
if -6.80000000000000031e-13 < x < -9.9999999999999994e-152Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in a around inf 46.5%
associate--l+46.5%
mul-1-neg46.5%
mul-1-neg46.5%
Simplified46.5%
Taylor expanded in y2 around inf 46.7%
if -9.9999999999999994e-152 < x < 7e-176 or 1.60000000000000001e-40 < x < 3.04999999999999988e125Initial program 26.5%
associate-+l-26.5%
Simplified26.5%
Taylor expanded in a around inf 36.8%
associate--l+36.8%
mul-1-neg36.8%
mul-1-neg36.8%
Simplified36.8%
Taylor expanded in y5 around inf 41.4%
if 7e-176 < x < 1.60000000000000001e-40Initial program 24.4%
associate-+l-24.4%
Simplified24.4%
Taylor expanded in c around inf 48.9%
mul-1-neg48.9%
Simplified48.9%
Taylor expanded in i around inf 46.5%
Final simplification50.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* i (- (* z t) (* x y)))))
(t_2 (* (* c y4) (- (* y y3) (* t y2)))))
(if (<= y4 -7.3e+18)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y4 -8.5e-45)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= y4 -1.42e-71)
t_2
(if (<= y4 -1.75e-130)
t_1
(if (<= y4 3.1e-305)
(* a (* y2 (- (* t y5) (* x y1))))
(if (<= y4 1.6e-60)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y4 1.55e+104)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y4 1.5e+130) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * ((z * t) - (x * y)));
double t_2 = (c * y4) * ((y * y3) - (t * y2));
double tmp;
if (y4 <= -7.3e+18) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y4 <= -8.5e-45) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (y4 <= -1.42e-71) {
tmp = t_2;
} else if (y4 <= -1.75e-130) {
tmp = t_1;
} else if (y4 <= 3.1e-305) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (y4 <= 1.6e-60) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y4 <= 1.55e+104) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y4 <= 1.5e+130) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (i * ((z * t) - (x * y)))
t_2 = (c * y4) * ((y * y3) - (t * y2))
if (y4 <= (-7.3d+18)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y4 <= (-8.5d-45)) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (y4 <= (-1.42d-71)) then
tmp = t_2
else if (y4 <= (-1.75d-130)) then
tmp = t_1
else if (y4 <= 3.1d-305) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else if (y4 <= 1.6d-60) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y4 <= 1.55d+104) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y4 <= 1.5d+130) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * ((z * t) - (x * y)));
double t_2 = (c * y4) * ((y * y3) - (t * y2));
double tmp;
if (y4 <= -7.3e+18) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y4 <= -8.5e-45) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (y4 <= -1.42e-71) {
tmp = t_2;
} else if (y4 <= -1.75e-130) {
tmp = t_1;
} else if (y4 <= 3.1e-305) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (y4 <= 1.6e-60) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y4 <= 1.55e+104) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y4 <= 1.5e+130) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (i * ((z * t) - (x * y))) t_2 = (c * y4) * ((y * y3) - (t * y2)) tmp = 0 if y4 <= -7.3e+18: tmp = b * (y4 * ((t * j) - (y * k))) elif y4 <= -8.5e-45: tmp = (y * a) * ((x * b) - (y3 * y5)) elif y4 <= -1.42e-71: tmp = t_2 elif y4 <= -1.75e-130: tmp = t_1 elif y4 <= 3.1e-305: tmp = a * (y2 * ((t * y5) - (x * y1))) elif y4 <= 1.6e-60: tmp = c * (x * ((y0 * y2) - (y * i))) elif y4 <= 1.55e+104: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y4 <= 1.5e+130: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))) t_2 = Float64(Float64(c * y4) * Float64(Float64(y * y3) - Float64(t * y2))) tmp = 0.0 if (y4 <= -7.3e+18) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y4 <= -8.5e-45) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (y4 <= -1.42e-71) tmp = t_2; elseif (y4 <= -1.75e-130) tmp = t_1; elseif (y4 <= 3.1e-305) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); elseif (y4 <= 1.6e-60) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y4 <= 1.55e+104) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y4 <= 1.5e+130) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (i * ((z * t) - (x * y))); t_2 = (c * y4) * ((y * y3) - (t * y2)); tmp = 0.0; if (y4 <= -7.3e+18) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y4 <= -8.5e-45) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (y4 <= -1.42e-71) tmp = t_2; elseif (y4 <= -1.75e-130) tmp = t_1; elseif (y4 <= 3.1e-305) tmp = a * (y2 * ((t * y5) - (x * y1))); elseif (y4 <= 1.6e-60) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y4 <= 1.55e+104) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y4 <= 1.5e+130) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y4), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -7.3e+18], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.5e-45], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.42e-71], t$95$2, If[LessEqual[y4, -1.75e-130], t$95$1, If[LessEqual[y4, 3.1e-305], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.6e-60], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e+104], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.5e+130], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
t_2 := \left(c \cdot y4\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\\
\mathbf{if}\;y4 \leq -7.3 \cdot 10^{+18}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -8.5 \cdot 10^{-45}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;y4 \leq -1.42 \cdot 10^{-71}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y4 \leq -1.75 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq 3.1 \cdot 10^{-305}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 1.6 \cdot 10^{-60}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y4 \leq 1.55 \cdot 10^{+104}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq 1.5 \cdot 10^{+130}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y4 < -7.3e18Initial program 21.6%
associate-+l-21.6%
Simplified21.6%
Taylor expanded in y4 around inf 51.4%
Taylor expanded in b around inf 46.3%
associate-*r*51.8%
Simplified51.8%
if -7.3e18 < y4 < -8.50000000000000041e-45Initial program 9.7%
associate-+l-9.7%
Simplified9.7%
Taylor expanded in a around inf 36.6%
associate--l+36.6%
mul-1-neg36.6%
mul-1-neg36.6%
Simplified36.6%
Taylor expanded in y around inf 64.5%
associate-*r*64.5%
*-commutative64.5%
+-commutative64.5%
mul-1-neg64.5%
unsub-neg64.5%
*-commutative64.5%
Simplified64.5%
if -8.50000000000000041e-45 < y4 < -1.4199999999999999e-71 or 1.5e130 < y4 Initial program 9.1%
associate-+l-9.1%
Simplified9.1%
Taylor expanded in y4 around inf 38.7%
Taylor expanded in c around inf 57.3%
associate-*r*52.9%
Simplified52.9%
if -1.4199999999999999e-71 < y4 < -1.75e-130 or 1.55000000000000008e104 < y4 < 1.5e130Initial program 18.2%
associate-+l-18.2%
Simplified18.2%
Taylor expanded in c around inf 46.1%
mul-1-neg46.1%
Simplified46.1%
Taylor expanded in i around inf 60.2%
if -1.75e-130 < y4 < 3.0999999999999998e-305Initial program 29.3%
associate-+l-29.3%
Simplified29.3%
Taylor expanded in a around inf 41.9%
associate--l+41.9%
mul-1-neg41.9%
mul-1-neg41.9%
Simplified41.9%
Taylor expanded in y2 around inf 45.1%
if 3.0999999999999998e-305 < y4 < 1.6000000000000001e-60Initial program 37.0%
associate-+l-37.0%
Simplified37.0%
Taylor expanded in c around inf 56.0%
mul-1-neg56.0%
Simplified56.0%
Taylor expanded in x around inf 47.8%
if 1.6000000000000001e-60 < y4 < 1.55000000000000008e104Initial program 26.3%
associate-+l-26.3%
Simplified26.3%
Taylor expanded in y4 around inf 40.2%
Taylor expanded in y1 around inf 45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Final simplification50.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* z (* i (- (* t c) (* k y1))))))
(if (<= a -1.05e+160)
(* y5 (* y2 (- (* t a) (* k y0))))
(if (<= a -3.8e+19)
(* (* c y4) (- (* y y3) (* t y2)))
(if (<= a -3e-51)
(* b (* y4 (- (* t j) (* y k))))
(if (<= a -2.55e-66)
t_1
(if (<= a -1e-277)
(* z (* k (- (* b y0) (* i y1))))
(if (<= a 1.22e-171)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= a 8.5e-56)
t_1
(if (<= a 9.5e+146)
(* a (* y2 (- (* t y5) (* x y1))))
(* (* y a) (- (* x b) (* y3 y5)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = z * (i * ((t * c) - (k * y1)));
double tmp;
if (a <= -1.05e+160) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (a <= -3.8e+19) {
tmp = (c * y4) * ((y * y3) - (t * y2));
} else if (a <= -3e-51) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (a <= -2.55e-66) {
tmp = t_1;
} else if (a <= -1e-277) {
tmp = z * (k * ((b * y0) - (i * y1)));
} else if (a <= 1.22e-171) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 8.5e-56) {
tmp = t_1;
} else if (a <= 9.5e+146) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = z * (i * ((t * c) - (k * y1)))
if (a <= (-1.05d+160)) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
else if (a <= (-3.8d+19)) then
tmp = (c * y4) * ((y * y3) - (t * y2))
else if (a <= (-3d-51)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (a <= (-2.55d-66)) then
tmp = t_1
else if (a <= (-1d-277)) then
tmp = z * (k * ((b * y0) - (i * y1)))
else if (a <= 1.22d-171) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (a <= 8.5d-56) then
tmp = t_1
else if (a <= 9.5d+146) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else
tmp = (y * a) * ((x * b) - (y3 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = z * (i * ((t * c) - (k * y1)));
double tmp;
if (a <= -1.05e+160) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else if (a <= -3.8e+19) {
tmp = (c * y4) * ((y * y3) - (t * y2));
} else if (a <= -3e-51) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (a <= -2.55e-66) {
tmp = t_1;
} else if (a <= -1e-277) {
tmp = z * (k * ((b * y0) - (i * y1)));
} else if (a <= 1.22e-171) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 8.5e-56) {
tmp = t_1;
} else if (a <= 9.5e+146) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = z * (i * ((t * c) - (k * y1))) tmp = 0 if a <= -1.05e+160: tmp = y5 * (y2 * ((t * a) - (k * y0))) elif a <= -3.8e+19: tmp = (c * y4) * ((y * y3) - (t * y2)) elif a <= -3e-51: tmp = b * (y4 * ((t * j) - (y * k))) elif a <= -2.55e-66: tmp = t_1 elif a <= -1e-277: tmp = z * (k * ((b * y0) - (i * y1))) elif a <= 1.22e-171: tmp = c * (x * ((y0 * y2) - (y * i))) elif a <= 8.5e-56: tmp = t_1 elif a <= 9.5e+146: tmp = a * (y2 * ((t * y5) - (x * y1))) else: tmp = (y * a) * ((x * b) - (y3 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(z * Float64(i * Float64(Float64(t * c) - Float64(k * y1)))) tmp = 0.0 if (a <= -1.05e+160) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); elseif (a <= -3.8e+19) tmp = Float64(Float64(c * y4) * Float64(Float64(y * y3) - Float64(t * y2))); elseif (a <= -3e-51) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (a <= -2.55e-66) tmp = t_1; elseif (a <= -1e-277) tmp = Float64(z * Float64(k * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= 1.22e-171) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (a <= 8.5e-56) tmp = t_1; elseif (a <= 9.5e+146) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); else tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = z * (i * ((t * c) - (k * y1))); tmp = 0.0; if (a <= -1.05e+160) tmp = y5 * (y2 * ((t * a) - (k * y0))); elseif (a <= -3.8e+19) tmp = (c * y4) * ((y * y3) - (t * y2)); elseif (a <= -3e-51) tmp = b * (y4 * ((t * j) - (y * k))); elseif (a <= -2.55e-66) tmp = t_1; elseif (a <= -1e-277) tmp = z * (k * ((b * y0) - (i * y1))); elseif (a <= 1.22e-171) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (a <= 8.5e-56) tmp = t_1; elseif (a <= 9.5e+146) tmp = a * (y2 * ((t * y5) - (x * y1))); else tmp = (y * a) * ((x * b) - (y3 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(z * N[(i * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.05e+160], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e+19], N[(N[(c * y4), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3e-51], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.55e-66], t$95$1, If[LessEqual[a, -1e-277], N[(z * N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.22e-171], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-56], t$95$1, If[LessEqual[a, 9.5e+146], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(i \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{+160}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{+19}:\\
\;\;\;\;\left(c \cdot y4\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-51}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-277}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 1.22 \cdot 10^{-171}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+146}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\end{array}
\end{array}
if a < -1.04999999999999998e160Initial program 30.8%
associate-+l-30.8%
Simplified30.8%
Taylor expanded in y2 around inf 61.9%
Taylor expanded in y5 around inf 66.0%
associate-*r*69.7%
*-commutative69.7%
associate-*l*66.0%
cancel-sign-sub-inv66.0%
metadata-eval66.0%
*-lft-identity66.0%
+-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
Simplified66.0%
if -1.04999999999999998e160 < a < -3.8e19Initial program 16.1%
associate-+l-16.1%
Simplified16.1%
Taylor expanded in y4 around inf 58.3%
Taylor expanded in c around inf 58.7%
associate-*r*52.7%
Simplified52.7%
if -3.8e19 < a < -3.00000000000000002e-51Initial program 21.1%
associate-+l-21.1%
Simplified21.1%
Taylor expanded in y4 around inf 26.9%
Taylor expanded in b around inf 53.4%
associate-*r*53.4%
Simplified53.4%
if -3.00000000000000002e-51 < a < -2.55000000000000011e-66 or 1.2199999999999999e-171 < a < 8.49999999999999932e-56Initial program 21.7%
associate-+l-21.7%
Simplified21.7%
Taylor expanded in z around -inf 36.5%
Taylor expanded in i around inf 51.3%
associate-*r*57.9%
distribute-lft-out--57.9%
associate-*r*57.9%
mul-1-neg57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
if -2.55000000000000011e-66 < a < -9.99999999999999969e-278Initial program 30.4%
associate-+l-30.4%
Simplified30.4%
Taylor expanded in z around -inf 39.8%
Taylor expanded in k around inf 40.1%
if -9.99999999999999969e-278 < a < 1.2199999999999999e-171Initial program 29.5%
associate-+l-29.5%
Simplified29.5%
Taylor expanded in c around inf 44.4%
mul-1-neg44.4%
Simplified44.4%
Taylor expanded in x around inf 49.7%
if 8.49999999999999932e-56 < a < 9.49999999999999926e146Initial program 20.6%
associate-+l-20.6%
Simplified20.6%
Taylor expanded in a around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in y2 around inf 50.9%
if 9.49999999999999926e146 < a Initial program 9.5%
associate-+l-9.5%
Simplified9.5%
Taylor expanded in a around inf 52.6%
associate--l+52.6%
mul-1-neg52.6%
mul-1-neg52.6%
Simplified52.6%
Taylor expanded in y around inf 67.1%
associate-*r*67.1%
*-commutative67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
Final simplification52.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y2 (- (* t y5) (* x y1)))))
(t_2 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= x -3.4e-16)
(* a (* b (- (* x y) (* z t))))
(if (<= x -9.5e-154)
t_1
(if (<= x 9.5e-253)
(* (* k (* i y1)) (- z))
(if (<= x 1.75e-179)
t_2
(if (<= x 3.5e-119)
(* b (* (- k) (* y y4)))
(if (<= x 1.42e+107) 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 = a * (y2 * ((t * y5) - (x * y1)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (x <= -3.4e-16) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -9.5e-154) {
tmp = t_1;
} else if (x <= 9.5e-253) {
tmp = (k * (i * y1)) * -z;
} else if (x <= 1.75e-179) {
tmp = t_2;
} else if (x <= 3.5e-119) {
tmp = b * (-k * (y * y4));
} else if (x <= 1.42e+107) {
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 = a * (y2 * ((t * y5) - (x * y1)))
t_2 = a * (y5 * ((t * y2) - (y * y3)))
if (x <= (-3.4d-16)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (x <= (-9.5d-154)) then
tmp = t_1
else if (x <= 9.5d-253) then
tmp = (k * (i * y1)) * -z
else if (x <= 1.75d-179) then
tmp = t_2
else if (x <= 3.5d-119) then
tmp = b * (-k * (y * y4))
else if (x <= 1.42d+107) 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 = a * (y2 * ((t * y5) - (x * y1)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (x <= -3.4e-16) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (x <= -9.5e-154) {
tmp = t_1;
} else if (x <= 9.5e-253) {
tmp = (k * (i * y1)) * -z;
} else if (x <= 1.75e-179) {
tmp = t_2;
} else if (x <= 3.5e-119) {
tmp = b * (-k * (y * y4));
} else if (x <= 1.42e+107) {
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 = a * (y2 * ((t * y5) - (x * y1))) t_2 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if x <= -3.4e-16: tmp = a * (b * ((x * y) - (z * t))) elif x <= -9.5e-154: tmp = t_1 elif x <= 9.5e-253: tmp = (k * (i * y1)) * -z elif x <= 1.75e-179: tmp = t_2 elif x <= 3.5e-119: tmp = b * (-k * (y * y4)) elif x <= 1.42e+107: 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(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))) t_2 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (x <= -3.4e-16) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (x <= -9.5e-154) tmp = t_1; elseif (x <= 9.5e-253) tmp = Float64(Float64(k * Float64(i * y1)) * Float64(-z)); elseif (x <= 1.75e-179) tmp = t_2; elseif (x <= 3.5e-119) tmp = Float64(b * Float64(Float64(-k) * Float64(y * y4))); elseif (x <= 1.42e+107) 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 = a * (y2 * ((t * y5) - (x * y1))); t_2 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (x <= -3.4e-16) tmp = a * (b * ((x * y) - (z * t))); elseif (x <= -9.5e-154) tmp = t_1; elseif (x <= 9.5e-253) tmp = (k * (i * y1)) * -z; elseif (x <= 1.75e-179) tmp = t_2; elseif (x <= 3.5e-119) tmp = b * (-k * (y * y4)); elseif (x <= 1.42e+107) 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[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e-16], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.5e-154], t$95$1, If[LessEqual[x, 9.5e-253], N[(N[(k * N[(i * y1), $MachinePrecision]), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[x, 1.75e-179], t$95$2, If[LessEqual[x, 3.5e-119], N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.42e+107], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
t_2 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{-16}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-253}:\\
\;\;\;\;\left(k \cdot \left(i \cdot y1\right)\right) \cdot \left(-z\right)\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-179}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 1.42 \cdot 10^{+107}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -3.4e-16Initial program 24.7%
associate-+l-24.7%
Simplified24.7%
Taylor expanded in a around inf 41.8%
associate--l+41.8%
mul-1-neg41.8%
mul-1-neg41.8%
Simplified41.8%
Taylor expanded in b around inf 42.2%
if -3.4e-16 < x < -9.50000000000000057e-154 or 1.42000000000000006e107 < x Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in a around inf 33.9%
associate--l+33.9%
mul-1-neg33.9%
mul-1-neg33.9%
Simplified33.9%
Taylor expanded in y2 around inf 48.0%
if -9.50000000000000057e-154 < x < 9.5e-253Initial program 30.7%
associate-+l-30.7%
Simplified30.7%
Taylor expanded in z around -inf 41.7%
Taylor expanded in k around inf 44.3%
Taylor expanded in y1 around inf 34.2%
if 9.5e-253 < x < 1.75000000000000012e-179 or 3.5e-119 < x < 1.42000000000000006e107Initial program 24.8%
associate-+l-24.8%
Simplified24.8%
Taylor expanded in a around inf 37.6%
associate--l+37.6%
mul-1-neg37.6%
mul-1-neg37.6%
Simplified37.6%
Taylor expanded in y5 around inf 48.3%
if 1.75000000000000012e-179 < x < 3.5e-119Initial program 26.7%
associate-+l-26.7%
Simplified26.7%
Taylor expanded in y4 around inf 54.0%
Taylor expanded in b around inf 41.1%
associate-*r*41.1%
Simplified41.1%
Taylor expanded in t around 0 47.5%
mul-1-neg47.5%
*-commutative47.5%
distribute-rgt-neg-in47.5%
Simplified47.5%
Final simplification44.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i))))))
(if (<= c -3.4e+52)
t_1
(if (<= c -4.5e-147)
(* a (* b (- (* x y) (* z t))))
(if (<= c -2.3e-216)
(* a (* y2 (- (* t y5) (* x y1))))
(if (<= c -2.6e-252)
(* y4 (* t (* b j)))
(if (<= c 5.4e-201)
(* b (* (- k) (* y y4)))
(if (<= c 1.8e+73) (* a (* y5 (- (* t y2) (* y y3)))) 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 * (y * ((y3 * y4) - (x * i)));
double tmp;
if (c <= -3.4e+52) {
tmp = t_1;
} else if (c <= -4.5e-147) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (c <= -2.3e-216) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (c <= -2.6e-252) {
tmp = y4 * (t * (b * j));
} else if (c <= 5.4e-201) {
tmp = b * (-k * (y * y4));
} else if (c <= 1.8e+73) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} 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 * (y * ((y3 * y4) - (x * i)))
if (c <= (-3.4d+52)) then
tmp = t_1
else if (c <= (-4.5d-147)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (c <= (-2.3d-216)) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else if (c <= (-2.6d-252)) then
tmp = y4 * (t * (b * j))
else if (c <= 5.4d-201) then
tmp = b * (-k * (y * y4))
else if (c <= 1.8d+73) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
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 * (y * ((y3 * y4) - (x * i)));
double tmp;
if (c <= -3.4e+52) {
tmp = t_1;
} else if (c <= -4.5e-147) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (c <= -2.3e-216) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else if (c <= -2.6e-252) {
tmp = y4 * (t * (b * j));
} else if (c <= 5.4e-201) {
tmp = b * (-k * (y * y4));
} else if (c <= 1.8e+73) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} 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 * (y * ((y3 * y4) - (x * i))) tmp = 0 if c <= -3.4e+52: tmp = t_1 elif c <= -4.5e-147: tmp = a * (b * ((x * y) - (z * t))) elif c <= -2.3e-216: tmp = a * (y2 * ((t * y5) - (x * y1))) elif c <= -2.6e-252: tmp = y4 * (t * (b * j)) elif c <= 5.4e-201: tmp = b * (-k * (y * y4)) elif c <= 1.8e+73: tmp = a * (y5 * ((t * y2) - (y * y3))) 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(y * Float64(Float64(y3 * y4) - Float64(x * i)))) tmp = 0.0 if (c <= -3.4e+52) tmp = t_1; elseif (c <= -4.5e-147) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (c <= -2.3e-216) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); elseif (c <= -2.6e-252) tmp = Float64(y4 * Float64(t * Float64(b * j))); elseif (c <= 5.4e-201) tmp = Float64(b * Float64(Float64(-k) * Float64(y * y4))); elseif (c <= 1.8e+73) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); 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 * (y * ((y3 * y4) - (x * i))); tmp = 0.0; if (c <= -3.4e+52) tmp = t_1; elseif (c <= -4.5e-147) tmp = a * (b * ((x * y) - (z * t))); elseif (c <= -2.3e-216) tmp = a * (y2 * ((t * y5) - (x * y1))); elseif (c <= -2.6e-252) tmp = y4 * (t * (b * j)); elseif (c <= 5.4e-201) tmp = b * (-k * (y * y4)); elseif (c <= 1.8e+73) tmp = a * (y5 * ((t * y2) - (y * y3))); 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[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.4e+52], t$95$1, If[LessEqual[c, -4.5e-147], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.3e-216], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.6e-252], N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.4e-201], N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e+73], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{if}\;c \leq -3.4 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-147}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;c \leq -2.3 \cdot 10^{-216}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-252}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 5.4 \cdot 10^{-201}:\\
\;\;\;\;b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{+73}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -3.4e52 or 1.7999999999999999e73 < c Initial program 24.5%
associate-+l-24.5%
Simplified24.5%
Taylor expanded in c around inf 59.1%
mul-1-neg59.1%
Simplified59.1%
Taylor expanded in y around -inf 48.8%
mul-1-neg48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
if -3.4e52 < c < -4.49999999999999973e-147Initial program 18.9%
associate-+l-18.9%
Simplified18.9%
Taylor expanded in a around inf 48.9%
associate--l+48.9%
mul-1-neg48.9%
mul-1-neg48.9%
Simplified48.9%
Taylor expanded in b around inf 46.9%
if -4.49999999999999973e-147 < c < -2.29999999999999997e-216Initial program 21.4%
associate-+l-21.4%
Simplified21.4%
Taylor expanded in a around inf 43.5%
associate--l+43.5%
mul-1-neg43.5%
mul-1-neg43.5%
Simplified43.5%
Taylor expanded in y2 around inf 50.9%
if -2.29999999999999997e-216 < c < -2.5999999999999999e-252Initial program 49.8%
associate-+l-49.8%
Simplified49.8%
Taylor expanded in y4 around inf 25.8%
Taylor expanded in b around inf 38.4%
associate-*r*38.4%
Simplified38.4%
Taylor expanded in t around inf 50.6%
if -2.5999999999999999e-252 < c < 5.40000000000000011e-201Initial program 18.0%
associate-+l-18.0%
Simplified18.0%
Taylor expanded in y4 around inf 41.6%
Taylor expanded in b around inf 39.8%
associate-*r*47.1%
Simplified47.1%
Taylor expanded in t around 0 44.6%
mul-1-neg44.6%
*-commutative44.6%
distribute-rgt-neg-in44.6%
Simplified44.6%
if 5.40000000000000011e-201 < c < 1.7999999999999999e73Initial program 25.3%
associate-+l-25.3%
Simplified25.3%
Taylor expanded in a around inf 44.2%
associate--l+44.2%
mul-1-neg44.2%
mul-1-neg44.2%
Simplified44.2%
Taylor expanded in y5 around inf 39.6%
Final simplification45.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (* x y)))) (t_2 (* y4 (* y1 (* j (- y3))))))
(if (<= y3 -8.5e+57)
t_2
(if (<= y3 -6.5e-54)
(* a (* b (* z (- t))))
(if (<= y3 2.3e-297)
(* y4 (* k (* y1 y2)))
(if (<= y3 7.8e-194)
t_1
(if (<= y3 9.2e+79)
(* a (* z (* t (- b))))
(if (<= y3 3.2e+164) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double t_2 = y4 * (y1 * (j * -y3));
double tmp;
if (y3 <= -8.5e+57) {
tmp = t_2;
} else if (y3 <= -6.5e-54) {
tmp = a * (b * (z * -t));
} else if (y3 <= 2.3e-297) {
tmp = y4 * (k * (y1 * y2));
} else if (y3 <= 7.8e-194) {
tmp = t_1;
} else if (y3 <= 9.2e+79) {
tmp = a * (z * (t * -b));
} else if (y3 <= 3.2e+164) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * (x * y))
t_2 = y4 * (y1 * (j * -y3))
if (y3 <= (-8.5d+57)) then
tmp = t_2
else if (y3 <= (-6.5d-54)) then
tmp = a * (b * (z * -t))
else if (y3 <= 2.3d-297) then
tmp = y4 * (k * (y1 * y2))
else if (y3 <= 7.8d-194) then
tmp = t_1
else if (y3 <= 9.2d+79) then
tmp = a * (z * (t * -b))
else if (y3 <= 3.2d+164) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double t_2 = y4 * (y1 * (j * -y3));
double tmp;
if (y3 <= -8.5e+57) {
tmp = t_2;
} else if (y3 <= -6.5e-54) {
tmp = a * (b * (z * -t));
} else if (y3 <= 2.3e-297) {
tmp = y4 * (k * (y1 * y2));
} else if (y3 <= 7.8e-194) {
tmp = t_1;
} else if (y3 <= 9.2e+79) {
tmp = a * (z * (t * -b));
} else if (y3 <= 3.2e+164) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (x * y)) t_2 = y4 * (y1 * (j * -y3)) tmp = 0 if y3 <= -8.5e+57: tmp = t_2 elif y3 <= -6.5e-54: tmp = a * (b * (z * -t)) elif y3 <= 2.3e-297: tmp = y4 * (k * (y1 * y2)) elif y3 <= 7.8e-194: tmp = t_1 elif y3 <= 9.2e+79: tmp = a * (z * (t * -b)) elif y3 <= 3.2e+164: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(x * y))) t_2 = Float64(y4 * Float64(y1 * Float64(j * Float64(-y3)))) tmp = 0.0 if (y3 <= -8.5e+57) tmp = t_2; elseif (y3 <= -6.5e-54) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (y3 <= 2.3e-297) tmp = Float64(y4 * Float64(k * Float64(y1 * y2))); elseif (y3 <= 7.8e-194) tmp = t_1; elseif (y3 <= 9.2e+79) tmp = Float64(a * Float64(z * Float64(t * Float64(-b)))); elseif (y3 <= 3.2e+164) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (x * y)); t_2 = y4 * (y1 * (j * -y3)); tmp = 0.0; if (y3 <= -8.5e+57) tmp = t_2; elseif (y3 <= -6.5e-54) tmp = a * (b * (z * -t)); elseif (y3 <= 2.3e-297) tmp = y4 * (k * (y1 * y2)); elseif (y3 <= 7.8e-194) tmp = t_1; elseif (y3 <= 9.2e+79) tmp = a * (z * (t * -b)); elseif (y3 <= 3.2e+164) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(y1 * N[(j * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -8.5e+57], t$95$2, If[LessEqual[y3, -6.5e-54], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.3e-297], N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.8e-194], t$95$1, If[LessEqual[y3, 9.2e+79], N[(a * N[(z * N[(t * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.2e+164], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
t_2 := y4 \cdot \left(y1 \cdot \left(j \cdot \left(-y3\right)\right)\right)\\
\mathbf{if}\;y3 \leq -8.5 \cdot 10^{+57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y3 \leq -6.5 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 2.3 \cdot 10^{-297}:\\
\;\;\;\;y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 7.8 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq 9.2 \cdot 10^{+79}:\\
\;\;\;\;a \cdot \left(z \cdot \left(t \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{+164}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y3 < -8.5000000000000001e57 or 3.1999999999999998e164 < y3 Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in y4 around inf 39.2%
Taylor expanded in y1 around inf 39.7%
*-commutative39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in k around 0 37.4%
mul-1-neg37.4%
*-commutative37.4%
distribute-rgt-neg-in37.4%
Simplified37.4%
if -8.5000000000000001e57 < y3 < -6.49999999999999991e-54Initial program 22.5%
associate-+l-22.5%
Simplified22.5%
Taylor expanded in a around inf 37.9%
associate--l+37.9%
mul-1-neg37.9%
mul-1-neg37.9%
Simplified37.9%
Taylor expanded in b around inf 30.6%
Taylor expanded in y around 0 38.4%
neg-mul-138.4%
distribute-lft-neg-in38.4%
*-commutative38.4%
Simplified38.4%
if -6.49999999999999991e-54 < y3 < 2.2999999999999999e-297Initial program 21.4%
associate-+l-21.4%
Simplified21.4%
Taylor expanded in y4 around inf 41.9%
Taylor expanded in y1 around inf 22.6%
*-commutative22.6%
*-commutative22.6%
Simplified22.6%
Taylor expanded in k around inf 28.0%
*-commutative28.0%
Simplified28.0%
if 2.2999999999999999e-297 < y3 < 7.7999999999999997e-194 or 9.2000000000000002e79 < y3 < 3.1999999999999998e164Initial program 31.0%
associate-+l-31.0%
Simplified31.0%
Taylor expanded in a around inf 34.0%
associate--l+34.0%
mul-1-neg34.0%
mul-1-neg34.0%
Simplified34.0%
Taylor expanded in b around inf 34.1%
Taylor expanded in y around inf 34.5%
if 7.7999999999999997e-194 < y3 < 9.2000000000000002e79Initial program 27.9%
associate-+l-27.9%
Simplified27.9%
Taylor expanded in a around inf 37.7%
associate--l+37.7%
mul-1-neg37.7%
mul-1-neg37.7%
Simplified37.7%
Taylor expanded in b around inf 30.3%
Taylor expanded in y around 0 23.5%
mul-1-neg23.5%
*-commutative23.5%
associate-*r*25.2%
distribute-rgt-neg-in25.2%
Simplified25.2%
Final simplification32.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (* x y)))))
(if (<= k -5.8e+29)
(* (- b) (* (* y k) y4))
(if (<= k 4.4e-268)
t_1
(if (<= k 1.7e-137)
(* k (* y4 (* y1 y2)))
(if (<= k 1.22e+59)
(* a (* b (* z (- t))))
(if (<= k 3.15e+190)
(* y4 (* y2 (* k y1)))
(if (<= k 1.22e+241) (* y4 (* y1 (* j (- y3)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double tmp;
if (k <= -5.8e+29) {
tmp = -b * ((y * k) * y4);
} else if (k <= 4.4e-268) {
tmp = t_1;
} else if (k <= 1.7e-137) {
tmp = k * (y4 * (y1 * y2));
} else if (k <= 1.22e+59) {
tmp = a * (b * (z * -t));
} else if (k <= 3.15e+190) {
tmp = y4 * (y2 * (k * y1));
} else if (k <= 1.22e+241) {
tmp = y4 * (y1 * (j * -y3));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * (x * y))
if (k <= (-5.8d+29)) then
tmp = -b * ((y * k) * y4)
else if (k <= 4.4d-268) then
tmp = t_1
else if (k <= 1.7d-137) then
tmp = k * (y4 * (y1 * y2))
else if (k <= 1.22d+59) then
tmp = a * (b * (z * -t))
else if (k <= 3.15d+190) then
tmp = y4 * (y2 * (k * y1))
else if (k <= 1.22d+241) then
tmp = y4 * (y1 * (j * -y3))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double tmp;
if (k <= -5.8e+29) {
tmp = -b * ((y * k) * y4);
} else if (k <= 4.4e-268) {
tmp = t_1;
} else if (k <= 1.7e-137) {
tmp = k * (y4 * (y1 * y2));
} else if (k <= 1.22e+59) {
tmp = a * (b * (z * -t));
} else if (k <= 3.15e+190) {
tmp = y4 * (y2 * (k * y1));
} else if (k <= 1.22e+241) {
tmp = y4 * (y1 * (j * -y3));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (x * y)) tmp = 0 if k <= -5.8e+29: tmp = -b * ((y * k) * y4) elif k <= 4.4e-268: tmp = t_1 elif k <= 1.7e-137: tmp = k * (y4 * (y1 * y2)) elif k <= 1.22e+59: tmp = a * (b * (z * -t)) elif k <= 3.15e+190: tmp = y4 * (y2 * (k * y1)) elif k <= 1.22e+241: tmp = y4 * (y1 * (j * -y3)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(x * y))) tmp = 0.0 if (k <= -5.8e+29) tmp = Float64(Float64(-b) * Float64(Float64(y * k) * y4)); elseif (k <= 4.4e-268) tmp = t_1; elseif (k <= 1.7e-137) tmp = Float64(k * Float64(y4 * Float64(y1 * y2))); elseif (k <= 1.22e+59) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (k <= 3.15e+190) tmp = Float64(y4 * Float64(y2 * Float64(k * y1))); elseif (k <= 1.22e+241) tmp = Float64(y4 * Float64(y1 * Float64(j * Float64(-y3)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (x * y)); tmp = 0.0; if (k <= -5.8e+29) tmp = -b * ((y * k) * y4); elseif (k <= 4.4e-268) tmp = t_1; elseif (k <= 1.7e-137) tmp = k * (y4 * (y1 * y2)); elseif (k <= 1.22e+59) tmp = a * (b * (z * -t)); elseif (k <= 3.15e+190) tmp = y4 * (y2 * (k * y1)); elseif (k <= 1.22e+241) tmp = y4 * (y1 * (j * -y3)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -5.8e+29], N[((-b) * N[(N[(y * k), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.4e-268], t$95$1, If[LessEqual[k, 1.7e-137], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.22e+59], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.15e+190], N[(y4 * N[(y2 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.22e+241], N[(y4 * N[(y1 * N[(j * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;k \leq -5.8 \cdot 10^{+29}:\\
\;\;\;\;\left(-b\right) \cdot \left(\left(y \cdot k\right) \cdot y4\right)\\
\mathbf{elif}\;k \leq 4.4 \cdot 10^{-268}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 1.7 \cdot 10^{-137}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 1.22 \cdot 10^{+59}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;k \leq 3.15 \cdot 10^{+190}:\\
\;\;\;\;y4 \cdot \left(y2 \cdot \left(k \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq 1.22 \cdot 10^{+241}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(j \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if k < -5.7999999999999999e29Initial program 17.0%
associate-+l-17.0%
Simplified17.0%
Taylor expanded in y4 around inf 43.5%
Taylor expanded in b around inf 49.9%
associate-*r*51.8%
Simplified51.8%
Taylor expanded in t around 0 45.9%
mul-1-neg45.9%
distribute-lft-neg-out45.9%
*-commutative45.9%
Simplified45.9%
if -5.7999999999999999e29 < k < 4.40000000000000008e-268 or 1.22e241 < k Initial program 24.1%
associate-+l-24.1%
Simplified24.1%
Taylor expanded in a around inf 38.1%
associate--l+38.1%
mul-1-neg38.1%
mul-1-neg38.1%
Simplified38.1%
Taylor expanded in b around inf 30.7%
Taylor expanded in y around inf 23.4%
if 4.40000000000000008e-268 < k < 1.70000000000000007e-137Initial program 39.1%
associate-+l-39.1%
Simplified39.1%
Taylor expanded in y4 around inf 27.6%
Taylor expanded in y1 around inf 23.7%
*-commutative23.7%
*-commutative23.7%
Simplified23.7%
Taylor expanded in k around inf 32.2%
*-commutative32.2%
Simplified32.2%
if 1.70000000000000007e-137 < k < 1.22e59Initial program 23.5%
associate-+l-23.5%
Simplified23.5%
Taylor expanded in a around inf 38.7%
associate--l+38.7%
mul-1-neg38.7%
mul-1-neg38.7%
Simplified38.7%
Taylor expanded in b around inf 27.3%
Taylor expanded in y around 0 33.6%
neg-mul-133.6%
distribute-lft-neg-in33.6%
*-commutative33.6%
Simplified33.6%
if 1.22e59 < k < 3.1500000000000001e190Initial program 18.6%
associate-+l-18.6%
Simplified18.6%
Taylor expanded in y4 around inf 34.0%
Taylor expanded in y1 around inf 37.0%
*-commutative37.0%
*-commutative37.0%
Simplified37.0%
Taylor expanded in k around inf 34.7%
*-commutative34.7%
associate-*r*37.5%
associate-*r*43.4%
*-commutative43.4%
*-commutative43.4%
Simplified43.4%
if 3.1500000000000001e190 < k < 1.22e241Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in y4 around inf 33.8%
Taylor expanded in y1 around inf 44.6%
*-commutative44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in k around 0 56.3%
mul-1-neg56.3%
*-commutative56.3%
distribute-rgt-neg-in56.3%
Simplified56.3%
Final simplification33.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* (- k) (* y y4))))
(t_2 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= y4 -2.05e-10)
t_1
(if (<= y4 -2.7e-164)
t_2
(if (<= y4 -8.5e-220)
(* k (- (* i (* z y1))))
(if (<= y4 1.4e+35) 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 = b * (-k * (y * y4));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y4 <= -2.05e-10) {
tmp = t_1;
} else if (y4 <= -2.7e-164) {
tmp = t_2;
} else if (y4 <= -8.5e-220) {
tmp = k * -(i * (z * y1));
} else if (y4 <= 1.4e+35) {
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 = b * (-k * (y * y4))
t_2 = a * (y5 * ((t * y2) - (y * y3)))
if (y4 <= (-2.05d-10)) then
tmp = t_1
else if (y4 <= (-2.7d-164)) then
tmp = t_2
else if (y4 <= (-8.5d-220)) then
tmp = k * -(i * (z * y1))
else if (y4 <= 1.4d+35) 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 = b * (-k * (y * y4));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y4 <= -2.05e-10) {
tmp = t_1;
} else if (y4 <= -2.7e-164) {
tmp = t_2;
} else if (y4 <= -8.5e-220) {
tmp = k * -(i * (z * y1));
} else if (y4 <= 1.4e+35) {
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 = b * (-k * (y * y4)) t_2 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if y4 <= -2.05e-10: tmp = t_1 elif y4 <= -2.7e-164: tmp = t_2 elif y4 <= -8.5e-220: tmp = k * -(i * (z * y1)) elif y4 <= 1.4e+35: 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(b * Float64(Float64(-k) * Float64(y * y4))) t_2 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (y4 <= -2.05e-10) tmp = t_1; elseif (y4 <= -2.7e-164) tmp = t_2; elseif (y4 <= -8.5e-220) tmp = Float64(k * Float64(-Float64(i * Float64(z * y1)))); elseif (y4 <= 1.4e+35) 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 = b * (-k * (y * y4)); t_2 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (y4 <= -2.05e-10) tmp = t_1; elseif (y4 <= -2.7e-164) tmp = t_2; elseif (y4 <= -8.5e-220) tmp = k * -(i * (z * y1)); elseif (y4 <= 1.4e+35) 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[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.05e-10], t$95$1, If[LessEqual[y4, -2.7e-164], t$95$2, If[LessEqual[y4, -8.5e-220], N[(k * (-N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[y4, 1.4e+35], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
t_2 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;y4 \leq -2.05 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq -2.7 \cdot 10^{-164}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y4 \leq -8.5 \cdot 10^{-220}:\\
\;\;\;\;k \cdot \left(-i \cdot \left(z \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 1.4 \cdot 10^{+35}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y4 < -2.0499999999999999e-10 or 1.39999999999999999e35 < y4 Initial program 17.5%
associate-+l-17.5%
Simplified17.5%
Taylor expanded in y4 around inf 47.7%
Taylor expanded in b around inf 44.8%
associate-*r*48.9%
Simplified48.9%
Taylor expanded in t around 0 43.7%
mul-1-neg43.7%
*-commutative43.7%
distribute-rgt-neg-in43.7%
Simplified43.7%
if -2.0499999999999999e-10 < y4 < -2.7000000000000001e-164 or -8.4999999999999996e-220 < y4 < 1.39999999999999999e35Initial program 27.6%
associate-+l-27.6%
Simplified27.6%
Taylor expanded in a around inf 41.1%
associate--l+41.1%
mul-1-neg41.1%
mul-1-neg41.1%
Simplified41.1%
Taylor expanded in y5 around inf 38.3%
if -2.7000000000000001e-164 < y4 < -8.4999999999999996e-220Initial program 36.4%
associate-+l-36.4%
Simplified36.4%
Taylor expanded in z around -inf 45.7%
Taylor expanded in k around inf 38.0%
Taylor expanded in y1 around inf 20.4%
*-commutative20.4%
associate-*r*46.7%
Simplified46.7%
Final simplification41.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= y5 -7e+35)
t_1
(if (<= y5 2.05e-283)
(* c (* i (- (* z t) (* x y))))
(if (<= y5 3.9e-38)
(* t (* j (* b y4)))
(if (<= y5 1.95e+99) (* a (* y2 (- (* t y5) (* x y1)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -7e+35) {
tmp = t_1;
} else if (y5 <= 2.05e-283) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y5 <= 3.9e-38) {
tmp = t * (j * (b * y4));
} else if (y5 <= 1.95e+99) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
if (y5 <= (-7d+35)) then
tmp = t_1
else if (y5 <= 2.05d-283) then
tmp = c * (i * ((z * t) - (x * y)))
else if (y5 <= 3.9d-38) then
tmp = t * (j * (b * y4))
else if (y5 <= 1.95d+99) then
tmp = a * (y2 * ((t * y5) - (x * y1)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -7e+35) {
tmp = t_1;
} else if (y5 <= 2.05e-283) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y5 <= 3.9e-38) {
tmp = t * (j * (b * y4));
} else if (y5 <= 1.95e+99) {
tmp = a * (y2 * ((t * y5) - (x * y1)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if y5 <= -7e+35: tmp = t_1 elif y5 <= 2.05e-283: tmp = c * (i * ((z * t) - (x * y))) elif y5 <= 3.9e-38: tmp = t * (j * (b * y4)) elif y5 <= 1.95e+99: tmp = a * (y2 * ((t * y5) - (x * y1))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (y5 <= -7e+35) tmp = t_1; elseif (y5 <= 2.05e-283) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (y5 <= 3.9e-38) tmp = Float64(t * Float64(j * Float64(b * y4))); elseif (y5 <= 1.95e+99) tmp = Float64(a * Float64(y2 * Float64(Float64(t * y5) - Float64(x * y1)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (y5 <= -7e+35) tmp = t_1; elseif (y5 <= 2.05e-283) tmp = c * (i * ((z * t) - (x * y))); elseif (y5 <= 3.9e-38) tmp = t * (j * (b * y4)); elseif (y5 <= 1.95e+99) tmp = a * (y2 * ((t * y5) - (x * y1))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -7e+35], t$95$1, If[LessEqual[y5, 2.05e-283], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.9e-38], N[(t * N[(j * N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.95e+99], N[(a * N[(y2 * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;y5 \leq -7 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 2.05 \cdot 10^{-283}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 3.9 \cdot 10^{-38}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 1.95 \cdot 10^{+99}:\\
\;\;\;\;a \cdot \left(y2 \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y5 < -7.0000000000000001e35 or 1.94999999999999997e99 < y5 Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in a around inf 38.7%
associate--l+38.7%
mul-1-neg38.7%
mul-1-neg38.7%
Simplified38.7%
Taylor expanded in y5 around inf 48.3%
if -7.0000000000000001e35 < y5 < 2.04999999999999993e-283Initial program 25.3%
associate-+l-25.3%
Simplified25.3%
Taylor expanded in c around inf 51.0%
mul-1-neg51.0%
Simplified51.0%
Taylor expanded in i around inf 37.1%
if 2.04999999999999993e-283 < y5 < 3.8999999999999999e-38Initial program 40.9%
associate-+l-40.9%
Simplified40.9%
Taylor expanded in y4 around inf 41.8%
Taylor expanded in b around inf 38.8%
associate-*r*38.8%
Simplified38.8%
Taylor expanded in t around inf 32.8%
*-commutative32.8%
associate-*r*35.8%
*-commutative35.8%
associate-*r*35.7%
*-commutative35.7%
*-commutative35.7%
*-commutative35.7%
Simplified35.7%
if 3.8999999999999999e-38 < y5 < 1.94999999999999997e99Initial program 17.4%
associate-+l-17.4%
Simplified17.4%
Taylor expanded in a around inf 48.4%
associate--l+48.4%
mul-1-neg48.4%
mul-1-neg48.4%
Simplified48.4%
Taylor expanded in y2 around inf 61.9%
Final simplification44.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -1.2e+110)
(* k (- (* y4 (* y b))))
(if (<= y4 -8e-125)
(* z (* k (* b y0)))
(if (<= y4 -1.5e-295)
(* k (- (* i (* z y1))))
(if (<= y4 3.6e-121)
(* a (* b (* z (- t))))
(if (<= y4 4.9e-11)
(* y4 (* y1 (* j (- y3))))
(* b (* (- k) (* 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 tmp;
if (y4 <= -1.2e+110) {
tmp = k * -(y4 * (y * b));
} else if (y4 <= -8e-125) {
tmp = z * (k * (b * y0));
} else if (y4 <= -1.5e-295) {
tmp = k * -(i * (z * y1));
} else if (y4 <= 3.6e-121) {
tmp = a * (b * (z * -t));
} else if (y4 <= 4.9e-11) {
tmp = y4 * (y1 * (j * -y3));
} else {
tmp = b * (-k * (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) :: tmp
if (y4 <= (-1.2d+110)) then
tmp = k * -(y4 * (y * b))
else if (y4 <= (-8d-125)) then
tmp = z * (k * (b * y0))
else if (y4 <= (-1.5d-295)) then
tmp = k * -(i * (z * y1))
else if (y4 <= 3.6d-121) then
tmp = a * (b * (z * -t))
else if (y4 <= 4.9d-11) then
tmp = y4 * (y1 * (j * -y3))
else
tmp = b * (-k * (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 tmp;
if (y4 <= -1.2e+110) {
tmp = k * -(y4 * (y * b));
} else if (y4 <= -8e-125) {
tmp = z * (k * (b * y0));
} else if (y4 <= -1.5e-295) {
tmp = k * -(i * (z * y1));
} else if (y4 <= 3.6e-121) {
tmp = a * (b * (z * -t));
} else if (y4 <= 4.9e-11) {
tmp = y4 * (y1 * (j * -y3));
} else {
tmp = b * (-k * (y * y4));
}
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.2e+110: tmp = k * -(y4 * (y * b)) elif y4 <= -8e-125: tmp = z * (k * (b * y0)) elif y4 <= -1.5e-295: tmp = k * -(i * (z * y1)) elif y4 <= 3.6e-121: tmp = a * (b * (z * -t)) elif y4 <= 4.9e-11: tmp = y4 * (y1 * (j * -y3)) else: tmp = b * (-k * (y * 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 (y4 <= -1.2e+110) tmp = Float64(k * Float64(-Float64(y4 * Float64(y * b)))); elseif (y4 <= -8e-125) tmp = Float64(z * Float64(k * Float64(b * y0))); elseif (y4 <= -1.5e-295) tmp = Float64(k * Float64(-Float64(i * Float64(z * y1)))); elseif (y4 <= 3.6e-121) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (y4 <= 4.9e-11) tmp = Float64(y4 * Float64(y1 * Float64(j * Float64(-y3)))); else tmp = Float64(b * Float64(Float64(-k) * 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) tmp = 0.0; if (y4 <= -1.2e+110) tmp = k * -(y4 * (y * b)); elseif (y4 <= -8e-125) tmp = z * (k * (b * y0)); elseif (y4 <= -1.5e-295) tmp = k * -(i * (z * y1)); elseif (y4 <= 3.6e-121) tmp = a * (b * (z * -t)); elseif (y4 <= 4.9e-11) tmp = y4 * (y1 * (j * -y3)); else tmp = b * (-k * (y * y4)); 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.2e+110], N[(k * (-N[(y4 * N[(y * b), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[y4, -8e-125], N[(z * N[(k * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.5e-295], N[(k * (-N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[y4, 3.6e-121], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.9e-11], N[(y4 * N[(y1 * N[(j * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.2 \cdot 10^{+110}:\\
\;\;\;\;k \cdot \left(-y4 \cdot \left(y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -8 \cdot 10^{-125}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq -1.5 \cdot 10^{-295}:\\
\;\;\;\;k \cdot \left(-i \cdot \left(z \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 3.6 \cdot 10^{-121}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 4.9 \cdot 10^{-11}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(j \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\end{array}
\end{array}
if y4 < -1.20000000000000006e110Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in y4 around inf 67.1%
Taylor expanded in b around inf 51.1%
associate-*r*56.3%
Simplified56.3%
Taylor expanded in t around 0 45.1%
if -1.20000000000000006e110 < y4 < -8.0000000000000001e-125Initial program 18.5%
associate-+l-18.5%
Simplified18.5%
Taylor expanded in z around -inf 39.5%
Taylor expanded in k around inf 37.5%
Taylor expanded in y1 around 0 31.6%
associate-*r*31.6%
neg-mul-131.6%
*-commutative31.6%
Simplified31.6%
if -8.0000000000000001e-125 < y4 < -1.49999999999999998e-295Initial program 30.0%
associate-+l-30.0%
Simplified30.0%
Taylor expanded in z around -inf 38.0%
Taylor expanded in k around inf 28.9%
Taylor expanded in y1 around inf 24.0%
*-commutative24.0%
associate-*r*31.2%
Simplified31.2%
if -1.49999999999999998e-295 < y4 < 3.59999999999999984e-121Initial program 36.1%
associate-+l-36.1%
Simplified36.1%
Taylor expanded in a around inf 36.6%
associate--l+36.6%
mul-1-neg36.6%
mul-1-neg36.6%
Simplified36.6%
Taylor expanded in b around inf 31.4%
Taylor expanded in y around 0 24.0%
neg-mul-124.0%
distribute-lft-neg-in24.0%
*-commutative24.0%
Simplified24.0%
if 3.59999999999999984e-121 < y4 < 4.8999999999999999e-11Initial program 36.2%
associate-+l-36.2%
Simplified36.2%
Taylor expanded in y4 around inf 25.9%
Taylor expanded in y1 around inf 30.2%
*-commutative30.2%
*-commutative30.2%
Simplified30.2%
Taylor expanded in k around 0 29.7%
mul-1-neg29.7%
*-commutative29.7%
distribute-rgt-neg-in29.7%
Simplified29.7%
if 4.8999999999999999e-11 < y4 Initial program 14.9%
associate-+l-14.9%
Simplified14.9%
Taylor expanded in y4 around inf 42.1%
Taylor expanded in b around inf 41.3%
associate-*r*44.1%
Simplified44.1%
Taylor expanded in t around 0 45.5%
mul-1-neg45.5%
*-commutative45.5%
distribute-rgt-neg-in45.5%
Simplified45.5%
Final simplification35.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* t (* b j)))))
(if (<= j -2.1e+15)
t_1
(if (<= j -1.05e-257)
(* a (* z (* t (- b))))
(if (<= j 3.1e-220)
(* a (* y (* x b)))
(if (<= j 3.3e+17)
(* a (* b (* z (- t))))
(if (<= j 1.1e+129) (* (* k y2) (* y1 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 = y4 * (t * (b * j));
double tmp;
if (j <= -2.1e+15) {
tmp = t_1;
} else if (j <= -1.05e-257) {
tmp = a * (z * (t * -b));
} else if (j <= 3.1e-220) {
tmp = a * (y * (x * b));
} else if (j <= 3.3e+17) {
tmp = a * (b * (z * -t));
} else if (j <= 1.1e+129) {
tmp = (k * y2) * (y1 * 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 = y4 * (t * (b * j))
if (j <= (-2.1d+15)) then
tmp = t_1
else if (j <= (-1.05d-257)) then
tmp = a * (z * (t * -b))
else if (j <= 3.1d-220) then
tmp = a * (y * (x * b))
else if (j <= 3.3d+17) then
tmp = a * (b * (z * -t))
else if (j <= 1.1d+129) then
tmp = (k * y2) * (y1 * 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 = y4 * (t * (b * j));
double tmp;
if (j <= -2.1e+15) {
tmp = t_1;
} else if (j <= -1.05e-257) {
tmp = a * (z * (t * -b));
} else if (j <= 3.1e-220) {
tmp = a * (y * (x * b));
} else if (j <= 3.3e+17) {
tmp = a * (b * (z * -t));
} else if (j <= 1.1e+129) {
tmp = (k * y2) * (y1 * 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 = y4 * (t * (b * j)) tmp = 0 if j <= -2.1e+15: tmp = t_1 elif j <= -1.05e-257: tmp = a * (z * (t * -b)) elif j <= 3.1e-220: tmp = a * (y * (x * b)) elif j <= 3.3e+17: tmp = a * (b * (z * -t)) elif j <= 1.1e+129: tmp = (k * y2) * (y1 * 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(y4 * Float64(t * Float64(b * j))) tmp = 0.0 if (j <= -2.1e+15) tmp = t_1; elseif (j <= -1.05e-257) tmp = Float64(a * Float64(z * Float64(t * Float64(-b)))); elseif (j <= 3.1e-220) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (j <= 3.3e+17) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (j <= 1.1e+129) tmp = Float64(Float64(k * y2) * Float64(y1 * 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 = y4 * (t * (b * j)); tmp = 0.0; if (j <= -2.1e+15) tmp = t_1; elseif (j <= -1.05e-257) tmp = a * (z * (t * -b)); elseif (j <= 3.1e-220) tmp = a * (y * (x * b)); elseif (j <= 3.3e+17) tmp = a * (b * (z * -t)); elseif (j <= 1.1e+129) tmp = (k * y2) * (y1 * 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[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.1e+15], t$95$1, If[LessEqual[j, -1.05e-257], N[(a * N[(z * N[(t * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e-220], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.3e+17], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e+129], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{if}\;j \leq -2.1 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-257}:\\
\;\;\;\;a \cdot \left(z \cdot \left(t \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-220}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq 3.3 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{+129}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -2.1e15 or 1.1e129 < j Initial program 19.2%
associate-+l-19.2%
Simplified19.2%
Taylor expanded in y4 around inf 28.3%
Taylor expanded in b around inf 36.7%
associate-*r*37.6%
Simplified37.6%
Taylor expanded in t around inf 32.0%
if -2.1e15 < j < -1.05000000000000005e-257Initial program 23.4%
associate-+l-23.4%
Simplified23.4%
Taylor expanded in a around inf 33.3%
associate--l+33.3%
mul-1-neg33.3%
mul-1-neg33.3%
Simplified33.3%
Taylor expanded in b around inf 31.5%
Taylor expanded in y around 0 26.3%
mul-1-neg26.3%
*-commutative26.3%
associate-*r*29.9%
distribute-rgt-neg-in29.9%
Simplified29.9%
if -1.05000000000000005e-257 < j < 3.10000000000000011e-220Initial program 37.8%
associate-+l-37.8%
Simplified37.8%
Taylor expanded in a around inf 41.1%
associate--l+41.1%
mul-1-neg41.1%
mul-1-neg41.1%
Simplified41.1%
Taylor expanded in b around inf 28.1%
Taylor expanded in y around inf 27.8%
if 3.10000000000000011e-220 < j < 3.3e17Initial program 27.6%
associate-+l-27.6%
Simplified27.6%
Taylor expanded in a around inf 33.2%
associate--l+33.2%
mul-1-neg33.2%
mul-1-neg33.2%
Simplified33.2%
Taylor expanded in b around inf 18.6%
Taylor expanded in y around 0 21.1%
neg-mul-121.1%
distribute-lft-neg-in21.1%
*-commutative21.1%
Simplified21.1%
if 3.3e17 < j < 1.1e129Initial program 13.0%
associate-+l-13.0%
Simplified13.0%
Taylor expanded in y4 around inf 27.0%
Taylor expanded in y2 around inf 36.4%
associate-*r*32.2%
*-commutative32.2%
*-commutative32.2%
Simplified32.2%
Taylor expanded in k around inf 36.2%
*-commutative36.2%
associate-*r*40.1%
associate-*l*44.3%
*-commutative44.3%
*-commutative44.3%
Simplified44.3%
Final simplification30.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) (* y y4)))))
(if (<= y4 -3.8e-15)
t_1
(if (<= y4 -8.4e-296)
(* k (- (* i (* z y1))))
(if (<= y4 1.42e-123)
(* a (* b (* z (- t))))
(if (<= y4 1.22e-8) (* y4 (* y1 (* j (- y3)))) 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 * (y * y4));
double tmp;
if (y4 <= -3.8e-15) {
tmp = t_1;
} else if (y4 <= -8.4e-296) {
tmp = k * -(i * (z * y1));
} else if (y4 <= 1.42e-123) {
tmp = a * (b * (z * -t));
} else if (y4 <= 1.22e-8) {
tmp = y4 * (y1 * (j * -y3));
} 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 * (y * y4))
if (y4 <= (-3.8d-15)) then
tmp = t_1
else if (y4 <= (-8.4d-296)) then
tmp = k * -(i * (z * y1))
else if (y4 <= 1.42d-123) then
tmp = a * (b * (z * -t))
else if (y4 <= 1.22d-8) then
tmp = y4 * (y1 * (j * -y3))
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 * (y * y4));
double tmp;
if (y4 <= -3.8e-15) {
tmp = t_1;
} else if (y4 <= -8.4e-296) {
tmp = k * -(i * (z * y1));
} else if (y4 <= 1.42e-123) {
tmp = a * (b * (z * -t));
} else if (y4 <= 1.22e-8) {
tmp = y4 * (y1 * (j * -y3));
} 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 * (y * y4)) tmp = 0 if y4 <= -3.8e-15: tmp = t_1 elif y4 <= -8.4e-296: tmp = k * -(i * (z * y1)) elif y4 <= 1.42e-123: tmp = a * (b * (z * -t)) elif y4 <= 1.22e-8: tmp = y4 * (y1 * (j * -y3)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(Float64(-k) * Float64(y * y4))) tmp = 0.0 if (y4 <= -3.8e-15) tmp = t_1; elseif (y4 <= -8.4e-296) tmp = Float64(k * Float64(-Float64(i * Float64(z * y1)))); elseif (y4 <= 1.42e-123) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (y4 <= 1.22e-8) tmp = Float64(y4 * Float64(y1 * Float64(j * Float64(-y3)))); 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 * (y * y4)); tmp = 0.0; if (y4 <= -3.8e-15) tmp = t_1; elseif (y4 <= -8.4e-296) tmp = k * -(i * (z * y1)); elseif (y4 <= 1.42e-123) tmp = a * (b * (z * -t)); elseif (y4 <= 1.22e-8) tmp = y4 * (y1 * (j * -y3)); 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[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.8e-15], t$95$1, If[LessEqual[y4, -8.4e-296], N[(k * (-N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[y4, 1.42e-123], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.22e-8], N[(y4 * N[(y1 * N[(j * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -3.8 \cdot 10^{-15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq -8.4 \cdot 10^{-296}:\\
\;\;\;\;k \cdot \left(-i \cdot \left(z \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 1.42 \cdot 10^{-123}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 1.22 \cdot 10^{-8}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(j \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y4 < -3.8000000000000002e-15 or 1.22e-8 < y4 Initial program 17.6%
associate-+l-17.6%
Simplified17.6%
Taylor expanded in y4 around inf 46.0%
Taylor expanded in b around inf 42.7%
associate-*r*46.4%
Simplified46.4%
Taylor expanded in t around 0 41.7%
mul-1-neg41.7%
*-commutative41.7%
distribute-rgt-neg-in41.7%
Simplified41.7%
if -3.8000000000000002e-15 < y4 < -8.3999999999999997e-296Initial program 22.5%
associate-+l-22.5%
Simplified22.5%
Taylor expanded in z around -inf 39.3%
Taylor expanded in k around inf 32.6%
Taylor expanded in y1 around inf 21.0%
*-commutative21.0%
associate-*r*25.3%
Simplified25.3%
if -8.3999999999999997e-296 < y4 < 1.42000000000000008e-123Initial program 36.1%
associate-+l-36.1%
Simplified36.1%
Taylor expanded in a around inf 36.6%
associate--l+36.6%
mul-1-neg36.6%
mul-1-neg36.6%
Simplified36.6%
Taylor expanded in b around inf 31.4%
Taylor expanded in y around 0 24.0%
neg-mul-124.0%
distribute-lft-neg-in24.0%
*-commutative24.0%
Simplified24.0%
if 1.42000000000000008e-123 < y4 < 1.22e-8Initial program 36.2%
associate-+l-36.2%
Simplified36.2%
Taylor expanded in y4 around inf 25.9%
Taylor expanded in y1 around inf 30.2%
*-commutative30.2%
*-commutative30.2%
Simplified30.2%
Taylor expanded in k around 0 29.7%
mul-1-neg29.7%
*-commutative29.7%
distribute-rgt-neg-in29.7%
Simplified29.7%
Final simplification33.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* t (* b j)))))
(if (<= x -1.6e+23)
(* a (* y (* x b)))
(if (<= x 1.15e-281)
t_1
(if (<= x 2.3e-144)
(* k (* y4 (* y1 y2)))
(if (<= x 2.2e+126) t_1 (* a (* b (* x y)))))))))
double code(double x, double y, double z, double t, double a, double 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 * (t * (b * j));
double tmp;
if (x <= -1.6e+23) {
tmp = a * (y * (x * b));
} else if (x <= 1.15e-281) {
tmp = t_1;
} else if (x <= 2.3e-144) {
tmp = k * (y4 * (y1 * y2));
} else if (x <= 2.2e+126) {
tmp = t_1;
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y4 * (t * (b * j))
if (x <= (-1.6d+23)) then
tmp = a * (y * (x * b))
else if (x <= 1.15d-281) then
tmp = t_1
else if (x <= 2.3d-144) then
tmp = k * (y4 * (y1 * y2))
else if (x <= 2.2d+126) then
tmp = t_1
else
tmp = a * (b * (x * y))
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 * (t * (b * j));
double tmp;
if (x <= -1.6e+23) {
tmp = a * (y * (x * b));
} else if (x <= 1.15e-281) {
tmp = t_1;
} else if (x <= 2.3e-144) {
tmp = k * (y4 * (y1 * y2));
} else if (x <= 2.2e+126) {
tmp = t_1;
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (t * (b * j)) tmp = 0 if x <= -1.6e+23: tmp = a * (y * (x * b)) elif x <= 1.15e-281: tmp = t_1 elif x <= 2.3e-144: tmp = k * (y4 * (y1 * y2)) elif x <= 2.2e+126: tmp = t_1 else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(t * Float64(b * j))) tmp = 0.0 if (x <= -1.6e+23) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 1.15e-281) tmp = t_1; elseif (x <= 2.3e-144) tmp = Float64(k * Float64(y4 * Float64(y1 * y2))); elseif (x <= 2.2e+126) tmp = t_1; else tmp = Float64(a * Float64(b * Float64(x * y))); 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 * (t * (b * j)); tmp = 0.0; if (x <= -1.6e+23) tmp = a * (y * (x * b)); elseif (x <= 1.15e-281) tmp = t_1; elseif (x <= 2.3e-144) tmp = k * (y4 * (y1 * y2)); elseif (x <= 2.2e+126) tmp = t_1; else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.6e+23], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e-281], t$95$1, If[LessEqual[x, 2.3e-144], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.2e+126], t$95$1, N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{if}\;x \leq -1.6 \cdot 10^{+23}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-144}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{+126}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -1.6e23Initial program 25.5%
associate-+l-25.5%
Simplified25.5%
Taylor expanded in a around inf 42.6%
associate--l+42.6%
mul-1-neg42.6%
mul-1-neg42.6%
Simplified42.6%
Taylor expanded in b around inf 43.1%
Taylor expanded in y around inf 33.4%
if -1.6e23 < x < 1.14999999999999994e-281 or 2.3e-144 < x < 2.19999999999999999e126Initial program 24.1%
associate-+l-24.1%
Simplified24.1%
Taylor expanded in y4 around inf 34.7%
Taylor expanded in b around inf 33.6%
associate-*r*34.4%
Simplified34.4%
Taylor expanded in t around inf 26.5%
if 1.14999999999999994e-281 < x < 2.3e-144Initial program 28.8%
associate-+l-28.8%
Simplified28.8%
Taylor expanded in y4 around inf 27.3%
Taylor expanded in y1 around inf 27.1%
*-commutative27.1%
*-commutative27.1%
Simplified27.1%
Taylor expanded in k around inf 27.8%
*-commutative27.8%
Simplified27.8%
if 2.19999999999999999e126 < x Initial program 14.0%
associate-+l-14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
associate--l+26.1%
mul-1-neg26.1%
mul-1-neg26.1%
Simplified26.1%
Taylor expanded in b around inf 30.9%
Taylor expanded in y around inf 35.7%
Final simplification29.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -1.7e+27)
(* y4 (* y1 (* j (- y3))))
(if (<= j -1.85e-300)
(* a (* z (* t (- b))))
(if (<= j 1.1e-59)
(* c (* (* t y2) (- y4)))
(if (<= j 5.2e+127) (* (* k y2) (* y1 y4)) (* y4 (* t (* b j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1.7e+27) {
tmp = y4 * (y1 * (j * -y3));
} else if (j <= -1.85e-300) {
tmp = a * (z * (t * -b));
} else if (j <= 1.1e-59) {
tmp = c * ((t * y2) * -y4);
} else if (j <= 5.2e+127) {
tmp = (k * y2) * (y1 * y4);
} else {
tmp = y4 * (t * (b * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (j <= (-1.7d+27)) then
tmp = y4 * (y1 * (j * -y3))
else if (j <= (-1.85d-300)) then
tmp = a * (z * (t * -b))
else if (j <= 1.1d-59) then
tmp = c * ((t * y2) * -y4)
else if (j <= 5.2d+127) then
tmp = (k * y2) * (y1 * y4)
else
tmp = y4 * (t * (b * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1.7e+27) {
tmp = y4 * (y1 * (j * -y3));
} else if (j <= -1.85e-300) {
tmp = a * (z * (t * -b));
} else if (j <= 1.1e-59) {
tmp = c * ((t * y2) * -y4);
} else if (j <= 5.2e+127) {
tmp = (k * y2) * (y1 * y4);
} else {
tmp = y4 * (t * (b * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -1.7e+27: tmp = y4 * (y1 * (j * -y3)) elif j <= -1.85e-300: tmp = a * (z * (t * -b)) elif j <= 1.1e-59: tmp = c * ((t * y2) * -y4) elif j <= 5.2e+127: tmp = (k * y2) * (y1 * y4) else: tmp = y4 * (t * (b * j)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -1.7e+27) tmp = Float64(y4 * Float64(y1 * Float64(j * Float64(-y3)))); elseif (j <= -1.85e-300) tmp = Float64(a * Float64(z * Float64(t * Float64(-b)))); elseif (j <= 1.1e-59) tmp = Float64(c * Float64(Float64(t * y2) * Float64(-y4))); elseif (j <= 5.2e+127) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); else tmp = Float64(y4 * Float64(t * Float64(b * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -1.7e+27) tmp = y4 * (y1 * (j * -y3)); elseif (j <= -1.85e-300) tmp = a * (z * (t * -b)); elseif (j <= 1.1e-59) tmp = c * ((t * y2) * -y4); elseif (j <= 5.2e+127) tmp = (k * y2) * (y1 * y4); else tmp = y4 * (t * (b * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -1.7e+27], N[(y4 * N[(y1 * N[(j * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.85e-300], N[(a * N[(z * N[(t * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e-59], N[(c * N[(N[(t * y2), $MachinePrecision] * (-y4)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e+127], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.7 \cdot 10^{+27}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(j \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;j \leq -1.85 \cdot 10^{-300}:\\
\;\;\;\;a \cdot \left(z \cdot \left(t \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-59}:\\
\;\;\;\;c \cdot \left(\left(t \cdot y2\right) \cdot \left(-y4\right)\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{+127}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\end{array}
\end{array}
if j < -1.7e27Initial program 17.3%
associate-+l-17.3%
Simplified17.3%
Taylor expanded in y4 around inf 29.1%
Taylor expanded in y1 around inf 29.7%
*-commutative29.7%
*-commutative29.7%
Simplified29.7%
Taylor expanded in k around 0 29.9%
mul-1-neg29.9%
*-commutative29.9%
distribute-rgt-neg-in29.9%
Simplified29.9%
if -1.7e27 < j < -1.8500000000000001e-300Initial program 30.2%
associate-+l-30.2%
Simplified30.2%
Taylor expanded in a around inf 35.0%
associate--l+35.0%
mul-1-neg35.0%
mul-1-neg35.0%
Simplified35.0%
Taylor expanded in b around inf 32.5%
Taylor expanded in y around 0 21.5%
mul-1-neg21.5%
*-commutative21.5%
associate-*r*25.6%
distribute-rgt-neg-in25.6%
Simplified25.6%
if -1.8500000000000001e-300 < j < 1.0999999999999999e-59Initial program 29.5%
associate-+l-29.5%
Simplified29.5%
Taylor expanded in y4 around inf 38.1%
Taylor expanded in y2 around inf 26.5%
associate-*r*22.7%
*-commutative22.7%
*-commutative22.7%
Simplified22.7%
Taylor expanded in k around 0 21.1%
associate-*r*21.1%
neg-mul-121.1%
Simplified21.1%
if 1.0999999999999999e-59 < j < 5.2000000000000004e127Initial program 11.8%
associate-+l-11.8%
Simplified11.8%
Taylor expanded in y4 around inf 39.1%
Taylor expanded in y2 around inf 37.0%
associate-*r*34.1%
*-commutative34.1%
*-commutative34.1%
Simplified34.1%
Taylor expanded in k around inf 31.1%
*-commutative31.1%
associate-*r*36.6%
associate-*l*42.2%
*-commutative42.2%
*-commutative42.2%
Simplified42.2%
if 5.2000000000000004e127 < j Initial program 22.4%
associate-+l-22.4%
Simplified22.4%
Taylor expanded in y4 around inf 27.2%
Taylor expanded in b around inf 37.5%
associate-*r*37.5%
Simplified37.5%
Taylor expanded in t around inf 37.6%
Final simplification30.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -5e+87)
(* (* t c) (* y4 (- y2)))
(if (<= c -1.95e-256)
(* a (* b (- (* x y) (* z t))))
(if (<= c 3.1e-7)
(* b (* (- k) (* y y4)))
(if (<= c 1.55e+72) (* y4 (* t (* b j))) (* (* k y2) (* y1 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 (c <= -5e+87) {
tmp = (t * c) * (y4 * -y2);
} else if (c <= -1.95e-256) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (c <= 3.1e-7) {
tmp = b * (-k * (y * y4));
} else if (c <= 1.55e+72) {
tmp = y4 * (t * (b * j));
} else {
tmp = (k * y2) * (y1 * 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 (c <= (-5d+87)) then
tmp = (t * c) * (y4 * -y2)
else if (c <= (-1.95d-256)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (c <= 3.1d-7) then
tmp = b * (-k * (y * y4))
else if (c <= 1.55d+72) then
tmp = y4 * (t * (b * j))
else
tmp = (k * y2) * (y1 * 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 (c <= -5e+87) {
tmp = (t * c) * (y4 * -y2);
} else if (c <= -1.95e-256) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (c <= 3.1e-7) {
tmp = b * (-k * (y * y4));
} else if (c <= 1.55e+72) {
tmp = y4 * (t * (b * j));
} else {
tmp = (k * y2) * (y1 * y4);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if c <= -5e+87: tmp = (t * c) * (y4 * -y2) elif c <= -1.95e-256: tmp = a * (b * ((x * y) - (z * t))) elif c <= 3.1e-7: tmp = b * (-k * (y * y4)) elif c <= 1.55e+72: tmp = y4 * (t * (b * j)) else: tmp = (k * y2) * (y1 * 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 (c <= -5e+87) tmp = Float64(Float64(t * c) * Float64(y4 * Float64(-y2))); elseif (c <= -1.95e-256) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (c <= 3.1e-7) tmp = Float64(b * Float64(Float64(-k) * Float64(y * y4))); elseif (c <= 1.55e+72) tmp = Float64(y4 * Float64(t * Float64(b * j))); else tmp = Float64(Float64(k * y2) * Float64(y1 * 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 (c <= -5e+87) tmp = (t * c) * (y4 * -y2); elseif (c <= -1.95e-256) tmp = a * (b * ((x * y) - (z * t))); elseif (c <= 3.1e-7) tmp = b * (-k * (y * y4)); elseif (c <= 1.55e+72) tmp = y4 * (t * (b * j)); else tmp = (k * y2) * (y1 * y4); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -5e+87], N[(N[(t * c), $MachinePrecision] * N[(y4 * (-y2)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.95e-256], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.1e-7], N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e+72], N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5 \cdot 10^{+87}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(y4 \cdot \left(-y2\right)\right)\\
\mathbf{elif}\;c \leq -1.95 \cdot 10^{-256}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{-7}:\\
\;\;\;\;b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+72}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\end{array}
\end{array}
if c < -4.9999999999999998e87Initial program 21.6%
associate-+l-21.6%
Simplified21.6%
Taylor expanded in y4 around inf 41.4%
Taylor expanded in y2 around inf 37.9%
associate-*r*37.9%
*-commutative37.9%
*-commutative37.9%
Simplified37.9%
Taylor expanded in k around 0 36.3%
neg-mul-136.3%
*-commutative36.3%
distribute-rgt-neg-in36.3%
Simplified36.3%
if -4.9999999999999998e87 < c < -1.9499999999999999e-256Initial program 26.1%
associate-+l-26.1%
Simplified26.1%
Taylor expanded in a around inf 49.6%
associate--l+49.6%
mul-1-neg49.6%
mul-1-neg49.6%
Simplified49.6%
Taylor expanded in b around inf 39.5%
if -1.9499999999999999e-256 < c < 3.1e-7Initial program 17.5%
associate-+l-17.5%
Simplified17.5%
Taylor expanded in y4 around inf 31.9%
Taylor expanded in b around inf 31.2%
associate-*r*35.8%
Simplified35.8%
Taylor expanded in t around 0 32.0%
mul-1-neg32.0%
*-commutative32.0%
distribute-rgt-neg-in32.0%
Simplified32.0%
if 3.1e-7 < c < 1.54999999999999994e72Initial program 42.9%
associate-+l-42.9%
Simplified42.9%
Taylor expanded in y4 around inf 29.2%
Taylor expanded in b around inf 34.4%
associate-*r*34.4%
Simplified34.4%
Taylor expanded in t around inf 39.1%
if 1.54999999999999994e72 < c Initial program 23.7%
associate-+l-23.7%
Simplified23.7%
Taylor expanded in y4 around inf 37.5%
Taylor expanded in y2 around inf 27.8%
associate-*r*25.3%
*-commutative25.3%
*-commutative25.3%
Simplified25.3%
Taylor expanded in k around inf 23.4%
*-commutative23.4%
associate-*r*28.3%
associate-*l*33.0%
*-commutative33.0%
*-commutative33.0%
Simplified33.0%
Final simplification35.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* (- k) (* y y4)))))
(if (<= y4 -2.3e+17)
t_1
(if (<= y4 1.7e-143)
(* a (* b (* x y)))
(if (<= y4 7.4e-11) (* y4 (* y1 (* j (- y3)))) 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 * (y * y4));
double tmp;
if (y4 <= -2.3e+17) {
tmp = t_1;
} else if (y4 <= 1.7e-143) {
tmp = a * (b * (x * y));
} else if (y4 <= 7.4e-11) {
tmp = y4 * (y1 * (j * -y3));
} 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 * (y * y4))
if (y4 <= (-2.3d+17)) then
tmp = t_1
else if (y4 <= 1.7d-143) then
tmp = a * (b * (x * y))
else if (y4 <= 7.4d-11) then
tmp = y4 * (y1 * (j * -y3))
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 * (y * y4));
double tmp;
if (y4 <= -2.3e+17) {
tmp = t_1;
} else if (y4 <= 1.7e-143) {
tmp = a * (b * (x * y));
} else if (y4 <= 7.4e-11) {
tmp = y4 * (y1 * (j * -y3));
} 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 * (y * y4)) tmp = 0 if y4 <= -2.3e+17: tmp = t_1 elif y4 <= 1.7e-143: tmp = a * (b * (x * y)) elif y4 <= 7.4e-11: tmp = y4 * (y1 * (j * -y3)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(Float64(-k) * Float64(y * y4))) tmp = 0.0 if (y4 <= -2.3e+17) tmp = t_1; elseif (y4 <= 1.7e-143) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (y4 <= 7.4e-11) tmp = Float64(y4 * Float64(y1 * Float64(j * Float64(-y3)))); 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 * (y * y4)); tmp = 0.0; if (y4 <= -2.3e+17) tmp = t_1; elseif (y4 <= 1.7e-143) tmp = a * (b * (x * y)); elseif (y4 <= 7.4e-11) tmp = y4 * (y1 * (j * -y3)); 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[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.3e+17], t$95$1, If[LessEqual[y4, 1.7e-143], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.4e-11], N[(y4 * N[(y1 * N[(j * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -2.3 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y4 \leq 1.7 \cdot 10^{-143}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;y4 \leq 7.4 \cdot 10^{-11}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(j \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y4 < -2.3e17 or 7.4000000000000003e-11 < y4 Initial program 17.8%
associate-+l-17.8%
Simplified17.8%
Taylor expanded in y4 around inf 46.1%
Taylor expanded in b around inf 43.4%
associate-*r*47.4%
Simplified47.4%
Taylor expanded in t around 0 42.3%
mul-1-neg42.3%
*-commutative42.3%
distribute-rgt-neg-in42.3%
Simplified42.3%
if -2.3e17 < y4 < 1.69999999999999992e-143Initial program 25.2%
associate-+l-25.2%
Simplified25.2%
Taylor expanded in a around inf 37.8%
associate--l+37.8%
mul-1-neg37.8%
mul-1-neg37.8%
Simplified37.8%
Taylor expanded in b around inf 26.8%
Taylor expanded in y around inf 20.7%
if 1.69999999999999992e-143 < y4 < 7.4000000000000003e-11Initial program 40.1%
associate-+l-40.1%
Simplified40.1%
Taylor expanded in y4 around inf 25.0%
Taylor expanded in y1 around inf 25.5%
*-commutative25.5%
*-commutative25.5%
Simplified25.5%
Taylor expanded in k around 0 25.1%
mul-1-neg25.1%
*-commutative25.1%
distribute-rgt-neg-in25.1%
Simplified25.1%
Final simplification31.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -5.5e+26)
(* a (* y (* x b)))
(if (<= x 5.3e-281)
(* y4 (* t (* b j)))
(if (<= x 3.3e+125) (* y4 (* y1 (* k y2))) (* a (* b (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -5.5e+26) {
tmp = a * (y * (x * b));
} else if (x <= 5.3e-281) {
tmp = y4 * (t * (b * j));
} else if (x <= 3.3e+125) {
tmp = y4 * (y1 * (k * y2));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-5.5d+26)) then
tmp = a * (y * (x * b))
else if (x <= 5.3d-281) then
tmp = y4 * (t * (b * j))
else if (x <= 3.3d+125) then
tmp = y4 * (y1 * (k * y2))
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -5.5e+26) {
tmp = a * (y * (x * b));
} else if (x <= 5.3e-281) {
tmp = y4 * (t * (b * j));
} else if (x <= 3.3e+125) {
tmp = y4 * (y1 * (k * y2));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -5.5e+26: tmp = a * (y * (x * b)) elif x <= 5.3e-281: tmp = y4 * (t * (b * j)) elif x <= 3.3e+125: tmp = y4 * (y1 * (k * y2)) else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -5.5e+26) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 5.3e-281) tmp = Float64(y4 * Float64(t * Float64(b * j))); elseif (x <= 3.3e+125) tmp = Float64(y4 * Float64(y1 * Float64(k * y2))); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -5.5e+26) tmp = a * (y * (x * b)); elseif (x <= 5.3e-281) tmp = y4 * (t * (b * j)); elseif (x <= 3.3e+125) tmp = y4 * (y1 * (k * y2)); else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -5.5e+26], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.3e-281], N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e+125], N[(y4 * N[(y1 * N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{+26}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{-281}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+125}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -5.4999999999999997e26Initial program 25.5%
associate-+l-25.5%
Simplified25.5%
Taylor expanded in a around inf 42.6%
associate--l+42.6%
mul-1-neg42.6%
mul-1-neg42.6%
Simplified42.6%
Taylor expanded in b around inf 43.1%
Taylor expanded in y around inf 33.4%
if -5.4999999999999997e26 < x < 5.29999999999999995e-281Initial program 27.0%
associate-+l-27.0%
Simplified27.0%
Taylor expanded in y4 around inf 38.8%
Taylor expanded in b around inf 36.4%
associate-*r*36.3%
Simplified36.3%
Taylor expanded in t around inf 28.7%
if 5.29999999999999995e-281 < x < 3.30000000000000005e125Initial program 24.3%
associate-+l-24.3%
Simplified24.3%
Taylor expanded in y4 around inf 28.4%
Taylor expanded in y1 around inf 27.3%
*-commutative27.3%
*-commutative27.3%
Simplified27.3%
Taylor expanded in k around inf 22.3%
*-commutative22.3%
Simplified22.3%
if 3.30000000000000005e125 < x Initial program 14.0%
associate-+l-14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
associate--l+26.1%
mul-1-neg26.1%
mul-1-neg26.1%
Simplified26.1%
Taylor expanded in b around inf 30.9%
Taylor expanded in y around inf 35.7%
Final simplification28.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -1.1e+17)
(* a (* y (* x b)))
(if (<= x 7.4e-308)
(* y4 (* t (* b j)))
(if (<= x 1.85e+126) (* (* k y2) (* y1 y4)) (* a (* b (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -1.1e+17) {
tmp = a * (y * (x * b));
} else if (x <= 7.4e-308) {
tmp = y4 * (t * (b * j));
} else if (x <= 1.85e+126) {
tmp = (k * y2) * (y1 * y4);
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-1.1d+17)) then
tmp = a * (y * (x * b))
else if (x <= 7.4d-308) then
tmp = y4 * (t * (b * j))
else if (x <= 1.85d+126) then
tmp = (k * y2) * (y1 * y4)
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -1.1e+17) {
tmp = a * (y * (x * b));
} else if (x <= 7.4e-308) {
tmp = y4 * (t * (b * j));
} else if (x <= 1.85e+126) {
tmp = (k * y2) * (y1 * y4);
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -1.1e+17: tmp = a * (y * (x * b)) elif x <= 7.4e-308: tmp = y4 * (t * (b * j)) elif x <= 1.85e+126: tmp = (k * y2) * (y1 * y4) else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -1.1e+17) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 7.4e-308) tmp = Float64(y4 * Float64(t * Float64(b * j))); elseif (x <= 1.85e+126) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -1.1e+17) tmp = a * (y * (x * b)); elseif (x <= 7.4e-308) tmp = y4 * (t * (b * j)); elseif (x <= 1.85e+126) tmp = (k * y2) * (y1 * y4); else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -1.1e+17], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e-308], N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+126], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-308}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+126}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -1.1e17Initial program 25.5%
associate-+l-25.5%
Simplified25.5%
Taylor expanded in a around inf 42.6%
associate--l+42.6%
mul-1-neg42.6%
mul-1-neg42.6%
Simplified42.6%
Taylor expanded in b around inf 43.1%
Taylor expanded in y around inf 33.4%
if -1.1e17 < x < 7.40000000000000012e-308Initial program 27.1%
associate-+l-27.1%
Simplified27.1%
Taylor expanded in y4 around inf 39.6%
Taylor expanded in b around inf 38.4%
associate-*r*38.4%
Simplified38.4%
Taylor expanded in t around inf 28.7%
if 7.40000000000000012e-308 < x < 1.8499999999999999e126Initial program 24.4%
associate-+l-24.4%
Simplified24.4%
Taylor expanded in y4 around inf 28.4%
Taylor expanded in y2 around inf 24.6%
associate-*r*22.4%
*-commutative22.4%
*-commutative22.4%
Simplified22.4%
Taylor expanded in k around inf 18.8%
*-commutative18.8%
associate-*r*20.7%
associate-*l*23.5%
*-commutative23.5%
*-commutative23.5%
Simplified23.5%
if 1.8499999999999999e126 < x Initial program 14.0%
associate-+l-14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
associate--l+26.1%
mul-1-neg26.1%
mul-1-neg26.1%
Simplified26.1%
Taylor expanded in b around inf 30.9%
Taylor expanded in y around inf 35.7%
Final simplification29.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= x -0.0034) (* a (* y (* x b))) (if (<= x 1.4e+126) (* k (* y4 (* y1 y2))) (* a (* b (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -0.0034) {
tmp = a * (y * (x * b));
} else if (x <= 1.4e+126) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-0.0034d0)) then
tmp = a * (y * (x * b))
else if (x <= 1.4d+126) then
tmp = k * (y4 * (y1 * y2))
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -0.0034) {
tmp = a * (y * (x * b));
} else if (x <= 1.4e+126) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -0.0034: tmp = a * (y * (x * b)) elif x <= 1.4e+126: tmp = k * (y4 * (y1 * y2)) else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -0.0034) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 1.4e+126) tmp = Float64(k * Float64(y4 * Float64(y1 * y2))); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -0.0034) tmp = a * (y * (x * b)); elseif (x <= 1.4e+126) tmp = k * (y4 * (y1 * y2)); else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -0.0034], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+126], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0034:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+126}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -0.00339999999999999981Initial program 24.3%
associate-+l-24.3%
Simplified24.3%
Taylor expanded in a around inf 42.2%
associate--l+42.2%
mul-1-neg42.2%
mul-1-neg42.2%
Simplified42.2%
Taylor expanded in b around inf 42.6%
Taylor expanded in y around inf 31.9%
if -0.00339999999999999981 < x < 1.40000000000000005e126Initial program 25.9%
associate-+l-25.9%
Simplified25.9%
Taylor expanded in y4 around inf 32.7%
Taylor expanded in y1 around inf 28.9%
*-commutative28.9%
*-commutative28.9%
Simplified28.9%
Taylor expanded in k around inf 19.6%
*-commutative19.6%
Simplified19.6%
if 1.40000000000000005e126 < x Initial program 14.0%
associate-+l-14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
associate--l+26.1%
mul-1-neg26.1%
mul-1-neg26.1%
Simplified26.1%
Taylor expanded in b around inf 30.9%
Taylor expanded in y around inf 35.7%
Final simplification25.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= x -0.00265) (* a (* y (* x b))) (if (<= x 4.4e+126) (* y4 (* k (* y1 y2))) (* a (* b (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -0.00265) {
tmp = a * (y * (x * b));
} else if (x <= 4.4e+126) {
tmp = y4 * (k * (y1 * y2));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-0.00265d0)) then
tmp = a * (y * (x * b))
else if (x <= 4.4d+126) then
tmp = y4 * (k * (y1 * y2))
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -0.00265) {
tmp = a * (y * (x * b));
} else if (x <= 4.4e+126) {
tmp = y4 * (k * (y1 * y2));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -0.00265: tmp = a * (y * (x * b)) elif x <= 4.4e+126: tmp = y4 * (k * (y1 * y2)) else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -0.00265) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 4.4e+126) tmp = Float64(y4 * Float64(k * Float64(y1 * y2))); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -0.00265) tmp = a * (y * (x * b)); elseif (x <= 4.4e+126) tmp = y4 * (k * (y1 * y2)); else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -0.00265], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.4e+126], N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00265:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{+126}:\\
\;\;\;\;y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -0.00265000000000000001Initial program 24.3%
associate-+l-24.3%
Simplified24.3%
Taylor expanded in a around inf 42.2%
associate--l+42.2%
mul-1-neg42.2%
mul-1-neg42.2%
Simplified42.2%
Taylor expanded in b around inf 42.6%
Taylor expanded in y around inf 31.9%
if -0.00265000000000000001 < x < 4.39999999999999997e126Initial program 25.9%
associate-+l-25.9%
Simplified25.9%
Taylor expanded in y4 around inf 32.7%
Taylor expanded in y1 around inf 28.9%
*-commutative28.9%
*-commutative28.9%
Simplified28.9%
Taylor expanded in k around inf 19.7%
*-commutative19.7%
Simplified19.7%
if 4.39999999999999997e126 < x Initial program 14.0%
associate-+l-14.0%
Simplified14.0%
Taylor expanded in a around inf 26.1%
associate--l+26.1%
mul-1-neg26.1%
mul-1-neg26.1%
Simplified26.1%
Taylor expanded in b around inf 30.9%
Taylor expanded in y around inf 35.7%
Final simplification25.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* b (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (b * (x * y));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * (b * (x * y))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (b * (x * y));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (b * (x * y))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(b * Float64(x * y))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (b * (x * y)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot \left(x \cdot y\right)\right)
\end{array}
Initial program 23.5%
associate-+l-23.5%
Simplified23.5%
Taylor expanded in a around inf 35.3%
associate--l+35.3%
mul-1-neg35.3%
mul-1-neg35.3%
Simplified35.3%
Taylor expanded in b around inf 25.2%
Taylor expanded in y around inf 17.3%
Final simplification17.3%
(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 2023173
(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)))))