
(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 44 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 (- (* y0 y5) (* y1 y4)))
(t_2 (- (* t y2) (* y y3)))
(t_3
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5)))))))
(t_4
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j))))))
(t_5
(*
y1
(+
(* a (- (* z y3) (* x y2)))
(+ (* i (- (* x j) (* z k))) (* y4 (- (* k y2) (* j y3))))))))
(if (<= b -2.05e+132)
t_4
(if (<= b -9.5e+31)
t_3
(if (<= b -3.9e-109)
(+ (* (* j y3) t_1) (* t_2 (- (* a y5) (* c y4))))
(if (<= b -3.6e-198)
(*
z
(+
(* y3 (- (* a y1) (* c y0)))
(+ (* k (- (* b y0) (* i y1))) (* t (- (* c i) (* a b))))))
(if (<= b -1.6e-308)
(*
y5
(+
(* i (- (* y k) (* t j)))
(+ (* a t_2) (* y0 (- (* j y3) (* k y2))))))
(if (<= b 1.05e-171)
t_3
(if (<= b 7.5e-64)
t_5
(if (<= b 6.5e-36)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 1.05e+41)
t_5
(if (<= b 1.55e+66)
(*
j
(+
(+ (* y3 t_1) (* t (- (* b y4) (* i y5))))
(* x (- (* i y1) (* b y0)))))
t_4))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * y5) - (y1 * y4);
double t_2 = (t * y2) - (y * y3);
double t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_5 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))));
double tmp;
if (b <= -2.05e+132) {
tmp = t_4;
} else if (b <= -9.5e+31) {
tmp = t_3;
} else if (b <= -3.9e-109) {
tmp = ((j * y3) * t_1) + (t_2 * ((a * y5) - (c * y4)));
} else if (b <= -3.6e-198) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b)))));
} else if (b <= -1.6e-308) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2)))));
} else if (b <= 1.05e-171) {
tmp = t_3;
} else if (b <= 7.5e-64) {
tmp = t_5;
} else if (b <= 6.5e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.05e+41) {
tmp = t_5;
} else if (b <= 1.55e+66) {
tmp = j * (((y3 * t_1) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (y0 * y5) - (y1 * y4)
t_2 = (t * y2) - (y * y3)
t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
t_5 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))))
if (b <= (-2.05d+132)) then
tmp = t_4
else if (b <= (-9.5d+31)) then
tmp = t_3
else if (b <= (-3.9d-109)) then
tmp = ((j * y3) * t_1) + (t_2 * ((a * y5) - (c * y4)))
else if (b <= (-3.6d-198)) then
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b)))))
else if (b <= (-1.6d-308)) then
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2)))))
else if (b <= 1.05d-171) then
tmp = t_3
else if (b <= 7.5d-64) then
tmp = t_5
else if (b <= 6.5d-36) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 1.05d+41) then
tmp = t_5
else if (b <= 1.55d+66) then
tmp = j * (((y3 * t_1) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))))
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * y5) - (y1 * y4);
double t_2 = (t * y2) - (y * y3);
double t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_5 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))));
double tmp;
if (b <= -2.05e+132) {
tmp = t_4;
} else if (b <= -9.5e+31) {
tmp = t_3;
} else if (b <= -3.9e-109) {
tmp = ((j * y3) * t_1) + (t_2 * ((a * y5) - (c * y4)));
} else if (b <= -3.6e-198) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b)))));
} else if (b <= -1.6e-308) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2)))));
} else if (b <= 1.05e-171) {
tmp = t_3;
} else if (b <= 7.5e-64) {
tmp = t_5;
} else if (b <= 6.5e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.05e+41) {
tmp = t_5;
} else if (b <= 1.55e+66) {
tmp = j * (((y3 * t_1) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0))));
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y0 * y5) - (y1 * y4) t_2 = (t * y2) - (y * y3) t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) t_5 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3))))) tmp = 0 if b <= -2.05e+132: tmp = t_4 elif b <= -9.5e+31: tmp = t_3 elif b <= -3.9e-109: tmp = ((j * y3) * t_1) + (t_2 * ((a * y5) - (c * y4))) elif b <= -3.6e-198: tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b))))) elif b <= -1.6e-308: tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2))))) elif b <= 1.05e-171: tmp = t_3 elif b <= 7.5e-64: tmp = t_5 elif b <= 6.5e-36: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 1.05e+41: tmp = t_5 elif b <= 1.55e+66: tmp = j * (((y3 * t_1) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0)))) else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y0 * y5) - Float64(y1 * y4)) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) t_3 = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))) t_4 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_5 = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))))) tmp = 0.0 if (b <= -2.05e+132) tmp = t_4; elseif (b <= -9.5e+31) tmp = t_3; elseif (b <= -3.9e-109) tmp = Float64(Float64(Float64(j * y3) * t_1) + Float64(t_2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (b <= -3.6e-198) tmp = Float64(z * Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))); elseif (b <= -1.6e-308) tmp = Float64(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(Float64(a * t_2) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (b <= 1.05e-171) tmp = t_3; elseif (b <= 7.5e-64) tmp = t_5; elseif (b <= 6.5e-36) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 1.05e+41) tmp = t_5; elseif (b <= 1.55e+66) tmp = Float64(j * Float64(Float64(Float64(y3 * t_1) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y0 * y5) - (y1 * y4); t_2 = (t * y2) - (y * y3); t_3 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); t_5 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3))))); tmp = 0.0; if (b <= -2.05e+132) tmp = t_4; elseif (b <= -9.5e+31) tmp = t_3; elseif (b <= -3.9e-109) tmp = ((j * y3) * t_1) + (t_2 * ((a * y5) - (c * y4))); elseif (b <= -3.6e-198) tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b))))); elseif (b <= -1.6e-308) tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2))))); elseif (b <= 1.05e-171) tmp = t_3; elseif (b <= 7.5e-64) tmp = t_5; elseif (b <= 6.5e-36) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 1.05e+41) tmp = t_5; elseif (b <= 1.55e+66) tmp = j * (((y3 * t_1) + (t * ((b * y4) - (i * y5)))) + (x * ((i * y1) - (b * y0)))); else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.05e+132], t$95$4, If[LessEqual[b, -9.5e+31], t$95$3, If[LessEqual[b, -3.9e-109], N[(N[(N[(j * y3), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(t$95$2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-198], N[(z * N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.6e-308], N[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-171], t$95$3, If[LessEqual[b, 7.5e-64], t$95$5, If[LessEqual[b, 6.5e-36], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+41], t$95$5, If[LessEqual[b, 1.55e+66], N[(j * N[(N[(N[(y3 * t$95$1), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot y5 - y1 \cdot y4\\
t_2 := t \cdot y2 - y \cdot y3\\
t_3 := y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
t_4 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_5 := y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)\\
\mathbf{if}\;b \leq -2.05 \cdot 10^{+132}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{+31}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{-109}:\\
\;\;\;\;\left(j \cdot y3\right) \cdot t_1 + t_2 \cdot \left(a \cdot y5 - c \cdot y4\right)\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-198}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-308}:\\
\;\;\;\;y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) + \left(a \cdot t_2 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-171}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-64}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-36}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+41}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+66}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot t_1 + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if b < -2.04999999999999996e132 or 1.55000000000000009e66 < b Initial program 18.7%
Simplified18.7%
Taylor expanded in b around inf 61.1%
if -2.04999999999999996e132 < b < -9.5000000000000008e31 or -1.6000000000000001e-308 < b < 1.05e-171Initial program 28.1%
Simplified39.7%
Taylor expanded in y around inf 64.5%
mul-1-neg64.5%
Simplified64.5%
if -9.5000000000000008e31 < b < -3.90000000000000023e-109Initial program 41.6%
Simplified41.6%
Taylor expanded in y5 around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in i around 0 61.3%
Taylor expanded in k around 0 62.0%
neg-mul-162.0%
distribute-rgt-neg-in62.0%
Simplified62.0%
if -3.90000000000000023e-109 < b < -3.59999999999999998e-198Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
if -3.59999999999999998e-198 < b < -1.6000000000000001e-308Initial program 28.9%
Simplified29.0%
Taylor expanded in y5 around inf 58.6%
mul-1-neg58.6%
mul-1-neg58.6%
mul-1-neg58.6%
sub-neg58.6%
sub-neg58.6%
Simplified58.6%
if 1.05e-171 < b < 7.49999999999999949e-64 or 6.50000000000000012e-36 < b < 1.05e41Initial program 19.0%
Simplified28.6%
Taylor expanded in y1 around inf 57.6%
mul-1-neg57.6%
mul-1-neg57.6%
sub-neg57.6%
Simplified57.6%
if 7.49999999999999949e-64 < b < 6.50000000000000012e-36Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
Taylor expanded in a around inf 80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
if 1.05e41 < b < 1.55000000000000009e66Initial program 56.2%
Simplified56.2%
Taylor expanded in j around inf 100.0%
Final simplification63.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (* (- (* c y0) (* a y1)) (- (* x y2) (* z y3))))
(t_3 (- (* c y4) (* a y5)))
(t_4 (- (* a b) (* c i)))
(t_5 (- (* k y2) (* j y3)))
(t_6 (- (* x y) (* z t)))
(t_7 (- (* b y4) (* i y5)))
(t_8 (- (* y1 y4) (* y0 y5))))
(if (<=
(+
(+
(+
(+
(+ (* t_4 t_6) (* (- (* x j) (* z k)) (- (* i y1) (* b y0))))
t_2)
(* t_7 t_1))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* t_8 t_5))
INFINITY)
(fma
t_5
t_8
(fma
t_3
(- (* y y3) (* t y2))
(fma
t_6
t_4
(fma (- (* b y0) (* i y1)) (- (* z k) (* x j)) (fma t_1 t_7 t_2)))))
(* y (+ (* k (- (* i y5) (* b y4))) (+ (* x t_4) (* y3 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = ((c * y0) - (a * y1)) * ((x * y2) - (z * y3));
double t_3 = (c * y4) - (a * y5);
double t_4 = (a * b) - (c * i);
double t_5 = (k * y2) - (j * y3);
double t_6 = (x * y) - (z * t);
double t_7 = (b * y4) - (i * y5);
double t_8 = (y1 * y4) - (y0 * y5);
double tmp;
if (((((((t_4 * t_6) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + t_2) + (t_7 * t_1)) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_8 * t_5)) <= ((double) INFINITY)) {
tmp = fma(t_5, t_8, fma(t_3, ((y * y3) - (t * y2)), fma(t_6, t_4, fma(((b * y0) - (i * y1)), ((z * k) - (x * j)), fma(t_1, t_7, t_2)))));
} else {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_4) + (y3 * t_3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3))) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(Float64(a * b) - Float64(c * i)) t_5 = Float64(Float64(k * y2) - Float64(j * y3)) t_6 = Float64(Float64(x * y) - Float64(z * t)) t_7 = Float64(Float64(b * y4) - Float64(i * y5)) t_8 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(t_4 * t_6) + Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(i * y1) - Float64(b * y0)))) + t_2) + Float64(t_7 * t_1)) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(t_8 * t_5)) <= Inf) tmp = fma(t_5, t_8, fma(t_3, Float64(Float64(y * y3) - Float64(t * y2)), fma(t_6, t_4, fma(Float64(Float64(b * y0) - Float64(i * y1)), Float64(Float64(z * k) - Float64(x * j)), fma(t_1, t_7, t_2))))); else tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_4) + Float64(y3 * t_3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(t$95$4 * t$95$6), $MachinePrecision] + N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] + N[(t$95$7 * t$95$1), $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[(t$95$8 * t$95$5), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$5 * t$95$8 + N[(t$95$3 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision] + N[(t$95$6 * t$95$4 + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * t$95$7 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$4), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right)\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := a \cdot b - c \cdot i\\
t_5 := k \cdot y2 - j \cdot y3\\
t_6 := x \cdot y - z \cdot t\\
t_7 := b \cdot y4 - i \cdot y5\\
t_8 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;\left(\left(\left(\left(t_4 \cdot t_6 + \left(x \cdot j - z \cdot k\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + t_2\right) + t_7 \cdot t_1\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + t_8 \cdot t_5 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t_5, t_8, \mathsf{fma}\left(t_3, y \cdot y3 - t \cdot y2, \mathsf{fma}\left(t_6, t_4, \mathsf{fma}\left(b \cdot y0 - i \cdot y1, z \cdot k - x \cdot j, \mathsf{fma}\left(t_1, t_7, t_2\right)\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_4 + y3 \cdot t_3\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 86.6%
Simplified86.6%
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%
Simplified12.4%
Taylor expanded in y around inf 40.5%
mul-1-neg40.5%
Simplified40.5%
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 (- (* t j) (* y k)))
(t_2 (- (* c y0) (* a y1)))
(t_3 (* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(t_4 (- (* x y2) (* z y3)))
(t_5 (- (* a b) (* c i)))
(t_6 (* t_5 (- (* x y) (* z t))))
(t_7 (- (* i y1) (* b y0)))
(t_8 (- (* k y2) (* j y3)))
(t_9 (- (* b y4) (* i y5)))
(t_10 (- (* y1 y4) (* y0 y5))))
(if (<=
(+
(+
(+ (+ (+ t_6 (* (- (* x j) (* z k)) t_7)) (* t_2 t_4)) (* t_9 t_1))
t_3)
(* t_10 t_8))
INFINITY)
(fma
t_8
t_10
(+
(fma t_1 t_9 (fma t_4 t_2 (+ t_6 (* (fma x j (* k (- z))) t_7))))
t_3))
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x t_5) (* y3 (- (* c y4) (* a y5)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (c * y0) - (a * y1);
double t_3 = ((t * y2) - (y * y3)) * ((a * y5) - (c * y4));
double t_4 = (x * y2) - (z * y3);
double t_5 = (a * b) - (c * i);
double t_6 = t_5 * ((x * y) - (z * t));
double t_7 = (i * y1) - (b * y0);
double t_8 = (k * y2) - (j * y3);
double t_9 = (b * y4) - (i * y5);
double t_10 = (y1 * y4) - (y0 * y5);
double tmp;
if ((((((t_6 + (((x * j) - (z * k)) * t_7)) + (t_2 * t_4)) + (t_9 * t_1)) + t_3) + (t_10 * t_8)) <= ((double) INFINITY)) {
tmp = fma(t_8, t_10, (fma(t_1, t_9, fma(t_4, t_2, (t_6 + (fma(x, j, (k * -z)) * t_7)))) + t_3));
} else {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_5) + (y3 * ((c * y4) - (a * y5)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4))) t_4 = Float64(Float64(x * y2) - Float64(z * y3)) t_5 = Float64(Float64(a * b) - Float64(c * i)) t_6 = Float64(t_5 * Float64(Float64(x * y) - Float64(z * t))) t_7 = Float64(Float64(i * y1) - Float64(b * y0)) t_8 = Float64(Float64(k * y2) - Float64(j * y3)) t_9 = Float64(Float64(b * y4) - Float64(i * y5)) t_10 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t_6 + Float64(Float64(Float64(x * j) - Float64(z * k)) * t_7)) + Float64(t_2 * t_4)) + Float64(t_9 * t_1)) + t_3) + Float64(t_10 * t_8)) <= Inf) tmp = fma(t_8, t_10, Float64(fma(t_1, t_9, fma(t_4, t_2, Float64(t_6 + Float64(fma(x, j, Float64(k * Float64(-z))) * t_7)))) + t_3)); else tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_5) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(t$95$5 * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t$95$6 + N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(t$95$9 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision] + N[(t$95$10 * t$95$8), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$8 * t$95$10 + N[(N[(t$95$1 * t$95$9 + N[(t$95$4 * t$95$2 + N[(t$95$6 + N[(N[(x * j + N[(k * (-z)), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$5), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\\
t_4 := x \cdot y2 - z \cdot y3\\
t_5 := a \cdot b - c \cdot i\\
t_6 := t_5 \cdot \left(x \cdot y - z \cdot t\right)\\
t_7 := i \cdot y1 - b \cdot y0\\
t_8 := k \cdot y2 - j \cdot y3\\
t_9 := b \cdot y4 - i \cdot y5\\
t_10 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;\left(\left(\left(\left(t_6 + \left(x \cdot j - z \cdot k\right) \cdot t_7\right) + t_2 \cdot t_4\right) + t_9 \cdot t_1\right) + t_3\right) + t_10 \cdot t_8 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t_8, t_10, \mathsf{fma}\left(t_1, t_9, \mathsf{fma}\left(t_4, t_2, t_6 + \mathsf{fma}\left(x, j, k \cdot \left(-z\right)\right) \cdot t_7\right)\right) + t_3\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_5 + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 86.6%
Simplified86.6%
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%
Simplified12.4%
Taylor expanded in y around inf 40.5%
mul-1-neg40.5%
Simplified40.5%
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 (- (* a b) (* c i)))
(t_2
(+
(+
(+
(+
(+
(* t_1 (- (* x y) (* z t)))
(* (- (* x j) (* z k)) (- (* i y1) (* b y0))))
(* (- (* c y0) (* a y1)) (- (* x y2) (* z y3))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* y1 y4) (* y0 y5)) (- (* k y2) (* j y3))))))
(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))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3)));
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))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3)));
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))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) 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(x * j) - Float64(z * k)) * Float64(Float64(i * y1) - Float64(b * y0)))) + Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(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(y1 * y4) - Float64(y0 * y5)) * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_1) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * b) - (c * i); t_2 = (((((t_1 * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))); 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[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(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[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := \left(\left(\left(\left(t_1 \cdot \left(x \cdot y - z \cdot t\right) + \left(x \cdot j - z \cdot k\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + \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(y1 \cdot y4 - y0 \cdot y5\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_1 + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 86.6%
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%
Simplified12.4%
Taylor expanded in y around inf 40.5%
mul-1-neg40.5%
Simplified40.5%
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 (- (* t j) (* y k)))
(t_2 (- (* t y2) (* y y3)))
(t_3 (- (* k y2) (* j y3)))
(t_4
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5)))))))
(t_5
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j))))))
(t_6
(*
y1
(+
(* a (- (* z y3) (* x y2)))
(+ (* i (- (* x j) (* z k))) (* y4 t_3))))))
(if (<= b -2.5e+131)
t_5
(if (<= b -1.16e+25)
t_4
(if (<= b -2.1e-109)
(+ (* (* j y3) (- (* y0 y5) (* y1 y4))) (* t_2 (- (* a y5) (* c y4))))
(if (<= b -4.5e-190)
(*
z
(+
(* y3 (- (* a y1) (* c y0)))
(+ (* k (- (* b y0) (* i y1))) (* t (- (* c i) (* a b))))))
(if (<= b 9e-309)
(*
y5
(+
(* i (- (* y k) (* t j)))
(+ (* a t_2) (* y0 (- (* j y3) (* k y2))))))
(if (<= b 7.5e-172)
t_4
(if (<= b 7e-64)
t_6
(if (<= b 1.1e-36)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 2.2e+28)
t_6
(if (<= b 9e+94)
(*
y4
(+
(+ (* b t_1) (* y1 t_3))
(* c (- (* y y3) (* t y2)))))
(if (<= b 6.5e+136)
(* z (* b (- (* k y0) (* t a))))
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 * j) - (y * k);
double t_2 = (t * y2) - (y * y3);
double t_3 = (k * y2) - (j * y3);
double t_4 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double t_5 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double t_6 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_3)));
double tmp;
if (b <= -2.5e+131) {
tmp = t_5;
} else if (b <= -1.16e+25) {
tmp = t_4;
} else if (b <= -2.1e-109) {
tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_2 * ((a * y5) - (c * y4)));
} else if (b <= -4.5e-190) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b)))));
} else if (b <= 9e-309) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2)))));
} else if (b <= 7.5e-172) {
tmp = t_4;
} else if (b <= 7e-64) {
tmp = t_6;
} else if (b <= 1.1e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 2.2e+28) {
tmp = t_6;
} else if (b <= 9e+94) {
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2))));
} else if (b <= 6.5e+136) {
tmp = z * (b * ((k * y0) - (t * a)));
} 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 = (t * j) - (y * k)
t_2 = (t * y2) - (y * y3)
t_3 = (k * y2) - (j * y3)
t_4 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
t_5 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
t_6 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_3)))
if (b <= (-2.5d+131)) then
tmp = t_5
else if (b <= (-1.16d+25)) then
tmp = t_4
else if (b <= (-2.1d-109)) then
tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_2 * ((a * y5) - (c * y4)))
else if (b <= (-4.5d-190)) then
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b)))))
else if (b <= 9d-309) then
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2)))))
else if (b <= 7.5d-172) then
tmp = t_4
else if (b <= 7d-64) then
tmp = t_6
else if (b <= 1.1d-36) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 2.2d+28) then
tmp = t_6
else if (b <= 9d+94) then
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2))))
else if (b <= 6.5d+136) then
tmp = z * (b * ((k * y0) - (t * a)))
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 = (t * j) - (y * k);
double t_2 = (t * y2) - (y * y3);
double t_3 = (k * y2) - (j * y3);
double t_4 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double t_5 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double t_6 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_3)));
double tmp;
if (b <= -2.5e+131) {
tmp = t_5;
} else if (b <= -1.16e+25) {
tmp = t_4;
} else if (b <= -2.1e-109) {
tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_2 * ((a * y5) - (c * y4)));
} else if (b <= -4.5e-190) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b)))));
} else if (b <= 9e-309) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2)))));
} else if (b <= 7.5e-172) {
tmp = t_4;
} else if (b <= 7e-64) {
tmp = t_6;
} else if (b <= 1.1e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 2.2e+28) {
tmp = t_6;
} else if (b <= 9e+94) {
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2))));
} else if (b <= 6.5e+136) {
tmp = z * (b * ((k * y0) - (t * a)));
} 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 = (t * j) - (y * k) t_2 = (t * y2) - (y * y3) t_3 = (k * y2) - (j * y3) t_4 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) t_5 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) t_6 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_3))) tmp = 0 if b <= -2.5e+131: tmp = t_5 elif b <= -1.16e+25: tmp = t_4 elif b <= -2.1e-109: tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_2 * ((a * y5) - (c * y4))) elif b <= -4.5e-190: tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b))))) elif b <= 9e-309: tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2))))) elif b <= 7.5e-172: tmp = t_4 elif b <= 7e-64: tmp = t_6 elif b <= 1.1e-36: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 2.2e+28: tmp = t_6 elif b <= 9e+94: tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2)))) elif b <= 6.5e+136: tmp = z * (b * ((k * y0) - (t * a))) 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(t * j) - Float64(y * k)) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))) t_5 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_6 = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(y4 * t_3)))) tmp = 0.0 if (b <= -2.5e+131) tmp = t_5; elseif (b <= -1.16e+25) tmp = t_4; elseif (b <= -2.1e-109) tmp = Float64(Float64(Float64(j * y3) * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t_2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (b <= -4.5e-190) tmp = Float64(z * Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))); elseif (b <= 9e-309) tmp = Float64(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(Float64(a * t_2) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (b <= 7.5e-172) tmp = t_4; elseif (b <= 7e-64) tmp = t_6; elseif (b <= 1.1e-36) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 2.2e+28) tmp = t_6; elseif (b <= 9e+94) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * t_3)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (b <= 6.5e+136) tmp = Float64(z * Float64(b * Float64(Float64(k * y0) - Float64(t * a)))); 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 = (t * j) - (y * k); t_2 = (t * y2) - (y * y3); t_3 = (k * y2) - (j * y3); t_4 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); t_5 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); t_6 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_3))); tmp = 0.0; if (b <= -2.5e+131) tmp = t_5; elseif (b <= -1.16e+25) tmp = t_4; elseif (b <= -2.1e-109) tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_2 * ((a * y5) - (c * y4))); elseif (b <= -4.5e-190) tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * ((b * y0) - (i * y1))) + (t * ((c * i) - (a * b))))); elseif (b <= 9e-309) tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * t_2) + (y0 * ((j * y3) - (k * y2))))); elseif (b <= 7.5e-172) tmp = t_4; elseif (b <= 7e-64) tmp = t_6; elseif (b <= 1.1e-36) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 2.2e+28) tmp = t_6; elseif (b <= 9e+94) tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2)))); elseif (b <= 6.5e+136) tmp = z * (b * ((k * y0) - (t * a))); 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[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+131], t$95$5, If[LessEqual[b, -1.16e+25], t$95$4, If[LessEqual[b, -2.1e-109], N[(N[(N[(j * y3), $MachinePrecision] * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.5e-190], N[(z * N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-309], N[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-172], t$95$4, If[LessEqual[b, 7e-64], t$95$6, If[LessEqual[b, 1.1e-36], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+28], t$95$6, If[LessEqual[b, 9e+94], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e+136], N[(z * N[(b * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := t \cdot y2 - y \cdot y3\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
t_5 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_6 := y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot t_3\right)\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+131}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq -1.16 \cdot 10^{+25}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-109}:\\
\;\;\;\;\left(j \cdot y3\right) \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t_2 \cdot \left(a \cdot y5 - c \cdot y4\right)\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-190}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-309}:\\
\;\;\;\;y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) + \left(a \cdot t_2 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-172}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-64}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-36}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+28}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+94}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot t_3\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+136}:\\
\;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if b < -2.49999999999999998e131 or 6.4999999999999998e136 < b Initial program 17.4%
Simplified17.4%
Taylor expanded in b around inf 64.3%
if -2.49999999999999998e131 < b < -1.15999999999999992e25 or 9.0000000000000021e-309 < b < 7.4999999999999999e-172Initial program 28.1%
Simplified39.7%
Taylor expanded in y around inf 64.5%
mul-1-neg64.5%
Simplified64.5%
if -1.15999999999999992e25 < b < -2.09999999999999996e-109Initial program 41.6%
Simplified41.6%
Taylor expanded in y5 around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in i around 0 61.3%
Taylor expanded in k around 0 62.0%
neg-mul-162.0%
distribute-rgt-neg-in62.0%
Simplified62.0%
if -2.09999999999999996e-109 < b < -4.50000000000000021e-190Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
if -4.50000000000000021e-190 < b < 9.0000000000000021e-309Initial program 28.9%
Simplified29.0%
Taylor expanded in y5 around inf 58.6%
mul-1-neg58.6%
mul-1-neg58.6%
mul-1-neg58.6%
sub-neg58.6%
sub-neg58.6%
Simplified58.6%
if 7.4999999999999999e-172 < b < 7.0000000000000006e-64 or 1.1e-36 < b < 2.19999999999999986e28Initial program 20.0%
Simplified30.0%
Taylor expanded in y1 around inf 55.4%
mul-1-neg55.4%
mul-1-neg55.4%
sub-neg55.4%
Simplified55.4%
if 7.0000000000000006e-64 < b < 1.1e-36Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
Taylor expanded in a around inf 80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
if 2.19999999999999986e28 < b < 8.99999999999999944e94Initial program 41.7%
Simplified41.7%
Taylor expanded in y4 around inf 65.6%
if 8.99999999999999944e94 < b < 6.4999999999999998e136Initial program 18.6%
Simplified18.6%
Taylor expanded in z around -inf 29.4%
mul-1-neg29.4%
associate--l+29.4%
Simplified29.4%
Taylor expanded in b around inf 66.8%
Final simplification63.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* a b) (* c i)))
(t_3
(*
x
(-
(+ (* y t_2) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1))))))
(t_4 (- (* t y2) (* y y3)))
(t_5 (- (* k y2) (* j y3)))
(t_6 (* y4 (+ (+ (* b t_1) (* y1 t_5)) (* c (- (* y y3) (* t y2))))))
(t_7 (+ (* (- (* y1 y4) (* y0 y5)) t_5) (* t_4 (- (* a y5) (* c y4)))))
(t_8 (- (* x y) (* z t))))
(if (<= a -1.8e+52)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= a -2.3e-169)
t_6
(if (<= a -4.2e-302)
(* b (+ (+ (* a t_8) (* y4 t_1)) (* y0 (- (* z k) (* x j)))))
(if (<= a 2.1e-280)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= a 3.2e-194)
t_3
(if (<= a 1.34e-154)
t_6
(if (<= a 0.0255)
t_7
(if (<= a 750000000.0)
t_6
(if (<= a 4.8e+88)
t_3
(if (<= a 5.4e+119)
t_7
(if (<= a 6e+156)
(* y (* x t_2))
(if (<= a 7e+184)
(* y5 (+ (* a t_4) (* y0 (- (* j y3) (* k y2)))))
(* a (* b t_8))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (a * b) - (c * i);
double t_3 = x * (((y * t_2) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
double t_4 = (t * y2) - (y * y3);
double t_5 = (k * y2) - (j * y3);
double t_6 = y4 * (((b * t_1) + (y1 * t_5)) + (c * ((y * y3) - (t * y2))));
double t_7 = (((y1 * y4) - (y0 * y5)) * t_5) + (t_4 * ((a * y5) - (c * y4)));
double t_8 = (x * y) - (z * t);
double tmp;
if (a <= -1.8e+52) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (a <= -2.3e-169) {
tmp = t_6;
} else if (a <= -4.2e-302) {
tmp = b * (((a * t_8) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else if (a <= 2.1e-280) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= 3.2e-194) {
tmp = t_3;
} else if (a <= 1.34e-154) {
tmp = t_6;
} else if (a <= 0.0255) {
tmp = t_7;
} else if (a <= 750000000.0) {
tmp = t_6;
} else if (a <= 4.8e+88) {
tmp = t_3;
} else if (a <= 5.4e+119) {
tmp = t_7;
} else if (a <= 6e+156) {
tmp = y * (x * t_2);
} else if (a <= 7e+184) {
tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2))));
} else {
tmp = a * (b * t_8);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (a * b) - (c * i)
t_3 = x * (((y * t_2) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))))
t_4 = (t * y2) - (y * y3)
t_5 = (k * y2) - (j * y3)
t_6 = y4 * (((b * t_1) + (y1 * t_5)) + (c * ((y * y3) - (t * y2))))
t_7 = (((y1 * y4) - (y0 * y5)) * t_5) + (t_4 * ((a * y5) - (c * y4)))
t_8 = (x * y) - (z * t)
if (a <= (-1.8d+52)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (a <= (-2.3d-169)) then
tmp = t_6
else if (a <= (-4.2d-302)) then
tmp = b * (((a * t_8) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
else if (a <= 2.1d-280) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (a <= 3.2d-194) then
tmp = t_3
else if (a <= 1.34d-154) then
tmp = t_6
else if (a <= 0.0255d0) then
tmp = t_7
else if (a <= 750000000.0d0) then
tmp = t_6
else if (a <= 4.8d+88) then
tmp = t_3
else if (a <= 5.4d+119) then
tmp = t_7
else if (a <= 6d+156) then
tmp = y * (x * t_2)
else if (a <= 7d+184) then
tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2))))
else
tmp = a * (b * t_8)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (a * b) - (c * i);
double t_3 = x * (((y * t_2) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
double t_4 = (t * y2) - (y * y3);
double t_5 = (k * y2) - (j * y3);
double t_6 = y4 * (((b * t_1) + (y1 * t_5)) + (c * ((y * y3) - (t * y2))));
double t_7 = (((y1 * y4) - (y0 * y5)) * t_5) + (t_4 * ((a * y5) - (c * y4)));
double t_8 = (x * y) - (z * t);
double tmp;
if (a <= -1.8e+52) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (a <= -2.3e-169) {
tmp = t_6;
} else if (a <= -4.2e-302) {
tmp = b * (((a * t_8) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else if (a <= 2.1e-280) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= 3.2e-194) {
tmp = t_3;
} else if (a <= 1.34e-154) {
tmp = t_6;
} else if (a <= 0.0255) {
tmp = t_7;
} else if (a <= 750000000.0) {
tmp = t_6;
} else if (a <= 4.8e+88) {
tmp = t_3;
} else if (a <= 5.4e+119) {
tmp = t_7;
} else if (a <= 6e+156) {
tmp = y * (x * t_2);
} else if (a <= 7e+184) {
tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2))));
} else {
tmp = a * (b * t_8);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (a * b) - (c * i) t_3 = x * (((y * t_2) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))) t_4 = (t * y2) - (y * y3) t_5 = (k * y2) - (j * y3) t_6 = y4 * (((b * t_1) + (y1 * t_5)) + (c * ((y * y3) - (t * y2)))) t_7 = (((y1 * y4) - (y0 * y5)) * t_5) + (t_4 * ((a * y5) - (c * y4))) t_8 = (x * y) - (z * t) tmp = 0 if a <= -1.8e+52: tmp = a * (y * ((x * b) - (y3 * y5))) elif a <= -2.3e-169: tmp = t_6 elif a <= -4.2e-302: tmp = b * (((a * t_8) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) elif a <= 2.1e-280: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif a <= 3.2e-194: tmp = t_3 elif a <= 1.34e-154: tmp = t_6 elif a <= 0.0255: tmp = t_7 elif a <= 750000000.0: tmp = t_6 elif a <= 4.8e+88: tmp = t_3 elif a <= 5.4e+119: tmp = t_7 elif a <= 6e+156: tmp = y * (x * t_2) elif a <= 7e+184: tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2)))) else: tmp = a * (b * t_8) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(x * Float64(Float64(Float64(y * t_2) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))) t_4 = Float64(Float64(t * y2) - Float64(y * y3)) t_5 = Float64(Float64(k * y2) - Float64(j * y3)) t_6 = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * t_5)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_7 = Float64(Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * t_5) + Float64(t_4 * Float64(Float64(a * y5) - Float64(c * y4)))) t_8 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (a <= -1.8e+52) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (a <= -2.3e-169) tmp = t_6; elseif (a <= -4.2e-302) tmp = Float64(b * Float64(Float64(Float64(a * t_8) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (a <= 2.1e-280) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (a <= 3.2e-194) tmp = t_3; elseif (a <= 1.34e-154) tmp = t_6; elseif (a <= 0.0255) tmp = t_7; elseif (a <= 750000000.0) tmp = t_6; elseif (a <= 4.8e+88) tmp = t_3; elseif (a <= 5.4e+119) tmp = t_7; elseif (a <= 6e+156) tmp = Float64(y * Float64(x * t_2)); elseif (a <= 7e+184) tmp = Float64(y5 * Float64(Float64(a * t_4) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); else tmp = Float64(a * Float64(b * t_8)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (a * b) - (c * i); t_3 = x * (((y * t_2) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))); t_4 = (t * y2) - (y * y3); t_5 = (k * y2) - (j * y3); t_6 = y4 * (((b * t_1) + (y1 * t_5)) + (c * ((y * y3) - (t * y2)))); t_7 = (((y1 * y4) - (y0 * y5)) * t_5) + (t_4 * ((a * y5) - (c * y4))); t_8 = (x * y) - (z * t); tmp = 0.0; if (a <= -1.8e+52) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (a <= -2.3e-169) tmp = t_6; elseif (a <= -4.2e-302) tmp = b * (((a * t_8) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); elseif (a <= 2.1e-280) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (a <= 3.2e-194) tmp = t_3; elseif (a <= 1.34e-154) tmp = t_6; elseif (a <= 0.0255) tmp = t_7; elseif (a <= 750000000.0) tmp = t_6; elseif (a <= 4.8e+88) tmp = t_3; elseif (a <= 5.4e+119) tmp = t_7; elseif (a <= 6e+156) tmp = y * (x * t_2); elseif (a <= 7e+184) tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2)))); else tmp = a * (b * t_8); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(N[(y * t$95$2), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision] + N[(t$95$4 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.8e+52], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.3e-169], t$95$6, If[LessEqual[a, -4.2e-302], N[(b * N[(N[(N[(a * t$95$8), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e-280], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-194], t$95$3, If[LessEqual[a, 1.34e-154], t$95$6, If[LessEqual[a, 0.0255], t$95$7, If[LessEqual[a, 750000000.0], t$95$6, If[LessEqual[a, 4.8e+88], t$95$3, If[LessEqual[a, 5.4e+119], t$95$7, If[LessEqual[a, 6e+156], N[(y * N[(x * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+184], N[(y5 * N[(N[(a * t$95$4), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * t$95$8), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := a \cdot b - c \cdot i\\
t_3 := x \cdot \left(\left(y \cdot t_2 + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_4 := t \cdot y2 - y \cdot y3\\
t_5 := k \cdot y2 - j \cdot y3\\
t_6 := y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot t_5\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_7 := \left(y1 \cdot y4 - y0 \cdot y5\right) \cdot t_5 + t_4 \cdot \left(a \cdot y5 - c \cdot y4\right)\\
t_8 := x \cdot y - z \cdot t\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+52}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-169}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-302}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t_8 + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-280}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 1.34 \cdot 10^{-154}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;a \leq 0.0255:\\
\;\;\;\;t_7\\
\mathbf{elif}\;a \leq 750000000:\\
\;\;\;\;t_6\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+88}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{+119}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+156}:\\
\;\;\;\;y \cdot \left(x \cdot t_2\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+184}:\\
\;\;\;\;y5 \cdot \left(a \cdot t_4 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot t_8\right)\\
\end{array}
\end{array}
if a < -1.8e52Initial program 24.3%
Simplified29.5%
Taylor expanded in y around inf 38.8%
mul-1-neg38.8%
Simplified38.8%
Taylor expanded in a around -inf 52.5%
associate-*r*52.5%
neg-mul-152.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
if -1.8e52 < a < -2.3000000000000001e-169 or 3.2000000000000003e-194 < a < 1.34000000000000006e-154 or 0.0254999999999999984 < a < 7.5e8Initial program 22.1%
Simplified22.1%
Taylor expanded in y4 around inf 55.0%
if -2.3000000000000001e-169 < a < -4.20000000000000026e-302Initial program 35.0%
Simplified35.0%
Taylor expanded in b around inf 58.3%
if -4.20000000000000026e-302 < a < 2.10000000000000001e-280Initial program 60.0%
Simplified60.0%
Taylor expanded in k around inf 40.6%
Taylor expanded in y1 around inf 60.4%
mul-1-neg60.4%
unsub-neg60.4%
Simplified60.4%
if 2.10000000000000001e-280 < a < 3.2000000000000003e-194 or 7.5e8 < a < 4.7999999999999998e88Initial program 28.0%
Simplified28.0%
Taylor expanded in x around inf 76.3%
if 1.34000000000000006e-154 < a < 0.0254999999999999984 or 4.7999999999999998e88 < a < 5.3999999999999997e119Initial program 43.4%
Simplified43.4%
Taylor expanded in y5 around inf 65.0%
mul-1-neg65.0%
Simplified65.0%
Taylor expanded in i around 0 68.3%
if 5.3999999999999997e119 < a < 5.9999999999999999e156Initial program 25.0%
Simplified37.5%
Taylor expanded in y around inf 63.0%
mul-1-neg63.0%
Simplified63.0%
Taylor expanded in x around inf 75.8%
*-commutative75.8%
Simplified75.8%
if 5.9999999999999999e156 < a < 6.99999999999999956e184Initial program 0.0%
Simplified0.0%
Taylor expanded in y5 around inf 60.0%
mul-1-neg60.0%
Simplified60.0%
Taylor expanded in i around 0 41.3%
Taylor expanded in y5 around -inf 80.0%
if 6.99999999999999956e184 < a Initial program 12.5%
Simplified12.5%
Taylor expanded in b around inf 43.2%
Taylor expanded in a around inf 58.9%
Final simplification60.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (* y4 (+ (+ (* b t_1) (* y1 t_2)) (* c (- (* y y3) (* t y2))))))
(t_4 (- (* t y2) (* y y3)))
(t_5 (+ (* (- (* y1 y4) (* y0 y5)) t_2) (* t_4 (- (* a y5) (* c y4)))))
(t_6 (* (- (* i k) (* a y3)) (* y y5)))
(t_7 (- (* b y0) (* i y1))))
(if (<= y5 -1e+183)
t_6
(if (<= y5 -5.5e+59)
t_5
(if (<= y5 -4.2e-38)
(+
(* (* i y5) (- (* y k) (* t j)))
(* y3 (* j (- (* y0 y5) (* y1 y4)))))
(if (<= y5 -1.9e-81)
(*
x
(-
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_7)))
(if (<= y5 -3.1e-214)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j)))))
(if (<= y5 3.15e-145)
t_3
(if (<= y5 1.22e-86)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= y5 1.65e-57)
t_3
(if (<= y5 3e+23)
t_5
(if (<= y5 2.85e+93)
(*
z
(+
(* y3 (- (* a y1) (* c y0)))
(+ (* k t_7) (* t (- (* c i) (* a b))))))
(if (or (<= y5 1.02e+192) (not (<= y5 6.4e+224)))
(* y5 (+ (* a t_4) (* y0 (- (* j y3) (* k y2)))))
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 = (t * j) - (y * k);
double t_2 = (k * y2) - (j * y3);
double t_3 = y4 * (((b * t_1) + (y1 * t_2)) + (c * ((y * y3) - (t * y2))));
double t_4 = (t * y2) - (y * y3);
double t_5 = (((y1 * y4) - (y0 * y5)) * t_2) + (t_4 * ((a * y5) - (c * y4)));
double t_6 = ((i * k) - (a * y3)) * (y * y5);
double t_7 = (b * y0) - (i * y1);
double tmp;
if (y5 <= -1e+183) {
tmp = t_6;
} else if (y5 <= -5.5e+59) {
tmp = t_5;
} else if (y5 <= -4.2e-38) {
tmp = ((i * y5) * ((y * k) - (t * j))) + (y3 * (j * ((y0 * y5) - (y1 * y4))));
} else if (y5 <= -1.9e-81) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * t_7));
} else if (y5 <= -3.1e-214) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else if (y5 <= 3.15e-145) {
tmp = t_3;
} else if (y5 <= 1.22e-86) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (y5 <= 1.65e-57) {
tmp = t_3;
} else if (y5 <= 3e+23) {
tmp = t_5;
} else if (y5 <= 2.85e+93) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_7) + (t * ((c * i) - (a * b)))));
} else if ((y5 <= 1.02e+192) || !(y5 <= 6.4e+224)) {
tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2))));
} else {
tmp = t_6;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (k * y2) - (j * y3)
t_3 = y4 * (((b * t_1) + (y1 * t_2)) + (c * ((y * y3) - (t * y2))))
t_4 = (t * y2) - (y * y3)
t_5 = (((y1 * y4) - (y0 * y5)) * t_2) + (t_4 * ((a * y5) - (c * y4)))
t_6 = ((i * k) - (a * y3)) * (y * y5)
t_7 = (b * y0) - (i * y1)
if (y5 <= (-1d+183)) then
tmp = t_6
else if (y5 <= (-5.5d+59)) then
tmp = t_5
else if (y5 <= (-4.2d-38)) then
tmp = ((i * y5) * ((y * k) - (t * j))) + (y3 * (j * ((y0 * y5) - (y1 * y4))))
else if (y5 <= (-1.9d-81)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * t_7))
else if (y5 <= (-3.1d-214)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
else if (y5 <= 3.15d-145) then
tmp = t_3
else if (y5 <= 1.22d-86) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (y5 <= 1.65d-57) then
tmp = t_3
else if (y5 <= 3d+23) then
tmp = t_5
else if (y5 <= 2.85d+93) then
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_7) + (t * ((c * i) - (a * b)))))
else if ((y5 <= 1.02d+192) .or. (.not. (y5 <= 6.4d+224))) then
tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2))))
else
tmp = t_6
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (k * y2) - (j * y3);
double t_3 = y4 * (((b * t_1) + (y1 * t_2)) + (c * ((y * y3) - (t * y2))));
double t_4 = (t * y2) - (y * y3);
double t_5 = (((y1 * y4) - (y0 * y5)) * t_2) + (t_4 * ((a * y5) - (c * y4)));
double t_6 = ((i * k) - (a * y3)) * (y * y5);
double t_7 = (b * y0) - (i * y1);
double tmp;
if (y5 <= -1e+183) {
tmp = t_6;
} else if (y5 <= -5.5e+59) {
tmp = t_5;
} else if (y5 <= -4.2e-38) {
tmp = ((i * y5) * ((y * k) - (t * j))) + (y3 * (j * ((y0 * y5) - (y1 * y4))));
} else if (y5 <= -1.9e-81) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * t_7));
} else if (y5 <= -3.1e-214) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else if (y5 <= 3.15e-145) {
tmp = t_3;
} else if (y5 <= 1.22e-86) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (y5 <= 1.65e-57) {
tmp = t_3;
} else if (y5 <= 3e+23) {
tmp = t_5;
} else if (y5 <= 2.85e+93) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_7) + (t * ((c * i) - (a * b)))));
} else if ((y5 <= 1.02e+192) || !(y5 <= 6.4e+224)) {
tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2))));
} else {
tmp = t_6;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (k * y2) - (j * y3) t_3 = y4 * (((b * t_1) + (y1 * t_2)) + (c * ((y * y3) - (t * y2)))) t_4 = (t * y2) - (y * y3) t_5 = (((y1 * y4) - (y0 * y5)) * t_2) + (t_4 * ((a * y5) - (c * y4))) t_6 = ((i * k) - (a * y3)) * (y * y5) t_7 = (b * y0) - (i * y1) tmp = 0 if y5 <= -1e+183: tmp = t_6 elif y5 <= -5.5e+59: tmp = t_5 elif y5 <= -4.2e-38: tmp = ((i * y5) * ((y * k) - (t * j))) + (y3 * (j * ((y0 * y5) - (y1 * y4)))) elif y5 <= -1.9e-81: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * t_7)) elif y5 <= -3.1e-214: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) elif y5 <= 3.15e-145: tmp = t_3 elif y5 <= 1.22e-86: tmp = z * (a * ((y1 * y3) - (t * b))) elif y5 <= 1.65e-57: tmp = t_3 elif y5 <= 3e+23: tmp = t_5 elif y5 <= 2.85e+93: tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_7) + (t * ((c * i) - (a * b))))) elif (y5 <= 1.02e+192) or not (y5 <= 6.4e+224): tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2)))) else: tmp = t_6 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * t_2)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_4 = Float64(Float64(t * y2) - Float64(y * y3)) t_5 = Float64(Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * t_2) + Float64(t_4 * Float64(Float64(a * y5) - Float64(c * y4)))) t_6 = Float64(Float64(Float64(i * k) - Float64(a * y3)) * Float64(y * y5)) t_7 = Float64(Float64(b * y0) - Float64(i * y1)) tmp = 0.0 if (y5 <= -1e+183) tmp = t_6; elseif (y5 <= -5.5e+59) tmp = t_5; elseif (y5 <= -4.2e-38) tmp = Float64(Float64(Float64(i * y5) * Float64(Float64(y * k) - Float64(t * j))) + Float64(y3 * Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))))); elseif (y5 <= -1.9e-81) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * t_7))); elseif (y5 <= -3.1e-214) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y5 <= 3.15e-145) tmp = t_3; elseif (y5 <= 1.22e-86) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (y5 <= 1.65e-57) tmp = t_3; elseif (y5 <= 3e+23) tmp = t_5; elseif (y5 <= 2.85e+93) tmp = Float64(z * Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(Float64(k * t_7) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))); elseif ((y5 <= 1.02e+192) || !(y5 <= 6.4e+224)) tmp = Float64(y5 * Float64(Float64(a * t_4) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); else tmp = t_6; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (k * y2) - (j * y3); t_3 = y4 * (((b * t_1) + (y1 * t_2)) + (c * ((y * y3) - (t * y2)))); t_4 = (t * y2) - (y * y3); t_5 = (((y1 * y4) - (y0 * y5)) * t_2) + (t_4 * ((a * y5) - (c * y4))); t_6 = ((i * k) - (a * y3)) * (y * y5); t_7 = (b * y0) - (i * y1); tmp = 0.0; if (y5 <= -1e+183) tmp = t_6; elseif (y5 <= -5.5e+59) tmp = t_5; elseif (y5 <= -4.2e-38) tmp = ((i * y5) * ((y * k) - (t * j))) + (y3 * (j * ((y0 * y5) - (y1 * y4)))); elseif (y5 <= -1.9e-81) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * t_7)); elseif (y5 <= -3.1e-214) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); elseif (y5 <= 3.15e-145) tmp = t_3; elseif (y5 <= 1.22e-86) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (y5 <= 1.65e-57) tmp = t_3; elseif (y5 <= 3e+23) tmp = t_5; elseif (y5 <= 2.85e+93) tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_7) + (t * ((c * i) - (a * b))))); elseif ((y5 <= 1.02e+192) || ~((y5 <= 6.4e+224))) tmp = y5 * ((a * t_4) + (y0 * ((j * y3) - (k * y2)))); else tmp = t_6; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] + N[(t$95$4 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision] * N[(y * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1e+183], t$95$6, If[LessEqual[y5, -5.5e+59], t$95$5, If[LessEqual[y5, -4.2e-38], N[(N[(N[(i * y5), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.9e-81], 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 * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.1e-214], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.15e-145], t$95$3, If[LessEqual[y5, 1.22e-86], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.65e-57], t$95$3, If[LessEqual[y5, 3e+23], t$95$5, If[LessEqual[y5, 2.85e+93], N[(z * N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * t$95$7), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y5, 1.02e+192], N[Not[LessEqual[y5, 6.4e+224]], $MachinePrecision]], N[(y5 * N[(N[(a * t$95$4), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$6]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot t_2\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_4 := t \cdot y2 - y \cdot y3\\
t_5 := \left(y1 \cdot y4 - y0 \cdot y5\right) \cdot t_2 + t_4 \cdot \left(a \cdot y5 - c \cdot y4\right)\\
t_6 := \left(i \cdot k - a \cdot y3\right) \cdot \left(y \cdot y5\right)\\
t_7 := b \cdot y0 - i \cdot y1\\
\mathbf{if}\;y5 \leq -1 \cdot 10^{+183}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y5 \leq -5.5 \cdot 10^{+59}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y5 \leq -4.2 \cdot 10^{-38}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right) + y3 \cdot \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -1.9 \cdot 10^{-81}:\\
\;\;\;\;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 t_7\right)\\
\mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-214}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y5 \leq 3.15 \cdot 10^{-145}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y5 \leq 1.22 \cdot 10^{-86}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;y5 \leq 1.65 \cdot 10^{-57}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y5 \leq 3 \cdot 10^{+23}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y5 \leq 2.85 \cdot 10^{+93}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + \left(k \cdot t_7 + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 1.02 \cdot 10^{+192} \lor \neg \left(y5 \leq 6.4 \cdot 10^{+224}\right):\\
\;\;\;\;y5 \cdot \left(a \cdot t_4 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\end{array}
if y5 < -9.99999999999999947e182 or 1.01999999999999996e192 < y5 < 6.4000000000000003e224Initial program 20.8%
Simplified26.6%
Taylor expanded in y around inf 47.2%
mul-1-neg47.2%
Simplified47.2%
Taylor expanded in y5 around inf 68.3%
distribute-lft-out--68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
if -9.99999999999999947e182 < y5 < -5.4999999999999999e59 or 1.6499999999999999e-57 < y5 < 3.0000000000000001e23Initial program 27.9%
Simplified27.9%
Taylor expanded in y5 around inf 49.0%
mul-1-neg49.0%
Simplified49.0%
Taylor expanded in i around 0 58.7%
if -5.4999999999999999e59 < y5 < -4.20000000000000026e-38Initial program 27.3%
Simplified27.3%
Taylor expanded in y5 around inf 42.6%
mul-1-neg42.6%
Simplified42.6%
Taylor expanded in j around inf 54.5%
if -4.20000000000000026e-38 < y5 < -1.8999999999999999e-81Initial program 15.4%
Simplified15.4%
Taylor expanded in x around inf 62.0%
if -1.8999999999999999e-81 < y5 < -3.10000000000000004e-214Initial program 25.8%
Simplified25.8%
Taylor expanded in b around inf 59.7%
if -3.10000000000000004e-214 < y5 < 3.15e-145 or 1.22000000000000003e-86 < y5 < 1.6499999999999999e-57Initial program 34.8%
Simplified34.8%
Taylor expanded in y4 around inf 55.5%
if 3.15e-145 < y5 < 1.22000000000000003e-86Initial program 22.0%
Simplified22.0%
Taylor expanded in z around -inf 44.9%
mul-1-neg44.9%
associate--l+44.9%
Simplified44.9%
Taylor expanded in a around inf 77.8%
mul-1-neg77.8%
unsub-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
if 3.0000000000000001e23 < y5 < 2.8500000000000001e93Initial program 36.4%
Simplified36.4%
Taylor expanded in z around -inf 77.0%
mul-1-neg77.0%
associate--l+77.0%
Simplified77.0%
if 2.8500000000000001e93 < y5 < 1.01999999999999996e192 or 6.4000000000000003e224 < y5 Initial program 18.7%
Simplified18.7%
Taylor expanded in y5 around inf 29.7%
mul-1-neg29.7%
Simplified29.7%
Taylor expanded in i around 0 48.7%
Taylor expanded in y5 around -inf 68.1%
Final simplification62.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j)))))))
(if (<= b -4.4e+144)
t_2
(if (<= b -3.05e-61)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= b 2.05e-135)
(* y5 (+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= b 2.55e-64)
(*
x
(-
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1)))))
(if (<= b 1.16e-28)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 1.45e+66)
(* y4 (* j (- (* t b) (* y1 y3))))
(if (or (<= b 1e+122) (not (<= b 6e+136)))
t_2
(* z (* b (- (* k y0) (* t a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -4.4e+144) {
tmp = t_2;
} else if (b <= -3.05e-61) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (b <= 2.05e-135) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 2.55e-64) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else if (b <= 1.16e-28) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.45e+66) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if ((b <= 1e+122) || !(b <= 6e+136)) {
tmp = t_2;
} else {
tmp = z * (b * ((k * y0) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
if (b <= (-4.4d+144)) then
tmp = t_2
else if (b <= (-3.05d-61)) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (b <= 2.05d-135) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (b <= 2.55d-64) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))))
else if (b <= 1.16d-28) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 1.45d+66) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else if ((b <= 1d+122) .or. (.not. (b <= 6d+136))) then
tmp = t_2
else
tmp = z * (b * ((k * y0) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -4.4e+144) {
tmp = t_2;
} else if (b <= -3.05e-61) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (b <= 2.05e-135) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 2.55e-64) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else if (b <= 1.16e-28) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.45e+66) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if ((b <= 1e+122) || !(b <= 6e+136)) {
tmp = t_2;
} else {
tmp = z * (b * ((k * y0) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) tmp = 0 if b <= -4.4e+144: tmp = t_2 elif b <= -3.05e-61: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif b <= 2.05e-135: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif b <= 2.55e-64: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))) elif b <= 1.16e-28: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 1.45e+66: tmp = y4 * (j * ((t * b) - (y1 * y3))) elif (b <= 1e+122) or not (b <= 6e+136): tmp = t_2 else: tmp = z * (b * ((k * y0) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (b <= -4.4e+144) tmp = t_2; elseif (b <= -3.05e-61) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (b <= 2.05e-135) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (b <= 2.55e-64) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (b <= 1.16e-28) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 1.45e+66) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif ((b <= 1e+122) || !(b <= 6e+136)) tmp = t_2; else tmp = Float64(z * Float64(b * Float64(Float64(k * y0) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (b <= -4.4e+144) tmp = t_2; elseif (b <= -3.05e-61) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (b <= 2.05e-135) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (b <= 2.55e-64) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))); elseif (b <= 1.16e-28) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 1.45e+66) tmp = y4 * (j * ((t * b) - (y1 * y3))); elseif ((b <= 1e+122) || ~((b <= 6e+136))) tmp = t_2; else tmp = z * (b * ((k * y0) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+144], t$95$2, If[LessEqual[b, -3.05e-61], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e-135], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.55e-64], 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[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.16e-28], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e+66], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1e+122], N[Not[LessEqual[b, 6e+136]], $MachinePrecision]], t$95$2, N[(z * N[(b * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+144}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.05 \cdot 10^{-61}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-135}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{-64}:\\
\;\;\;\;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(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq 1.16 \cdot 10^{-28}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+66}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 10^{+122} \lor \neg \left(b \leq 6 \cdot 10^{+136}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -4.39999999999999976e144 or 1.44999999999999993e66 < b < 1.00000000000000001e122 or 5.99999999999999958e136 < b Initial program 20.0%
Simplified20.0%
Taylor expanded in b around inf 63.4%
if -4.39999999999999976e144 < b < -3.05e-61Initial program 21.7%
Simplified21.7%
Taylor expanded in y4 around inf 55.3%
if -3.05e-61 < b < 2.05000000000000005e-135Initial program 37.7%
Simplified37.7%
Taylor expanded in y5 around inf 44.5%
mul-1-neg44.5%
Simplified44.5%
Taylor expanded in i around 0 46.4%
Taylor expanded in y5 around -inf 47.7%
if 2.05000000000000005e-135 < b < 2.54999999999999992e-64Initial program 21.1%
Simplified21.1%
Taylor expanded in x around inf 63.2%
if 2.54999999999999992e-64 < b < 1.1600000000000001e-28Initial program 41.7%
Simplified41.7%
Taylor expanded in z around -inf 67.0%
mul-1-neg67.0%
associate--l+67.0%
Simplified67.0%
Taylor expanded in a around inf 67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 1.1600000000000001e-28 < b < 1.44999999999999993e66Initial program 25.2%
Simplified25.2%
Taylor expanded in y4 around inf 54.6%
Taylor expanded in j around inf 58.4%
mul-1-neg58.4%
unsub-neg58.4%
*-commutative58.4%
*-commutative58.4%
Simplified58.4%
if 1.00000000000000001e122 < b < 5.99999999999999958e136Initial program 0.0%
Simplified0.0%
Taylor expanded in z around -inf 16.7%
mul-1-neg16.7%
associate--l+16.7%
Simplified16.7%
Taylor expanded in b around inf 84.8%
Final simplification57.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (- (* t j) (* y k))))
(t_2
(*
y4
(+
(+ t_1 (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= b -2.5e+214)
(* (* b y0) (- (* z k) (* x j)))
(if (<= b -1.15e+87)
(* y4 t_1)
(if (<= b -7.5e+55)
(* i (* y (- (* k y5) (* x c))))
(if (<= b -2.25e-60)
t_2
(if (<= b 1.35e-110)
(*
y5
(+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= b 1e-73)
t_2
(if (<= b 8e-37)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 1.9e+95)
t_2
(* b (* t (- (* j y4) (* z a))))))))))))))
double code(double x, double y, double z, double t, double a, double 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 * ((t * j) - (y * k));
double t_2 = y4 * ((t_1 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (b <= -2.5e+214) {
tmp = (b * y0) * ((z * k) - (x * j));
} else if (b <= -1.15e+87) {
tmp = y4 * t_1;
} else if (b <= -7.5e+55) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (b <= -2.25e-60) {
tmp = t_2;
} else if (b <= 1.35e-110) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 1e-73) {
tmp = t_2;
} else if (b <= 8e-37) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.9e+95) {
tmp = t_2;
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
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 * ((t * j) - (y * k))
t_2 = y4 * ((t_1 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (b <= (-2.5d+214)) then
tmp = (b * y0) * ((z * k) - (x * j))
else if (b <= (-1.15d+87)) then
tmp = y4 * t_1
else if (b <= (-7.5d+55)) then
tmp = i * (y * ((k * y5) - (x * c)))
else if (b <= (-2.25d-60)) then
tmp = t_2
else if (b <= 1.35d-110) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (b <= 1d-73) then
tmp = t_2
else if (b <= 8d-37) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 1.9d+95) then
tmp = t_2
else
tmp = b * (t * ((j * y4) - (z * a)))
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 * ((t * j) - (y * k));
double t_2 = y4 * ((t_1 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (b <= -2.5e+214) {
tmp = (b * y0) * ((z * k) - (x * j));
} else if (b <= -1.15e+87) {
tmp = y4 * t_1;
} else if (b <= -7.5e+55) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (b <= -2.25e-60) {
tmp = t_2;
} else if (b <= 1.35e-110) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 1e-73) {
tmp = t_2;
} else if (b <= 8e-37) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.9e+95) {
tmp = t_2;
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * ((t * j) - (y * k)) t_2 = y4 * ((t_1 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if b <= -2.5e+214: tmp = (b * y0) * ((z * k) - (x * j)) elif b <= -1.15e+87: tmp = y4 * t_1 elif b <= -7.5e+55: tmp = i * (y * ((k * y5) - (x * c))) elif b <= -2.25e-60: tmp = t_2 elif b <= 1.35e-110: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif b <= 1e-73: tmp = t_2 elif b <= 8e-37: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 1.9e+95: tmp = t_2 else: tmp = b * (t * ((j * y4) - (z * a))) 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(t * j) - Float64(y * k))) t_2 = Float64(y4 * Float64(Float64(t_1 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (b <= -2.5e+214) tmp = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))); elseif (b <= -1.15e+87) tmp = Float64(y4 * t_1); elseif (b <= -7.5e+55) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); elseif (b <= -2.25e-60) tmp = t_2; elseif (b <= 1.35e-110) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (b <= 1e-73) tmp = t_2; elseif (b <= 8e-37) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 1.9e+95) tmp = t_2; else tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); 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 * ((t * j) - (y * k)); t_2 = y4 * ((t_1 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (b <= -2.5e+214) tmp = (b * y0) * ((z * k) - (x * j)); elseif (b <= -1.15e+87) tmp = y4 * t_1; elseif (b <= -7.5e+55) tmp = i * (y * ((k * y5) - (x * c))); elseif (b <= -2.25e-60) tmp = t_2; elseif (b <= 1.35e-110) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (b <= 1e-73) tmp = t_2; elseif (b <= 8e-37) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 1.9e+95) tmp = t_2; else tmp = b * (t * ((j * y4) - (z * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(N[(t$95$1 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+214], N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e+87], N[(y4 * t$95$1), $MachinePrecision], If[LessEqual[b, -7.5e+55], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.25e-60], t$95$2, If[LessEqual[b, 1.35e-110], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-73], t$95$2, If[LessEqual[b, 8e-37], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e+95], t$95$2, N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot j - y \cdot k\right)\\
t_2 := y4 \cdot \left(\left(t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+214}:\\
\;\;\;\;\left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+87}:\\
\;\;\;\;y4 \cdot t_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+55}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-60}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-110}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 10^{-73}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-37}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{+95}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -2.49999999999999977e214Initial program 22.0%
Simplified22.0%
Taylor expanded in b around inf 64.3%
Taylor expanded in y0 around inf 64.8%
if -2.49999999999999977e214 < b < -1.1500000000000001e87Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -1.1500000000000001e87 < b < -7.50000000000000014e55Initial program 0.0%
Simplified14.3%
Taylor expanded in y around inf 71.4%
mul-1-neg71.4%
Simplified71.4%
Taylor expanded in i around -inf 72.1%
associate-*r*72.1%
neg-mul-172.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
if -7.50000000000000014e55 < b < -2.25e-60 or 1.3499999999999999e-110 < b < 9.99999999999999997e-74 or 8.00000000000000053e-37 < b < 1.9e95Initial program 29.3%
Simplified29.3%
Taylor expanded in y4 around inf 54.5%
if -2.25e-60 < b < 1.3499999999999999e-110Initial program 36.3%
Simplified36.3%
Taylor expanded in y5 around inf 42.8%
mul-1-neg42.8%
Simplified42.8%
Taylor expanded in i around 0 44.7%
Taylor expanded in y5 around -inf 47.2%
if 9.99999999999999997e-74 < b < 8.00000000000000053e-37Initial program 33.3%
Simplified33.3%
Taylor expanded in z around -inf 60.1%
mul-1-neg60.1%
associate--l+60.1%
Simplified60.1%
Taylor expanded in a around inf 54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
if 1.9e95 < b Initial program 20.2%
Simplified20.2%
Taylor expanded in b around inf 56.2%
Taylor expanded in t around -inf 49.0%
mul-1-neg49.0%
associate-*r*50.7%
distribute-lft-neg-in50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Final simplification53.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i)))
(t_2 (- (* b y0) (* i y1)))
(t_3 (- (* t j) (* y k)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* x y) (* z t))))
(if (<= a -2.95e+54)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= a -4e-169)
(* y4 (+ (+ (* b t_3) (* y1 t_4)) (* c (- (* y y3) (* t y2)))))
(if (<= a -7.8e-302)
(* b (+ (+ (* a t_5) (* y4 t_3)) (* y0 (- (* z k) (* x j)))))
(if (<= a 1.04e-280)
(*
z
(+
(* y3 (- (* a y1) (* c y0)))
(+ (* k t_2) (* t (- (* c i) (* a b))))))
(if (<= a 8.5e-180)
(* x (- (+ (* y t_1) (* y2 (- (* c y0) (* a y1)))) (* j t_2)))
(if (<= a 2.3e-54)
(+
(* (- (* y1 y4) (* y0 y5)) t_4)
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(if (<= a 1.8e+174)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x t_1) (* y3 (- (* c y4) (* a y5))))))
(* a (* b 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 = (a * b) - (c * i);
double t_2 = (b * y0) - (i * y1);
double t_3 = (t * j) - (y * k);
double t_4 = (k * y2) - (j * y3);
double t_5 = (x * y) - (z * t);
double tmp;
if (a <= -2.95e+54) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (a <= -4e-169) {
tmp = y4 * (((b * t_3) + (y1 * t_4)) + (c * ((y * y3) - (t * y2))));
} else if (a <= -7.8e-302) {
tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
} else if (a <= 1.04e-280) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_2) + (t * ((c * i) - (a * b)))));
} else if (a <= 8.5e-180) {
tmp = x * (((y * t_1) + (y2 * ((c * y0) - (a * y1)))) - (j * t_2));
} else if (a <= 2.3e-54) {
tmp = (((y1 * y4) - (y0 * y5)) * t_4) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)));
} else if (a <= 1.8e+174) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5)))));
} else {
tmp = a * (b * 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) :: tmp
t_1 = (a * b) - (c * i)
t_2 = (b * y0) - (i * y1)
t_3 = (t * j) - (y * k)
t_4 = (k * y2) - (j * y3)
t_5 = (x * y) - (z * t)
if (a <= (-2.95d+54)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (a <= (-4d-169)) then
tmp = y4 * (((b * t_3) + (y1 * t_4)) + (c * ((y * y3) - (t * y2))))
else if (a <= (-7.8d-302)) then
tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))))
else if (a <= 1.04d-280) then
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_2) + (t * ((c * i) - (a * b)))))
else if (a <= 8.5d-180) then
tmp = x * (((y * t_1) + (y2 * ((c * y0) - (a * y1)))) - (j * t_2))
else if (a <= 2.3d-54) then
tmp = (((y1 * y4) - (y0 * y5)) * t_4) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))
else if (a <= 1.8d+174) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5)))))
else
tmp = a * (b * 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 = (a * b) - (c * i);
double t_2 = (b * y0) - (i * y1);
double t_3 = (t * j) - (y * k);
double t_4 = (k * y2) - (j * y3);
double t_5 = (x * y) - (z * t);
double tmp;
if (a <= -2.95e+54) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (a <= -4e-169) {
tmp = y4 * (((b * t_3) + (y1 * t_4)) + (c * ((y * y3) - (t * y2))));
} else if (a <= -7.8e-302) {
tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
} else if (a <= 1.04e-280) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_2) + (t * ((c * i) - (a * b)))));
} else if (a <= 8.5e-180) {
tmp = x * (((y * t_1) + (y2 * ((c * y0) - (a * y1)))) - (j * t_2));
} else if (a <= 2.3e-54) {
tmp = (((y1 * y4) - (y0 * y5)) * t_4) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)));
} else if (a <= 1.8e+174) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5)))));
} else {
tmp = a * (b * t_5);
}
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 = (b * y0) - (i * y1) t_3 = (t * j) - (y * k) t_4 = (k * y2) - (j * y3) t_5 = (x * y) - (z * t) tmp = 0 if a <= -2.95e+54: tmp = a * (y * ((x * b) - (y3 * y5))) elif a <= -4e-169: tmp = y4 * (((b * t_3) + (y1 * t_4)) + (c * ((y * y3) - (t * y2)))) elif a <= -7.8e-302: tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))) elif a <= 1.04e-280: tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_2) + (t * ((c * i) - (a * b))))) elif a <= 8.5e-180: tmp = x * (((y * t_1) + (y2 * ((c * y0) - (a * y1)))) - (j * t_2)) elif a <= 2.3e-54: tmp = (((y1 * y4) - (y0 * y5)) * t_4) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))) elif a <= 1.8e+174: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5))))) else: tmp = a * (b * 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(a * b) - Float64(c * i)) t_2 = Float64(Float64(b * y0) - Float64(i * y1)) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (a <= -2.95e+54) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (a <= -4e-169) tmp = Float64(y4 * Float64(Float64(Float64(b * t_3) + Float64(y1 * t_4)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (a <= -7.8e-302) tmp = Float64(b * Float64(Float64(Float64(a * t_5) + Float64(y4 * t_3)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (a <= 1.04e-280) tmp = Float64(z * Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) + Float64(Float64(k * t_2) + Float64(t * Float64(Float64(c * i) - Float64(a * b)))))); elseif (a <= 8.5e-180) tmp = Float64(x * Float64(Float64(Float64(y * t_1) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * t_2))); elseif (a <= 2.3e-54) tmp = Float64(Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * t_4) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (a <= 1.8e+174) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_1) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); else tmp = Float64(a * Float64(b * 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 = (a * b) - (c * i); t_2 = (b * y0) - (i * y1); t_3 = (t * j) - (y * k); t_4 = (k * y2) - (j * y3); t_5 = (x * y) - (z * t); tmp = 0.0; if (a <= -2.95e+54) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (a <= -4e-169) tmp = y4 * (((b * t_3) + (y1 * t_4)) + (c * ((y * y3) - (t * y2)))); elseif (a <= -7.8e-302) tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))); elseif (a <= 1.04e-280) tmp = z * ((y3 * ((a * y1) - (c * y0))) + ((k * t_2) + (t * ((c * i) - (a * b))))); elseif (a <= 8.5e-180) tmp = x * (((y * t_1) + (y2 * ((c * y0) - (a * y1)))) - (j * t_2)); elseif (a <= 2.3e-54) tmp = (((y1 * y4) - (y0 * y5)) * t_4) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))); elseif (a <= 1.8e+174) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * ((c * y4) - (a * y5))))); else tmp = a * (b * 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[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.95e+54], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4e-169], N[(y4 * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.8e-302], N[(b * N[(N[(N[(a * t$95$5), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.04e-280], N[(z * N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(k * t$95$2), $MachinePrecision] + N[(t * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-180], N[(x * N[(N[(N[(y * t$95$1), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e-54], N[(N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e+174], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := b \cdot y0 - i \cdot y1\\
t_3 := t \cdot j - y \cdot k\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := x \cdot y - z \cdot t\\
\mathbf{if}\;a \leq -2.95 \cdot 10^{+54}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-169}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_3 + y1 \cdot t_4\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{-302}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t_5 + y4 \cdot t_3\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 1.04 \cdot 10^{-280}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) + \left(k \cdot t_2 + t \cdot \left(c \cdot i - a \cdot b\right)\right)\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-180}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_1 + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot t_2\right)\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-54}:\\
\;\;\;\;\left(y1 \cdot y4 - y0 \cdot y5\right) \cdot t_4 + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+174}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_1 + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot t_5\right)\\
\end{array}
\end{array}
if a < -2.9499999999999999e54Initial program 24.3%
Simplified29.5%
Taylor expanded in y around inf 38.8%
mul-1-neg38.8%
Simplified38.8%
Taylor expanded in a around -inf 52.5%
associate-*r*52.5%
neg-mul-152.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
if -2.9499999999999999e54 < a < -4.00000000000000008e-169Initial program 25.1%
Simplified25.1%
Taylor expanded in y4 around inf 48.4%
if -4.00000000000000008e-169 < a < -7.7999999999999998e-302Initial program 35.0%
Simplified35.0%
Taylor expanded in b around inf 58.3%
if -7.7999999999999998e-302 < a < 1.04000000000000002e-280Initial program 60.0%
Simplified60.0%
Taylor expanded in z around -inf 61.1%
mul-1-neg61.1%
associate--l+61.1%
Simplified61.1%
if 1.04000000000000002e-280 < a < 8.4999999999999993e-180Initial program 15.0%
Simplified15.0%
Taylor expanded in x around inf 65.1%
if 8.4999999999999993e-180 < a < 2.2999999999999999e-54Initial program 33.6%
Simplified33.6%
Taylor expanded in y5 around inf 66.9%
mul-1-neg66.9%
Simplified66.9%
Taylor expanded in i around 0 71.3%
if 2.2999999999999999e-54 < a < 1.8000000000000001e174Initial program 35.5%
Simplified53.3%
Taylor expanded in y around inf 60.4%
mul-1-neg60.4%
Simplified60.4%
if 1.8000000000000001e174 < a Initial program 11.8%
Simplified11.8%
Taylor expanded in b around inf 40.7%
Taylor expanded in a around inf 55.5%
Final simplification57.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j))))))
(t_3 (- (* k y2) (* j y3))))
(if (<= b -1.4e+142)
t_2
(if (<= b -1.6e-60)
(* y4 (+ (+ (* b t_1) (* y1 t_3)) (* c (- (* y y3) (* t y2)))))
(if (<= b 4.8e-104)
(* y5 (+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= b 2.9e-34)
t_2
(if (<= b 2e-8)
(* (* y1 y4) t_3)
(if (<= b 2.5e+66) (* y4 (* j (- (* t b) (* y1 y3)))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double t_3 = (k * y2) - (j * y3);
double tmp;
if (b <= -1.4e+142) {
tmp = t_2;
} else if (b <= -1.6e-60) {
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2))));
} else if (b <= 4.8e-104) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 2.9e-34) {
tmp = t_2;
} else if (b <= 2e-8) {
tmp = (y1 * y4) * t_3;
} else if (b <= 2.5e+66) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
t_3 = (k * y2) - (j * y3)
if (b <= (-1.4d+142)) then
tmp = t_2
else if (b <= (-1.6d-60)) then
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2))))
else if (b <= 4.8d-104) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (b <= 2.9d-34) then
tmp = t_2
else if (b <= 2d-8) then
tmp = (y1 * y4) * t_3
else if (b <= 2.5d+66) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
double t_3 = (k * y2) - (j * y3);
double tmp;
if (b <= -1.4e+142) {
tmp = t_2;
} else if (b <= -1.6e-60) {
tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2))));
} else if (b <= 4.8e-104) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 2.9e-34) {
tmp = t_2;
} else if (b <= 2e-8) {
tmp = (y1 * y4) * t_3;
} else if (b <= 2.5e+66) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) t_3 = (k * y2) - (j * y3) tmp = 0 if b <= -1.4e+142: tmp = t_2 elif b <= -1.6e-60: tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2)))) elif b <= 4.8e-104: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif b <= 2.9e-34: tmp = t_2 elif b <= 2e-8: tmp = (y1 * y4) * t_3 elif b <= 2.5e+66: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (b <= -1.4e+142) tmp = t_2; elseif (b <= -1.6e-60) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * t_3)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (b <= 4.8e-104) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (b <= 2.9e-34) tmp = t_2; elseif (b <= 2e-8) tmp = Float64(Float64(y1 * y4) * t_3); elseif (b <= 2.5e+66) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); t_3 = (k * y2) - (j * y3); tmp = 0.0; if (b <= -1.4e+142) tmp = t_2; elseif (b <= -1.6e-60) tmp = y4 * (((b * t_1) + (y1 * t_3)) + (c * ((y * y3) - (t * y2)))); elseif (b <= 4.8e-104) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (b <= 2.9e-34) tmp = t_2; elseif (b <= 2e-8) tmp = (y1 * y4) * t_3; elseif (b <= 2.5e+66) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+142], t$95$2, If[LessEqual[b, -1.6e-60], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.8e-104], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e-34], t$95$2, If[LessEqual[b, 2e-8], N[(N[(y1 * y4), $MachinePrecision] * t$95$3), $MachinePrecision], If[LessEqual[b, 2.5e+66], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_3 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+142}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-60}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot t_3\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-104}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-34}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-8}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot t_3\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+66}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.4e142 or 4.8000000000000001e-104 < b < 2.9000000000000002e-34 or 2.49999999999999996e66 < b Initial program 21.3%
Simplified21.3%
Taylor expanded in b around inf 55.4%
if -1.4e142 < b < -1.6000000000000001e-60Initial program 21.7%
Simplified21.7%
Taylor expanded in y4 around inf 55.3%
if -1.6000000000000001e-60 < b < 4.8000000000000001e-104Initial program 36.3%
Simplified36.3%
Taylor expanded in y5 around inf 42.8%
mul-1-neg42.8%
Simplified42.8%
Taylor expanded in i around 0 44.7%
Taylor expanded in y5 around -inf 47.2%
if 2.9000000000000002e-34 < b < 2e-8Initial program 12.5%
Simplified12.5%
Taylor expanded in y4 around inf 62.5%
Taylor expanded in y1 around inf 76.3%
associate-*r*88.0%
Simplified88.0%
if 2e-8 < b < 2.49999999999999996e66Initial program 35.6%
Simplified35.6%
Taylor expanded in y4 around inf 47.6%
Taylor expanded in j around inf 58.9%
mul-1-neg58.9%
unsub-neg58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Final simplification54.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2
(*
y1
(+
(* a (- (* z y3) (* x y2)))
(+ (* i (- (* x j) (* z k))) (* y4 t_1)))))
(t_3 (* i (* y (- (* k y5) (* x c))))))
(if (<= t -1e+128)
(*
c
(+
(* i (- (* z t) (* x y)))
(+ (* y0 (- (* x y2) (* z y3))) (* y4 (- (* y y3) (* t y2))))))
(if (<= t -1.55e+95)
(* (* i y5) (- (* y k) (* t j)))
(if (<= t -1.3e-212)
t_2
(if (<= t -1.15e-251)
t_3
(if (<= t 7.5e-228)
t_2
(if (<= t 1.28e-8)
(+
(* (- (* y1 y4) (* y0 y5)) t_1)
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(if (<= t 1e+50)
t_3
(if (<= t 7.5e+102)
(* (* b y0) (- (* z k) (* x j)))
(if (<= t 1.35e+142)
(* y (* y3 (- (* c y4) (* a y5))))
(* (* t y4) (- (* b j) (* c y2))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_1)));
double t_3 = i * (y * ((k * y5) - (x * c)));
double tmp;
if (t <= -1e+128) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * ((x * y2) - (z * y3))) + (y4 * ((y * y3) - (t * y2)))));
} else if (t <= -1.55e+95) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (t <= -1.3e-212) {
tmp = t_2;
} else if (t <= -1.15e-251) {
tmp = t_3;
} else if (t <= 7.5e-228) {
tmp = t_2;
} else if (t <= 1.28e-8) {
tmp = (((y1 * y4) - (y0 * y5)) * t_1) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)));
} else if (t <= 1e+50) {
tmp = t_3;
} else if (t <= 7.5e+102) {
tmp = (b * y0) * ((z * k) - (x * j));
} else if (t <= 1.35e+142) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else {
tmp = (t * y4) * ((b * j) - (c * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (k * y2) - (j * y3)
t_2 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_1)))
t_3 = i * (y * ((k * y5) - (x * c)))
if (t <= (-1d+128)) then
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * ((x * y2) - (z * y3))) + (y4 * ((y * y3) - (t * y2)))))
else if (t <= (-1.55d+95)) then
tmp = (i * y5) * ((y * k) - (t * j))
else if (t <= (-1.3d-212)) then
tmp = t_2
else if (t <= (-1.15d-251)) then
tmp = t_3
else if (t <= 7.5d-228) then
tmp = t_2
else if (t <= 1.28d-8) then
tmp = (((y1 * y4) - (y0 * y5)) * t_1) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))
else if (t <= 1d+50) then
tmp = t_3
else if (t <= 7.5d+102) then
tmp = (b * y0) * ((z * k) - (x * j))
else if (t <= 1.35d+142) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else
tmp = (t * y4) * ((b * j) - (c * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_1)));
double t_3 = i * (y * ((k * y5) - (x * c)));
double tmp;
if (t <= -1e+128) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * ((x * y2) - (z * y3))) + (y4 * ((y * y3) - (t * y2)))));
} else if (t <= -1.55e+95) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (t <= -1.3e-212) {
tmp = t_2;
} else if (t <= -1.15e-251) {
tmp = t_3;
} else if (t <= 7.5e-228) {
tmp = t_2;
} else if (t <= 1.28e-8) {
tmp = (((y1 * y4) - (y0 * y5)) * t_1) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)));
} else if (t <= 1e+50) {
tmp = t_3;
} else if (t <= 7.5e+102) {
tmp = (b * y0) * ((z * k) - (x * j));
} else if (t <= 1.35e+142) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else {
tmp = (t * y4) * ((b * j) - (c * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (k * y2) - (j * y3) t_2 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_1))) t_3 = i * (y * ((k * y5) - (x * c))) tmp = 0 if t <= -1e+128: tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * ((x * y2) - (z * y3))) + (y4 * ((y * y3) - (t * y2))))) elif t <= -1.55e+95: tmp = (i * y5) * ((y * k) - (t * j)) elif t <= -1.3e-212: tmp = t_2 elif t <= -1.15e-251: tmp = t_3 elif t <= 7.5e-228: tmp = t_2 elif t <= 1.28e-8: tmp = (((y1 * y4) - (y0 * y5)) * t_1) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))) elif t <= 1e+50: tmp = t_3 elif t <= 7.5e+102: tmp = (b * y0) * ((z * k) - (x * j)) elif t <= 1.35e+142: tmp = y * (y3 * ((c * y4) - (a * y5))) else: tmp = (t * y4) * ((b * j) - (c * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(y4 * t_1)))) t_3 = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))) tmp = 0.0 if (t <= -1e+128) tmp = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))))); elseif (t <= -1.55e+95) tmp = Float64(Float64(i * y5) * Float64(Float64(y * k) - Float64(t * j))); elseif (t <= -1.3e-212) tmp = t_2; elseif (t <= -1.15e-251) tmp = t_3; elseif (t <= 7.5e-228) tmp = t_2; elseif (t <= 1.28e-8) tmp = Float64(Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * t_1) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (t <= 1e+50) tmp = t_3; elseif (t <= 7.5e+102) tmp = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))); elseif (t <= 1.35e+142) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); else tmp = Float64(Float64(t * y4) * Float64(Float64(b * j) - Float64(c * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (k * y2) - (j * y3); t_2 = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * t_1))); t_3 = i * (y * ((k * y5) - (x * c))); tmp = 0.0; if (t <= -1e+128) tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * ((x * y2) - (z * y3))) + (y4 * ((y * y3) - (t * y2))))); elseif (t <= -1.55e+95) tmp = (i * y5) * ((y * k) - (t * j)); elseif (t <= -1.3e-212) tmp = t_2; elseif (t <= -1.15e-251) tmp = t_3; elseif (t <= 7.5e-228) tmp = t_2; elseif (t <= 1.28e-8) tmp = (((y1 * y4) - (y0 * y5)) * t_1) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))); elseif (t <= 1e+50) tmp = t_3; elseif (t <= 7.5e+102) tmp = (b * y0) * ((z * k) - (x * j)); elseif (t <= 1.35e+142) tmp = y * (y3 * ((c * y4) - (a * y5))); else tmp = (t * y4) * ((b * j) - (c * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e+128], N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.55e+95], N[(N[(i * y5), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.3e-212], t$95$2, If[LessEqual[t, -1.15e-251], t$95$3, If[LessEqual[t, 7.5e-228], t$95$2, If[LessEqual[t, 1.28e-8], N[(N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+50], t$95$3, If[LessEqual[t, 7.5e+102], N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+142], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * y4), $MachinePrecision] * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot t_1\right)\right)\\
t_3 := i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{if}\;t \leq -1 \cdot 10^{+128}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{+95}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right)\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{-212}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-251}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-228}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.28 \cdot 10^{-8}:\\
\;\;\;\;\left(y1 \cdot y4 - y0 \cdot y5\right) \cdot t_1 + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\\
\mathbf{elif}\;t \leq 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+102}:\\
\;\;\;\;\left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+142}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot y4\right) \cdot \left(b \cdot j - c \cdot y2\right)\\
\end{array}
\end{array}
if t < -1.0000000000000001e128Initial program 26.9%
Simplified26.9%
Taylor expanded in c around inf 51.8%
associate--l+51.8%
mul-1-neg51.8%
Simplified51.8%
if -1.0000000000000001e128 < t < -1.5500000000000001e95Initial program 15.4%
Simplified15.4%
Taylor expanded in y5 around inf 23.4%
mul-1-neg23.4%
Simplified23.4%
Taylor expanded in i around inf 77.2%
mul-1-neg77.2%
*-commutative77.2%
*-commutative77.2%
associate-*l*77.2%
*-commutative77.2%
distribute-rgt-neg-out77.2%
*-commutative77.2%
*-commutative77.2%
distribute-lft-neg-in77.2%
Simplified77.2%
if -1.5500000000000001e95 < t < -1.3e-212 or -1.15000000000000009e-251 < t < 7.4999999999999999e-228Initial program 31.4%
Simplified38.3%
Taylor expanded in y1 around inf 58.0%
mul-1-neg58.0%
mul-1-neg58.0%
sub-neg58.0%
Simplified58.0%
if -1.3e-212 < t < -1.15000000000000009e-251 or 1.28000000000000005e-8 < t < 1.0000000000000001e50Initial program 23.9%
Simplified35.9%
Taylor expanded in y around inf 63.9%
mul-1-neg63.9%
Simplified63.9%
Taylor expanded in i around -inf 69.0%
associate-*r*69.0%
neg-mul-169.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
if 7.4999999999999999e-228 < t < 1.28000000000000005e-8Initial program 26.3%
Simplified26.3%
Taylor expanded in y5 around inf 48.2%
mul-1-neg48.2%
Simplified48.2%
Taylor expanded in i around 0 59.3%
if 1.0000000000000001e50 < t < 7.5e102Initial program 0.0%
Simplified0.0%
Taylor expanded in b around inf 55.7%
Taylor expanded in y0 around inf 78.0%
if 7.5e102 < t < 1.34999999999999991e142Initial program 22.2%
Simplified22.2%
Taylor expanded in y around inf 55.4%
mul-1-neg55.4%
Simplified55.4%
Taylor expanded in y3 around inf 56.1%
if 1.34999999999999991e142 < t Initial program 30.8%
Simplified30.8%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in t around inf 58.3%
associate-*r*61.9%
*-commutative61.9%
Simplified61.9%
Final simplification60.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j))))
(t_2 (* b (* t (- (* j y4) (* z a)))))
(t_3 (- (* t y2) (* y y3))))
(if (<= b -2.2e+216)
t_1
(if (<= b -2.6e+88)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -1.1e+75)
t_1
(if (<= b -2.2e-57)
(* (* i k) (- (* y y5) (* z y1)))
(if (<= b -8.2e-65)
(* a (* y5 t_3))
(if (<= b -2.9e-107)
t_2
(if (<= b -1.1e-127)
(* z (* y3 (- (* a y1) (* c y0))))
(if (<= b -2.7e-239)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= b 2.1e-258)
(* y5 (* a t_3))
(if (<= b 1.85e-82)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= b 7.5e-64)
(* (* i y5) (- (* y k) (* t j)))
(if (<= b 3.6e-34)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 4.5e-9)
(* (* y1 y4) (- (* k y2) (* j y3)))
(if (<= b 5.8e+94)
(* y4 (* j (- (* t b) (* y1 y3))))
t_2))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double t_2 = b * (t * ((j * y4) - (z * a)));
double t_3 = (t * y2) - (y * y3);
double tmp;
if (b <= -2.2e+216) {
tmp = t_1;
} else if (b <= -2.6e+88) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.1e+75) {
tmp = t_1;
} else if (b <= -2.2e-57) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -8.2e-65) {
tmp = a * (y5 * t_3);
} else if (b <= -2.9e-107) {
tmp = t_2;
} else if (b <= -1.1e-127) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= -2.7e-239) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 2.1e-258) {
tmp = y5 * (a * t_3);
} else if (b <= 1.85e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 7.5e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 3.6e-34) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 4.5e-9) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 5.8e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (b * y0) * ((z * k) - (x * j))
t_2 = b * (t * ((j * y4) - (z * a)))
t_3 = (t * y2) - (y * y3)
if (b <= (-2.2d+216)) then
tmp = t_1
else if (b <= (-2.6d+88)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-1.1d+75)) then
tmp = t_1
else if (b <= (-2.2d-57)) then
tmp = (i * k) * ((y * y5) - (z * y1))
else if (b <= (-8.2d-65)) then
tmp = a * (y5 * t_3)
else if (b <= (-2.9d-107)) then
tmp = t_2
else if (b <= (-1.1d-127)) then
tmp = z * (y3 * ((a * y1) - (c * y0)))
else if (b <= (-2.7d-239)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (b <= 2.1d-258) then
tmp = y5 * (a * t_3)
else if (b <= 1.85d-82) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (b <= 7.5d-64) then
tmp = (i * y5) * ((y * k) - (t * j))
else if (b <= 3.6d-34) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 4.5d-9) then
tmp = (y1 * y4) * ((k * y2) - (j * y3))
else if (b <= 5.8d+94) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double t_2 = b * (t * ((j * y4) - (z * a)));
double t_3 = (t * y2) - (y * y3);
double tmp;
if (b <= -2.2e+216) {
tmp = t_1;
} else if (b <= -2.6e+88) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.1e+75) {
tmp = t_1;
} else if (b <= -2.2e-57) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -8.2e-65) {
tmp = a * (y5 * t_3);
} else if (b <= -2.9e-107) {
tmp = t_2;
} else if (b <= -1.1e-127) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= -2.7e-239) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 2.1e-258) {
tmp = y5 * (a * t_3);
} else if (b <= 1.85e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 7.5e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 3.6e-34) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 4.5e-9) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 5.8e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) t_2 = b * (t * ((j * y4) - (z * a))) t_3 = (t * y2) - (y * y3) tmp = 0 if b <= -2.2e+216: tmp = t_1 elif b <= -2.6e+88: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -1.1e+75: tmp = t_1 elif b <= -2.2e-57: tmp = (i * k) * ((y * y5) - (z * y1)) elif b <= -8.2e-65: tmp = a * (y5 * t_3) elif b <= -2.9e-107: tmp = t_2 elif b <= -1.1e-127: tmp = z * (y3 * ((a * y1) - (c * y0))) elif b <= -2.7e-239: tmp = y * (y3 * ((c * y4) - (a * y5))) elif b <= 2.1e-258: tmp = y5 * (a * t_3) elif b <= 1.85e-82: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif b <= 7.5e-64: tmp = (i * y5) * ((y * k) - (t * j)) elif b <= 3.6e-34: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 4.5e-9: tmp = (y1 * y4) * ((k * y2) - (j * y3)) elif b <= 5.8e+94: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) t_2 = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))) t_3 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (b <= -2.2e+216) tmp = t_1; elseif (b <= -2.6e+88) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -1.1e+75) tmp = t_1; elseif (b <= -2.2e-57) tmp = Float64(Float64(i * k) * Float64(Float64(y * y5) - Float64(z * y1))); elseif (b <= -8.2e-65) tmp = Float64(a * Float64(y5 * t_3)); elseif (b <= -2.9e-107) tmp = t_2; elseif (b <= -1.1e-127) tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -2.7e-239) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (b <= 2.1e-258) tmp = Float64(y5 * Float64(a * t_3)); elseif (b <= 1.85e-82) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (b <= 7.5e-64) tmp = Float64(Float64(i * y5) * Float64(Float64(y * k) - Float64(t * j))); elseif (b <= 3.6e-34) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 4.5e-9) tmp = Float64(Float64(y1 * y4) * Float64(Float64(k * y2) - Float64(j * y3))); elseif (b <= 5.8e+94) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y0) * ((z * k) - (x * j)); t_2 = b * (t * ((j * y4) - (z * a))); t_3 = (t * y2) - (y * y3); tmp = 0.0; if (b <= -2.2e+216) tmp = t_1; elseif (b <= -2.6e+88) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -1.1e+75) tmp = t_1; elseif (b <= -2.2e-57) tmp = (i * k) * ((y * y5) - (z * y1)); elseif (b <= -8.2e-65) tmp = a * (y5 * t_3); elseif (b <= -2.9e-107) tmp = t_2; elseif (b <= -1.1e-127) tmp = z * (y3 * ((a * y1) - (c * y0))); elseif (b <= -2.7e-239) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (b <= 2.1e-258) tmp = y5 * (a * t_3); elseif (b <= 1.85e-82) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (b <= 7.5e-64) tmp = (i * y5) * ((y * k) - (t * j)); elseif (b <= 3.6e-34) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 4.5e-9) tmp = (y1 * y4) * ((k * y2) - (j * y3)); elseif (b <= 5.8e+94) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.2e+216], t$95$1, If[LessEqual[b, -2.6e+88], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e+75], t$95$1, If[LessEqual[b, -2.2e-57], N[(N[(i * k), $MachinePrecision] * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.2e-65], N[(a * N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9e-107], t$95$2, If[LessEqual[b, -1.1e-127], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-239], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-258], N[(y5 * N[(a * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e-82], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-64], N[(N[(i * y5), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e-34], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e-9], N[(N[(y1 * y4), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e+94], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
t_2 := b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
t_3 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{+216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{+88}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-57}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(y \cdot y5 - z \cdot y1\right)\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-65}:\\
\;\;\;\;a \cdot \left(y5 \cdot t_3\right)\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-127}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-239}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-258}:\\
\;\;\;\;y5 \cdot \left(a \cdot t_3\right)\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{-82}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-64}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-34}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-9}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+94}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.2e216 or -2.6000000000000001e88 < b < -1.10000000000000006e75Initial program 17.1%
Simplified17.1%
Taylor expanded in b around inf 55.6%
Taylor expanded in y0 around inf 72.6%
if -2.2e216 < b < -2.6000000000000001e88Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -1.10000000000000006e75 < b < -2.19999999999999999e-57Initial program 30.3%
Simplified39.1%
Taylor expanded in k around inf 48.0%
Taylor expanded in i around inf 44.3%
associate-*r*43.9%
*-commutative43.9%
mul-1-neg43.9%
unsub-neg43.9%
*-commutative43.9%
Simplified43.9%
if -2.19999999999999999e-57 < b < -8.19999999999999975e-65Initial program 50.0%
Simplified50.0%
Taylor expanded in y5 around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in a around inf 100.0%
if -8.19999999999999975e-65 < b < -2.8999999999999998e-107 or 5.7999999999999997e94 < b Initial program 22.0%
Simplified22.0%
Taylor expanded in b around inf 54.8%
Taylor expanded in t around -inf 45.0%
mul-1-neg45.0%
associate-*r*51.6%
distribute-lft-neg-in51.6%
*-commutative51.6%
distribute-rgt-neg-in51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
if -2.8999999999999998e-107 < b < -1.1000000000000001e-127Initial program 66.7%
Simplified66.7%
Taylor expanded in z around -inf 83.3%
mul-1-neg83.3%
associate--l+83.3%
Simplified83.3%
Taylor expanded in y3 around inf 83.5%
if -1.1000000000000001e-127 < b < -2.7000000000000001e-239Initial program 31.2%
Simplified37.4%
Taylor expanded in y around inf 56.4%
mul-1-neg56.4%
Simplified56.4%
Taylor expanded in y3 around inf 56.5%
if -2.7000000000000001e-239 < b < 2.0999999999999999e-258Initial program 34.5%
Simplified34.5%
Taylor expanded in y5 around inf 44.1%
mul-1-neg44.1%
Simplified44.1%
Taylor expanded in i around 0 42.1%
Taylor expanded in a around inf 35.8%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
if 2.0999999999999999e-258 < b < 1.85e-82Initial program 24.9%
Simplified32.1%
Taylor expanded in k around inf 47.1%
Taylor expanded in y1 around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
if 1.85e-82 < b < 7.49999999999999949e-64Initial program 25.0%
Simplified25.0%
Taylor expanded in y5 around inf 25.1%
mul-1-neg25.1%
Simplified25.1%
Taylor expanded in i around inf 62.6%
mul-1-neg62.6%
*-commutative62.6%
*-commutative62.6%
associate-*l*62.6%
*-commutative62.6%
distribute-rgt-neg-out62.6%
*-commutative62.6%
*-commutative62.6%
distribute-lft-neg-in62.6%
Simplified62.6%
if 7.49999999999999949e-64 < b < 3.60000000000000008e-34Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
Taylor expanded in a around inf 80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
if 3.60000000000000008e-34 < b < 4.49999999999999976e-9Initial program 12.5%
Simplified12.5%
Taylor expanded in y4 around inf 62.5%
Taylor expanded in y1 around inf 76.3%
associate-*r*88.0%
Simplified88.0%
if 4.49999999999999976e-9 < b < 5.7999999999999997e94Initial program 35.2%
Simplified35.2%
Taylor expanded in y4 around inf 48.7%
Taylor expanded in j around inf 52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
*-commutative52.6%
Simplified52.6%
Final simplification56.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j)))))
(if (<= b -2.5e+214)
t_1
(if (<= b -7e+87)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -1.15e+62)
t_1
(if (<= b -2.7e+50)
(* (* y b) (- (* x a) (* k y4)))
(if (<= b -3.3e-59)
(*
y2
(+ (* k (- (* y1 y4) (* y0 y5))) (* t (- (* a y5) (* c y4)))))
(if (<= b -6.5e-207)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= b -3e-250)
(* y5 (* k (- (* y i) (* y0 y2))))
(if (<= b 1.2e-252)
(* y5 (* a (- (* t y2) (* y y3))))
(if (<= b 2.45e-82)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= b 6.1e-64)
(* (* i y5) (- (* y k) (* t j)))
(if (<= b 3.2e-36)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 3.55e-9)
(* (* y1 y4) (- (* k y2) (* j y3)))
(if (<= b 2.05e+16)
(* k (* z (- (* b y0) (* i y1))))
(if (<= b 4.6e+94)
(* y4 (* j (- (* t b) (* y1 y3))))
(* b (* t (- (* j y4) (* z a))))))))))))))))))))
double code(double x, double y, double z, double t, double a, double 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 * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -2.5e+214) {
tmp = t_1;
} else if (b <= -7e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.15e+62) {
tmp = t_1;
} else if (b <= -2.7e+50) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (b <= -3.3e-59) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * ((a * y5) - (c * y4))));
} else if (b <= -6.5e-207) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (b <= -3e-250) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 1.2e-252) {
tmp = y5 * (a * ((t * y2) - (y * y3)));
} else if (b <= 2.45e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 6.1e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 3.2e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 3.55e-9) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 2.05e+16) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (b <= 4.6e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
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 * y0) * ((z * k) - (x * j))
if (b <= (-2.5d+214)) then
tmp = t_1
else if (b <= (-7d+87)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-1.15d+62)) then
tmp = t_1
else if (b <= (-2.7d+50)) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (b <= (-3.3d-59)) then
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * ((a * y5) - (c * y4))))
else if (b <= (-6.5d-207)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (b <= (-3d-250)) then
tmp = y5 * (k * ((y * i) - (y0 * y2)))
else if (b <= 1.2d-252) then
tmp = y5 * (a * ((t * y2) - (y * y3)))
else if (b <= 2.45d-82) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (b <= 6.1d-64) then
tmp = (i * y5) * ((y * k) - (t * j))
else if (b <= 3.2d-36) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 3.55d-9) then
tmp = (y1 * y4) * ((k * y2) - (j * y3))
else if (b <= 2.05d+16) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (b <= 4.6d+94) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = b * (t * ((j * y4) - (z * a)))
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 * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -2.5e+214) {
tmp = t_1;
} else if (b <= -7e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.15e+62) {
tmp = t_1;
} else if (b <= -2.7e+50) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (b <= -3.3e-59) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * ((a * y5) - (c * y4))));
} else if (b <= -6.5e-207) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (b <= -3e-250) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 1.2e-252) {
tmp = y5 * (a * ((t * y2) - (y * y3)));
} else if (b <= 2.45e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 6.1e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 3.2e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 3.55e-9) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 2.05e+16) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (b <= 4.6e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) tmp = 0 if b <= -2.5e+214: tmp = t_1 elif b <= -7e+87: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -1.15e+62: tmp = t_1 elif b <= -2.7e+50: tmp = (y * b) * ((x * a) - (k * y4)) elif b <= -3.3e-59: tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * ((a * y5) - (c * y4)))) elif b <= -6.5e-207: tmp = a * (y * ((x * b) - (y3 * y5))) elif b <= -3e-250: tmp = y5 * (k * ((y * i) - (y0 * y2))) elif b <= 1.2e-252: tmp = y5 * (a * ((t * y2) - (y * y3))) elif b <= 2.45e-82: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif b <= 6.1e-64: tmp = (i * y5) * ((y * k) - (t * j)) elif b <= 3.2e-36: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 3.55e-9: tmp = (y1 * y4) * ((k * y2) - (j * y3)) elif b <= 2.05e+16: tmp = k * (z * ((b * y0) - (i * y1))) elif b <= 4.6e+94: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = b * (t * ((j * y4) - (z * a))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) tmp = 0.0 if (b <= -2.5e+214) tmp = t_1; elseif (b <= -7e+87) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -1.15e+62) tmp = t_1; elseif (b <= -2.7e+50) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (b <= -3.3e-59) tmp = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (b <= -6.5e-207) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (b <= -3e-250) tmp = Float64(y5 * Float64(k * Float64(Float64(y * i) - Float64(y0 * y2)))); elseif (b <= 1.2e-252) tmp = Float64(y5 * Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (b <= 2.45e-82) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (b <= 6.1e-64) tmp = Float64(Float64(i * y5) * Float64(Float64(y * k) - Float64(t * j))); elseif (b <= 3.2e-36) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 3.55e-9) tmp = Float64(Float64(y1 * y4) * Float64(Float64(k * y2) - Float64(j * y3))); elseif (b <= 2.05e+16) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (b <= 4.6e+94) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); 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 * y0) * ((z * k) - (x * j)); tmp = 0.0; if (b <= -2.5e+214) tmp = t_1; elseif (b <= -7e+87) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -1.15e+62) tmp = t_1; elseif (b <= -2.7e+50) tmp = (y * b) * ((x * a) - (k * y4)); elseif (b <= -3.3e-59) tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * ((a * y5) - (c * y4)))); elseif (b <= -6.5e-207) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (b <= -3e-250) tmp = y5 * (k * ((y * i) - (y0 * y2))); elseif (b <= 1.2e-252) tmp = y5 * (a * ((t * y2) - (y * y3))); elseif (b <= 2.45e-82) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (b <= 6.1e-64) tmp = (i * y5) * ((y * k) - (t * j)); elseif (b <= 3.2e-36) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 3.55e-9) tmp = (y1 * y4) * ((k * y2) - (j * y3)); elseif (b <= 2.05e+16) tmp = k * (z * ((b * y0) - (i * y1))); elseif (b <= 4.6e+94) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = b * (t * ((j * y4) - (z * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+214], t$95$1, If[LessEqual[b, -7e+87], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e+62], t$95$1, If[LessEqual[b, -2.7e+50], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.3e-59], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.5e-207], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3e-250], N[(y5 * N[(k * N[(N[(y * i), $MachinePrecision] - N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-252], N[(y5 * N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.45e-82], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.1e-64], N[(N[(i * y5), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e-36], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.55e-9], N[(N[(y1 * y4), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e+16], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e+94], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{+87}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+50}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-59}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-250}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y \cdot i - y0 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-252}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{-82}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 6.1 \cdot 10^{-64}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-36}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 3.55 \cdot 10^{-9}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+16}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+94}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -2.49999999999999977e214 or -6.99999999999999972e87 < b < -1.14999999999999992e62Initial program 15.4%
Simplified15.4%
Taylor expanded in b around inf 50.0%
Taylor expanded in y0 around inf 70.5%
if -2.49999999999999977e214 < b < -6.99999999999999972e87Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -1.14999999999999992e62 < b < -2.7e50Initial program 24.6%
Simplified24.6%
Taylor expanded in y around inf 75.2%
mul-1-neg75.2%
Simplified75.2%
Taylor expanded in b around inf 75.5%
associate-*r*75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -2.7e50 < b < -3.29999999999999982e-59Initial program 33.2%
Simplified33.2%
Taylor expanded in y5 around inf 58.5%
mul-1-neg58.5%
Simplified58.5%
Taylor expanded in y2 around inf 57.8%
if -3.29999999999999982e-59 < b < -6.5000000000000001e-207Initial program 39.1%
Simplified47.8%
Taylor expanded in y around inf 52.3%
mul-1-neg52.3%
Simplified52.3%
Taylor expanded in a around -inf 52.7%
associate-*r*52.7%
neg-mul-152.7%
+-commutative52.7%
mul-1-neg52.7%
unsub-neg52.7%
Simplified52.7%
if -6.5000000000000001e-207 < b < -3.00000000000000016e-250Initial program 44.3%
Simplified44.3%
Taylor expanded in k around inf 56.6%
Taylor expanded in y5 around inf 46.8%
associate-*r*57.0%
mul-1-neg57.0%
unsub-neg57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
if -3.00000000000000016e-250 < b < 1.2000000000000001e-252Initial program 36.8%
Simplified36.8%
Taylor expanded in y5 around inf 43.7%
mul-1-neg43.7%
Simplified43.7%
Taylor expanded in i around 0 44.9%
Taylor expanded in a around inf 38.1%
associate-*r*41.2%
*-commutative41.2%
Simplified41.2%
if 1.2000000000000001e-252 < b < 2.4500000000000001e-82Initial program 24.9%
Simplified32.1%
Taylor expanded in k around inf 47.1%
Taylor expanded in y1 around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
if 2.4500000000000001e-82 < b < 6.0999999999999996e-64Initial program 25.0%
Simplified25.0%
Taylor expanded in y5 around inf 25.1%
mul-1-neg25.1%
Simplified25.1%
Taylor expanded in i around inf 62.6%
mul-1-neg62.6%
*-commutative62.6%
*-commutative62.6%
associate-*l*62.6%
*-commutative62.6%
distribute-rgt-neg-out62.6%
*-commutative62.6%
*-commutative62.6%
distribute-lft-neg-in62.6%
Simplified62.6%
if 6.0999999999999996e-64 < b < 3.20000000000000021e-36Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
Taylor expanded in a around inf 80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
if 3.20000000000000021e-36 < b < 3.54999999999999994e-9Initial program 12.5%
Simplified12.5%
Taylor expanded in y4 around inf 62.5%
Taylor expanded in y1 around inf 76.3%
associate-*r*88.0%
Simplified88.0%
if 3.54999999999999994e-9 < b < 2.05e16Initial program 0.0%
Simplified40.0%
Taylor expanded in k around inf 41.8%
Taylor expanded in z around inf 42.7%
if 2.05e16 < b < 4.5999999999999999e94Initial program 45.0%
Simplified45.0%
Taylor expanded in y4 around inf 62.2%
Taylor expanded in j around inf 61.5%
mul-1-neg61.5%
unsub-neg61.5%
*-commutative61.5%
*-commutative61.5%
Simplified61.5%
if 4.5999999999999999e94 < b Initial program 20.2%
Simplified20.2%
Taylor expanded in b around inf 56.2%
Taylor expanded in t around -inf 49.0%
mul-1-neg49.0%
associate-*r*50.7%
distribute-lft-neg-in50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Final simplification57.1%
(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 (* (* b y0) (- (* z k) (* x j)))))
(if (<= b -1.05e+217)
t_2
(if (<= b -4.9e+87)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -6.1e+57)
t_2
(if (<= b -6.8e+40)
(* (* y b) (- (* x a) (* k y4)))
(if (<= b -1.32e-117)
(+
(* (* j y3) (- (* y0 y5) (* y1 y4)))
(* t_1 (- (* a y5) (* c y4))))
(if (<= b 1.5e-105)
(* y5 (+ (* a t_1) (* y0 (- (* j y3) (* k y2)))))
(if (<= b 5.3e-64)
(* (* i y5) (- (* y k) (* t j)))
(if (<= b 2.2e-36)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 2.25e-8)
(* (* y1 y4) (- (* k y2) (* j y3)))
(if (<= b 4e+94)
(* y4 (* j (- (* t b) (* y1 y3))))
(* b (* t (- (* j y4) (* z a))))))))))))))))
double code(double x, double y, double z, double t, double a, double 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 = (b * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -1.05e+217) {
tmp = t_2;
} else if (b <= -4.9e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -6.1e+57) {
tmp = t_2;
} else if (b <= -6.8e+40) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (b <= -1.32e-117) {
tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_1 * ((a * y5) - (c * y4)));
} else if (b <= 1.5e-105) {
tmp = y5 * ((a * t_1) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 5.3e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 2.2e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 2.25e-8) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 4e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t * y2) - (y * y3)
t_2 = (b * y0) * ((z * k) - (x * j))
if (b <= (-1.05d+217)) then
tmp = t_2
else if (b <= (-4.9d+87)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-6.1d+57)) then
tmp = t_2
else if (b <= (-6.8d+40)) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (b <= (-1.32d-117)) then
tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_1 * ((a * y5) - (c * y4)))
else if (b <= 1.5d-105) then
tmp = y5 * ((a * t_1) + (y0 * ((j * y3) - (k * y2))))
else if (b <= 5.3d-64) then
tmp = (i * y5) * ((y * k) - (t * j))
else if (b <= 2.2d-36) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 2.25d-8) then
tmp = (y1 * y4) * ((k * y2) - (j * y3))
else if (b <= 4d+94) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = b * (t * ((j * y4) - (z * a)))
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 = (b * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -1.05e+217) {
tmp = t_2;
} else if (b <= -4.9e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -6.1e+57) {
tmp = t_2;
} else if (b <= -6.8e+40) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (b <= -1.32e-117) {
tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_1 * ((a * y5) - (c * y4)));
} else if (b <= 1.5e-105) {
tmp = y5 * ((a * t_1) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 5.3e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 2.2e-36) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 2.25e-8) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 4e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
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 = (b * y0) * ((z * k) - (x * j)) tmp = 0 if b <= -1.05e+217: tmp = t_2 elif b <= -4.9e+87: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -6.1e+57: tmp = t_2 elif b <= -6.8e+40: tmp = (y * b) * ((x * a) - (k * y4)) elif b <= -1.32e-117: tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_1 * ((a * y5) - (c * y4))) elif b <= 1.5e-105: tmp = y5 * ((a * t_1) + (y0 * ((j * y3) - (k * y2)))) elif b <= 5.3e-64: tmp = (i * y5) * ((y * k) - (t * j)) elif b <= 2.2e-36: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 2.25e-8: tmp = (y1 * y4) * ((k * y2) - (j * y3)) elif b <= 4e+94: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = b * (t * ((j * y4) - (z * a))) 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(b * y0) * Float64(Float64(z * k) - Float64(x * j))) tmp = 0.0 if (b <= -1.05e+217) tmp = t_2; elseif (b <= -4.9e+87) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -6.1e+57) tmp = t_2; elseif (b <= -6.8e+40) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (b <= -1.32e-117) tmp = Float64(Float64(Float64(j * y3) * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t_1 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (b <= 1.5e-105) tmp = Float64(y5 * Float64(Float64(a * t_1) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (b <= 5.3e-64) tmp = Float64(Float64(i * y5) * Float64(Float64(y * k) - Float64(t * j))); elseif (b <= 2.2e-36) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 2.25e-8) tmp = Float64(Float64(y1 * y4) * Float64(Float64(k * y2) - Float64(j * y3))); elseif (b <= 4e+94) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); 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 = (b * y0) * ((z * k) - (x * j)); tmp = 0.0; if (b <= -1.05e+217) tmp = t_2; elseif (b <= -4.9e+87) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -6.1e+57) tmp = t_2; elseif (b <= -6.8e+40) tmp = (y * b) * ((x * a) - (k * y4)); elseif (b <= -1.32e-117) tmp = ((j * y3) * ((y0 * y5) - (y1 * y4))) + (t_1 * ((a * y5) - (c * y4))); elseif (b <= 1.5e-105) tmp = y5 * ((a * t_1) + (y0 * ((j * y3) - (k * y2)))); elseif (b <= 5.3e-64) tmp = (i * y5) * ((y * k) - (t * j)); elseif (b <= 2.2e-36) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 2.25e-8) tmp = (y1 * y4) * ((k * y2) - (j * y3)); elseif (b <= 4e+94) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = b * (t * ((j * y4) - (z * a))); 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[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+217], t$95$2, If[LessEqual[b, -4.9e+87], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.1e+57], t$95$2, If[LessEqual[b, -6.8e+40], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.32e-117], N[(N[(N[(j * y3), $MachinePrecision] * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-105], N[(y5 * N[(N[(a * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.3e-64], N[(N[(i * y5), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e-36], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-8], N[(N[(y1 * y4), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+94], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+217}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.9 \cdot 10^{+87}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -6.1 \cdot 10^{+57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{+40}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{-117}:\\
\;\;\;\;\left(j \cdot y3\right) \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t_1 \cdot \left(a \cdot y5 - c \cdot y4\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-105}:\\
\;\;\;\;y5 \cdot \left(a \cdot t_1 + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-64}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-36}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-8}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+94}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -1.05e217 or -4.89999999999999971e87 < b < -6.09999999999999975e57Initial program 15.4%
Simplified15.4%
Taylor expanded in b around inf 50.0%
Taylor expanded in y0 around inf 70.5%
if -1.05e217 < b < -4.89999999999999971e87Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -6.09999999999999975e57 < b < -6.79999999999999977e40Initial program 14.1%
Simplified28.3%
Taylor expanded in y around inf 71.5%
mul-1-neg71.5%
Simplified71.5%
Taylor expanded in b around inf 57.5%
associate-*r*57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
if -6.79999999999999977e40 < b < -1.32e-117Initial program 44.4%
Simplified44.4%
Taylor expanded in y5 around inf 53.8%
mul-1-neg53.8%
Simplified53.8%
Taylor expanded in i around 0 58.2%
Taylor expanded in k around 0 58.9%
neg-mul-158.9%
distribute-rgt-neg-in58.9%
Simplified58.9%
if -1.32e-117 < b < 1.5e-105Initial program 33.3%
Simplified33.3%
Taylor expanded in y5 around inf 41.0%
mul-1-neg41.0%
Simplified41.0%
Taylor expanded in i around 0 44.4%
Taylor expanded in y5 around -inf 48.9%
if 1.5e-105 < b < 5.3000000000000002e-64Initial program 23.5%
Simplified23.5%
Taylor expanded in y5 around inf 24.3%
mul-1-neg24.3%
Simplified24.3%
Taylor expanded in i around inf 42.2%
mul-1-neg42.2%
*-commutative42.2%
*-commutative42.2%
associate-*l*36.6%
*-commutative36.6%
distribute-rgt-neg-out36.6%
*-commutative36.6%
*-commutative36.6%
distribute-lft-neg-in36.6%
Simplified36.6%
if 5.3000000000000002e-64 < b < 2.1999999999999999e-36Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
Taylor expanded in a around inf 80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
if 2.1999999999999999e-36 < b < 2.24999999999999996e-8Initial program 12.5%
Simplified12.5%
Taylor expanded in y4 around inf 62.5%
Taylor expanded in y1 around inf 76.3%
associate-*r*88.0%
Simplified88.0%
if 2.24999999999999996e-8 < b < 4.0000000000000001e94Initial program 35.2%
Simplified35.2%
Taylor expanded in y4 around inf 48.7%
Taylor expanded in j around inf 52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
*-commutative52.6%
Simplified52.6%
if 4.0000000000000001e94 < b Initial program 20.2%
Simplified20.2%
Taylor expanded in b around inf 56.2%
Taylor expanded in t around -inf 49.0%
mul-1-neg49.0%
associate-*r*50.7%
distribute-lft-neg-in50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Final simplification56.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j)))))
(if (<= b -5.4e+213)
t_1
(if (<= b -3.15e+87)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -1.9e+75)
t_1
(if (<= b -6.8e-57)
(* (* i k) (- (* y y5) (* z y1)))
(if (<= b -1.75e-64)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= b -3.5e-107)
(* y (* x (- (* a b) (* c i))))
(if (<= b 1.5e-248)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= b 4.5e-82)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= b 5.8e-41)
(* y5 (* k (- (* y i) (* y0 y2))))
(if (<= b 6.4e+93)
(* y4 (* j (- (* t b) (* y1 y3))))
(if (<= b 9.2e+231)
(* (* t b) (- (* j y4) (* z a)))
(if (<= b 3.6e+286)
(* k (* b (- (* z y0) (* y y4))))
(* c (* y4 (- (* y y3) (* t y2))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -5.4e+213) {
tmp = t_1;
} else if (b <= -3.15e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.9e+75) {
tmp = t_1;
} else if (b <= -6.8e-57) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -1.75e-64) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= -3.5e-107) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (b <= 1.5e-248) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 4.5e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 5.8e-41) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 6.4e+93) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (b <= 9.2e+231) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (b <= 3.6e+286) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (b * y0) * ((z * k) - (x * j))
if (b <= (-5.4d+213)) then
tmp = t_1
else if (b <= (-3.15d+87)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-1.9d+75)) then
tmp = t_1
else if (b <= (-6.8d-57)) then
tmp = (i * k) * ((y * y5) - (z * y1))
else if (b <= (-1.75d-64)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (b <= (-3.5d-107)) then
tmp = y * (x * ((a * b) - (c * i)))
else if (b <= 1.5d-248) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (b <= 4.5d-82) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (b <= 5.8d-41) then
tmp = y5 * (k * ((y * i) - (y0 * y2)))
else if (b <= 6.4d+93) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else if (b <= 9.2d+231) then
tmp = (t * b) * ((j * y4) - (z * a))
else if (b <= 3.6d+286) then
tmp = k * (b * ((z * y0) - (y * y4)))
else
tmp = c * (y4 * ((y * y3) - (t * y2)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -5.4e+213) {
tmp = t_1;
} else if (b <= -3.15e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.9e+75) {
tmp = t_1;
} else if (b <= -6.8e-57) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -1.75e-64) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= -3.5e-107) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (b <= 1.5e-248) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 4.5e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 5.8e-41) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 6.4e+93) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (b <= 9.2e+231) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (b <= 3.6e+286) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) tmp = 0 if b <= -5.4e+213: tmp = t_1 elif b <= -3.15e+87: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -1.9e+75: tmp = t_1 elif b <= -6.8e-57: tmp = (i * k) * ((y * y5) - (z * y1)) elif b <= -1.75e-64: tmp = a * (y5 * ((t * y2) - (y * y3))) elif b <= -3.5e-107: tmp = y * (x * ((a * b) - (c * i))) elif b <= 1.5e-248: tmp = y * (y3 * ((c * y4) - (a * y5))) elif b <= 4.5e-82: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif b <= 5.8e-41: tmp = y5 * (k * ((y * i) - (y0 * y2))) elif b <= 6.4e+93: tmp = y4 * (j * ((t * b) - (y1 * y3))) elif b <= 9.2e+231: tmp = (t * b) * ((j * y4) - (z * a)) elif b <= 3.6e+286: tmp = k * (b * ((z * y0) - (y * y4))) else: tmp = c * (y4 * ((y * y3) - (t * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) tmp = 0.0 if (b <= -5.4e+213) tmp = t_1; elseif (b <= -3.15e+87) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -1.9e+75) tmp = t_1; elseif (b <= -6.8e-57) tmp = Float64(Float64(i * k) * Float64(Float64(y * y5) - Float64(z * y1))); elseif (b <= -1.75e-64) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (b <= -3.5e-107) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (b <= 1.5e-248) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (b <= 4.5e-82) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (b <= 5.8e-41) tmp = Float64(y5 * Float64(k * Float64(Float64(y * i) - Float64(y0 * y2)))); elseif (b <= 6.4e+93) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (b <= 9.2e+231) tmp = Float64(Float64(t * b) * Float64(Float64(j * y4) - Float64(z * a))); elseif (b <= 3.6e+286) tmp = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))); else tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y0) * ((z * k) - (x * j)); tmp = 0.0; if (b <= -5.4e+213) tmp = t_1; elseif (b <= -3.15e+87) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -1.9e+75) tmp = t_1; elseif (b <= -6.8e-57) tmp = (i * k) * ((y * y5) - (z * y1)); elseif (b <= -1.75e-64) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (b <= -3.5e-107) tmp = y * (x * ((a * b) - (c * i))); elseif (b <= 1.5e-248) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (b <= 4.5e-82) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (b <= 5.8e-41) tmp = y5 * (k * ((y * i) - (y0 * y2))); elseif (b <= 6.4e+93) tmp = y4 * (j * ((t * b) - (y1 * y3))); elseif (b <= 9.2e+231) tmp = (t * b) * ((j * y4) - (z * a)); elseif (b <= 3.6e+286) tmp = k * (b * ((z * y0) - (y * y4))); else tmp = c * (y4 * ((y * y3) - (t * y2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.4e+213], t$95$1, If[LessEqual[b, -3.15e+87], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.9e+75], t$95$1, If[LessEqual[b, -6.8e-57], N[(N[(i * k), $MachinePrecision] * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-64], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-107], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-248], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e-82], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e-41], N[(y5 * N[(k * N[(N[(y * i), $MachinePrecision] - N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+93], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+231], N[(N[(t * b), $MachinePrecision] * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e+286], N[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{if}\;b \leq -5.4 \cdot 10^{+213}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.15 \cdot 10^{+87}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{-57}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(y \cdot y5 - z \cdot y1\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-64}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-107}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-248}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-82}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-41}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y \cdot i - y0 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+93}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+231}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+286}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\end{array}
\end{array}
if b < -5.4000000000000002e213 or -3.15e87 < b < -1.9000000000000001e75Initial program 17.1%
Simplified17.1%
Taylor expanded in b around inf 55.6%
Taylor expanded in y0 around inf 72.6%
if -5.4000000000000002e213 < b < -3.15e87Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -1.9000000000000001e75 < b < -6.80000000000000032e-57Initial program 30.3%
Simplified39.1%
Taylor expanded in k around inf 48.0%
Taylor expanded in i around inf 44.3%
associate-*r*43.9%
*-commutative43.9%
mul-1-neg43.9%
unsub-neg43.9%
*-commutative43.9%
Simplified43.9%
if -6.80000000000000032e-57 < b < -1.7500000000000002e-64Initial program 50.0%
Simplified50.0%
Taylor expanded in y5 around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in a around inf 100.0%
if -1.7500000000000002e-64 < b < -3.49999999999999985e-107Initial program 40.0%
Simplified40.0%
Taylor expanded in y around inf 40.2%
mul-1-neg40.2%
Simplified40.2%
Taylor expanded in x around inf 60.3%
*-commutative60.3%
Simplified60.3%
if -3.49999999999999985e-107 < b < 1.50000000000000007e-248Initial program 37.1%
Simplified40.8%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in y3 around inf 39.6%
if 1.50000000000000007e-248 < b < 4.4999999999999998e-82Initial program 24.9%
Simplified32.1%
Taylor expanded in k around inf 47.1%
Taylor expanded in y1 around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
if 4.4999999999999998e-82 < b < 5.79999999999999955e-41Initial program 25.0%
Simplified56.3%
Taylor expanded in k around inf 31.6%
Taylor expanded in y5 around inf 44.6%
associate-*r*50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
if 5.79999999999999955e-41 < b < 6.4000000000000003e93Initial program 33.6%
Simplified33.6%
Taylor expanded in y4 around inf 49.1%
Taylor expanded in j around inf 51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
*-commutative51.9%
Simplified51.9%
if 6.4000000000000003e93 < b < 9.19999999999999997e231Initial program 21.5%
Simplified21.5%
Taylor expanded in b around inf 48.8%
Taylor expanded in t around inf 52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
Simplified52.5%
if 9.19999999999999997e231 < b < 3.6e286Initial program 15.4%
Simplified30.8%
Taylor expanded in k around inf 46.2%
Taylor expanded in b around inf 69.2%
*-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if 3.6e286 < b Initial program 25.0%
Simplified25.0%
Taylor expanded in y4 around inf 75.0%
Taylor expanded in c around inf 100.0%
Final simplification53.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j)))) (t_2 (- (* t y2) (* y y3))))
(if (<= b -8.4e+214)
t_1
(if (<= b -1.25e+88)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -6e+74)
t_1
(if (<= b -3e-58)
(* (* i k) (- (* y y5) (* z y1)))
(if (<= b -9e-66)
(* a (* y5 t_2))
(if (<= b -5.2e-108)
(* y (* x (- (* a b) (* c i))))
(if (<= b -2.6e-131)
(* z (* y3 (- (* a y1) (* c y0))))
(if (<= b -2.2e-240)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= b 2.4e-259)
(* y5 (* a t_2))
(if (<= b 4.3e-82)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= b 3.05e-40)
(* y5 (* k (- (* y i) (* y0 y2))))
(if (<= b 6.4e+93)
(* y4 (* j (- (* t b) (* y1 y3))))
(* z (* a (- (* y1 y3) (* t b))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double t_2 = (t * y2) - (y * y3);
double tmp;
if (b <= -8.4e+214) {
tmp = t_1;
} else if (b <= -1.25e+88) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -6e+74) {
tmp = t_1;
} else if (b <= -3e-58) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -9e-66) {
tmp = a * (y5 * t_2);
} else if (b <= -5.2e-108) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (b <= -2.6e-131) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= -2.2e-240) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 2.4e-259) {
tmp = y5 * (a * t_2);
} else if (b <= 4.3e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 3.05e-40) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 6.4e+93) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = z * (a * ((y1 * y3) - (t * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * y0) * ((z * k) - (x * j))
t_2 = (t * y2) - (y * y3)
if (b <= (-8.4d+214)) then
tmp = t_1
else if (b <= (-1.25d+88)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-6d+74)) then
tmp = t_1
else if (b <= (-3d-58)) then
tmp = (i * k) * ((y * y5) - (z * y1))
else if (b <= (-9d-66)) then
tmp = a * (y5 * t_2)
else if (b <= (-5.2d-108)) then
tmp = y * (x * ((a * b) - (c * i)))
else if (b <= (-2.6d-131)) then
tmp = z * (y3 * ((a * y1) - (c * y0)))
else if (b <= (-2.2d-240)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (b <= 2.4d-259) then
tmp = y5 * (a * t_2)
else if (b <= 4.3d-82) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (b <= 3.05d-40) then
tmp = y5 * (k * ((y * i) - (y0 * y2)))
else if (b <= 6.4d+93) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = z * (a * ((y1 * y3) - (t * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double t_2 = (t * y2) - (y * y3);
double tmp;
if (b <= -8.4e+214) {
tmp = t_1;
} else if (b <= -1.25e+88) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -6e+74) {
tmp = t_1;
} else if (b <= -3e-58) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -9e-66) {
tmp = a * (y5 * t_2);
} else if (b <= -5.2e-108) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (b <= -2.6e-131) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= -2.2e-240) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 2.4e-259) {
tmp = y5 * (a * t_2);
} else if (b <= 4.3e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 3.05e-40) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 6.4e+93) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = z * (a * ((y1 * y3) - (t * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) t_2 = (t * y2) - (y * y3) tmp = 0 if b <= -8.4e+214: tmp = t_1 elif b <= -1.25e+88: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -6e+74: tmp = t_1 elif b <= -3e-58: tmp = (i * k) * ((y * y5) - (z * y1)) elif b <= -9e-66: tmp = a * (y5 * t_2) elif b <= -5.2e-108: tmp = y * (x * ((a * b) - (c * i))) elif b <= -2.6e-131: tmp = z * (y3 * ((a * y1) - (c * y0))) elif b <= -2.2e-240: tmp = y * (y3 * ((c * y4) - (a * y5))) elif b <= 2.4e-259: tmp = y5 * (a * t_2) elif b <= 4.3e-82: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif b <= 3.05e-40: tmp = y5 * (k * ((y * i) - (y0 * y2))) elif b <= 6.4e+93: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = z * (a * ((y1 * y3) - (t * b))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (b <= -8.4e+214) tmp = t_1; elseif (b <= -1.25e+88) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -6e+74) tmp = t_1; elseif (b <= -3e-58) tmp = Float64(Float64(i * k) * Float64(Float64(y * y5) - Float64(z * y1))); elseif (b <= -9e-66) tmp = Float64(a * Float64(y5 * t_2)); elseif (b <= -5.2e-108) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (b <= -2.6e-131) tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -2.2e-240) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (b <= 2.4e-259) tmp = Float64(y5 * Float64(a * t_2)); elseif (b <= 4.3e-82) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (b <= 3.05e-40) tmp = Float64(y5 * Float64(k * Float64(Float64(y * i) - Float64(y0 * y2)))); elseif (b <= 6.4e+93) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y0) * ((z * k) - (x * j)); t_2 = (t * y2) - (y * y3); tmp = 0.0; if (b <= -8.4e+214) tmp = t_1; elseif (b <= -1.25e+88) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -6e+74) tmp = t_1; elseif (b <= -3e-58) tmp = (i * k) * ((y * y5) - (z * y1)); elseif (b <= -9e-66) tmp = a * (y5 * t_2); elseif (b <= -5.2e-108) tmp = y * (x * ((a * b) - (c * i))); elseif (b <= -2.6e-131) tmp = z * (y3 * ((a * y1) - (c * y0))); elseif (b <= -2.2e-240) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (b <= 2.4e-259) tmp = y5 * (a * t_2); elseif (b <= 4.3e-82) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (b <= 3.05e-40) tmp = y5 * (k * ((y * i) - (y0 * y2))); elseif (b <= 6.4e+93) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = z * (a * ((y1 * y3) - (t * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.4e+214], t$95$1, If[LessEqual[b, -1.25e+88], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6e+74], t$95$1, If[LessEqual[b, -3e-58], N[(N[(i * k), $MachinePrecision] * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9e-66], N[(a * N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.2e-108], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.6e-131], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-240], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-259], N[(y5 * N[(a * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.3e-82], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.05e-40], N[(y5 * N[(k * N[(N[(y * i), $MachinePrecision] - N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+93], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
t_2 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;b \leq -8.4 \cdot 10^{+214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{+88}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -6 \cdot 10^{+74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-58}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(y \cdot y5 - z \cdot y1\right)\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(y5 \cdot t_2\right)\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-108}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-131}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-259}:\\
\;\;\;\;y5 \cdot \left(a \cdot t_2\right)\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{-82}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 3.05 \cdot 10^{-40}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y \cdot i - y0 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+93}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\end{array}
\end{array}
if b < -8.4000000000000003e214 or -1.24999999999999999e88 < b < -6e74Initial program 17.1%
Simplified17.1%
Taylor expanded in b around inf 55.6%
Taylor expanded in y0 around inf 72.6%
if -8.4000000000000003e214 < b < -1.24999999999999999e88Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -6e74 < b < -3.00000000000000008e-58Initial program 30.3%
Simplified39.1%
Taylor expanded in k around inf 48.0%
Taylor expanded in i around inf 44.3%
associate-*r*43.9%
*-commutative43.9%
mul-1-neg43.9%
unsub-neg43.9%
*-commutative43.9%
Simplified43.9%
if -3.00000000000000008e-58 < b < -8.9999999999999995e-66Initial program 50.0%
Simplified50.0%
Taylor expanded in y5 around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in a around inf 100.0%
if -8.9999999999999995e-66 < b < -5.19999999999999968e-108Initial program 40.0%
Simplified40.0%
Taylor expanded in y around inf 40.2%
mul-1-neg40.2%
Simplified40.2%
Taylor expanded in x around inf 60.3%
*-commutative60.3%
Simplified60.3%
if -5.19999999999999968e-108 < b < -2.59999999999999996e-131Initial program 66.7%
Simplified66.7%
Taylor expanded in z around -inf 83.3%
mul-1-neg83.3%
associate--l+83.3%
Simplified83.3%
Taylor expanded in y3 around inf 83.5%
if -2.59999999999999996e-131 < b < -2.1999999999999999e-240Initial program 31.2%
Simplified37.4%
Taylor expanded in y around inf 56.4%
mul-1-neg56.4%
Simplified56.4%
Taylor expanded in y3 around inf 56.5%
if -2.1999999999999999e-240 < b < 2.4000000000000001e-259Initial program 34.5%
Simplified34.5%
Taylor expanded in y5 around inf 44.1%
mul-1-neg44.1%
Simplified44.1%
Taylor expanded in i around 0 42.1%
Taylor expanded in a around inf 35.8%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
if 2.4000000000000001e-259 < b < 4.30000000000000019e-82Initial program 24.9%
Simplified32.1%
Taylor expanded in k around inf 47.1%
Taylor expanded in y1 around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
if 4.30000000000000019e-82 < b < 3.0500000000000002e-40Initial program 25.0%
Simplified56.3%
Taylor expanded in k around inf 31.6%
Taylor expanded in y5 around inf 44.6%
associate-*r*50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
if 3.0500000000000002e-40 < b < 6.4000000000000003e93Initial program 33.6%
Simplified33.6%
Taylor expanded in y4 around inf 49.1%
Taylor expanded in j around inf 51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
*-commutative51.9%
Simplified51.9%
if 6.4000000000000003e93 < b Initial program 20.2%
Simplified20.2%
Taylor expanded in z around -inf 31.0%
mul-1-neg31.0%
associate--l+31.0%
Simplified31.0%
Taylor expanded in a around inf 49.4%
mul-1-neg49.4%
unsub-neg49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
Final simplification53.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j))))
(t_2 (* b (* t (- (* j y4) (* z a)))))
(t_3 (- (* t y2) (* y y3))))
(if (<= b -9e+216)
t_1
(if (<= b -1.55e+89)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -2.3e+75)
t_1
(if (<= b -1.7e-56)
(* (* i k) (- (* y y5) (* z y1)))
(if (<= b -1.6e-64)
(* a (* y5 t_3))
(if (<= b -2.2e-108)
t_2
(if (<= b -8.8e-130)
(* z (* y3 (- (* a y1) (* c y0))))
(if (<= b -1.75e-240)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= b 2.8e-243)
(* y5 (* a t_3))
(if (<= b 1.6e-82)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= b 4.6e-40)
(* y5 (* k (- (* y i) (* y0 y2))))
(if (<= b 2.6e+94)
(* y4 (* j (- (* t b) (* y1 y3))))
t_2))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double t_2 = b * (t * ((j * y4) - (z * a)));
double t_3 = (t * y2) - (y * y3);
double tmp;
if (b <= -9e+216) {
tmp = t_1;
} else if (b <= -1.55e+89) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -2.3e+75) {
tmp = t_1;
} else if (b <= -1.7e-56) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -1.6e-64) {
tmp = a * (y5 * t_3);
} else if (b <= -2.2e-108) {
tmp = t_2;
} else if (b <= -8.8e-130) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= -1.75e-240) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 2.8e-243) {
tmp = y5 * (a * t_3);
} else if (b <= 1.6e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 4.6e-40) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 2.6e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (b * y0) * ((z * k) - (x * j))
t_2 = b * (t * ((j * y4) - (z * a)))
t_3 = (t * y2) - (y * y3)
if (b <= (-9d+216)) then
tmp = t_1
else if (b <= (-1.55d+89)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-2.3d+75)) then
tmp = t_1
else if (b <= (-1.7d-56)) then
tmp = (i * k) * ((y * y5) - (z * y1))
else if (b <= (-1.6d-64)) then
tmp = a * (y5 * t_3)
else if (b <= (-2.2d-108)) then
tmp = t_2
else if (b <= (-8.8d-130)) then
tmp = z * (y3 * ((a * y1) - (c * y0)))
else if (b <= (-1.75d-240)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (b <= 2.8d-243) then
tmp = y5 * (a * t_3)
else if (b <= 1.6d-82) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (b <= 4.6d-40) then
tmp = y5 * (k * ((y * i) - (y0 * y2)))
else if (b <= 2.6d+94) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double t_2 = b * (t * ((j * y4) - (z * a)));
double t_3 = (t * y2) - (y * y3);
double tmp;
if (b <= -9e+216) {
tmp = t_1;
} else if (b <= -1.55e+89) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -2.3e+75) {
tmp = t_1;
} else if (b <= -1.7e-56) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -1.6e-64) {
tmp = a * (y5 * t_3);
} else if (b <= -2.2e-108) {
tmp = t_2;
} else if (b <= -8.8e-130) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= -1.75e-240) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 2.8e-243) {
tmp = y5 * (a * t_3);
} else if (b <= 1.6e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 4.6e-40) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 2.6e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) t_2 = b * (t * ((j * y4) - (z * a))) t_3 = (t * y2) - (y * y3) tmp = 0 if b <= -9e+216: tmp = t_1 elif b <= -1.55e+89: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -2.3e+75: tmp = t_1 elif b <= -1.7e-56: tmp = (i * k) * ((y * y5) - (z * y1)) elif b <= -1.6e-64: tmp = a * (y5 * t_3) elif b <= -2.2e-108: tmp = t_2 elif b <= -8.8e-130: tmp = z * (y3 * ((a * y1) - (c * y0))) elif b <= -1.75e-240: tmp = y * (y3 * ((c * y4) - (a * y5))) elif b <= 2.8e-243: tmp = y5 * (a * t_3) elif b <= 1.6e-82: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif b <= 4.6e-40: tmp = y5 * (k * ((y * i) - (y0 * y2))) elif b <= 2.6e+94: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) t_2 = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))) t_3 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (b <= -9e+216) tmp = t_1; elseif (b <= -1.55e+89) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -2.3e+75) tmp = t_1; elseif (b <= -1.7e-56) tmp = Float64(Float64(i * k) * Float64(Float64(y * y5) - Float64(z * y1))); elseif (b <= -1.6e-64) tmp = Float64(a * Float64(y5 * t_3)); elseif (b <= -2.2e-108) tmp = t_2; elseif (b <= -8.8e-130) tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -1.75e-240) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (b <= 2.8e-243) tmp = Float64(y5 * Float64(a * t_3)); elseif (b <= 1.6e-82) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (b <= 4.6e-40) tmp = Float64(y5 * Float64(k * Float64(Float64(y * i) - Float64(y0 * y2)))); elseif (b <= 2.6e+94) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y0) * ((z * k) - (x * j)); t_2 = b * (t * ((j * y4) - (z * a))); t_3 = (t * y2) - (y * y3); tmp = 0.0; if (b <= -9e+216) tmp = t_1; elseif (b <= -1.55e+89) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -2.3e+75) tmp = t_1; elseif (b <= -1.7e-56) tmp = (i * k) * ((y * y5) - (z * y1)); elseif (b <= -1.6e-64) tmp = a * (y5 * t_3); elseif (b <= -2.2e-108) tmp = t_2; elseif (b <= -8.8e-130) tmp = z * (y3 * ((a * y1) - (c * y0))); elseif (b <= -1.75e-240) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (b <= 2.8e-243) tmp = y5 * (a * t_3); elseif (b <= 1.6e-82) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (b <= 4.6e-40) tmp = y5 * (k * ((y * i) - (y0 * y2))); elseif (b <= 2.6e+94) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e+216], t$95$1, If[LessEqual[b, -1.55e+89], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.3e+75], t$95$1, If[LessEqual[b, -1.7e-56], N[(N[(i * k), $MachinePrecision] * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.6e-64], N[(a * N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-108], t$95$2, If[LessEqual[b, -8.8e-130], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-240], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-243], N[(y5 * N[(a * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e-82], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e-40], N[(y5 * N[(k * N[(N[(y * i), $MachinePrecision] - N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+94], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
t_2 := b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
t_3 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;b \leq -9 \cdot 10^{+216}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{+89}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-56}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(y \cdot y5 - z \cdot y1\right)\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-64}:\\
\;\;\;\;a \cdot \left(y5 \cdot t_3\right)\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-108}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-130}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-243}:\\
\;\;\;\;y5 \cdot \left(a \cdot t_3\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-82}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{-40}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y \cdot i - y0 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+94}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -9.0000000000000005e216 or -1.55e89 < b < -2.2999999999999999e75Initial program 17.1%
Simplified17.1%
Taylor expanded in b around inf 55.6%
Taylor expanded in y0 around inf 72.6%
if -9.0000000000000005e216 < b < -1.55e89Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -2.2999999999999999e75 < b < -1.69999999999999991e-56Initial program 30.3%
Simplified39.1%
Taylor expanded in k around inf 48.0%
Taylor expanded in i around inf 44.3%
associate-*r*43.9%
*-commutative43.9%
mul-1-neg43.9%
unsub-neg43.9%
*-commutative43.9%
Simplified43.9%
if -1.69999999999999991e-56 < b < -1.59999999999999988e-64Initial program 50.0%
Simplified50.0%
Taylor expanded in y5 around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in a around inf 100.0%
if -1.59999999999999988e-64 < b < -2.2000000000000001e-108 or 2.5999999999999999e94 < b Initial program 22.0%
Simplified22.0%
Taylor expanded in b around inf 54.8%
Taylor expanded in t around -inf 45.0%
mul-1-neg45.0%
associate-*r*51.6%
distribute-lft-neg-in51.6%
*-commutative51.6%
distribute-rgt-neg-in51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
if -2.2000000000000001e-108 < b < -8.7999999999999995e-130Initial program 66.7%
Simplified66.7%
Taylor expanded in z around -inf 83.3%
mul-1-neg83.3%
associate--l+83.3%
Simplified83.3%
Taylor expanded in y3 around inf 83.5%
if -8.7999999999999995e-130 < b < -1.75000000000000008e-240Initial program 31.2%
Simplified37.4%
Taylor expanded in y around inf 56.4%
mul-1-neg56.4%
Simplified56.4%
Taylor expanded in y3 around inf 56.5%
if -1.75000000000000008e-240 < b < 2.79999999999999994e-243Initial program 34.5%
Simplified34.5%
Taylor expanded in y5 around inf 44.1%
mul-1-neg44.1%
Simplified44.1%
Taylor expanded in i around 0 42.1%
Taylor expanded in a around inf 35.8%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
if 2.79999999999999994e-243 < b < 1.6000000000000001e-82Initial program 24.9%
Simplified32.1%
Taylor expanded in k around inf 47.1%
Taylor expanded in y1 around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
if 1.6000000000000001e-82 < b < 4.6e-40Initial program 25.0%
Simplified56.3%
Taylor expanded in k around inf 31.6%
Taylor expanded in y5 around inf 44.6%
associate-*r*50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
if 4.6e-40 < b < 2.5999999999999999e94Initial program 33.6%
Simplified33.6%
Taylor expanded in y4 around inf 49.1%
Taylor expanded in j around inf 51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
*-commutative51.9%
Simplified51.9%
Final simplification53.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t)))))
(t_2 (* y4 (* b (- (* t j) (* y k)))))
(t_3 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= a -2.5e+143)
(* y5 (* a (- (* t y2) (* y y3))))
(if (<= a -2.55e+107)
t_1
(if (<= a -8.8e+43)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= a -4.4)
t_2
(if (<= a -2.7e-73)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= a -5e-184)
t_3
(if (<= a -2.45e-265)
(* t (* y4 (- (* b j) (* c y2))))
(if (<= a 1.85e-214)
t_3
(if (<= a 1e-155)
t_2
(if (<= a 1.85e-11)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= a 2.2e+175)
(* k (* b (- (* z y0) (* y y4))))
t_1)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = y4 * (b * ((t * j) - (y * k)));
double t_3 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (a <= -2.5e+143) {
tmp = y5 * (a * ((t * y2) - (y * y3)));
} else if (a <= -2.55e+107) {
tmp = t_1;
} else if (a <= -8.8e+43) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (a <= -4.4) {
tmp = t_2;
} else if (a <= -2.7e-73) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= -5e-184) {
tmp = t_3;
} else if (a <= -2.45e-265) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (a <= 1.85e-214) {
tmp = t_3;
} else if (a <= 1e-155) {
tmp = t_2;
} else if (a <= 1.85e-11) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 2.2e+175) {
tmp = k * (b * ((z * y0) - (y * 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 = a * (b * ((x * y) - (z * t)))
t_2 = y4 * (b * ((t * j) - (y * k)))
t_3 = c * (y4 * ((y * y3) - (t * y2)))
if (a <= (-2.5d+143)) then
tmp = y5 * (a * ((t * y2) - (y * y3)))
else if (a <= (-2.55d+107)) then
tmp = t_1
else if (a <= (-8.8d+43)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (a <= (-4.4d0)) then
tmp = t_2
else if (a <= (-2.7d-73)) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (a <= (-5d-184)) then
tmp = t_3
else if (a <= (-2.45d-265)) then
tmp = t * (y4 * ((b * j) - (c * y2)))
else if (a <= 1.85d-214) then
tmp = t_3
else if (a <= 1d-155) then
tmp = t_2
else if (a <= 1.85d-11) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (a <= 2.2d+175) then
tmp = k * (b * ((z * y0) - (y * y4)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = y4 * (b * ((t * j) - (y * k)));
double t_3 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (a <= -2.5e+143) {
tmp = y5 * (a * ((t * y2) - (y * y3)));
} else if (a <= -2.55e+107) {
tmp = t_1;
} else if (a <= -8.8e+43) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (a <= -4.4) {
tmp = t_2;
} else if (a <= -2.7e-73) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= -5e-184) {
tmp = t_3;
} else if (a <= -2.45e-265) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (a <= 1.85e-214) {
tmp = t_3;
} else if (a <= 1e-155) {
tmp = t_2;
} else if (a <= 1.85e-11) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 2.2e+175) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) t_2 = y4 * (b * ((t * j) - (y * k))) t_3 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if a <= -2.5e+143: tmp = y5 * (a * ((t * y2) - (y * y3))) elif a <= -2.55e+107: tmp = t_1 elif a <= -8.8e+43: tmp = y * (y3 * ((c * y4) - (a * y5))) elif a <= -4.4: tmp = t_2 elif a <= -2.7e-73: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif a <= -5e-184: tmp = t_3 elif a <= -2.45e-265: tmp = t * (y4 * ((b * j) - (c * y2))) elif a <= 1.85e-214: tmp = t_3 elif a <= 1e-155: tmp = t_2 elif a <= 1.85e-11: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif a <= 2.2e+175: tmp = k * (b * ((z * y0) - (y * y4))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_2 = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))) t_3 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (a <= -2.5e+143) tmp = Float64(y5 * Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (a <= -2.55e+107) tmp = t_1; elseif (a <= -8.8e+43) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (a <= -4.4) tmp = t_2; elseif (a <= -2.7e-73) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (a <= -5e-184) tmp = t_3; elseif (a <= -2.45e-265) tmp = Float64(t * Float64(y4 * Float64(Float64(b * j) - Float64(c * y2)))); elseif (a <= 1.85e-214) tmp = t_3; elseif (a <= 1e-155) tmp = t_2; elseif (a <= 1.85e-11) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (a <= 2.2e+175) tmp = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); t_2 = y4 * (b * ((t * j) - (y * k))); t_3 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (a <= -2.5e+143) tmp = y5 * (a * ((t * y2) - (y * y3))); elseif (a <= -2.55e+107) tmp = t_1; elseif (a <= -8.8e+43) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (a <= -4.4) tmp = t_2; elseif (a <= -2.7e-73) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (a <= -5e-184) tmp = t_3; elseif (a <= -2.45e-265) tmp = t * (y4 * ((b * j) - (c * y2))); elseif (a <= 1.85e-214) tmp = t_3; elseif (a <= 1e-155) tmp = t_2; elseif (a <= 1.85e-11) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (a <= 2.2e+175) tmp = k * (b * ((z * y0) - (y * y4))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.5e+143], N[(y5 * N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.55e+107], t$95$1, If[LessEqual[a, -8.8e+43], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4], t$95$2, If[LessEqual[a, -2.7e-73], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e-184], t$95$3, If[LessEqual[a, -2.45e-265], N[(t * N[(y4 * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-214], t$95$3, If[LessEqual[a, 1e-155], t$95$2, If[LessEqual[a, 1.85e-11], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+175], N[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_2 := y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
t_3 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;a \leq -2.5 \cdot 10^{+143}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{+107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -8.8 \cdot 10^{+43}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -4.4:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-73}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-184}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-265}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-214}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 10^{-155}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-11}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+175}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.50000000000000006e143Initial program 21.8%
Simplified21.8%
Taylor expanded in y5 around inf 33.1%
mul-1-neg33.1%
Simplified33.1%
Taylor expanded in i around 0 38.9%
Taylor expanded in a around inf 47.1%
associate-*r*52.0%
*-commutative52.0%
Simplified52.0%
if -2.50000000000000006e143 < a < -2.5500000000000001e107 or 2.1999999999999999e175 < a Initial program 13.7%
Simplified13.7%
Taylor expanded in b around inf 42.9%
Taylor expanded in a around inf 56.6%
if -2.5500000000000001e107 < a < -8.80000000000000002e43Initial program 30.6%
Simplified53.7%
Taylor expanded in y around inf 47.5%
mul-1-neg47.5%
Simplified47.5%
Taylor expanded in y3 around inf 54.8%
if -8.80000000000000002e43 < a < -4.4000000000000004 or 1.8500000000000001e-214 < a < 1.00000000000000001e-155Initial program 12.2%
Simplified12.2%
Taylor expanded in y4 around inf 48.5%
Taylor expanded in b around inf 56.7%
if -4.4000000000000004 < a < -2.69999999999999994e-73Initial program 19.9%
Simplified26.7%
Taylor expanded in k around inf 67.1%
Taylor expanded in y1 around inf 54.6%
mul-1-neg54.6%
unsub-neg54.6%
Simplified54.6%
if -2.69999999999999994e-73 < a < -5.00000000000000003e-184 or -2.45e-265 < a < 1.8500000000000001e-214Initial program 36.7%
Simplified36.7%
Taylor expanded in y4 around inf 46.8%
Taylor expanded in c around inf 47.3%
if -5.00000000000000003e-184 < a < -2.45e-265Initial program 39.0%
Simplified39.0%
Taylor expanded in y4 around inf 40.6%
Taylor expanded in t around inf 56.0%
Taylor expanded in y4 around -inf 56.0%
*-commutative56.0%
*-commutative56.0%
*-commutative56.0%
associate-*l*62.4%
Simplified62.4%
if 1.00000000000000001e-155 < a < 1.8500000000000001e-11Initial program 38.1%
Simplified45.0%
Taylor expanded in k around inf 48.9%
Taylor expanded in y2 around inf 49.7%
if 1.8500000000000001e-11 < a < 2.1999999999999999e175Initial program 34.2%
Simplified52.6%
Taylor expanded in k around inf 42.5%
Taylor expanded in b around inf 42.9%
*-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
Simplified42.9%
Final simplification51.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* b (- (* t j) (* y k)))))
(t_2 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= a -3.1e+60)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= a -2.3e-74)
(* (* y1 y4) (- (* k y2) (* j y3)))
(if (<= a -3.8e-184)
t_2
(if (<= a -4.1e-258)
(* t (* y4 (- (* b j) (* c y2))))
(if (<= a -1.25e-306)
t_1
(if (<= a 2e-279)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= a 3.3e-273)
(* (* y1 (* j y3)) (- y4))
(if (<= a 1.46e-227)
t_2
(if (<= a 9.8e-158)
t_1
(if (<= a 2.8e-18)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= a 6.2e+172)
(* k (* b (- (* z y0) (* y y4))))
(* a (* b (- (* x y) (* z t)))))))))))))))))
double code(double x, double y, double z, double t, double a, double 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 * (b * ((t * j) - (y * k)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (a <= -3.1e+60) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (a <= -2.3e-74) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (a <= -3.8e-184) {
tmp = t_2;
} else if (a <= -4.1e-258) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (a <= -1.25e-306) {
tmp = t_1;
} else if (a <= 2e-279) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= 3.3e-273) {
tmp = (y1 * (j * y3)) * -y4;
} else if (a <= 1.46e-227) {
tmp = t_2;
} else if (a <= 9.8e-158) {
tmp = t_1;
} else if (a <= 2.8e-18) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 6.2e+172) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = a * (b * ((x * y) - (z * t)));
}
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 * (b * ((t * j) - (y * k)))
t_2 = c * (y4 * ((y * y3) - (t * y2)))
if (a <= (-3.1d+60)) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (a <= (-2.3d-74)) then
tmp = (y1 * y4) * ((k * y2) - (j * y3))
else if (a <= (-3.8d-184)) then
tmp = t_2
else if (a <= (-4.1d-258)) then
tmp = t * (y4 * ((b * j) - (c * y2)))
else if (a <= (-1.25d-306)) then
tmp = t_1
else if (a <= 2d-279) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (a <= 3.3d-273) then
tmp = (y1 * (j * y3)) * -y4
else if (a <= 1.46d-227) then
tmp = t_2
else if (a <= 9.8d-158) then
tmp = t_1
else if (a <= 2.8d-18) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (a <= 6.2d+172) then
tmp = k * (b * ((z * y0) - (y * y4)))
else
tmp = a * (b * ((x * y) - (z * t)))
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 * (b * ((t * j) - (y * k)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (a <= -3.1e+60) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (a <= -2.3e-74) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (a <= -3.8e-184) {
tmp = t_2;
} else if (a <= -4.1e-258) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (a <= -1.25e-306) {
tmp = t_1;
} else if (a <= 2e-279) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= 3.3e-273) {
tmp = (y1 * (j * y3)) * -y4;
} else if (a <= 1.46e-227) {
tmp = t_2;
} else if (a <= 9.8e-158) {
tmp = t_1;
} else if (a <= 2.8e-18) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 6.2e+172) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = a * (b * ((x * y) - (z * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (b * ((t * j) - (y * k))) t_2 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if a <= -3.1e+60: tmp = (y * a) * ((x * b) - (y3 * y5)) elif a <= -2.3e-74: tmp = (y1 * y4) * ((k * y2) - (j * y3)) elif a <= -3.8e-184: tmp = t_2 elif a <= -4.1e-258: tmp = t * (y4 * ((b * j) - (c * y2))) elif a <= -1.25e-306: tmp = t_1 elif a <= 2e-279: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif a <= 3.3e-273: tmp = (y1 * (j * y3)) * -y4 elif a <= 1.46e-227: tmp = t_2 elif a <= 9.8e-158: tmp = t_1 elif a <= 2.8e-18: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif a <= 6.2e+172: tmp = k * (b * ((z * y0) - (y * y4))) else: tmp = a * (b * ((x * y) - (z * t))) 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(b * Float64(Float64(t * j) - Float64(y * k)))) t_2 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (a <= -3.1e+60) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (a <= -2.3e-74) tmp = Float64(Float64(y1 * y4) * Float64(Float64(k * y2) - Float64(j * y3))); elseif (a <= -3.8e-184) tmp = t_2; elseif (a <= -4.1e-258) tmp = Float64(t * Float64(y4 * Float64(Float64(b * j) - Float64(c * y2)))); elseif (a <= -1.25e-306) tmp = t_1; elseif (a <= 2e-279) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (a <= 3.3e-273) tmp = Float64(Float64(y1 * Float64(j * y3)) * Float64(-y4)); elseif (a <= 1.46e-227) tmp = t_2; elseif (a <= 9.8e-158) tmp = t_1; elseif (a <= 2.8e-18) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (a <= 6.2e+172) tmp = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); 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 * (b * ((t * j) - (y * k))); t_2 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (a <= -3.1e+60) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (a <= -2.3e-74) tmp = (y1 * y4) * ((k * y2) - (j * y3)); elseif (a <= -3.8e-184) tmp = t_2; elseif (a <= -4.1e-258) tmp = t * (y4 * ((b * j) - (c * y2))); elseif (a <= -1.25e-306) tmp = t_1; elseif (a <= 2e-279) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (a <= 3.3e-273) tmp = (y1 * (j * y3)) * -y4; elseif (a <= 1.46e-227) tmp = t_2; elseif (a <= 9.8e-158) tmp = t_1; elseif (a <= 2.8e-18) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (a <= 6.2e+172) tmp = k * (b * ((z * y0) - (y * y4))); else tmp = a * (b * ((x * y) - (z * t))); 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[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.1e+60], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.3e-74], N[(N[(y1 * y4), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e-184], t$95$2, If[LessEqual[a, -4.1e-258], N[(t * N[(y4 * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.25e-306], t$95$1, If[LessEqual[a, 2e-279], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-273], N[(N[(y1 * N[(j * y3), $MachinePrecision]), $MachinePrecision] * (-y4)), $MachinePrecision], If[LessEqual[a, 1.46e-227], t$95$2, If[LessEqual[a, 9.8e-158], t$95$1, If[LessEqual[a, 2.8e-18], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+172], N[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;a \leq -3.1 \cdot 10^{+60}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-74}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-184}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -4.1 \cdot 10^{-258}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-279}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-273}:\\
\;\;\;\;\left(y1 \cdot \left(j \cdot y3\right)\right) \cdot \left(-y4\right)\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{-227}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 9.8 \cdot 10^{-158}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-18}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+172}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\end{array}
\end{array}
if a < -3.1000000000000001e60Initial program 24.7%
Simplified30.0%
Taylor expanded in y around inf 37.7%
mul-1-neg37.7%
Simplified37.7%
Taylor expanded in a around inf 55.1%
associate-*r*53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
if -3.1000000000000001e60 < a < -2.2999999999999998e-74Initial program 11.7%
Simplified11.7%
Taylor expanded in y4 around inf 39.5%
Taylor expanded in y1 around inf 50.9%
associate-*r*47.3%
Simplified47.3%
if -2.2999999999999998e-74 < a < -3.80000000000000017e-184 or 3.2999999999999999e-273 < a < 1.46e-227Initial program 33.3%
Simplified33.3%
Taylor expanded in y4 around inf 44.8%
Taylor expanded in c around inf 56.3%
if -3.80000000000000017e-184 < a < -4.1000000000000001e-258Initial program 42.2%
Simplified42.2%
Taylor expanded in y4 around inf 43.9%
Taylor expanded in t around inf 52.3%
Taylor expanded in y4 around -inf 52.3%
*-commutative52.3%
*-commutative52.3%
*-commutative52.3%
associate-*l*59.2%
Simplified59.2%
if -4.1000000000000001e-258 < a < -1.25e-306 or 1.46e-227 < a < 9.79999999999999986e-158Initial program 19.4%
Simplified19.4%
Taylor expanded in y4 around inf 46.8%
Taylor expanded in b around inf 54.7%
if -1.25e-306 < a < 2.00000000000000011e-279Initial program 75.0%
Simplified75.0%
Taylor expanded in k around inf 50.2%
Taylor expanded in y1 around inf 75.2%
mul-1-neg75.2%
unsub-neg75.2%
Simplified75.2%
if 2.00000000000000011e-279 < a < 3.2999999999999999e-273Initial program 50.0%
Simplified50.0%
Taylor expanded in y4 around inf 100.0%
Taylor expanded in y1 around inf 100.0%
associate-*r*100.0%
Simplified100.0%
Taylor expanded in k around 0 100.0%
mul-1-neg100.0%
Simplified100.0%
if 9.79999999999999986e-158 < a < 2.80000000000000012e-18Initial program 38.1%
Simplified45.0%
Taylor expanded in k around inf 48.9%
Taylor expanded in y2 around inf 49.7%
if 2.80000000000000012e-18 < a < 6.19999999999999976e172Initial program 34.2%
Simplified52.6%
Taylor expanded in k around inf 42.5%
Taylor expanded in b around inf 42.9%
*-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
Simplified42.9%
if 6.19999999999999976e172 < a Initial program 11.8%
Simplified11.8%
Taylor expanded in b around inf 40.7%
Taylor expanded in a around inf 55.5%
Final simplification52.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j)))))
(if (<= b -6.4e+217)
t_1
(if (<= b -7.5e+87)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -1.4e+76)
t_1
(if (<= b -8.6e-57)
(* (* i k) (- (* y y5) (* z y1)))
(if (<= b -7.8e-66)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= b -4.3e-108)
(* y (* x (- (* a b) (* c i))))
(if (<= b 3.4e-256)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= b 3e-82)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= b 2.8e-41)
(* y5 (* k (- (* y i) (* y0 y2))))
(if (<= b 6.2e+94)
(* y4 (* j (- (* t b) (* y1 y3))))
(* z (* a (- (* y1 y3) (* t b))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -6.4e+217) {
tmp = t_1;
} else if (b <= -7.5e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.4e+76) {
tmp = t_1;
} else if (b <= -8.6e-57) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -7.8e-66) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= -4.3e-108) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (b <= 3.4e-256) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 3e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 2.8e-41) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 6.2e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = z * (a * ((y1 * y3) - (t * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (b * y0) * ((z * k) - (x * j))
if (b <= (-6.4d+217)) then
tmp = t_1
else if (b <= (-7.5d+87)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-1.4d+76)) then
tmp = t_1
else if (b <= (-8.6d-57)) then
tmp = (i * k) * ((y * y5) - (z * y1))
else if (b <= (-7.8d-66)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (b <= (-4.3d-108)) then
tmp = y * (x * ((a * b) - (c * i)))
else if (b <= 3.4d-256) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (b <= 3d-82) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (b <= 2.8d-41) then
tmp = y5 * (k * ((y * i) - (y0 * y2)))
else if (b <= 6.2d+94) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = z * (a * ((y1 * y3) - (t * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -6.4e+217) {
tmp = t_1;
} else if (b <= -7.5e+87) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -1.4e+76) {
tmp = t_1;
} else if (b <= -8.6e-57) {
tmp = (i * k) * ((y * y5) - (z * y1));
} else if (b <= -7.8e-66) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= -4.3e-108) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (b <= 3.4e-256) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 3e-82) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (b <= 2.8e-41) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (b <= 6.2e+94) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = z * (a * ((y1 * y3) - (t * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) tmp = 0 if b <= -6.4e+217: tmp = t_1 elif b <= -7.5e+87: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -1.4e+76: tmp = t_1 elif b <= -8.6e-57: tmp = (i * k) * ((y * y5) - (z * y1)) elif b <= -7.8e-66: tmp = a * (y5 * ((t * y2) - (y * y3))) elif b <= -4.3e-108: tmp = y * (x * ((a * b) - (c * i))) elif b <= 3.4e-256: tmp = y * (y3 * ((c * y4) - (a * y5))) elif b <= 3e-82: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif b <= 2.8e-41: tmp = y5 * (k * ((y * i) - (y0 * y2))) elif b <= 6.2e+94: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = z * (a * ((y1 * y3) - (t * b))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) tmp = 0.0 if (b <= -6.4e+217) tmp = t_1; elseif (b <= -7.5e+87) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -1.4e+76) tmp = t_1; elseif (b <= -8.6e-57) tmp = Float64(Float64(i * k) * Float64(Float64(y * y5) - Float64(z * y1))); elseif (b <= -7.8e-66) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (b <= -4.3e-108) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (b <= 3.4e-256) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (b <= 3e-82) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (b <= 2.8e-41) tmp = Float64(y5 * Float64(k * Float64(Float64(y * i) - Float64(y0 * y2)))); elseif (b <= 6.2e+94) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y0) * ((z * k) - (x * j)); tmp = 0.0; if (b <= -6.4e+217) tmp = t_1; elseif (b <= -7.5e+87) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -1.4e+76) tmp = t_1; elseif (b <= -8.6e-57) tmp = (i * k) * ((y * y5) - (z * y1)); elseif (b <= -7.8e-66) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (b <= -4.3e-108) tmp = y * (x * ((a * b) - (c * i))); elseif (b <= 3.4e-256) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (b <= 3e-82) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (b <= 2.8e-41) tmp = y5 * (k * ((y * i) - (y0 * y2))); elseif (b <= 6.2e+94) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = z * (a * ((y1 * y3) - (t * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.4e+217], t$95$1, If[LessEqual[b, -7.5e+87], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.4e+76], t$95$1, If[LessEqual[b, -8.6e-57], N[(N[(i * k), $MachinePrecision] * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.8e-66], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.3e-108], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-256], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e-82], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-41], N[(y5 * N[(k * N[(N[(y * i), $MachinePrecision] - N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+94], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{if}\;b \leq -6.4 \cdot 10^{+217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+87}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{+76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -8.6 \cdot 10^{-57}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(y \cdot y5 - z \cdot y1\right)\\
\mathbf{elif}\;b \leq -7.8 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -4.3 \cdot 10^{-108}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-256}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-82}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-41}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y \cdot i - y0 \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+94}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\end{array}
\end{array}
if b < -6.4000000000000001e217 or -7.50000000000000014e87 < b < -1.3999999999999999e76Initial program 17.1%
Simplified17.1%
Taylor expanded in b around inf 55.6%
Taylor expanded in y0 around inf 72.6%
if -6.4000000000000001e217 < b < -7.50000000000000014e87Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -1.3999999999999999e76 < b < -8.60000000000000043e-57Initial program 30.3%
Simplified39.1%
Taylor expanded in k around inf 48.0%
Taylor expanded in i around inf 44.3%
associate-*r*43.9%
*-commutative43.9%
mul-1-neg43.9%
unsub-neg43.9%
*-commutative43.9%
Simplified43.9%
if -8.60000000000000043e-57 < b < -7.79999999999999965e-66Initial program 50.0%
Simplified50.0%
Taylor expanded in y5 around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in a around inf 100.0%
if -7.79999999999999965e-66 < b < -4.3e-108Initial program 40.0%
Simplified40.0%
Taylor expanded in y around inf 40.2%
mul-1-neg40.2%
Simplified40.2%
Taylor expanded in x around inf 60.3%
*-commutative60.3%
Simplified60.3%
if -4.3e-108 < b < 3.4000000000000001e-256Initial program 37.1%
Simplified40.8%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in y3 around inf 39.6%
if 3.4000000000000001e-256 < b < 2.9999999999999999e-82Initial program 24.9%
Simplified32.1%
Taylor expanded in k around inf 47.1%
Taylor expanded in y1 around inf 47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
if 2.9999999999999999e-82 < b < 2.8000000000000002e-41Initial program 25.0%
Simplified56.3%
Taylor expanded in k around inf 31.6%
Taylor expanded in y5 around inf 44.6%
associate-*r*50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
if 2.8000000000000002e-41 < b < 6.19999999999999983e94Initial program 33.6%
Simplified33.6%
Taylor expanded in y4 around inf 49.1%
Taylor expanded in j around inf 51.9%
mul-1-neg51.9%
unsub-neg51.9%
*-commutative51.9%
*-commutative51.9%
Simplified51.9%
if 6.19999999999999983e94 < b Initial program 20.2%
Simplified20.2%
Taylor expanded in z around -inf 31.0%
mul-1-neg31.0%
associate--l+31.0%
Simplified31.0%
Taylor expanded in a around inf 49.4%
mul-1-neg49.4%
unsub-neg49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
Final simplification51.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b y0) (- (* z k) (* x j)))))
(if (<= b -1.9e+218)
t_1
(if (<= b -2.9e+89)
(* y4 (* b (- (* t j) (* y k))))
(if (<= b -3e+63)
t_1
(if (<= b -1.75e+21)
(* (* y b) (- (* x a) (* k y4)))
(if (<= b 1.55e-103)
(*
y5
(+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2)))))
(if (<= b 4.4e-64)
(* (* i y5) (- (* y k) (* t j)))
(if (<= b 1.35e-34)
(* z (* a (- (* y1 y3) (* t b))))
(if (<= b 1.56e-9)
(* (* y1 y4) (- (* k y2) (* j y3)))
(if (<= b 5.2e+95)
(* y4 (* j (- (* t b) (* y1 y3))))
(* b (* t (- (* j y4) (* z a)))))))))))))))
double code(double x, double y, double z, double t, double a, double 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 * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -1.9e+218) {
tmp = t_1;
} else if (b <= -2.9e+89) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -3e+63) {
tmp = t_1;
} else if (b <= -1.75e+21) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (b <= 1.55e-103) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 4.4e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 1.35e-34) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.56e-9) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 5.2e+95) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
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 * y0) * ((z * k) - (x * j))
if (b <= (-1.9d+218)) then
tmp = t_1
else if (b <= (-2.9d+89)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (b <= (-3d+63)) then
tmp = t_1
else if (b <= (-1.75d+21)) then
tmp = (y * b) * ((x * a) - (k * y4))
else if (b <= 1.55d-103) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))
else if (b <= 4.4d-64) then
tmp = (i * y5) * ((y * k) - (t * j))
else if (b <= 1.35d-34) then
tmp = z * (a * ((y1 * y3) - (t * b)))
else if (b <= 1.56d-9) then
tmp = (y1 * y4) * ((k * y2) - (j * y3))
else if (b <= 5.2d+95) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else
tmp = b * (t * ((j * y4) - (z * a)))
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 * y0) * ((z * k) - (x * j));
double tmp;
if (b <= -1.9e+218) {
tmp = t_1;
} else if (b <= -2.9e+89) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (b <= -3e+63) {
tmp = t_1;
} else if (b <= -1.75e+21) {
tmp = (y * b) * ((x * a) - (k * y4));
} else if (b <= 1.55e-103) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))));
} else if (b <= 4.4e-64) {
tmp = (i * y5) * ((y * k) - (t * j));
} else if (b <= 1.35e-34) {
tmp = z * (a * ((y1 * y3) - (t * b)));
} else if (b <= 1.56e-9) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (b <= 5.2e+95) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else {
tmp = b * (t * ((j * y4) - (z * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) * ((z * k) - (x * j)) tmp = 0 if b <= -1.9e+218: tmp = t_1 elif b <= -2.9e+89: tmp = y4 * (b * ((t * j) - (y * k))) elif b <= -3e+63: tmp = t_1 elif b <= -1.75e+21: tmp = (y * b) * ((x * a) - (k * y4)) elif b <= 1.55e-103: tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))) elif b <= 4.4e-64: tmp = (i * y5) * ((y * k) - (t * j)) elif b <= 1.35e-34: tmp = z * (a * ((y1 * y3) - (t * b))) elif b <= 1.56e-9: tmp = (y1 * y4) * ((k * y2) - (j * y3)) elif b <= 5.2e+95: tmp = y4 * (j * ((t * b) - (y1 * y3))) else: tmp = b * (t * ((j * y4) - (z * a))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y0) * Float64(Float64(z * k) - Float64(x * j))) tmp = 0.0 if (b <= -1.9e+218) tmp = t_1; elseif (b <= -2.9e+89) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= -3e+63) tmp = t_1; elseif (b <= -1.75e+21) tmp = Float64(Float64(y * b) * Float64(Float64(x * a) - Float64(k * y4))); elseif (b <= 1.55e-103) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))))); elseif (b <= 4.4e-64) tmp = Float64(Float64(i * y5) * Float64(Float64(y * k) - Float64(t * j))); elseif (b <= 1.35e-34) tmp = Float64(z * Float64(a * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 1.56e-9) tmp = Float64(Float64(y1 * y4) * Float64(Float64(k * y2) - Float64(j * y3))); elseif (b <= 5.2e+95) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); 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 * y0) * ((z * k) - (x * j)); tmp = 0.0; if (b <= -1.9e+218) tmp = t_1; elseif (b <= -2.9e+89) tmp = y4 * (b * ((t * j) - (y * k))); elseif (b <= -3e+63) tmp = t_1; elseif (b <= -1.75e+21) tmp = (y * b) * ((x * a) - (k * y4)); elseif (b <= 1.55e-103) tmp = y5 * ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))); elseif (b <= 4.4e-64) tmp = (i * y5) * ((y * k) - (t * j)); elseif (b <= 1.35e-34) tmp = z * (a * ((y1 * y3) - (t * b))); elseif (b <= 1.56e-9) tmp = (y1 * y4) * ((k * y2) - (j * y3)); elseif (b <= 5.2e+95) tmp = y4 * (j * ((t * b) - (y1 * y3))); else tmp = b * (t * ((j * y4) - (z * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+218], t$95$1, If[LessEqual[b, -2.9e+89], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3e+63], t$95$1, If[LessEqual[b, -1.75e+21], N[(N[(y * b), $MachinePrecision] * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e-103], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-64], N[(N[(i * y5), $MachinePrecision] * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-34], N[(z * N[(a * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.56e-9], N[(N[(y1 * y4), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e+95], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot y0\right) \cdot \left(z \cdot k - x \cdot j\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+218}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{+89}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq -3 \cdot 10^{+63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{+21}:\\
\;\;\;\;\left(y \cdot b\right) \cdot \left(x \cdot a - k \cdot y4\right)\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-103}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-64}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot \left(y \cdot k - t \cdot j\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-34}:\\
\;\;\;\;z \cdot \left(a \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 1.56 \cdot 10^{-9}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+95}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -1.90000000000000006e218 or -2.90000000000000025e89 < b < -2.99999999999999999e63Initial program 15.4%
Simplified15.4%
Taylor expanded in b around inf 50.0%
Taylor expanded in y0 around inf 70.5%
if -1.90000000000000006e218 < b < -2.90000000000000025e89Initial program 8.5%
Simplified8.5%
Taylor expanded in y4 around inf 56.3%
Taylor expanded in b around inf 68.3%
if -2.99999999999999999e63 < b < -1.75e21Initial program 12.3%
Simplified24.8%
Taylor expanded in y around inf 75.1%
mul-1-neg75.1%
Simplified75.1%
Taylor expanded in b around inf 62.8%
associate-*r*62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
if -1.75e21 < b < 1.5500000000000001e-103Initial program 36.8%
Simplified36.8%
Taylor expanded in y5 around inf 44.0%
mul-1-neg44.0%
Simplified44.0%
Taylor expanded in i around 0 47.7%
Taylor expanded in y5 around -inf 45.8%
if 1.5500000000000001e-103 < b < 4.3999999999999999e-64Initial program 23.5%
Simplified23.5%
Taylor expanded in y5 around inf 24.3%
mul-1-neg24.3%
Simplified24.3%
Taylor expanded in i around inf 42.2%
mul-1-neg42.2%
*-commutative42.2%
*-commutative42.2%
associate-*l*36.6%
*-commutative36.6%
distribute-rgt-neg-out36.6%
*-commutative36.6%
*-commutative36.6%
distribute-lft-neg-in36.6%
Simplified36.6%
if 4.3999999999999999e-64 < b < 1.35000000000000008e-34Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 80.0%
mul-1-neg80.0%
associate--l+80.0%
Simplified80.0%
Taylor expanded in a around inf 80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
if 1.35000000000000008e-34 < b < 1.56e-9Initial program 12.5%
Simplified12.5%
Taylor expanded in y4 around inf 62.5%
Taylor expanded in y1 around inf 76.3%
associate-*r*88.0%
Simplified88.0%
if 1.56e-9 < b < 5.19999999999999981e95Initial program 35.2%
Simplified35.2%
Taylor expanded in y4 around inf 48.7%
Taylor expanded in j around inf 52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
*-commutative52.6%
Simplified52.6%
if 5.19999999999999981e95 < b Initial program 20.2%
Simplified20.2%
Taylor expanded in b around inf 56.2%
Taylor expanded in t around -inf 49.0%
mul-1-neg49.0%
associate-*r*50.7%
distribute-lft-neg-in50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Final simplification54.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -3.1e+60)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= a -3.2e-73)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= a -4.7e-182)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= a -2.9e-282)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= a 1.6e-231)
(* y5 (* k (- (* y i) (* y0 y2))))
(if (<= a 4.3e-157)
(* y4 (* b (- (* t j) (* y k))))
(if (<= a 5.5e-19)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= a 3.8e+172)
(* k (* b (- (* z y0) (* y y4))))
(* a (* b (- (* x y) (* z t)))))))))))))
double code(double x, double y, double z, double t, double 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 (a <= -3.1e+60) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (a <= -3.2e-73) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= -4.7e-182) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (a <= -2.9e-282) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (a <= 1.6e-231) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (a <= 4.3e-157) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (a <= 5.5e-19) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 3.8e+172) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = a * (b * ((x * y) - (z * t)));
}
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 (a <= (-3.1d+60)) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (a <= (-3.2d-73)) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (a <= (-4.7d-182)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (a <= (-2.9d-282)) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (a <= 1.6d-231) then
tmp = y5 * (k * ((y * i) - (y0 * y2)))
else if (a <= 4.3d-157) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (a <= 5.5d-19) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (a <= 3.8d+172) then
tmp = k * (b * ((z * y0) - (y * y4)))
else
tmp = a * (b * ((x * y) - (z * t)))
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 (a <= -3.1e+60) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (a <= -3.2e-73) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (a <= -4.7e-182) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (a <= -2.9e-282) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (a <= 1.6e-231) {
tmp = y5 * (k * ((y * i) - (y0 * y2)));
} else if (a <= 4.3e-157) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (a <= 5.5e-19) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 3.8e+172) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else {
tmp = a * (b * ((x * y) - (z * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -3.1e+60: tmp = (y * a) * ((x * b) - (y3 * y5)) elif a <= -3.2e-73: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif a <= -4.7e-182: tmp = c * (y4 * ((y * y3) - (t * y2))) elif a <= -2.9e-282: tmp = y4 * (t * ((b * j) - (c * y2))) elif a <= 1.6e-231: tmp = y5 * (k * ((y * i) - (y0 * y2))) elif a <= 4.3e-157: tmp = y4 * (b * ((t * j) - (y * k))) elif a <= 5.5e-19: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif a <= 3.8e+172: tmp = k * (b * ((z * y0) - (y * y4))) else: tmp = a * (b * ((x * y) - (z * t))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -3.1e+60) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (a <= -3.2e-73) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (a <= -4.7e-182) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (a <= -2.9e-282) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (a <= 1.6e-231) tmp = Float64(y5 * Float64(k * Float64(Float64(y * i) - Float64(y0 * y2)))); elseif (a <= 4.3e-157) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (a <= 5.5e-19) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (a <= 3.8e+172) tmp = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); 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 (a <= -3.1e+60) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (a <= -3.2e-73) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (a <= -4.7e-182) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (a <= -2.9e-282) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (a <= 1.6e-231) tmp = y5 * (k * ((y * i) - (y0 * y2))); elseif (a <= 4.3e-157) tmp = y4 * (b * ((t * j) - (y * k))); elseif (a <= 5.5e-19) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (a <= 3.8e+172) tmp = k * (b * ((z * y0) - (y * y4))); else tmp = a * (b * ((x * y) - (z * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -3.1e+60], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-73], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.7e-182], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.9e-282], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-231], N[(y5 * N[(k * N[(N[(y * i), $MachinePrecision] - N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e-157], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-19], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e+172], N[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.1 \cdot 10^{+60}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-73}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-182}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq -2.9 \cdot 10^{-282}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-231}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y \cdot i - y0 \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-157}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-19}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+172}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\end{array}
\end{array}
if a < -3.1000000000000001e60Initial program 24.7%
Simplified30.0%
Taylor expanded in y around inf 37.7%
mul-1-neg37.7%
Simplified37.7%
Taylor expanded in a around inf 55.1%
associate-*r*53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
if -3.1000000000000001e60 < a < -3.19999999999999986e-73Initial program 12.2%
Simplified24.2%
Taylor expanded in k around inf 44.6%
Taylor expanded in y1 around inf 41.4%
mul-1-neg41.4%
unsub-neg41.4%
Simplified41.4%
if -3.19999999999999986e-73 < a < -4.7e-182Initial program 42.8%
Simplified42.8%
Taylor expanded in y4 around inf 52.9%
Taylor expanded in c around inf 53.4%
if -4.7e-182 < a < -2.89999999999999998e-282Initial program 41.6%
Simplified41.6%
Taylor expanded in y4 around inf 48.7%
Taylor expanded in t around inf 54.8%
if -2.89999999999999998e-282 < a < 1.60000000000000004e-231Initial program 27.0%
Simplified27.0%
Taylor expanded in k around inf 40.8%
Taylor expanded in y5 around inf 41.5%
associate-*r*47.6%
mul-1-neg47.6%
unsub-neg47.6%
*-commutative47.6%
*-commutative47.6%
Simplified47.6%
if 1.60000000000000004e-231 < a < 4.2999999999999998e-157Initial program 15.8%
Simplified15.8%
Taylor expanded in y4 around inf 47.8%
Taylor expanded in b around inf 48.0%
if 4.2999999999999998e-157 < a < 5.4999999999999996e-19Initial program 38.1%
Simplified45.0%
Taylor expanded in k around inf 48.9%
Taylor expanded in y2 around inf 49.7%
if 5.4999999999999996e-19 < a < 3.7999999999999997e172Initial program 34.2%
Simplified52.6%
Taylor expanded in k around inf 42.5%
Taylor expanded in b around inf 42.9%
*-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
Simplified42.9%
if 3.7999999999999997e172 < a Initial program 11.8%
Simplified11.8%
Taylor expanded in b around inf 40.7%
Taylor expanded in a around inf 55.5%
Final simplification49.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* b (- (* z y0) (* y y4)))))
(t_2 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= y5 -2.55e+131)
t_2
(if (<= y5 -2.7e-10)
t_1
(if (<= y5 2.12e-75)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= y5 8.6e+80)
t_1
(if (or (<= y5 1.75e+155) (not (<= y5 2.7e+204)))
t_2
(* y0 (* k (* y2 (- y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (b * ((z * y0) - (y * y4)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -2.55e+131) {
tmp = t_2;
} else if (y5 <= -2.7e-10) {
tmp = t_1;
} else if (y5 <= 2.12e-75) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (y5 <= 8.6e+80) {
tmp = t_1;
} else if ((y5 <= 1.75e+155) || !(y5 <= 2.7e+204)) {
tmp = t_2;
} else {
tmp = y0 * (k * (y2 * -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 = k * (b * ((z * y0) - (y * y4)))
t_2 = a * (y5 * ((t * y2) - (y * y3)))
if (y5 <= (-2.55d+131)) then
tmp = t_2
else if (y5 <= (-2.7d-10)) then
tmp = t_1
else if (y5 <= 2.12d-75) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (y5 <= 8.6d+80) then
tmp = t_1
else if ((y5 <= 1.75d+155) .or. (.not. (y5 <= 2.7d+204))) then
tmp = t_2
else
tmp = y0 * (k * (y2 * -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 = k * (b * ((z * y0) - (y * y4)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -2.55e+131) {
tmp = t_2;
} else if (y5 <= -2.7e-10) {
tmp = t_1;
} else if (y5 <= 2.12e-75) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (y5 <= 8.6e+80) {
tmp = t_1;
} else if ((y5 <= 1.75e+155) || !(y5 <= 2.7e+204)) {
tmp = t_2;
} else {
tmp = y0 * (k * (y2 * -y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (b * ((z * y0) - (y * y4))) t_2 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if y5 <= -2.55e+131: tmp = t_2 elif y5 <= -2.7e-10: tmp = t_1 elif y5 <= 2.12e-75: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif y5 <= 8.6e+80: tmp = t_1 elif (y5 <= 1.75e+155) or not (y5 <= 2.7e+204): tmp = t_2 else: tmp = y0 * (k * (y2 * -y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))) t_2 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (y5 <= -2.55e+131) tmp = t_2; elseif (y5 <= -2.7e-10) tmp = t_1; elseif (y5 <= 2.12e-75) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y5 <= 8.6e+80) tmp = t_1; elseif ((y5 <= 1.75e+155) || !(y5 <= 2.7e+204)) tmp = t_2; else tmp = Float64(y0 * Float64(k * Float64(y2 * Float64(-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 = k * (b * ((z * y0) - (y * y4))); t_2 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (y5 <= -2.55e+131) tmp = t_2; elseif (y5 <= -2.7e-10) tmp = t_1; elseif (y5 <= 2.12e-75) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (y5 <= 8.6e+80) tmp = t_1; elseif ((y5 <= 1.75e+155) || ~((y5 <= 2.7e+204))) tmp = t_2; else tmp = y0 * (k * (y2 * -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[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $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[y5, -2.55e+131], t$95$2, If[LessEqual[y5, -2.7e-10], t$95$1, If[LessEqual[y5, 2.12e-75], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8.6e+80], t$95$1, If[Or[LessEqual[y5, 1.75e+155], N[Not[LessEqual[y5, 2.7e+204]], $MachinePrecision]], t$95$2, N[(y0 * N[(k * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
t_2 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;y5 \leq -2.55 \cdot 10^{+131}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y5 \leq -2.7 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 2.12 \cdot 10^{-75}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq 8.6 \cdot 10^{+80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 1.75 \cdot 10^{+155} \lor \neg \left(y5 \leq 2.7 \cdot 10^{+204}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\end{array}
\end{array}
if y5 < -2.5500000000000002e131 or 8.60000000000000008e80 < y5 < 1.74999999999999992e155 or 2.6999999999999999e204 < y5 Initial program 21.0%
Simplified21.0%
Taylor expanded in y5 around inf 33.9%
mul-1-neg33.9%
Simplified33.9%
Taylor expanded in a around inf 54.8%
if -2.5500000000000002e131 < y5 < -2.7e-10 or 2.12e-75 < y5 < 8.60000000000000008e80Initial program 33.8%
Simplified45.4%
Taylor expanded in k around inf 47.2%
Taylor expanded in b around inf 41.7%
*-commutative41.7%
mul-1-neg41.7%
unsub-neg41.7%
*-commutative41.7%
Simplified41.7%
if -2.7e-10 < y5 < 2.12e-75Initial program 27.1%
Simplified35.5%
Taylor expanded in k around inf 37.2%
Taylor expanded in y1 around inf 35.7%
mul-1-neg35.7%
unsub-neg35.7%
Simplified35.7%
if 1.74999999999999992e155 < y5 < 2.6999999999999999e204Initial program 15.4%
Simplified15.4%
Taylor expanded in y5 around inf 15.4%
mul-1-neg15.4%
Simplified15.4%
Taylor expanded in y0 around inf 38.7%
associate-*r*38.7%
neg-mul-138.7%
Simplified38.7%
Taylor expanded in k around inf 47.4%
Final simplification42.9%
(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 -3.9e+129)
t_1
(if (<= y5 -2.5e-10)
(* k (* b (- (* z y0) (* y y4))))
(if (<= y5 9e-206)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= y5 1.2e+51)
(* k (* z (- (* b y0) (* i y1))))
(if (or (<= y5 1.75e+155) (not (<= y5 3e+204)))
t_1
(* y0 (* k (* y2 (- y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -3.9e+129) {
tmp = t_1;
} else if (y5 <= -2.5e-10) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else if (y5 <= 9e-206) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (y5 <= 1.2e+51) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if ((y5 <= 1.75e+155) || !(y5 <= 3e+204)) {
tmp = t_1;
} else {
tmp = y0 * (k * (y2 * -y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
if (y5 <= (-3.9d+129)) then
tmp = t_1
else if (y5 <= (-2.5d-10)) then
tmp = k * (b * ((z * y0) - (y * y4)))
else if (y5 <= 9d-206) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (y5 <= 1.2d+51) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if ((y5 <= 1.75d+155) .or. (.not. (y5 <= 3d+204))) then
tmp = t_1
else
tmp = y0 * (k * (y2 * -y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -3.9e+129) {
tmp = t_1;
} else if (y5 <= -2.5e-10) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else if (y5 <= 9e-206) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (y5 <= 1.2e+51) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if ((y5 <= 1.75e+155) || !(y5 <= 3e+204)) {
tmp = t_1;
} else {
tmp = y0 * (k * (y2 * -y5));
}
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 <= -3.9e+129: tmp = t_1 elif y5 <= -2.5e-10: tmp = k * (b * ((z * y0) - (y * y4))) elif y5 <= 9e-206: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif y5 <= 1.2e+51: tmp = k * (z * ((b * y0) - (i * y1))) elif (y5 <= 1.75e+155) or not (y5 <= 3e+204): tmp = t_1 else: tmp = y0 * (k * (y2 * -y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (y5 <= -3.9e+129) tmp = t_1; elseif (y5 <= -2.5e-10) tmp = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (y5 <= 9e-206) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y5 <= 1.2e+51) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif ((y5 <= 1.75e+155) || !(y5 <= 3e+204)) tmp = t_1; else tmp = Float64(y0 * Float64(k * Float64(y2 * Float64(-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 * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (y5 <= -3.9e+129) tmp = t_1; elseif (y5 <= -2.5e-10) tmp = k * (b * ((z * y0) - (y * y4))); elseif (y5 <= 9e-206) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (y5 <= 1.2e+51) tmp = k * (z * ((b * y0) - (i * y1))); elseif ((y5 <= 1.75e+155) || ~((y5 <= 3e+204))) tmp = t_1; else tmp = y0 * (k * (y2 * -y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -3.9e+129], t$95$1, If[LessEqual[y5, -2.5e-10], N[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9e-206], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.2e+51], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y5, 1.75e+155], N[Not[LessEqual[y5, 3e+204]], $MachinePrecision]], t$95$1, N[(y0 * N[(k * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\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 -3.9 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -2.5 \cdot 10^{-10}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 9 \cdot 10^{-206}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq 1.2 \cdot 10^{+51}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 1.75 \cdot 10^{+155} \lor \neg \left(y5 \leq 3 \cdot 10^{+204}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\end{array}
\end{array}
if y5 < -3.8999999999999997e129 or 1.1999999999999999e51 < y5 < 1.74999999999999992e155 or 2.99999999999999983e204 < y5 Initial program 22.8%
Simplified22.8%
Taylor expanded in y5 around inf 35.0%
mul-1-neg35.0%
Simplified35.0%
Taylor expanded in a around inf 54.6%
if -3.8999999999999997e129 < y5 < -2.50000000000000016e-10Initial program 38.9%
Simplified54.3%
Taylor expanded in k around inf 40.0%
Taylor expanded in b around inf 43.5%
*-commutative43.5%
mul-1-neg43.5%
unsub-neg43.5%
*-commutative43.5%
Simplified43.5%
if -2.50000000000000016e-10 < y5 < 8.9999999999999996e-206Initial program 26.5%
Simplified36.2%
Taylor expanded in k around inf 36.9%
Taylor expanded in y1 around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
if 8.9999999999999996e-206 < y5 < 1.1999999999999999e51Initial program 28.7%
Simplified36.7%
Taylor expanded in k around inf 48.2%
Taylor expanded in z around inf 37.6%
if 1.74999999999999992e155 < y5 < 2.99999999999999983e204Initial program 15.4%
Simplified15.4%
Taylor expanded in y5 around inf 15.4%
mul-1-neg15.4%
Simplified15.4%
Taylor expanded in y0 around inf 38.7%
associate-*r*38.7%
neg-mul-138.7%
Simplified38.7%
Taylor expanded in k around inf 47.4%
Final simplification43.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))))))
(if (<= y5 -8.8e+129)
t_1
(if (<= y5 -1.35e-10)
(* k (* b (- (* z y0) (* y y4))))
(if (<= y5 9.2e-207)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= y5 5e+48)
(* k (* z (- (* b y0) (* i y1))))
(if (or (<= y5 1.35e+155) (not (<= y5 9.8e+200)))
t_1
(* k (* y2 (- (* y1 y4) (* y0 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -8.8e+129) {
tmp = t_1;
} else if (y5 <= -1.35e-10) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else if (y5 <= 9.2e-207) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (y5 <= 5e+48) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if ((y5 <= 1.35e+155) || !(y5 <= 9.8e+200)) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
if (y5 <= (-8.8d+129)) then
tmp = t_1
else if (y5 <= (-1.35d-10)) then
tmp = k * (b * ((z * y0) - (y * y4)))
else if (y5 <= 9.2d-207) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (y5 <= 5d+48) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if ((y5 <= 1.35d+155) .or. (.not. (y5 <= 9.8d+200))) then
tmp = t_1
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y5 <= -8.8e+129) {
tmp = t_1;
} else if (y5 <= -1.35e-10) {
tmp = k * (b * ((z * y0) - (y * y4)));
} else if (y5 <= 9.2e-207) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (y5 <= 5e+48) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if ((y5 <= 1.35e+155) || !(y5 <= 9.8e+200)) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if y5 <= -8.8e+129: tmp = t_1 elif y5 <= -1.35e-10: tmp = k * (b * ((z * y0) - (y * y4))) elif y5 <= 9.2e-207: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif y5 <= 5e+48: tmp = k * (z * ((b * y0) - (i * y1))) elif (y5 <= 1.35e+155) or not (y5 <= 9.8e+200): tmp = t_1 else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (y5 <= -8.8e+129) tmp = t_1; elseif (y5 <= -1.35e-10) tmp = Float64(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (y5 <= 9.2e-207) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y5 <= 5e+48) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif ((y5 <= 1.35e+155) || !(y5 <= 9.8e+200)) tmp = t_1; else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (y5 <= -8.8e+129) tmp = t_1; elseif (y5 <= -1.35e-10) tmp = k * (b * ((z * y0) - (y * y4))); elseif (y5 <= 9.2e-207) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (y5 <= 5e+48) tmp = k * (z * ((b * y0) - (i * y1))); elseif ((y5 <= 1.35e+155) || ~((y5 <= 9.8e+200))) tmp = t_1; else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -8.8e+129], t$95$1, If[LessEqual[y5, -1.35e-10], N[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.2e-207], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5e+48], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y5, 1.35e+155], N[Not[LessEqual[y5, 9.8e+200]], $MachinePrecision]], t$95$1, N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\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 -8.8 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -1.35 \cdot 10^{-10}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 9.2 \cdot 10^{-207}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq 5 \cdot 10^{+48}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 1.35 \cdot 10^{+155} \lor \neg \left(y5 \leq 9.8 \cdot 10^{+200}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -8.7999999999999997e129 or 4.99999999999999973e48 < y5 < 1.34999999999999997e155 or 9.79999999999999964e200 < y5 Initial program 22.1%
Simplified22.1%
Taylor expanded in y5 around inf 34.0%
mul-1-neg34.0%
Simplified34.0%
Taylor expanded in a around inf 53.1%
if -8.7999999999999997e129 < y5 < -1.35e-10Initial program 38.9%
Simplified54.3%
Taylor expanded in k around inf 40.0%
Taylor expanded in b around inf 43.5%
*-commutative43.5%
mul-1-neg43.5%
unsub-neg43.5%
*-commutative43.5%
Simplified43.5%
if -1.35e-10 < y5 < 9.2000000000000002e-207Initial program 26.5%
Simplified36.2%
Taylor expanded in k around inf 36.9%
Taylor expanded in y1 around inf 37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
if 9.2000000000000002e-207 < y5 < 4.99999999999999973e48Initial program 28.7%
Simplified36.7%
Taylor expanded in k around inf 48.2%
Taylor expanded in z around inf 37.6%
if 1.34999999999999997e155 < y5 < 9.79999999999999964e200Initial program 18.2%
Simplified27.3%
Taylor expanded in k around inf 28.0%
Taylor expanded in y2 around inf 56.7%
Final simplification43.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y4 (* y1 y2)))) (t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= a -2.7e+83)
t_2
(if (<= a -8e-212)
(* y4 (* (* c y2) (- t)))
(if (<= a 7e-168)
(* t (* y4 (* b j)))
(if (<= a 6.5e-37)
t_1
(if (<= a 2.25e+104)
(* y0 (* j (* y3 y5)))
(if (<= a 2.85e+183) 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 = k * (y4 * (y1 * y2));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (a <= -2.7e+83) {
tmp = t_2;
} else if (a <= -8e-212) {
tmp = y4 * ((c * y2) * -t);
} else if (a <= 7e-168) {
tmp = t * (y4 * (b * j));
} else if (a <= 6.5e-37) {
tmp = t_1;
} else if (a <= 2.25e+104) {
tmp = y0 * (j * (y3 * y5));
} else if (a <= 2.85e+183) {
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 = k * (y4 * (y1 * y2))
t_2 = a * (b * ((x * y) - (z * t)))
if (a <= (-2.7d+83)) then
tmp = t_2
else if (a <= (-8d-212)) then
tmp = y4 * ((c * y2) * -t)
else if (a <= 7d-168) then
tmp = t * (y4 * (b * j))
else if (a <= 6.5d-37) then
tmp = t_1
else if (a <= 2.25d+104) then
tmp = y0 * (j * (y3 * y5))
else if (a <= 2.85d+183) 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 = k * (y4 * (y1 * y2));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (a <= -2.7e+83) {
tmp = t_2;
} else if (a <= -8e-212) {
tmp = y4 * ((c * y2) * -t);
} else if (a <= 7e-168) {
tmp = t * (y4 * (b * j));
} else if (a <= 6.5e-37) {
tmp = t_1;
} else if (a <= 2.25e+104) {
tmp = y0 * (j * (y3 * y5));
} else if (a <= 2.85e+183) {
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 = k * (y4 * (y1 * y2)) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if a <= -2.7e+83: tmp = t_2 elif a <= -8e-212: tmp = y4 * ((c * y2) * -t) elif a <= 7e-168: tmp = t * (y4 * (b * j)) elif a <= 6.5e-37: tmp = t_1 elif a <= 2.25e+104: tmp = y0 * (j * (y3 * y5)) elif a <= 2.85e+183: 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(k * Float64(y4 * Float64(y1 * y2))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (a <= -2.7e+83) tmp = t_2; elseif (a <= -8e-212) tmp = Float64(y4 * Float64(Float64(c * y2) * Float64(-t))); elseif (a <= 7e-168) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (a <= 6.5e-37) tmp = t_1; elseif (a <= 2.25e+104) tmp = Float64(y0 * Float64(j * Float64(y3 * y5))); elseif (a <= 2.85e+183) 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 = k * (y4 * (y1 * y2)); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (a <= -2.7e+83) tmp = t_2; elseif (a <= -8e-212) tmp = y4 * ((c * y2) * -t); elseif (a <= 7e-168) tmp = t * (y4 * (b * j)); elseif (a <= 6.5e-37) tmp = t_1; elseif (a <= 2.25e+104) tmp = y0 * (j * (y3 * y5)); elseif (a <= 2.85e+183) 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[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7e+83], t$95$2, If[LessEqual[a, -8e-212], N[(y4 * N[(N[(c * y2), $MachinePrecision] * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e-168], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-37], t$95$1, If[LessEqual[a, 2.25e+104], N[(y0 * N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.85e+183], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;a \leq -2.7 \cdot 10^{+83}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-212}:\\
\;\;\;\;y4 \cdot \left(\left(c \cdot y2\right) \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-168}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.25 \cdot 10^{+104}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 2.85 \cdot 10^{+183}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2.70000000000000007e83 or 2.8499999999999999e183 < a Initial program 18.9%
Simplified18.9%
Taylor expanded in b around inf 41.2%
Taylor expanded in a around inf 48.5%
if -2.70000000000000007e83 < a < -7.99999999999999963e-212Initial program 26.5%
Simplified26.5%
Taylor expanded in y4 around inf 46.4%
Taylor expanded in t around inf 33.1%
Taylor expanded in j around 0 27.8%
mul-1-neg27.8%
distribute-lft-neg-out27.8%
*-commutative27.8%
Simplified27.8%
if -7.99999999999999963e-212 < a < 6.99999999999999964e-168Initial program 30.1%
Simplified30.1%
Taylor expanded in y4 around inf 40.7%
Taylor expanded in t around inf 38.5%
Taylor expanded in y4 around -inf 38.5%
*-commutative38.5%
*-commutative38.5%
*-commutative38.5%
associate-*l*38.2%
Simplified38.2%
Taylor expanded in j around inf 35.9%
*-commutative35.9%
Simplified35.9%
if 6.99999999999999964e-168 < a < 6.5000000000000001e-37 or 2.2499999999999999e104 < a < 2.8499999999999999e183Initial program 30.3%
Simplified30.3%
Taylor expanded in y4 around inf 54.5%
Taylor expanded in y1 around inf 43.1%
associate-*r*45.1%
Simplified45.1%
Taylor expanded in k around inf 38.8%
if 6.5000000000000001e-37 < a < 2.2499999999999999e104Initial program 40.0%
Simplified40.0%
Taylor expanded in y5 around inf 46.7%
mul-1-neg46.7%
Simplified46.7%
Taylor expanded in y0 around inf 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
Taylor expanded in k around 0 31.2%
associate-*r*31.2%
*-commutative31.2%
associate-*l*31.2%
Simplified31.2%
Final simplification38.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* b (- (* z y0) (* y y4)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.8e+22)
t_1
(if (<= b 1.35e-107)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= b 170000000000.0)
(* y0 (* (* k y5) (- y2)))
(if (<= b 5.8e+41)
t_2
(if (<= b 8.8e+67)
(* y4 (* t (* b j)))
(if (<= b 2.05e+136) 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 = k * (b * ((z * y0) - (y * y4)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.8e+22) {
tmp = t_1;
} else if (b <= 1.35e-107) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= 170000000000.0) {
tmp = y0 * ((k * y5) * -y2);
} else if (b <= 5.8e+41) {
tmp = t_2;
} else if (b <= 8.8e+67) {
tmp = y4 * (t * (b * j));
} else if (b <= 2.05e+136) {
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 = k * (b * ((z * y0) - (y * y4)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.8d+22)) then
tmp = t_1
else if (b <= 1.35d-107) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (b <= 170000000000.0d0) then
tmp = y0 * ((k * y5) * -y2)
else if (b <= 5.8d+41) then
tmp = t_2
else if (b <= 8.8d+67) then
tmp = y4 * (t * (b * j))
else if (b <= 2.05d+136) 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 = k * (b * ((z * y0) - (y * y4)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.8e+22) {
tmp = t_1;
} else if (b <= 1.35e-107) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= 170000000000.0) {
tmp = y0 * ((k * y5) * -y2);
} else if (b <= 5.8e+41) {
tmp = t_2;
} else if (b <= 8.8e+67) {
tmp = y4 * (t * (b * j));
} else if (b <= 2.05e+136) {
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 = k * (b * ((z * y0) - (y * y4))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.8e+22: tmp = t_1 elif b <= 1.35e-107: tmp = a * (y5 * ((t * y2) - (y * y3))) elif b <= 170000000000.0: tmp = y0 * ((k * y5) * -y2) elif b <= 5.8e+41: tmp = t_2 elif b <= 8.8e+67: tmp = y4 * (t * (b * j)) elif b <= 2.05e+136: 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(k * Float64(b * Float64(Float64(z * y0) - Float64(y * y4)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.8e+22) tmp = t_1; elseif (b <= 1.35e-107) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (b <= 170000000000.0) tmp = Float64(y0 * Float64(Float64(k * y5) * Float64(-y2))); elseif (b <= 5.8e+41) tmp = t_2; elseif (b <= 8.8e+67) tmp = Float64(y4 * Float64(t * Float64(b * j))); elseif (b <= 2.05e+136) 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 = k * (b * ((z * y0) - (y * y4))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.8e+22) tmp = t_1; elseif (b <= 1.35e-107) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (b <= 170000000000.0) tmp = y0 * ((k * y5) * -y2); elseif (b <= 5.8e+41) tmp = t_2; elseif (b <= 8.8e+67) tmp = y4 * (t * (b * j)); elseif (b <= 2.05e+136) 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[(k * N[(b * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+22], t$95$1, If[LessEqual[b, 1.35e-107], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 170000000000.0], N[(y0 * N[(N[(k * y5), $MachinePrecision] * (-y2)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e+41], t$95$2, If[LessEqual[b, 8.8e+67], N[(y4 * N[(t * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e+136], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(b \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-107}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 170000000000:\\
\;\;\;\;y0 \cdot \left(\left(k \cdot y5\right) \cdot \left(-y2\right)\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{+67}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+136}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.8e22 or 2.0499999999999999e136 < b Initial program 15.3%
Simplified23.9%
Taylor expanded in k around inf 37.0%
Taylor expanded in b around inf 45.9%
*-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
if -1.8e22 < b < 1.35e-107Initial program 36.8%
Simplified36.8%
Taylor expanded in y5 around inf 44.0%
mul-1-neg44.0%
Simplified44.0%
Taylor expanded in a around inf 33.0%
if 1.35e-107 < b < 1.7e11Initial program 23.1%
Simplified23.1%
Taylor expanded in y5 around inf 28.7%
mul-1-neg28.7%
Simplified28.7%
Taylor expanded in y0 around inf 31.8%
associate-*r*31.8%
neg-mul-131.8%
Simplified31.8%
Taylor expanded in k around inf 27.1%
associate-*r*32.0%
Simplified32.0%
if 1.7e11 < b < 5.79999999999999977e41 or 8.8e67 < b < 2.0499999999999999e136Initial program 25.2%
Simplified25.2%
Taylor expanded in b around inf 40.9%
Taylor expanded in a around inf 52.1%
if 5.79999999999999977e41 < b < 8.8e67Initial program 56.8%
Simplified56.8%
Taylor expanded in y4 around inf 78.2%
Taylor expanded in t around inf 57.3%
Taylor expanded in b around inf 57.3%
Final simplification39.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (* y3 (- y))))))
(if (<= y5 -9.8e+230)
t_1
(if (<= y5 -3.45e+146)
(* t (* a (* y2 y5)))
(if (<= y5 -1.1e+109)
t_1
(if (<= y5 -13500.0)
(* k (* b (* z y0)))
(if (<= y5 -2.5e-300)
(* (* k y2) (* y1 y4))
(if (<= y5 1e-71)
(* z (* a (- (* t b))))
(if (<= y5 4.8e+49) (* z (* b (* k y0))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * (y3 * -y));
double tmp;
if (y5 <= -9.8e+230) {
tmp = t_1;
} else if (y5 <= -3.45e+146) {
tmp = t * (a * (y2 * y5));
} else if (y5 <= -1.1e+109) {
tmp = t_1;
} else if (y5 <= -13500.0) {
tmp = k * (b * (z * y0));
} else if (y5 <= -2.5e-300) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 1e-71) {
tmp = z * (a * -(t * b));
} else if (y5 <= 4.8e+49) {
tmp = z * (b * (k * y0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y5 * (y3 * -y))
if (y5 <= (-9.8d+230)) then
tmp = t_1
else if (y5 <= (-3.45d+146)) then
tmp = t * (a * (y2 * y5))
else if (y5 <= (-1.1d+109)) then
tmp = t_1
else if (y5 <= (-13500.0d0)) then
tmp = k * (b * (z * y0))
else if (y5 <= (-2.5d-300)) then
tmp = (k * y2) * (y1 * y4)
else if (y5 <= 1d-71) then
tmp = z * (a * -(t * b))
else if (y5 <= 4.8d+49) then
tmp = z * (b * (k * y0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * (y3 * -y));
double tmp;
if (y5 <= -9.8e+230) {
tmp = t_1;
} else if (y5 <= -3.45e+146) {
tmp = t * (a * (y2 * y5));
} else if (y5 <= -1.1e+109) {
tmp = t_1;
} else if (y5 <= -13500.0) {
tmp = k * (b * (z * y0));
} else if (y5 <= -2.5e-300) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 1e-71) {
tmp = z * (a * -(t * b));
} else if (y5 <= 4.8e+49) {
tmp = z * (b * (k * y0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * (y3 * -y)) tmp = 0 if y5 <= -9.8e+230: tmp = t_1 elif y5 <= -3.45e+146: tmp = t * (a * (y2 * y5)) elif y5 <= -1.1e+109: tmp = t_1 elif y5 <= -13500.0: tmp = k * (b * (z * y0)) elif y5 <= -2.5e-300: tmp = (k * y2) * (y1 * y4) elif y5 <= 1e-71: tmp = z * (a * -(t * b)) elif y5 <= 4.8e+49: tmp = z * (b * (k * y0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(y3 * Float64(-y)))) tmp = 0.0 if (y5 <= -9.8e+230) tmp = t_1; elseif (y5 <= -3.45e+146) tmp = Float64(t * Float64(a * Float64(y2 * y5))); elseif (y5 <= -1.1e+109) tmp = t_1; elseif (y5 <= -13500.0) tmp = Float64(k * Float64(b * Float64(z * y0))); elseif (y5 <= -2.5e-300) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (y5 <= 1e-71) tmp = Float64(z * Float64(a * Float64(-Float64(t * b)))); elseif (y5 <= 4.8e+49) tmp = Float64(z * Float64(b * Float64(k * y0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * (y3 * -y)); tmp = 0.0; if (y5 <= -9.8e+230) tmp = t_1; elseif (y5 <= -3.45e+146) tmp = t * (a * (y2 * y5)); elseif (y5 <= -1.1e+109) tmp = t_1; elseif (y5 <= -13500.0) tmp = k * (b * (z * y0)); elseif (y5 <= -2.5e-300) tmp = (k * y2) * (y1 * y4); elseif (y5 <= 1e-71) tmp = z * (a * -(t * b)); elseif (y5 <= 4.8e+49) tmp = z * (b * (k * y0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(y3 * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -9.8e+230], t$95$1, If[LessEqual[y5, -3.45e+146], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.1e+109], t$95$1, If[LessEqual[y5, -13500.0], N[(k * N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.5e-300], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1e-71], N[(z * N[(a * (-N[(t * b), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.8e+49], N[(z * N[(b * N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(y3 \cdot \left(-y\right)\right)\right)\\
\mathbf{if}\;y5 \leq -9.8 \cdot 10^{+230}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -3.45 \cdot 10^{+146}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -1.1 \cdot 10^{+109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -13500:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq -2.5 \cdot 10^{-300}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;y5 \leq 10^{-71}:\\
\;\;\;\;z \cdot \left(a \cdot \left(-t \cdot b\right)\right)\\
\mathbf{elif}\;y5 \leq 4.8 \cdot 10^{+49}:\\
\;\;\;\;z \cdot \left(b \cdot \left(k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y5 < -9.79999999999999938e230 or -3.44999999999999978e146 < y5 < -1.1e109 or 4.8e49 < y5 Initial program 22.6%
Simplified22.6%
Taylor expanded in y5 around inf 31.3%
mul-1-neg31.3%
Simplified31.3%
Taylor expanded in a around inf 44.4%
Taylor expanded in t around 0 43.2%
associate-*r*43.2%
neg-mul-143.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
if -9.79999999999999938e230 < y5 < -3.44999999999999978e146Initial program 21.4%
Simplified21.4%
Taylor expanded in y5 around inf 42.9%
mul-1-neg42.9%
Simplified42.9%
Taylor expanded in a around inf 57.8%
Taylor expanded in t around inf 59.0%
Taylor expanded in a around 0 65.0%
associate-*r*65.0%
*-commutative65.0%
*-commutative65.0%
associate-*l*65.0%
*-commutative65.0%
Simplified65.0%
if -1.1e109 < y5 < -13500Initial program 47.0%
Simplified47.0%
Taylor expanded in z around -inf 53.5%
mul-1-neg53.5%
associate--l+53.5%
Simplified53.5%
Taylor expanded in b around inf 36.5%
Taylor expanded in a around 0 31.0%
mul-1-neg31.0%
distribute-rgt-neg-in31.0%
associate-*r*42.3%
*-commutative42.3%
Simplified42.3%
if -13500 < y5 < -2.49999999999999998e-300Initial program 24.4%
Simplified24.4%
Taylor expanded in y4 around inf 38.8%
Taylor expanded in y1 around inf 32.5%
associate-*r*32.5%
Simplified32.5%
Taylor expanded in k around inf 24.3%
*-commutative24.3%
associate-*r*24.3%
associate-*l*25.5%
Simplified25.5%
if -2.49999999999999998e-300 < y5 < 9.9999999999999992e-72Initial program 29.4%
Simplified29.4%
Taylor expanded in z around -inf 47.1%
mul-1-neg47.1%
associate--l+47.1%
Simplified47.1%
Taylor expanded in b around inf 32.9%
Taylor expanded in a around inf 31.2%
if 9.9999999999999992e-72 < y5 < 4.8e49Initial program 29.2%
Simplified29.2%
Taylor expanded in z around -inf 44.9%
mul-1-neg44.9%
associate--l+44.9%
Simplified44.9%
Taylor expanded in b around inf 37.6%
Taylor expanded in a around 0 40.2%
neg-mul-140.2%
distribute-rgt-neg-in40.2%
Simplified40.2%
Final simplification37.1%
(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) (* z t))))))
(if (<= y3 -4.4e+86)
(* a (* y5 (* y3 (- y))))
(if (<= y3 -4.2e+31)
(* (* y1 y4) (- (* j y3)))
(if (<= y3 -3.5e-237)
t_1
(if (<= y3 -9.5e-262)
(* (* k y2) (* y1 y4))
(if (<= y3 9e+48) t_1 (* a (* y5 (- (* t y2) (* y y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y3 <= -4.4e+86) {
tmp = a * (y5 * (y3 * -y));
} else if (y3 <= -4.2e+31) {
tmp = (y1 * y4) * -(j * y3);
} else if (y3 <= -3.5e-237) {
tmp = t_1;
} else if (y3 <= -9.5e-262) {
tmp = (k * y2) * (y1 * y4);
} else if (y3 <= 9e+48) {
tmp = t_1;
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (y3 <= (-4.4d+86)) then
tmp = a * (y5 * (y3 * -y))
else if (y3 <= (-4.2d+31)) then
tmp = (y1 * y4) * -(j * y3)
else if (y3 <= (-3.5d-237)) then
tmp = t_1
else if (y3 <= (-9.5d-262)) then
tmp = (k * y2) * (y1 * y4)
else if (y3 <= 9d+48) then
tmp = t_1
else
tmp = a * (y5 * ((t * y2) - (y * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y3 <= -4.4e+86) {
tmp = a * (y5 * (y3 * -y));
} else if (y3 <= -4.2e+31) {
tmp = (y1 * y4) * -(j * y3);
} else if (y3 <= -3.5e-237) {
tmp = t_1;
} else if (y3 <= -9.5e-262) {
tmp = (k * y2) * (y1 * y4);
} else if (y3 <= 9e+48) {
tmp = t_1;
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
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) - (z * t))) tmp = 0 if y3 <= -4.4e+86: tmp = a * (y5 * (y3 * -y)) elif y3 <= -4.2e+31: tmp = (y1 * y4) * -(j * y3) elif y3 <= -3.5e-237: tmp = t_1 elif y3 <= -9.5e-262: tmp = (k * y2) * (y1 * y4) elif y3 <= 9e+48: tmp = t_1 else: tmp = a * (y5 * ((t * y2) - (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (y3 <= -4.4e+86) tmp = Float64(a * Float64(y5 * Float64(y3 * Float64(-y)))); elseif (y3 <= -4.2e+31) tmp = Float64(Float64(y1 * y4) * Float64(-Float64(j * y3))); elseif (y3 <= -3.5e-237) tmp = t_1; elseif (y3 <= -9.5e-262) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (y3 <= 9e+48) tmp = t_1; else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (y3 <= -4.4e+86) tmp = a * (y5 * (y3 * -y)); elseif (y3 <= -4.2e+31) tmp = (y1 * y4) * -(j * y3); elseif (y3 <= -3.5e-237) tmp = t_1; elseif (y3 <= -9.5e-262) tmp = (k * y2) * (y1 * y4); elseif (y3 <= 9e+48) tmp = t_1; else tmp = a * (y5 * ((t * y2) - (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.4e+86], N[(a * N[(y5 * N[(y3 * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4.2e+31], N[(N[(y1 * y4), $MachinePrecision] * (-N[(j * y3), $MachinePrecision])), $MachinePrecision], If[LessEqual[y3, -3.5e-237], t$95$1, If[LessEqual[y3, -9.5e-262], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 9e+48], t$95$1, N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;y3 \leq -4.4 \cdot 10^{+86}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(y3 \cdot \left(-y\right)\right)\right)\\
\mathbf{elif}\;y3 \leq -4.2 \cdot 10^{+31}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(-j \cdot y3\right)\\
\mathbf{elif}\;y3 \leq -3.5 \cdot 10^{-237}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-262}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 9 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -4.40000000000000006e86Initial program 27.5%
Simplified27.5%
Taylor expanded in y5 around inf 37.5%
mul-1-neg37.5%
Simplified37.5%
Taylor expanded in a around inf 38.3%
Taylor expanded in t around 0 43.5%
associate-*r*43.5%
neg-mul-143.5%
associate-*r*43.5%
*-commutative43.5%
Simplified43.5%
if -4.40000000000000006e86 < y3 < -4.19999999999999958e31Initial program 33.7%
Simplified33.7%
Taylor expanded in y4 around inf 76.3%
Taylor expanded in y1 around inf 59.2%
associate-*r*59.2%
Simplified59.2%
Taylor expanded in k around 0 58.9%
mul-1-neg58.9%
associate-*r*58.9%
distribute-rgt-neg-in58.9%
distribute-rgt-neg-in58.9%
Simplified58.9%
if -4.19999999999999958e31 < y3 < -3.49999999999999983e-237 or -9.4999999999999999e-262 < y3 < 8.99999999999999991e48Initial program 29.8%
Simplified29.8%
Taylor expanded in b around inf 36.3%
Taylor expanded in a around inf 33.8%
if -3.49999999999999983e-237 < y3 < -9.4999999999999999e-262Initial program 27.3%
Simplified27.3%
Taylor expanded in y4 around inf 55.1%
Taylor expanded in y1 around inf 38.0%
associate-*r*38.0%
Simplified38.0%
Taylor expanded in k around inf 38.4%
*-commutative38.4%
associate-*r*38.4%
associate-*l*47.1%
Simplified47.1%
if 8.99999999999999991e48 < y3 Initial program 18.1%
Simplified18.1%
Taylor expanded in y5 around inf 36.3%
mul-1-neg36.3%
Simplified36.3%
Taylor expanded in a around inf 41.8%
Final simplification39.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y1 (- (* y2 y4) (* z i)))))
(t_2 (* t (* y4 (- (* b j) (* c y2))))))
(if (<= y1 -2.25e+27)
t_1
(if (<= y1 1.22e-131)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= y1 3.6e+56)
t_2
(if (<= y1 4.8e+228)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y1 7.5e+263) 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 = k * (y1 * ((y2 * y4) - (z * i)));
double t_2 = t * (y4 * ((b * j) - (c * y2)));
double tmp;
if (y1 <= -2.25e+27) {
tmp = t_1;
} else if (y1 <= 1.22e-131) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (y1 <= 3.6e+56) {
tmp = t_2;
} else if (y1 <= 4.8e+228) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y1 <= 7.5e+263) {
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 = k * (y1 * ((y2 * y4) - (z * i)))
t_2 = t * (y4 * ((b * j) - (c * y2)))
if (y1 <= (-2.25d+27)) then
tmp = t_1
else if (y1 <= 1.22d-131) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (y1 <= 3.6d+56) then
tmp = t_2
else if (y1 <= 4.8d+228) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y1 <= 7.5d+263) 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 = k * (y1 * ((y2 * y4) - (z * i)));
double t_2 = t * (y4 * ((b * j) - (c * y2)));
double tmp;
if (y1 <= -2.25e+27) {
tmp = t_1;
} else if (y1 <= 1.22e-131) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (y1 <= 3.6e+56) {
tmp = t_2;
} else if (y1 <= 4.8e+228) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y1 <= 7.5e+263) {
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 = k * (y1 * ((y2 * y4) - (z * i))) t_2 = t * (y4 * ((b * j) - (c * y2))) tmp = 0 if y1 <= -2.25e+27: tmp = t_1 elif y1 <= 1.22e-131: tmp = a * (y5 * ((t * y2) - (y * y3))) elif y1 <= 3.6e+56: tmp = t_2 elif y1 <= 4.8e+228: tmp = k * (z * ((b * y0) - (i * y1))) elif y1 <= 7.5e+263: 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(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))) t_2 = Float64(t * Float64(y4 * Float64(Float64(b * j) - Float64(c * y2)))) tmp = 0.0 if (y1 <= -2.25e+27) tmp = t_1; elseif (y1 <= 1.22e-131) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (y1 <= 3.6e+56) tmp = t_2; elseif (y1 <= 4.8e+228) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y1 <= 7.5e+263) 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 = k * (y1 * ((y2 * y4) - (z * i))); t_2 = t * (y4 * ((b * j) - (c * y2))); tmp = 0.0; if (y1 <= -2.25e+27) tmp = t_1; elseif (y1 <= 1.22e-131) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (y1 <= 3.6e+56) tmp = t_2; elseif (y1 <= 4.8e+228) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y1 <= 7.5e+263) 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[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(y4 * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -2.25e+27], t$95$1, If[LessEqual[y1, 1.22e-131], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 3.6e+56], t$95$2, If[LessEqual[y1, 4.8e+228], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 7.5e+263], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
t_2 := t \cdot \left(y4 \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{if}\;y1 \leq -2.25 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y1 \leq 1.22 \cdot 10^{-131}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 3.6 \cdot 10^{+56}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y1 \leq 4.8 \cdot 10^{+228}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y1 \leq 7.5 \cdot 10^{+263}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y1 < -2.25e27 or 7.5000000000000001e263 < y1 Initial program 22.3%
Simplified30.2%
Taylor expanded in k around inf 46.5%
Taylor expanded in y1 around inf 51.4%
mul-1-neg51.4%
unsub-neg51.4%
Simplified51.4%
if -2.25e27 < y1 < 1.21999999999999988e-131Initial program 25.9%
Simplified25.9%
Taylor expanded in y5 around inf 34.6%
mul-1-neg34.6%
Simplified34.6%
Taylor expanded in a around inf 34.1%
if 1.21999999999999988e-131 < y1 < 3.59999999999999998e56 or 4.79999999999999977e228 < y1 < 7.5000000000000001e263Initial program 38.7%
Simplified38.7%
Taylor expanded in y4 around inf 45.9%
Taylor expanded in t around inf 42.1%
Taylor expanded in y4 around -inf 42.1%
*-commutative42.1%
*-commutative42.1%
*-commutative42.1%
associate-*l*44.0%
Simplified44.0%
if 3.59999999999999998e56 < y1 < 4.79999999999999977e228Initial program 19.6%
Simplified26.0%
Taylor expanded in k around inf 32.6%
Taylor expanded in z around inf 45.7%
Final simplification41.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -4.2e+123)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= t -3.5e+74)
(* y4 (* j (- (* t b) (* y1 y3))))
(if (<= t -1.1e-274)
(* k (* y1 (- (* y2 y4) (* z i))))
(if (<= t 2.75e-130)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= t 2.1e+36)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* y4 (* b (- (* t j) (* y k))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -4.2e+123) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= -3.5e+74) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (t <= -1.1e-274) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (t <= 2.75e-130) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (t <= 2.1e+36) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = y4 * (b * ((t * j) - (y * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-4.2d+123)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (t <= (-3.5d+74)) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else if (t <= (-1.1d-274)) then
tmp = k * (y1 * ((y2 * y4) - (z * i)))
else if (t <= 2.75d-130) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (t <= 2.1d+36) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else
tmp = y4 * (b * ((t * j) - (y * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -4.2e+123) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= -3.5e+74) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (t <= -1.1e-274) {
tmp = k * (y1 * ((y2 * y4) - (z * i)));
} else if (t <= 2.75e-130) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (t <= 2.1e+36) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = y4 * (b * ((t * j) - (y * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -4.2e+123: tmp = c * (y4 * ((y * y3) - (t * y2))) elif t <= -3.5e+74: tmp = y4 * (j * ((t * b) - (y1 * y3))) elif t <= -1.1e-274: tmp = k * (y1 * ((y2 * y4) - (z * i))) elif t <= 2.75e-130: tmp = y * (y3 * ((c * y4) - (a * y5))) elif t <= 2.1e+36: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) else: tmp = y4 * (b * ((t * j) - (y * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -4.2e+123) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (t <= -3.5e+74) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (t <= -1.1e-274) tmp = Float64(k * Float64(y1 * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (t <= 2.75e-130) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (t <= 2.1e+36) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -4.2e+123) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (t <= -3.5e+74) tmp = y4 * (j * ((t * b) - (y1 * y3))); elseif (t <= -1.1e-274) tmp = k * (y1 * ((y2 * y4) - (z * i))); elseif (t <= 2.75e-130) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (t <= 2.1e+36) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); else tmp = y4 * (b * ((t * j) - (y * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -4.2e+123], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.5e+74], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.1e-274], N[(k * N[(y1 * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.75e-130], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+36], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{+123}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{+74}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-274}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 2.75 \cdot 10^{-130}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+36}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\end{array}
\end{array}
if t < -4.19999999999999988e123Initial program 26.2%
Simplified26.2%
Taylor expanded in y4 around inf 46.3%
Taylor expanded in c around inf 46.6%
if -4.19999999999999988e123 < t < -3.50000000000000014e74Initial program 14.3%
Simplified14.3%
Taylor expanded in y4 around inf 43.3%
Taylor expanded in j around inf 57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
if -3.50000000000000014e74 < t < -1.09999999999999998e-274Initial program 33.9%
Simplified42.8%
Taylor expanded in k around inf 47.8%
Taylor expanded in y1 around inf 36.4%
mul-1-neg36.4%
unsub-neg36.4%
Simplified36.4%
if -1.09999999999999998e-274 < t < 2.75000000000000004e-130Initial program 28.7%
Simplified35.7%
Taylor expanded in y around inf 33.9%
mul-1-neg33.9%
Simplified33.9%
Taylor expanded in y3 around inf 32.1%
if 2.75000000000000004e-130 < t < 2.10000000000000004e36Initial program 22.4%
Simplified29.9%
Taylor expanded in k around inf 33.3%
Taylor expanded in y2 around inf 43.4%
if 2.10000000000000004e36 < t Initial program 22.4%
Simplified22.4%
Taylor expanded in y4 around inf 47.1%
Taylor expanded in b around inf 53.6%
Final simplification42.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t))))))
(if (<= y3 -4.2e+38)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= y3 -2.8e-237)
t_1
(if (<= y3 -2e-262)
(* (* k y2) (* y1 y4))
(if (<= y3 3.3e+51) t_1 (* a (* y5 (- (* t y2) (* y y3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y3 <= -4.2e+38) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y3 <= -2.8e-237) {
tmp = t_1;
} else if (y3 <= -2e-262) {
tmp = (k * y2) * (y1 * y4);
} else if (y3 <= 3.3e+51) {
tmp = t_1;
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (y3 <= (-4.2d+38)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (y3 <= (-2.8d-237)) then
tmp = t_1
else if (y3 <= (-2d-262)) then
tmp = (k * y2) * (y1 * y4)
else if (y3 <= 3.3d+51) then
tmp = t_1
else
tmp = a * (y5 * ((t * y2) - (y * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y3 <= -4.2e+38) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y3 <= -2.8e-237) {
tmp = t_1;
} else if (y3 <= -2e-262) {
tmp = (k * y2) * (y1 * y4);
} else if (y3 <= 3.3e+51) {
tmp = t_1;
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
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) - (z * t))) tmp = 0 if y3 <= -4.2e+38: tmp = c * (y4 * ((y * y3) - (t * y2))) elif y3 <= -2.8e-237: tmp = t_1 elif y3 <= -2e-262: tmp = (k * y2) * (y1 * y4) elif y3 <= 3.3e+51: tmp = t_1 else: tmp = a * (y5 * ((t * y2) - (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (y3 <= -4.2e+38) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (y3 <= -2.8e-237) tmp = t_1; elseif (y3 <= -2e-262) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (y3 <= 3.3e+51) tmp = t_1; else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (y3 <= -4.2e+38) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (y3 <= -2.8e-237) tmp = t_1; elseif (y3 <= -2e-262) tmp = (k * y2) * (y1 * y4); elseif (y3 <= 3.3e+51) tmp = t_1; else tmp = a * (y5 * ((t * y2) - (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.2e+38], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.8e-237], t$95$1, If[LessEqual[y3, -2e-262], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.3e+51], t$95$1, N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;y3 \leq -4.2 \cdot 10^{+38}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq -2.8 \cdot 10^{-237}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq -2 \cdot 10^{-262}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 3.3 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -4.2e38Initial program 27.5%
Simplified27.5%
Taylor expanded in y4 around inf 38.4%
Taylor expanded in c around inf 40.5%
if -4.2e38 < y3 < -2.79999999999999997e-237 or -2.00000000000000002e-262 < y3 < 3.2999999999999997e51Initial program 30.3%
Simplified30.3%
Taylor expanded in b around inf 36.1%
Taylor expanded in a around inf 33.6%
if -2.79999999999999997e-237 < y3 < -2.00000000000000002e-262Initial program 27.3%
Simplified27.3%
Taylor expanded in y4 around inf 55.1%
Taylor expanded in y1 around inf 38.0%
associate-*r*38.0%
Simplified38.0%
Taylor expanded in k around inf 38.4%
*-commutative38.4%
associate-*r*38.4%
associate-*l*47.1%
Simplified47.1%
if 3.2999999999999997e51 < y3 Initial program 18.1%
Simplified18.1%
Taylor expanded in y5 around inf 36.3%
mul-1-neg36.3%
Simplified36.3%
Taylor expanded in a around inf 41.8%
Final simplification37.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 4e-197)
(* a (* y5 (* y3 (- y))))
(if (<= y1 7.2e-15)
(* (* t a) (* y2 y5))
(if (<= y1 2.7e+57)
(* (* k y4) (* y1 y2))
(if (<= y1 1.14e+145)
(* (* y1 y4) (- (* j y3)))
(if (<= y1 8e+263)
(* y4 (* b (* t j)))
(* (* y1 (* j y3)) (- 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 (y1 <= 4e-197) {
tmp = a * (y5 * (y3 * -y));
} else if (y1 <= 7.2e-15) {
tmp = (t * a) * (y2 * y5);
} else if (y1 <= 2.7e+57) {
tmp = (k * y4) * (y1 * y2);
} else if (y1 <= 1.14e+145) {
tmp = (y1 * y4) * -(j * y3);
} else if (y1 <= 8e+263) {
tmp = y4 * (b * (t * j));
} else {
tmp = (y1 * (j * y3)) * -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 (y1 <= 4d-197) then
tmp = a * (y5 * (y3 * -y))
else if (y1 <= 7.2d-15) then
tmp = (t * a) * (y2 * y5)
else if (y1 <= 2.7d+57) then
tmp = (k * y4) * (y1 * y2)
else if (y1 <= 1.14d+145) then
tmp = (y1 * y4) * -(j * y3)
else if (y1 <= 8d+263) then
tmp = y4 * (b * (t * j))
else
tmp = (y1 * (j * y3)) * -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 (y1 <= 4e-197) {
tmp = a * (y5 * (y3 * -y));
} else if (y1 <= 7.2e-15) {
tmp = (t * a) * (y2 * y5);
} else if (y1 <= 2.7e+57) {
tmp = (k * y4) * (y1 * y2);
} else if (y1 <= 1.14e+145) {
tmp = (y1 * y4) * -(j * y3);
} else if (y1 <= 8e+263) {
tmp = y4 * (b * (t * j));
} else {
tmp = (y1 * (j * y3)) * -y4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= 4e-197: tmp = a * (y5 * (y3 * -y)) elif y1 <= 7.2e-15: tmp = (t * a) * (y2 * y5) elif y1 <= 2.7e+57: tmp = (k * y4) * (y1 * y2) elif y1 <= 1.14e+145: tmp = (y1 * y4) * -(j * y3) elif y1 <= 8e+263: tmp = y4 * (b * (t * j)) else: tmp = (y1 * (j * y3)) * -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 (y1 <= 4e-197) tmp = Float64(a * Float64(y5 * Float64(y3 * Float64(-y)))); elseif (y1 <= 7.2e-15) tmp = Float64(Float64(t * a) * Float64(y2 * y5)); elseif (y1 <= 2.7e+57) tmp = Float64(Float64(k * y4) * Float64(y1 * y2)); elseif (y1 <= 1.14e+145) tmp = Float64(Float64(y1 * y4) * Float64(-Float64(j * y3))); elseif (y1 <= 8e+263) tmp = Float64(y4 * Float64(b * Float64(t * j))); else tmp = Float64(Float64(y1 * Float64(j * y3)) * Float64(-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 (y1 <= 4e-197) tmp = a * (y5 * (y3 * -y)); elseif (y1 <= 7.2e-15) tmp = (t * a) * (y2 * y5); elseif (y1 <= 2.7e+57) tmp = (k * y4) * (y1 * y2); elseif (y1 <= 1.14e+145) tmp = (y1 * y4) * -(j * y3); elseif (y1 <= 8e+263) tmp = y4 * (b * (t * j)); else tmp = (y1 * (j * y3)) * -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[y1, 4e-197], N[(a * N[(y5 * N[(y3 * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 7.2e-15], N[(N[(t * a), $MachinePrecision] * N[(y2 * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.7e+57], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.14e+145], N[(N[(y1 * y4), $MachinePrecision] * (-N[(j * y3), $MachinePrecision])), $MachinePrecision], If[LessEqual[y1, 8e+263], N[(y4 * N[(b * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y1 * N[(j * y3), $MachinePrecision]), $MachinePrecision] * (-y4)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 4 \cdot 10^{-197}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(y3 \cdot \left(-y\right)\right)\right)\\
\mathbf{elif}\;y1 \leq 7.2 \cdot 10^{-15}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(y2 \cdot y5\right)\\
\mathbf{elif}\;y1 \leq 2.7 \cdot 10^{+57}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2\right)\\
\mathbf{elif}\;y1 \leq 1.14 \cdot 10^{+145}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(-j \cdot y3\right)\\
\mathbf{elif}\;y1 \leq 8 \cdot 10^{+263}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y1 \cdot \left(j \cdot y3\right)\right) \cdot \left(-y4\right)\\
\end{array}
\end{array}
if y1 < 3.9999999999999999e-197Initial program 23.2%
Simplified23.2%
Taylor expanded in y5 around inf 35.9%
mul-1-neg35.9%
Simplified35.9%
Taylor expanded in a around inf 32.4%
Taylor expanded in t around 0 28.4%
associate-*r*28.4%
neg-mul-128.4%
associate-*r*28.5%
*-commutative28.5%
Simplified28.5%
if 3.9999999999999999e-197 < y1 < 7.2000000000000002e-15Initial program 39.0%
Simplified39.0%
Taylor expanded in y5 around inf 42.8%
mul-1-neg42.8%
Simplified42.8%
Taylor expanded in a around inf 32.3%
Taylor expanded in t around inf 30.0%
associate-*r*32.1%
Simplified32.1%
if 7.2000000000000002e-15 < y1 < 2.6999999999999998e57Initial program 57.0%
Simplified57.0%
Taylor expanded in y4 around inf 51.6%
Taylor expanded in y1 around inf 59.0%
associate-*r*58.9%
Simplified58.9%
Taylor expanded in k around inf 44.9%
associate-*r*57.7%
Simplified57.7%
if 2.6999999999999998e57 < y1 < 1.14000000000000001e145Initial program 23.1%
Simplified23.1%
Taylor expanded in y4 around inf 46.2%
Taylor expanded in y1 around inf 32.8%
associate-*r*40.0%
Simplified40.0%
Taylor expanded in k around 0 39.5%
mul-1-neg39.5%
associate-*r*46.8%
distribute-rgt-neg-in46.8%
distribute-rgt-neg-in46.8%
Simplified46.8%
if 1.14000000000000001e145 < y1 < 8.00000000000000013e263Initial program 15.0%
Simplified15.0%
Taylor expanded in y4 around inf 34.2%
Taylor expanded in t around inf 31.1%
Taylor expanded in j around inf 27.4%
*-commutative27.4%
associate-*r*30.8%
Simplified30.8%
if 8.00000000000000013e263 < y1 Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 26.4%
Taylor expanded in y1 around inf 43.2%
associate-*r*42.6%
Simplified42.6%
Taylor expanded in k around 0 42.4%
mul-1-neg42.4%
Simplified42.4%
Final simplification32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* a (* y2 y5)))) (t_2 (* k (* y4 (* y1 y2)))))
(if (<= a -1.62e-77)
t_1
(if (<= a 1.1e-167)
(* t (* y4 (* b j)))
(if (<= a 3.7e-38)
t_2
(if (<= a 2.6e+112)
(* y0 (* j (* y3 y5)))
(if (<= a 3e+212) 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 = t * (a * (y2 * y5));
double t_2 = k * (y4 * (y1 * y2));
double tmp;
if (a <= -1.62e-77) {
tmp = t_1;
} else if (a <= 1.1e-167) {
tmp = t * (y4 * (b * j));
} else if (a <= 3.7e-38) {
tmp = t_2;
} else if (a <= 2.6e+112) {
tmp = y0 * (j * (y3 * y5));
} else if (a <= 3e+212) {
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 = t * (a * (y2 * y5))
t_2 = k * (y4 * (y1 * y2))
if (a <= (-1.62d-77)) then
tmp = t_1
else if (a <= 1.1d-167) then
tmp = t * (y4 * (b * j))
else if (a <= 3.7d-38) then
tmp = t_2
else if (a <= 2.6d+112) then
tmp = y0 * (j * (y3 * y5))
else if (a <= 3d+212) 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 = t * (a * (y2 * y5));
double t_2 = k * (y4 * (y1 * y2));
double tmp;
if (a <= -1.62e-77) {
tmp = t_1;
} else if (a <= 1.1e-167) {
tmp = t * (y4 * (b * j));
} else if (a <= 3.7e-38) {
tmp = t_2;
} else if (a <= 2.6e+112) {
tmp = y0 * (j * (y3 * y5));
} else if (a <= 3e+212) {
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 = t * (a * (y2 * y5)) t_2 = k * (y4 * (y1 * y2)) tmp = 0 if a <= -1.62e-77: tmp = t_1 elif a <= 1.1e-167: tmp = t * (y4 * (b * j)) elif a <= 3.7e-38: tmp = t_2 elif a <= 2.6e+112: tmp = y0 * (j * (y3 * y5)) elif a <= 3e+212: 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(t * Float64(a * Float64(y2 * y5))) t_2 = Float64(k * Float64(y4 * Float64(y1 * y2))) tmp = 0.0 if (a <= -1.62e-77) tmp = t_1; elseif (a <= 1.1e-167) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (a <= 3.7e-38) tmp = t_2; elseif (a <= 2.6e+112) tmp = Float64(y0 * Float64(j * Float64(y3 * y5))); elseif (a <= 3e+212) 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 = t * (a * (y2 * y5)); t_2 = k * (y4 * (y1 * y2)); tmp = 0.0; if (a <= -1.62e-77) tmp = t_1; elseif (a <= 1.1e-167) tmp = t * (y4 * (b * j)); elseif (a <= 3.7e-38) tmp = t_2; elseif (a <= 2.6e+112) tmp = y0 * (j * (y3 * y5)); elseif (a <= 3e+212) 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[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.62e-77], t$95$1, If[LessEqual[a, 1.1e-167], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.7e-38], t$95$2, If[LessEqual[a, 2.6e+112], N[(y0 * N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+212], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
t_2 := k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{if}\;a \leq -1.62 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-167}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{-38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+112}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+212}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.62000000000000006e-77 or 3e212 < a Initial program 18.9%
Simplified18.9%
Taylor expanded in y5 around inf 32.9%
mul-1-neg32.9%
Simplified32.9%
Taylor expanded in a around inf 39.5%
Taylor expanded in t around inf 24.0%
Taylor expanded in a around 0 24.8%
associate-*r*26.5%
*-commutative26.5%
*-commutative26.5%
associate-*l*28.4%
*-commutative28.4%
Simplified28.4%
if -1.62000000000000006e-77 < a < 1.1e-167Initial program 33.5%
Simplified33.5%
Taylor expanded in y4 around inf 44.7%
Taylor expanded in t around inf 37.4%
Taylor expanded in y4 around -inf 37.4%
*-commutative37.4%
*-commutative37.4%
*-commutative37.4%
associate-*l*35.8%
Simplified35.8%
Taylor expanded in j around inf 27.1%
*-commutative27.1%
Simplified27.1%
if 1.1e-167 < a < 3.7e-38 or 2.6000000000000001e112 < a < 3e212Initial program 26.5%
Simplified26.5%
Taylor expanded in y4 around inf 51.9%
Taylor expanded in y1 around inf 39.2%
associate-*r*42.6%
Simplified42.6%
Taylor expanded in k around inf 37.7%
if 3.7e-38 < a < 2.6000000000000001e112Initial program 40.0%
Simplified40.0%
Taylor expanded in y5 around inf 46.7%
mul-1-neg46.7%
Simplified46.7%
Taylor expanded in y0 around inf 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
Taylor expanded in k around 0 31.2%
associate-*r*31.2%
*-commutative31.2%
associate-*l*31.2%
Simplified31.2%
Final simplification30.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -2.1e-40)
(* y0 (* j (* y3 y5)))
(if (<= y5 5.9e-208)
(* (* k y2) (* y1 y4))
(if (<= y5 2.6e-129)
(* t (* j (* b y4)))
(if (<= y5 2.3e+31) (* (* k y4) (* y1 y2)) (* t (* a (* y2 y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.1e-40) {
tmp = y0 * (j * (y3 * y5));
} else if (y5 <= 5.9e-208) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 2.6e-129) {
tmp = t * (j * (b * y4));
} else if (y5 <= 2.3e+31) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-2.1d-40)) then
tmp = y0 * (j * (y3 * y5))
else if (y5 <= 5.9d-208) then
tmp = (k * y2) * (y1 * y4)
else if (y5 <= 2.6d-129) then
tmp = t * (j * (b * y4))
else if (y5 <= 2.3d+31) then
tmp = (k * y4) * (y1 * y2)
else
tmp = t * (a * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.1e-40) {
tmp = y0 * (j * (y3 * y5));
} else if (y5 <= 5.9e-208) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 2.6e-129) {
tmp = t * (j * (b * y4));
} else if (y5 <= 2.3e+31) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -2.1e-40: tmp = y0 * (j * (y3 * y5)) elif y5 <= 5.9e-208: tmp = (k * y2) * (y1 * y4) elif y5 <= 2.6e-129: tmp = t * (j * (b * y4)) elif y5 <= 2.3e+31: tmp = (k * y4) * (y1 * y2) else: tmp = t * (a * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -2.1e-40) tmp = Float64(y0 * Float64(j * Float64(y3 * y5))); elseif (y5 <= 5.9e-208) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (y5 <= 2.6e-129) tmp = Float64(t * Float64(j * Float64(b * y4))); elseif (y5 <= 2.3e+31) tmp = Float64(Float64(k * y4) * Float64(y1 * y2)); else tmp = Float64(t * Float64(a * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -2.1e-40) tmp = y0 * (j * (y3 * y5)); elseif (y5 <= 5.9e-208) tmp = (k * y2) * (y1 * y4); elseif (y5 <= 2.6e-129) tmp = t * (j * (b * y4)); elseif (y5 <= 2.3e+31) tmp = (k * y4) * (y1 * y2); else tmp = t * (a * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.1e-40], N[(y0 * N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.9e-208], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.6e-129], N[(t * N[(j * N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.3e+31], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.1 \cdot 10^{-40}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq 5.9 \cdot 10^{-208}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;y5 \leq 2.6 \cdot 10^{-129}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 2.3 \cdot 10^{+31}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -2.10000000000000018e-40Initial program 28.0%
Simplified28.0%
Taylor expanded in y5 around inf 41.9%
mul-1-neg41.9%
Simplified41.9%
Taylor expanded in y0 around inf 29.6%
associate-*r*29.6%
neg-mul-129.6%
Simplified29.6%
Taylor expanded in k around 0 25.3%
associate-*r*22.7%
*-commutative22.7%
associate-*l*25.3%
Simplified25.3%
if -2.10000000000000018e-40 < y5 < 5.90000000000000023e-208Initial program 27.5%
Simplified27.5%
Taylor expanded in y4 around inf 45.3%
Taylor expanded in y1 around inf 34.1%
associate-*r*35.5%
Simplified35.5%
Taylor expanded in k around inf 23.1%
*-commutative23.1%
associate-*r*24.4%
associate-*l*27.0%
Simplified27.0%
if 5.90000000000000023e-208 < y5 < 2.6000000000000001e-129Initial program 29.9%
Simplified29.9%
Taylor expanded in y4 around inf 51.9%
Taylor expanded in t around inf 31.6%
Taylor expanded in y4 around -inf 31.6%
*-commutative31.6%
*-commutative31.6%
*-commutative31.6%
associate-*l*35.8%
Simplified35.8%
Taylor expanded in j around inf 36.0%
associate-*r*31.9%
*-commutative31.9%
associate-*l*36.5%
Simplified36.5%
if 2.6000000000000001e-129 < y5 < 2.3e31Initial program 30.0%
Simplified30.0%
Taylor expanded in y4 around inf 36.0%
Taylor expanded in y1 around inf 39.2%
associate-*r*41.5%
Simplified41.5%
Taylor expanded in k around inf 23.1%
associate-*r*28.1%
Simplified28.1%
if 2.3e31 < y5 Initial program 20.9%
Simplified20.9%
Taylor expanded in y5 around inf 27.2%
mul-1-neg27.2%
Simplified27.2%
Taylor expanded in a around inf 45.9%
Taylor expanded in t around inf 33.9%
Taylor expanded in a around 0 37.2%
associate-*r*33.9%
*-commutative33.9%
*-commutative33.9%
associate-*l*35.6%
*-commutative35.6%
Simplified35.6%
Final simplification29.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1.55e-38)
(* y0 (* j (* y3 y5)))
(if (<= y5 2.7e-165)
(* (* k y2) (* y1 y4))
(if (<= y5 1.42e-70)
(* a (* t (* b (- z))))
(if (<= y5 2.3e+31) (* (* k y4) (* y1 y2)) (* t (* a (* y2 y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -1.55e-38) {
tmp = y0 * (j * (y3 * y5));
} else if (y5 <= 2.7e-165) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 1.42e-70) {
tmp = a * (t * (b * -z));
} else if (y5 <= 2.3e+31) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-1.55d-38)) then
tmp = y0 * (j * (y3 * y5))
else if (y5 <= 2.7d-165) then
tmp = (k * y2) * (y1 * y4)
else if (y5 <= 1.42d-70) then
tmp = a * (t * (b * -z))
else if (y5 <= 2.3d+31) then
tmp = (k * y4) * (y1 * y2)
else
tmp = t * (a * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -1.55e-38) {
tmp = y0 * (j * (y3 * y5));
} else if (y5 <= 2.7e-165) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 1.42e-70) {
tmp = a * (t * (b * -z));
} else if (y5 <= 2.3e+31) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -1.55e-38: tmp = y0 * (j * (y3 * y5)) elif y5 <= 2.7e-165: tmp = (k * y2) * (y1 * y4) elif y5 <= 1.42e-70: tmp = a * (t * (b * -z)) elif y5 <= 2.3e+31: tmp = (k * y4) * (y1 * y2) else: tmp = t * (a * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -1.55e-38) tmp = Float64(y0 * Float64(j * Float64(y3 * y5))); elseif (y5 <= 2.7e-165) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (y5 <= 1.42e-70) tmp = Float64(a * Float64(t * Float64(b * Float64(-z)))); elseif (y5 <= 2.3e+31) tmp = Float64(Float64(k * y4) * Float64(y1 * y2)); else tmp = Float64(t * Float64(a * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -1.55e-38) tmp = y0 * (j * (y3 * y5)); elseif (y5 <= 2.7e-165) tmp = (k * y2) * (y1 * y4); elseif (y5 <= 1.42e-70) tmp = a * (t * (b * -z)); elseif (y5 <= 2.3e+31) tmp = (k * y4) * (y1 * y2); else tmp = t * (a * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1.55e-38], N[(y0 * N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.7e-165], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.42e-70], N[(a * N[(t * N[(b * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.3e+31], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.55 \cdot 10^{-38}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq 2.7 \cdot 10^{-165}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;y5 \leq 1.42 \cdot 10^{-70}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 2.3 \cdot 10^{+31}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -1.54999999999999991e-38Initial program 28.0%
Simplified28.0%
Taylor expanded in y5 around inf 41.9%
mul-1-neg41.9%
Simplified41.9%
Taylor expanded in y0 around inf 29.6%
associate-*r*29.6%
neg-mul-129.6%
Simplified29.6%
Taylor expanded in k around 0 25.3%
associate-*r*22.7%
*-commutative22.7%
associate-*l*25.3%
Simplified25.3%
if -1.54999999999999991e-38 < y5 < 2.6999999999999998e-165Initial program 27.5%
Simplified27.5%
Taylor expanded in y4 around inf 46.9%
Taylor expanded in y1 around inf 33.4%
associate-*r*34.6%
Simplified34.6%
Taylor expanded in k around inf 22.5%
*-commutative22.5%
associate-*r*23.7%
associate-*l*25.9%
Simplified25.9%
if 2.6999999999999998e-165 < y5 < 1.42000000000000002e-70Initial program 37.4%
Simplified37.4%
Taylor expanded in z around -inf 45.4%
mul-1-neg45.4%
associate--l+45.4%
Simplified45.4%
Taylor expanded in b around inf 58.3%
Taylor expanded in a around inf 52.0%
if 1.42000000000000002e-70 < y5 < 2.3e31Initial program 27.0%
Simplified27.0%
Taylor expanded in y4 around inf 34.2%
Taylor expanded in y1 around inf 41.3%
associate-*r*44.1%
Simplified44.1%
Taylor expanded in k around inf 24.9%
associate-*r*31.1%
Simplified31.1%
if 2.3e31 < y5 Initial program 20.9%
Simplified20.9%
Taylor expanded in y5 around inf 27.2%
mul-1-neg27.2%
Simplified27.2%
Taylor expanded in a around inf 45.9%
Taylor expanded in t around inf 33.9%
Taylor expanded in a around 0 37.2%
associate-*r*33.9%
*-commutative33.9%
*-commutative33.9%
associate-*l*35.6%
*-commutative35.6%
Simplified35.6%
Final simplification30.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -7.8e-40)
(* y0 (* j (* y3 y5)))
(if (<= y5 -1.8e-300)
(* (* k y2) (* y1 y4))
(if (<= y5 1.8e-70)
(* z (* a (* t (- b))))
(if (<= y5 2.6e+31) (* (* k y4) (* y1 y2)) (* t (* a (* y2 y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -7.8e-40) {
tmp = y0 * (j * (y3 * y5));
} else if (y5 <= -1.8e-300) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 1.8e-70) {
tmp = z * (a * (t * -b));
} else if (y5 <= 2.6e+31) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-7.8d-40)) then
tmp = y0 * (j * (y3 * y5))
else if (y5 <= (-1.8d-300)) then
tmp = (k * y2) * (y1 * y4)
else if (y5 <= 1.8d-70) then
tmp = z * (a * (t * -b))
else if (y5 <= 2.6d+31) then
tmp = (k * y4) * (y1 * y2)
else
tmp = t * (a * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -7.8e-40) {
tmp = y0 * (j * (y3 * y5));
} else if (y5 <= -1.8e-300) {
tmp = (k * y2) * (y1 * y4);
} else if (y5 <= 1.8e-70) {
tmp = z * (a * (t * -b));
} else if (y5 <= 2.6e+31) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -7.8e-40: tmp = y0 * (j * (y3 * y5)) elif y5 <= -1.8e-300: tmp = (k * y2) * (y1 * y4) elif y5 <= 1.8e-70: tmp = z * (a * (t * -b)) elif y5 <= 2.6e+31: tmp = (k * y4) * (y1 * y2) else: tmp = t * (a * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -7.8e-40) tmp = Float64(y0 * Float64(j * Float64(y3 * y5))); elseif (y5 <= -1.8e-300) tmp = Float64(Float64(k * y2) * Float64(y1 * y4)); elseif (y5 <= 1.8e-70) tmp = Float64(z * Float64(a * Float64(t * Float64(-b)))); elseif (y5 <= 2.6e+31) tmp = Float64(Float64(k * y4) * Float64(y1 * y2)); else tmp = Float64(t * Float64(a * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -7.8e-40) tmp = y0 * (j * (y3 * y5)); elseif (y5 <= -1.8e-300) tmp = (k * y2) * (y1 * y4); elseif (y5 <= 1.8e-70) tmp = z * (a * (t * -b)); elseif (y5 <= 2.6e+31) tmp = (k * y4) * (y1 * y2); else tmp = t * (a * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -7.8e-40], N[(y0 * N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.8e-300], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.8e-70], N[(z * N[(a * N[(t * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.6e+31], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -7.8 \cdot 10^{-40}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -1.8 \cdot 10^{-300}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \left(y1 \cdot y4\right)\\
\mathbf{elif}\;y5 \leq 1.8 \cdot 10^{-70}:\\
\;\;\;\;z \cdot \left(a \cdot \left(t \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 2.6 \cdot 10^{+31}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -7.79999999999999961e-40Initial program 28.0%
Simplified28.0%
Taylor expanded in y5 around inf 41.9%
mul-1-neg41.9%
Simplified41.9%
Taylor expanded in y0 around inf 29.6%
associate-*r*29.6%
neg-mul-129.6%
Simplified29.6%
Taylor expanded in k around 0 25.3%
associate-*r*22.7%
*-commutative22.7%
associate-*l*25.3%
Simplified25.3%
if -7.79999999999999961e-40 < y5 < -1.80000000000000008e-300Initial program 27.7%
Simplified27.7%
Taylor expanded in y4 around inf 44.8%
Taylor expanded in y1 around inf 36.0%
associate-*r*37.7%
Simplified37.7%
Taylor expanded in k around inf 25.4%
*-commutative25.4%
associate-*r*25.3%
associate-*l*28.6%
Simplified28.6%
if -1.80000000000000008e-300 < y5 < 1.8000000000000001e-70Initial program 31.1%
Simplified31.1%
Taylor expanded in z around -inf 48.4%
mul-1-neg48.4%
associate--l+48.4%
Simplified48.4%
Taylor expanded in b around inf 34.5%
Taylor expanded in a around inf 32.8%
if 1.8000000000000001e-70 < y5 < 2.6e31Initial program 27.0%
Simplified27.0%
Taylor expanded in y4 around inf 34.2%
Taylor expanded in y1 around inf 41.3%
associate-*r*44.1%
Simplified44.1%
Taylor expanded in k around inf 24.9%
associate-*r*31.1%
Simplified31.1%
if 2.6e31 < y5 Initial program 20.9%
Simplified20.9%
Taylor expanded in y5 around inf 27.2%
mul-1-neg27.2%
Simplified27.2%
Taylor expanded in a around inf 45.9%
Taylor expanded in t around inf 33.9%
Taylor expanded in a around 0 37.2%
associate-*r*33.9%
*-commutative33.9%
*-commutative33.9%
associate-*l*35.6%
*-commutative35.6%
Simplified35.6%
Final simplification30.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 3.2e-200)
(* a (* y5 (* y3 (- y))))
(if (<= y1 7.5e-8)
(* (* t a) (* y2 y5))
(if (<= y1 1.2e+57) (* (* k y4) (* y1 y2)) (* (* y1 (* j y3)) (- 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 (y1 <= 3.2e-200) {
tmp = a * (y5 * (y3 * -y));
} else if (y1 <= 7.5e-8) {
tmp = (t * a) * (y2 * y5);
} else if (y1 <= 1.2e+57) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = (y1 * (j * y3)) * -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 (y1 <= 3.2d-200) then
tmp = a * (y5 * (y3 * -y))
else if (y1 <= 7.5d-8) then
tmp = (t * a) * (y2 * y5)
else if (y1 <= 1.2d+57) then
tmp = (k * y4) * (y1 * y2)
else
tmp = (y1 * (j * y3)) * -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 (y1 <= 3.2e-200) {
tmp = a * (y5 * (y3 * -y));
} else if (y1 <= 7.5e-8) {
tmp = (t * a) * (y2 * y5);
} else if (y1 <= 1.2e+57) {
tmp = (k * y4) * (y1 * y2);
} else {
tmp = (y1 * (j * y3)) * -y4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= 3.2e-200: tmp = a * (y5 * (y3 * -y)) elif y1 <= 7.5e-8: tmp = (t * a) * (y2 * y5) elif y1 <= 1.2e+57: tmp = (k * y4) * (y1 * y2) else: tmp = (y1 * (j * y3)) * -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 (y1 <= 3.2e-200) tmp = Float64(a * Float64(y5 * Float64(y3 * Float64(-y)))); elseif (y1 <= 7.5e-8) tmp = Float64(Float64(t * a) * Float64(y2 * y5)); elseif (y1 <= 1.2e+57) tmp = Float64(Float64(k * y4) * Float64(y1 * y2)); else tmp = Float64(Float64(y1 * Float64(j * y3)) * Float64(-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 (y1 <= 3.2e-200) tmp = a * (y5 * (y3 * -y)); elseif (y1 <= 7.5e-8) tmp = (t * a) * (y2 * y5); elseif (y1 <= 1.2e+57) tmp = (k * y4) * (y1 * y2); else tmp = (y1 * (j * y3)) * -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[y1, 3.2e-200], N[(a * N[(y5 * N[(y3 * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 7.5e-8], N[(N[(t * a), $MachinePrecision] * N[(y2 * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.2e+57], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2), $MachinePrecision]), $MachinePrecision], N[(N[(y1 * N[(j * y3), $MachinePrecision]), $MachinePrecision] * (-y4)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 3.2 \cdot 10^{-200}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(y3 \cdot \left(-y\right)\right)\right)\\
\mathbf{elif}\;y1 \leq 7.5 \cdot 10^{-8}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(y2 \cdot y5\right)\\
\mathbf{elif}\;y1 \leq 1.2 \cdot 10^{+57}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y1 \cdot \left(j \cdot y3\right)\right) \cdot \left(-y4\right)\\
\end{array}
\end{array}
if y1 < 3.19999999999999983e-200Initial program 23.2%
Simplified23.2%
Taylor expanded in y5 around inf 35.9%
mul-1-neg35.9%
Simplified35.9%
Taylor expanded in a around inf 32.4%
Taylor expanded in t around 0 28.4%
associate-*r*28.4%
neg-mul-128.4%
associate-*r*28.5%
*-commutative28.5%
Simplified28.5%
if 3.19999999999999983e-200 < y1 < 7.4999999999999997e-8Initial program 39.0%
Simplified39.0%
Taylor expanded in y5 around inf 42.8%
mul-1-neg42.8%
Simplified42.8%
Taylor expanded in a around inf 32.3%
Taylor expanded in t around inf 30.0%
associate-*r*32.1%
Simplified32.1%
if 7.4999999999999997e-8 < y1 < 1.20000000000000002e57Initial program 57.0%
Simplified57.0%
Taylor expanded in y4 around inf 51.6%
Taylor expanded in y1 around inf 59.0%
associate-*r*58.9%
Simplified58.9%
Taylor expanded in k around inf 44.9%
associate-*r*57.7%
Simplified57.7%
if 1.20000000000000002e57 < y1 Initial program 17.4%
Simplified17.4%
Taylor expanded in y4 around inf 35.4%
Taylor expanded in y1 around inf 33.7%
associate-*r*31.8%
Simplified31.8%
Taylor expanded in k around 0 27.9%
mul-1-neg27.9%
Simplified27.9%
Final simplification30.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* a (* y2 y5)))))
(if (<= a -1.75e-190)
t_1
(if (<= a 1.8e-168)
(* t (* j (* b y4)))
(if (<= a 2e+212) (* k (* y4 (* y1 y2))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (a * (y2 * y5));
double tmp;
if (a <= -1.75e-190) {
tmp = t_1;
} else if (a <= 1.8e-168) {
tmp = t * (j * (b * y4));
} else if (a <= 2e+212) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = t * (a * (y2 * y5))
if (a <= (-1.75d-190)) then
tmp = t_1
else if (a <= 1.8d-168) then
tmp = t * (j * (b * y4))
else if (a <= 2d+212) then
tmp = k * (y4 * (y1 * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (a * (y2 * y5));
double tmp;
if (a <= -1.75e-190) {
tmp = t_1;
} else if (a <= 1.8e-168) {
tmp = t * (j * (b * y4));
} else if (a <= 2e+212) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * (a * (y2 * y5)) tmp = 0 if a <= -1.75e-190: tmp = t_1 elif a <= 1.8e-168: tmp = t * (j * (b * y4)) elif a <= 2e+212: tmp = k * (y4 * (y1 * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(a * Float64(y2 * y5))) tmp = 0.0 if (a <= -1.75e-190) tmp = t_1; elseif (a <= 1.8e-168) tmp = Float64(t * Float64(j * Float64(b * y4))); elseif (a <= 2e+212) tmp = Float64(k * Float64(y4 * Float64(y1 * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * (a * (y2 * y5)); tmp = 0.0; if (a <= -1.75e-190) tmp = t_1; elseif (a <= 1.8e-168) tmp = t * (j * (b * y4)); elseif (a <= 2e+212) tmp = k * (y4 * (y1 * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.75e-190], t$95$1, If[LessEqual[a, 1.8e-168], N[(t * N[(j * N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e+212], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;a \leq -1.75 \cdot 10^{-190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-168}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4\right)\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+212}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.75e-190 or 1.9999999999999998e212 < a Initial program 22.5%
Simplified22.5%
Taylor expanded in y5 around inf 31.0%
mul-1-neg31.0%
Simplified31.0%
Taylor expanded in a around inf 35.7%
Taylor expanded in t around inf 21.5%
Taylor expanded in a around 0 22.2%
associate-*r*23.6%
*-commutative23.6%
*-commutative23.6%
associate-*l*25.1%
*-commutative25.1%
Simplified25.1%
if -1.75e-190 < a < 1.7999999999999999e-168Initial program 30.5%
Simplified30.5%
Taylor expanded in y4 around inf 42.7%
Taylor expanded in t around inf 40.6%
Taylor expanded in y4 around -inf 40.6%
*-commutative40.6%
*-commutative40.6%
*-commutative40.6%
associate-*l*40.3%
Simplified40.3%
Taylor expanded in j around inf 36.0%
associate-*r*33.7%
*-commutative33.7%
associate-*l*33.7%
Simplified33.7%
if 1.7999999999999999e-168 < a < 1.9999999999999998e212Initial program 31.4%
Simplified31.4%
Taylor expanded in y4 around inf 44.1%
Taylor expanded in y1 around inf 28.0%
associate-*r*30.2%
Simplified30.2%
Taylor expanded in k around inf 27.0%
Final simplification27.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* a (* y2 y5)))))
(if (<= a -2.05e-88)
t_1
(if (<= a 2.7e-165)
(* t (* y4 (* b j)))
(if (<= a 1.9e+212) (* k (* y4 (* y1 y2))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (a * (y2 * y5));
double tmp;
if (a <= -2.05e-88) {
tmp = t_1;
} else if (a <= 2.7e-165) {
tmp = t * (y4 * (b * j));
} else if (a <= 1.9e+212) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = t * (a * (y2 * y5))
if (a <= (-2.05d-88)) then
tmp = t_1
else if (a <= 2.7d-165) then
tmp = t * (y4 * (b * j))
else if (a <= 1.9d+212) then
tmp = k * (y4 * (y1 * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * (a * (y2 * y5));
double tmp;
if (a <= -2.05e-88) {
tmp = t_1;
} else if (a <= 2.7e-165) {
tmp = t * (y4 * (b * j));
} else if (a <= 1.9e+212) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * (a * (y2 * y5)) tmp = 0 if a <= -2.05e-88: tmp = t_1 elif a <= 2.7e-165: tmp = t * (y4 * (b * j)) elif a <= 1.9e+212: tmp = k * (y4 * (y1 * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(a * Float64(y2 * y5))) tmp = 0.0 if (a <= -2.05e-88) tmp = t_1; elseif (a <= 2.7e-165) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (a <= 1.9e+212) tmp = Float64(k * Float64(y4 * Float64(y1 * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * (a * (y2 * y5)); tmp = 0.0; if (a <= -2.05e-88) tmp = t_1; elseif (a <= 2.7e-165) tmp = t * (y4 * (b * j)); elseif (a <= 1.9e+212) tmp = k * (y4 * (y1 * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.05e-88], t$95$1, If[LessEqual[a, 2.7e-165], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e+212], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;a \leq -2.05 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-165}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+212}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.0500000000000001e-88 or 1.89999999999999994e212 < a Initial program 18.9%
Simplified18.9%
Taylor expanded in y5 around inf 32.9%
mul-1-neg32.9%
Simplified32.9%
Taylor expanded in a around inf 39.5%
Taylor expanded in t around inf 24.0%
Taylor expanded in a around 0 24.8%
associate-*r*26.5%
*-commutative26.5%
*-commutative26.5%
associate-*l*28.4%
*-commutative28.4%
Simplified28.4%
if -2.0500000000000001e-88 < a < 2.6999999999999998e-165Initial program 33.5%
Simplified33.5%
Taylor expanded in y4 around inf 44.7%
Taylor expanded in t around inf 37.4%
Taylor expanded in y4 around -inf 37.4%
*-commutative37.4%
*-commutative37.4%
*-commutative37.4%
associate-*l*35.8%
Simplified35.8%
Taylor expanded in j around inf 27.1%
*-commutative27.1%
Simplified27.1%
if 2.6999999999999998e-165 < a < 1.89999999999999994e212Initial program 31.4%
Simplified31.4%
Taylor expanded in y4 around inf 44.1%
Taylor expanded in y1 around inf 28.0%
associate-*r*30.2%
Simplified30.2%
Taylor expanded in k around inf 27.0%
Final simplification27.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y4 -6e+40) (not (<= y4 3.7e+110))) (* k (* y4 (* y1 y2))) (* a (* y5 (* t y2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y4 <= -6e+40) || !(y4 <= 3.7e+110)) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y4 <= (-6d+40)) .or. (.not. (y4 <= 3.7d+110))) then
tmp = k * (y4 * (y1 * y2))
else
tmp = a * (y5 * (t * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y4 <= -6e+40) || !(y4 <= 3.7e+110)) {
tmp = k * (y4 * (y1 * y2));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y4 <= -6e+40) or not (y4 <= 3.7e+110): tmp = k * (y4 * (y1 * y2)) else: tmp = a * (y5 * (t * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y4 <= -6e+40) || !(y4 <= 3.7e+110)) tmp = Float64(k * Float64(y4 * Float64(y1 * y2))); else tmp = Float64(a * Float64(y5 * Float64(t * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y4 <= -6e+40) || ~((y4 <= 3.7e+110))) tmp = k * (y4 * (y1 * y2)); else tmp = a * (y5 * (t * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y4, -6e+40], N[Not[LessEqual[y4, 3.7e+110]], $MachinePrecision]], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -6 \cdot 10^{+40} \lor \neg \left(y4 \leq 3.7 \cdot 10^{+110}\right):\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\end{array}
\end{array}
if y4 < -6.0000000000000004e40 or 3.70000000000000012e110 < y4 Initial program 20.8%
Simplified20.8%
Taylor expanded in y4 around inf 63.2%
Taylor expanded in y1 around inf 45.6%
associate-*r*46.5%
Simplified46.5%
Taylor expanded in k around inf 36.3%
if -6.0000000000000004e40 < y4 < 3.70000000000000012e110Initial program 30.3%
Simplified30.3%
Taylor expanded in y5 around inf 34.8%
mul-1-neg34.8%
Simplified34.8%
Taylor expanded in a around inf 26.5%
Taylor expanded in t around inf 15.8%
Final simplification23.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= a -2.1e-155) (not (<= a 8.5e+212))) (* t (* a (* y2 y5))) (* k (* y4 (* y1 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 ((a <= -2.1e-155) || !(a <= 8.5e+212)) {
tmp = t * (a * (y2 * y5));
} else {
tmp = k * (y4 * (y1 * 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 ((a <= (-2.1d-155)) .or. (.not. (a <= 8.5d+212))) then
tmp = t * (a * (y2 * y5))
else
tmp = k * (y4 * (y1 * 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 ((a <= -2.1e-155) || !(a <= 8.5e+212)) {
tmp = t * (a * (y2 * y5));
} else {
tmp = k * (y4 * (y1 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (a <= -2.1e-155) or not (a <= 8.5e+212): tmp = t * (a * (y2 * y5)) else: tmp = k * (y4 * (y1 * 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 ((a <= -2.1e-155) || !(a <= 8.5e+212)) tmp = Float64(t * Float64(a * Float64(y2 * y5))); else tmp = Float64(k * Float64(y4 * Float64(y1 * 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 ((a <= -2.1e-155) || ~((a <= 8.5e+212))) tmp = t * (a * (y2 * y5)); else tmp = k * (y4 * (y1 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[a, -2.1e-155], N[Not[LessEqual[a, 8.5e+212]], $MachinePrecision]], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y4 * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.1 \cdot 10^{-155} \lor \neg \left(a \leq 8.5 \cdot 10^{+212}\right):\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2\right)\right)\\
\end{array}
\end{array}
if a < -2.1000000000000002e-155 or 8.49999999999999979e212 < a Initial program 21.4%
Simplified21.4%
Taylor expanded in y5 around inf 31.6%
mul-1-neg31.6%
Simplified31.6%
Taylor expanded in a around inf 37.6%
Taylor expanded in t around inf 22.7%
Taylor expanded in a around 0 23.5%
associate-*r*25.0%
*-commutative25.0%
*-commutative25.0%
associate-*l*26.7%
*-commutative26.7%
Simplified26.7%
if -2.1000000000000002e-155 < a < 8.49999999999999979e212Initial program 31.3%
Simplified31.3%
Taylor expanded in y4 around inf 44.2%
Taylor expanded in y1 around inf 26.6%
associate-*r*27.9%
Simplified27.9%
Taylor expanded in k around inf 21.8%
Final simplification24.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* y5 (* t y2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y5 * (t * y2));
}
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 * (y5 * (t * y2))
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 * (y5 * (t * y2));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (y5 * (t * y2))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(y5 * Float64(t * y2))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (y5 * (t * y2)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)
\end{array}
Initial program 26.7%
Simplified26.7%
Taylor expanded in y5 around inf 36.2%
mul-1-neg36.2%
Simplified36.2%
Taylor expanded in a around inf 26.4%
Taylor expanded in t around inf 15.9%
Final simplification15.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t_9\\
t_11 := t_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t_4 \cdot t_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t_3 \cdot t_1 - t_14\right)\right) + \left(t_8 - \left(t_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t_13\right)\right) + \left(t_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t_10 - \left(y \cdot x - z \cdot t\right) \cdot t_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t_8 - \left(t_11 - t_6\right)\right) - \left(\frac{t_3}{\frac{1}{t_1}} - t_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t_2 - \left(t_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t_5\right) - t_17 \cdot t_1\right) + t_13\\
\end{array}
\end{array}
herbie shell --seed 2023257
(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)))))