
(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 50 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y
(+
(* y3 (- (* c y4) (* a y5)))
(/ (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))) y))))
(t_2 (* y0 (- (* x y2) (* z y3))))
(t_3 (- (* a b) (* c i)))
(t_4
(*
y5
(-
(* t (- (* a y2) (* i j)))
(/ (* t (+ (* c (* y2 y4)) (- (* z t_3) (* b (* j y4))))) y5))))
(t_5 (- (* c i) (* a b))))
(if (<= z -9.8e+227)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= z -1.16e+88)
t_1
(if (<= z -1.02e+19)
t_4
(if (<= z -1e-10)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(- (* y0 (- (* j y3) (* k y2))) (* i (- (* t j) (* y k))))))
(if (<= z -4.2e-50)
(* a (* b (* t (- (* x (/ y t)) z))))
(if (<= z -5.4e-156)
t_4
(if (<= z -2e-244)
(*
x
(+
(+ (* y t_3) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))
(if (<= z 6e-221)
t_1
(if (<= z 1.05e-19)
(*
c
(+
(+ (* i (- (* z t) (* x y))) t_2)
(* y4 (- (* y y3) (* t y2)))))
(if (<= z 7.6e+81)
(*
t
(+
(+ (* j (- (* b y4) (* i y5))) (* z t_5))
(* y2 (- (* a y5) (* c y4)))))
(if (<= z 3.7e+90)
(* c t_2)
(if (<= z 7.2e+219)
(* i (* z (- (* t c) (* k y1))))
(*
z
(+
(* k (- (* b y0) (* i y1)))
(+
(* t t_5)
(* y3 (- (* a y1) (* c y0))))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y));
double t_2 = y0 * ((x * y2) - (z * y3));
double t_3 = (a * b) - (c * i);
double t_4 = y5 * ((t * ((a * y2) - (i * j))) - ((t * ((c * (y2 * y4)) + ((z * t_3) - (b * (j * y4))))) / y5));
double t_5 = (c * i) - (a * b);
double tmp;
if (z <= -9.8e+227) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -1.16e+88) {
tmp = t_1;
} else if (z <= -1.02e+19) {
tmp = t_4;
} else if (z <= -1e-10) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else if (z <= -4.2e-50) {
tmp = a * (b * (t * ((x * (y / t)) - z)));
} else if (z <= -5.4e-156) {
tmp = t_4;
} else if (z <= -2e-244) {
tmp = x * (((y * t_3) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (z <= 6e-221) {
tmp = t_1;
} else if (z <= 1.05e-19) {
tmp = c * (((i * ((z * t) - (x * y))) + t_2) + (y4 * ((y * y3) - (t * y2))));
} else if (z <= 7.6e+81) {
tmp = t * (((j * ((b * y4) - (i * y5))) + (z * t_5)) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 3.7e+90) {
tmp = c * t_2;
} else if (z <= 7.2e+219) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_5) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y))
t_2 = y0 * ((x * y2) - (z * y3))
t_3 = (a * b) - (c * i)
t_4 = y5 * ((t * ((a * y2) - (i * j))) - ((t * ((c * (y2 * y4)) + ((z * t_3) - (b * (j * y4))))) / y5))
t_5 = (c * i) - (a * b)
if (z <= (-9.8d+227)) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (z <= (-1.16d+88)) then
tmp = t_1
else if (z <= (-1.02d+19)) then
tmp = t_4
else if (z <= (-1d-10)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))))
else if (z <= (-4.2d-50)) then
tmp = a * (b * (t * ((x * (y / t)) - z)))
else if (z <= (-5.4d-156)) then
tmp = t_4
else if (z <= (-2d-244)) then
tmp = x * (((y * t_3) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
else if (z <= 6d-221) then
tmp = t_1
else if (z <= 1.05d-19) then
tmp = c * (((i * ((z * t) - (x * y))) + t_2) + (y4 * ((y * y3) - (t * y2))))
else if (z <= 7.6d+81) then
tmp = t * (((j * ((b * y4) - (i * y5))) + (z * t_5)) + (y2 * ((a * y5) - (c * y4))))
else if (z <= 3.7d+90) then
tmp = c * t_2
else if (z <= 7.2d+219) then
tmp = i * (z * ((t * c) - (k * y1)))
else
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_5) + (y3 * ((a * y1) - (c * y0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y));
double t_2 = y0 * ((x * y2) - (z * y3));
double t_3 = (a * b) - (c * i);
double t_4 = y5 * ((t * ((a * y2) - (i * j))) - ((t * ((c * (y2 * y4)) + ((z * t_3) - (b * (j * y4))))) / y5));
double t_5 = (c * i) - (a * b);
double tmp;
if (z <= -9.8e+227) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -1.16e+88) {
tmp = t_1;
} else if (z <= -1.02e+19) {
tmp = t_4;
} else if (z <= -1e-10) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else if (z <= -4.2e-50) {
tmp = a * (b * (t * ((x * (y / t)) - z)));
} else if (z <= -5.4e-156) {
tmp = t_4;
} else if (z <= -2e-244) {
tmp = x * (((y * t_3) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (z <= 6e-221) {
tmp = t_1;
} else if (z <= 1.05e-19) {
tmp = c * (((i * ((z * t) - (x * y))) + t_2) + (y4 * ((y * y3) - (t * y2))));
} else if (z <= 7.6e+81) {
tmp = t * (((j * ((b * y4) - (i * y5))) + (z * t_5)) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 3.7e+90) {
tmp = c * t_2;
} else if (z <= 7.2e+219) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_5) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y)) t_2 = y0 * ((x * y2) - (z * y3)) t_3 = (a * b) - (c * i) t_4 = y5 * ((t * ((a * y2) - (i * j))) - ((t * ((c * (y2 * y4)) + ((z * t_3) - (b * (j * y4))))) / y5)) t_5 = (c * i) - (a * b) tmp = 0 if z <= -9.8e+227: tmp = c * (y3 * ((y * y4) - (z * y0))) elif z <= -1.16e+88: tmp = t_1 elif z <= -1.02e+19: tmp = t_4 elif z <= -1e-10: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))) elif z <= -4.2e-50: tmp = a * (b * (t * ((x * (y / t)) - z))) elif z <= -5.4e-156: tmp = t_4 elif z <= -2e-244: tmp = x * (((y * t_3) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) elif z <= 6e-221: tmp = t_1 elif z <= 1.05e-19: tmp = c * (((i * ((z * t) - (x * y))) + t_2) + (y4 * ((y * y3) - (t * y2)))) elif z <= 7.6e+81: tmp = t * (((j * ((b * y4) - (i * y5))) + (z * t_5)) + (y2 * ((a * y5) - (c * y4)))) elif z <= 3.7e+90: tmp = c * t_2 elif z <= 7.2e+219: tmp = i * (z * ((t * c) - (k * y1))) else: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_5) + (y3 * ((a * y1) - (c * y0))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) / y))) t_2 = Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(y5 * Float64(Float64(t * Float64(Float64(a * y2) - Float64(i * j))) - Float64(Float64(t * Float64(Float64(c * Float64(y2 * y4)) + Float64(Float64(z * t_3) - Float64(b * Float64(j * y4))))) / y5))) t_5 = Float64(Float64(c * i) - Float64(a * b)) tmp = 0.0 if (z <= -9.8e+227) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (z <= -1.16e+88) tmp = t_1; elseif (z <= -1.02e+19) tmp = t_4; elseif (z <= -1e-10) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))))); elseif (z <= -4.2e-50) tmp = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))); elseif (z <= -5.4e-156) tmp = t_4; elseif (z <= -2e-244) tmp = Float64(x * Float64(Float64(Float64(y * t_3) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (z <= 6e-221) tmp = t_1; elseif (z <= 1.05e-19) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + t_2) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (z <= 7.6e+81) tmp = Float64(t * Float64(Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(z * t_5)) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (z <= 3.7e+90) tmp = Float64(c * t_2); elseif (z <= 7.2e+219) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); else tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * t_5) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y)); t_2 = y0 * ((x * y2) - (z * y3)); t_3 = (a * b) - (c * i); t_4 = y5 * ((t * ((a * y2) - (i * j))) - ((t * ((c * (y2 * y4)) + ((z * t_3) - (b * (j * y4))))) / y5)); t_5 = (c * i) - (a * b); tmp = 0.0; if (z <= -9.8e+227) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (z <= -1.16e+88) tmp = t_1; elseif (z <= -1.02e+19) tmp = t_4; elseif (z <= -1e-10) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))); elseif (z <= -4.2e-50) tmp = a * (b * (t * ((x * (y / t)) - z))); elseif (z <= -5.4e-156) tmp = t_4; elseif (z <= -2e-244) tmp = x * (((y * t_3) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); elseif (z <= 6e-221) tmp = t_1; elseif (z <= 1.05e-19) tmp = c * (((i * ((z * t) - (x * y))) + t_2) + (y4 * ((y * y3) - (t * y2)))); elseif (z <= 7.6e+81) tmp = t * (((j * ((b * y4) - (i * y5))) + (z * t_5)) + (y2 * ((a * y5) - (c * y4)))); elseif (z <= 3.7e+90) tmp = c * t_2; elseif (z <= 7.2e+219) tmp = i * (z * ((t * c) - (k * y1))); else tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_5) + (y3 * ((a * y1) - (c * y0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y5 * N[(N[(t * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t * N[(N[(c * N[(y2 * y4), $MachinePrecision]), $MachinePrecision] + N[(N[(z * t$95$3), $MachinePrecision] - N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.8e+227], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.16e+88], t$95$1, If[LessEqual[z, -1.02e+19], t$95$4, If[LessEqual[z, -1e-10], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.2e-50], N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.4e-156], t$95$4, If[LessEqual[z, -2e-244], N[(x * N[(N[(N[(y * t$95$3), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-221], t$95$1, If[LessEqual[z, 1.05e-19], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.6e+81], N[(t * N[(N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e+90], N[(c * t$95$2), $MachinePrecision], If[LessEqual[z, 7.2e+219], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * t$95$5), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{y}\right)\\
t_2 := y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\\
t_3 := a \cdot b - c \cdot i\\
t_4 := y5 \cdot \left(t \cdot \left(a \cdot y2 - i \cdot j\right) - \frac{t \cdot \left(c \cdot \left(y2 \cdot y4\right) + \left(z \cdot t\_3 - b \cdot \left(j \cdot y4\right)\right)\right)}{y5}\right)\\
t_5 := c \cdot i - a \cdot b\\
\mathbf{if}\;z \leq -9.8 \cdot 10^{+227}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq -1.16 \cdot 10^{+88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{+19}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-10}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-50}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-156}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-244}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t\_3 + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-221}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + t\_2\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 7.6 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(\left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + z \cdot t\_5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\
\;\;\;\;c \cdot t\_2\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+219}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot t\_5 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if z < -9.80000000000000007e227Initial program 27.3%
Taylor expanded in c around inf 37.2%
Taylor expanded in y3 around -inf 81.8%
mul-1-neg81.8%
Simplified81.8%
if -9.80000000000000007e227 < z < -1.1599999999999999e88 or -1.9999999999999999e-244 < z < 6.0000000000000003e-221Initial program 16.4%
Taylor expanded in y around inf 27.4%
Taylor expanded in y3 around inf 51.7%
Taylor expanded in y around inf 60.4%
if -1.1599999999999999e88 < z < -1.02e19 or -4.2000000000000002e-50 < z < -5.40000000000000024e-156Initial program 29.0%
Taylor expanded in t around inf 61.9%
Taylor expanded in y5 around inf 71.8%
if -1.02e19 < z < -1.00000000000000004e-10Initial program 20.0%
Taylor expanded in y5 around -inf 100.0%
if -1.00000000000000004e-10 < z < -4.2000000000000002e-50Initial program 9.1%
Taylor expanded in b around inf 63.8%
Taylor expanded in a around inf 55.7%
Taylor expanded in t around inf 55.7%
associate-/l*64.4%
Simplified64.4%
if -5.40000000000000024e-156 < z < -1.9999999999999999e-244Initial program 40.3%
Taylor expanded in x around inf 67.2%
if 6.0000000000000003e-221 < z < 1.0499999999999999e-19Initial program 28.7%
Taylor expanded in c around inf 59.3%
if 1.0499999999999999e-19 < z < 7.599999999999999e81Initial program 13.6%
Taylor expanded in t around inf 65.8%
if 7.599999999999999e81 < z < 3.7e90Initial program 0.0%
Taylor expanded in c around inf 66.7%
Taylor expanded in y0 around inf 83.4%
if 3.7e90 < z < 7.20000000000000012e219Initial program 32.2%
Taylor expanded in i around -inf 62.4%
Taylor expanded in z around -inf 77.2%
associate-*r*77.2%
neg-mul-177.2%
Simplified77.2%
if 7.20000000000000012e219 < z Initial program 37.9%
Taylor expanded in z around -inf 93.8%
Final simplification69.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* b y4) (* i y5)))
(t_3
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* t_2 (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) t_1))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_3 INFINITY) t_3 (* t (+ (* j t_2) (* y2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (b * y4) - (i * y5);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = t * ((j * t_2) + (y2 * t_1));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (b * y4) - (i * y5);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = t * ((j * t_2) + (y2 * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (b * y4) - (i * y5) t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = t * ((j * t_2) + (y2 * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(b * y4) - Float64(i * y5)) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t_2 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_1)) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(t * Float64(Float64(j * t_2) + Float64(y2 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (b * y4) - (i * y5); t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_2 * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = t * ((j * t_2) + (y2 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(t * N[(N[(j * t$95$2), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := b \cdot y4 - i \cdot y5\\
t_3 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t\_2 \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot t\_1\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(j \cdot t\_2 + y2 \cdot t\_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.7%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in t around inf 42.1%
Taylor expanded in z around 0 43.7%
Final simplification56.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (- (* b y4) (* i y5))))
(t_2 (* z (- (* c i) (* a b))))
(t_3
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c (- (* z t) (* x y)))))))
(t_4 (* y (- (* i y5) (* b y4))))
(t_5 (* y5 (* a y2)))
(t_6 (- (* y1 y4) (* y0 y5))))
(if (<= t -8.5e+119)
(* t (+ (+ t_2 (* b (* j y4))) t_5))
(if (<= t -1.45e+44)
(* k (+ t_4 (* y2 t_6)))
(if (<= t -3.8e-122)
t_3
(if (<= t -1.55e-245)
(* t (+ t_1 (* y2 (- (* a y5) (* c y4)))))
(if (<= t 5.2e-204)
t_3
(if (<= t 2.9e-115)
(* b (* k (- (* z y0) (* y y4))))
(if (<= t 1.6e-87)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= t 2.2e-61)
(+ (* (- (* k y2) (* j y3)) t_6) (* k t_4))
(if (<= t 470.0)
(* i (* t (- (* z c) (* j y5))))
(if (<= t 5e+24)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+
(* j (- (* y0 y5) (* y1 y4)))
(* z (- (* a y1) (* c y0))))))
(if (<= t 5.6e+91)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(-
(* y0 (- (* j y3) (* k y2)))
(* i (- (* t j) (* y k))))))
(if (<= t 2.75e+256)
(* i (* z (- (* t c) (* k y1))))
(* t (+ (+ t_1 t_2) 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 = j * ((b * y4) - (i * y5));
double t_2 = z * ((c * i) - (a * b));
double t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
double t_4 = y * ((i * y5) - (b * y4));
double t_5 = y5 * (a * y2);
double t_6 = (y1 * y4) - (y0 * y5);
double tmp;
if (t <= -8.5e+119) {
tmp = t * ((t_2 + (b * (j * y4))) + t_5);
} else if (t <= -1.45e+44) {
tmp = k * (t_4 + (y2 * t_6));
} else if (t <= -3.8e-122) {
tmp = t_3;
} else if (t <= -1.55e-245) {
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
} else if (t <= 5.2e-204) {
tmp = t_3;
} else if (t <= 2.9e-115) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (t <= 1.6e-87) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (t <= 2.2e-61) {
tmp = (((k * y2) - (j * y3)) * t_6) + (k * t_4);
} else if (t <= 470.0) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (t <= 5e+24) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (t <= 5.6e+91) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else if (t <= 2.75e+256) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = t * ((t_1 + t_2) + 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 = j * ((b * y4) - (i * y5))
t_2 = z * ((c * i) - (a * b))
t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))))
t_4 = y * ((i * y5) - (b * y4))
t_5 = y5 * (a * y2)
t_6 = (y1 * y4) - (y0 * y5)
if (t <= (-8.5d+119)) then
tmp = t * ((t_2 + (b * (j * y4))) + t_5)
else if (t <= (-1.45d+44)) then
tmp = k * (t_4 + (y2 * t_6))
else if (t <= (-3.8d-122)) then
tmp = t_3
else if (t <= (-1.55d-245)) then
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))))
else if (t <= 5.2d-204) then
tmp = t_3
else if (t <= 2.9d-115) then
tmp = b * (k * ((z * y0) - (y * y4)))
else if (t <= 1.6d-87) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (t <= 2.2d-61) then
tmp = (((k * y2) - (j * y3)) * t_6) + (k * t_4)
else if (t <= 470.0d0) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (t <= 5d+24) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
else if (t <= 5.6d+91) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))))
else if (t <= 2.75d+256) then
tmp = i * (z * ((t * c) - (k * y1)))
else
tmp = t * ((t_1 + t_2) + 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 = j * ((b * y4) - (i * y5));
double t_2 = z * ((c * i) - (a * b));
double t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
double t_4 = y * ((i * y5) - (b * y4));
double t_5 = y5 * (a * y2);
double t_6 = (y1 * y4) - (y0 * y5);
double tmp;
if (t <= -8.5e+119) {
tmp = t * ((t_2 + (b * (j * y4))) + t_5);
} else if (t <= -1.45e+44) {
tmp = k * (t_4 + (y2 * t_6));
} else if (t <= -3.8e-122) {
tmp = t_3;
} else if (t <= -1.55e-245) {
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
} else if (t <= 5.2e-204) {
tmp = t_3;
} else if (t <= 2.9e-115) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (t <= 1.6e-87) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (t <= 2.2e-61) {
tmp = (((k * y2) - (j * y3)) * t_6) + (k * t_4);
} else if (t <= 470.0) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (t <= 5e+24) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (t <= 5.6e+91) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k)))));
} else if (t <= 2.75e+256) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = t * ((t_1 + t_2) + t_5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * ((b * y4) - (i * y5)) t_2 = z * ((c * i) - (a * b)) t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))) t_4 = y * ((i * y5) - (b * y4)) t_5 = y5 * (a * y2) t_6 = (y1 * y4) - (y0 * y5) tmp = 0 if t <= -8.5e+119: tmp = t * ((t_2 + (b * (j * y4))) + t_5) elif t <= -1.45e+44: tmp = k * (t_4 + (y2 * t_6)) elif t <= -3.8e-122: tmp = t_3 elif t <= -1.55e-245: tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4)))) elif t <= 5.2e-204: tmp = t_3 elif t <= 2.9e-115: tmp = b * (k * ((z * y0) - (y * y4))) elif t <= 1.6e-87: tmp = c * (t * ((z * i) - (y2 * y4))) elif t <= 2.2e-61: tmp = (((k * y2) - (j * y3)) * t_6) + (k * t_4) elif t <= 470.0: tmp = i * (t * ((z * c) - (j * y5))) elif t <= 5e+24: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) elif t <= 5.6e+91: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))) elif t <= 2.75e+256: tmp = i * (z * ((t * c) - (k * y1))) else: tmp = t * ((t_1 + t_2) + 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(j * Float64(Float64(b * y4) - Float64(i * y5))) t_2 = Float64(z * Float64(Float64(c * i) - Float64(a * b))) t_3 = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))))) t_4 = Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) t_5 = Float64(y5 * Float64(a * y2)) t_6 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (t <= -8.5e+119) tmp = Float64(t * Float64(Float64(t_2 + Float64(b * Float64(j * y4))) + t_5)); elseif (t <= -1.45e+44) tmp = Float64(k * Float64(t_4 + Float64(y2 * t_6))); elseif (t <= -3.8e-122) tmp = t_3; elseif (t <= -1.55e-245) tmp = Float64(t * Float64(t_1 + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (t <= 5.2e-204) tmp = t_3; elseif (t <= 2.9e-115) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (t <= 1.6e-87) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (t <= 2.2e-61) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_6) + Float64(k * t_4)); elseif (t <= 470.0) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (t <= 5e+24) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); elseif (t <= 5.6e+91) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * Float64(Float64(t * j) - Float64(y * k)))))); elseif (t <= 2.75e+256) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); else tmp = Float64(t * Float64(Float64(t_1 + t_2) + 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 = j * ((b * y4) - (i * y5)); t_2 = z * ((c * i) - (a * b)); t_3 = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))); t_4 = y * ((i * y5) - (b * y4)); t_5 = y5 * (a * y2); t_6 = (y1 * y4) - (y0 * y5); tmp = 0.0; if (t <= -8.5e+119) tmp = t * ((t_2 + (b * (j * y4))) + t_5); elseif (t <= -1.45e+44) tmp = k * (t_4 + (y2 * t_6)); elseif (t <= -3.8e-122) tmp = t_3; elseif (t <= -1.55e-245) tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4)))); elseif (t <= 5.2e-204) tmp = t_3; elseif (t <= 2.9e-115) tmp = b * (k * ((z * y0) - (y * y4))); elseif (t <= 1.6e-87) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (t <= 2.2e-61) tmp = (((k * y2) - (j * y3)) * t_6) + (k * t_4); elseif (t <= 470.0) tmp = i * (t * ((z * c) - (j * y5))); elseif (t <= 5e+24) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); elseif (t <= 5.6e+91) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * ((t * j) - (y * k))))); elseif (t <= 2.75e+256) tmp = i * (z * ((t * c) - (k * y1))); else tmp = t * ((t_1 + t_2) + 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[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.5e+119], N[(t * N[(N[(t$95$2 + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.45e+44], N[(k * N[(t$95$4 + N[(y2 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e-122], t$95$3, If[LessEqual[t, -1.55e-245], N[(t * N[(t$95$1 + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e-204], t$95$3, If[LessEqual[t, 2.9e-115], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-87], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-61], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$6), $MachinePrecision] + N[(k * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 470.0], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e+24], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e+91], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.75e+256], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(t$95$1 + t$95$2), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_2 := z \cdot \left(c \cdot i - a \cdot b\right)\\
t_3 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\\
t_4 := y \cdot \left(i \cdot y5 - b \cdot y4\right)\\
t_5 := y5 \cdot \left(a \cdot y2\right)\\
t_6 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+119}:\\
\;\;\;\;t \cdot \left(\left(t\_2 + b \cdot \left(j \cdot y4\right)\right) + t\_5\right)\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{+44}:\\
\;\;\;\;k \cdot \left(t\_4 + y2 \cdot t\_6\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-122}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-245}:\\
\;\;\;\;t \cdot \left(t\_1 + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-204}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-115}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-87}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-61}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot t\_6 + k \cdot t\_4\\
\mathbf{elif}\;t \leq 470:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+24}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+91}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot \left(t \cdot j - y \cdot k\right)\right)\right)\\
\mathbf{elif}\;t \leq 2.75 \cdot 10^{+256}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(t\_1 + t\_2\right) + t\_5\right)\\
\end{array}
\end{array}
if t < -8.49999999999999997e119Initial program 33.3%
Taylor expanded in t around inf 79.5%
Taylor expanded in c around 0 74.5%
mul-1-neg74.5%
associate-*r*74.5%
Simplified74.5%
Taylor expanded in b around inf 77.1%
if -8.49999999999999997e119 < t < -1.4500000000000001e44Initial program 5.7%
Taylor expanded in y around inf 21.3%
Taylor expanded in k around inf 63.6%
if -1.4500000000000001e44 < t < -3.8000000000000001e-122 or -1.55000000000000001e-245 < t < 5.19999999999999965e-204Initial program 32.9%
Taylor expanded in i around -inf 54.9%
if -3.8000000000000001e-122 < t < -1.55000000000000001e-245Initial program 17.2%
Taylor expanded in t around inf 52.0%
Taylor expanded in z around 0 60.4%
if 5.19999999999999965e-204 < t < 2.8999999999999998e-115Initial program 22.5%
Taylor expanded in b around inf 34.2%
Taylor expanded in k around -inf 50.8%
mul-1-neg50.8%
Simplified50.8%
if 2.8999999999999998e-115 < t < 1.59999999999999989e-87Initial program 42.9%
Taylor expanded in t around inf 57.9%
Taylor expanded in c around inf 71.9%
if 1.59999999999999989e-87 < t < 2.20000000000000009e-61Initial program 33.1%
Taylor expanded in y around inf 33.1%
Taylor expanded in k around inf 99.7%
mul-1-neg99.7%
Simplified99.7%
if 2.20000000000000009e-61 < t < 470Initial program 29.8%
Taylor expanded in t around inf 21.3%
Taylor expanded in c around 0 21.8%
mul-1-neg21.8%
associate-*r*21.8%
Simplified21.8%
Taylor expanded in i around -inf 51.2%
mul-1-neg51.2%
*-commutative51.2%
distribute-rgt-neg-in51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 470 < t < 5.00000000000000045e24Initial program 28.6%
Taylor expanded in y3 around -inf 86.2%
if 5.00000000000000045e24 < t < 5.5999999999999997e91Initial program 8.3%
Taylor expanded in y5 around -inf 66.8%
if 5.5999999999999997e91 < t < 2.7499999999999999e256Initial program 20.8%
Taylor expanded in i around -inf 50.0%
Taylor expanded in z around -inf 73.7%
associate-*r*73.7%
neg-mul-173.7%
Simplified73.7%
if 2.7499999999999999e256 < t Initial program 12.5%
Taylor expanded in t around inf 100.0%
Taylor expanded in c around 0 100.0%
mul-1-neg100.0%
associate-*r*100.0%
Simplified100.0%
Final simplification66.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (* y5 (* a y2)))
(t_3 (- (* c i) (* a b)))
(t_4 (* j (- (* b y4) (* i y5))))
(t_5 (- (* y1 y4) (* y0 y5)))
(t_6
(*
y
(+
(* y3 (- (* c y4) (* a y5)))
(/ (* (- (* k y2) (* j y3)) t_5) y)))))
(if (<= z -1.25e+223)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= z -8e+88)
t_6
(if (<= z -1.95e-5)
(* t (+ (+ (* z t_3) (* b (* j y4))) t_2))
(if (<= z -4.45e-116)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c (- (* z t) (* x y))))))
(if (<= z -7e-228)
(* t (+ t_4 (* y2 t_1)))
(if (<= z 3.5e-222)
t_6
(if (<= z 1.16e-169)
(* t (+ t_4 t_2))
(if (<= z 8.5e-147)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= z 1.36e+18)
(*
y2
(+ (+ (* k t_5) (* x (- (* c y0) (* a y1)))) (* t t_1)))
(if (<= z 1.05e+97)
(* i (* t (- (* z c) (* j y5))))
(if (<= z 8.6e+219)
(* i (* z (- (* t c) (* k y1))))
(*
z
(+
(* k (- (* b y0) (* i y1)))
(+
(* t t_3)
(* y3 (- (* a y1) (* c y0)))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = y5 * (a * y2);
double t_3 = (c * i) - (a * b);
double t_4 = j * ((b * y4) - (i * y5));
double t_5 = (y1 * y4) - (y0 * y5);
double t_6 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * t_5) / y));
double tmp;
if (z <= -1.25e+223) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -8e+88) {
tmp = t_6;
} else if (z <= -1.95e-5) {
tmp = t * (((z * t_3) + (b * (j * y4))) + t_2);
} else if (z <= -4.45e-116) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
} else if (z <= -7e-228) {
tmp = t * (t_4 + (y2 * t_1));
} else if (z <= 3.5e-222) {
tmp = t_6;
} else if (z <= 1.16e-169) {
tmp = t * (t_4 + t_2);
} else if (z <= 8.5e-147) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 1.36e+18) {
tmp = y2 * (((k * t_5) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (z <= 1.05e+97) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (z <= 8.6e+219) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = y5 * (a * y2)
t_3 = (c * i) - (a * b)
t_4 = j * ((b * y4) - (i * y5))
t_5 = (y1 * y4) - (y0 * y5)
t_6 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * t_5) / y))
if (z <= (-1.25d+223)) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (z <= (-8d+88)) then
tmp = t_6
else if (z <= (-1.95d-5)) then
tmp = t * (((z * t_3) + (b * (j * y4))) + t_2)
else if (z <= (-4.45d-116)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))))
else if (z <= (-7d-228)) then
tmp = t * (t_4 + (y2 * t_1))
else if (z <= 3.5d-222) then
tmp = t_6
else if (z <= 1.16d-169) then
tmp = t * (t_4 + t_2)
else if (z <= 8.5d-147) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (z <= 1.36d+18) then
tmp = y2 * (((k * t_5) + (x * ((c * y0) - (a * y1)))) + (t * t_1))
else if (z <= 1.05d+97) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (z <= 8.6d+219) then
tmp = i * (z * ((t * c) - (k * y1)))
else
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = y5 * (a * y2);
double t_3 = (c * i) - (a * b);
double t_4 = j * ((b * y4) - (i * y5));
double t_5 = (y1 * y4) - (y0 * y5);
double t_6 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * t_5) / y));
double tmp;
if (z <= -1.25e+223) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -8e+88) {
tmp = t_6;
} else if (z <= -1.95e-5) {
tmp = t * (((z * t_3) + (b * (j * y4))) + t_2);
} else if (z <= -4.45e-116) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
} else if (z <= -7e-228) {
tmp = t * (t_4 + (y2 * t_1));
} else if (z <= 3.5e-222) {
tmp = t_6;
} else if (z <= 1.16e-169) {
tmp = t * (t_4 + t_2);
} else if (z <= 8.5e-147) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 1.36e+18) {
tmp = y2 * (((k * t_5) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (z <= 1.05e+97) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (z <= 8.6e+219) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = y5 * (a * y2) t_3 = (c * i) - (a * b) t_4 = j * ((b * y4) - (i * y5)) t_5 = (y1 * y4) - (y0 * y5) t_6 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * t_5) / y)) tmp = 0 if z <= -1.25e+223: tmp = c * (y3 * ((y * y4) - (z * y0))) elif z <= -8e+88: tmp = t_6 elif z <= -1.95e-5: tmp = t * (((z * t_3) + (b * (j * y4))) + t_2) elif z <= -4.45e-116: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))) elif z <= -7e-228: tmp = t * (t_4 + (y2 * t_1)) elif z <= 3.5e-222: tmp = t_6 elif z <= 1.16e-169: tmp = t * (t_4 + t_2) elif z <= 8.5e-147: tmp = c * (y4 * ((y * y3) - (t * y2))) elif z <= 1.36e+18: tmp = y2 * (((k * t_5) + (x * ((c * y0) - (a * y1)))) + (t * t_1)) elif z <= 1.05e+97: tmp = i * (t * ((z * c) - (j * y5))) elif z <= 8.6e+219: tmp = i * (z * ((t * c) - (k * y1))) else: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(y5 * Float64(a * y2)) t_3 = Float64(Float64(c * i) - Float64(a * b)) t_4 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) t_5 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_6 = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_5) / y))) tmp = 0.0 if (z <= -1.25e+223) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (z <= -8e+88) tmp = t_6; elseif (z <= -1.95e-5) tmp = Float64(t * Float64(Float64(Float64(z * t_3) + Float64(b * Float64(j * y4))) + t_2)); elseif (z <= -4.45e-116) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))))); elseif (z <= -7e-228) tmp = Float64(t * Float64(t_4 + Float64(y2 * t_1))); elseif (z <= 3.5e-222) tmp = t_6; elseif (z <= 1.16e-169) tmp = Float64(t * Float64(t_4 + t_2)); elseif (z <= 8.5e-147) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (z <= 1.36e+18) tmp = Float64(y2 * Float64(Float64(Float64(k * t_5) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_1))); elseif (z <= 1.05e+97) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (z <= 8.6e+219) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); else tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * t_3) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = y5 * (a * y2); t_3 = (c * i) - (a * b); t_4 = j * ((b * y4) - (i * y5)); t_5 = (y1 * y4) - (y0 * y5); t_6 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * t_5) / y)); tmp = 0.0; if (z <= -1.25e+223) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (z <= -8e+88) tmp = t_6; elseif (z <= -1.95e-5) tmp = t * (((z * t_3) + (b * (j * y4))) + t_2); elseif (z <= -4.45e-116) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))); elseif (z <= -7e-228) tmp = t * (t_4 + (y2 * t_1)); elseif (z <= 3.5e-222) tmp = t_6; elseif (z <= 1.16e-169) tmp = t * (t_4 + t_2); elseif (z <= 8.5e-147) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (z <= 1.36e+18) tmp = y2 * (((k * t_5) + (x * ((c * y0) - (a * y1)))) + (t * t_1)); elseif (z <= 1.05e+97) tmp = i * (t * ((z * c) - (j * y5))); elseif (z <= 8.6e+219) tmp = i * (z * ((t * c) - (k * y1))); else tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+223], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8e+88], t$95$6, If[LessEqual[z, -1.95e-5], N[(t * N[(N[(N[(z * t$95$3), $MachinePrecision] + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.45e-116], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7e-228], N[(t * N[(t$95$4 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-222], t$95$6, If[LessEqual[z, 1.16e-169], N[(t * N[(t$95$4 + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-147], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.36e+18], N[(y2 * N[(N[(N[(k * t$95$5), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+97], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+219], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * t$95$3), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := y5 \cdot \left(a \cdot y2\right)\\
t_3 := c \cdot i - a \cdot b\\
t_4 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_5 := y1 \cdot y4 - y0 \cdot y5\\
t_6 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot t\_5}{y}\right)\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+223}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq -8 \cdot 10^{+88}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{-5}:\\
\;\;\;\;t \cdot \left(\left(z \cdot t\_3 + b \cdot \left(j \cdot y4\right)\right) + t\_2\right)\\
\mathbf{elif}\;z \leq -4.45 \cdot 10^{-116}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-228}:\\
\;\;\;\;t \cdot \left(t\_4 + y2 \cdot t\_1\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-222}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;z \leq 1.16 \cdot 10^{-169}:\\
\;\;\;\;t \cdot \left(t\_4 + t\_2\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-147}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 1.36 \cdot 10^{+18}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_5 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_1\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+97}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+219}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot t\_3 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if z < -1.24999999999999996e223Initial program 27.3%
Taylor expanded in c around inf 37.2%
Taylor expanded in y3 around -inf 81.8%
mul-1-neg81.8%
Simplified81.8%
if -1.24999999999999996e223 < z < -7.99999999999999968e88 or -6.9999999999999995e-228 < z < 3.50000000000000024e-222Initial program 19.0%
Taylor expanded in y around inf 29.5%
Taylor expanded in y3 around inf 52.4%
Taylor expanded in y around inf 60.8%
if -7.99999999999999968e88 < z < -1.95e-5Initial program 25.0%
Taylor expanded in t around inf 66.7%
Taylor expanded in c around 0 66.7%
mul-1-neg66.7%
associate-*r*75.0%
Simplified75.0%
Taylor expanded in b around inf 75.1%
if -1.95e-5 < z < -4.45000000000000016e-116Initial program 21.4%
Taylor expanded in i around -inf 61.2%
if -4.45000000000000016e-116 < z < -6.9999999999999995e-228Initial program 31.7%
Taylor expanded in t around inf 48.9%
Taylor expanded in z around 0 54.2%
if 3.50000000000000024e-222 < z < 1.16e-169Initial program 45.5%
Taylor expanded in t around inf 36.9%
Taylor expanded in z around 0 46.1%
Taylor expanded in c around 0 64.3%
mul-1-neg55.1%
associate-*r*55.1%
Simplified64.3%
if 1.16e-169 < z < 8.5000000000000002e-147Initial program 0.0%
Taylor expanded in c around inf 66.7%
Taylor expanded in y4 around inf 83.5%
if 8.5000000000000002e-147 < z < 1.36e18Initial program 25.2%
Taylor expanded in y2 around inf 52.9%
if 1.36e18 < z < 1.05000000000000006e97Initial program 10.1%
Taylor expanded in t around inf 48.4%
Taylor expanded in c around 0 39.4%
mul-1-neg39.4%
associate-*r*44.1%
Simplified44.1%
Taylor expanded in i around -inf 57.6%
mul-1-neg57.6%
*-commutative57.6%
distribute-rgt-neg-in57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
*-commutative57.6%
Simplified57.6%
if 1.05000000000000006e97 < z < 8.5999999999999994e219Initial program 32.2%
Taylor expanded in i around -inf 62.4%
Taylor expanded in z around -inf 77.2%
associate-*r*77.2%
neg-mul-177.2%
Simplified77.2%
if 8.5999999999999994e219 < z Initial program 37.9%
Taylor expanded in z around -inf 93.8%
Final simplification65.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y
(+
(* y3 (- (* c y4) (* a y5)))
(/ (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))) y))))
(t_2 (* y2 (- (* a y5) (* c y4))))
(t_3 (- (* z t) (* x y)))
(t_4 (- (* c i) (* a b)))
(t_5 (* z t_4))
(t_6 (* j (- (* b y4) (* i y5))))
(t_7 (* y0 (- (* x y2) (* z y3)))))
(if (<= z -3.3e+228)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= z -2.9e+90)
t_1
(if (<= z -0.00038)
(* t (+ (+ t_5 (* b (* j y4))) (* y5 (* a y2))))
(if (<= z -1.75e-116)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c t_3))))
(if (<= z -1.3e-232)
(* t (+ t_6 t_2))
(if (<= z 1.25e-222)
t_1
(if (<= z 1.55e-18)
(* c (+ (+ (* i t_3) t_7) (* y4 (- (* y y3) (* t y2)))))
(if (<= z 3e+77)
(* t (+ (+ t_6 t_5) t_2))
(if (<= z 3.5e+91)
(* c t_7)
(if (<= z 1.02e+220)
(* i (* z (- (* t c) (* k y1))))
(*
z
(+
(* k (- (* b y0) (* i y1)))
(+
(* t t_4)
(* y3 (- (* a y1) (* c y0))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y));
double t_2 = y2 * ((a * y5) - (c * y4));
double t_3 = (z * t) - (x * y);
double t_4 = (c * i) - (a * b);
double t_5 = z * t_4;
double t_6 = j * ((b * y4) - (i * y5));
double t_7 = y0 * ((x * y2) - (z * y3));
double tmp;
if (z <= -3.3e+228) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -2.9e+90) {
tmp = t_1;
} else if (z <= -0.00038) {
tmp = t * ((t_5 + (b * (j * y4))) + (y5 * (a * y2)));
} else if (z <= -1.75e-116) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)));
} else if (z <= -1.3e-232) {
tmp = t * (t_6 + t_2);
} else if (z <= 1.25e-222) {
tmp = t_1;
} else if (z <= 1.55e-18) {
tmp = c * (((i * t_3) + t_7) + (y4 * ((y * y3) - (t * y2))));
} else if (z <= 3e+77) {
tmp = t * ((t_6 + t_5) + t_2);
} else if (z <= 3.5e+91) {
tmp = c * t_7;
} else if (z <= 1.02e+220) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_4) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y))
t_2 = y2 * ((a * y5) - (c * y4))
t_3 = (z * t) - (x * y)
t_4 = (c * i) - (a * b)
t_5 = z * t_4
t_6 = j * ((b * y4) - (i * y5))
t_7 = y0 * ((x * y2) - (z * y3))
if (z <= (-3.3d+228)) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (z <= (-2.9d+90)) then
tmp = t_1
else if (z <= (-0.00038d0)) then
tmp = t * ((t_5 + (b * (j * y4))) + (y5 * (a * y2)))
else if (z <= (-1.75d-116)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)))
else if (z <= (-1.3d-232)) then
tmp = t * (t_6 + t_2)
else if (z <= 1.25d-222) then
tmp = t_1
else if (z <= 1.55d-18) then
tmp = c * (((i * t_3) + t_7) + (y4 * ((y * y3) - (t * y2))))
else if (z <= 3d+77) then
tmp = t * ((t_6 + t_5) + t_2)
else if (z <= 3.5d+91) then
tmp = c * t_7
else if (z <= 1.02d+220) then
tmp = i * (z * ((t * c) - (k * y1)))
else
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_4) + (y3 * ((a * y1) - (c * y0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y));
double t_2 = y2 * ((a * y5) - (c * y4));
double t_3 = (z * t) - (x * y);
double t_4 = (c * i) - (a * b);
double t_5 = z * t_4;
double t_6 = j * ((b * y4) - (i * y5));
double t_7 = y0 * ((x * y2) - (z * y3));
double tmp;
if (z <= -3.3e+228) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -2.9e+90) {
tmp = t_1;
} else if (z <= -0.00038) {
tmp = t * ((t_5 + (b * (j * y4))) + (y5 * (a * y2)));
} else if (z <= -1.75e-116) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3)));
} else if (z <= -1.3e-232) {
tmp = t * (t_6 + t_2);
} else if (z <= 1.25e-222) {
tmp = t_1;
} else if (z <= 1.55e-18) {
tmp = c * (((i * t_3) + t_7) + (y4 * ((y * y3) - (t * y2))));
} else if (z <= 3e+77) {
tmp = t * ((t_6 + t_5) + t_2);
} else if (z <= 3.5e+91) {
tmp = c * t_7;
} else if (z <= 1.02e+220) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_4) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y)) t_2 = y2 * ((a * y5) - (c * y4)) t_3 = (z * t) - (x * y) t_4 = (c * i) - (a * b) t_5 = z * t_4 t_6 = j * ((b * y4) - (i * y5)) t_7 = y0 * ((x * y2) - (z * y3)) tmp = 0 if z <= -3.3e+228: tmp = c * (y3 * ((y * y4) - (z * y0))) elif z <= -2.9e+90: tmp = t_1 elif z <= -0.00038: tmp = t * ((t_5 + (b * (j * y4))) + (y5 * (a * y2))) elif z <= -1.75e-116: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3))) elif z <= -1.3e-232: tmp = t * (t_6 + t_2) elif z <= 1.25e-222: tmp = t_1 elif z <= 1.55e-18: tmp = c * (((i * t_3) + t_7) + (y4 * ((y * y3) - (t * y2)))) elif z <= 3e+77: tmp = t * ((t_6 + t_5) + t_2) elif z <= 3.5e+91: tmp = c * t_7 elif z <= 1.02e+220: tmp = i * (z * ((t * c) - (k * y1))) else: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_4) + (y3 * ((a * y1) - (c * y0))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) / y))) t_2 = Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))) t_3 = Float64(Float64(z * t) - Float64(x * y)) t_4 = Float64(Float64(c * i) - Float64(a * b)) t_5 = Float64(z * t_4) t_6 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) t_7 = Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) tmp = 0.0 if (z <= -3.3e+228) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (z <= -2.9e+90) tmp = t_1; elseif (z <= -0.00038) tmp = Float64(t * Float64(Float64(t_5 + Float64(b * Float64(j * y4))) + Float64(y5 * Float64(a * y2)))); elseif (z <= -1.75e-116) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * t_3)))); elseif (z <= -1.3e-232) tmp = Float64(t * Float64(t_6 + t_2)); elseif (z <= 1.25e-222) tmp = t_1; elseif (z <= 1.55e-18) tmp = Float64(c * Float64(Float64(Float64(i * t_3) + t_7) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (z <= 3e+77) tmp = Float64(t * Float64(Float64(t_6 + t_5) + t_2)); elseif (z <= 3.5e+91) tmp = Float64(c * t_7); elseif (z <= 1.02e+220) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); else tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * t_4) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y)); t_2 = y2 * ((a * y5) - (c * y4)); t_3 = (z * t) - (x * y); t_4 = (c * i) - (a * b); t_5 = z * t_4; t_6 = j * ((b * y4) - (i * y5)); t_7 = y0 * ((x * y2) - (z * y3)); tmp = 0.0; if (z <= -3.3e+228) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (z <= -2.9e+90) tmp = t_1; elseif (z <= -0.00038) tmp = t * ((t_5 + (b * (j * y4))) + (y5 * (a * y2))); elseif (z <= -1.75e-116) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_3))); elseif (z <= -1.3e-232) tmp = t * (t_6 + t_2); elseif (z <= 1.25e-222) tmp = t_1; elseif (z <= 1.55e-18) tmp = c * (((i * t_3) + t_7) + (y4 * ((y * y3) - (t * y2)))); elseif (z <= 3e+77) tmp = t * ((t_6 + t_5) + t_2); elseif (z <= 3.5e+91) tmp = c * t_7; elseif (z <= 1.02e+220) tmp = i * (z * ((t * c) - (k * y1))); else tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_4) + (y3 * ((a * y1) - (c * y0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(z * t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+228], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.9e+90], t$95$1, If[LessEqual[z, -0.00038], N[(t * N[(N[(t$95$5 + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.75e-116], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e-232], N[(t * N[(t$95$6 + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-222], t$95$1, If[LessEqual[z, 1.55e-18], N[(c * N[(N[(N[(i * t$95$3), $MachinePrecision] + t$95$7), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+77], N[(t * N[(N[(t$95$6 + t$95$5), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+91], N[(c * t$95$7), $MachinePrecision], If[LessEqual[z, 1.02e+220], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * t$95$4), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{y}\right)\\
t_2 := y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\\
t_3 := z \cdot t - x \cdot y\\
t_4 := c \cdot i - a \cdot b\\
t_5 := z \cdot t\_4\\
t_6 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_7 := y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+228}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -0.00038:\\
\;\;\;\;t \cdot \left(\left(t\_5 + b \cdot \left(j \cdot y4\right)\right) + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-116}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot t\_3\right)\right)\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-232}:\\
\;\;\;\;t \cdot \left(t\_6 + t\_2\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-222}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-18}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\_3 + t\_7\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+77}:\\
\;\;\;\;t \cdot \left(\left(t\_6 + t\_5\right) + t\_2\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+91}:\\
\;\;\;\;c \cdot t\_7\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{+220}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot t\_4 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if z < -3.30000000000000005e228Initial program 27.3%
Taylor expanded in c around inf 37.2%
Taylor expanded in y3 around -inf 81.8%
mul-1-neg81.8%
Simplified81.8%
if -3.30000000000000005e228 < z < -2.9000000000000001e90 or -1.29999999999999998e-232 < z < 1.25000000000000002e-222Initial program 19.0%
Taylor expanded in y around inf 29.5%
Taylor expanded in y3 around inf 52.4%
Taylor expanded in y around inf 60.8%
if -2.9000000000000001e90 < z < -3.8000000000000002e-4Initial program 25.0%
Taylor expanded in t around inf 66.7%
Taylor expanded in c around 0 66.7%
mul-1-neg66.7%
associate-*r*75.0%
Simplified75.0%
Taylor expanded in b around inf 75.1%
if -3.8000000000000002e-4 < z < -1.74999999999999992e-116Initial program 21.4%
Taylor expanded in i around -inf 61.2%
if -1.74999999999999992e-116 < z < -1.29999999999999998e-232Initial program 31.7%
Taylor expanded in t around inf 48.9%
Taylor expanded in z around 0 54.2%
if 1.25000000000000002e-222 < z < 1.55000000000000003e-18Initial program 28.7%
Taylor expanded in c around inf 59.3%
if 1.55000000000000003e-18 < z < 2.9999999999999998e77Initial program 13.6%
Taylor expanded in t around inf 65.8%
if 2.9999999999999998e77 < z < 3.50000000000000001e91Initial program 0.0%
Taylor expanded in c around inf 66.7%
Taylor expanded in y0 around inf 83.4%
if 3.50000000000000001e91 < z < 1.01999999999999999e220Initial program 32.2%
Taylor expanded in i around -inf 62.4%
Taylor expanded in z around -inf 77.2%
associate-*r*77.2%
neg-mul-177.2%
Simplified77.2%
if 1.01999999999999999e220 < z Initial program 37.9%
Taylor expanded in z around -inf 93.8%
Final simplification66.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (- (* b y4) (* i y5))))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (- (* a y5) (* c y4)))
(t_4 (* t (+ t_1 (* y2 t_3)))))
(if (<= t -1.16e+225)
(* b (* z (- (* k y0) (* t a))))
(if (<= t -1.2e+119)
t_4
(if (<= t -1.25e+23)
(* k (+ (* y (- (* i y5) (* b y4))) (* y2 t_2)))
(if (<= t -9e-5)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= t -5.5e-35)
(* y2 (+ (* k t_2) (* t t_3)))
(if (<= t -1.05e-119)
(* i (* z (- (* t c) (* k y1))))
(if (<= t -8e-309)
t_4
(if (<= t 4.2e+15)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= t 1.8e+79)
(* a (+ (* (* x y) b) (* y5 (- (* t y2) (* y y3)))))
(if (<= t 1.02e+105)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= t 2.7e+199)
t_4
(if (<= t 2.5e+225)
(* c (* i (* z t)))
(* t (+ t_1 (* y5 (* a 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 = j * ((b * y4) - (i * y5));
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (a * y5) - (c * y4);
double t_4 = t * (t_1 + (y2 * t_3));
double tmp;
if (t <= -1.16e+225) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (t <= -1.2e+119) {
tmp = t_4;
} else if (t <= -1.25e+23) {
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * t_2));
} else if (t <= -9e-5) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (t <= -5.5e-35) {
tmp = y2 * ((k * t_2) + (t * t_3));
} else if (t <= -1.05e-119) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (t <= -8e-309) {
tmp = t_4;
} else if (t <= 4.2e+15) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (t <= 1.8e+79) {
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))));
} else if (t <= 1.02e+105) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= 2.7e+199) {
tmp = t_4;
} else if (t <= 2.5e+225) {
tmp = c * (i * (z * t));
} else {
tmp = t * (t_1 + (y5 * (a * 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) :: t_4
real(8) :: tmp
t_1 = j * ((b * y4) - (i * y5))
t_2 = (y1 * y4) - (y0 * y5)
t_3 = (a * y5) - (c * y4)
t_4 = t * (t_1 + (y2 * t_3))
if (t <= (-1.16d+225)) then
tmp = b * (z * ((k * y0) - (t * a)))
else if (t <= (-1.2d+119)) then
tmp = t_4
else if (t <= (-1.25d+23)) then
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * t_2))
else if (t <= (-9d-5)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (t <= (-5.5d-35)) then
tmp = y2 * ((k * t_2) + (t * t_3))
else if (t <= (-1.05d-119)) then
tmp = i * (z * ((t * c) - (k * y1)))
else if (t <= (-8d-309)) then
tmp = t_4
else if (t <= 4.2d+15) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (t <= 1.8d+79) then
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))))
else if (t <= 1.02d+105) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (t <= 2.7d+199) then
tmp = t_4
else if (t <= 2.5d+225) then
tmp = c * (i * (z * t))
else
tmp = t * (t_1 + (y5 * (a * 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 = j * ((b * y4) - (i * y5));
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (a * y5) - (c * y4);
double t_4 = t * (t_1 + (y2 * t_3));
double tmp;
if (t <= -1.16e+225) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (t <= -1.2e+119) {
tmp = t_4;
} else if (t <= -1.25e+23) {
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * t_2));
} else if (t <= -9e-5) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (t <= -5.5e-35) {
tmp = y2 * ((k * t_2) + (t * t_3));
} else if (t <= -1.05e-119) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (t <= -8e-309) {
tmp = t_4;
} else if (t <= 4.2e+15) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (t <= 1.8e+79) {
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))));
} else if (t <= 1.02e+105) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= 2.7e+199) {
tmp = t_4;
} else if (t <= 2.5e+225) {
tmp = c * (i * (z * t));
} else {
tmp = t * (t_1 + (y5 * (a * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * ((b * y4) - (i * y5)) t_2 = (y1 * y4) - (y0 * y5) t_3 = (a * y5) - (c * y4) t_4 = t * (t_1 + (y2 * t_3)) tmp = 0 if t <= -1.16e+225: tmp = b * (z * ((k * y0) - (t * a))) elif t <= -1.2e+119: tmp = t_4 elif t <= -1.25e+23: tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * t_2)) elif t <= -9e-5: tmp = c * (y2 * ((x * y0) - (t * y4))) elif t <= -5.5e-35: tmp = y2 * ((k * t_2) + (t * t_3)) elif t <= -1.05e-119: tmp = i * (z * ((t * c) - (k * y1))) elif t <= -8e-309: tmp = t_4 elif t <= 4.2e+15: tmp = c * (y * ((y3 * y4) - (x * i))) elif t <= 1.8e+79: tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3)))) elif t <= 1.02e+105: tmp = c * (y4 * ((y * y3) - (t * y2))) elif t <= 2.7e+199: tmp = t_4 elif t <= 2.5e+225: tmp = c * (i * (z * t)) else: tmp = t * (t_1 + (y5 * (a * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(Float64(a * y5) - Float64(c * y4)) t_4 = Float64(t * Float64(t_1 + Float64(y2 * t_3))) tmp = 0.0 if (t <= -1.16e+225) tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a)))); elseif (t <= -1.2e+119) tmp = t_4; elseif (t <= -1.25e+23) tmp = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * t_2))); elseif (t <= -9e-5) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (t <= -5.5e-35) tmp = Float64(y2 * Float64(Float64(k * t_2) + Float64(t * t_3))); elseif (t <= -1.05e-119) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); elseif (t <= -8e-309) tmp = t_4; elseif (t <= 4.2e+15) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (t <= 1.8e+79) tmp = Float64(a * Float64(Float64(Float64(x * y) * b) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (t <= 1.02e+105) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (t <= 2.7e+199) tmp = t_4; elseif (t <= 2.5e+225) tmp = Float64(c * Float64(i * Float64(z * t))); else tmp = Float64(t * Float64(t_1 + Float64(y5 * Float64(a * 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 = j * ((b * y4) - (i * y5)); t_2 = (y1 * y4) - (y0 * y5); t_3 = (a * y5) - (c * y4); t_4 = t * (t_1 + (y2 * t_3)); tmp = 0.0; if (t <= -1.16e+225) tmp = b * (z * ((k * y0) - (t * a))); elseif (t <= -1.2e+119) tmp = t_4; elseif (t <= -1.25e+23) tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * t_2)); elseif (t <= -9e-5) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (t <= -5.5e-35) tmp = y2 * ((k * t_2) + (t * t_3)); elseif (t <= -1.05e-119) tmp = i * (z * ((t * c) - (k * y1))); elseif (t <= -8e-309) tmp = t_4; elseif (t <= 4.2e+15) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (t <= 1.8e+79) tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3)))); elseif (t <= 1.02e+105) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (t <= 2.7e+199) tmp = t_4; elseif (t <= 2.5e+225) tmp = c * (i * (z * t)); else tmp = t * (t_1 + (y5 * (a * 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[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t * N[(t$95$1 + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.16e+225], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.2e+119], t$95$4, If[LessEqual[t, -1.25e+23], N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e-5], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.5e-35], N[(y2 * N[(N[(k * t$95$2), $MachinePrecision] + N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.05e-119], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8e-309], t$95$4, If[LessEqual[t, 4.2e+15], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+79], N[(a * N[(N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+105], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+199], t$95$4, If[LessEqual[t, 2.5e+225], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$1 + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := a \cdot y5 - c \cdot y4\\
t_4 := t \cdot \left(t\_1 + y2 \cdot t\_3\right)\\
\mathbf{if}\;t \leq -1.16 \cdot 10^{+225}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{+119}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{+23}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot t\_2\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-5}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{-35}:\\
\;\;\;\;y2 \cdot \left(k \cdot t\_2 + t \cdot t\_3\right)\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-119}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-309}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+15}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+79}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+199}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+225}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_1 + y5 \cdot \left(a \cdot y2\right)\right)\\
\end{array}
\end{array}
if t < -1.15999999999999996e225Initial program 28.6%
Taylor expanded in b around inf 57.2%
Taylor expanded in z around -inf 78.7%
mul-1-neg78.7%
Simplified78.7%
if -1.15999999999999996e225 < t < -1.2e119 or -1.05e-119 < t < -8.0000000000000003e-309 or 1.02e105 < t < 2.6999999999999999e199Initial program 25.4%
Taylor expanded in t around inf 64.6%
Taylor expanded in z around 0 64.2%
if -1.2e119 < t < -1.25e23Initial program 10.5%
Taylor expanded in y around inf 25.2%
Taylor expanded in k around inf 65.4%
if -1.25e23 < t < -9.00000000000000057e-5Initial program 0.0%
Taylor expanded in c around inf 81.4%
Taylor expanded in y2 around inf 80.1%
if -9.00000000000000057e-5 < t < -5.4999999999999997e-35Initial program 57.1%
Taylor expanded in y around inf 57.1%
Taylor expanded in y2 around inf 58.6%
if -5.4999999999999997e-35 < t < -1.05e-119Initial program 33.7%
Taylor expanded in i around -inf 59.1%
Taylor expanded in z around -inf 67.8%
associate-*r*67.8%
neg-mul-167.8%
Simplified67.8%
if -8.0000000000000003e-309 < t < 4.2e15Initial program 28.4%
Taylor expanded in c around inf 42.9%
Taylor expanded in y around -inf 40.1%
associate-*r*40.1%
neg-mul-140.1%
Simplified40.1%
if 4.2e15 < t < 1.8e79Initial program 16.7%
Taylor expanded in y around inf 33.4%
Taylor expanded in a around inf 67.1%
associate-*r*67.1%
neg-mul-167.1%
Simplified67.1%
if 1.8e79 < t < 1.02e105Initial program 16.7%
Taylor expanded in c around inf 83.3%
Taylor expanded in y4 around inf 67.7%
if 2.6999999999999999e199 < t < 2.4999999999999999e225Initial program 33.3%
Taylor expanded in t around inf 45.4%
Taylor expanded in c around 0 45.4%
mul-1-neg45.4%
associate-*r*45.4%
Simplified45.4%
Taylor expanded in c around inf 100.0%
if 2.4999999999999999e225 < t Initial program 7.7%
Taylor expanded in t around inf 84.6%
Taylor expanded in z around 0 77.6%
Taylor expanded in c around 0 77.6%
mul-1-neg84.6%
associate-*r*84.6%
Simplified77.8%
Final simplification61.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (- (* i y5) (* b y4))))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (* (- (* k y2) (* j y3)) t_2))
(t_4 (* y (+ (* y3 (- (* c y4) (* a y5))) (/ t_3 y)))))
(if (<= y -5.3e+157)
(* i (* y5 (- (* y k) (* t j))))
(if (<= y -4.5e+27)
t_4
(if (<= y -4.8e-67)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y -7e-218)
t_4
(if (<= y 2.85e-276)
(* i (* z (- (* t c) (* k y1))))
(if (<= y 1.95e-165)
(*
t
(+ (* j (- (* b y4) (* i y5))) (* y2 (- (* a y5) (* c y4)))))
(if (<= y 1.05e-121)
(+ t_3 (* k t_1))
(if (<= y 1.02e-27)
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* b (* j y4)))
(* y5 (* a y2))))
(if (<= y 4.4e+16)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= y 6.6e+72)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= y 9.2e+170)
(* k (+ t_1 (* y2 t_2)))
(* c (* y (- (* y3 y4) (* x i)))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((i * y5) - (b * y4));
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = ((k * y2) - (j * y3)) * t_2;
double t_4 = y * ((y3 * ((c * y4) - (a * y5))) + (t_3 / y));
double tmp;
if (y <= -5.3e+157) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y <= -4.5e+27) {
tmp = t_4;
} else if (y <= -4.8e-67) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -7e-218) {
tmp = t_4;
} else if (y <= 2.85e-276) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (y <= 1.95e-165) {
tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))));
} else if (y <= 1.05e-121) {
tmp = t_3 + (k * t_1);
} else if (y <= 1.02e-27) {
tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2)));
} else if (y <= 4.4e+16) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y <= 6.6e+72) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (y <= 9.2e+170) {
tmp = k * (t_1 + (y2 * t_2));
} else {
tmp = c * (y * ((y3 * y4) - (x * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = y * ((i * y5) - (b * y4))
t_2 = (y1 * y4) - (y0 * y5)
t_3 = ((k * y2) - (j * y3)) * t_2
t_4 = y * ((y3 * ((c * y4) - (a * y5))) + (t_3 / y))
if (y <= (-5.3d+157)) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (y <= (-4.5d+27)) then
tmp = t_4
else if (y <= (-4.8d-67)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= (-7d-218)) then
tmp = t_4
else if (y <= 2.85d-276) then
tmp = i * (z * ((t * c) - (k * y1)))
else if (y <= 1.95d-165) then
tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))))
else if (y <= 1.05d-121) then
tmp = t_3 + (k * t_1)
else if (y <= 1.02d-27) then
tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2)))
else if (y <= 4.4d+16) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (y <= 6.6d+72) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (y <= 9.2d+170) then
tmp = k * (t_1 + (y2 * t_2))
else
tmp = c * (y * ((y3 * y4) - (x * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((i * y5) - (b * y4));
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = ((k * y2) - (j * y3)) * t_2;
double t_4 = y * ((y3 * ((c * y4) - (a * y5))) + (t_3 / y));
double tmp;
if (y <= -5.3e+157) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y <= -4.5e+27) {
tmp = t_4;
} else if (y <= -4.8e-67) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -7e-218) {
tmp = t_4;
} else if (y <= 2.85e-276) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (y <= 1.95e-165) {
tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))));
} else if (y <= 1.05e-121) {
tmp = t_3 + (k * t_1);
} else if (y <= 1.02e-27) {
tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2)));
} else if (y <= 4.4e+16) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y <= 6.6e+72) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (y <= 9.2e+170) {
tmp = k * (t_1 + (y2 * t_2));
} else {
tmp = c * (y * ((y3 * y4) - (x * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * ((i * y5) - (b * y4)) t_2 = (y1 * y4) - (y0 * y5) t_3 = ((k * y2) - (j * y3)) * t_2 t_4 = y * ((y3 * ((c * y4) - (a * y5))) + (t_3 / y)) tmp = 0 if y <= -5.3e+157: tmp = i * (y5 * ((y * k) - (t * j))) elif y <= -4.5e+27: tmp = t_4 elif y <= -4.8e-67: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= -7e-218: tmp = t_4 elif y <= 2.85e-276: tmp = i * (z * ((t * c) - (k * y1))) elif y <= 1.95e-165: tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))) elif y <= 1.05e-121: tmp = t_3 + (k * t_1) elif y <= 1.02e-27: tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2))) elif y <= 4.4e+16: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif y <= 6.6e+72: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif y <= 9.2e+170: tmp = k * (t_1 + (y2 * t_2)) else: tmp = c * (y * ((y3 * y4) - (x * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_2) t_4 = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(t_3 / y))) tmp = 0.0 if (y <= -5.3e+157) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (y <= -4.5e+27) tmp = t_4; elseif (y <= -4.8e-67) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= -7e-218) tmp = t_4; elseif (y <= 2.85e-276) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); elseif (y <= 1.95e-165) tmp = Float64(t * Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y <= 1.05e-121) tmp = Float64(t_3 + Float64(k * t_1)); elseif (y <= 1.02e-27) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(b * Float64(j * y4))) + Float64(y5 * Float64(a * y2)))); elseif (y <= 4.4e+16) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y <= 6.6e+72) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (y <= 9.2e+170) tmp = Float64(k * Float64(t_1 + Float64(y2 * t_2))); else tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * ((i * y5) - (b * y4)); t_2 = (y1 * y4) - (y0 * y5); t_3 = ((k * y2) - (j * y3)) * t_2; t_4 = y * ((y3 * ((c * y4) - (a * y5))) + (t_3 / y)); tmp = 0.0; if (y <= -5.3e+157) tmp = i * (y5 * ((y * k) - (t * j))); elseif (y <= -4.5e+27) tmp = t_4; elseif (y <= -4.8e-67) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= -7e-218) tmp = t_4; elseif (y <= 2.85e-276) tmp = i * (z * ((t * c) - (k * y1))); elseif (y <= 1.95e-165) tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))); elseif (y <= 1.05e-121) tmp = t_3 + (k * t_1); elseif (y <= 1.02e-27) tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2))); elseif (y <= 4.4e+16) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (y <= 6.6e+72) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (y <= 9.2e+170) tmp = k * (t_1 + (y2 * t_2)); else tmp = c * (y * ((y3 * y4) - (x * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.3e+157], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.5e+27], t$95$4, If[LessEqual[y, -4.8e-67], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e-218], t$95$4, If[LessEqual[y, 2.85e-276], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.95e-165], N[(t * N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e-121], N[(t$95$3 + N[(k * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.02e-27], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+16], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e+72], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e+170], N[(k * N[(t$95$1 + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot y5 - b \cdot y4\right)\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := \left(k \cdot y2 - j \cdot y3\right) \cdot t\_2\\
t_4 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) + \frac{t\_3}{y}\right)\\
\mathbf{if}\;y \leq -5.3 \cdot 10^{+157}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;y \leq -4.5 \cdot 10^{+27}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{-67}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-218}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{-276}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-165}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-121}:\\
\;\;\;\;t\_3 + k \cdot t\_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-27}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + b \cdot \left(j \cdot y4\right)\right) + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+16}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{+72}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+170}:\\
\;\;\;\;k \cdot \left(t\_1 + y2 \cdot t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -5.2999999999999998e157Initial program 16.0%
Taylor expanded in i around -inf 56.3%
Taylor expanded in y5 around inf 68.5%
if -5.2999999999999998e157 < y < -4.4999999999999999e27 or -4.8e-67 < y < -7e-218Initial program 18.1%
Taylor expanded in y around inf 34.2%
Taylor expanded in y3 around inf 58.4%
Taylor expanded in y around inf 64.2%
if -4.4999999999999999e27 < y < -4.8e-67Initial program 39.1%
Taylor expanded in t around inf 44.9%
Taylor expanded in c around inf 48.7%
if -7e-218 < y < 2.84999999999999987e-276Initial program 27.3%
Taylor expanded in i around -inf 64.1%
Taylor expanded in z around -inf 60.4%
associate-*r*60.4%
neg-mul-160.4%
Simplified60.4%
if 2.84999999999999987e-276 < y < 1.9499999999999999e-165Initial program 36.3%
Taylor expanded in t around inf 64.4%
Taylor expanded in z around 0 64.6%
if 1.9499999999999999e-165 < y < 1.0499999999999999e-121Initial program 42.9%
Taylor expanded in y around inf 85.7%
Taylor expanded in k around inf 86.8%
mul-1-neg86.8%
Simplified86.8%
if 1.0499999999999999e-121 < y < 1.02000000000000002e-27Initial program 27.6%
Taylor expanded in t around inf 74.8%
Taylor expanded in c around 0 74.8%
mul-1-neg74.8%
associate-*r*70.3%
Simplified70.3%
Taylor expanded in b around inf 70.8%
if 1.02000000000000002e-27 < y < 4.4e16Initial program 18.8%
Taylor expanded in y around inf 25.0%
Taylor expanded in y0 around inf 69.2%
if 4.4e16 < y < 6.6e72Initial program 30.8%
Taylor expanded in t around inf 39.1%
Taylor expanded in y2 around inf 54.8%
Taylor expanded in c around inf 62.3%
associate-/l*69.9%
Simplified69.9%
if 6.6e72 < y < 9.2000000000000003e170Initial program 18.4%
Taylor expanded in y around inf 36.6%
Taylor expanded in k around inf 59.2%
if 9.2000000000000003e170 < y Initial program 19.4%
Taylor expanded in c around inf 36.3%
Taylor expanded in y around -inf 56.3%
associate-*r*56.3%
neg-mul-156.3%
Simplified56.3%
Final simplification63.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5)))
(t_2 (* j t_1))
(t_3 (* t (+ t_2 (* y2 (- (* a y5) (* c y4)))))))
(if (<= t -1.1e+225)
(* b (* z (- (* k y0) (* t a))))
(if (<= t -3.3e+106)
t_3
(if (<= t -7.6e+23)
(* j (* t t_1))
(if (<= t -4.8e-8)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= t -1.75e-98)
(* (* i y1) (* z (- (* x (/ j z)) k)))
(if (<= t -4.5e-309)
t_3
(if (<= t 2.7e+16)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= t 1.5e+76)
(* a (+ (* (* x y) b) (* y5 (- (* t y2) (* y y3)))))
(if (<= t 9.5e+104)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= t 3.4e+199)
t_3
(if (<= t 5.2e+222)
(* c (* i (* z t)))
(* t (+ t_2 (* y5 (* a 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 * y4) - (i * y5);
double t_2 = j * t_1;
double t_3 = t * (t_2 + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (t <= -1.1e+225) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (t <= -3.3e+106) {
tmp = t_3;
} else if (t <= -7.6e+23) {
tmp = j * (t * t_1);
} else if (t <= -4.8e-8) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (t <= -1.75e-98) {
tmp = (i * y1) * (z * ((x * (j / z)) - k));
} else if (t <= -4.5e-309) {
tmp = t_3;
} else if (t <= 2.7e+16) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (t <= 1.5e+76) {
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))));
} else if (t <= 9.5e+104) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= 3.4e+199) {
tmp = t_3;
} else if (t <= 5.2e+222) {
tmp = c * (i * (z * t));
} else {
tmp = t * (t_2 + (y5 * (a * 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 = (b * y4) - (i * y5)
t_2 = j * t_1
t_3 = t * (t_2 + (y2 * ((a * y5) - (c * y4))))
if (t <= (-1.1d+225)) then
tmp = b * (z * ((k * y0) - (t * a)))
else if (t <= (-3.3d+106)) then
tmp = t_3
else if (t <= (-7.6d+23)) then
tmp = j * (t * t_1)
else if (t <= (-4.8d-8)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (t <= (-1.75d-98)) then
tmp = (i * y1) * (z * ((x * (j / z)) - k))
else if (t <= (-4.5d-309)) then
tmp = t_3
else if (t <= 2.7d+16) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (t <= 1.5d+76) then
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))))
else if (t <= 9.5d+104) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (t <= 3.4d+199) then
tmp = t_3
else if (t <= 5.2d+222) then
tmp = c * (i * (z * t))
else
tmp = t * (t_2 + (y5 * (a * 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 * y4) - (i * y5);
double t_2 = j * t_1;
double t_3 = t * (t_2 + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (t <= -1.1e+225) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (t <= -3.3e+106) {
tmp = t_3;
} else if (t <= -7.6e+23) {
tmp = j * (t * t_1);
} else if (t <= -4.8e-8) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (t <= -1.75e-98) {
tmp = (i * y1) * (z * ((x * (j / z)) - k));
} else if (t <= -4.5e-309) {
tmp = t_3;
} else if (t <= 2.7e+16) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (t <= 1.5e+76) {
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))));
} else if (t <= 9.5e+104) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= 3.4e+199) {
tmp = t_3;
} else if (t <= 5.2e+222) {
tmp = c * (i * (z * t));
} else {
tmp = t * (t_2 + (y5 * (a * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = j * t_1 t_3 = t * (t_2 + (y2 * ((a * y5) - (c * y4)))) tmp = 0 if t <= -1.1e+225: tmp = b * (z * ((k * y0) - (t * a))) elif t <= -3.3e+106: tmp = t_3 elif t <= -7.6e+23: tmp = j * (t * t_1) elif t <= -4.8e-8: tmp = c * (y2 * ((x * y0) - (t * y4))) elif t <= -1.75e-98: tmp = (i * y1) * (z * ((x * (j / z)) - k)) elif t <= -4.5e-309: tmp = t_3 elif t <= 2.7e+16: tmp = c * (y * ((y3 * y4) - (x * i))) elif t <= 1.5e+76: tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3)))) elif t <= 9.5e+104: tmp = c * (y4 * ((y * y3) - (t * y2))) elif t <= 3.4e+199: tmp = t_3 elif t <= 5.2e+222: tmp = c * (i * (z * t)) else: tmp = t * (t_2 + (y5 * (a * 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 * y4) - Float64(i * y5)) t_2 = Float64(j * t_1) t_3 = Float64(t * Float64(t_2 + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (t <= -1.1e+225) tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a)))); elseif (t <= -3.3e+106) tmp = t_3; elseif (t <= -7.6e+23) tmp = Float64(j * Float64(t * t_1)); elseif (t <= -4.8e-8) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (t <= -1.75e-98) tmp = Float64(Float64(i * y1) * Float64(z * Float64(Float64(x * Float64(j / z)) - k))); elseif (t <= -4.5e-309) tmp = t_3; elseif (t <= 2.7e+16) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (t <= 1.5e+76) tmp = Float64(a * Float64(Float64(Float64(x * y) * b) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (t <= 9.5e+104) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (t <= 3.4e+199) tmp = t_3; elseif (t <= 5.2e+222) tmp = Float64(c * Float64(i * Float64(z * t))); else tmp = Float64(t * Float64(t_2 + Float64(y5 * Float64(a * 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 * y4) - (i * y5); t_2 = j * t_1; t_3 = t * (t_2 + (y2 * ((a * y5) - (c * y4)))); tmp = 0.0; if (t <= -1.1e+225) tmp = b * (z * ((k * y0) - (t * a))); elseif (t <= -3.3e+106) tmp = t_3; elseif (t <= -7.6e+23) tmp = j * (t * t_1); elseif (t <= -4.8e-8) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (t <= -1.75e-98) tmp = (i * y1) * (z * ((x * (j / z)) - k)); elseif (t <= -4.5e-309) tmp = t_3; elseif (t <= 2.7e+16) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (t <= 1.5e+76) tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3)))); elseif (t <= 9.5e+104) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (t <= 3.4e+199) tmp = t_3; elseif (t <= 5.2e+222) tmp = c * (i * (z * t)); else tmp = t * (t_2 + (y5 * (a * 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 * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(t$95$2 + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e+225], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.3e+106], t$95$3, If[LessEqual[t, -7.6e+23], N[(j * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.8e-8], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.75e-98], N[(N[(i * y1), $MachinePrecision] * N[(z * N[(N[(x * N[(j / z), $MachinePrecision]), $MachinePrecision] - k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.5e-309], t$95$3, If[LessEqual[t, 2.7e+16], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+76], N[(a * N[(N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e+104], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+199], t$95$3, If[LessEqual[t, 5.2e+222], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$2 + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := j \cdot t\_1\\
t_3 := t \cdot \left(t\_2 + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{+225}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{+106}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -7.6 \cdot 10^{+23}:\\
\;\;\;\;j \cdot \left(t \cdot t\_1\right)\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-8}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-98}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \left(z \cdot \left(x \cdot \frac{j}{z} - k\right)\right)\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{-309}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+16}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+104}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+199}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+222}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_2 + y5 \cdot \left(a \cdot y2\right)\right)\\
\end{array}
\end{array}
if t < -1.10000000000000007e225Initial program 28.6%
Taylor expanded in b around inf 57.2%
Taylor expanded in z around -inf 78.7%
mul-1-neg78.7%
Simplified78.7%
if -1.10000000000000007e225 < t < -3.30000000000000008e106 or -1.7500000000000001e-98 < t < -4.5000000000000011e-309 or 9.5e104 < t < 3.4e199Initial program 24.1%
Taylor expanded in t around inf 63.3%
Taylor expanded in z around 0 63.0%
if -3.30000000000000008e106 < t < -7.5999999999999995e23Initial program 13.1%
Taylor expanded in t around inf 31.8%
Taylor expanded in j around inf 63.2%
if -7.5999999999999995e23 < t < -4.79999999999999997e-8Initial program 0.0%
Taylor expanded in c around inf 72.9%
Taylor expanded in y2 around inf 71.9%
if -4.79999999999999997e-8 < t < -1.7500000000000001e-98Initial program 50.3%
Taylor expanded in i around -inf 51.2%
Taylor expanded in y1 around inf 45.3%
associate-*r*39.3%
Simplified39.3%
Taylor expanded in z around inf 51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
associate-/l*51.8%
Simplified51.8%
if -4.5000000000000011e-309 < t < 2.7e16Initial program 28.4%
Taylor expanded in c around inf 42.9%
Taylor expanded in y around -inf 40.1%
associate-*r*40.1%
neg-mul-140.1%
Simplified40.1%
if 2.7e16 < t < 1.4999999999999999e76Initial program 16.7%
Taylor expanded in y around inf 33.4%
Taylor expanded in a around inf 67.1%
associate-*r*67.1%
neg-mul-167.1%
Simplified67.1%
if 1.4999999999999999e76 < t < 9.5e104Initial program 16.7%
Taylor expanded in c around inf 83.3%
Taylor expanded in y4 around inf 67.7%
if 3.4e199 < t < 5.2000000000000002e222Initial program 33.3%
Taylor expanded in t around inf 45.4%
Taylor expanded in c around 0 45.4%
mul-1-neg45.4%
associate-*r*45.4%
Simplified45.4%
Taylor expanded in c around inf 100.0%
if 5.2000000000000002e222 < t Initial program 7.7%
Taylor expanded in t around inf 84.6%
Taylor expanded in z around 0 77.6%
Taylor expanded in c around 0 77.6%
mul-1-neg84.6%
associate-*r*84.6%
Simplified77.8%
Final simplification59.8%
(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 (- (* t j) (* y k)))
(t_3 (* y5 (* a y2)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (* t_1 t_4))
(t_6 (* j (- (* b y4) (* i y5)))))
(if (<= y4 -4.8e+20)
(* y4 (+ (+ (* b t_2) (* y1 t_1)) (* c (- (* y y3) (* t y2)))))
(if (<= y4 -1.1e-232)
(*
y2
(+
(+ (* k t_4) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 4e-278)
(* (* i y1) (* z (- (* x (/ j z)) k)))
(if (<= y4 2.05e-196)
(* t (+ (+ t_6 (* z (- (* c i) (* a b)))) t_3))
(if (<= y4 3.5e-60)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_2))
(* y0 (- (* z k) (* x j)))))
(if (<= y4 1400000.0)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y4 1.8e+162)
(* y (+ (* y3 (- (* c y4) (* a y5))) (/ t_5 y)))
(if (<= y4 5.8e+212)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= y4 2e+236)
(+ t_5 (* k (* y (- (* i y5) (* b y4)))))
(* t (+ t_6 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 = (k * y2) - (j * y3);
double t_2 = (t * j) - (y * k);
double t_3 = y5 * (a * y2);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = t_1 * t_4;
double t_6 = j * ((b * y4) - (i * y5));
double tmp;
if (y4 <= -4.8e+20) {
tmp = y4 * (((b * t_2) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))));
} else if (y4 <= -1.1e-232) {
tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 4e-278) {
tmp = (i * y1) * (z * ((x * (j / z)) - k));
} else if (y4 <= 2.05e-196) {
tmp = t * ((t_6 + (z * ((c * i) - (a * b)))) + t_3);
} else if (y4 <= 3.5e-60) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= 1400000.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= 1.8e+162) {
tmp = y * ((y3 * ((c * y4) - (a * y5))) + (t_5 / y));
} else if (y4 <= 5.8e+212) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (y4 <= 2e+236) {
tmp = t_5 + (k * (y * ((i * y5) - (b * y4))));
} else {
tmp = t * (t_6 + t_3);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (k * y2) - (j * y3)
t_2 = (t * j) - (y * k)
t_3 = y5 * (a * y2)
t_4 = (y1 * y4) - (y0 * y5)
t_5 = t_1 * t_4
t_6 = j * ((b * y4) - (i * y5))
if (y4 <= (-4.8d+20)) then
tmp = y4 * (((b * t_2) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))))
else if (y4 <= (-1.1d-232)) then
tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= 4d-278) then
tmp = (i * y1) * (z * ((x * (j / z)) - k))
else if (y4 <= 2.05d-196) then
tmp = t * ((t_6 + (z * ((c * i) - (a * b)))) + t_3)
else if (y4 <= 3.5d-60) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))))
else if (y4 <= 1400000.0d0) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y4 <= 1.8d+162) then
tmp = y * ((y3 * ((c * y4) - (a * y5))) + (t_5 / y))
else if (y4 <= 5.8d+212) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (y4 <= 2d+236) then
tmp = t_5 + (k * (y * ((i * y5) - (b * y4))))
else
tmp = t * (t_6 + t_3)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = (t * j) - (y * k);
double t_3 = y5 * (a * y2);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = t_1 * t_4;
double t_6 = j * ((b * y4) - (i * y5));
double tmp;
if (y4 <= -4.8e+20) {
tmp = y4 * (((b * t_2) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))));
} else if (y4 <= -1.1e-232) {
tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 4e-278) {
tmp = (i * y1) * (z * ((x * (j / z)) - k));
} else if (y4 <= 2.05e-196) {
tmp = t * ((t_6 + (z * ((c * i) - (a * b)))) + t_3);
} else if (y4 <= 3.5e-60) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= 1400000.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= 1.8e+162) {
tmp = y * ((y3 * ((c * y4) - (a * y5))) + (t_5 / y));
} else if (y4 <= 5.8e+212) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (y4 <= 2e+236) {
tmp = t_5 + (k * (y * ((i * y5) - (b * y4))));
} else {
tmp = t * (t_6 + t_3);
}
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 = (t * j) - (y * k) t_3 = y5 * (a * y2) t_4 = (y1 * y4) - (y0 * y5) t_5 = t_1 * t_4 t_6 = j * ((b * y4) - (i * y5)) tmp = 0 if y4 <= -4.8e+20: tmp = y4 * (((b * t_2) + (y1 * t_1)) + (c * ((y * y3) - (t * y2)))) elif y4 <= -1.1e-232: tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= 4e-278: tmp = (i * y1) * (z * ((x * (j / z)) - k)) elif y4 <= 2.05e-196: tmp = t * ((t_6 + (z * ((c * i) - (a * b)))) + t_3) elif y4 <= 3.5e-60: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))) elif y4 <= 1400000.0: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y4 <= 1.8e+162: tmp = y * ((y3 * ((c * y4) - (a * y5))) + (t_5 / y)) elif y4 <= 5.8e+212: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif y4 <= 2e+236: tmp = t_5 + (k * (y * ((i * y5) - (b * y4)))) else: tmp = t * (t_6 + 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(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(t * j) - Float64(y * k)) t_3 = Float64(y5 * Float64(a * y2)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(t_1 * t_4) t_6 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) tmp = 0.0 if (y4 <= -4.8e+20) tmp = Float64(y4 * Float64(Float64(Float64(b * t_2) + Float64(y1 * t_1)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y4 <= -1.1e-232) tmp = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= 4e-278) tmp = Float64(Float64(i * y1) * Float64(z * Float64(Float64(x * Float64(j / z)) - k))); elseif (y4 <= 2.05e-196) tmp = Float64(t * Float64(Float64(t_6 + Float64(z * Float64(Float64(c * i) - Float64(a * b)))) + t_3)); elseif (y4 <= 3.5e-60) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_2)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y4 <= 1400000.0) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y4 <= 1.8e+162) tmp = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(t_5 / y))); elseif (y4 <= 5.8e+212) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (y4 <= 2e+236) tmp = Float64(t_5 + Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4))))); else tmp = Float64(t * Float64(t_6 + t_3)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (k * y2) - (j * y3); t_2 = (t * j) - (y * k); t_3 = y5 * (a * y2); t_4 = (y1 * y4) - (y0 * y5); t_5 = t_1 * t_4; t_6 = j * ((b * y4) - (i * y5)); tmp = 0.0; if (y4 <= -4.8e+20) tmp = y4 * (((b * t_2) + (y1 * t_1)) + (c * ((y * y3) - (t * y2)))); elseif (y4 <= -1.1e-232) tmp = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= 4e-278) tmp = (i * y1) * (z * ((x * (j / z)) - k)); elseif (y4 <= 2.05e-196) tmp = t * ((t_6 + (z * ((c * i) - (a * b)))) + t_3); elseif (y4 <= 3.5e-60) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))); elseif (y4 <= 1400000.0) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y4 <= 1.8e+162) tmp = y * ((y3 * ((c * y4) - (a * y5))) + (t_5 / y)); elseif (y4 <= 5.8e+212) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (y4 <= 2e+236) tmp = t_5 + (k * (y * ((i * y5) - (b * y4)))); else tmp = t * (t_6 + t_3); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$1 * t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.8e+20], N[(y4 * N[(N[(N[(b * t$95$2), $MachinePrecision] + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.1e-232], N[(y2 * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4e-278], N[(N[(i * y1), $MachinePrecision] * N[(z * N[(N[(x * N[(j / z), $MachinePrecision]), $MachinePrecision] - k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.05e-196], N[(t * N[(N[(t$95$6 + N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.5e-60], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1400000.0], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.8e+162], N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$5 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.8e+212], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2e+236], N[(t$95$5 + N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$6 + t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := t \cdot j - y \cdot k\\
t_3 := y5 \cdot \left(a \cdot y2\right)\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := t\_1 \cdot t\_4\\
t_6 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
\mathbf{if}\;y4 \leq -4.8 \cdot 10^{+20}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_2 + y1 \cdot t\_1\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq -1.1 \cdot 10^{-232}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_4 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 4 \cdot 10^{-278}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \left(z \cdot \left(x \cdot \frac{j}{z} - k\right)\right)\\
\mathbf{elif}\;y4 \leq 2.05 \cdot 10^{-196}:\\
\;\;\;\;t \cdot \left(\left(t\_6 + z \cdot \left(c \cdot i - a \cdot b\right)\right) + t\_3\right)\\
\mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq 1400000:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq 1.8 \cdot 10^{+162}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) + \frac{t\_5}{y}\right)\\
\mathbf{elif}\;y4 \leq 5.8 \cdot 10^{+212}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 2 \cdot 10^{+236}:\\
\;\;\;\;t\_5 + k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_6 + t\_3\right)\\
\end{array}
\end{array}
if y4 < -4.8e20Initial program 15.6%
Taylor expanded in y4 around inf 53.8%
if -4.8e20 < y4 < -1.10000000000000001e-232Initial program 23.2%
Taylor expanded in y2 around inf 49.4%
if -1.10000000000000001e-232 < y4 < 3.99999999999999975e-278Initial program 34.5%
Taylor expanded in i around -inf 54.9%
Taylor expanded in y1 around inf 41.8%
associate-*r*41.8%
Simplified41.8%
Taylor expanded in z around inf 50.0%
mul-1-neg50.0%
unsub-neg50.0%
*-commutative50.0%
associate-/l*50.0%
Simplified50.0%
if 3.99999999999999975e-278 < y4 < 2.05000000000000011e-196Initial program 29.9%
Taylor expanded in t around inf 82.5%
Taylor expanded in c around 0 82.5%
mul-1-neg82.5%
associate-*r*82.5%
Simplified82.5%
if 2.05000000000000011e-196 < y4 < 3.49999999999999976e-60Initial program 37.5%
Taylor expanded in b around inf 58.7%
if 3.49999999999999976e-60 < y4 < 1.4e6Initial program 36.7%
Taylor expanded in c around inf 72.9%
Taylor expanded in y0 around inf 64.1%
if 1.4e6 < y4 < 1.79999999999999997e162Initial program 24.9%
Taylor expanded in y around inf 50.1%
Taylor expanded in y3 around inf 62.7%
Taylor expanded in y around inf 69.0%
if 1.79999999999999997e162 < y4 < 5.7999999999999997e212Initial program 13.3%
Taylor expanded in t around inf 60.0%
Taylor expanded in y2 around inf 53.9%
Taylor expanded in c around inf 60.3%
associate-/l*67.0%
Simplified67.0%
if 5.7999999999999997e212 < y4 < 2.00000000000000011e236Initial program 28.6%
Taylor expanded in y around inf 57.1%
Taylor expanded in k around inf 83.4%
mul-1-neg83.4%
Simplified83.4%
if 2.00000000000000011e236 < y4 Initial program 16.7%
Taylor expanded in t around inf 66.7%
Taylor expanded in z around 0 66.7%
Taylor expanded in c around 0 77.8%
mul-1-neg77.8%
associate-*r*77.8%
Simplified77.8%
Final simplification60.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y
(+
(* y3 (- (* c y4) (* a y5)))
(/ (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))) y))))
(t_2 (- (* z t) (* x y)))
(t_3 (- (* c i) (* a b))))
(if (<= z -3.3e+227)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= z -9.5e+86)
t_1
(if (<= z -1.4e-5)
(* t (+ (+ (* z t_3) (* b (* j y4))) (* y5 (* a y2))))
(if (<= z -4.5e-116)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c t_2))))
(if (<= z -4.4e-231)
(* t (+ (* j (- (* b y4) (* i y5))) (* y2 (- (* a y5) (* c y4)))))
(if (<= z 5.2e-222)
t_1
(if (<= z 2.7e+112)
(*
c
(+
(+ (* i t_2) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= z 1.08e+220)
(* i (* z (- (* t c) (* k y1))))
(*
z
(+
(* k (- (* b y0) (* i y1)))
(+ (* t t_3) (* y3 (- (* a y1) (* c y0))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y));
double t_2 = (z * t) - (x * y);
double t_3 = (c * i) - (a * b);
double tmp;
if (z <= -3.3e+227) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -9.5e+86) {
tmp = t_1;
} else if (z <= -1.4e-5) {
tmp = t * (((z * t_3) + (b * (j * y4))) + (y5 * (a * y2)));
} else if (z <= -4.5e-116) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2)));
} else if (z <= -4.4e-231) {
tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 5.2e-222) {
tmp = t_1;
} else if (z <= 2.7e+112) {
tmp = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (z <= 1.08e+220) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y))
t_2 = (z * t) - (x * y)
t_3 = (c * i) - (a * b)
if (z <= (-3.3d+227)) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (z <= (-9.5d+86)) then
tmp = t_1
else if (z <= (-1.4d-5)) then
tmp = t * (((z * t_3) + (b * (j * y4))) + (y5 * (a * y2)))
else if (z <= (-4.5d-116)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2)))
else if (z <= (-4.4d-231)) then
tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))))
else if (z <= 5.2d-222) then
tmp = t_1
else if (z <= 2.7d+112) then
tmp = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (z <= 1.08d+220) then
tmp = i * (z * ((t * c) - (k * y1)))
else
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y));
double t_2 = (z * t) - (x * y);
double t_3 = (c * i) - (a * b);
double tmp;
if (z <= -3.3e+227) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (z <= -9.5e+86) {
tmp = t_1;
} else if (z <= -1.4e-5) {
tmp = t * (((z * t_3) + (b * (j * y4))) + (y5 * (a * y2)));
} else if (z <= -4.5e-116) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2)));
} else if (z <= -4.4e-231) {
tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 5.2e-222) {
tmp = t_1;
} else if (z <= 2.7e+112) {
tmp = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (z <= 1.08e+220) {
tmp = i * (z * ((t * c) - (k * y1)));
} else {
tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y)) t_2 = (z * t) - (x * y) t_3 = (c * i) - (a * b) tmp = 0 if z <= -3.3e+227: tmp = c * (y3 * ((y * y4) - (z * y0))) elif z <= -9.5e+86: tmp = t_1 elif z <= -1.4e-5: tmp = t * (((z * t_3) + (b * (j * y4))) + (y5 * (a * y2))) elif z <= -4.5e-116: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2))) elif z <= -4.4e-231: tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))) elif z <= 5.2e-222: tmp = t_1 elif z <= 2.7e+112: tmp = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif z <= 1.08e+220: tmp = i * (z * ((t * c) - (k * y1))) else: tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) / y))) t_2 = Float64(Float64(z * t) - Float64(x * y)) t_3 = Float64(Float64(c * i) - Float64(a * b)) tmp = 0.0 if (z <= -3.3e+227) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (z <= -9.5e+86) tmp = t_1; elseif (z <= -1.4e-5) tmp = Float64(t * Float64(Float64(Float64(z * t_3) + Float64(b * Float64(j * y4))) + Float64(y5 * Float64(a * y2)))); elseif (z <= -4.5e-116) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * t_2)))); elseif (z <= -4.4e-231) tmp = Float64(t * Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (z <= 5.2e-222) tmp = t_1; elseif (z <= 2.7e+112) tmp = Float64(c * Float64(Float64(Float64(i * t_2) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (z <= 1.08e+220) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); else tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(t * t_3) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * ((y3 * ((c * y4) - (a * y5))) + ((((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) / y)); t_2 = (z * t) - (x * y); t_3 = (c * i) - (a * b); tmp = 0.0; if (z <= -3.3e+227) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (z <= -9.5e+86) tmp = t_1; elseif (z <= -1.4e-5) tmp = t * (((z * t_3) + (b * (j * y4))) + (y5 * (a * y2))); elseif (z <= -4.5e-116) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * t_2))); elseif (z <= -4.4e-231) tmp = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))); elseif (z <= 5.2e-222) tmp = t_1; elseif (z <= 2.7e+112) tmp = c * (((i * t_2) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (z <= 1.08e+220) tmp = i * (z * ((t * c) - (k * y1))); else tmp = z * ((k * ((b * y0) - (i * y1))) + ((t * t_3) + (y3 * ((a * y1) - (c * y0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+227], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9.5e+86], t$95$1, If[LessEqual[z, -1.4e-5], N[(t * N[(N[(N[(z * t$95$3), $MachinePrecision] + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.5e-116], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.4e-231], N[(t * N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-222], t$95$1, If[LessEqual[z, 2.7e+112], N[(c * N[(N[(N[(i * t$95$2), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e+220], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t * t$95$3), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right) + \frac{\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)}{y}\right)\\
t_2 := z \cdot t - x \cdot y\\
t_3 := c \cdot i - a \cdot b\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+227}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-5}:\\
\;\;\;\;t \cdot \left(\left(z \cdot t\_3 + b \cdot \left(j \cdot y4\right)\right) + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-116}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot t\_2\right)\right)\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{-231}:\\
\;\;\;\;t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-222}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+112}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\_2 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{+220}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot t\_3 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if z < -3.2999999999999999e227Initial program 27.3%
Taylor expanded in c around inf 37.2%
Taylor expanded in y3 around -inf 81.8%
mul-1-neg81.8%
Simplified81.8%
if -3.2999999999999999e227 < z < -9.50000000000000028e86 or -4.40000000000000018e-231 < z < 5.1999999999999997e-222Initial program 19.0%
Taylor expanded in y around inf 29.5%
Taylor expanded in y3 around inf 52.4%
Taylor expanded in y around inf 60.8%
if -9.50000000000000028e86 < z < -1.39999999999999998e-5Initial program 25.0%
Taylor expanded in t around inf 66.7%
Taylor expanded in c around 0 66.7%
mul-1-neg66.7%
associate-*r*75.0%
Simplified75.0%
Taylor expanded in b around inf 75.1%
if -1.39999999999999998e-5 < z < -4.50000000000000012e-116Initial program 21.4%
Taylor expanded in i around -inf 61.2%
if -4.50000000000000012e-116 < z < -4.40000000000000018e-231Initial program 31.7%
Taylor expanded in t around inf 48.9%
Taylor expanded in z around 0 54.2%
if 5.1999999999999997e-222 < z < 2.7000000000000001e112Initial program 24.0%
Taylor expanded in c around inf 57.4%
if 2.7000000000000001e112 < z < 1.08e220Initial program 28.5%
Taylor expanded in i around -inf 64.9%
Taylor expanded in z around -inf 79.3%
associate-*r*79.3%
neg-mul-179.3%
Simplified79.3%
if 1.08e220 < z Initial program 37.9%
Taylor expanded in z around -inf 93.8%
Final simplification64.9%
(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 (* j (- (* b y4) (* i y5))))
(t_3 (- (* t j) (* y k)))
(t_4 (* y4 (+ (+ (* b t_3) (* y1 t_1)) (* c (- (* y y3) (* t y2))))))
(t_5 (* y5 (* a y2))))
(if (<= y4 -4.3e+15)
t_4
(if (<= y4 1.45e-279)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* y5 (- (* y k) (* t j))) (* c (- (* z t) (* x y))))))
(if (<= y4 7.2e-196)
(* t (+ (+ t_2 (* z (- (* c i) (* a b)))) t_5))
(if (<= y4 8.5e-60)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_3))
(* y0 (- (* z k) (* x j)))))
(if (<= y4 1.32e+38)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y4 1e+162)
t_4
(if (<= y4 3.1e+211)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= y4 3.1e+236)
(+
(* t_1 (- (* y1 y4) (* y0 y5)))
(* k (* y (- (* i y5) (* b y4)))))
(* t (+ t_2 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 = (k * y2) - (j * y3);
double t_2 = j * ((b * y4) - (i * y5));
double t_3 = (t * j) - (y * k);
double t_4 = y4 * (((b * t_3) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))));
double t_5 = y5 * (a * y2);
double tmp;
if (y4 <= -4.3e+15) {
tmp = t_4;
} else if (y4 <= 1.45e-279) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
} else if (y4 <= 7.2e-196) {
tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + t_5);
} else if (y4 <= 8.5e-60) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= 1.32e+38) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= 1e+162) {
tmp = t_4;
} else if (y4 <= 3.1e+211) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (y4 <= 3.1e+236) {
tmp = (t_1 * ((y1 * y4) - (y0 * y5))) + (k * (y * ((i * y5) - (b * y4))));
} else {
tmp = t * (t_2 + 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 = (k * y2) - (j * y3)
t_2 = j * ((b * y4) - (i * y5))
t_3 = (t * j) - (y * k)
t_4 = y4 * (((b * t_3) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))))
t_5 = y5 * (a * y2)
if (y4 <= (-4.3d+15)) then
tmp = t_4
else if (y4 <= 1.45d-279) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))))
else if (y4 <= 7.2d-196) then
tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + t_5)
else if (y4 <= 8.5d-60) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))))
else if (y4 <= 1.32d+38) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y4 <= 1d+162) then
tmp = t_4
else if (y4 <= 3.1d+211) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (y4 <= 3.1d+236) then
tmp = (t_1 * ((y1 * y4) - (y0 * y5))) + (k * (y * ((i * y5) - (b * y4))))
else
tmp = t * (t_2 + 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 = (k * y2) - (j * y3);
double t_2 = j * ((b * y4) - (i * y5));
double t_3 = (t * j) - (y * k);
double t_4 = y4 * (((b * t_3) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))));
double t_5 = y5 * (a * y2);
double tmp;
if (y4 <= -4.3e+15) {
tmp = t_4;
} else if (y4 <= 1.45e-279) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
} else if (y4 <= 7.2e-196) {
tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + t_5);
} else if (y4 <= 8.5e-60) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= 1.32e+38) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y4 <= 1e+162) {
tmp = t_4;
} else if (y4 <= 3.1e+211) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (y4 <= 3.1e+236) {
tmp = (t_1 * ((y1 * y4) - (y0 * y5))) + (k * (y * ((i * y5) - (b * y4))));
} else {
tmp = t * (t_2 + t_5);
}
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 = j * ((b * y4) - (i * y5)) t_3 = (t * j) - (y * k) t_4 = y4 * (((b * t_3) + (y1 * t_1)) + (c * ((y * y3) - (t * y2)))) t_5 = y5 * (a * y2) tmp = 0 if y4 <= -4.3e+15: tmp = t_4 elif y4 <= 1.45e-279: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))) elif y4 <= 7.2e-196: tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + t_5) elif y4 <= 8.5e-60: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))) elif y4 <= 1.32e+38: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y4 <= 1e+162: tmp = t_4 elif y4 <= 3.1e+211: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif y4 <= 3.1e+236: tmp = (t_1 * ((y1 * y4) - (y0 * y5))) + (k * (y * ((i * y5) - (b * y4)))) else: tmp = t * (t_2 + 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(k * y2) - Float64(j * y3)) t_2 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(y4 * Float64(Float64(Float64(b * t_3) + Float64(y1 * t_1)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_5 = Float64(y5 * Float64(a * y2)) tmp = 0.0 if (y4 <= -4.3e+15) tmp = t_4; elseif (y4 <= 1.45e-279) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * Float64(Float64(z * t) - Float64(x * y)))))); elseif (y4 <= 7.2e-196) tmp = Float64(t * Float64(Float64(t_2 + Float64(z * Float64(Float64(c * i) - Float64(a * b)))) + t_5)); elseif (y4 <= 8.5e-60) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_3)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y4 <= 1.32e+38) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y4 <= 1e+162) tmp = t_4; elseif (y4 <= 3.1e+211) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (y4 <= 3.1e+236) tmp = Float64(Float64(t_1 * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4))))); else tmp = Float64(t * Float64(t_2 + 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 = (k * y2) - (j * y3); t_2 = j * ((b * y4) - (i * y5)); t_3 = (t * j) - (y * k); t_4 = y4 * (((b * t_3) + (y1 * t_1)) + (c * ((y * y3) - (t * y2)))); t_5 = y5 * (a * y2); tmp = 0.0; if (y4 <= -4.3e+15) tmp = t_4; elseif (y4 <= 1.45e-279) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))); elseif (y4 <= 7.2e-196) tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + t_5); elseif (y4 <= 8.5e-60) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))); elseif (y4 <= 1.32e+38) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y4 <= 1e+162) tmp = t_4; elseif (y4 <= 3.1e+211) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (y4 <= 3.1e+236) tmp = (t_1 * ((y1 * y4) - (y0 * y5))) + (k * (y * ((i * y5) - (b * y4)))); else tmp = t * (t_2 + 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[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.3e+15], t$95$4, If[LessEqual[y4, 1.45e-279], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.2e-196], N[(t * N[(N[(t$95$2 + N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.5e-60], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $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[y4, 1.32e+38], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1e+162], t$95$4, If[LessEqual[y4, 3.1e+211], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.1e+236], N[(N[(t$95$1 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$2 + t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_3 := t \cdot j - y \cdot k\\
t_4 := y4 \cdot \left(\left(b \cdot t\_3 + y1 \cdot t\_1\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_5 := y5 \cdot \left(a \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4.3 \cdot 10^{+15}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y4 \leq 1.45 \cdot 10^{-279}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 7.2 \cdot 10^{-196}:\\
\;\;\;\;t \cdot \left(\left(t\_2 + z \cdot \left(c \cdot i - a \cdot b\right)\right) + t\_5\right)\\
\mathbf{elif}\;y4 \leq 8.5 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_3\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq 1.32 \cdot 10^{+38}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq 10^{+162}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y4 \leq 3.1 \cdot 10^{+211}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 3.1 \cdot 10^{+236}:\\
\;\;\;\;t\_1 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_2 + t\_5\right)\\
\end{array}
\end{array}
if y4 < -4.3e15 or 1.32e38 < y4 < 9.9999999999999994e161Initial program 19.5%
Taylor expanded in y4 around inf 58.9%
if -4.3e15 < y4 < 1.45e-279Initial program 28.9%
Taylor expanded in i around -inf 50.0%
if 1.45e-279 < y4 < 7.2000000000000001e-196Initial program 28.3%
Taylor expanded in t around inf 77.9%
Taylor expanded in c around 0 77.9%
mul-1-neg77.9%
associate-*r*77.9%
Simplified77.9%
if 7.2000000000000001e-196 < y4 < 8.50000000000000044e-60Initial program 37.5%
Taylor expanded in b around inf 58.7%
if 8.50000000000000044e-60 < y4 < 1.32e38Initial program 28.8%
Taylor expanded in c around inf 71.6%
Taylor expanded in y0 around inf 65.5%
if 9.9999999999999994e161 < y4 < 3.1000000000000002e211Initial program 13.3%
Taylor expanded in t around inf 60.0%
Taylor expanded in y2 around inf 53.9%
Taylor expanded in c around inf 60.3%
associate-/l*67.0%
Simplified67.0%
if 3.1000000000000002e211 < y4 < 3.1e236Initial program 28.6%
Taylor expanded in y around inf 57.1%
Taylor expanded in k around inf 83.4%
mul-1-neg83.4%
Simplified83.4%
if 3.1e236 < y4 Initial program 16.7%
Taylor expanded in t around inf 66.7%
Taylor expanded in z around 0 66.7%
Taylor expanded in c around 0 77.8%
mul-1-neg77.8%
associate-*r*77.8%
Simplified77.8%
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 (* j (- (* b y4) (* i y5))))
(t_2 (* y5 (* a y2)))
(t_3 (* t (+ t_1 (* y2 (- (* a y5) (* c y4)))))))
(if (<= t -7e+118)
(* t (+ (+ (* z (- (* c i) (* a b))) (* b (* j y4))) t_2))
(if (<= t -2.8e+24)
(* k (+ (* y (- (* i y5) (* b y4))) (* y2 (- (* y1 y4) (* y0 y5)))))
(if (<= t -2.4e-119)
(* i (* z (- (* t c) (* k y1))))
(if (<= t -5e-310)
t_3
(if (<= t 2.2e+17)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= t 5.5e+74)
(* a (+ (* (* x y) b) (* y5 (- (* t y2) (* y y3)))))
(if (<= t 1.02e+105)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= t 6e+199)
t_3
(if (<= t 7.6e+223)
(* c (* i (* z t)))
(* t (+ 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 = j * ((b * y4) - (i * y5));
double t_2 = y5 * (a * y2);
double t_3 = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (t <= -7e+118) {
tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + t_2);
} else if (t <= -2.8e+24) {
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5))));
} else if (t <= -2.4e-119) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (t <= -5e-310) {
tmp = t_3;
} else if (t <= 2.2e+17) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (t <= 5.5e+74) {
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))));
} else if (t <= 1.02e+105) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= 6e+199) {
tmp = t_3;
} else if (t <= 7.6e+223) {
tmp = c * (i * (z * t));
} else {
tmp = t * (t_1 + 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 = j * ((b * y4) - (i * y5))
t_2 = y5 * (a * y2)
t_3 = t * (t_1 + (y2 * ((a * y5) - (c * y4))))
if (t <= (-7d+118)) then
tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + t_2)
else if (t <= (-2.8d+24)) then
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5))))
else if (t <= (-2.4d-119)) then
tmp = i * (z * ((t * c) - (k * y1)))
else if (t <= (-5d-310)) then
tmp = t_3
else if (t <= 2.2d+17) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (t <= 5.5d+74) then
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))))
else if (t <= 1.02d+105) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (t <= 6d+199) then
tmp = t_3
else if (t <= 7.6d+223) then
tmp = c * (i * (z * t))
else
tmp = t * (t_1 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * ((b * y4) - (i * y5));
double t_2 = y5 * (a * y2);
double t_3 = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (t <= -7e+118) {
tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + t_2);
} else if (t <= -2.8e+24) {
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5))));
} else if (t <= -2.4e-119) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (t <= -5e-310) {
tmp = t_3;
} else if (t <= 2.2e+17) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (t <= 5.5e+74) {
tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3))));
} else if (t <= 1.02e+105) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= 6e+199) {
tmp = t_3;
} else if (t <= 7.6e+223) {
tmp = c * (i * (z * t));
} else {
tmp = t * (t_1 + t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * ((b * y4) - (i * y5)) t_2 = y5 * (a * y2) t_3 = t * (t_1 + (y2 * ((a * y5) - (c * y4)))) tmp = 0 if t <= -7e+118: tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + t_2) elif t <= -2.8e+24: tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) elif t <= -2.4e-119: tmp = i * (z * ((t * c) - (k * y1))) elif t <= -5e-310: tmp = t_3 elif t <= 2.2e+17: tmp = c * (y * ((y3 * y4) - (x * i))) elif t <= 5.5e+74: tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3)))) elif t <= 1.02e+105: tmp = c * (y4 * ((y * y3) - (t * y2))) elif t <= 6e+199: tmp = t_3 elif t <= 7.6e+223: tmp = c * (i * (z * t)) else: tmp = t * (t_1 + t_2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) t_2 = Float64(y5 * Float64(a * y2)) t_3 = Float64(t * Float64(t_1 + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (t <= -7e+118) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(b * Float64(j * y4))) + t_2)); elseif (t <= -2.8e+24) tmp = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))))); elseif (t <= -2.4e-119) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); elseif (t <= -5e-310) tmp = t_3; elseif (t <= 2.2e+17) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (t <= 5.5e+74) tmp = Float64(a * Float64(Float64(Float64(x * y) * b) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (t <= 1.02e+105) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (t <= 6e+199) tmp = t_3; elseif (t <= 7.6e+223) tmp = Float64(c * Float64(i * Float64(z * t))); else tmp = Float64(t * Float64(t_1 + t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * ((b * y4) - (i * y5)); t_2 = y5 * (a * y2); t_3 = t * (t_1 + (y2 * ((a * y5) - (c * y4)))); tmp = 0.0; if (t <= -7e+118) tmp = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + t_2); elseif (t <= -2.8e+24) tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))); elseif (t <= -2.4e-119) tmp = i * (z * ((t * c) - (k * y1))); elseif (t <= -5e-310) tmp = t_3; elseif (t <= 2.2e+17) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (t <= 5.5e+74) tmp = a * (((x * y) * b) + (y5 * ((t * y2) - (y * y3)))); elseif (t <= 1.02e+105) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (t <= 6e+199) tmp = t_3; elseif (t <= 7.6e+223) tmp = c * (i * (z * t)); else tmp = t * (t_1 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(t$95$1 + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7e+118], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.8e+24], N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.4e-119], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5e-310], t$95$3, If[LessEqual[t, 2.2e+17], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+74], N[(a * N[(N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e+105], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+199], t$95$3, If[LessEqual[t, 7.6e+223], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$1 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_2 := y5 \cdot \left(a \cdot y2\right)\\
t_3 := t \cdot \left(t\_1 + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -7 \cdot 10^{+118}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + b \cdot \left(j \cdot y4\right)\right) + t\_2\right)\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{-119}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-310}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+17}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+74}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+199}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{+223}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_1 + t\_2\right)\\
\end{array}
\end{array}
if t < -7.00000000000000033e118Initial program 33.3%
Taylor expanded in t around inf 79.5%
Taylor expanded in c around 0 74.5%
mul-1-neg74.5%
associate-*r*74.5%
Simplified74.5%
Taylor expanded in b around inf 77.1%
if -7.00000000000000033e118 < t < -2.8000000000000002e24Initial program 10.5%
Taylor expanded in y around inf 25.2%
Taylor expanded in k around inf 65.4%
if -2.8000000000000002e24 < t < -2.40000000000000009e-119Initial program 33.5%
Taylor expanded in i around -inf 51.0%
Taylor expanded in z around -inf 47.2%
associate-*r*47.2%
neg-mul-147.2%
Simplified47.2%
if -2.40000000000000009e-119 < t < -4.999999999999985e-310 or 1.02e105 < t < 6.0000000000000002e199Initial program 21.4%
Taylor expanded in t around inf 55.7%
Taylor expanded in z around 0 59.7%
if -4.999999999999985e-310 < t < 2.2e17Initial program 28.4%
Taylor expanded in c around inf 42.9%
Taylor expanded in y around -inf 40.1%
associate-*r*40.1%
neg-mul-140.1%
Simplified40.1%
if 2.2e17 < t < 5.5000000000000003e74Initial program 16.7%
Taylor expanded in y around inf 33.4%
Taylor expanded in a around inf 67.1%
associate-*r*67.1%
neg-mul-167.1%
Simplified67.1%
if 5.5000000000000003e74 < t < 1.02e105Initial program 16.7%
Taylor expanded in c around inf 83.3%
Taylor expanded in y4 around inf 67.7%
if 6.0000000000000002e199 < t < 7.6000000000000001e223Initial program 33.3%
Taylor expanded in t around inf 45.4%
Taylor expanded in c around 0 45.4%
mul-1-neg45.4%
associate-*r*45.4%
Simplified45.4%
Taylor expanded in c around inf 100.0%
if 7.6000000000000001e223 < t Initial program 7.7%
Taylor expanded in t around inf 84.6%
Taylor expanded in z around 0 77.6%
Taylor expanded in c around 0 77.6%
mul-1-neg84.6%
associate-*r*84.6%
Simplified77.8%
Final simplification59.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (* j (- (* b y4) (* i y5))))
(t_3 (* i (* z (- (* t c) (* k y1))))))
(if (<= j -8.5e+49)
(* t (+ t_2 (* y5 (* a y2))))
(if (<= j -6.6e-168)
(* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* t t_1)))
(if (<= j -1.45e-282)
t_3
(if (<= j 2.35e-150)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= j 3.1e-64)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= j 3.9e-56)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= j 9.5e-35)
t_3
(if (<= j 2100000000.0)
(* y4 (+ (* y1 (- (* k y2) (* j y3))) (* c (* y y3))))
(* t (+ t_2 (* y2 t_1)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = j * ((b * y4) - (i * y5));
double t_3 = i * (z * ((t * c) - (k * y1)));
double tmp;
if (j <= -8.5e+49) {
tmp = t * (t_2 + (y5 * (a * y2)));
} else if (j <= -6.6e-168) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * t_1));
} else if (j <= -1.45e-282) {
tmp = t_3;
} else if (j <= 2.35e-150) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (j <= 3.1e-64) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (j <= 3.9e-56) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (j <= 9.5e-35) {
tmp = t_3;
} else if (j <= 2100000000.0) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else {
tmp = t * (t_2 + (y2 * t_1));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = j * ((b * y4) - (i * y5))
t_3 = i * (z * ((t * c) - (k * y1)))
if (j <= (-8.5d+49)) then
tmp = t * (t_2 + (y5 * (a * y2)))
else if (j <= (-6.6d-168)) then
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * t_1))
else if (j <= (-1.45d-282)) then
tmp = t_3
else if (j <= 2.35d-150) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (j <= 3.1d-64) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (j <= 3.9d-56) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (j <= 9.5d-35) then
tmp = t_3
else if (j <= 2100000000.0d0) then
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)))
else
tmp = t * (t_2 + (y2 * t_1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = j * ((b * y4) - (i * y5));
double t_3 = i * (z * ((t * c) - (k * y1)));
double tmp;
if (j <= -8.5e+49) {
tmp = t * (t_2 + (y5 * (a * y2)));
} else if (j <= -6.6e-168) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * t_1));
} else if (j <= -1.45e-282) {
tmp = t_3;
} else if (j <= 2.35e-150) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (j <= 3.1e-64) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (j <= 3.9e-56) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (j <= 9.5e-35) {
tmp = t_3;
} else if (j <= 2100000000.0) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else {
tmp = t * (t_2 + (y2 * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = j * ((b * y4) - (i * y5)) t_3 = i * (z * ((t * c) - (k * y1))) tmp = 0 if j <= -8.5e+49: tmp = t * (t_2 + (y5 * (a * y2))) elif j <= -6.6e-168: tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * t_1)) elif j <= -1.45e-282: tmp = t_3 elif j <= 2.35e-150: tmp = c * (x * ((y0 * y2) - (y * i))) elif j <= 3.1e-64: tmp = c * (y4 * ((y * y3) - (t * y2))) elif j <= 3.9e-56: tmp = c * (y3 * ((y * y4) - (z * y0))) elif j <= 9.5e-35: tmp = t_3 elif j <= 2100000000.0: tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))) else: tmp = t * (t_2 + (y2 * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) t_3 = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))) tmp = 0.0 if (j <= -8.5e+49) tmp = Float64(t * Float64(t_2 + Float64(y5 * Float64(a * y2)))); elseif (j <= -6.6e-168) tmp = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(t * t_1))); elseif (j <= -1.45e-282) tmp = t_3; elseif (j <= 2.35e-150) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (j <= 3.1e-64) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (j <= 3.9e-56) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (j <= 9.5e-35) tmp = t_3; elseif (j <= 2100000000.0) tmp = Float64(y4 * Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(c * Float64(y * y3)))); else tmp = Float64(t * Float64(t_2 + Float64(y2 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = j * ((b * y4) - (i * y5)); t_3 = i * (z * ((t * c) - (k * y1))); tmp = 0.0; if (j <= -8.5e+49) tmp = t * (t_2 + (y5 * (a * y2))); elseif (j <= -6.6e-168) tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (t * t_1)); elseif (j <= -1.45e-282) tmp = t_3; elseif (j <= 2.35e-150) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (j <= 3.1e-64) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (j <= 3.9e-56) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (j <= 9.5e-35) tmp = t_3; elseif (j <= 2100000000.0) tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))); else tmp = t * (t_2 + (y2 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -8.5e+49], N[(t * N[(t$95$2 + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.6e-168], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.45e-282], t$95$3, If[LessEqual[j, 2.35e-150], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e-64], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.9e-56], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e-35], t$95$3, If[LessEqual[j, 2100000000.0], N[(y4 * N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$2 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_3 := i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{if}\;j \leq -8.5 \cdot 10^{+49}:\\
\;\;\;\;t \cdot \left(t\_2 + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -6.6 \cdot 10^{-168}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + t \cdot t\_1\right)\\
\mathbf{elif}\;j \leq -1.45 \cdot 10^{-282}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 2.35 \cdot 10^{-150}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-64}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq 3.9 \cdot 10^{-56}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{-35}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 2100000000:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_2 + y2 \cdot t\_1\right)\\
\end{array}
\end{array}
if j < -8.4999999999999996e49Initial program 19.6%
Taylor expanded in t around inf 47.4%
Taylor expanded in z around 0 49.4%
Taylor expanded in c around 0 61.3%
mul-1-neg59.1%
associate-*r*59.1%
Simplified61.3%
if -8.4999999999999996e49 < j < -6.6000000000000003e-168Initial program 29.1%
Taylor expanded in y around inf 34.5%
Taylor expanded in y2 around inf 50.8%
if -6.6000000000000003e-168 < j < -1.44999999999999999e-282 or 3.9e-56 < j < 9.5000000000000003e-35Initial program 34.7%
Taylor expanded in i around -inf 69.6%
Taylor expanded in z around -inf 66.6%
associate-*r*66.6%
neg-mul-166.6%
Simplified66.6%
if -1.44999999999999999e-282 < j < 2.3499999999999999e-150Initial program 28.4%
Taylor expanded in c around inf 60.0%
Taylor expanded in x around inf 48.0%
if 2.3499999999999999e-150 < j < 3.10000000000000025e-64Initial program 22.0%
Taylor expanded in c around inf 48.8%
Taylor expanded in y4 around inf 48.7%
if 3.10000000000000025e-64 < j < 3.9e-56Initial program 25.0%
Taylor expanded in c around inf 25.0%
Taylor expanded in y3 around -inf 76.1%
mul-1-neg76.1%
Simplified76.1%
if 9.5000000000000003e-35 < j < 2.1e9Initial program 39.1%
Taylor expanded in y around inf 44.6%
Taylor expanded in y3 around inf 50.4%
Taylor expanded in y4 around inf 56.6%
if 2.1e9 < j Initial program 16.3%
Taylor expanded in t around inf 51.6%
Taylor expanded in z around 0 56.6%
Final simplification56.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5))) (t_2 (* j t_1)))
(if (<= j -8e+140)
(* t_1 (* t j))
(if (<= j -2050000000.0)
(* t (+ (+ t_2 (* z (- (* c i) (* a b)))) (* y5 (* a y2))))
(if (<= j -1.2e-155)
(* k (+ (* y (- (* i y5) (* b y4))) (* y2 (- (* y1 y4) (* y0 y5)))))
(if (<= j -1.9e-203)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))
(if (<= j -8.8e-240)
(* x (* y (- (* a b) (* c i))))
(if (<= j -1.2e-283)
(* i (* z (- (* t c) (* k y1))))
(if (<= j 3.4e-186)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= j 680000.0)
(* y4 (+ (* y1 (- (* k y2) (* j y3))) (* c (* y y3))))
(* t (+ t_2 (* y2 (- (* a y5) (* c y4)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y4) - (i * y5);
double t_2 = j * t_1;
double tmp;
if (j <= -8e+140) {
tmp = t_1 * (t * j);
} else if (j <= -2050000000.0) {
tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + (y5 * (a * y2)));
} else if (j <= -1.2e-155) {
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5))));
} else if (j <= -1.9e-203) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else if (j <= -8.8e-240) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (j <= -1.2e-283) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (j <= 3.4e-186) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (j <= 680000.0) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else {
tmp = t * (t_2 + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * y4) - (i * y5)
t_2 = j * t_1
if (j <= (-8d+140)) then
tmp = t_1 * (t * j)
else if (j <= (-2050000000.0d0)) then
tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + (y5 * (a * y2)))
else if (j <= (-1.2d-155)) then
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5))))
else if (j <= (-1.9d-203)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
else if (j <= (-8.8d-240)) then
tmp = x * (y * ((a * b) - (c * i)))
else if (j <= (-1.2d-283)) then
tmp = i * (z * ((t * c) - (k * y1)))
else if (j <= 3.4d-186) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (j <= 680000.0d0) then
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)))
else
tmp = t * (t_2 + (y2 * ((a * y5) - (c * y4))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y4) - (i * y5);
double t_2 = j * t_1;
double tmp;
if (j <= -8e+140) {
tmp = t_1 * (t * j);
} else if (j <= -2050000000.0) {
tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + (y5 * (a * y2)));
} else if (j <= -1.2e-155) {
tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5))));
} else if (j <= -1.9e-203) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else if (j <= -8.8e-240) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (j <= -1.2e-283) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (j <= 3.4e-186) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (j <= 680000.0) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else {
tmp = t * (t_2 + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = j * t_1 tmp = 0 if j <= -8e+140: tmp = t_1 * (t * j) elif j <= -2050000000.0: tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + (y5 * (a * y2))) elif j <= -1.2e-155: tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) elif j <= -1.9e-203: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) elif j <= -8.8e-240: tmp = x * (y * ((a * b) - (c * i))) elif j <= -1.2e-283: tmp = i * (z * ((t * c) - (k * y1))) elif j <= 3.4e-186: tmp = c * (x * ((y0 * y2) - (y * i))) elif j <= 680000.0: tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))) else: tmp = t * (t_2 + (y2 * ((a * y5) - (c * y4)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = Float64(j * t_1) tmp = 0.0 if (j <= -8e+140) tmp = Float64(t_1 * Float64(t * j)); elseif (j <= -2050000000.0) tmp = Float64(t * Float64(Float64(t_2 + Float64(z * Float64(Float64(c * i) - Float64(a * b)))) + Float64(y5 * Float64(a * y2)))); elseif (j <= -1.2e-155) tmp = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))))); elseif (j <= -1.9e-203) tmp = 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))))); elseif (j <= -8.8e-240) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (j <= -1.2e-283) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); elseif (j <= 3.4e-186) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (j <= 680000.0) tmp = Float64(y4 * Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(c * Float64(y * y3)))); else tmp = Float64(t * Float64(t_2 + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y4) - (i * y5); t_2 = j * t_1; tmp = 0.0; if (j <= -8e+140) tmp = t_1 * (t * j); elseif (j <= -2050000000.0) tmp = t * ((t_2 + (z * ((c * i) - (a * b)))) + (y5 * (a * y2))); elseif (j <= -1.2e-155) tmp = k * ((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))); elseif (j <= -1.9e-203) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); elseif (j <= -8.8e-240) tmp = x * (y * ((a * b) - (c * i))); elseif (j <= -1.2e-283) tmp = i * (z * ((t * c) - (k * y1))); elseif (j <= 3.4e-186) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (j <= 680000.0) tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))); else tmp = t * (t_2 + (y2 * ((a * y5) - (c * y4)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1), $MachinePrecision]}, If[LessEqual[j, -8e+140], N[(t$95$1 * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2050000000.0], N[(t * N[(N[(t$95$2 + N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e-155], N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.9e-203], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.8e-240], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e-283], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.4e-186], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 680000.0], N[(y4 * N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$2 + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := j \cdot t\_1\\
\mathbf{if}\;j \leq -8 \cdot 10^{+140}:\\
\;\;\;\;t\_1 \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq -2050000000:\\
\;\;\;\;t \cdot \left(\left(t\_2 + z \cdot \left(c \cdot i - a \cdot b\right)\right) + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-155}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;j \leq -1.9 \cdot 10^{-203}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;j \leq -8.8 \cdot 10^{-240}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-283}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{-186}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 680000:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_2 + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if j < -8.00000000000000047e140Initial program 15.2%
Taylor expanded in t around inf 36.4%
Taylor expanded in j around inf 60.9%
associate-*r*60.9%
Simplified60.9%
if -8.00000000000000047e140 < j < -2.05e9Initial program 37.9%
Taylor expanded in t around inf 76.3%
Taylor expanded in c around 0 83.2%
mul-1-neg83.2%
associate-*r*83.2%
Simplified83.2%
if -2.05e9 < j < -1.2e-155Initial program 17.6%
Taylor expanded in y around inf 35.0%
Taylor expanded in k around inf 56.9%
if -1.2e-155 < j < -1.90000000000000013e-203Initial program 28.3%
Taylor expanded in b around inf 71.9%
if -1.90000000000000013e-203 < j < -8.7999999999999997e-240Initial program 36.2%
Taylor expanded in y around inf 45.8%
Taylor expanded in x around inf 73.6%
if -8.7999999999999997e-240 < j < -1.2e-283Initial program 40.9%
Taylor expanded in i around -inf 80.0%
Taylor expanded in z around -inf 80.0%
associate-*r*80.0%
neg-mul-180.0%
Simplified80.0%
if -1.2e-283 < j < 3.3999999999999999e-186Initial program 24.4%
Taylor expanded in c around inf 59.1%
Taylor expanded in x around inf 49.3%
if 3.3999999999999999e-186 < j < 6.8e5Initial program 30.4%
Taylor expanded in y around inf 30.5%
Taylor expanded in y3 around inf 42.0%
Taylor expanded in y4 around inf 48.0%
if 6.8e5 < j Initial program 16.3%
Taylor expanded in t around inf 51.6%
Taylor expanded in z around 0 56.6%
Final simplification59.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (* t (- (* x (/ y t)) z)))))
(t_2 (* i (* z (- (* t c) (* k y1)))))
(t_3 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= z -6.5e+68)
t_2
(if (<= z -2e-58)
t_1
(if (<= z -1.02e-255)
(* t (+ (* b (* j y4)) (* y2 (- (* a y5) (* c y4)))))
(if (<= z 2.2e-212)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= z 9e-208)
t_3
(if (<= z 1.9e-149)
(* b (* y4 (- (* t j) (* y k))))
(if (<= z 6.2e-125)
t_3
(if (<= z 8e+73)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= z 1.75e+220) t_2 t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double t_3 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (z <= -6.5e+68) {
tmp = t_2;
} else if (z <= -2e-58) {
tmp = t_1;
} else if (z <= -1.02e-255) {
tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 2.2e-212) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (z <= 9e-208) {
tmp = t_3;
} else if (z <= 1.9e-149) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (z <= 6.2e-125) {
tmp = t_3;
} else if (z <= 8e+73) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.75e+220) {
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) :: t_3
real(8) :: tmp
t_1 = a * (b * (t * ((x * (y / t)) - z)))
t_2 = i * (z * ((t * c) - (k * y1)))
t_3 = c * (y0 * ((x * y2) - (z * y3)))
if (z <= (-6.5d+68)) then
tmp = t_2
else if (z <= (-2d-58)) then
tmp = t_1
else if (z <= (-1.02d-255)) then
tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4))))
else if (z <= 2.2d-212) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (z <= 9d-208) then
tmp = t_3
else if (z <= 1.9d-149) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (z <= 6.2d-125) then
tmp = t_3
else if (z <= 8d+73) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (z <= 1.75d+220) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double t_3 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (z <= -6.5e+68) {
tmp = t_2;
} else if (z <= -2e-58) {
tmp = t_1;
} else if (z <= -1.02e-255) {
tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 2.2e-212) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (z <= 9e-208) {
tmp = t_3;
} else if (z <= 1.9e-149) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (z <= 6.2e-125) {
tmp = t_3;
} else if (z <= 8e+73) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.75e+220) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (t * ((x * (y / t)) - z))) t_2 = i * (z * ((t * c) - (k * y1))) t_3 = c * (y0 * ((x * y2) - (z * y3))) tmp = 0 if z <= -6.5e+68: tmp = t_2 elif z <= -2e-58: tmp = t_1 elif z <= -1.02e-255: tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4)))) elif z <= 2.2e-212: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif z <= 9e-208: tmp = t_3 elif z <= 1.9e-149: tmp = b * (y4 * ((t * j) - (y * k))) elif z <= 6.2e-125: tmp = t_3 elif z <= 8e+73: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif z <= 1.75e+220: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))) t_2 = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))) t_3 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (z <= -6.5e+68) tmp = t_2; elseif (z <= -2e-58) tmp = t_1; elseif (z <= -1.02e-255) tmp = Float64(t * Float64(Float64(b * Float64(j * y4)) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (z <= 2.2e-212) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (z <= 9e-208) tmp = t_3; elseif (z <= 1.9e-149) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (z <= 6.2e-125) tmp = t_3; elseif (z <= 8e+73) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (z <= 1.75e+220) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (t * ((x * (y / t)) - z))); t_2 = i * (z * ((t * c) - (k * y1))); t_3 = c * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (z <= -6.5e+68) tmp = t_2; elseif (z <= -2e-58) tmp = t_1; elseif (z <= -1.02e-255) tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4)))); elseif (z <= 2.2e-212) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (z <= 9e-208) tmp = t_3; elseif (z <= 1.9e-149) tmp = b * (y4 * ((t * j) - (y * k))); elseif (z <= 6.2e-125) tmp = t_3; elseif (z <= 8e+73) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (z <= 1.75e+220) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+68], t$95$2, If[LessEqual[z, -2e-58], t$95$1, If[LessEqual[z, -1.02e-255], N[(t * N[(N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-212], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-208], t$95$3, If[LessEqual[z, 1.9e-149], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e-125], t$95$3, If[LessEqual[z, 8e+73], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e+220], t$95$2, t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
t_2 := i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
t_3 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-255}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-212}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-208}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-149}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-125}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+220}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.5000000000000005e68 or 7.99999999999999986e73 < z < 1.74999999999999993e220Initial program 24.9%
Taylor expanded in i around -inf 45.5%
Taylor expanded in z around -inf 61.9%
associate-*r*61.9%
neg-mul-161.9%
Simplified61.9%
if -6.5000000000000005e68 < z < -2.0000000000000001e-58 or 1.74999999999999993e220 < z Initial program 23.9%
Taylor expanded in b around inf 55.7%
Taylor expanded in a around inf 51.1%
Taylor expanded in t around inf 51.1%
associate-/l*56.2%
Simplified56.2%
if -2.0000000000000001e-58 < z < -1.02000000000000002e-255Initial program 31.6%
Taylor expanded in t around inf 53.7%
Taylor expanded in z around 0 51.1%
Taylor expanded in i around 0 43.5%
if -1.02000000000000002e-255 < z < 2.20000000000000003e-212Initial program 20.0%
Taylor expanded in y around inf 28.0%
Taylor expanded in y0 around inf 48.9%
if 2.20000000000000003e-212 < z < 8.9999999999999992e-208 or 1.90000000000000003e-149 < z < 6.20000000000000026e-125Initial program 41.5%
Taylor expanded in c around inf 66.9%
Taylor expanded in y0 around inf 52.0%
if 8.9999999999999992e-208 < z < 1.90000000000000003e-149Initial program 20.0%
Taylor expanded in b around inf 60.3%
Taylor expanded in y4 around inf 70.4%
if 6.20000000000000026e-125 < z < 7.99999999999999986e73Initial program 18.3%
Taylor expanded in t around inf 58.3%
Taylor expanded in y2 around inf 41.0%
Taylor expanded in c around inf 45.3%
associate-/l*49.8%
Simplified49.8%
Final simplification54.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(* t (+ (* j (- (* b y4) (* i y5))) (* y2 (- (* a y5) (* c y4))))))
(t_2
(*
t
(+ (+ (* z (- (* c i) (* a b))) (* b (* j y4))) (* y5 (* a y2))))))
(if (<= a -1e-98)
t_1
(if (<= a -1.15e-143)
(* i (* z (- (* t c) (* k y1))))
(if (<= a -1e-216)
t_2
(if (<= a 1.4e-181)
(+
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5)))
(* y (* y3 (- (* c y4) (* a y5)))))
(if (<= a 6.6e-127)
(* b (* k (- (* z y0) (* y y4))))
(if (<= a 6.5e-105)
(* a (* y (* x b)))
(if (<= a 1.4e+30) 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 = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))));
double t_2 = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2)));
double tmp;
if (a <= -1e-98) {
tmp = t_1;
} else if (a <= -1.15e-143) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (a <= -1e-216) {
tmp = t_2;
} else if (a <= 1.4e-181) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (y * (y3 * ((c * y4) - (a * y5))));
} else if (a <= 6.6e-127) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (a <= 6.5e-105) {
tmp = a * (y * (x * b));
} else if (a <= 1.4e+30) {
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 = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))))
t_2 = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2)))
if (a <= (-1d-98)) then
tmp = t_1
else if (a <= (-1.15d-143)) then
tmp = i * (z * ((t * c) - (k * y1)))
else if (a <= (-1d-216)) then
tmp = t_2
else if (a <= 1.4d-181) then
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (y * (y3 * ((c * y4) - (a * y5))))
else if (a <= 6.6d-127) then
tmp = b * (k * ((z * y0) - (y * y4)))
else if (a <= 6.5d-105) then
tmp = a * (y * (x * b))
else if (a <= 1.4d+30) 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 = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))));
double t_2 = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2)));
double tmp;
if (a <= -1e-98) {
tmp = t_1;
} else if (a <= -1.15e-143) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (a <= -1e-216) {
tmp = t_2;
} else if (a <= 1.4e-181) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (y * (y3 * ((c * y4) - (a * y5))));
} else if (a <= 6.6e-127) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (a <= 6.5e-105) {
tmp = a * (y * (x * b));
} else if (a <= 1.4e+30) {
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 = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))) t_2 = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2))) tmp = 0 if a <= -1e-98: tmp = t_1 elif a <= -1.15e-143: tmp = i * (z * ((t * c) - (k * y1))) elif a <= -1e-216: tmp = t_2 elif a <= 1.4e-181: tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (y * (y3 * ((c * y4) - (a * y5)))) elif a <= 6.6e-127: tmp = b * (k * ((z * y0) - (y * y4))) elif a <= 6.5e-105: tmp = a * (y * (x * b)) elif a <= 1.4e+30: 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(t * Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) t_2 = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(b * Float64(j * y4))) + Float64(y5 * Float64(a * y2)))) tmp = 0.0 if (a <= -1e-98) tmp = t_1; elseif (a <= -1.15e-143) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); elseif (a <= -1e-216) tmp = t_2; elseif (a <= 1.4e-181) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (a <= 6.6e-127) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (a <= 6.5e-105) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (a <= 1.4e+30) 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 = t * ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))); t_2 = t * (((z * ((c * i) - (a * b))) + (b * (j * y4))) + (y5 * (a * y2))); tmp = 0.0; if (a <= -1e-98) tmp = t_1; elseif (a <= -1.15e-143) tmp = i * (z * ((t * c) - (k * y1))); elseif (a <= -1e-216) tmp = t_2; elseif (a <= 1.4e-181) tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (y * (y3 * ((c * y4) - (a * y5)))); elseif (a <= 6.6e-127) tmp = b * (k * ((z * y0) - (y * y4))); elseif (a <= 6.5e-105) tmp = a * (y * (x * b)); elseif (a <= 1.4e+30) 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[(t * N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e-98], t$95$1, If[LessEqual[a, -1.15e-143], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1e-216], t$95$2, If[LessEqual[a, 1.4e-181], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.6e-127], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-105], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+30], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_2 := t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + b \cdot \left(j \cdot y4\right)\right) + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{if}\;a \leq -1 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-143}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-216}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-181}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{-127}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-105}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -9.99999999999999939e-99 or 6.50000000000000006e-105 < a < 1.39999999999999992e30Initial program 25.8%
Taylor expanded in t around inf 53.9%
Taylor expanded in z around 0 53.0%
if -9.99999999999999939e-99 < a < -1.15000000000000006e-143Initial program 17.1%
Taylor expanded in i around -inf 41.9%
Taylor expanded in z around -inf 59.4%
associate-*r*59.4%
neg-mul-159.4%
Simplified59.4%
if -1.15000000000000006e-143 < a < -1e-216 or 1.39999999999999992e30 < a Initial program 21.3%
Taylor expanded in t around inf 50.8%
Taylor expanded in c around 0 59.9%
mul-1-neg59.9%
associate-*r*59.9%
Simplified59.9%
Taylor expanded in b around inf 59.9%
if -1e-216 < a < 1.39999999999999993e-181Initial program 31.6%
Taylor expanded in y around inf 45.0%
Taylor expanded in y3 around inf 48.0%
if 1.39999999999999993e-181 < a < 6.59999999999999961e-127Initial program 21.4%
Taylor expanded in b around inf 57.1%
Taylor expanded in k around -inf 71.5%
mul-1-neg71.5%
Simplified71.5%
if 6.59999999999999961e-127 < a < 6.50000000000000006e-105Initial program 0.0%
Taylor expanded in b around inf 1.8%
Taylor expanded in a around inf 41.9%
Taylor expanded in x around inf 22.2%
associate-*r*60.7%
Simplified60.7%
Final simplification55.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (- (* b y4) (* i y5))))
(t_2 (* z (- (* c i) (* a b))))
(t_3 (* y3 (- (* c y4) (* a y5))))
(t_4 (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))
(t_5 (* y5 (* a y2))))
(if (<= a -3.4e-97)
(* t (+ t_1 (* y2 (- (* a y5) (* c y4)))))
(if (<= a -1.6e-132)
(* y (+ t_3 (/ t_4 y)))
(if (<= a -3.8e-143)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= a -4.8e-215)
(* t (+ (+ t_2 (* b (* j y4))) t_5))
(if (<= a 1.9e-181)
(+ t_4 (* y t_3))
(if (<= a 4.2e-109)
(* b (* k (- (* z y0) (* y y4))))
(* t (+ (+ t_1 t_2) 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 = j * ((b * y4) - (i * y5));
double t_2 = z * ((c * i) - (a * b));
double t_3 = y3 * ((c * y4) - (a * y5));
double t_4 = ((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5));
double t_5 = y5 * (a * y2);
double tmp;
if (a <= -3.4e-97) {
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
} else if (a <= -1.6e-132) {
tmp = y * (t_3 + (t_4 / y));
} else if (a <= -3.8e-143) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (a <= -4.8e-215) {
tmp = t * ((t_2 + (b * (j * y4))) + t_5);
} else if (a <= 1.9e-181) {
tmp = t_4 + (y * t_3);
} else if (a <= 4.2e-109) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else {
tmp = t * ((t_1 + t_2) + 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 = j * ((b * y4) - (i * y5))
t_2 = z * ((c * i) - (a * b))
t_3 = y3 * ((c * y4) - (a * y5))
t_4 = ((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))
t_5 = y5 * (a * y2)
if (a <= (-3.4d-97)) then
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))))
else if (a <= (-1.6d-132)) then
tmp = y * (t_3 + (t_4 / y))
else if (a <= (-3.8d-143)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (a <= (-4.8d-215)) then
tmp = t * ((t_2 + (b * (j * y4))) + t_5)
else if (a <= 1.9d-181) then
tmp = t_4 + (y * t_3)
else if (a <= 4.2d-109) then
tmp = b * (k * ((z * y0) - (y * y4)))
else
tmp = t * ((t_1 + t_2) + 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 = j * ((b * y4) - (i * y5));
double t_2 = z * ((c * i) - (a * b));
double t_3 = y3 * ((c * y4) - (a * y5));
double t_4 = ((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5));
double t_5 = y5 * (a * y2);
double tmp;
if (a <= -3.4e-97) {
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
} else if (a <= -1.6e-132) {
tmp = y * (t_3 + (t_4 / y));
} else if (a <= -3.8e-143) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (a <= -4.8e-215) {
tmp = t * ((t_2 + (b * (j * y4))) + t_5);
} else if (a <= 1.9e-181) {
tmp = t_4 + (y * t_3);
} else if (a <= 4.2e-109) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else {
tmp = t * ((t_1 + t_2) + t_5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * ((b * y4) - (i * y5)) t_2 = z * ((c * i) - (a * b)) t_3 = y3 * ((c * y4) - (a * y5)) t_4 = ((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)) t_5 = y5 * (a * y2) tmp = 0 if a <= -3.4e-97: tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4)))) elif a <= -1.6e-132: tmp = y * (t_3 + (t_4 / y)) elif a <= -3.8e-143: tmp = c * (y0 * ((x * y2) - (z * y3))) elif a <= -4.8e-215: tmp = t * ((t_2 + (b * (j * y4))) + t_5) elif a <= 1.9e-181: tmp = t_4 + (y * t_3) elif a <= 4.2e-109: tmp = b * (k * ((z * y0) - (y * y4))) else: tmp = t * ((t_1 + t_2) + 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(j * Float64(Float64(b * y4) - Float64(i * y5))) t_2 = Float64(z * Float64(Float64(c * i) - Float64(a * b))) t_3 = Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))) t_4 = Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) t_5 = Float64(y5 * Float64(a * y2)) tmp = 0.0 if (a <= -3.4e-97) tmp = Float64(t * Float64(t_1 + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (a <= -1.6e-132) tmp = Float64(y * Float64(t_3 + Float64(t_4 / y))); elseif (a <= -3.8e-143) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (a <= -4.8e-215) tmp = Float64(t * Float64(Float64(t_2 + Float64(b * Float64(j * y4))) + t_5)); elseif (a <= 1.9e-181) tmp = Float64(t_4 + Float64(y * t_3)); elseif (a <= 4.2e-109) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); else tmp = Float64(t * Float64(Float64(t_1 + t_2) + 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 = j * ((b * y4) - (i * y5)); t_2 = z * ((c * i) - (a * b)); t_3 = y3 * ((c * y4) - (a * y5)); t_4 = ((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)); t_5 = y5 * (a * y2); tmp = 0.0; if (a <= -3.4e-97) tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4)))); elseif (a <= -1.6e-132) tmp = y * (t_3 + (t_4 / y)); elseif (a <= -3.8e-143) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (a <= -4.8e-215) tmp = t * ((t_2 + (b * (j * y4))) + t_5); elseif (a <= 1.9e-181) tmp = t_4 + (y * t_3); elseif (a <= 4.2e-109) tmp = b * (k * ((z * y0) - (y * y4))); else tmp = t * ((t_1 + t_2) + 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[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e-97], N[(t * N[(t$95$1 + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.6e-132], N[(y * N[(t$95$3 + N[(t$95$4 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e-143], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-215], N[(t * N[(N[(t$95$2 + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e-181], N[(t$95$4 + N[(y * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e-109], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(t$95$1 + t$95$2), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(b \cdot y4 - i \cdot y5\right)\\
t_2 := z \cdot \left(c \cdot i - a \cdot b\right)\\
t_3 := y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_4 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
t_5 := y5 \cdot \left(a \cdot y2\right)\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{-97}:\\
\;\;\;\;t \cdot \left(t\_1 + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-132}:\\
\;\;\;\;y \cdot \left(t\_3 + \frac{t\_4}{y}\right)\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-143}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-215}:\\
\;\;\;\;t \cdot \left(\left(t\_2 + b \cdot \left(j \cdot y4\right)\right) + t\_5\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-181}:\\
\;\;\;\;t\_4 + y \cdot t\_3\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-109}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(t\_1 + t\_2\right) + t\_5\right)\\
\end{array}
\end{array}
if a < -3.3999999999999999e-97Initial program 27.5%
Taylor expanded in t around inf 52.9%
Taylor expanded in z around 0 53.0%
if -3.3999999999999999e-97 < a < -1.6000000000000001e-132Initial program 11.7%
Taylor expanded in y around inf 1.2%
Taylor expanded in y3 around inf 67.5%
Taylor expanded in y around inf 78.6%
if -1.6000000000000001e-132 < a < -3.79999999999999981e-143Initial program 50.0%
Taylor expanded in c around inf 49.2%
Taylor expanded in y0 around inf 99.2%
if -3.79999999999999981e-143 < a < -4.8000000000000002e-215Initial program 26.9%
Taylor expanded in t around inf 49.8%
Taylor expanded in c around 0 43.5%
mul-1-neg43.5%
associate-*r*49.9%
Simplified49.9%
Taylor expanded in b around inf 56.6%
if -4.8000000000000002e-215 < a < 1.8999999999999999e-181Initial program 31.6%
Taylor expanded in y around inf 45.0%
Taylor expanded in y3 around inf 48.0%
if 1.8999999999999999e-181 < a < 4.19999999999999992e-109Initial program 16.7%
Taylor expanded in b around inf 44.9%
Taylor expanded in k around -inf 61.3%
mul-1-neg61.3%
Simplified61.3%
if 4.19999999999999992e-109 < a Initial program 18.9%
Taylor expanded in t around inf 51.7%
Taylor expanded in c around 0 58.5%
mul-1-neg58.5%
associate-*r*58.5%
Simplified58.5%
Final simplification55.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (* t (- (* x (/ y t)) z)))))
(t_2 (* i (* z (- (* t c) (* k y1))))))
(if (<= z -9.2e+69)
t_2
(if (<= z -2.5e-52)
t_1
(if (<= z -9.5e-253)
(* t (+ (* b (* j y4)) (* y2 (- (* a y5) (* c y4)))))
(if (<= z 9e-213)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= z 1.22e-163)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= z 4.5e-131)
(* y4 (+ (* y1 (- (* k y2) (* j y3))) (* c (* y y3))))
(if (<= z 4.5e+75)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= z 1.7e+220) t_2 t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double tmp;
if (z <= -9.2e+69) {
tmp = t_2;
} else if (z <= -2.5e-52) {
tmp = t_1;
} else if (z <= -9.5e-253) {
tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 9e-213) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (z <= 1.22e-163) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (z <= 4.5e-131) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else if (z <= 4.5e+75) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.7e+220) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * (t * ((x * (y / t)) - z)))
t_2 = i * (z * ((t * c) - (k * y1)))
if (z <= (-9.2d+69)) then
tmp = t_2
else if (z <= (-2.5d-52)) then
tmp = t_1
else if (z <= (-9.5d-253)) then
tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4))))
else if (z <= 9d-213) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (z <= 1.22d-163) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (z <= 4.5d-131) then
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)))
else if (z <= 4.5d+75) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (z <= 1.7d+220) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double tmp;
if (z <= -9.2e+69) {
tmp = t_2;
} else if (z <= -2.5e-52) {
tmp = t_1;
} else if (z <= -9.5e-253) {
tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4))));
} else if (z <= 9e-213) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (z <= 1.22e-163) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (z <= 4.5e-131) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else if (z <= 4.5e+75) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.7e+220) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (t * ((x * (y / t)) - z))) t_2 = i * (z * ((t * c) - (k * y1))) tmp = 0 if z <= -9.2e+69: tmp = t_2 elif z <= -2.5e-52: tmp = t_1 elif z <= -9.5e-253: tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4)))) elif z <= 9e-213: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif z <= 1.22e-163: tmp = t * (y5 * ((a * y2) - (i * j))) elif z <= 4.5e-131: tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))) elif z <= 4.5e+75: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif z <= 1.7e+220: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))) t_2 = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))) tmp = 0.0 if (z <= -9.2e+69) tmp = t_2; elseif (z <= -2.5e-52) tmp = t_1; elseif (z <= -9.5e-253) tmp = Float64(t * Float64(Float64(b * Float64(j * y4)) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (z <= 9e-213) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (z <= 1.22e-163) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (z <= 4.5e-131) tmp = Float64(y4 * Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(c * Float64(y * y3)))); elseif (z <= 4.5e+75) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (z <= 1.7e+220) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (t * ((x * (y / t)) - z))); t_2 = i * (z * ((t * c) - (k * y1))); tmp = 0.0; if (z <= -9.2e+69) tmp = t_2; elseif (z <= -2.5e-52) tmp = t_1; elseif (z <= -9.5e-253) tmp = t * ((b * (j * y4)) + (y2 * ((a * y5) - (c * y4)))); elseif (z <= 9e-213) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (z <= 1.22e-163) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (z <= 4.5e-131) tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))); elseif (z <= 4.5e+75) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (z <= 1.7e+220) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.2e+69], t$95$2, If[LessEqual[z, -2.5e-52], t$95$1, If[LessEqual[z, -9.5e-253], N[(t * N[(N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-213], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e-163], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-131], N[(y4 * N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+75], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+220], t$95$2, t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
t_2 := i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{if}\;z \leq -9.2 \cdot 10^{+69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-253}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-213}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{-163}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-131}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+75}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+220}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.20000000000000067e69 or 4.5000000000000004e75 < z < 1.7e220Initial program 24.9%
Taylor expanded in i around -inf 45.5%
Taylor expanded in z around -inf 61.9%
associate-*r*61.9%
neg-mul-161.9%
Simplified61.9%
if -9.20000000000000067e69 < z < -2.5e-52 or 1.7e220 < z Initial program 23.9%
Taylor expanded in b around inf 55.7%
Taylor expanded in a around inf 51.1%
Taylor expanded in t around inf 51.1%
associate-/l*56.2%
Simplified56.2%
if -2.5e-52 < z < -9.5e-253Initial program 31.6%
Taylor expanded in t around inf 53.7%
Taylor expanded in z around 0 51.1%
Taylor expanded in i around 0 43.5%
if -9.5e-253 < z < 9.0000000000000002e-213Initial program 20.0%
Taylor expanded in y around inf 28.0%
Taylor expanded in y0 around inf 48.9%
if 9.0000000000000002e-213 < z < 1.22000000000000003e-163Initial program 33.3%
Taylor expanded in t around inf 44.4%
Taylor expanded in y5 around -inf 56.1%
mul-1-neg56.1%
Simplified56.1%
if 1.22000000000000003e-163 < z < 4.5000000000000002e-131Initial program 36.2%
Taylor expanded in y around inf 27.2%
Taylor expanded in y3 around inf 36.7%
Taylor expanded in y4 around inf 64.2%
if 4.5000000000000002e-131 < z < 4.5000000000000004e75Initial program 17.5%
Taylor expanded in t around inf 57.9%
Taylor expanded in y2 around inf 41.4%
Taylor expanded in c around inf 45.5%
associate-/l*49.8%
Simplified49.8%
Final simplification54.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (* t (- (* x (/ y t)) z)))))
(t_2 (* i (* z (- (* t c) (* k y1)))))
(t_3 (* t (+ (* j (- (* b y4) (* i y5))) (* y5 (* a y2))))))
(if (<= z -6.5e+68)
t_2
(if (<= z -3.4e-51)
t_1
(if (<= z -1.65e-232)
t_3
(if (<= z 1.25e-219)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= z 6.4e-152)
t_3
(if (<= z 8e-129)
(* y4 (+ (* y1 (- (* k y2) (* j y3))) (* c (* y y3))))
(if (<= z 2e+74)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= z 9.8e+219) t_2 t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double t_3 = t * ((j * ((b * y4) - (i * y5))) + (y5 * (a * y2)));
double tmp;
if (z <= -6.5e+68) {
tmp = t_2;
} else if (z <= -3.4e-51) {
tmp = t_1;
} else if (z <= -1.65e-232) {
tmp = t_3;
} else if (z <= 1.25e-219) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (z <= 6.4e-152) {
tmp = t_3;
} else if (z <= 8e-129) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else if (z <= 2e+74) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 9.8e+219) {
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) :: t_3
real(8) :: tmp
t_1 = a * (b * (t * ((x * (y / t)) - z)))
t_2 = i * (z * ((t * c) - (k * y1)))
t_3 = t * ((j * ((b * y4) - (i * y5))) + (y5 * (a * y2)))
if (z <= (-6.5d+68)) then
tmp = t_2
else if (z <= (-3.4d-51)) then
tmp = t_1
else if (z <= (-1.65d-232)) then
tmp = t_3
else if (z <= 1.25d-219) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (z <= 6.4d-152) then
tmp = t_3
else if (z <= 8d-129) then
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)))
else if (z <= 2d+74) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (z <= 9.8d+219) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double t_3 = t * ((j * ((b * y4) - (i * y5))) + (y5 * (a * y2)));
double tmp;
if (z <= -6.5e+68) {
tmp = t_2;
} else if (z <= -3.4e-51) {
tmp = t_1;
} else if (z <= -1.65e-232) {
tmp = t_3;
} else if (z <= 1.25e-219) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (z <= 6.4e-152) {
tmp = t_3;
} else if (z <= 8e-129) {
tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3)));
} else if (z <= 2e+74) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 9.8e+219) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (t * ((x * (y / t)) - z))) t_2 = i * (z * ((t * c) - (k * y1))) t_3 = t * ((j * ((b * y4) - (i * y5))) + (y5 * (a * y2))) tmp = 0 if z <= -6.5e+68: tmp = t_2 elif z <= -3.4e-51: tmp = t_1 elif z <= -1.65e-232: tmp = t_3 elif z <= 1.25e-219: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif z <= 6.4e-152: tmp = t_3 elif z <= 8e-129: tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))) elif z <= 2e+74: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif z <= 9.8e+219: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))) t_2 = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))) t_3 = Float64(t * Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y5 * Float64(a * y2)))) tmp = 0.0 if (z <= -6.5e+68) tmp = t_2; elseif (z <= -3.4e-51) tmp = t_1; elseif (z <= -1.65e-232) tmp = t_3; elseif (z <= 1.25e-219) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (z <= 6.4e-152) tmp = t_3; elseif (z <= 8e-129) tmp = Float64(y4 * Float64(Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(c * Float64(y * y3)))); elseif (z <= 2e+74) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (z <= 9.8e+219) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (t * ((x * (y / t)) - z))); t_2 = i * (z * ((t * c) - (k * y1))); t_3 = t * ((j * ((b * y4) - (i * y5))) + (y5 * (a * y2))); tmp = 0.0; if (z <= -6.5e+68) tmp = t_2; elseif (z <= -3.4e-51) tmp = t_1; elseif (z <= -1.65e-232) tmp = t_3; elseif (z <= 1.25e-219) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (z <= 6.4e-152) tmp = t_3; elseif (z <= 8e-129) tmp = y4 * ((y1 * ((k * y2) - (j * y3))) + (c * (y * y3))); elseif (z <= 2e+74) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (z <= 9.8e+219) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+68], t$95$2, If[LessEqual[z, -3.4e-51], t$95$1, If[LessEqual[z, -1.65e-232], t$95$3, If[LessEqual[z, 1.25e-219], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e-152], t$95$3, If[LessEqual[z, 8e-129], N[(y4 * N[(N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+74], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.8e+219], t$95$2, t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
t_2 := i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
t_3 := t \cdot \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y5 \cdot \left(a \cdot y2\right)\right)\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{-232}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-219}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-152}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-129}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+219}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.5000000000000005e68 or 1.9999999999999999e74 < z < 9.80000000000000007e219Initial program 24.9%
Taylor expanded in i around -inf 45.5%
Taylor expanded in z around -inf 61.9%
associate-*r*61.9%
neg-mul-161.9%
Simplified61.9%
if -6.5000000000000005e68 < z < -3.40000000000000003e-51 or 9.80000000000000007e219 < z Initial program 23.9%
Taylor expanded in b around inf 55.7%
Taylor expanded in a around inf 51.1%
Taylor expanded in t around inf 51.1%
associate-/l*56.2%
Simplified56.2%
if -3.40000000000000003e-51 < z < -1.64999999999999993e-232 or 1.25e-219 < z < 6.40000000000000025e-152Initial program 31.3%
Taylor expanded in t around inf 46.8%
Taylor expanded in z around 0 50.9%
Taylor expanded in c around 0 55.2%
mul-1-neg49.0%
associate-*r*49.0%
Simplified55.2%
if -1.64999999999999993e-232 < z < 1.25e-219Initial program 19.2%
Taylor expanded in y around inf 34.6%
Taylor expanded in y0 around inf 50.5%
if 6.40000000000000025e-152 < z < 7.9999999999999994e-129Initial program 44.3%
Taylor expanded in y around inf 33.2%
Taylor expanded in y3 around inf 33.7%
Taylor expanded in y4 around inf 67.3%
if 7.9999999999999994e-129 < z < 1.9999999999999999e74Initial program 17.5%
Taylor expanded in t around inf 57.9%
Taylor expanded in y2 around inf 41.4%
Taylor expanded in c around inf 45.5%
associate-/l*49.8%
Simplified49.8%
Final simplification56.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3)))))
(t_2 (* b (* y4 (- (* t j) (* y k))))))
(if (<= y -1.25e+152)
t_2
(if (<= y -4.4e+27)
t_1
(if (<= y -1.25e-219)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y 4.7e-191)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y 6.8e-106)
t_1
(if (<= y 8e-28)
t_2
(if (<= y 1.25e-14)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y 1.96e+74)
(* t (* y2 (- (* a y5) (* c y4))))
(* x (* y (- (* a b) (* c i))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = b * (y4 * ((t * j) - (y * k)));
double tmp;
if (y <= -1.25e+152) {
tmp = t_2;
} else if (y <= -4.4e+27) {
tmp = t_1;
} else if (y <= -1.25e-219) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 4.7e-191) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 6.8e-106) {
tmp = t_1;
} else if (y <= 8e-28) {
tmp = t_2;
} else if (y <= 1.25e-14) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y <= 1.96e+74) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y1 * (y4 * ((k * y2) - (j * y3)))
t_2 = b * (y4 * ((t * j) - (y * k)))
if (y <= (-1.25d+152)) then
tmp = t_2
else if (y <= (-4.4d+27)) then
tmp = t_1
else if (y <= (-1.25d-219)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= 4.7d-191) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y <= 6.8d-106) then
tmp = t_1
else if (y <= 8d-28) then
tmp = t_2
else if (y <= 1.25d-14) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y <= 1.96d+74) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = x * (y * ((a * b) - (c * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double t_2 = b * (y4 * ((t * j) - (y * k)));
double tmp;
if (y <= -1.25e+152) {
tmp = t_2;
} else if (y <= -4.4e+27) {
tmp = t_1;
} else if (y <= -1.25e-219) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 4.7e-191) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y <= 6.8e-106) {
tmp = t_1;
} else if (y <= 8e-28) {
tmp = t_2;
} else if (y <= 1.25e-14) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y <= 1.96e+74) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (y4 * ((k * y2) - (j * y3))) t_2 = b * (y4 * ((t * j) - (y * k))) tmp = 0 if y <= -1.25e+152: tmp = t_2 elif y <= -4.4e+27: tmp = t_1 elif y <= -1.25e-219: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= 4.7e-191: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y <= 6.8e-106: tmp = t_1 elif y <= 8e-28: tmp = t_2 elif y <= 1.25e-14: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y <= 1.96e+74: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = x * (y * ((a * b) - (c * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) t_2 = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) tmp = 0.0 if (y <= -1.25e+152) tmp = t_2; elseif (y <= -4.4e+27) tmp = t_1; elseif (y <= -1.25e-219) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= 4.7e-191) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y <= 6.8e-106) tmp = t_1; elseif (y <= 8e-28) tmp = t_2; elseif (y <= 1.25e-14) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y <= 1.96e+74) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (y4 * ((k * y2) - (j * y3))); t_2 = b * (y4 * ((t * j) - (y * k))); tmp = 0.0; if (y <= -1.25e+152) tmp = t_2; elseif (y <= -4.4e+27) tmp = t_1; elseif (y <= -1.25e-219) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= 4.7e-191) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y <= 6.8e-106) tmp = t_1; elseif (y <= 8e-28) tmp = t_2; elseif (y <= 1.25e-14) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y <= 1.96e+74) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = x * (y * ((a * b) - (c * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+152], t$95$2, If[LessEqual[y, -4.4e+27], t$95$1, If[LessEqual[y, -1.25e-219], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.7e-191], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e-106], t$95$1, If[LessEqual[y, 8e-28], t$95$2, If[LessEqual[y, 1.25e-14], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.96e+74], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
t_2 := b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+152}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-219}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{-191}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-14}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 1.96 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -1.25e152 or 6.79999999999999965e-106 < y < 7.99999999999999977e-28Initial program 25.0%
Taylor expanded in b around inf 50.2%
Taylor expanded in y4 around inf 61.8%
if -1.25e152 < y < -4.3999999999999997e27 or 4.6999999999999997e-191 < y < 6.79999999999999965e-106Initial program 20.7%
Taylor expanded in y around inf 43.4%
Taylor expanded in y1 around inf 51.2%
if -4.3999999999999997e27 < y < -1.25e-219Initial program 30.6%
Taylor expanded in t around inf 44.5%
Taylor expanded in c around inf 48.5%
if -1.25e-219 < y < 4.6999999999999997e-191Initial program 30.1%
Taylor expanded in c around inf 48.0%
Taylor expanded in y0 around inf 41.3%
if 7.99999999999999977e-28 < y < 1.25e-14Initial program 16.7%
Taylor expanded in c around inf 68.3%
Taylor expanded in y2 around inf 68.6%
if 1.25e-14 < y < 1.96e74Initial program 26.1%
Taylor expanded in t around inf 39.8%
Taylor expanded in y2 around inf 53.1%
if 1.96e74 < y Initial program 19.0%
Taylor expanded in y around inf 26.8%
Taylor expanded in x around inf 46.4%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t)))))
(t_2 (* t (* b (* j y4))))
(t_3 (* c (* (* x y) (- i)))))
(if (<= j -3.5e+149)
t_2
(if (<= j -4.85e+70)
(* t (* i (* j (- y5))))
(if (<= j -1.75e+51)
t_3
(if (<= j -2e-239)
t_1
(if (<= j 5.6e-260)
(* z (* (* i k) (- y1)))
(if (<= j 2.95e-92) t_3 (if (<= j 1.7e+156) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = t * (b * (j * y4));
double t_3 = c * ((x * y) * -i);
double tmp;
if (j <= -3.5e+149) {
tmp = t_2;
} else if (j <= -4.85e+70) {
tmp = t * (i * (j * -y5));
} else if (j <= -1.75e+51) {
tmp = t_3;
} else if (j <= -2e-239) {
tmp = t_1;
} else if (j <= 5.6e-260) {
tmp = z * ((i * k) * -y1);
} else if (j <= 2.95e-92) {
tmp = t_3;
} else if (j <= 1.7e+156) {
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) :: t_3
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
t_2 = t * (b * (j * y4))
t_3 = c * ((x * y) * -i)
if (j <= (-3.5d+149)) then
tmp = t_2
else if (j <= (-4.85d+70)) then
tmp = t * (i * (j * -y5))
else if (j <= (-1.75d+51)) then
tmp = t_3
else if (j <= (-2d-239)) then
tmp = t_1
else if (j <= 5.6d-260) then
tmp = z * ((i * k) * -y1)
else if (j <= 2.95d-92) then
tmp = t_3
else if (j <= 1.7d+156) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = t * (b * (j * y4));
double t_3 = c * ((x * y) * -i);
double tmp;
if (j <= -3.5e+149) {
tmp = t_2;
} else if (j <= -4.85e+70) {
tmp = t * (i * (j * -y5));
} else if (j <= -1.75e+51) {
tmp = t_3;
} else if (j <= -2e-239) {
tmp = t_1;
} else if (j <= 5.6e-260) {
tmp = z * ((i * k) * -y1);
} else if (j <= 2.95e-92) {
tmp = t_3;
} else if (j <= 1.7e+156) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) t_2 = t * (b * (j * y4)) t_3 = c * ((x * y) * -i) tmp = 0 if j <= -3.5e+149: tmp = t_2 elif j <= -4.85e+70: tmp = t * (i * (j * -y5)) elif j <= -1.75e+51: tmp = t_3 elif j <= -2e-239: tmp = t_1 elif j <= 5.6e-260: tmp = z * ((i * k) * -y1) elif j <= 2.95e-92: tmp = t_3 elif j <= 1.7e+156: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_2 = Float64(t * Float64(b * Float64(j * y4))) t_3 = Float64(c * Float64(Float64(x * y) * Float64(-i))) tmp = 0.0 if (j <= -3.5e+149) tmp = t_2; elseif (j <= -4.85e+70) tmp = Float64(t * Float64(i * Float64(j * Float64(-y5)))); elseif (j <= -1.75e+51) tmp = t_3; elseif (j <= -2e-239) tmp = t_1; elseif (j <= 5.6e-260) tmp = Float64(z * Float64(Float64(i * k) * Float64(-y1))); elseif (j <= 2.95e-92) tmp = t_3; elseif (j <= 1.7e+156) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); t_2 = t * (b * (j * y4)); t_3 = c * ((x * y) * -i); tmp = 0.0; if (j <= -3.5e+149) tmp = t_2; elseif (j <= -4.85e+70) tmp = t * (i * (j * -y5)); elseif (j <= -1.75e+51) tmp = t_3; elseif (j <= -2e-239) tmp = t_1; elseif (j <= 5.6e-260) tmp = z * ((i * k) * -y1); elseif (j <= 2.95e-92) tmp = t_3; elseif (j <= 1.7e+156) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(x * y), $MachinePrecision] * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e+149], t$95$2, If[LessEqual[j, -4.85e+70], N[(t * N[(i * N[(j * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.75e+51], t$95$3, If[LessEqual[j, -2e-239], t$95$1, If[LessEqual[j, 5.6e-260], N[(z * N[(N[(i * k), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.95e-92], t$95$3, If[LessEqual[j, 1.7e+156], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_2 := t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
t_3 := c \cdot \left(\left(x \cdot y\right) \cdot \left(-i\right)\right)\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{+149}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -4.85 \cdot 10^{+70}:\\
\;\;\;\;t \cdot \left(i \cdot \left(j \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{+51}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -2 \cdot 10^{-239}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{-260}:\\
\;\;\;\;z \cdot \left(\left(i \cdot k\right) \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;j \leq 2.95 \cdot 10^{-92}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -3.50000000000000011e149 or 1.7e156 < j Initial program 12.5%
Taylor expanded in t around inf 50.3%
Taylor expanded in z around 0 56.6%
Taylor expanded in b around inf 50.6%
*-commutative50.6%
Simplified50.6%
if -3.50000000000000011e149 < j < -4.85000000000000001e70Initial program 25.0%
Taylor expanded in t around inf 50.6%
Taylor expanded in z around 0 44.7%
Taylor expanded in i around inf 45.1%
mul-1-neg45.1%
*-commutative45.1%
distribute-rgt-neg-in45.1%
*-commutative45.1%
Simplified45.1%
if -4.85000000000000001e70 < j < -1.75e51 or 5.5999999999999996e-260 < j < 2.95e-92Initial program 26.6%
Taylor expanded in y around inf 29.6%
Taylor expanded in x around inf 30.0%
Taylor expanded in a around 0 38.2%
associate-*r*38.2%
neg-mul-138.2%
Simplified38.2%
if -1.75e51 < j < -2.0000000000000002e-239 or 2.95e-92 < j < 1.7e156Initial program 28.8%
Taylor expanded in b around inf 43.1%
Taylor expanded in a around inf 35.9%
if -2.0000000000000002e-239 < j < 5.5999999999999996e-260Initial program 35.5%
Taylor expanded in i around -inf 56.0%
Taylor expanded in y1 around inf 31.7%
associate-*r*31.7%
Simplified31.7%
Taylor expanded in k around inf 31.5%
associate-*r*31.1%
associate-*r*51.1%
Simplified51.1%
Final simplification41.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* t (- (* z i) (* y2 y4))))))
(if (<= b -3.1e+159)
(* a (* b (- (* x y) (* z t))))
(if (<= b -600.0)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 3.4e-237)
t_1
(if (<= b 1.8e-95)
(* z (* (* i k) (- y1)))
(if (<= b 2e-15)
t_1
(if (<= b 4.2e+254)
(* b (* y4 (- (* t j) (* y k))))
(if (<= b 1.7e+292)
(* b (* y0 (- (* z k) (* x j))))
(* b (* j (* t y4))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * ((z * i) - (y2 * y4)));
double tmp;
if (b <= -3.1e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= -600.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 3.4e-237) {
tmp = t_1;
} else if (b <= 1.8e-95) {
tmp = z * ((i * k) * -y1);
} else if (b <= 2e-15) {
tmp = t_1;
} else if (b <= 4.2e+254) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (b <= 1.7e+292) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * ((z * i) - (y2 * y4)))
if (b <= (-3.1d+159)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (b <= (-600.0d0)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 3.4d-237) then
tmp = t_1
else if (b <= 1.8d-95) then
tmp = z * ((i * k) * -y1)
else if (b <= 2d-15) then
tmp = t_1
else if (b <= 4.2d+254) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (b <= 1.7d+292) then
tmp = b * (y0 * ((z * k) - (x * j)))
else
tmp = b * (j * (t * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * ((z * i) - (y2 * y4)));
double tmp;
if (b <= -3.1e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= -600.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 3.4e-237) {
tmp = t_1;
} else if (b <= 1.8e-95) {
tmp = z * ((i * k) * -y1);
} else if (b <= 2e-15) {
tmp = t_1;
} else if (b <= 4.2e+254) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (b <= 1.7e+292) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (t * ((z * i) - (y2 * y4))) tmp = 0 if b <= -3.1e+159: tmp = a * (b * ((x * y) - (z * t))) elif b <= -600.0: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 3.4e-237: tmp = t_1 elif b <= 1.8e-95: tmp = z * ((i * k) * -y1) elif b <= 2e-15: tmp = t_1 elif b <= 4.2e+254: tmp = b * (y4 * ((t * j) - (y * k))) elif b <= 1.7e+292: tmp = b * (y0 * ((z * k) - (x * j))) else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))) tmp = 0.0 if (b <= -3.1e+159) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (b <= -600.0) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 3.4e-237) tmp = t_1; elseif (b <= 1.8e-95) tmp = Float64(z * Float64(Float64(i * k) * Float64(-y1))); elseif (b <= 2e-15) tmp = t_1; elseif (b <= 4.2e+254) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= 1.7e+292) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); else tmp = Float64(b * Float64(j * Float64(t * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (t * ((z * i) - (y2 * y4))); tmp = 0.0; if (b <= -3.1e+159) tmp = a * (b * ((x * y) - (z * t))); elseif (b <= -600.0) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 3.4e-237) tmp = t_1; elseif (b <= 1.8e-95) tmp = z * ((i * k) * -y1); elseif (b <= 2e-15) tmp = t_1; elseif (b <= 4.2e+254) tmp = b * (y4 * ((t * j) - (y * k))); elseif (b <= 1.7e+292) tmp = b * (y0 * ((z * k) - (x * j))); else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+159], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -600.0], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-237], t$95$1, If[LessEqual[b, 1.8e-95], N[(z * N[(N[(i * k), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e-15], t$95$1, If[LessEqual[b, 4.2e+254], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+292], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+159}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq -600:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-95}:\\
\;\;\;\;z \cdot \left(\left(i \cdot k\right) \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+254}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+292}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if b < -3.0999999999999998e159Initial program 17.1%
Taylor expanded in b around inf 63.1%
Taylor expanded in a around inf 55.1%
if -3.0999999999999998e159 < b < -600Initial program 21.7%
Taylor expanded in c around inf 52.2%
Taylor expanded in y0 around inf 39.4%
if -600 < b < 3.4000000000000002e-237 or 1.8e-95 < b < 2.0000000000000002e-15Initial program 29.1%
Taylor expanded in t around inf 44.5%
Taylor expanded in c around inf 42.1%
if 3.4000000000000002e-237 < b < 1.8e-95Initial program 14.3%
Taylor expanded in i around -inf 42.9%
Taylor expanded in y1 around inf 34.3%
associate-*r*25.5%
Simplified25.5%
Taylor expanded in k around inf 29.8%
associate-*r*20.7%
associate-*r*34.9%
Simplified34.9%
if 2.0000000000000002e-15 < b < 4.2e254Initial program 20.6%
Taylor expanded in b around inf 45.6%
Taylor expanded in y4 around inf 47.5%
if 4.2e254 < b < 1.7000000000000001e292Initial program 58.3%
Taylor expanded in b around inf 75.5%
Taylor expanded in y0 around inf 59.6%
if 1.7000000000000001e292 < b Initial program 25.0%
Taylor expanded in t around inf 75.0%
Taylor expanded in c around 0 100.0%
mul-1-neg100.0%
associate-*r*100.0%
Simplified100.0%
Taylor expanded in y4 around inf 75.4%
Final simplification45.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= y4 -7.5e+38)
t_2
(if (<= y4 -3.3e-161)
t_1
(if (<= y4 -1.6e-232)
(* t (* i (* j (- y5))))
(if (<= y4 7e-279)
(* (* z k) (* i (- y1)))
(if (<= y4 8.6e-188)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y4 2.6e-60)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 1e+38) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y4 <= -7.5e+38) {
tmp = t_2;
} else if (y4 <= -3.3e-161) {
tmp = t_1;
} else if (y4 <= -1.6e-232) {
tmp = t * (i * (j * -y5));
} else if (y4 <= 7e-279) {
tmp = (z * k) * (i * -y1);
} else if (y4 <= 8.6e-188) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y4 <= 2.6e-60) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 1e+38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = c * (y4 * ((y * y3) - (t * y2)))
if (y4 <= (-7.5d+38)) then
tmp = t_2
else if (y4 <= (-3.3d-161)) then
tmp = t_1
else if (y4 <= (-1.6d-232)) then
tmp = t * (i * (j * -y5))
else if (y4 <= 7d-279) then
tmp = (z * k) * (i * -y1)
else if (y4 <= 8.6d-188) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y4 <= 2.6d-60) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 1d+38) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y4 <= -7.5e+38) {
tmp = t_2;
} else if (y4 <= -3.3e-161) {
tmp = t_1;
} else if (y4 <= -1.6e-232) {
tmp = t * (i * (j * -y5));
} else if (y4 <= 7e-279) {
tmp = (z * k) * (i * -y1);
} else if (y4 <= 8.6e-188) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y4 <= 2.6e-60) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 1e+38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) t_2 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if y4 <= -7.5e+38: tmp = t_2 elif y4 <= -3.3e-161: tmp = t_1 elif y4 <= -1.6e-232: tmp = t * (i * (j * -y5)) elif y4 <= 7e-279: tmp = (z * k) * (i * -y1) elif y4 <= 8.6e-188: tmp = c * (t * ((z * i) - (y2 * y4))) elif y4 <= 2.6e-60: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 1e+38: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y4 <= -7.5e+38) tmp = t_2; elseif (y4 <= -3.3e-161) tmp = t_1; elseif (y4 <= -1.6e-232) tmp = Float64(t * Float64(i * Float64(j * Float64(-y5)))); elseif (y4 <= 7e-279) tmp = Float64(Float64(z * k) * Float64(i * Float64(-y1))); elseif (y4 <= 8.6e-188) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y4 <= 2.6e-60) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 1e+38) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); t_2 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (y4 <= -7.5e+38) tmp = t_2; elseif (y4 <= -3.3e-161) tmp = t_1; elseif (y4 <= -1.6e-232) tmp = t * (i * (j * -y5)); elseif (y4 <= 7e-279) tmp = (z * k) * (i * -y1); elseif (y4 <= 8.6e-188) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y4 <= 2.6e-60) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 1e+38) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $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[y4, -7.5e+38], t$95$2, If[LessEqual[y4, -3.3e-161], t$95$1, If[LessEqual[y4, -1.6e-232], N[(t * N[(i * N[(j * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7e-279], N[(N[(z * k), $MachinePrecision] * N[(i * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.6e-188], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.6e-60], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1e+38], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -7.5 \cdot 10^{+38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq -3.3 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.6 \cdot 10^{-232}:\\
\;\;\;\;t \cdot \left(i \cdot \left(j \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 7 \cdot 10^{-279}:\\
\;\;\;\;\left(z \cdot k\right) \cdot \left(i \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;y4 \leq 8.6 \cdot 10^{-188}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 2.6 \cdot 10^{-60}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y4 < -7.4999999999999999e38 or 9.99999999999999977e37 < y4 Initial program 18.0%
Taylor expanded in c around inf 46.5%
Taylor expanded in y4 around inf 51.8%
if -7.4999999999999999e38 < y4 < -3.2999999999999998e-161 or 2.5999999999999998e-60 < y4 < 9.99999999999999977e37Initial program 24.4%
Taylor expanded in c around inf 56.6%
Taylor expanded in y0 around inf 52.7%
if -3.2999999999999998e-161 < y4 < -1.59999999999999993e-232Initial program 31.5%
Taylor expanded in t around inf 50.3%
Taylor expanded in z around 0 44.8%
Taylor expanded in i around inf 45.0%
mul-1-neg45.0%
*-commutative45.0%
distribute-rgt-neg-in45.0%
*-commutative45.0%
Simplified45.0%
if -1.59999999999999993e-232 < y4 < 7.00000000000000019e-279Initial program 33.6%
Taylor expanded in i around -inf 53.4%
Taylor expanded in y1 around inf 40.7%
associate-*r*40.7%
Simplified40.7%
Taylor expanded in k around inf 35.0%
if 7.00000000000000019e-279 < y4 < 8.59999999999999975e-188Initial program 28.3%
Taylor expanded in t around inf 77.9%
Taylor expanded in c around inf 45.3%
if 8.59999999999999975e-188 < y4 < 2.5999999999999998e-60Initial program 39.1%
Taylor expanded in b around inf 61.2%
Taylor expanded in a around inf 48.7%
Final simplification48.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i))))))
(if (<= y -2.9e+158)
(* i (* y5 (- (* y k) (* t j))))
(if (<= y -3.7e+142)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y -8.8e+73)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= y -6e+27)
t_1
(if (<= y -1e-221)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y -1.5e-277)
(* (* t b) (- (* j y4) (* z a)))
(if (<= y 4e+74) (* t (* y2 (- (* a y5) (* c y4)))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double tmp;
if (y <= -2.9e+158) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y <= -3.7e+142) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y <= -8.8e+73) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y <= -6e+27) {
tmp = t_1;
} else if (y <= -1e-221) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -1.5e-277) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (y <= 4e+74) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
if (y <= (-2.9d+158)) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (y <= (-3.7d+142)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y <= (-8.8d+73)) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (y <= (-6d+27)) then
tmp = t_1
else if (y <= (-1d-221)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= (-1.5d-277)) then
tmp = (t * b) * ((j * y4) - (z * a))
else if (y <= 4d+74) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double tmp;
if (y <= -2.9e+158) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y <= -3.7e+142) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y <= -8.8e+73) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y <= -6e+27) {
tmp = t_1;
} else if (y <= -1e-221) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -1.5e-277) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (y <= 4e+74) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) tmp = 0 if y <= -2.9e+158: tmp = i * (y5 * ((y * k) - (t * j))) elif y <= -3.7e+142: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y <= -8.8e+73: tmp = t * (y5 * ((a * y2) - (i * j))) elif y <= -6e+27: tmp = t_1 elif y <= -1e-221: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= -1.5e-277: tmp = (t * b) * ((j * y4) - (z * a)) elif y <= 4e+74: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) tmp = 0.0 if (y <= -2.9e+158) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (y <= -3.7e+142) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y <= -8.8e+73) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (y <= -6e+27) tmp = t_1; elseif (y <= -1e-221) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= -1.5e-277) tmp = Float64(Float64(t * b) * Float64(Float64(j * y4) - Float64(z * a))); elseif (y <= 4e+74) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); tmp = 0.0; if (y <= -2.9e+158) tmp = i * (y5 * ((y * k) - (t * j))); elseif (y <= -3.7e+142) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y <= -8.8e+73) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (y <= -6e+27) tmp = t_1; elseif (y <= -1e-221) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= -1.5e-277) tmp = (t * b) * ((j * y4) - (z * a)); elseif (y <= 4e+74) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.9e+158], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.7e+142], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.8e+73], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6e+27], t$95$1, If[LessEqual[y, -1e-221], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-277], N[(N[(t * b), $MachinePrecision] * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+74], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{+158}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{+142}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;y \leq -6 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1 \cdot 10^{-221}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-277}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.90000000000000024e158Initial program 16.7%
Taylor expanded in i around -inf 58.7%
Taylor expanded in y5 around inf 67.2%
if -2.90000000000000024e158 < y < -3.6999999999999997e142Initial program 42.6%
Taylor expanded in y around inf 42.6%
Taylor expanded in y3 around inf 71.4%
Taylor expanded in y around inf 100.0%
if -3.6999999999999997e142 < y < -8.8e73Initial program 0.0%
Taylor expanded in t around inf 57.3%
Taylor expanded in y5 around -inf 50.8%
mul-1-neg50.8%
Simplified50.8%
if -8.8e73 < y < -5.99999999999999953e27 or 3.99999999999999981e74 < y Initial program 20.7%
Taylor expanded in c around inf 41.9%
Taylor expanded in y around -inf 56.5%
associate-*r*56.5%
neg-mul-156.5%
Simplified56.5%
if -5.99999999999999953e27 < y < -1.00000000000000002e-221Initial program 30.6%
Taylor expanded in t around inf 44.5%
Taylor expanded in c around inf 48.5%
if -1.00000000000000002e-221 < y < -1.49999999999999989e-277Initial program 27.1%
Taylor expanded in t around inf 64.2%
Taylor expanded in c around 0 55.6%
mul-1-neg55.6%
associate-*r*64.4%
Simplified64.4%
Taylor expanded in b around inf 56.3%
associate-*r*56.3%
*-commutative56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
if -1.49999999999999989e-277 < y < 3.99999999999999981e74Initial program 28.8%
Taylor expanded in t around inf 47.3%
Taylor expanded in y2 around inf 42.9%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -2.7e-51)
(* a (* b (* t (- (* x (/ y t)) z))))
(if (<= z -3.7e-246)
(* (- (* b y4) (* i y5)) (* t j))
(if (<= z 3.25e-140)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= z 1.8e-49)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= z 5.3e+19)
(* x (* y (- (* a b) (* c i))))
(if (<= z 1.12e+100)
(* i (* t (- (* z c) (* j y5))))
(if (<= z 7e+210)
(* i (* k (* z (- y1))))
(* c (* y3 (- (* y y4) (* z y0))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2.7e-51) {
tmp = a * (b * (t * ((x * (y / t)) - z)));
} else if (z <= -3.7e-246) {
tmp = ((b * y4) - (i * y5)) * (t * j);
} else if (z <= 3.25e-140) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 1.8e-49) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (z <= 5.3e+19) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (z <= 1.12e+100) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (z <= 7e+210) {
tmp = i * (k * (z * -y1));
} else {
tmp = c * (y3 * ((y * y4) - (z * y0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-2.7d-51)) then
tmp = a * (b * (t * ((x * (y / t)) - z)))
else if (z <= (-3.7d-246)) then
tmp = ((b * y4) - (i * y5)) * (t * j)
else if (z <= 3.25d-140) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (z <= 1.8d-49) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (z <= 5.3d+19) then
tmp = x * (y * ((a * b) - (c * i)))
else if (z <= 1.12d+100) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (z <= 7d+210) then
tmp = i * (k * (z * -y1))
else
tmp = c * (y3 * ((y * y4) - (z * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2.7e-51) {
tmp = a * (b * (t * ((x * (y / t)) - z)));
} else if (z <= -3.7e-246) {
tmp = ((b * y4) - (i * y5)) * (t * j);
} else if (z <= 3.25e-140) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 1.8e-49) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (z <= 5.3e+19) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (z <= 1.12e+100) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (z <= 7e+210) {
tmp = i * (k * (z * -y1));
} else {
tmp = c * (y3 * ((y * y4) - (z * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -2.7e-51: tmp = a * (b * (t * ((x * (y / t)) - z))) elif z <= -3.7e-246: tmp = ((b * y4) - (i * y5)) * (t * j) elif z <= 3.25e-140: tmp = c * (y4 * ((y * y3) - (t * y2))) elif z <= 1.8e-49: tmp = c * (y0 * ((x * y2) - (z * y3))) elif z <= 5.3e+19: tmp = x * (y * ((a * b) - (c * i))) elif z <= 1.12e+100: tmp = i * (t * ((z * c) - (j * y5))) elif z <= 7e+210: tmp = i * (k * (z * -y1)) else: tmp = c * (y3 * ((y * y4) - (z * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -2.7e-51) tmp = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))); elseif (z <= -3.7e-246) tmp = Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(t * j)); elseif (z <= 3.25e-140) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (z <= 1.8e-49) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (z <= 5.3e+19) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (z <= 1.12e+100) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (z <= 7e+210) tmp = Float64(i * Float64(k * Float64(z * Float64(-y1)))); else tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -2.7e-51) tmp = a * (b * (t * ((x * (y / t)) - z))); elseif (z <= -3.7e-246) tmp = ((b * y4) - (i * y5)) * (t * j); elseif (z <= 3.25e-140) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (z <= 1.8e-49) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (z <= 5.3e+19) tmp = x * (y * ((a * b) - (c * i))); elseif (z <= 1.12e+100) tmp = i * (t * ((z * c) - (j * y5))); elseif (z <= 7e+210) tmp = i * (k * (z * -y1)); else tmp = c * (y3 * ((y * y4) - (z * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -2.7e-51], N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.7e-246], N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.25e-140], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-49], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e+19], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.12e+100], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+210], N[(i * N[(k * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-51}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{-246}:\\
\;\;\;\;\left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 3.25 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-49}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{+19}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{+100}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+210}:\\
\;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\end{array}
\end{array}
if z < -2.6999999999999997e-51Initial program 20.3%
Taylor expanded in b around inf 48.2%
Taylor expanded in a around inf 42.9%
Taylor expanded in t around inf 45.8%
associate-/l*47.1%
Simplified47.1%
if -2.6999999999999997e-51 < z < -3.7e-246Initial program 32.5%
Taylor expanded in t around inf 52.4%
Taylor expanded in j around inf 44.6%
associate-*r*44.6%
Simplified44.6%
if -3.7e-246 < z < 3.2499999999999998e-140Initial program 23.8%
Taylor expanded in c around inf 50.7%
Taylor expanded in y4 around inf 44.0%
if 3.2499999999999998e-140 < z < 1.79999999999999985e-49Initial program 28.4%
Taylor expanded in c around inf 56.3%
Taylor expanded in y0 around inf 41.6%
if 1.79999999999999985e-49 < z < 5.3e19Initial program 7.7%
Taylor expanded in y around inf 38.5%
Taylor expanded in x around inf 46.9%
if 5.3e19 < z < 1.12e100Initial program 14.2%
Taylor expanded in t around inf 51.1%
Taylor expanded in c around 0 42.4%
mul-1-neg42.4%
associate-*r*46.9%
Simplified46.9%
Taylor expanded in i around -inf 59.6%
mul-1-neg59.6%
*-commutative59.6%
distribute-rgt-neg-in59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
*-commutative59.6%
*-commutative59.6%
Simplified59.6%
if 1.12e100 < z < 6.9999999999999999e210Initial program 34.4%
Taylor expanded in i around -inf 66.1%
Taylor expanded in y1 around inf 66.4%
associate-*r*63.0%
Simplified63.0%
Taylor expanded in k around inf 66.4%
if 6.9999999999999999e210 < z Initial program 31.9%
Taylor expanded in c around inf 37.3%
Taylor expanded in y3 around -inf 58.6%
mul-1-neg58.6%
Simplified58.6%
Final simplification49.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* i (* z t)))) (t_2 (* c (* y4 (* t (- y2))))))
(if (<= z -4.5e+125)
t_1
(if (<= z -1.85e-28)
(* a (* y (* x b)))
(if (<= z 6.4e-258)
(* t (* y4 (* b j)))
(if (<= z 8.8e-219)
t_2
(if (<= z 1.15e-140)
(* c (* y (* y3 y4)))
(if (<= z 1.22e+72)
t_2
(if (<= z 2.2e+140) t_1 (* a (* b (* 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 = c * (i * (z * t));
double t_2 = c * (y4 * (t * -y2));
double tmp;
if (z <= -4.5e+125) {
tmp = t_1;
} else if (z <= -1.85e-28) {
tmp = a * (y * (x * b));
} else if (z <= 6.4e-258) {
tmp = t * (y4 * (b * j));
} else if (z <= 8.8e-219) {
tmp = t_2;
} else if (z <= 1.15e-140) {
tmp = c * (y * (y3 * y4));
} else if (z <= 1.22e+72) {
tmp = t_2;
} else if (z <= 2.2e+140) {
tmp = t_1;
} else {
tmp = a * (b * (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 = c * (i * (z * t))
t_2 = c * (y4 * (t * -y2))
if (z <= (-4.5d+125)) then
tmp = t_1
else if (z <= (-1.85d-28)) then
tmp = a * (y * (x * b))
else if (z <= 6.4d-258) then
tmp = t * (y4 * (b * j))
else if (z <= 8.8d-219) then
tmp = t_2
else if (z <= 1.15d-140) then
tmp = c * (y * (y3 * y4))
else if (z <= 1.22d+72) then
tmp = t_2
else if (z <= 2.2d+140) then
tmp = t_1
else
tmp = a * (b * (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 = c * (i * (z * t));
double t_2 = c * (y4 * (t * -y2));
double tmp;
if (z <= -4.5e+125) {
tmp = t_1;
} else if (z <= -1.85e-28) {
tmp = a * (y * (x * b));
} else if (z <= 6.4e-258) {
tmp = t * (y4 * (b * j));
} else if (z <= 8.8e-219) {
tmp = t_2;
} else if (z <= 1.15e-140) {
tmp = c * (y * (y3 * y4));
} else if (z <= 1.22e+72) {
tmp = t_2;
} else if (z <= 2.2e+140) {
tmp = t_1;
} else {
tmp = a * (b * (z * -t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (i * (z * t)) t_2 = c * (y4 * (t * -y2)) tmp = 0 if z <= -4.5e+125: tmp = t_1 elif z <= -1.85e-28: tmp = a * (y * (x * b)) elif z <= 6.4e-258: tmp = t * (y4 * (b * j)) elif z <= 8.8e-219: tmp = t_2 elif z <= 1.15e-140: tmp = c * (y * (y3 * y4)) elif z <= 1.22e+72: tmp = t_2 elif z <= 2.2e+140: tmp = t_1 else: tmp = a * (b * (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(c * Float64(i * Float64(z * t))) t_2 = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))) tmp = 0.0 if (z <= -4.5e+125) tmp = t_1; elseif (z <= -1.85e-28) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (z <= 6.4e-258) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (z <= 8.8e-219) tmp = t_2; elseif (z <= 1.15e-140) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (z <= 1.22e+72) tmp = t_2; elseif (z <= 2.2e+140) tmp = t_1; else tmp = Float64(a * Float64(b * Float64(z * Float64(-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 = c * (i * (z * t)); t_2 = c * (y4 * (t * -y2)); tmp = 0.0; if (z <= -4.5e+125) tmp = t_1; elseif (z <= -1.85e-28) tmp = a * (y * (x * b)); elseif (z <= 6.4e-258) tmp = t * (y4 * (b * j)); elseif (z <= 8.8e-219) tmp = t_2; elseif (z <= 1.15e-140) tmp = c * (y * (y3 * y4)); elseif (z <= 1.22e+72) tmp = t_2; elseif (z <= 2.2e+140) tmp = t_1; else tmp = a * (b * (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[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+125], t$95$1, If[LessEqual[z, -1.85e-28], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e-258], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.8e-219], t$95$2, If[LessEqual[z, 1.15e-140], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e+72], t$95$2, If[LessEqual[z, 2.2e+140], t$95$1, N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-28}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-258}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-219}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{+72}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+140}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\end{array}
\end{array}
if z < -4.5e125 or 1.2200000000000001e72 < z < 2.1999999999999998e140Initial program 24.5%
Taylor expanded in t around inf 42.7%
Taylor expanded in c around 0 46.4%
mul-1-neg46.4%
associate-*r*44.6%
Simplified44.6%
Taylor expanded in c around inf 43.3%
if -4.5e125 < z < -1.8500000000000001e-28Initial program 21.4%
Taylor expanded in b around inf 47.2%
Taylor expanded in a around inf 43.8%
Taylor expanded in x around inf 33.2%
associate-*r*36.6%
Simplified36.6%
if -1.8500000000000001e-28 < z < 6.4000000000000004e-258Initial program 25.9%
Taylor expanded in t around inf 45.9%
Taylor expanded in z around 0 42.5%
Taylor expanded in b around inf 30.9%
associate-*r*35.9%
*-commutative35.9%
Simplified35.9%
if 6.4000000000000004e-258 < z < 8.7999999999999998e-219 or 1.1500000000000001e-140 < z < 1.2200000000000001e72Initial program 16.8%
Taylor expanded in t around inf 47.8%
Taylor expanded in z around 0 44.3%
Taylor expanded in c around inf 28.7%
mul-1-neg28.7%
distribute-rgt-neg-in28.7%
associate-*r*30.5%
distribute-rgt-neg-in30.5%
Simplified30.5%
if 8.7999999999999998e-219 < z < 1.1500000000000001e-140Initial program 34.9%
Taylor expanded in y around inf 30.0%
Taylor expanded in y3 around inf 35.6%
Taylor expanded in c around inf 41.0%
*-commutative41.0%
Simplified41.0%
if 2.1999999999999998e140 < z Initial program 31.7%
Taylor expanded in b around inf 40.2%
Taylor expanded in a around inf 48.5%
Taylor expanded in x around 0 43.3%
associate-*r*43.3%
mul-1-neg43.3%
Simplified43.3%
Final simplification38.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* (* x y) (- i)))))
(if (<= y -3e+109)
(* i (* j (* t (- y5))))
(if (<= y -2.7e+38)
t_1
(if (<= y -4e-17)
(* t (* b (* j y4)))
(if (<= y -1.78e-130)
(* (* c i) (* z t))
(if (<= y 3.1e-276)
(* a (* b (* z (- t))))
(if (<= y 5.7e-230)
(* (* c (* y2 y4)) (- t))
(if (<= y 3.3e+72) (* t (* a (* y2 y5))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((x * y) * -i);
double tmp;
if (y <= -3e+109) {
tmp = i * (j * (t * -y5));
} else if (y <= -2.7e+38) {
tmp = t_1;
} else if (y <= -4e-17) {
tmp = t * (b * (j * y4));
} else if (y <= -1.78e-130) {
tmp = (c * i) * (z * t);
} else if (y <= 3.1e-276) {
tmp = a * (b * (z * -t));
} else if (y <= 5.7e-230) {
tmp = (c * (y2 * y4)) * -t;
} else if (y <= 3.3e+72) {
tmp = t * (a * (y2 * y5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((x * y) * -i)
if (y <= (-3d+109)) then
tmp = i * (j * (t * -y5))
else if (y <= (-2.7d+38)) then
tmp = t_1
else if (y <= (-4d-17)) then
tmp = t * (b * (j * y4))
else if (y <= (-1.78d-130)) then
tmp = (c * i) * (z * t)
else if (y <= 3.1d-276) then
tmp = a * (b * (z * -t))
else if (y <= 5.7d-230) then
tmp = (c * (y2 * y4)) * -t
else if (y <= 3.3d+72) then
tmp = t * (a * (y2 * y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((x * y) * -i);
double tmp;
if (y <= -3e+109) {
tmp = i * (j * (t * -y5));
} else if (y <= -2.7e+38) {
tmp = t_1;
} else if (y <= -4e-17) {
tmp = t * (b * (j * y4));
} else if (y <= -1.78e-130) {
tmp = (c * i) * (z * t);
} else if (y <= 3.1e-276) {
tmp = a * (b * (z * -t));
} else if (y <= 5.7e-230) {
tmp = (c * (y2 * y4)) * -t;
} else if (y <= 3.3e+72) {
tmp = t * (a * (y2 * y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * ((x * y) * -i) tmp = 0 if y <= -3e+109: tmp = i * (j * (t * -y5)) elif y <= -2.7e+38: tmp = t_1 elif y <= -4e-17: tmp = t * (b * (j * y4)) elif y <= -1.78e-130: tmp = (c * i) * (z * t) elif y <= 3.1e-276: tmp = a * (b * (z * -t)) elif y <= 5.7e-230: tmp = (c * (y2 * y4)) * -t elif y <= 3.3e+72: tmp = t * (a * (y2 * y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(x * y) * Float64(-i))) tmp = 0.0 if (y <= -3e+109) tmp = Float64(i * Float64(j * Float64(t * Float64(-y5)))); elseif (y <= -2.7e+38) tmp = t_1; elseif (y <= -4e-17) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (y <= -1.78e-130) tmp = Float64(Float64(c * i) * Float64(z * t)); elseif (y <= 3.1e-276) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (y <= 5.7e-230) tmp = Float64(Float64(c * Float64(y2 * y4)) * Float64(-t)); elseif (y <= 3.3e+72) tmp = Float64(t * Float64(a * Float64(y2 * y5))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * ((x * y) * -i); tmp = 0.0; if (y <= -3e+109) tmp = i * (j * (t * -y5)); elseif (y <= -2.7e+38) tmp = t_1; elseif (y <= -4e-17) tmp = t * (b * (j * y4)); elseif (y <= -1.78e-130) tmp = (c * i) * (z * t); elseif (y <= 3.1e-276) tmp = a * (b * (z * -t)); elseif (y <= 5.7e-230) tmp = (c * (y2 * y4)) * -t; elseif (y <= 3.3e+72) tmp = t * (a * (y2 * y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(x * y), $MachinePrecision] * (-i)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+109], N[(i * N[(j * N[(t * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.7e+38], t$95$1, If[LessEqual[y, -4e-17], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.78e-130], N[(N[(c * i), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e-276], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.7e-230], N[(N[(c * N[(y2 * y4), $MachinePrecision]), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[y, 3.3e+72], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(\left(x \cdot y\right) \cdot \left(-i\right)\right)\\
\mathbf{if}\;y \leq -3 \cdot 10^{+109}:\\
\;\;\;\;i \cdot \left(j \cdot \left(t \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y \leq -2.7 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-17}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -1.78 \cdot 10^{-130}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \left(z \cdot t\right)\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-276}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{-230}:\\
\;\;\;\;\left(c \cdot \left(y2 \cdot y4\right)\right) \cdot \left(-t\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+72}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.00000000000000015e109Initial program 18.9%
Taylor expanded in t around inf 46.2%
Taylor expanded in z around 0 43.5%
Taylor expanded in i around inf 39.4%
mul-1-neg39.4%
distribute-rgt-neg-in39.4%
*-commutative39.4%
distribute-rgt-neg-in39.4%
Simplified39.4%
if -3.00000000000000015e109 < y < -2.69999999999999996e38 or 3.3e72 < y Initial program 18.7%
Taylor expanded in y around inf 27.5%
Taylor expanded in x around inf 42.4%
Taylor expanded in a around 0 43.8%
associate-*r*43.8%
neg-mul-143.8%
Simplified43.8%
if -2.69999999999999996e38 < y < -4.00000000000000029e-17Initial program 36.4%
Taylor expanded in t around inf 73.6%
Taylor expanded in z around 0 64.2%
Taylor expanded in b around inf 64.0%
*-commutative64.0%
Simplified64.0%
if -4.00000000000000029e-17 < y < -1.78e-130Initial program 34.6%
Taylor expanded in t around inf 32.2%
Taylor expanded in c around 0 27.9%
mul-1-neg27.9%
associate-*r*27.9%
Simplified27.9%
Taylor expanded in c around inf 27.9%
associate-*r*28.1%
Simplified28.1%
if -1.78e-130 < y < 3.09999999999999989e-276Initial program 19.1%
Taylor expanded in b around inf 35.8%
Taylor expanded in a around inf 32.5%
Taylor expanded in x around 0 32.4%
associate-*r*32.4%
mul-1-neg32.4%
Simplified32.4%
if 3.09999999999999989e-276 < y < 5.69999999999999968e-230Initial program 30.8%
Taylor expanded in t around inf 61.6%
Taylor expanded in z around 0 69.8%
Taylor expanded in c around inf 54.9%
associate-*r*54.9%
neg-mul-154.9%
Simplified54.9%
if 5.69999999999999968e-230 < y < 3.3e72Initial program 30.2%
Taylor expanded in t around inf 48.6%
Taylor expanded in z around 0 49.7%
Taylor expanded in a around inf 34.1%
Final simplification39.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 (* t (- (* x (/ y t)) z)))))
(t_2 (* i (* z (- (* t c) (* k y1))))))
(if (<= z -7.5e+67)
t_2
(if (<= z -1.1e-56)
t_1
(if (<= z -6.8e-249)
(* (- (* b y4) (* i y5)) (* t j))
(if (<= z 1.2e-128)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= z 7.5e+74)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= z 1.5e+220) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double tmp;
if (z <= -7.5e+67) {
tmp = t_2;
} else if (z <= -1.1e-56) {
tmp = t_1;
} else if (z <= -6.8e-249) {
tmp = ((b * y4) - (i * y5)) * (t * j);
} else if (z <= 1.2e-128) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 7.5e+74) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.5e+220) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * (t * ((x * (y / t)) - z)))
t_2 = i * (z * ((t * c) - (k * y1)))
if (z <= (-7.5d+67)) then
tmp = t_2
else if (z <= (-1.1d-56)) then
tmp = t_1
else if (z <= (-6.8d-249)) then
tmp = ((b * y4) - (i * y5)) * (t * j)
else if (z <= 1.2d-128) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (z <= 7.5d+74) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (z <= 1.5d+220) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (t * ((x * (y / t)) - z)));
double t_2 = i * (z * ((t * c) - (k * y1)));
double tmp;
if (z <= -7.5e+67) {
tmp = t_2;
} else if (z <= -1.1e-56) {
tmp = t_1;
} else if (z <= -6.8e-249) {
tmp = ((b * y4) - (i * y5)) * (t * j);
} else if (z <= 1.2e-128) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 7.5e+74) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.5e+220) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (t * ((x * (y / t)) - z))) t_2 = i * (z * ((t * c) - (k * y1))) tmp = 0 if z <= -7.5e+67: tmp = t_2 elif z <= -1.1e-56: tmp = t_1 elif z <= -6.8e-249: tmp = ((b * y4) - (i * y5)) * (t * j) elif z <= 1.2e-128: tmp = c * (y4 * ((y * y3) - (t * y2))) elif z <= 7.5e+74: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif z <= 1.5e+220: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))) t_2 = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))) tmp = 0.0 if (z <= -7.5e+67) tmp = t_2; elseif (z <= -1.1e-56) tmp = t_1; elseif (z <= -6.8e-249) tmp = Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(t * j)); elseif (z <= 1.2e-128) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (z <= 7.5e+74) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (z <= 1.5e+220) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (t * ((x * (y / t)) - z))); t_2 = i * (z * ((t * c) - (k * y1))); tmp = 0.0; if (z <= -7.5e+67) tmp = t_2; elseif (z <= -1.1e-56) tmp = t_1; elseif (z <= -6.8e-249) tmp = ((b * y4) - (i * y5)) * (t * j); elseif (z <= 1.2e-128) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (z <= 7.5e+74) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (z <= 1.5e+220) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+67], t$95$2, If[LessEqual[z, -1.1e-56], t$95$1, If[LessEqual[z, -6.8e-249], N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e-128], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+74], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+220], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
t_2 := i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+67}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-249}:\\
\;\;\;\;\left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-128}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+220}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.5000000000000005e67 or 7.5e74 < z < 1.50000000000000012e220Initial program 24.9%
Taylor expanded in i around -inf 45.5%
Taylor expanded in z around -inf 61.9%
associate-*r*61.9%
neg-mul-161.9%
Simplified61.9%
if -7.5000000000000005e67 < z < -1.10000000000000002e-56 or 1.50000000000000012e220 < z Initial program 23.9%
Taylor expanded in b around inf 55.7%
Taylor expanded in a around inf 51.1%
Taylor expanded in t around inf 51.1%
associate-/l*56.2%
Simplified56.2%
if -1.10000000000000002e-56 < z < -6.7999999999999996e-249Initial program 32.5%
Taylor expanded in t around inf 52.4%
Taylor expanded in j around inf 44.6%
associate-*r*44.6%
Simplified44.6%
if -6.7999999999999996e-249 < z < 1.1999999999999999e-128Initial program 26.1%
Taylor expanded in c around inf 50.7%
Taylor expanded in y4 around inf 42.4%
if 1.1999999999999999e-128 < z < 7.5e74Initial program 17.5%
Taylor expanded in t around inf 57.9%
Taylor expanded in y2 around inf 41.4%
Taylor expanded in c around inf 45.5%
associate-/l*49.8%
Simplified49.8%
Final simplification52.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -2.3e+159)
(* a (* b (- (* x y) (* z t))))
(if (<= b -98.0)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b -9e-261)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= b 1.35e-90)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= b 4.8e-10)
(* c (* y (* y3 y4)))
(if (<= b 5.5e+98)
(* b (* y4 (- (* t j) (* y k))))
(if (<= b 4.1e+118)
(* (* x b) (* y a))
(* t (* y4 (* b j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -2.3e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= -98.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= -9e-261) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (b <= 1.35e-90) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (b <= 4.8e-10) {
tmp = c * (y * (y3 * y4));
} else if (b <= 5.5e+98) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (b <= 4.1e+118) {
tmp = (x * b) * (y * a);
} else {
tmp = t * (y4 * (b * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-2.3d+159)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (b <= (-98.0d0)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= (-9d-261)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (b <= 1.35d-90) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (b <= 4.8d-10) then
tmp = c * (y * (y3 * y4))
else if (b <= 5.5d+98) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (b <= 4.1d+118) then
tmp = (x * b) * (y * a)
else
tmp = t * (y4 * (b * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -2.3e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= -98.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= -9e-261) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (b <= 1.35e-90) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (b <= 4.8e-10) {
tmp = c * (y * (y3 * y4));
} else if (b <= 5.5e+98) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (b <= 4.1e+118) {
tmp = (x * b) * (y * a);
} else {
tmp = t * (y4 * (b * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -2.3e+159: tmp = a * (b * ((x * y) - (z * t))) elif b <= -98.0: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= -9e-261: tmp = c * (t * ((z * i) - (y2 * y4))) elif b <= 1.35e-90: tmp = c * (y2 * ((x * y0) - (t * y4))) elif b <= 4.8e-10: tmp = c * (y * (y3 * y4)) elif b <= 5.5e+98: tmp = b * (y4 * ((t * j) - (y * k))) elif b <= 4.1e+118: tmp = (x * b) * (y * a) else: tmp = t * (y4 * (b * j)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -2.3e+159) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (b <= -98.0) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= -9e-261) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (b <= 1.35e-90) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (b <= 4.8e-10) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (b <= 5.5e+98) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= 4.1e+118) tmp = Float64(Float64(x * b) * Float64(y * a)); else tmp = Float64(t * Float64(y4 * Float64(b * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -2.3e+159) tmp = a * (b * ((x * y) - (z * t))); elseif (b <= -98.0) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= -9e-261) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (b <= 1.35e-90) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (b <= 4.8e-10) tmp = c * (y * (y3 * y4)); elseif (b <= 5.5e+98) tmp = b * (y4 * ((t * j) - (y * k))); elseif (b <= 4.1e+118) tmp = (x * b) * (y * a); else tmp = t * (y4 * (b * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -2.3e+159], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -98.0], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9e-261], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.35e-90], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.8e-10], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e+98], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.1e+118], N[(N[(x * b), $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.3 \cdot 10^{+159}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq -98:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-261}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-90}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-10}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+98}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{+118}:\\
\;\;\;\;\left(x \cdot b\right) \cdot \left(y \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\end{array}
\end{array}
if b < -2.29999999999999995e159Initial program 17.1%
Taylor expanded in b around inf 63.1%
Taylor expanded in a around inf 55.1%
if -2.29999999999999995e159 < b < -98Initial program 21.7%
Taylor expanded in c around inf 52.2%
Taylor expanded in y0 around inf 39.4%
if -98 < b < -9.0000000000000002e-261Initial program 32.8%
Taylor expanded in t around inf 41.9%
Taylor expanded in c around inf 41.5%
if -9.0000000000000002e-261 < b < 1.34999999999999998e-90Initial program 19.1%
Taylor expanded in c around inf 32.8%
Taylor expanded in y2 around inf 39.6%
if 1.34999999999999998e-90 < b < 4.8e-10Initial program 25.4%
Taylor expanded in y around inf 31.5%
Taylor expanded in y3 around inf 32.2%
Taylor expanded in c around inf 57.0%
*-commutative57.0%
Simplified57.0%
if 4.8e-10 < b < 5.49999999999999946e98Initial program 30.8%
Taylor expanded in b around inf 45.4%
Taylor expanded in y4 around inf 49.8%
if 5.49999999999999946e98 < b < 4.0999999999999997e118Initial program 16.7%
Taylor expanded in b around inf 33.4%
Taylor expanded in a around inf 67.0%
Taylor expanded in x around inf 67.0%
pow167.0%
associate-*r*67.0%
Applied egg-rr67.0%
unpow167.0%
*-commutative67.0%
associate-*r*67.1%
Simplified67.1%
if 4.0999999999999997e118 < b Initial program 27.6%
Taylor expanded in t around inf 55.3%
Taylor expanded in z around 0 52.8%
Taylor expanded in b around inf 46.1%
associate-*r*50.9%
*-commutative50.9%
Simplified50.9%
Final simplification46.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* t (- (* z i) (* y2 y4))))))
(if (<= b -5e+159)
(* a (* b (- (* x y) (* z t))))
(if (<= b 1.12e-237)
t_1
(if (<= b 4e-96)
(* z (* (* i k) (- y1)))
(if (<= b 6.4e-15)
t_1
(if (<= b 5.5e+254)
(* b (* y4 (- (* t j) (* y k))))
(if (<= b 2.4e+292)
(* b (* y0 (- (* z k) (* x j))))
(* b (* j (* t y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * ((z * i) - (y2 * y4)));
double tmp;
if (b <= -5e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= 1.12e-237) {
tmp = t_1;
} else if (b <= 4e-96) {
tmp = z * ((i * k) * -y1);
} else if (b <= 6.4e-15) {
tmp = t_1;
} else if (b <= 5.5e+254) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (b <= 2.4e+292) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * ((z * i) - (y2 * y4)))
if (b <= (-5d+159)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (b <= 1.12d-237) then
tmp = t_1
else if (b <= 4d-96) then
tmp = z * ((i * k) * -y1)
else if (b <= 6.4d-15) then
tmp = t_1
else if (b <= 5.5d+254) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (b <= 2.4d+292) then
tmp = b * (y0 * ((z * k) - (x * j)))
else
tmp = b * (j * (t * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * ((z * i) - (y2 * y4)));
double tmp;
if (b <= -5e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= 1.12e-237) {
tmp = t_1;
} else if (b <= 4e-96) {
tmp = z * ((i * k) * -y1);
} else if (b <= 6.4e-15) {
tmp = t_1;
} else if (b <= 5.5e+254) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (b <= 2.4e+292) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (t * ((z * i) - (y2 * y4))) tmp = 0 if b <= -5e+159: tmp = a * (b * ((x * y) - (z * t))) elif b <= 1.12e-237: tmp = t_1 elif b <= 4e-96: tmp = z * ((i * k) * -y1) elif b <= 6.4e-15: tmp = t_1 elif b <= 5.5e+254: tmp = b * (y4 * ((t * j) - (y * k))) elif b <= 2.4e+292: tmp = b * (y0 * ((z * k) - (x * j))) else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))) tmp = 0.0 if (b <= -5e+159) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (b <= 1.12e-237) tmp = t_1; elseif (b <= 4e-96) tmp = Float64(z * Float64(Float64(i * k) * Float64(-y1))); elseif (b <= 6.4e-15) tmp = t_1; elseif (b <= 5.5e+254) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (b <= 2.4e+292) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); else tmp = Float64(b * Float64(j * Float64(t * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (t * ((z * i) - (y2 * y4))); tmp = 0.0; if (b <= -5e+159) tmp = a * (b * ((x * y) - (z * t))); elseif (b <= 1.12e-237) tmp = t_1; elseif (b <= 4e-96) tmp = z * ((i * k) * -y1); elseif (b <= 6.4e-15) tmp = t_1; elseif (b <= 5.5e+254) tmp = b * (y4 * ((t * j) - (y * k))); elseif (b <= 2.4e+292) tmp = b * (y0 * ((z * k) - (x * j))); else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e+159], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.12e-237], t$95$1, If[LessEqual[b, 4e-96], N[(z * N[(N[(i * k), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e-15], t$95$1, If[LessEqual[b, 5.5e+254], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e+292], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{+159}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq 1.12 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-96}:\\
\;\;\;\;z \cdot \left(\left(i \cdot k\right) \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+254}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+292}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if b < -5.00000000000000003e159Initial program 17.1%
Taylor expanded in b around inf 63.1%
Taylor expanded in a around inf 55.1%
if -5.00000000000000003e159 < b < 1.12000000000000002e-237 or 3.9999999999999996e-96 < b < 6.3999999999999999e-15Initial program 27.0%
Taylor expanded in t around inf 39.7%
Taylor expanded in c around inf 38.0%
if 1.12000000000000002e-237 < b < 3.9999999999999996e-96Initial program 14.3%
Taylor expanded in i around -inf 42.9%
Taylor expanded in y1 around inf 34.3%
associate-*r*25.5%
Simplified25.5%
Taylor expanded in k around inf 29.8%
associate-*r*20.7%
associate-*r*34.9%
Simplified34.9%
if 6.3999999999999999e-15 < b < 5.50000000000000004e254Initial program 20.6%
Taylor expanded in b around inf 45.6%
Taylor expanded in y4 around inf 47.5%
if 5.50000000000000004e254 < b < 2.40000000000000012e292Initial program 58.3%
Taylor expanded in b around inf 75.5%
Taylor expanded in y0 around inf 59.6%
if 2.40000000000000012e292 < b Initial program 25.0%
Taylor expanded in t around inf 75.0%
Taylor expanded in c around 0 100.0%
mul-1-neg100.0%
associate-*r*100.0%
Simplified100.0%
Taylor expanded in y4 around inf 75.4%
Final simplification43.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -2.6e+159)
(* a (* b (- (* x y) (* z t))))
(if (<= b -122.0)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b -2.1e-261)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= b 1.6e-88)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= b 8.5e-9)
(* c (* y (* y3 y4)))
(if (<= b 7e+76)
(* b (* y4 (- (* t j) (* y k))))
(* j (* t (- (* b y4) (* i 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 (b <= -2.6e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= -122.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= -2.1e-261) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (b <= 1.6e-88) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (b <= 8.5e-9) {
tmp = c * (y * (y3 * y4));
} else if (b <= 7e+76) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = j * (t * ((b * y4) - (i * 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 (b <= (-2.6d+159)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (b <= (-122.0d0)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= (-2.1d-261)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (b <= 1.6d-88) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (b <= 8.5d-9) then
tmp = c * (y * (y3 * y4))
else if (b <= 7d+76) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = j * (t * ((b * y4) - (i * 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 (b <= -2.6e+159) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (b <= -122.0) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= -2.1e-261) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (b <= 1.6e-88) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (b <= 8.5e-9) {
tmp = c * (y * (y3 * y4));
} else if (b <= 7e+76) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = j * (t * ((b * y4) - (i * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -2.6e+159: tmp = a * (b * ((x * y) - (z * t))) elif b <= -122.0: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= -2.1e-261: tmp = c * (t * ((z * i) - (y2 * y4))) elif b <= 1.6e-88: tmp = c * (y2 * ((x * y0) - (t * y4))) elif b <= 8.5e-9: tmp = c * (y * (y3 * y4)) elif b <= 7e+76: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = j * (t * ((b * y4) - (i * 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 (b <= -2.6e+159) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (b <= -122.0) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= -2.1e-261) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (b <= 1.6e-88) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (b <= 8.5e-9) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (b <= 7e+76) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * 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 (b <= -2.6e+159) tmp = a * (b * ((x * y) - (z * t))); elseif (b <= -122.0) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= -2.1e-261) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (b <= 1.6e-88) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (b <= 8.5e-9) tmp = c * (y * (y3 * y4)); elseif (b <= 7e+76) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = j * (t * ((b * y4) - (i * 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[b, -2.6e+159], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -122.0], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-261], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e-88], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e-9], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+76], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+159}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq -122:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-261}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-88}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-9}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+76}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\end{array}
\end{array}
if b < -2.6e159Initial program 17.1%
Taylor expanded in b around inf 63.1%
Taylor expanded in a around inf 55.1%
if -2.6e159 < b < -122Initial program 21.7%
Taylor expanded in c around inf 52.2%
Taylor expanded in y0 around inf 39.4%
if -122 < b < -2.09999999999999996e-261Initial program 32.8%
Taylor expanded in t around inf 41.9%
Taylor expanded in c around inf 41.5%
if -2.09999999999999996e-261 < b < 1.60000000000000006e-88Initial program 19.1%
Taylor expanded in c around inf 32.8%
Taylor expanded in y2 around inf 39.6%
if 1.60000000000000006e-88 < b < 8.5e-9Initial program 25.4%
Taylor expanded in y around inf 31.5%
Taylor expanded in y3 around inf 32.2%
Taylor expanded in c around inf 57.0%
*-commutative57.0%
Simplified57.0%
if 8.5e-9 < b < 7.00000000000000001e76Initial program 27.7%
Taylor expanded in b around inf 46.6%
Taylor expanded in y4 around inf 46.8%
if 7.00000000000000001e76 < b Initial program 27.7%
Taylor expanded in t around inf 57.2%
Taylor expanded in j around inf 51.5%
Final simplification46.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1e+102)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y -6.2e+27)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y -6.4e-239)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y 1e-248)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y 2.3e-133)
(* y0 (* k (* y5 (- y2))))
(if (<= y 5.7e+72)
(* t (* y2 (- (* a y5) (* c y4))))
(* x (* y (- (* a b) (* c i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1e+102) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -6.2e+27) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y <= -6.4e-239) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 1e-248) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 2.3e-133) {
tmp = y0 * (k * (y5 * -y2));
} else if (y <= 5.7e+72) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1d+102)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y <= (-6.2d+27)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y <= (-6.4d-239)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= 1d-248) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y <= 2.3d-133) then
tmp = y0 * (k * (y5 * -y2))
else if (y <= 5.7d+72) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = x * (y * ((a * b) - (c * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1e+102) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -6.2e+27) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y <= -6.4e-239) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 1e-248) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 2.3e-133) {
tmp = y0 * (k * (y5 * -y2));
} else if (y <= 5.7e+72) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1e+102: tmp = b * (y4 * ((t * j) - (y * k))) elif y <= -6.2e+27: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y <= -6.4e-239: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= 1e-248: tmp = j * (t * ((b * y4) - (i * y5))) elif y <= 2.3e-133: tmp = y0 * (k * (y5 * -y2)) elif y <= 5.7e+72: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = x * (y * ((a * b) - (c * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1e+102) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y <= -6.2e+27) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y <= -6.4e-239) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= 1e-248) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y <= 2.3e-133) tmp = Float64(y0 * Float64(k * Float64(y5 * Float64(-y2)))); elseif (y <= 5.7e+72) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1e+102) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y <= -6.2e+27) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y <= -6.4e-239) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= 1e-248) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y <= 2.3e-133) tmp = y0 * (k * (y5 * -y2)); elseif (y <= 5.7e+72) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = x * (y * ((a * b) - (c * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1e+102], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.2e+27], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.4e-239], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-248], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-133], N[(y0 * N[(k * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.7e+72], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+102}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{+27}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq -6.4 \cdot 10^{-239}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 10^{-248}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-133}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{+72}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -9.99999999999999977e101Initial program 17.9%
Taylor expanded in b around inf 46.4%
Taylor expanded in y4 around inf 56.9%
if -9.99999999999999977e101 < y < -6.19999999999999992e27Initial program 18.8%
Taylor expanded in y around inf 31.5%
Taylor expanded in y3 around inf 56.6%
Taylor expanded in y around inf 56.6%
if -6.19999999999999992e27 < y < -6.3999999999999998e-239Initial program 29.9%
Taylor expanded in t around inf 45.7%
Taylor expanded in c around inf 47.5%
if -6.3999999999999998e-239 < y < 9.9999999999999998e-249Initial program 23.1%
Taylor expanded in t around inf 50.5%
Taylor expanded in j around inf 47.5%
if 9.9999999999999998e-249 < y < 2.3e-133Initial program 43.8%
Taylor expanded in y around inf 48.4%
Taylor expanded in y0 around inf 43.2%
Taylor expanded in k around inf 44.6%
if 2.3e-133 < y < 5.6999999999999997e72Initial program 25.1%
Taylor expanded in t around inf 49.4%
Taylor expanded in y2 around inf 45.2%
if 5.6999999999999997e72 < y Initial program 19.0%
Taylor expanded in y around inf 26.8%
Taylor expanded in x around inf 46.4%
Final simplification48.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* i (* z t)))) (t_2 (* c (* y4 (* t (- y2))))))
(if (<= z -4.5e+125)
t_1
(if (<= z -1.85e-28)
(* a (* y (* x b)))
(if (<= z 7.8e-267)
(* t (* y4 (* b j)))
(if (<= z 7e-222)
t_2
(if (<= z 6e-141)
(* c (* y (* y3 y4)))
(if (<= z 2.5e+72) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * (z * t));
double t_2 = c * (y4 * (t * -y2));
double tmp;
if (z <= -4.5e+125) {
tmp = t_1;
} else if (z <= -1.85e-28) {
tmp = a * (y * (x * b));
} else if (z <= 7.8e-267) {
tmp = t * (y4 * (b * j));
} else if (z <= 7e-222) {
tmp = t_2;
} else if (z <= 6e-141) {
tmp = c * (y * (y3 * y4));
} else if (z <= 2.5e+72) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (i * (z * t))
t_2 = c * (y4 * (t * -y2))
if (z <= (-4.5d+125)) then
tmp = t_1
else if (z <= (-1.85d-28)) then
tmp = a * (y * (x * b))
else if (z <= 7.8d-267) then
tmp = t * (y4 * (b * j))
else if (z <= 7d-222) then
tmp = t_2
else if (z <= 6d-141) then
tmp = c * (y * (y3 * y4))
else if (z <= 2.5d+72) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * (z * t));
double t_2 = c * (y4 * (t * -y2));
double tmp;
if (z <= -4.5e+125) {
tmp = t_1;
} else if (z <= -1.85e-28) {
tmp = a * (y * (x * b));
} else if (z <= 7.8e-267) {
tmp = t * (y4 * (b * j));
} else if (z <= 7e-222) {
tmp = t_2;
} else if (z <= 6e-141) {
tmp = c * (y * (y3 * y4));
} else if (z <= 2.5e+72) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (i * (z * t)) t_2 = c * (y4 * (t * -y2)) tmp = 0 if z <= -4.5e+125: tmp = t_1 elif z <= -1.85e-28: tmp = a * (y * (x * b)) elif z <= 7.8e-267: tmp = t * (y4 * (b * j)) elif z <= 7e-222: tmp = t_2 elif z <= 6e-141: tmp = c * (y * (y3 * y4)) elif z <= 2.5e+72: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(i * Float64(z * t))) t_2 = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))) tmp = 0.0 if (z <= -4.5e+125) tmp = t_1; elseif (z <= -1.85e-28) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (z <= 7.8e-267) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (z <= 7e-222) tmp = t_2; elseif (z <= 6e-141) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (z <= 2.5e+72) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (i * (z * t)); t_2 = c * (y4 * (t * -y2)); tmp = 0.0; if (z <= -4.5e+125) tmp = t_1; elseif (z <= -1.85e-28) tmp = a * (y * (x * b)); elseif (z <= 7.8e-267) tmp = t * (y4 * (b * j)); elseif (z <= 7e-222) tmp = t_2; elseif (z <= 6e-141) tmp = c * (y * (y3 * y4)); elseif (z <= 2.5e+72) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+125], t$95$1, If[LessEqual[z, -1.85e-28], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e-267], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e-222], t$95$2, If[LessEqual[z, 6e-141], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e+72], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-28}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-267}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-222}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-141}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+72}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.5e125 or 2.49999999999999996e72 < z Initial program 27.4%
Taylor expanded in t around inf 44.3%
Taylor expanded in c around 0 45.4%
mul-1-neg45.4%
associate-*r*44.4%
Simplified44.4%
Taylor expanded in c around inf 38.0%
if -4.5e125 < z < -1.8500000000000001e-28Initial program 21.4%
Taylor expanded in b around inf 47.2%
Taylor expanded in a around inf 43.8%
Taylor expanded in x around inf 33.2%
associate-*r*36.6%
Simplified36.6%
if -1.8500000000000001e-28 < z < 7.79999999999999954e-267Initial program 25.9%
Taylor expanded in t around inf 45.9%
Taylor expanded in z around 0 42.5%
Taylor expanded in b around inf 30.9%
associate-*r*35.9%
*-commutative35.9%
Simplified35.9%
if 7.79999999999999954e-267 < z < 7.00000000000000049e-222 or 5.99999999999999967e-141 < z < 2.49999999999999996e72Initial program 16.8%
Taylor expanded in t around inf 47.8%
Taylor expanded in z around 0 44.3%
Taylor expanded in c around inf 28.7%
mul-1-neg28.7%
distribute-rgt-neg-in28.7%
associate-*r*30.5%
distribute-rgt-neg-in30.5%
Simplified30.5%
if 7.00000000000000049e-222 < z < 5.99999999999999967e-141Initial program 34.9%
Taylor expanded in y around inf 30.0%
Taylor expanded in y3 around inf 35.6%
Taylor expanded in c around inf 41.0%
*-commutative41.0%
Simplified41.0%
Final simplification36.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -7e+125)
(* c (* i (* z t)))
(if (<= z -1.85e-28)
(* a (* y (* x b)))
(if (<= z 8.8e-253)
(* t (* y4 (* b j)))
(if (<= z 8.5e-221)
(* c (* y4 (* t (- y2))))
(if (<= z 3.4e-145)
(* c (* y (* y3 y4)))
(if (<= z 3.6e-6)
(* x (* y (* c (- i))))
(* i (* k (* z (- y1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -7e+125) {
tmp = c * (i * (z * t));
} else if (z <= -1.85e-28) {
tmp = a * (y * (x * b));
} else if (z <= 8.8e-253) {
tmp = t * (y4 * (b * j));
} else if (z <= 8.5e-221) {
tmp = c * (y4 * (t * -y2));
} else if (z <= 3.4e-145) {
tmp = c * (y * (y3 * y4));
} else if (z <= 3.6e-6) {
tmp = x * (y * (c * -i));
} else {
tmp = i * (k * (z * -y1));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-7d+125)) then
tmp = c * (i * (z * t))
else if (z <= (-1.85d-28)) then
tmp = a * (y * (x * b))
else if (z <= 8.8d-253) then
tmp = t * (y4 * (b * j))
else if (z <= 8.5d-221) then
tmp = c * (y4 * (t * -y2))
else if (z <= 3.4d-145) then
tmp = c * (y * (y3 * y4))
else if (z <= 3.6d-6) then
tmp = x * (y * (c * -i))
else
tmp = i * (k * (z * -y1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -7e+125) {
tmp = c * (i * (z * t));
} else if (z <= -1.85e-28) {
tmp = a * (y * (x * b));
} else if (z <= 8.8e-253) {
tmp = t * (y4 * (b * j));
} else if (z <= 8.5e-221) {
tmp = c * (y4 * (t * -y2));
} else if (z <= 3.4e-145) {
tmp = c * (y * (y3 * y4));
} else if (z <= 3.6e-6) {
tmp = x * (y * (c * -i));
} else {
tmp = i * (k * (z * -y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -7e+125: tmp = c * (i * (z * t)) elif z <= -1.85e-28: tmp = a * (y * (x * b)) elif z <= 8.8e-253: tmp = t * (y4 * (b * j)) elif z <= 8.5e-221: tmp = c * (y4 * (t * -y2)) elif z <= 3.4e-145: tmp = c * (y * (y3 * y4)) elif z <= 3.6e-6: tmp = x * (y * (c * -i)) else: tmp = i * (k * (z * -y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -7e+125) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (z <= -1.85e-28) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (z <= 8.8e-253) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (z <= 8.5e-221) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (z <= 3.4e-145) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (z <= 3.6e-6) tmp = Float64(x * Float64(y * Float64(c * Float64(-i)))); else tmp = Float64(i * Float64(k * Float64(z * Float64(-y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -7e+125) tmp = c * (i * (z * t)); elseif (z <= -1.85e-28) tmp = a * (y * (x * b)); elseif (z <= 8.8e-253) tmp = t * (y4 * (b * j)); elseif (z <= 8.5e-221) tmp = c * (y4 * (t * -y2)); elseif (z <= 3.4e-145) tmp = c * (y * (y3 * y4)); elseif (z <= 3.6e-6) tmp = x * (y * (c * -i)); else tmp = i * (k * (z * -y1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -7e+125], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.85e-28], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.8e-253], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-221], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e-145], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e-6], N[(x * N[(y * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+125}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-28}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-253}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-221}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-145}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-6}:\\
\;\;\;\;x \cdot \left(y \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\
\end{array}
\end{array}
if z < -7.00000000000000023e125Initial program 22.9%
Taylor expanded in t around inf 43.2%
Taylor expanded in c around 0 51.9%
mul-1-neg51.9%
associate-*r*48.9%
Simplified48.9%
Taylor expanded in c around inf 46.8%
if -7.00000000000000023e125 < z < -1.8500000000000001e-28Initial program 21.4%
Taylor expanded in b around inf 47.2%
Taylor expanded in a around inf 43.8%
Taylor expanded in x around inf 33.2%
associate-*r*36.6%
Simplified36.6%
if -1.8500000000000001e-28 < z < 8.79999999999999983e-253Initial program 25.9%
Taylor expanded in t around inf 45.9%
Taylor expanded in z around 0 42.5%
Taylor expanded in b around inf 30.9%
associate-*r*35.9%
*-commutative35.9%
Simplified35.9%
if 8.79999999999999983e-253 < z < 8.49999999999999984e-221Initial program 0.0%
Taylor expanded in t around inf 28.7%
Taylor expanded in z around 0 42.9%
Taylor expanded in c around inf 58.3%
mul-1-neg58.3%
distribute-rgt-neg-in58.3%
associate-*r*58.3%
distribute-rgt-neg-in58.3%
Simplified58.3%
if 8.49999999999999984e-221 < z < 3.3999999999999999e-145Initial program 29.4%
Taylor expanded in y around inf 23.6%
Taylor expanded in y3 around inf 35.8%
Taylor expanded in c around inf 42.0%
*-commutative42.0%
Simplified42.0%
if 3.3999999999999999e-145 < z < 3.59999999999999984e-6Initial program 27.2%
Taylor expanded in y around inf 40.6%
Taylor expanded in x around inf 36.0%
Taylor expanded in a around 0 28.3%
neg-mul-128.3%
distribute-lft-neg-in28.3%
*-commutative28.3%
Simplified28.3%
if 3.59999999999999984e-6 < z Initial program 25.9%
Taylor expanded in i around -inf 47.9%
Taylor expanded in y1 around inf 41.7%
associate-*r*36.5%
Simplified36.5%
Taylor expanded in k around inf 43.3%
Final simplification39.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (* y3 y4)))))
(if (<= y4 -2.2e+86)
t_1
(if (<= y4 -2.35e-203)
(* t (* y2 (* a y5)))
(if (<= y4 3e-140)
(* c (* i (* z t)))
(if (<= y4 1.1e+38)
(* a (* t (* y2 y5)))
(if (<= y4 2.4e+171)
(* t (* b (* j y4)))
(if (<= y4 4.2e+237) t_1 (* b (* j (* t y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -2.2e+86) {
tmp = t_1;
} else if (y4 <= -2.35e-203) {
tmp = t * (y2 * (a * y5));
} else if (y4 <= 3e-140) {
tmp = c * (i * (z * t));
} else if (y4 <= 1.1e+38) {
tmp = a * (t * (y2 * y5));
} else if (y4 <= 2.4e+171) {
tmp = t * (b * (j * y4));
} else if (y4 <= 4.2e+237) {
tmp = t_1;
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y * (y3 * y4))
if (y4 <= (-2.2d+86)) then
tmp = t_1
else if (y4 <= (-2.35d-203)) then
tmp = t * (y2 * (a * y5))
else if (y4 <= 3d-140) then
tmp = c * (i * (z * t))
else if (y4 <= 1.1d+38) then
tmp = a * (t * (y2 * y5))
else if (y4 <= 2.4d+171) then
tmp = t * (b * (j * y4))
else if (y4 <= 4.2d+237) then
tmp = t_1
else
tmp = b * (j * (t * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -2.2e+86) {
tmp = t_1;
} else if (y4 <= -2.35e-203) {
tmp = t * (y2 * (a * y5));
} else if (y4 <= 3e-140) {
tmp = c * (i * (z * t));
} else if (y4 <= 1.1e+38) {
tmp = a * (t * (y2 * y5));
} else if (y4 <= 2.4e+171) {
tmp = t * (b * (j * y4));
} else if (y4 <= 4.2e+237) {
tmp = t_1;
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * (y3 * y4)) tmp = 0 if y4 <= -2.2e+86: tmp = t_1 elif y4 <= -2.35e-203: tmp = t * (y2 * (a * y5)) elif y4 <= 3e-140: tmp = c * (i * (z * t)) elif y4 <= 1.1e+38: tmp = a * (t * (y2 * y5)) elif y4 <= 2.4e+171: tmp = t * (b * (j * y4)) elif y4 <= 4.2e+237: tmp = t_1 else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (y4 <= -2.2e+86) tmp = t_1; elseif (y4 <= -2.35e-203) tmp = Float64(t * Float64(y2 * Float64(a * y5))); elseif (y4 <= 3e-140) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (y4 <= 1.1e+38) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (y4 <= 2.4e+171) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (y4 <= 4.2e+237) tmp = t_1; else tmp = Float64(b * Float64(j * Float64(t * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * (y3 * y4)); tmp = 0.0; if (y4 <= -2.2e+86) tmp = t_1; elseif (y4 <= -2.35e-203) tmp = t * (y2 * (a * y5)); elseif (y4 <= 3e-140) tmp = c * (i * (z * t)); elseif (y4 <= 1.1e+38) tmp = a * (t * (y2 * y5)); elseif (y4 <= 2.4e+171) tmp = t * (b * (j * y4)); elseif (y4 <= 4.2e+237) tmp = t_1; else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.2e+86], t$95$1, If[LessEqual[y4, -2.35e-203], N[(t * N[(y2 * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3e-140], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.1e+38], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.4e+171], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.2e+237], t$95$1, N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -2.2 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -2.35 \cdot 10^{-203}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 3 \cdot 10^{-140}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 1.1 \cdot 10^{+38}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 2.4 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 4.2 \cdot 10^{+237}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if y4 < -2.20000000000000003e86 or 2.39999999999999998e171 < y4 < 4.20000000000000029e237Initial program 13.8%
Taylor expanded in y around inf 29.3%
Taylor expanded in y3 around inf 38.8%
Taylor expanded in c around inf 39.3%
*-commutative39.3%
Simplified39.3%
if -2.20000000000000003e86 < y4 < -2.35000000000000003e-203Initial program 24.1%
Taylor expanded in t around inf 44.7%
Taylor expanded in y2 around inf 29.7%
Taylor expanded in a around inf 24.0%
if -2.35000000000000003e-203 < y4 < 3.00000000000000018e-140Initial program 31.7%
Taylor expanded in t around inf 45.8%
Taylor expanded in c around 0 44.4%
mul-1-neg44.4%
associate-*r*44.4%
Simplified44.4%
Taylor expanded in c around inf 29.8%
if 3.00000000000000018e-140 < y4 < 1.10000000000000003e38Initial program 40.1%
Taylor expanded in t around inf 36.5%
Taylor expanded in c around 0 32.9%
mul-1-neg32.9%
associate-*r*28.8%
Simplified28.8%
Taylor expanded in y2 around inf 29.4%
if 1.10000000000000003e38 < y4 < 2.39999999999999998e171Initial program 24.9%
Taylor expanded in t around inf 47.7%
Taylor expanded in z around 0 53.3%
Taylor expanded in b around inf 48.4%
*-commutative48.4%
Simplified48.4%
if 4.20000000000000029e237 < y4 Initial program 11.8%
Taylor expanded in t around inf 64.7%
Taylor expanded in c around 0 76.5%
mul-1-neg76.5%
associate-*r*76.5%
Simplified76.5%
Taylor expanded in y4 around inf 70.7%
Final simplification36.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -9e+105)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y -2.75e-233)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y 1.05e-248)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y 5.2e-132)
(* y0 (* k (* y5 (- y2))))
(if (<= y 2.4e+74)
(* t (* y2 (- (* a y5) (* c y4))))
(* c (* (* x y) (- i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -9e+105) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -2.75e-233) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 1.05e-248) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 5.2e-132) {
tmp = y0 * (k * (y5 * -y2));
} else if (y <= 2.4e+74) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = c * ((x * y) * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-9d+105)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y <= (-2.75d-233)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= 1.05d-248) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y <= 5.2d-132) then
tmp = y0 * (k * (y5 * -y2))
else if (y <= 2.4d+74) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = c * ((x * y) * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -9e+105) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -2.75e-233) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 1.05e-248) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 5.2e-132) {
tmp = y0 * (k * (y5 * -y2));
} else if (y <= 2.4e+74) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = c * ((x * y) * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -9e+105: tmp = b * (y4 * ((t * j) - (y * k))) elif y <= -2.75e-233: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= 1.05e-248: tmp = j * (t * ((b * y4) - (i * y5))) elif y <= 5.2e-132: tmp = y0 * (k * (y5 * -y2)) elif y <= 2.4e+74: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = c * ((x * y) * -i) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -9e+105) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y <= -2.75e-233) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= 1.05e-248) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y <= 5.2e-132) tmp = Float64(y0 * Float64(k * Float64(y5 * Float64(-y2)))); elseif (y <= 2.4e+74) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(c * Float64(Float64(x * y) * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -9e+105) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y <= -2.75e-233) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= 1.05e-248) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y <= 5.2e-132) tmp = y0 * (k * (y5 * -y2)); elseif (y <= 2.4e+74) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = c * ((x * y) * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -9e+105], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.75e-233], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e-248], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e-132], N[(y0 * N[(k * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+74], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(x * y), $MachinePrecision] * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+105}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y \leq -2.75 \cdot 10^{-233}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-248}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-132}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(x \cdot y\right) \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -9.0000000000000002e105Initial program 18.4%
Taylor expanded in b around inf 47.6%
Taylor expanded in y4 around inf 58.4%
if -9.0000000000000002e105 < y < -2.75000000000000002e-233Initial program 26.7%
Taylor expanded in t around inf 46.2%
Taylor expanded in c around inf 41.6%
if -2.75000000000000002e-233 < y < 1.05e-248Initial program 23.1%
Taylor expanded in t around inf 50.5%
Taylor expanded in j around inf 47.5%
if 1.05e-248 < y < 5.2000000000000002e-132Initial program 43.8%
Taylor expanded in y around inf 48.4%
Taylor expanded in y0 around inf 43.2%
Taylor expanded in k around inf 44.6%
if 5.2000000000000002e-132 < y < 2.40000000000000008e74Initial program 25.1%
Taylor expanded in t around inf 49.4%
Taylor expanded in y2 around inf 45.2%
if 2.40000000000000008e74 < y Initial program 19.0%
Taylor expanded in y around inf 26.8%
Taylor expanded in x around inf 46.4%
Taylor expanded in a around 0 42.6%
associate-*r*42.6%
neg-mul-142.6%
Simplified42.6%
Final simplification45.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.1e+106)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y -1.65e-237)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y 9.8e-249)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y 2.2e-133)
(* y0 (* k (* y5 (- y2))))
(if (<= y 4.4e+75)
(* t (* y2 (- (* a y5) (* c y4))))
(* x (* y (- (* a b) (* c i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.1e+106) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -1.65e-237) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 9.8e-249) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 2.2e-133) {
tmp = y0 * (k * (y5 * -y2));
} else if (y <= 4.4e+75) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.1d+106)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y <= (-1.65d-237)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= 9.8d-249) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y <= 2.2d-133) then
tmp = y0 * (k * (y5 * -y2))
else if (y <= 4.4d+75) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = x * (y * ((a * b) - (c * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.1e+106) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -1.65e-237) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= 9.8e-249) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y <= 2.2e-133) {
tmp = y0 * (k * (y5 * -y2));
} else if (y <= 4.4e+75) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.1e+106: tmp = b * (y4 * ((t * j) - (y * k))) elif y <= -1.65e-237: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= 9.8e-249: tmp = j * (t * ((b * y4) - (i * y5))) elif y <= 2.2e-133: tmp = y0 * (k * (y5 * -y2)) elif y <= 4.4e+75: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = x * (y * ((a * b) - (c * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.1e+106) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y <= -1.65e-237) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= 9.8e-249) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y <= 2.2e-133) tmp = Float64(y0 * Float64(k * Float64(y5 * Float64(-y2)))); elseif (y <= 4.4e+75) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.1e+106) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y <= -1.65e-237) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= 9.8e-249) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y <= 2.2e-133) tmp = y0 * (k * (y5 * -y2)); elseif (y <= 4.4e+75) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = x * (y * ((a * b) - (c * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.1e+106], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-237], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.8e-249], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-133], N[(y0 * N[(k * N[(y5 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+75], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+106}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-237}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 9.8 \cdot 10^{-249}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-133}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(y5 \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+75}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -1.09999999999999996e106Initial program 18.4%
Taylor expanded in b around inf 47.6%
Taylor expanded in y4 around inf 58.4%
if -1.09999999999999996e106 < y < -1.6500000000000001e-237Initial program 26.7%
Taylor expanded in t around inf 46.2%
Taylor expanded in c around inf 41.6%
if -1.6500000000000001e-237 < y < 9.8000000000000002e-249Initial program 23.1%
Taylor expanded in t around inf 50.5%
Taylor expanded in j around inf 47.5%
if 9.8000000000000002e-249 < y < 2.2000000000000001e-133Initial program 43.8%
Taylor expanded in y around inf 48.4%
Taylor expanded in y0 around inf 43.2%
Taylor expanded in k around inf 44.6%
if 2.2000000000000001e-133 < y < 4.40000000000000024e75Initial program 25.1%
Taylor expanded in t around inf 49.4%
Taylor expanded in y2 around inf 45.2%
if 4.40000000000000024e75 < y Initial program 19.0%
Taylor expanded in y around inf 26.8%
Taylor expanded in x around inf 46.4%
Final simplification46.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.5e+152)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y -5e+27)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y -1.7e-223)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y -6.8e-277)
(* (* t b) (- (* j y4) (* z a)))
(if (<= y 1.55e+73)
(* t (* y2 (- (* a y5) (* c y4))))
(* x (* y (- (* a b) (* c i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.5e+152) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -5e+27) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y <= -1.7e-223) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -6.8e-277) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (y <= 1.55e+73) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.5d+152)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y <= (-5d+27)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y <= (-1.7d-223)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= (-6.8d-277)) then
tmp = (t * b) * ((j * y4) - (z * a))
else if (y <= 1.55d+73) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = x * (y * ((a * b) - (c * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.5e+152) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -5e+27) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y <= -1.7e-223) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -6.8e-277) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (y <= 1.55e+73) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.5e+152: tmp = b * (y4 * ((t * j) - (y * k))) elif y <= -5e+27: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y <= -1.7e-223: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= -6.8e-277: tmp = (t * b) * ((j * y4) - (z * a)) elif y <= 1.55e+73: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = x * (y * ((a * b) - (c * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.5e+152) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y <= -5e+27) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y <= -1.7e-223) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= -6.8e-277) tmp = Float64(Float64(t * b) * Float64(Float64(j * y4) - Float64(z * a))); elseif (y <= 1.55e+73) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.5e+152) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y <= -5e+27) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y <= -1.7e-223) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= -6.8e-277) tmp = (t * b) * ((j * y4) - (z * a)); elseif (y <= 1.55e+73) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = x * (y * ((a * b) - (c * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.5e+152], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5e+27], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.7e-223], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.8e-277], N[(N[(t * b), $MachinePrecision] * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e+73], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+152}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y \leq -5 \cdot 10^{+27}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-223}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-277}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -1.49999999999999995e152Initial program 18.5%
Taylor expanded in b around inf 44.5%
Taylor expanded in y4 around inf 63.3%
if -1.49999999999999995e152 < y < -4.99999999999999979e27Initial program 17.8%
Taylor expanded in y around inf 32.3%
Taylor expanded in y1 around inf 50.9%
if -4.99999999999999979e27 < y < -1.6999999999999999e-223Initial program 30.6%
Taylor expanded in t around inf 44.5%
Taylor expanded in c around inf 48.5%
if -1.6999999999999999e-223 < y < -6.79999999999999964e-277Initial program 27.1%
Taylor expanded in t around inf 64.2%
Taylor expanded in c around 0 55.6%
mul-1-neg55.6%
associate-*r*64.4%
Simplified64.4%
Taylor expanded in b around inf 56.3%
associate-*r*56.3%
*-commutative56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
if -6.79999999999999964e-277 < y < 1.55e73Initial program 28.8%
Taylor expanded in t around inf 47.3%
Taylor expanded in y2 around inf 42.9%
if 1.55e73 < y Initial program 19.0%
Taylor expanded in y around inf 26.8%
Taylor expanded in x around inf 46.4%
Final simplification48.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i))))))
(if (<= y -2.2e+105)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y -6.6e+27)
t_1
(if (<= y -2.05e-227)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y -6.2e-278)
(* (* t b) (- (* j y4) (* z a)))
(if (<= y 7.4e+75) (* t (* y2 (- (* a y5) (* c y4)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double tmp;
if (y <= -2.2e+105) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -6.6e+27) {
tmp = t_1;
} else if (y <= -2.05e-227) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -6.2e-278) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (y <= 7.4e+75) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
if (y <= (-2.2d+105)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y <= (-6.6d+27)) then
tmp = t_1
else if (y <= (-2.05d-227)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= (-6.2d-278)) then
tmp = (t * b) * ((j * y4) - (z * a))
else if (y <= 7.4d+75) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double tmp;
if (y <= -2.2e+105) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= -6.6e+27) {
tmp = t_1;
} else if (y <= -2.05e-227) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -6.2e-278) {
tmp = (t * b) * ((j * y4) - (z * a));
} else if (y <= 7.4e+75) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) tmp = 0 if y <= -2.2e+105: tmp = b * (y4 * ((t * j) - (y * k))) elif y <= -6.6e+27: tmp = t_1 elif y <= -2.05e-227: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= -6.2e-278: tmp = (t * b) * ((j * y4) - (z * a)) elif y <= 7.4e+75: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) tmp = 0.0 if (y <= -2.2e+105) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y <= -6.6e+27) tmp = t_1; elseif (y <= -2.05e-227) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= -6.2e-278) tmp = Float64(Float64(t * b) * Float64(Float64(j * y4) - Float64(z * a))); elseif (y <= 7.4e+75) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); tmp = 0.0; if (y <= -2.2e+105) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y <= -6.6e+27) tmp = t_1; elseif (y <= -2.05e-227) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= -6.2e-278) tmp = (t * b) * ((j * y4) - (z * a)); elseif (y <= 7.4e+75) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e+105], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.6e+27], t$95$1, If[LessEqual[y, -2.05e-227], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.2e-278], N[(N[(t * b), $MachinePrecision] * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.4e+75], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+105}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-227}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-278}:\\
\;\;\;\;\left(t \cdot b\right) \cdot \left(j \cdot y4 - z \cdot a\right)\\
\mathbf{elif}\;y \leq 7.4 \cdot 10^{+75}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.20000000000000007e105Initial program 18.4%
Taylor expanded in b around inf 47.6%
Taylor expanded in y4 around inf 58.4%
if -2.20000000000000007e105 < y < -6.5999999999999996e27 or 7.40000000000000022e75 < y Initial program 18.7%
Taylor expanded in c around inf 39.2%
Taylor expanded in y around -inf 53.7%
associate-*r*53.7%
neg-mul-153.7%
Simplified53.7%
if -6.5999999999999996e27 < y < -2.05000000000000005e-227Initial program 30.6%
Taylor expanded in t around inf 44.5%
Taylor expanded in c around inf 48.5%
if -2.05000000000000005e-227 < y < -6.19999999999999983e-278Initial program 27.1%
Taylor expanded in t around inf 64.2%
Taylor expanded in c around 0 55.6%
mul-1-neg55.6%
associate-*r*64.4%
Simplified64.4%
Taylor expanded in b around inf 56.3%
associate-*r*56.3%
*-commutative56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
if -6.19999999999999983e-278 < y < 7.40000000000000022e75Initial program 28.8%
Taylor expanded in t around inf 47.3%
Taylor expanded in y2 around inf 42.9%
Final simplification49.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -6.5e-52)
(* a (* b (* t (- (* x (/ y t)) z))))
(if (<= z -7e-248)
(* (- (* b y4) (* i y5)) (* t j))
(if (<= z 8e-130)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= z 6.3e+75)
(* t (* y2 (* c (- (* a (/ y5 c)) y4))))
(if (<= z 1.8e+211)
(* i (* k (* z (- y1))))
(* c (* y3 (- (* y y4) (* z y0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -6.5e-52) {
tmp = a * (b * (t * ((x * (y / t)) - z)));
} else if (z <= -7e-248) {
tmp = ((b * y4) - (i * y5)) * (t * j);
} else if (z <= 8e-130) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 6.3e+75) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.8e+211) {
tmp = i * (k * (z * -y1));
} else {
tmp = c * (y3 * ((y * y4) - (z * y0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-6.5d-52)) then
tmp = a * (b * (t * ((x * (y / t)) - z)))
else if (z <= (-7d-248)) then
tmp = ((b * y4) - (i * y5)) * (t * j)
else if (z <= 8d-130) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (z <= 6.3d+75) then
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)))
else if (z <= 1.8d+211) then
tmp = i * (k * (z * -y1))
else
tmp = c * (y3 * ((y * y4) - (z * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -6.5e-52) {
tmp = a * (b * (t * ((x * (y / t)) - z)));
} else if (z <= -7e-248) {
tmp = ((b * y4) - (i * y5)) * (t * j);
} else if (z <= 8e-130) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (z <= 6.3e+75) {
tmp = t * (y2 * (c * ((a * (y5 / c)) - y4)));
} else if (z <= 1.8e+211) {
tmp = i * (k * (z * -y1));
} else {
tmp = c * (y3 * ((y * y4) - (z * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -6.5e-52: tmp = a * (b * (t * ((x * (y / t)) - z))) elif z <= -7e-248: tmp = ((b * y4) - (i * y5)) * (t * j) elif z <= 8e-130: tmp = c * (y4 * ((y * y3) - (t * y2))) elif z <= 6.3e+75: tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))) elif z <= 1.8e+211: tmp = i * (k * (z * -y1)) else: tmp = c * (y3 * ((y * y4) - (z * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -6.5e-52) tmp = Float64(a * Float64(b * Float64(t * Float64(Float64(x * Float64(y / t)) - z)))); elseif (z <= -7e-248) tmp = Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(t * j)); elseif (z <= 8e-130) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (z <= 6.3e+75) tmp = Float64(t * Float64(y2 * Float64(c * Float64(Float64(a * Float64(y5 / c)) - y4)))); elseif (z <= 1.8e+211) tmp = Float64(i * Float64(k * Float64(z * Float64(-y1)))); else tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -6.5e-52) tmp = a * (b * (t * ((x * (y / t)) - z))); elseif (z <= -7e-248) tmp = ((b * y4) - (i * y5)) * (t * j); elseif (z <= 8e-130) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (z <= 6.3e+75) tmp = t * (y2 * (c * ((a * (y5 / c)) - y4))); elseif (z <= 1.8e+211) tmp = i * (k * (z * -y1)); else tmp = c * (y3 * ((y * y4) - (z * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -6.5e-52], N[(a * N[(b * N[(t * N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7e-248], N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e-130], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.3e+75], N[(t * N[(y2 * N[(c * N[(N[(a * N[(y5 / c), $MachinePrecision]), $MachinePrecision] - y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+211], N[(i * N[(k * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{-52}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(x \cdot \frac{y}{t} - z\right)\right)\right)\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-248}:\\
\;\;\;\;\left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-130}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 6.3 \cdot 10^{+75}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(c \cdot \left(a \cdot \frac{y5}{c} - y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+211}:\\
\;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\end{array}
\end{array}
if z < -6.5e-52Initial program 20.3%
Taylor expanded in b around inf 48.2%
Taylor expanded in a around inf 42.9%
Taylor expanded in t around inf 45.8%
associate-/l*47.1%
Simplified47.1%
if -6.5e-52 < z < -6.99999999999999966e-248Initial program 32.5%
Taylor expanded in t around inf 52.4%
Taylor expanded in j around inf 44.6%
associate-*r*44.6%
Simplified44.6%
if -6.99999999999999966e-248 < z < 8.0000000000000007e-130Initial program 26.1%
Taylor expanded in c around inf 50.7%
Taylor expanded in y4 around inf 42.4%
if 8.0000000000000007e-130 < z < 6.30000000000000036e75Initial program 17.5%
Taylor expanded in t around inf 57.9%
Taylor expanded in y2 around inf 41.4%
Taylor expanded in c around inf 45.5%
associate-/l*49.8%
Simplified49.8%
if 6.30000000000000036e75 < z < 1.80000000000000001e211Initial program 28.8%
Taylor expanded in i around -inf 53.2%
Taylor expanded in y1 around inf 58.7%
associate-*r*51.2%
Simplified51.2%
Taylor expanded in k around inf 58.8%
if 1.80000000000000001e211 < z Initial program 31.9%
Taylor expanded in c around inf 37.3%
Taylor expanded in y3 around -inf 58.6%
mul-1-neg58.6%
Simplified58.6%
Final simplification49.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* y4 (* b j)))) (t_2 (* c (* y (* y3 y4)))))
(if (<= b -2.5e+162)
t_1
(if (<= b -28500000.0)
t_2
(if (<= b -3.8e-26)
(* a (* t (* y2 y5)))
(if (<= b 5.8e-276)
(* c (* i (* z t)))
(if (<= b 3.6e-9) 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 * (y4 * (b * j));
double t_2 = c * (y * (y3 * y4));
double tmp;
if (b <= -2.5e+162) {
tmp = t_1;
} else if (b <= -28500000.0) {
tmp = t_2;
} else if (b <= -3.8e-26) {
tmp = a * (t * (y2 * y5));
} else if (b <= 5.8e-276) {
tmp = c * (i * (z * t));
} else if (b <= 3.6e-9) {
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 * (y4 * (b * j))
t_2 = c * (y * (y3 * y4))
if (b <= (-2.5d+162)) then
tmp = t_1
else if (b <= (-28500000.0d0)) then
tmp = t_2
else if (b <= (-3.8d-26)) then
tmp = a * (t * (y2 * y5))
else if (b <= 5.8d-276) then
tmp = c * (i * (z * t))
else if (b <= 3.6d-9) 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 * (y4 * (b * j));
double t_2 = c * (y * (y3 * y4));
double tmp;
if (b <= -2.5e+162) {
tmp = t_1;
} else if (b <= -28500000.0) {
tmp = t_2;
} else if (b <= -3.8e-26) {
tmp = a * (t * (y2 * y5));
} else if (b <= 5.8e-276) {
tmp = c * (i * (z * t));
} else if (b <= 3.6e-9) {
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 * (y4 * (b * j)) t_2 = c * (y * (y3 * y4)) tmp = 0 if b <= -2.5e+162: tmp = t_1 elif b <= -28500000.0: tmp = t_2 elif b <= -3.8e-26: tmp = a * (t * (y2 * y5)) elif b <= 5.8e-276: tmp = c * (i * (z * t)) elif b <= 3.6e-9: 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(y4 * Float64(b * j))) t_2 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (b <= -2.5e+162) tmp = t_1; elseif (b <= -28500000.0) tmp = t_2; elseif (b <= -3.8e-26) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (b <= 5.8e-276) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (b <= 3.6e-9) 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 * (y4 * (b * j)); t_2 = c * (y * (y3 * y4)); tmp = 0.0; if (b <= -2.5e+162) tmp = t_1; elseif (b <= -28500000.0) tmp = t_2; elseif (b <= -3.8e-26) tmp = a * (t * (y2 * y5)); elseif (b <= 5.8e-276) tmp = c * (i * (z * t)); elseif (b <= 3.6e-9) 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[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+162], t$95$1, If[LessEqual[b, -28500000.0], t$95$2, If[LessEqual[b, -3.8e-26], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e-276], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e-9], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
t_2 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -28500000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-26}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-276}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-9}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.4999999999999998e162 or 3.6e-9 < b Initial program 23.7%
Taylor expanded in t around inf 53.4%
Taylor expanded in z around 0 49.6%
Taylor expanded in b around inf 39.8%
associate-*r*44.5%
*-commutative44.5%
Simplified44.5%
if -2.4999999999999998e162 < b < -2.85e7 or 5.79999999999999975e-276 < b < 3.6e-9Initial program 22.7%
Taylor expanded in y around inf 24.2%
Taylor expanded in y3 around inf 28.2%
Taylor expanded in c around inf 27.6%
*-commutative27.6%
Simplified27.6%
if -2.85e7 < b < -3.80000000000000015e-26Initial program 11.4%
Taylor expanded in t around inf 67.4%
Taylor expanded in c around 0 78.5%
mul-1-neg78.5%
associate-*r*67.4%
Simplified67.4%
Taylor expanded in y2 around inf 45.4%
if -3.80000000000000015e-26 < b < 5.79999999999999975e-276Initial program 30.7%
Taylor expanded in t around inf 44.3%
Taylor expanded in c around 0 42.9%
mul-1-neg42.9%
associate-*r*42.9%
Simplified42.9%
Taylor expanded in c around inf 27.9%
Final simplification35.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* y4 (* b j)))) (t_2 (* c (* y (* y3 y4)))))
(if (<= b -2.9e+162)
t_1
(if (<= b -33000000.0)
t_2
(if (<= b -3.2e-28)
(* a (* t (* y2 y5)))
(if (<= b 5.4e-276)
(* (* c i) (* z t))
(if (<= b 1.8e-10) 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 * (y4 * (b * j));
double t_2 = c * (y * (y3 * y4));
double tmp;
if (b <= -2.9e+162) {
tmp = t_1;
} else if (b <= -33000000.0) {
tmp = t_2;
} else if (b <= -3.2e-28) {
tmp = a * (t * (y2 * y5));
} else if (b <= 5.4e-276) {
tmp = (c * i) * (z * t);
} else if (b <= 1.8e-10) {
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 * (y4 * (b * j))
t_2 = c * (y * (y3 * y4))
if (b <= (-2.9d+162)) then
tmp = t_1
else if (b <= (-33000000.0d0)) then
tmp = t_2
else if (b <= (-3.2d-28)) then
tmp = a * (t * (y2 * y5))
else if (b <= 5.4d-276) then
tmp = (c * i) * (z * t)
else if (b <= 1.8d-10) 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 * (y4 * (b * j));
double t_2 = c * (y * (y3 * y4));
double tmp;
if (b <= -2.9e+162) {
tmp = t_1;
} else if (b <= -33000000.0) {
tmp = t_2;
} else if (b <= -3.2e-28) {
tmp = a * (t * (y2 * y5));
} else if (b <= 5.4e-276) {
tmp = (c * i) * (z * t);
} else if (b <= 1.8e-10) {
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 * (y4 * (b * j)) t_2 = c * (y * (y3 * y4)) tmp = 0 if b <= -2.9e+162: tmp = t_1 elif b <= -33000000.0: tmp = t_2 elif b <= -3.2e-28: tmp = a * (t * (y2 * y5)) elif b <= 5.4e-276: tmp = (c * i) * (z * t) elif b <= 1.8e-10: 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(y4 * Float64(b * j))) t_2 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (b <= -2.9e+162) tmp = t_1; elseif (b <= -33000000.0) tmp = t_2; elseif (b <= -3.2e-28) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (b <= 5.4e-276) tmp = Float64(Float64(c * i) * Float64(z * t)); elseif (b <= 1.8e-10) 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 * (y4 * (b * j)); t_2 = c * (y * (y3 * y4)); tmp = 0.0; if (b <= -2.9e+162) tmp = t_1; elseif (b <= -33000000.0) tmp = t_2; elseif (b <= -3.2e-28) tmp = a * (t * (y2 * y5)); elseif (b <= 5.4e-276) tmp = (c * i) * (z * t); elseif (b <= 1.8e-10) 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[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.9e+162], t$95$1, If[LessEqual[b, -33000000.0], t$95$2, If[LessEqual[b, -3.2e-28], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.4e-276], N[(N[(c * i), $MachinePrecision] * N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e-10], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
t_2 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;b \leq -2.9 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -33000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-28}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-276}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \left(z \cdot t\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-10}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.90000000000000006e162 or 1.8e-10 < b Initial program 23.7%
Taylor expanded in t around inf 53.4%
Taylor expanded in z around 0 49.6%
Taylor expanded in b around inf 39.8%
associate-*r*44.5%
*-commutative44.5%
Simplified44.5%
if -2.90000000000000006e162 < b < -3.3e7 or 5.39999999999999971e-276 < b < 1.8e-10Initial program 22.7%
Taylor expanded in y around inf 24.2%
Taylor expanded in y3 around inf 28.2%
Taylor expanded in c around inf 27.6%
*-commutative27.6%
Simplified27.6%
if -3.3e7 < b < -3.19999999999999982e-28Initial program 10.3%
Taylor expanded in t around inf 60.6%
Taylor expanded in c around 0 70.7%
mul-1-neg70.7%
associate-*r*60.7%
Simplified60.7%
Taylor expanded in y2 around inf 40.9%
if -3.19999999999999982e-28 < b < 5.39999999999999971e-276Initial program 31.2%
Taylor expanded in t around inf 45.0%
Taylor expanded in c around 0 43.5%
mul-1-neg43.5%
associate-*r*43.6%
Simplified43.6%
Taylor expanded in c around inf 28.3%
associate-*r*28.3%
Simplified28.3%
Final simplification35.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2e+78)
(* c (* i (* z t)))
(if (<= i 1.38e-151)
(* b (* y4 (- (* t j) (* y k))))
(if (<= i 8.6e-21)
(* b (* y0 (- (* z k) (* x j))))
(if (<= i 1.1e+150) (* t (* a (* y2 y5))) (* z (* (* i k) (- y1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -2e+78) {
tmp = c * (i * (z * t));
} else if (i <= 1.38e-151) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (i <= 8.6e-21) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (i <= 1.1e+150) {
tmp = t * (a * (y2 * y5));
} else {
tmp = z * ((i * k) * -y1);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (i <= (-2d+78)) then
tmp = c * (i * (z * t))
else if (i <= 1.38d-151) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (i <= 8.6d-21) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (i <= 1.1d+150) then
tmp = t * (a * (y2 * y5))
else
tmp = z * ((i * k) * -y1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -2e+78) {
tmp = c * (i * (z * t));
} else if (i <= 1.38e-151) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (i <= 8.6e-21) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (i <= 1.1e+150) {
tmp = t * (a * (y2 * y5));
} else {
tmp = z * ((i * k) * -y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if i <= -2e+78: tmp = c * (i * (z * t)) elif i <= 1.38e-151: tmp = b * (y4 * ((t * j) - (y * k))) elif i <= 8.6e-21: tmp = b * (y0 * ((z * k) - (x * j))) elif i <= 1.1e+150: tmp = t * (a * (y2 * y5)) else: tmp = z * ((i * k) * -y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2e+78) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (i <= 1.38e-151) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (i <= 8.6e-21) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (i <= 1.1e+150) tmp = Float64(t * Float64(a * Float64(y2 * y5))); else tmp = Float64(z * Float64(Float64(i * k) * Float64(-y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (i <= -2e+78) tmp = c * (i * (z * t)); elseif (i <= 1.38e-151) tmp = b * (y4 * ((t * j) - (y * k))); elseif (i <= 8.6e-21) tmp = b * (y0 * ((z * k) - (x * j))); elseif (i <= 1.1e+150) tmp = t * (a * (y2 * y5)); else tmp = z * ((i * k) * -y1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2e+78], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.38e-151], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.6e-21], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.1e+150], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(i * k), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2 \cdot 10^{+78}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;i \leq 1.38 \cdot 10^{-151}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;i \leq 8.6 \cdot 10^{-21}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{+150}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(\left(i \cdot k\right) \cdot \left(-y1\right)\right)\\
\end{array}
\end{array}
if i < -2.00000000000000002e78Initial program 17.9%
Taylor expanded in t around inf 41.7%
Taylor expanded in c around 0 39.7%
mul-1-neg39.7%
associate-*r*39.7%
Simplified39.7%
Taylor expanded in c around inf 36.5%
if -2.00000000000000002e78 < i < 1.38000000000000008e-151Initial program 26.3%
Taylor expanded in b around inf 44.8%
Taylor expanded in y4 around inf 41.0%
if 1.38000000000000008e-151 < i < 8.5999999999999996e-21Initial program 19.9%
Taylor expanded in b around inf 50.3%
Taylor expanded in y0 around inf 46.2%
if 8.5999999999999996e-21 < i < 1.1e150Initial program 34.6%
Taylor expanded in t around inf 56.8%
Taylor expanded in z around 0 51.0%
Taylor expanded in a around inf 32.7%
if 1.1e150 < i Initial program 22.8%
Taylor expanded in i around -inf 60.5%
Taylor expanded in y1 around inf 38.3%
associate-*r*38.3%
Simplified38.3%
Taylor expanded in k around inf 32.4%
associate-*r*34.9%
associate-*r*43.5%
Simplified43.5%
Final simplification39.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* t (* y2 y5)))) (t_2 (* b (* y4 (* t j)))))
(if (<= y2 -2.25e+70)
t_1
(if (<= y2 1.25e-95)
t_2
(if (<= y2 2.2e+16)
(* a (* y (* x b)))
(if (<= y2 3.9e+59) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (t * (y2 * y5));
double t_2 = b * (y4 * (t * j));
double tmp;
if (y2 <= -2.25e+70) {
tmp = t_1;
} else if (y2 <= 1.25e-95) {
tmp = t_2;
} else if (y2 <= 2.2e+16) {
tmp = a * (y * (x * b));
} else if (y2 <= 3.9e+59) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (t * (y2 * y5))
t_2 = b * (y4 * (t * j))
if (y2 <= (-2.25d+70)) then
tmp = t_1
else if (y2 <= 1.25d-95) then
tmp = t_2
else if (y2 <= 2.2d+16) then
tmp = a * (y * (x * b))
else if (y2 <= 3.9d+59) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (t * (y2 * y5));
double t_2 = b * (y4 * (t * j));
double tmp;
if (y2 <= -2.25e+70) {
tmp = t_1;
} else if (y2 <= 1.25e-95) {
tmp = t_2;
} else if (y2 <= 2.2e+16) {
tmp = a * (y * (x * b));
} else if (y2 <= 3.9e+59) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (t * (y2 * y5)) t_2 = b * (y4 * (t * j)) tmp = 0 if y2 <= -2.25e+70: tmp = t_1 elif y2 <= 1.25e-95: tmp = t_2 elif y2 <= 2.2e+16: tmp = a * (y * (x * b)) elif y2 <= 3.9e+59: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(t * Float64(y2 * y5))) t_2 = Float64(b * Float64(y4 * Float64(t * j))) tmp = 0.0 if (y2 <= -2.25e+70) tmp = t_1; elseif (y2 <= 1.25e-95) tmp = t_2; elseif (y2 <= 2.2e+16) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (y2 <= 3.9e+59) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (t * (y2 * y5)); t_2 = b * (y4 * (t * j)); tmp = 0.0; if (y2 <= -2.25e+70) tmp = t_1; elseif (y2 <= 1.25e-95) tmp = t_2; elseif (y2 <= 2.2e+16) tmp = a * (y * (x * b)); elseif (y2 <= 3.9e+59) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y4 * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.25e+70], t$95$1, If[LessEqual[y2, 1.25e-95], t$95$2, If[LessEqual[y2, 2.2e+16], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.9e+59], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
t_2 := b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\
\mathbf{if}\;y2 \leq -2.25 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.25 \cdot 10^{-95}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 2.2 \cdot 10^{+16}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;y2 \leq 3.9 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -2.25e70 or 3.90000000000000021e59 < y2 Initial program 19.8%
Taylor expanded in t around inf 48.6%
Taylor expanded in c around 0 43.3%
mul-1-neg43.3%
associate-*r*43.2%
Simplified43.2%
Taylor expanded in y2 around inf 35.1%
if -2.25e70 < y2 < 1.2499999999999999e-95 or 2.2e16 < y2 < 3.90000000000000021e59Initial program 27.4%
Taylor expanded in t around inf 41.6%
Taylor expanded in z around 0 37.0%
Taylor expanded in b around inf 24.8%
associate-*r*26.3%
Simplified26.3%
if 1.2499999999999999e-95 < y2 < 2.2e16Initial program 32.2%
Taylor expanded in b around inf 32.8%
Taylor expanded in a around inf 32.9%
Taylor expanded in x around inf 29.2%
associate-*r*33.1%
Simplified33.1%
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 (* c (* y (* y3 y4)))))
(if (<= y4 -3.7e+86)
t_1
(if (<= y4 3.9e+38)
(* t (* a (* y2 y5)))
(if (<= y4 3.3e+171)
(* t (* b (* j y4)))
(if (<= y4 1.5e+239) t_1 (* b (* j (* t y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -3.7e+86) {
tmp = t_1;
} else if (y4 <= 3.9e+38) {
tmp = t * (a * (y2 * y5));
} else if (y4 <= 3.3e+171) {
tmp = t * (b * (j * y4));
} else if (y4 <= 1.5e+239) {
tmp = t_1;
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y * (y3 * y4))
if (y4 <= (-3.7d+86)) then
tmp = t_1
else if (y4 <= 3.9d+38) then
tmp = t * (a * (y2 * y5))
else if (y4 <= 3.3d+171) then
tmp = t * (b * (j * y4))
else if (y4 <= 1.5d+239) then
tmp = t_1
else
tmp = b * (j * (t * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -3.7e+86) {
tmp = t_1;
} else if (y4 <= 3.9e+38) {
tmp = t * (a * (y2 * y5));
} else if (y4 <= 3.3e+171) {
tmp = t * (b * (j * y4));
} else if (y4 <= 1.5e+239) {
tmp = t_1;
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * (y3 * y4)) tmp = 0 if y4 <= -3.7e+86: tmp = t_1 elif y4 <= 3.9e+38: tmp = t * (a * (y2 * y5)) elif y4 <= 3.3e+171: tmp = t * (b * (j * y4)) elif y4 <= 1.5e+239: tmp = t_1 else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (y4 <= -3.7e+86) tmp = t_1; elseif (y4 <= 3.9e+38) tmp = Float64(t * Float64(a * Float64(y2 * y5))); elseif (y4 <= 3.3e+171) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (y4 <= 1.5e+239) tmp = t_1; else tmp = Float64(b * Float64(j * Float64(t * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * (y3 * y4)); tmp = 0.0; if (y4 <= -3.7e+86) tmp = t_1; elseif (y4 <= 3.9e+38) tmp = t * (a * (y2 * y5)); elseif (y4 <= 3.3e+171) tmp = t * (b * (j * y4)); elseif (y4 <= 1.5e+239) tmp = t_1; else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.7e+86], t$95$1, If[LessEqual[y4, 3.9e+38], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.3e+171], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.5e+239], t$95$1, N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -3.7 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 3.9 \cdot 10^{+38}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 3.3 \cdot 10^{+171}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 1.5 \cdot 10^{+239}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if y4 < -3.69999999999999992e86 or 3.29999999999999991e171 < y4 < 1.4999999999999999e239Initial program 13.8%
Taylor expanded in y around inf 29.3%
Taylor expanded in y3 around inf 38.8%
Taylor expanded in c around inf 39.3%
*-commutative39.3%
Simplified39.3%
if -3.69999999999999992e86 < y4 < 3.90000000000000023e38Initial program 30.5%
Taylor expanded in t around inf 43.8%
Taylor expanded in z around 0 36.8%
Taylor expanded in a around inf 22.6%
if 3.90000000000000023e38 < y4 < 3.29999999999999991e171Initial program 24.9%
Taylor expanded in t around inf 47.7%
Taylor expanded in z around 0 53.3%
Taylor expanded in b around inf 48.4%
*-commutative48.4%
Simplified48.4%
if 1.4999999999999999e239 < y4 Initial program 11.8%
Taylor expanded in t around inf 64.7%
Taylor expanded in c around 0 76.5%
mul-1-neg76.5%
associate-*r*76.5%
Simplified76.5%
Taylor expanded in y4 around inf 70.7%
Final simplification33.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* t (* y2 y5)))))
(if (<= y2 -8e+70)
t_1
(if (<= y2 6.4e-90)
(* b (* j (* t y4)))
(if (<= y2 6.6e+83) (* a (* y (* x b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (t * (y2 * y5));
double tmp;
if (y2 <= -8e+70) {
tmp = t_1;
} else if (y2 <= 6.4e-90) {
tmp = b * (j * (t * y4));
} else if (y2 <= 6.6e+83) {
tmp = a * (y * (x * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (t * (y2 * y5))
if (y2 <= (-8d+70)) then
tmp = t_1
else if (y2 <= 6.4d-90) then
tmp = b * (j * (t * y4))
else if (y2 <= 6.6d+83) then
tmp = a * (y * (x * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (t * (y2 * y5));
double tmp;
if (y2 <= -8e+70) {
tmp = t_1;
} else if (y2 <= 6.4e-90) {
tmp = b * (j * (t * y4));
} else if (y2 <= 6.6e+83) {
tmp = a * (y * (x * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (t * (y2 * y5)) tmp = 0 if y2 <= -8e+70: tmp = t_1 elif y2 <= 6.4e-90: tmp = b * (j * (t * y4)) elif y2 <= 6.6e+83: tmp = a * (y * (x * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(t * Float64(y2 * y5))) tmp = 0.0 if (y2 <= -8e+70) tmp = t_1; elseif (y2 <= 6.4e-90) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y2 <= 6.6e+83) tmp = Float64(a * Float64(y * Float64(x * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (t * (y2 * y5)); tmp = 0.0; if (y2 <= -8e+70) tmp = t_1; elseif (y2 <= 6.4e-90) tmp = b * (j * (t * y4)); elseif (y2 <= 6.6e+83) tmp = a * (y * (x * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -8e+70], t$95$1, If[LessEqual[y2, 6.4e-90], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.6e+83], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -8 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 6.4 \cdot 10^{-90}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 6.6 \cdot 10^{+83}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -8.00000000000000058e70 or 6.59999999999999969e83 < y2 Initial program 20.6%
Taylor expanded in t around inf 49.5%
Taylor expanded in c around 0 43.0%
mul-1-neg43.0%
associate-*r*43.9%
Simplified43.9%
Taylor expanded in y2 around inf 35.4%
if -8.00000000000000058e70 < y2 < 6.40000000000000014e-90Initial program 28.6%
Taylor expanded in t around inf 42.1%
Taylor expanded in c around 0 47.3%
mul-1-neg47.3%
associate-*r*47.3%
Simplified47.3%
Taylor expanded in y4 around inf 24.1%
if 6.40000000000000014e-90 < y2 < 6.59999999999999969e83Initial program 23.8%
Taylor expanded in b around inf 37.4%
Taylor expanded in a around inf 27.4%
Taylor expanded in x around inf 27.5%
associate-*r*30.1%
Simplified30.1%
Final simplification29.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* i (* z t)))))
(if (<= z -4.5e+125)
t_1
(if (<= z -8.5e-29)
(* a (* y (* x b)))
(if (<= z 3e-94) (* b (* y4 (* t j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * (z * t));
double tmp;
if (z <= -4.5e+125) {
tmp = t_1;
} else if (z <= -8.5e-29) {
tmp = a * (y * (x * b));
} else if (z <= 3e-94) {
tmp = b * (y4 * (t * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (i * (z * t))
if (z <= (-4.5d+125)) then
tmp = t_1
else if (z <= (-8.5d-29)) then
tmp = a * (y * (x * b))
else if (z <= 3d-94) then
tmp = b * (y4 * (t * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * (z * t));
double tmp;
if (z <= -4.5e+125) {
tmp = t_1;
} else if (z <= -8.5e-29) {
tmp = a * (y * (x * b));
} else if (z <= 3e-94) {
tmp = b * (y4 * (t * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (i * (z * t)) tmp = 0 if z <= -4.5e+125: tmp = t_1 elif z <= -8.5e-29: tmp = a * (y * (x * b)) elif z <= 3e-94: tmp = b * (y4 * (t * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(i * Float64(z * t))) tmp = 0.0 if (z <= -4.5e+125) tmp = t_1; elseif (z <= -8.5e-29) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (z <= 3e-94) tmp = Float64(b * Float64(y4 * Float64(t * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (i * (z * t)); tmp = 0.0; if (z <= -4.5e+125) tmp = t_1; elseif (z <= -8.5e-29) tmp = a * (y * (x * b)); elseif (z <= 3e-94) tmp = b * (y4 * (t * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+125], t$95$1, If[LessEqual[z, -8.5e-29], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-94], N[(b * N[(y4 * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-29}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-94}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.5e125 or 3.0000000000000001e-94 < z Initial program 24.2%
Taylor expanded in t around inf 47.5%
Taylor expanded in c around 0 46.1%
mul-1-neg46.1%
associate-*r*46.1%
Simplified46.1%
Taylor expanded in c around inf 34.5%
if -4.5e125 < z < -8.5000000000000001e-29Initial program 21.4%
Taylor expanded in b around inf 47.2%
Taylor expanded in a around inf 43.8%
Taylor expanded in x around inf 33.2%
associate-*r*36.6%
Simplified36.6%
if -8.5000000000000001e-29 < z < 3.0000000000000001e-94Initial program 26.3%
Taylor expanded in t around inf 39.3%
Taylor expanded in z around 0 40.4%
Taylor expanded in b around inf 21.8%
associate-*r*23.7%
Simplified23.7%
Final simplification30.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y2 -1.8e+70) (not (<= y2 9.5e+77))) (* a (* t (* y2 y5))) (* a (* y (* x b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y2 <= -1.8e+70) || !(y2 <= 9.5e+77)) {
tmp = a * (t * (y2 * y5));
} else {
tmp = a * (y * (x * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y2 <= (-1.8d+70)) .or. (.not. (y2 <= 9.5d+77))) then
tmp = a * (t * (y2 * y5))
else
tmp = a * (y * (x * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y2 <= -1.8e+70) || !(y2 <= 9.5e+77)) {
tmp = a * (t * (y2 * y5));
} else {
tmp = a * (y * (x * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y2 <= -1.8e+70) or not (y2 <= 9.5e+77): tmp = a * (t * (y2 * y5)) else: tmp = a * (y * (x * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y2 <= -1.8e+70) || !(y2 <= 9.5e+77)) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(a * Float64(y * Float64(x * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y2 <= -1.8e+70) || ~((y2 <= 9.5e+77))) tmp = a * (t * (y2 * y5)); else tmp = a * (y * (x * b)); 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[y2, -1.8e+70], N[Not[LessEqual[y2, 9.5e+77]], $MachinePrecision]], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.8 \cdot 10^{+70} \lor \neg \left(y2 \leq 9.5 \cdot 10^{+77}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\end{array}
\end{array}
if y2 < -1.8e70 or 9.4999999999999998e77 < y2 Initial program 20.6%
Taylor expanded in t around inf 49.5%
Taylor expanded in c around 0 43.0%
mul-1-neg43.0%
associate-*r*43.9%
Simplified43.9%
Taylor expanded in y2 around inf 35.4%
if -1.8e70 < y2 < 9.4999999999999998e77Initial program 27.4%
Taylor expanded in b around inf 36.4%
Taylor expanded in a around inf 29.7%
Taylor expanded in x around inf 16.3%
associate-*r*17.0%
Simplified17.0%
Final simplification24.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y 8.8e+71) (* a (* t (* y2 y5))) (* a (* (* x y) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= 8.8e+71) {
tmp = a * (t * (y2 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= 8.8d+71) then
tmp = a * (t * (y2 * y5))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= 8.8e+71) {
tmp = a * (t * (y2 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= 8.8e+71: tmp = a * (t * (y2 * y5)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= 8.8e+71) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= 8.8e+71) tmp = a * (t * (y2 * y5)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, 8.8e+71], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 8.8 \cdot 10^{+71}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if y < 8.79999999999999978e71Initial program 26.2%
Taylor expanded in t around inf 47.2%
Taylor expanded in c around 0 45.3%
mul-1-neg45.3%
associate-*r*45.8%
Simplified45.8%
Taylor expanded in y2 around inf 19.6%
if 8.79999999999999978e71 < y Initial program 19.0%
Taylor expanded in b around inf 38.2%
Taylor expanded in a around inf 33.0%
Taylor expanded in x around inf 33.1%
Final simplification22.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 24.7%
Taylor expanded in b around inf 37.1%
Taylor expanded in a around inf 27.0%
Taylor expanded in x around inf 13.9%
Final simplification13.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 2024054
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))