
(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 43 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 (- (* x y2) (* z y3)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* j y3) (* k y2)))
(t_4
(*
j
(-
(+ (* y3 (- (* y0 y5) (* y1 y4))) (* t (- (* b y4) (* i y5))))
(* x (- (* b y0) (* i y1))))))
(t_5 (- (* x j) (* z k)))
(t_6
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 t_1))
(* y4 (- (* y y3) (* t y2))))))
(t_7
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5))))))))
(if (<= j -1.7e+113)
t_4
(if (<= j -3.4e+20)
(* y4 (* y1 t_2))
(if (<= j -1.2)
t_7
(if (<= j -2.4e-204)
(* y1 (+ (* a (- (* z y3) (* x y2))) (+ (* i t_5) (* y4 t_2))))
(if (<= j -2.3e-251)
t_7
(if (<= j 3.55e-258)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= j 5.2e-213)
(* y0 (+ (* c t_1) (- (* y5 t_3) (* b t_5))))
(if (<= j 0.07)
t_6
(if (<= j 2.4e+121)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))
(if (<= j 3.6e+181)
(* (* y0 y5) t_3)
(if (<= j 2.1e+285) t_4 t_6)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y2) - (z * y3);
double t_2 = (k * y2) - (j * y3);
double t_3 = (j * y3) - (k * y2);
double t_4 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))));
double t_5 = (x * j) - (z * k);
double t_6 = c * (((i * ((z * t) - (x * y))) + (y0 * t_1)) + (y4 * ((y * y3) - (t * y2))));
double t_7 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double tmp;
if (j <= -1.7e+113) {
tmp = t_4;
} else if (j <= -3.4e+20) {
tmp = y4 * (y1 * t_2);
} else if (j <= -1.2) {
tmp = t_7;
} else if (j <= -2.4e-204) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_5) + (y4 * t_2)));
} else if (j <= -2.3e-251) {
tmp = t_7;
} else if (j <= 3.55e-258) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (j <= 5.2e-213) {
tmp = y0 * ((c * t_1) + ((y5 * t_3) - (b * t_5)));
} else if (j <= 0.07) {
tmp = t_6;
} else if (j <= 2.4e+121) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else if (j <= 3.6e+181) {
tmp = (y0 * y5) * t_3;
} else if (j <= 2.1e+285) {
tmp = t_4;
} else {
tmp = t_6;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (x * y2) - (z * y3)
t_2 = (k * y2) - (j * y3)
t_3 = (j * y3) - (k * y2)
t_4 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))))
t_5 = (x * j) - (z * k)
t_6 = c * (((i * ((z * t) - (x * y))) + (y0 * t_1)) + (y4 * ((y * y3) - (t * y2))))
t_7 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
if (j <= (-1.7d+113)) then
tmp = t_4
else if (j <= (-3.4d+20)) then
tmp = y4 * (y1 * t_2)
else if (j <= (-1.2d0)) then
tmp = t_7
else if (j <= (-2.4d-204)) then
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_5) + (y4 * t_2)))
else if (j <= (-2.3d-251)) then
tmp = t_7
else if (j <= 3.55d-258) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (j <= 5.2d-213) then
tmp = y0 * ((c * t_1) + ((y5 * t_3) - (b * t_5)))
else if (j <= 0.07d0) then
tmp = t_6
else if (j <= 2.4d+121) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
else if (j <= 3.6d+181) then
tmp = (y0 * y5) * t_3
else if (j <= 2.1d+285) then
tmp = t_4
else
tmp = t_6
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y2) - (z * y3);
double t_2 = (k * y2) - (j * y3);
double t_3 = (j * y3) - (k * y2);
double t_4 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))));
double t_5 = (x * j) - (z * k);
double t_6 = c * (((i * ((z * t) - (x * y))) + (y0 * t_1)) + (y4 * ((y * y3) - (t * y2))));
double t_7 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
double tmp;
if (j <= -1.7e+113) {
tmp = t_4;
} else if (j <= -3.4e+20) {
tmp = y4 * (y1 * t_2);
} else if (j <= -1.2) {
tmp = t_7;
} else if (j <= -2.4e-204) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_5) + (y4 * t_2)));
} else if (j <= -2.3e-251) {
tmp = t_7;
} else if (j <= 3.55e-258) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (j <= 5.2e-213) {
tmp = y0 * ((c * t_1) + ((y5 * t_3) - (b * t_5)));
} else if (j <= 0.07) {
tmp = t_6;
} else if (j <= 2.4e+121) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else if (j <= 3.6e+181) {
tmp = (y0 * y5) * t_3;
} else if (j <= 2.1e+285) {
tmp = t_4;
} else {
tmp = t_6;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y2) - (z * y3) t_2 = (k * y2) - (j * y3) t_3 = (j * y3) - (k * y2) t_4 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1)))) t_5 = (x * j) - (z * k) t_6 = c * (((i * ((z * t) - (x * y))) + (y0 * t_1)) + (y4 * ((y * y3) - (t * y2)))) t_7 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) tmp = 0 if j <= -1.7e+113: tmp = t_4 elif j <= -3.4e+20: tmp = y4 * (y1 * t_2) elif j <= -1.2: tmp = t_7 elif j <= -2.4e-204: tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_5) + (y4 * t_2))) elif j <= -2.3e-251: tmp = t_7 elif j <= 3.55e-258: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif j <= 5.2e-213: tmp = y0 * ((c * t_1) + ((y5 * t_3) - (b * t_5))) elif j <= 0.07: tmp = t_6 elif j <= 2.4e+121: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) elif j <= 3.6e+181: tmp = (y0 * y5) * t_3 elif j <= 2.1e+285: tmp = t_4 else: tmp = t_6 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y2) - Float64(z * y3)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(j * y3) - Float64(k * y2)) t_4 = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))) t_5 = Float64(Float64(x * j) - Float64(z * k)) t_6 = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * t_1)) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))) t_7 = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))) tmp = 0.0 if (j <= -1.7e+113) tmp = t_4; elseif (j <= -3.4e+20) tmp = Float64(y4 * Float64(y1 * t_2)); elseif (j <= -1.2) tmp = t_7; elseif (j <= -2.4e-204) tmp = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * t_5) + Float64(y4 * t_2)))); elseif (j <= -2.3e-251) tmp = t_7; elseif (j <= 3.55e-258) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (j <= 5.2e-213) tmp = Float64(y0 * Float64(Float64(c * t_1) + Float64(Float64(y5 * t_3) - Float64(b * t_5)))); elseif (j <= 0.07) tmp = t_6; elseif (j <= 2.4e+121) 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 <= 3.6e+181) tmp = Float64(Float64(y0 * y5) * t_3); elseif (j <= 2.1e+285) tmp = t_4; else tmp = t_6; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y2) - (z * y3); t_2 = (k * y2) - (j * y3); t_3 = (j * y3) - (k * y2); t_4 = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1)))); t_5 = (x * j) - (z * k); t_6 = c * (((i * ((z * t) - (x * y))) + (y0 * t_1)) + (y4 * ((y * y3) - (t * y2)))); t_7 = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); tmp = 0.0; if (j <= -1.7e+113) tmp = t_4; elseif (j <= -3.4e+20) tmp = y4 * (y1 * t_2); elseif (j <= -1.2) tmp = t_7; elseif (j <= -2.4e-204) tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_5) + (y4 * t_2))); elseif (j <= -2.3e-251) tmp = t_7; elseif (j <= 3.55e-258) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (j <= 5.2e-213) tmp = y0 * ((c * t_1) + ((y5 * t_3) - (b * t_5))); elseif (j <= 0.07) tmp = t_6; elseif (j <= 2.4e+121) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); elseif (j <= 3.6e+181) tmp = (y0 * y5) * t_3; elseif (j <= 2.1e+285) tmp = t_4; else tmp = t_6; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e+113], t$95$4, If[LessEqual[j, -3.4e+20], N[(y4 * N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2], t$95$7, If[LessEqual[j, -2.4e-204], N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * t$95$5), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.3e-251], t$95$7, If[LessEqual[j, 3.55e-258], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e-213], N[(y0 * N[(N[(c * t$95$1), $MachinePrecision] + N[(N[(y5 * t$95$3), $MachinePrecision] - N[(b * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 0.07], t$95$6, If[LessEqual[j, 2.4e+121], 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, 3.6e+181], N[(N[(y0 * y5), $MachinePrecision] * t$95$3), $MachinePrecision], If[LessEqual[j, 2.1e+285], t$95$4, t$95$6]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y2 - z \cdot y3\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := j \cdot y3 - k \cdot y2\\
t_4 := j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_5 := x \cdot j - z \cdot k\\
t_6 := c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot t_1\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_7 := y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{+113}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{+20}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot t_2\right)\\
\mathbf{elif}\;j \leq -1.2:\\
\;\;\;\;t_7\\
\mathbf{elif}\;j \leq -2.4 \cdot 10^{-204}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot t_5 + y4 \cdot t_2\right)\right)\\
\mathbf{elif}\;j \leq -2.3 \cdot 10^{-251}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;j \leq 3.55 \cdot 10^{-258}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{-213}:\\
\;\;\;\;y0 \cdot \left(c \cdot t_1 + \left(y5 \cdot t_3 - b \cdot t_5\right)\right)\\
\mathbf{elif}\;j \leq 0.07:\\
\;\;\;\;t_6\\
\mathbf{elif}\;j \leq 2.4 \cdot 10^{+121}:\\
\;\;\;\;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 3.6 \cdot 10^{+181}:\\
\;\;\;\;\left(y0 \cdot y5\right) \cdot t_3\\
\mathbf{elif}\;j \leq 2.1 \cdot 10^{+285}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\end{array}
if j < -1.70000000000000009e113 or 3.59999999999999985e181 < j < 2.1e285Initial program 17.9%
Simplified23.2%
Taylor expanded in j around inf 70.0%
if -1.70000000000000009e113 < j < -3.4e20Initial program 18.1%
Simplified18.1%
Taylor expanded in y4 around inf 36.8%
Taylor expanded in y1 around inf 55.2%
if -3.4e20 < j < -1.19999999999999996 or -2.4e-204 < j < -2.30000000000000017e-251Initial program 48.0%
Simplified57.5%
Taylor expanded in y around inf 62.6%
mul-1-neg62.6%
Simplified62.6%
if -1.19999999999999996 < j < -2.4e-204Initial program 39.3%
Simplified50.0%
Taylor expanded in y1 around inf 65.6%
mul-1-neg65.6%
mul-1-neg65.6%
sub-neg65.6%
Simplified65.6%
if -2.30000000000000017e-251 < j < 3.5499999999999999e-258Initial program 17.4%
Simplified17.4%
Taylor expanded in y2 around inf 61.2%
if 3.5499999999999999e-258 < j < 5.2000000000000003e-213Initial program 25.0%
Simplified33.3%
Taylor expanded in y0 around inf 67.1%
mul-1-neg67.1%
Simplified67.1%
if 5.2000000000000003e-213 < j < 0.070000000000000007 or 2.1e285 < j Initial program 39.4%
Simplified39.4%
Taylor expanded in c around inf 61.0%
if 0.070000000000000007 < j < 2.4e121Initial program 36.3%
Simplified36.3%
Taylor expanded in b around inf 60.0%
if 2.4e121 < j < 3.59999999999999985e181Initial program 0.8%
Simplified19.0%
Taylor expanded in y5 around inf 45.5%
mul-1-neg45.5%
mul-1-neg45.5%
mul-1-neg45.5%
sub-neg45.5%
sub-neg45.5%
Simplified45.5%
Taylor expanded in y0 around inf 73.0%
Final simplification63.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* a b) (* c i)))
(t_3
(+
(+
(+
(+
(+
(* t_2 (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) t_1))
(* (- (* t j) (* y k)) (- (* b y4) (* i y5))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* y1 y4) (* y0 y5)) (- (* k y2) (* j y3))))))
(if (<= t_3 INFINITY)
t_3
(* x (+ (+ (* y t_2) (* y2 t_1)) (* j (- (* i y1) (* b y0))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (a * b) - (c * i);
double t_3 = (((((t_2 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * t_1)) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (a * b) - (c * i);
double t_3 = (((((t_2 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * t_1)) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y0) - (a * y1) t_2 = (a * b) - (c * i) t_3 = (((((t_2 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * t_1)) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(t_2 * 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)) * t_1)) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(x * Float64(Float64(Float64(y * t_2) + Float64(y2 * t_1)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (c * y0) - (a * y1); t_2 = (a * b) - (c * i); t_3 = (((((t_2 * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * t_1)) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(t$95$2 * 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] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(x * N[(N[(N[(y * t$95$2), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := a \cdot b - c \cdot i\\
t_3 := \left(\left(\left(\left(t_2 \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 t_1\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(y1 \cdot y4 - y0 \cdot y5\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{if}\;t_3 \leq \infty:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t_2 + y2 \cdot t_1\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 93.9%
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%
Simplified0.0%
Taylor expanded in x around inf 36.0%
Final simplification53.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (- (* c y0) (* a y1))))
(t_2 (* j (- (* i y1) (* b y0))))
(t_3 (- (* a b) (* c i)))
(t_4 (* x (+ (+ (* y t_3) t_1) t_2)))
(t_5 (* y1 (- (* k y2) (* j y3))))
(t_6 (* y4 t_5))
(t_7
(*
y4
(+ (+ (* b (- (* t j) (* y k))) t_5) (* c (- (* y y3) (* t y2)))))))
(if (<= x -7e+19)
t_4
(if (<= x -5.2e-133)
t_7
(if (<= x -3.5e-166)
t_6
(if (<= x -1.4e-203)
t_4
(if (<= x 9.5e-302)
(* y0 (- (* y5 (- (* j y3) (* k y2))) (* b (- (* x j) (* z k)))))
(if (<= x 6.2e-258)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= x 4.1e-238)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= x 1.9e-102)
t_7
(if (<= x 1.6e+102)
t_6
(if (<= x 1.55e+181)
(* x (+ t_1 t_2))
(if (<= x 7e+198) (* y (* x t_3)) t_4)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * ((c * y0) - (a * y1));
double t_2 = j * ((i * y1) - (b * y0));
double t_3 = (a * b) - (c * i);
double t_4 = x * (((y * t_3) + t_1) + t_2);
double t_5 = y1 * ((k * y2) - (j * y3));
double t_6 = y4 * t_5;
double t_7 = y4 * (((b * ((t * j) - (y * k))) + t_5) + (c * ((y * y3) - (t * y2))));
double tmp;
if (x <= -7e+19) {
tmp = t_4;
} else if (x <= -5.2e-133) {
tmp = t_7;
} else if (x <= -3.5e-166) {
tmp = t_6;
} else if (x <= -1.4e-203) {
tmp = t_4;
} else if (x <= 9.5e-302) {
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))));
} else if (x <= 6.2e-258) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 4.1e-238) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (x <= 1.9e-102) {
tmp = t_7;
} else if (x <= 1.6e+102) {
tmp = t_6;
} else if (x <= 1.55e+181) {
tmp = x * (t_1 + t_2);
} else if (x <= 7e+198) {
tmp = y * (x * t_3);
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = y2 * ((c * y0) - (a * y1))
t_2 = j * ((i * y1) - (b * y0))
t_3 = (a * b) - (c * i)
t_4 = x * (((y * t_3) + t_1) + t_2)
t_5 = y1 * ((k * y2) - (j * y3))
t_6 = y4 * t_5
t_7 = y4 * (((b * ((t * j) - (y * k))) + t_5) + (c * ((y * y3) - (t * y2))))
if (x <= (-7d+19)) then
tmp = t_4
else if (x <= (-5.2d-133)) then
tmp = t_7
else if (x <= (-3.5d-166)) then
tmp = t_6
else if (x <= (-1.4d-203)) then
tmp = t_4
else if (x <= 9.5d-302) then
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))))
else if (x <= 6.2d-258) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (x <= 4.1d-238) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (x <= 1.9d-102) then
tmp = t_7
else if (x <= 1.6d+102) then
tmp = t_6
else if (x <= 1.55d+181) then
tmp = x * (t_1 + t_2)
else if (x <= 7d+198) then
tmp = y * (x * t_3)
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * ((c * y0) - (a * y1));
double t_2 = j * ((i * y1) - (b * y0));
double t_3 = (a * b) - (c * i);
double t_4 = x * (((y * t_3) + t_1) + t_2);
double t_5 = y1 * ((k * y2) - (j * y3));
double t_6 = y4 * t_5;
double t_7 = y4 * (((b * ((t * j) - (y * k))) + t_5) + (c * ((y * y3) - (t * y2))));
double tmp;
if (x <= -7e+19) {
tmp = t_4;
} else if (x <= -5.2e-133) {
tmp = t_7;
} else if (x <= -3.5e-166) {
tmp = t_6;
} else if (x <= -1.4e-203) {
tmp = t_4;
} else if (x <= 9.5e-302) {
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))));
} else if (x <= 6.2e-258) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 4.1e-238) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (x <= 1.9e-102) {
tmp = t_7;
} else if (x <= 1.6e+102) {
tmp = t_6;
} else if (x <= 1.55e+181) {
tmp = x * (t_1 + t_2);
} else if (x <= 7e+198) {
tmp = y * (x * t_3);
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y2 * ((c * y0) - (a * y1)) t_2 = j * ((i * y1) - (b * y0)) t_3 = (a * b) - (c * i) t_4 = x * (((y * t_3) + t_1) + t_2) t_5 = y1 * ((k * y2) - (j * y3)) t_6 = y4 * t_5 t_7 = y4 * (((b * ((t * j) - (y * k))) + t_5) + (c * ((y * y3) - (t * y2)))) tmp = 0 if x <= -7e+19: tmp = t_4 elif x <= -5.2e-133: tmp = t_7 elif x <= -3.5e-166: tmp = t_6 elif x <= -1.4e-203: tmp = t_4 elif x <= 9.5e-302: tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))) elif x <= 6.2e-258: tmp = t * (y5 * ((a * y2) - (i * j))) elif x <= 4.1e-238: tmp = z * (c * ((t * i) - (y0 * y3))) elif x <= 1.9e-102: tmp = t_7 elif x <= 1.6e+102: tmp = t_6 elif x <= 1.55e+181: tmp = x * (t_1 + t_2) elif x <= 7e+198: tmp = y * (x * t_3) else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1))) t_2 = Float64(j * Float64(Float64(i * y1) - Float64(b * y0))) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(x * Float64(Float64(Float64(y * t_3) + t_1) + t_2)) t_5 = Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) t_6 = Float64(y4 * t_5) t_7 = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + t_5) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (x <= -7e+19) tmp = t_4; elseif (x <= -5.2e-133) tmp = t_7; elseif (x <= -3.5e-166) tmp = t_6; elseif (x <= -1.4e-203) tmp = t_4; elseif (x <= 9.5e-302) tmp = Float64(y0 * Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(b * Float64(Float64(x * j) - Float64(z * k))))); elseif (x <= 6.2e-258) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (x <= 4.1e-238) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (x <= 1.9e-102) tmp = t_7; elseif (x <= 1.6e+102) tmp = t_6; elseif (x <= 1.55e+181) tmp = Float64(x * Float64(t_1 + t_2)); elseif (x <= 7e+198) tmp = Float64(y * Float64(x * t_3)); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y2 * ((c * y0) - (a * y1)); t_2 = j * ((i * y1) - (b * y0)); t_3 = (a * b) - (c * i); t_4 = x * (((y * t_3) + t_1) + t_2); t_5 = y1 * ((k * y2) - (j * y3)); t_6 = y4 * t_5; t_7 = y4 * (((b * ((t * j) - (y * k))) + t_5) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (x <= -7e+19) tmp = t_4; elseif (x <= -5.2e-133) tmp = t_7; elseif (x <= -3.5e-166) tmp = t_6; elseif (x <= -1.4e-203) tmp = t_4; elseif (x <= 9.5e-302) tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))); elseif (x <= 6.2e-258) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (x <= 4.1e-238) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (x <= 1.9e-102) tmp = t_7; elseif (x <= 1.6e+102) tmp = t_6; elseif (x <= 1.55e+181) tmp = x * (t_1 + t_2); elseif (x <= 7e+198) tmp = y * (x * t_3); else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(N[(y * t$95$3), $MachinePrecision] + t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y4 * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+19], t$95$4, If[LessEqual[x, -5.2e-133], t$95$7, If[LessEqual[x, -3.5e-166], t$95$6, If[LessEqual[x, -1.4e-203], t$95$4, If[LessEqual[x, 9.5e-302], N[(y0 * N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.2e-258], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.1e-238], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e-102], t$95$7, If[LessEqual[x, 1.6e+102], t$95$6, If[LessEqual[x, 1.55e+181], N[(x * N[(t$95$1 + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e+198], N[(y * N[(x * t$95$3), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\\
t_2 := j \cdot \left(i \cdot y1 - b \cdot y0\right)\\
t_3 := a \cdot b - c \cdot i\\
t_4 := x \cdot \left(\left(y \cdot t_3 + t_1\right) + t_2\right)\\
t_5 := y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\\
t_6 := y4 \cdot t_5\\
t_7 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + t_5\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;x \leq -7 \cdot 10^{+19}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-133}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-166}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-203}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-302}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) - b \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-258}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-238}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-102}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+102}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+181}:\\
\;\;\;\;x \cdot \left(t_1 + t_2\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{+198}:\\
\;\;\;\;y \cdot \left(x \cdot t_3\right)\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if x < -7e19 or -3.4999999999999999e-166 < x < -1.40000000000000011e-203 or 7.00000000000000026e198 < x Initial program 26.5%
Simplified26.5%
Taylor expanded in x around inf 59.7%
if -7e19 < x < -5.1999999999999999e-133 or 4.1000000000000001e-238 < x < 1.90000000000000013e-102Initial program 40.1%
Simplified40.1%
Taylor expanded in y4 around inf 57.2%
if -5.1999999999999999e-133 < x < -3.4999999999999999e-166 or 1.90000000000000013e-102 < x < 1.6e102Initial program 19.7%
Simplified19.7%
Taylor expanded in y4 around inf 28.6%
Taylor expanded in y1 around inf 52.7%
if -1.40000000000000011e-203 < x < 9.49999999999999991e-302Initial program 30.0%
Simplified30.0%
Taylor expanded in y0 around inf 55.2%
mul-1-neg55.2%
Simplified55.2%
Taylor expanded in c around 0 60.5%
if 9.49999999999999991e-302 < x < 6.19999999999999997e-258Initial program 0.0%
Simplified0.0%
Taylor expanded in y5 around inf 42.9%
mul-1-neg42.9%
mul-1-neg42.9%
mul-1-neg42.9%
sub-neg42.9%
sub-neg42.9%
Simplified42.9%
Taylor expanded in t around inf 72.2%
if 6.19999999999999997e-258 < x < 4.1000000000000001e-238Initial program 51.2%
Simplified51.2%
Taylor expanded in c around inf 61.9%
Taylor expanded in z around inf 75.5%
associate-*r*63.9%
+-commutative63.9%
mul-1-neg63.9%
unsub-neg63.9%
Simplified63.9%
if 1.6e102 < x < 1.54999999999999995e181Initial program 37.5%
Simplified37.5%
Taylor expanded in x around inf 45.4%
Taylor expanded in y around 0 57.4%
if 1.54999999999999995e181 < x < 7.00000000000000026e198Initial program 16.7%
Simplified16.7%
Taylor expanded in y around inf 83.4%
mul-1-neg83.4%
Simplified83.4%
Taylor expanded in x around inf 66.7%
Final simplification58.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i)))
(t_2 (* j (- (* i y1) (* b y0))))
(t_3 (- (* c y0) (* a y1)))
(t_4
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_3))
(* t (- (* a y5) (* c y4))))))
(t_5 (- (* t j) (* y k)))
(t_6
(*
y4
(+
(+ (* b t_5) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2))))))
(t_7
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_5))
(* y0 (- (* z k) (* x j))))))
(t_8 (* y2 t_3))
(t_9 (* x (+ (+ (* y t_1) t_8) t_2))))
(if (<= y2 -1.72e-13)
t_4
(if (<= y2 -1.15e-72)
(*
y
(*
x
(/ (- (* (* a b) (* a b)) (* (* c i) (* c i))) (+ (* a b) (* c i)))))
(if (<= y2 -5.8e-140)
t_6
(if (<= y2 -3.9e-159)
t_7
(if (<= y2 -2.2e-254)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 -5e-275)
t_6
(if (<= y2 8.2e-296)
t_9
(if (<= y2 1.2e-282)
(* y (* x t_1))
(if (<= y2 7.8e-186)
(* x (+ t_8 t_2))
(if (<= y2 1.02e+77)
t_9
(if (<= y2 1.6e+198) t_7 t_4)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * b) - (c * i);
double t_2 = j * ((i * y1) - (b * y0));
double t_3 = (c * y0) - (a * y1);
double t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_3)) + (t * ((a * y5) - (c * y4))));
double t_5 = (t * j) - (y * k);
double t_6 = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_7 = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + (y0 * ((z * k) - (x * j))));
double t_8 = y2 * t_3;
double t_9 = x * (((y * t_1) + t_8) + t_2);
double tmp;
if (y2 <= -1.72e-13) {
tmp = t_4;
} else if (y2 <= -1.15e-72) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -5.8e-140) {
tmp = t_6;
} else if (y2 <= -3.9e-159) {
tmp = t_7;
} else if (y2 <= -2.2e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= -5e-275) {
tmp = t_6;
} else if (y2 <= 8.2e-296) {
tmp = t_9;
} else if (y2 <= 1.2e-282) {
tmp = y * (x * t_1);
} else if (y2 <= 7.8e-186) {
tmp = x * (t_8 + t_2);
} else if (y2 <= 1.02e+77) {
tmp = t_9;
} else if (y2 <= 1.6e+198) {
tmp = t_7;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (a * b) - (c * i)
t_2 = j * ((i * y1) - (b * y0))
t_3 = (c * y0) - (a * y1)
t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_3)) + (t * ((a * y5) - (c * y4))))
t_5 = (t * j) - (y * k)
t_6 = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
t_7 = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + (y0 * ((z * k) - (x * j))))
t_8 = y2 * t_3
t_9 = x * (((y * t_1) + t_8) + t_2)
if (y2 <= (-1.72d-13)) then
tmp = t_4
else if (y2 <= (-1.15d-72)) then
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))))
else if (y2 <= (-5.8d-140)) then
tmp = t_6
else if (y2 <= (-3.9d-159)) then
tmp = t_7
else if (y2 <= (-2.2d-254)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= (-5d-275)) then
tmp = t_6
else if (y2 <= 8.2d-296) then
tmp = t_9
else if (y2 <= 1.2d-282) then
tmp = y * (x * t_1)
else if (y2 <= 7.8d-186) then
tmp = x * (t_8 + t_2)
else if (y2 <= 1.02d+77) then
tmp = t_9
else if (y2 <= 1.6d+198) then
tmp = t_7
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * b) - (c * i);
double t_2 = j * ((i * y1) - (b * y0));
double t_3 = (c * y0) - (a * y1);
double t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_3)) + (t * ((a * y5) - (c * y4))));
double t_5 = (t * j) - (y * k);
double t_6 = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_7 = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + (y0 * ((z * k) - (x * j))));
double t_8 = y2 * t_3;
double t_9 = x * (((y * t_1) + t_8) + t_2);
double tmp;
if (y2 <= -1.72e-13) {
tmp = t_4;
} else if (y2 <= -1.15e-72) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -5.8e-140) {
tmp = t_6;
} else if (y2 <= -3.9e-159) {
tmp = t_7;
} else if (y2 <= -2.2e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= -5e-275) {
tmp = t_6;
} else if (y2 <= 8.2e-296) {
tmp = t_9;
} else if (y2 <= 1.2e-282) {
tmp = y * (x * t_1);
} else if (y2 <= 7.8e-186) {
tmp = x * (t_8 + t_2);
} else if (y2 <= 1.02e+77) {
tmp = t_9;
} else if (y2 <= 1.6e+198) {
tmp = t_7;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * b) - (c * i) t_2 = j * ((i * y1) - (b * y0)) t_3 = (c * y0) - (a * y1) t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_3)) + (t * ((a * y5) - (c * y4)))) t_5 = (t * j) - (y * k) t_6 = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) t_7 = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + (y0 * ((z * k) - (x * j)))) t_8 = y2 * t_3 t_9 = x * (((y * t_1) + t_8) + t_2) tmp = 0 if y2 <= -1.72e-13: tmp = t_4 elif y2 <= -1.15e-72: tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))) elif y2 <= -5.8e-140: tmp = t_6 elif y2 <= -3.9e-159: tmp = t_7 elif y2 <= -2.2e-254: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= -5e-275: tmp = t_6 elif y2 <= 8.2e-296: tmp = t_9 elif y2 <= 1.2e-282: tmp = y * (x * t_1) elif y2 <= 7.8e-186: tmp = x * (t_8 + t_2) elif y2 <= 1.02e+77: tmp = t_9 elif y2 <= 1.6e+198: tmp = t_7 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * b) - Float64(c * i)) t_2 = Float64(j * Float64(Float64(i * y1) - Float64(b * y0))) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) t_4 = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_3)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) t_5 = Float64(Float64(t * j) - Float64(y * k)) t_6 = Float64(y4 * Float64(Float64(Float64(b * t_5) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_7 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_5)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_8 = Float64(y2 * t_3) t_9 = Float64(x * Float64(Float64(Float64(y * t_1) + t_8) + t_2)) tmp = 0.0 if (y2 <= -1.72e-13) tmp = t_4; elseif (y2 <= -1.15e-72) tmp = Float64(y * Float64(x * Float64(Float64(Float64(Float64(a * b) * Float64(a * b)) - Float64(Float64(c * i) * Float64(c * i))) / Float64(Float64(a * b) + Float64(c * i))))); elseif (y2 <= -5.8e-140) tmp = t_6; elseif (y2 <= -3.9e-159) tmp = t_7; elseif (y2 <= -2.2e-254) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= -5e-275) tmp = t_6; elseif (y2 <= 8.2e-296) tmp = t_9; elseif (y2 <= 1.2e-282) tmp = Float64(y * Float64(x * t_1)); elseif (y2 <= 7.8e-186) tmp = Float64(x * Float64(t_8 + t_2)); elseif (y2 <= 1.02e+77) tmp = t_9; elseif (y2 <= 1.6e+198) tmp = t_7; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * b) - (c * i); t_2 = j * ((i * y1) - (b * y0)); t_3 = (c * y0) - (a * y1); t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_3)) + (t * ((a * y5) - (c * y4)))); t_5 = (t * j) - (y * k); t_6 = y4 * (((b * t_5) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); t_7 = b * (((a * ((x * y) - (z * t))) + (y4 * t_5)) + (y0 * ((z * k) - (x * j)))); t_8 = y2 * t_3; t_9 = x * (((y * t_1) + t_8) + t_2); tmp = 0.0; if (y2 <= -1.72e-13) tmp = t_4; elseif (y2 <= -1.15e-72) tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))); elseif (y2 <= -5.8e-140) tmp = t_6; elseif (y2 <= -3.9e-159) tmp = t_7; elseif (y2 <= -2.2e-254) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= -5e-275) tmp = t_6; elseif (y2 <= 8.2e-296) tmp = t_9; elseif (y2 <= 1.2e-282) tmp = y * (x * t_1); elseif (y2 <= 7.8e-186) tmp = x * (t_8 + t_2); elseif (y2 <= 1.02e+77) tmp = t_9; elseif (y2 <= 1.6e+198) tmp = t_7; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y4 * N[(N[(N[(b * t$95$5), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(y2 * t$95$3), $MachinePrecision]}, Block[{t$95$9 = N[(x * N[(N[(N[(y * t$95$1), $MachinePrecision] + t$95$8), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.72e-13], t$95$4, If[LessEqual[y2, -1.15e-72], N[(y * N[(x * N[(N[(N[(N[(a * b), $MachinePrecision] * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(N[(c * i), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.8e-140], t$95$6, If[LessEqual[y2, -3.9e-159], t$95$7, If[LessEqual[y2, -2.2e-254], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5e-275], t$95$6, If[LessEqual[y2, 8.2e-296], t$95$9, If[LessEqual[y2, 1.2e-282], N[(y * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.8e-186], N[(x * N[(t$95$8 + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.02e+77], t$95$9, If[LessEqual[y2, 1.6e+198], t$95$7, t$95$4]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := j \cdot \left(i \cdot y1 - b \cdot y0\right)\\
t_3 := c \cdot y0 - a \cdot y1\\
t_4 := y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_3\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_5 := t \cdot j - y \cdot k\\
t_6 := y4 \cdot \left(\left(b \cdot t_5 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_7 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_5\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_8 := y2 \cdot t_3\\
t_9 := x \cdot \left(\left(y \cdot t_1 + t_8\right) + t_2\right)\\
\mathbf{if}\;y2 \leq -1.72 \cdot 10^{-13}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-72}:\\
\;\;\;\;y \cdot \left(x \cdot \frac{\left(a \cdot b\right) \cdot \left(a \cdot b\right) - \left(c \cdot i\right) \cdot \left(c \cdot i\right)}{a \cdot b + c \cdot i}\right)\\
\mathbf{elif}\;y2 \leq -5.8 \cdot 10^{-140}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y2 \leq -3.9 \cdot 10^{-159}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;y2 \leq -2.2 \cdot 10^{-254}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -5 \cdot 10^{-275}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y2 \leq 8.2 \cdot 10^{-296}:\\
\;\;\;\;t_9\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{-282}:\\
\;\;\;\;y \cdot \left(x \cdot t_1\right)\\
\mathbf{elif}\;y2 \leq 7.8 \cdot 10^{-186}:\\
\;\;\;\;x \cdot \left(t_8 + t_2\right)\\
\mathbf{elif}\;y2 \leq 1.02 \cdot 10^{+77}:\\
\;\;\;\;t_9\\
\mathbf{elif}\;y2 \leq 1.6 \cdot 10^{+198}:\\
\;\;\;\;t_7\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if y2 < -1.71999999999999999e-13 or 1.5999999999999999e198 < y2 Initial program 28.5%
Simplified28.5%
Taylor expanded in y2 around inf 63.0%
if -1.71999999999999999e-13 < y2 < -1.14999999999999997e-72Initial program 29.8%
Simplified39.8%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in x around inf 70.9%
flip--80.5%
Applied egg-rr80.5%
if -1.14999999999999997e-72 < y2 < -5.79999999999999995e-140 or -2.2000000000000001e-254 < y2 < -4.99999999999999983e-275Initial program 15.4%
Simplified15.4%
Taylor expanded in y4 around inf 51.5%
if -5.79999999999999995e-140 < y2 < -3.89999999999999977e-159 or 1.02e77 < y2 < 1.5999999999999999e198Initial program 31.2%
Simplified31.2%
Taylor expanded in b around inf 56.5%
if -3.89999999999999977e-159 < y2 < -2.2000000000000001e-254Initial program 22.2%
Simplified22.2%
Taylor expanded in c around inf 56.5%
Taylor expanded in z around inf 62.0%
associate-*r*67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
Simplified67.3%
if -4.99999999999999983e-275 < y2 < 8.19999999999999988e-296 or 7.8000000000000002e-186 < y2 < 1.02e77Initial program 32.7%
Simplified32.7%
Taylor expanded in x around inf 57.4%
if 8.19999999999999988e-296 < y2 < 1.19999999999999998e-282Initial program 51.6%
Simplified51.6%
Taylor expanded in y around inf 74.7%
mul-1-neg74.7%
Simplified74.7%
Taylor expanded in x around inf 75.5%
if 1.19999999999999998e-282 < y2 < 7.8000000000000002e-186Initial program 30.8%
Simplified30.8%
Taylor expanded in x around inf 56.8%
Taylor expanded in y around 0 61.9%
Final simplification61.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* y5 (- (* j y3) (* k y2))) (* b (- (* x j) (* z k)))))
(t_4 (* y0 (+ (* c (- (* x y2) (* z y3))) t_3)))
(t_5 (- (* c y0) (* a y1)))
(t_6 (- (* c y4) (* a y5)))
(t_7 (* x (+ (+ (* y t_1) (* y2 t_5)) (* j (- (* i y1) (* b y0))))))
(t_8 (- (* y1 y4) (* y0 y5)))
(t_9 (* b (- (* t j) (* y k))))
(t_10 (+ (* y4 t_9) (- (* t_8 t_2) (* (- (* t y2) (* y y3)) t_6)))))
(if (<= x -9e+132)
t_7
(if (<= x -4.7)
(* y2 (+ (+ (* k t_8) (* x t_5)) (* t (- (* a y5) (* c y4)))))
(if (<= x -1.05e-105)
t_10
(if (<= x -1.3e-197)
t_4
(if (<= x -2.5e-289)
t_10
(if (<= x 7.2e-292)
(* y0 t_3)
(if (<= x 4.3e-159)
(* y4 (+ (+ t_9 (* y1 t_2)) (* c (- (* y y3) (* t y2)))))
(if (<= x 9.5e+79)
t_4
(if (<= x 7.2e+149)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= x 4.2e+201)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x t_1) (* y3 t_6))))
t_7))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * b) - (c * i);
double t_2 = (k * y2) - (j * y3);
double t_3 = (y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)));
double t_4 = y0 * ((c * ((x * y2) - (z * y3))) + t_3);
double t_5 = (c * y0) - (a * y1);
double t_6 = (c * y4) - (a * y5);
double t_7 = x * (((y * t_1) + (y2 * t_5)) + (j * ((i * y1) - (b * y0))));
double t_8 = (y1 * y4) - (y0 * y5);
double t_9 = b * ((t * j) - (y * k));
double t_10 = (y4 * t_9) + ((t_8 * t_2) - (((t * y2) - (y * y3)) * t_6));
double tmp;
if (x <= -9e+132) {
tmp = t_7;
} else if (x <= -4.7) {
tmp = y2 * (((k * t_8) + (x * t_5)) + (t * ((a * y5) - (c * y4))));
} else if (x <= -1.05e-105) {
tmp = t_10;
} else if (x <= -1.3e-197) {
tmp = t_4;
} else if (x <= -2.5e-289) {
tmp = t_10;
} else if (x <= 7.2e-292) {
tmp = y0 * t_3;
} else if (x <= 4.3e-159) {
tmp = y4 * ((t_9 + (y1 * t_2)) + (c * ((y * y3) - (t * y2))));
} else if (x <= 9.5e+79) {
tmp = t_4;
} else if (x <= 7.2e+149) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= 4.2e+201) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * t_6)));
} else {
tmp = t_7;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
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 = (a * b) - (c * i)
t_2 = (k * y2) - (j * y3)
t_3 = (y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))
t_4 = y0 * ((c * ((x * y2) - (z * y3))) + t_3)
t_5 = (c * y0) - (a * y1)
t_6 = (c * y4) - (a * y5)
t_7 = x * (((y * t_1) + (y2 * t_5)) + (j * ((i * y1) - (b * y0))))
t_8 = (y1 * y4) - (y0 * y5)
t_9 = b * ((t * j) - (y * k))
t_10 = (y4 * t_9) + ((t_8 * t_2) - (((t * y2) - (y * y3)) * t_6))
if (x <= (-9d+132)) then
tmp = t_7
else if (x <= (-4.7d0)) then
tmp = y2 * (((k * t_8) + (x * t_5)) + (t * ((a * y5) - (c * y4))))
else if (x <= (-1.05d-105)) then
tmp = t_10
else if (x <= (-1.3d-197)) then
tmp = t_4
else if (x <= (-2.5d-289)) then
tmp = t_10
else if (x <= 7.2d-292) then
tmp = y0 * t_3
else if (x <= 4.3d-159) then
tmp = y4 * ((t_9 + (y1 * t_2)) + (c * ((y * y3) - (t * y2))))
else if (x <= 9.5d+79) then
tmp = t_4
else if (x <= 7.2d+149) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (x <= 4.2d+201) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * t_6)))
else
tmp = t_7
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * b) - (c * i);
double t_2 = (k * y2) - (j * y3);
double t_3 = (y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)));
double t_4 = y0 * ((c * ((x * y2) - (z * y3))) + t_3);
double t_5 = (c * y0) - (a * y1);
double t_6 = (c * y4) - (a * y5);
double t_7 = x * (((y * t_1) + (y2 * t_5)) + (j * ((i * y1) - (b * y0))));
double t_8 = (y1 * y4) - (y0 * y5);
double t_9 = b * ((t * j) - (y * k));
double t_10 = (y4 * t_9) + ((t_8 * t_2) - (((t * y2) - (y * y3)) * t_6));
double tmp;
if (x <= -9e+132) {
tmp = t_7;
} else if (x <= -4.7) {
tmp = y2 * (((k * t_8) + (x * t_5)) + (t * ((a * y5) - (c * y4))));
} else if (x <= -1.05e-105) {
tmp = t_10;
} else if (x <= -1.3e-197) {
tmp = t_4;
} else if (x <= -2.5e-289) {
tmp = t_10;
} else if (x <= 7.2e-292) {
tmp = y0 * t_3;
} else if (x <= 4.3e-159) {
tmp = y4 * ((t_9 + (y1 * t_2)) + (c * ((y * y3) - (t * y2))));
} else if (x <= 9.5e+79) {
tmp = t_4;
} else if (x <= 7.2e+149) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= 4.2e+201) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * t_6)));
} else {
tmp = t_7;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * b) - (c * i) t_2 = (k * y2) - (j * y3) t_3 = (y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))) t_4 = y0 * ((c * ((x * y2) - (z * y3))) + t_3) t_5 = (c * y0) - (a * y1) t_6 = (c * y4) - (a * y5) t_7 = x * (((y * t_1) + (y2 * t_5)) + (j * ((i * y1) - (b * y0)))) t_8 = (y1 * y4) - (y0 * y5) t_9 = b * ((t * j) - (y * k)) t_10 = (y4 * t_9) + ((t_8 * t_2) - (((t * y2) - (y * y3)) * t_6)) tmp = 0 if x <= -9e+132: tmp = t_7 elif x <= -4.7: tmp = y2 * (((k * t_8) + (x * t_5)) + (t * ((a * y5) - (c * y4)))) elif x <= -1.05e-105: tmp = t_10 elif x <= -1.3e-197: tmp = t_4 elif x <= -2.5e-289: tmp = t_10 elif x <= 7.2e-292: tmp = y0 * t_3 elif x <= 4.3e-159: tmp = y4 * ((t_9 + (y1 * t_2)) + (c * ((y * y3) - (t * y2)))) elif x <= 9.5e+79: tmp = t_4 elif x <= 7.2e+149: tmp = c * (y2 * ((x * y0) - (t * y4))) elif x <= 4.2e+201: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * t_6))) else: tmp = t_7 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * b) - Float64(c * i)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(b * Float64(Float64(x * j) - Float64(z * k)))) t_4 = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + t_3)) t_5 = Float64(Float64(c * y0) - Float64(a * y1)) t_6 = Float64(Float64(c * y4) - Float64(a * y5)) t_7 = Float64(x * Float64(Float64(Float64(y * t_1) + Float64(y2 * t_5)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))) t_8 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_9 = Float64(b * Float64(Float64(t * j) - Float64(y * k))) t_10 = Float64(Float64(y4 * t_9) + Float64(Float64(t_8 * t_2) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_6))) tmp = 0.0 if (x <= -9e+132) tmp = t_7; elseif (x <= -4.7) tmp = Float64(y2 * Float64(Float64(Float64(k * t_8) + Float64(x * t_5)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (x <= -1.05e-105) tmp = t_10; elseif (x <= -1.3e-197) tmp = t_4; elseif (x <= -2.5e-289) tmp = t_10; elseif (x <= 7.2e-292) tmp = Float64(y0 * t_3); elseif (x <= 4.3e-159) tmp = Float64(y4 * Float64(Float64(t_9 + Float64(y1 * t_2)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (x <= 9.5e+79) tmp = t_4; elseif (x <= 7.2e+149) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (x <= 4.2e+201) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_1) + Float64(y3 * t_6)))); else tmp = t_7; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * b) - (c * i); t_2 = (k * y2) - (j * y3); t_3 = (y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))); t_4 = y0 * ((c * ((x * y2) - (z * y3))) + t_3); t_5 = (c * y0) - (a * y1); t_6 = (c * y4) - (a * y5); t_7 = x * (((y * t_1) + (y2 * t_5)) + (j * ((i * y1) - (b * y0)))); t_8 = (y1 * y4) - (y0 * y5); t_9 = b * ((t * j) - (y * k)); t_10 = (y4 * t_9) + ((t_8 * t_2) - (((t * y2) - (y * y3)) * t_6)); tmp = 0.0; if (x <= -9e+132) tmp = t_7; elseif (x <= -4.7) tmp = y2 * (((k * t_8) + (x * t_5)) + (t * ((a * y5) - (c * y4)))); elseif (x <= -1.05e-105) tmp = t_10; elseif (x <= -1.3e-197) tmp = t_4; elseif (x <= -2.5e-289) tmp = t_10; elseif (x <= 7.2e-292) tmp = y0 * t_3; elseif (x <= 4.3e-159) tmp = y4 * ((t_9 + (y1 * t_2)) + (c * ((y * y3) - (t * y2)))); elseif (x <= 9.5e+79) tmp = t_4; elseif (x <= 7.2e+149) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (x <= 4.2e+201) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_1) + (y3 * t_6))); else tmp = t_7; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(x * N[(N[(N[(y * t$95$1), $MachinePrecision] + N[(y2 * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(y4 * t$95$9), $MachinePrecision] + N[(N[(t$95$8 * t$95$2), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9e+132], t$95$7, If[LessEqual[x, -4.7], N[(y2 * N[(N[(N[(k * t$95$8), $MachinePrecision] + N[(x * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.05e-105], t$95$10, If[LessEqual[x, -1.3e-197], t$95$4, If[LessEqual[x, -2.5e-289], t$95$10, If[LessEqual[x, 7.2e-292], N[(y0 * t$95$3), $MachinePrecision], If[LessEqual[x, 4.3e-159], N[(y4 * N[(N[(t$95$9 + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e+79], t$95$4, If[LessEqual[x, 7.2e+149], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+201], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + N[(y3 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$7]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := y5 \cdot \left(j \cdot y3 - k \cdot y2\right) - b \cdot \left(x \cdot j - z \cdot k\right)\\
t_4 := y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + t_3\right)\\
t_5 := c \cdot y0 - a \cdot y1\\
t_6 := c \cdot y4 - a \cdot y5\\
t_7 := x \cdot \left(\left(y \cdot t_1 + y2 \cdot t_5\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_8 := y1 \cdot y4 - y0 \cdot y5\\
t_9 := b \cdot \left(t \cdot j - y \cdot k\right)\\
t_10 := y4 \cdot t_9 + \left(t_8 \cdot t_2 - \left(t \cdot y2 - y \cdot y3\right) \cdot t_6\right)\\
\mathbf{if}\;x \leq -9 \cdot 10^{+132}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;x \leq -4.7:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t_8 + x \cdot t_5\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-105}:\\
\;\;\;\;t_10\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{-197}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-289}:\\
\;\;\;\;t_10\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-292}:\\
\;\;\;\;y0 \cdot t_3\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{-159}:\\
\;\;\;\;y4 \cdot \left(\left(t_9 + y1 \cdot t_2\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+79}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+149}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+201}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_1 + y3 \cdot t_6\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_7\\
\end{array}
\end{array}
if x < -8.99999999999999944e132 or 4.1999999999999998e201 < x Initial program 18.7%
Simplified18.7%
Taylor expanded in x around inf 65.8%
if -8.99999999999999944e132 < x < -4.70000000000000018Initial program 30.7%
Simplified30.7%
Taylor expanded in y2 around inf 62.7%
if -4.70000000000000018 < x < -1.05e-105 or -1.3000000000000001e-197 < x < -2.50000000000000014e-289Initial program 50.0%
Simplified50.0%
Taylor expanded in y4 around inf 65.8%
if -1.05e-105 < x < -1.3000000000000001e-197 or 4.3e-159 < x < 9.49999999999999994e79Initial program 25.4%
Simplified31.8%
Taylor expanded in y0 around inf 54.9%
mul-1-neg54.9%
Simplified54.9%
if -2.50000000000000014e-289 < x < 7.2000000000000004e-292Initial program 0.0%
Simplified0.0%
Taylor expanded in y0 around inf 75.0%
mul-1-neg75.0%
Simplified75.0%
Taylor expanded in c around 0 75.1%
if 7.2000000000000004e-292 < x < 4.3e-159Initial program 37.7%
Simplified37.7%
Taylor expanded in y4 around inf 52.7%
if 9.49999999999999994e79 < x < 7.1999999999999999e149Initial program 30.8%
Simplified30.8%
Taylor expanded in c around inf 23.8%
Taylor expanded in y2 around inf 69.6%
if 7.1999999999999999e149 < x < 4.1999999999999998e201Initial program 26.7%
Simplified26.7%
Taylor expanded in y around inf 73.3%
mul-1-neg73.3%
Simplified73.3%
Final simplification62.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (- (* k y2) (* j y3))))
(t_2 (- (* a y5) (* c y4)))
(t_3
(*
t
(+
(* z (- (* c i) (* a b)))
(+ (* j (- (* b y4) (* i y5))) (* y2 t_2)))))
(t_4 (- (* c y0) (* a y1)))
(t_5 (* y2 (+ (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_4)) (* t t_2))))
(t_6 (- (* t j) (* y k))))
(if (<= y2 -1.05e+224)
(* y4 t_1)
(if (<= y2 -1.25e+125)
t_3
(if (<= y2 -5.8e-13)
t_5
(if (<= y2 -1.55e-71)
(*
y
(*
x
(/
(- (* (* a b) (* a b)) (* (* c i) (* c i)))
(+ (* a b) (* c i)))))
(if (<= y2 -5.4e-127)
(* y4 (+ (+ (* b t_6) t_1) (* c (- (* y y3) (* t y2)))))
(if (<= y2 -1.22e-169)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_6))
(* y0 (- (* z k) (* x j)))))
(if (<= y2 -3.5e-273)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.25e+51)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_4))
(* j (- (* i y1) (* b y0)))))
(if (<= y2 8.5e+154)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (<= y2 2.1e+211) t_3 t_5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * ((k * y2) - (j * y3));
double t_2 = (a * y5) - (c * y4);
double t_3 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)));
double t_4 = (c * y0) - (a * y1);
double t_5 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_4)) + (t * t_2));
double t_6 = (t * j) - (y * k);
double tmp;
if (y2 <= -1.05e+224) {
tmp = y4 * t_1;
} else if (y2 <= -1.25e+125) {
tmp = t_3;
} else if (y2 <= -5.8e-13) {
tmp = t_5;
} else if (y2 <= -1.55e-71) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -5.4e-127) {
tmp = y4 * (((b * t_6) + t_1) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -1.22e-169) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + (y0 * ((z * k) - (x * j))));
} else if (y2 <= -3.5e-273) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.25e+51) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 8.5e+154) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y2 <= 2.1e+211) {
tmp = t_3;
} else {
tmp = t_5;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = y1 * ((k * y2) - (j * y3))
t_2 = (a * y5) - (c * y4)
t_3 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)))
t_4 = (c * y0) - (a * y1)
t_5 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_4)) + (t * t_2))
t_6 = (t * j) - (y * k)
if (y2 <= (-1.05d+224)) then
tmp = y4 * t_1
else if (y2 <= (-1.25d+125)) then
tmp = t_3
else if (y2 <= (-5.8d-13)) then
tmp = t_5
else if (y2 <= (-1.55d-71)) then
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))))
else if (y2 <= (-5.4d-127)) then
tmp = y4 * (((b * t_6) + t_1) + (c * ((y * y3) - (t * y2))))
else if (y2 <= (-1.22d-169)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + (y0 * ((z * k) - (x * j))))
else if (y2 <= (-3.5d-273)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.25d+51) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 8.5d+154) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if (y2 <= 2.1d+211) then
tmp = t_3
else
tmp = t_5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * ((k * y2) - (j * y3));
double t_2 = (a * y5) - (c * y4);
double t_3 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)));
double t_4 = (c * y0) - (a * y1);
double t_5 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_4)) + (t * t_2));
double t_6 = (t * j) - (y * k);
double tmp;
if (y2 <= -1.05e+224) {
tmp = y4 * t_1;
} else if (y2 <= -1.25e+125) {
tmp = t_3;
} else if (y2 <= -5.8e-13) {
tmp = t_5;
} else if (y2 <= -1.55e-71) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -5.4e-127) {
tmp = y4 * (((b * t_6) + t_1) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -1.22e-169) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + (y0 * ((z * k) - (x * j))));
} else if (y2 <= -3.5e-273) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.25e+51) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 8.5e+154) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y2 <= 2.1e+211) {
tmp = t_3;
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * ((k * y2) - (j * y3)) t_2 = (a * y5) - (c * y4) t_3 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2))) t_4 = (c * y0) - (a * y1) t_5 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_4)) + (t * t_2)) t_6 = (t * j) - (y * k) tmp = 0 if y2 <= -1.05e+224: tmp = y4 * t_1 elif y2 <= -1.25e+125: tmp = t_3 elif y2 <= -5.8e-13: tmp = t_5 elif y2 <= -1.55e-71: tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))) elif y2 <= -5.4e-127: tmp = y4 * (((b * t_6) + t_1) + (c * ((y * y3) - (t * y2)))) elif y2 <= -1.22e-169: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + (y0 * ((z * k) - (x * j)))) elif y2 <= -3.5e-273: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.25e+51: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))) elif y2 <= 8.5e+154: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif y2 <= 2.1e+211: tmp = t_3 else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * t_2)))) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_4)) + Float64(t * t_2))) t_6 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (y2 <= -1.05e+224) tmp = Float64(y4 * t_1); elseif (y2 <= -1.25e+125) tmp = t_3; elseif (y2 <= -5.8e-13) tmp = t_5; elseif (y2 <= -1.55e-71) tmp = Float64(y * Float64(x * Float64(Float64(Float64(Float64(a * b) * Float64(a * b)) - Float64(Float64(c * i) * Float64(c * i))) / Float64(Float64(a * b) + Float64(c * i))))); elseif (y2 <= -5.4e-127) tmp = Float64(y4 * Float64(Float64(Float64(b * t_6) + t_1) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y2 <= -1.22e-169) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_6)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y2 <= -3.5e-273) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.25e+51) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_4)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 8.5e+154) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif (y2 <= 2.1e+211) tmp = t_3; else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * ((k * y2) - (j * y3)); t_2 = (a * y5) - (c * y4); t_3 = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2))); t_4 = (c * y0) - (a * y1); t_5 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_4)) + (t * t_2)); t_6 = (t * j) - (y * k); tmp = 0.0; if (y2 <= -1.05e+224) tmp = y4 * t_1; elseif (y2 <= -1.25e+125) tmp = t_3; elseif (y2 <= -5.8e-13) tmp = t_5; elseif (y2 <= -1.55e-71) tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))); elseif (y2 <= -5.4e-127) tmp = y4 * (((b * t_6) + t_1) + (c * ((y * y3) - (t * y2)))); elseif (y2 <= -1.22e-169) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_6)) + (y0 * ((z * k) - (x * j)))); elseif (y2 <= -3.5e-273) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.25e+51) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_4)) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 8.5e+154) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif (y2 <= 2.1e+211) tmp = t_3; else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.05e+224], N[(y4 * t$95$1), $MachinePrecision], If[LessEqual[y2, -1.25e+125], t$95$3, If[LessEqual[y2, -5.8e-13], t$95$5, If[LessEqual[y2, -1.55e-71], N[(y * N[(x * N[(N[(N[(N[(a * b), $MachinePrecision] * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(N[(c * i), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.4e-127], N[(y4 * N[(N[(N[(b * t$95$6), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.22e-169], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.5e-273], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.25e+51], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.5e+154], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.1e+211], t$95$3, t$95$5]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot t_2\right)\right)\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_4\right) + t \cdot t_2\right)\\
t_6 := t \cdot j - y \cdot k\\
\mathbf{if}\;y2 \leq -1.05 \cdot 10^{+224}:\\
\;\;\;\;y4 \cdot t_1\\
\mathbf{elif}\;y2 \leq -1.25 \cdot 10^{+125}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -5.8 \cdot 10^{-13}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y2 \leq -1.55 \cdot 10^{-71}:\\
\;\;\;\;y \cdot \left(x \cdot \frac{\left(a \cdot b\right) \cdot \left(a \cdot b\right) - \left(c \cdot i\right) \cdot \left(c \cdot i\right)}{a \cdot b + c \cdot i}\right)\\
\mathbf{elif}\;y2 \leq -5.4 \cdot 10^{-127}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_6 + t_1\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -1.22 \cdot 10^{-169}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_6\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq -3.5 \cdot 10^{-273}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.25 \cdot 10^{+51}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_4\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 8.5 \cdot 10^{+154}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{+211}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if y2 < -1.0500000000000001e224Initial program 9.5%
Simplified9.5%
Taylor expanded in y4 around inf 28.6%
Taylor expanded in y1 around inf 71.6%
if -1.0500000000000001e224 < y2 < -1.24999999999999991e125 or 8.5000000000000002e154 < y2 < 2.1e211Initial program 26.6%
Simplified26.6%
Taylor expanded in t around inf 67.2%
associate--l+67.2%
mul-1-neg67.2%
Simplified67.2%
if -1.24999999999999991e125 < y2 < -5.7999999999999995e-13 or 2.1e211 < y2 Initial program 37.4%
Simplified37.4%
Taylor expanded in y2 around inf 68.2%
if -5.7999999999999995e-13 < y2 < -1.55000000000000001e-71Initial program 29.8%
Simplified39.8%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in x around inf 70.9%
flip--80.5%
Applied egg-rr80.5%
if -1.55000000000000001e-71 < y2 < -5.3999999999999999e-127Initial program 22.1%
Simplified22.1%
Taylor expanded in y4 around inf 51.8%
if -5.3999999999999999e-127 < y2 < -1.22e-169Initial program 62.5%
Simplified62.5%
Taylor expanded in b around inf 75.2%
if -1.22e-169 < y2 < -3.49999999999999992e-273Initial program 13.6%
Simplified13.6%
Taylor expanded in c around inf 46.3%
Taylor expanded in z around inf 50.8%
associate-*r*55.1%
+-commutative55.1%
mul-1-neg55.1%
unsub-neg55.1%
Simplified55.1%
if -3.49999999999999992e-273 < y2 < 1.25e51Initial program 34.4%
Simplified34.4%
Taylor expanded in x around inf 53.9%
if 1.25e51 < y2 < 8.5000000000000002e154Initial program 12.5%
Simplified12.5%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around inf 57.2%
associate-*r*63.0%
*-commutative63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
*-commutative63.0%
Simplified63.0%
Final simplification62.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* a b) (* c i)))
(t_3 (* x (+ (+ (* y t_2) (* y2 t_1)) (* j (- (* i y1) (* b y0))))))
(t_4 (- (* t j) (* y k)))
(t_5
(*
y4
(+
(+ (* b t_4) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2))))))
(t_6
(*
y0
(+
(* c (- (* x y2) (* z y3)))
(- (* y5 (- (* j y3) (* k y2))) (* b (- (* x j) (* z k))))))))
(if (<= x -1.02e+133)
t_3
(if (<= x -0.0106)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1))
(* t (- (* a y5) (* c y4)))))
(if (<= x -1.95e-60)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_4))
(* y0 (- (* z k) (* x j)))))
(if (<= x -5.1e-104)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= x -6.2e-132)
t_5
(if (<= x 5.5e-292)
t_6
(if (<= x 4e-121)
t_5
(if (<= x 1.7e+80)
t_6
(if (<= x 9.5e+147)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= x 4.2e+201)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x t_2) (* y3 (- (* c y4) (* a y5))))))
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 = (c * y0) - (a * y1);
double t_2 = (a * b) - (c * i);
double t_3 = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
double t_4 = (t * j) - (y * k);
double t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_6 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))));
double tmp;
if (x <= -1.02e+133) {
tmp = t_3;
} else if (x <= -0.0106) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (x <= -1.95e-60) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (x <= -5.1e-104) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= -6.2e-132) {
tmp = t_5;
} else if (x <= 5.5e-292) {
tmp = t_6;
} else if (x <= 4e-121) {
tmp = t_5;
} else if (x <= 1.7e+80) {
tmp = t_6;
} else if (x <= 9.5e+147) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= 4.2e+201) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_2) + (y3 * ((c * y4) - (a * y5)))));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = (a * b) - (c * i)
t_3 = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))))
t_4 = (t * j) - (y * k)
t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
t_6 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))))
if (x <= (-1.02d+133)) then
tmp = t_3
else if (x <= (-0.0106d0)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) + (t * ((a * y5) - (c * y4))))
else if (x <= (-1.95d-60)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))))
else if (x <= (-5.1d-104)) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (x <= (-6.2d-132)) then
tmp = t_5
else if (x <= 5.5d-292) then
tmp = t_6
else if (x <= 4d-121) then
tmp = t_5
else if (x <= 1.7d+80) then
tmp = t_6
else if (x <= 9.5d+147) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (x <= 4.2d+201) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_2) + (y3 * ((c * y4) - (a * y5)))))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (a * b) - (c * i);
double t_3 = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
double t_4 = (t * j) - (y * k);
double t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_6 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))));
double tmp;
if (x <= -1.02e+133) {
tmp = t_3;
} else if (x <= -0.0106) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) + (t * ((a * y5) - (c * y4))));
} else if (x <= -1.95e-60) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (x <= -5.1e-104) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= -6.2e-132) {
tmp = t_5;
} else if (x <= 5.5e-292) {
tmp = t_6;
} else if (x <= 4e-121) {
tmp = t_5;
} else if (x <= 1.7e+80) {
tmp = t_6;
} else if (x <= 9.5e+147) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (x <= 4.2e+201) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_2) + (y3 * ((c * y4) - (a * y5)))));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y0) - (a * y1) t_2 = (a * b) - (c * i) t_3 = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))) t_4 = (t * j) - (y * k) t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) t_6 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))))) tmp = 0 if x <= -1.02e+133: tmp = t_3 elif x <= -0.0106: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) + (t * ((a * y5) - (c * y4)))) elif x <= -1.95e-60: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))) elif x <= -5.1e-104: tmp = t * (y5 * ((a * y2) - (i * j))) elif x <= -6.2e-132: tmp = t_5 elif x <= 5.5e-292: tmp = t_6 elif x <= 4e-121: tmp = t_5 elif x <= 1.7e+80: tmp = t_6 elif x <= 9.5e+147: tmp = c * (y2 * ((x * y0) - (t * y4))) elif x <= 4.2e+201: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_2) + (y3 * ((c * y4) - (a * y5))))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(x * Float64(Float64(Float64(y * t_2) + Float64(y2 * t_1)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))) t_4 = Float64(Float64(t * j) - Float64(y * k)) t_5 = Float64(y4 * Float64(Float64(Float64(b * t_4) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_6 = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(b * Float64(Float64(x * j) - Float64(z * k)))))) tmp = 0.0 if (x <= -1.02e+133) tmp = t_3; elseif (x <= -0.0106) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (x <= -1.95e-60) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_4)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (x <= -5.1e-104) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (x <= -6.2e-132) tmp = t_5; elseif (x <= 5.5e-292) tmp = t_6; elseif (x <= 4e-121) tmp = t_5; elseif (x <= 1.7e+80) tmp = t_6; elseif (x <= 9.5e+147) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (x <= 4.2e+201) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * t_2) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (c * y0) - (a * y1); t_2 = (a * b) - (c * i); t_3 = x * (((y * t_2) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))); t_4 = (t * j) - (y * k); t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); t_6 = y0 * ((c * ((x * y2) - (z * y3))) + ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))))); tmp = 0.0; if (x <= -1.02e+133) tmp = t_3; elseif (x <= -0.0106) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) + (t * ((a * y5) - (c * y4)))); elseif (x <= -1.95e-60) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))); elseif (x <= -5.1e-104) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (x <= -6.2e-132) tmp = t_5; elseif (x <= 5.5e-292) tmp = t_6; elseif (x <= 4e-121) tmp = t_5; elseif (x <= 1.7e+80) tmp = t_6; elseif (x <= 9.5e+147) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (x <= 4.2e+201) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * t_2) + (y3 * ((c * y4) - (a * y5))))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(N[(y * t$95$2), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * N[(N[(N[(b * t$95$4), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.02e+133], t$95$3, If[LessEqual[x, -0.0106], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.95e-60], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.1e-104], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.2e-132], t$95$5, If[LessEqual[x, 5.5e-292], t$95$6, If[LessEqual[x, 4e-121], t$95$5, If[LessEqual[x, 1.7e+80], t$95$6, If[LessEqual[x, 9.5e+147], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+201], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$2), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := a \cdot b - c \cdot i\\
t_3 := x \cdot \left(\left(y \cdot t_2 + y2 \cdot t_1\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_4 := t \cdot j - y \cdot k\\
t_5 := y4 \cdot \left(\left(b \cdot t_4 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_6 := y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) - b \cdot \left(x \cdot j - z \cdot k\right)\right)\right)\\
\mathbf{if}\;x \leq -1.02 \cdot 10^{+133}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -0.0106:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -1.95 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_4\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;x \leq -5.1 \cdot 10^{-104}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{-132}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-292}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-121}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+80}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+147}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+201}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot t_2 + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -1.02e133 or 4.1999999999999998e201 < x Initial program 18.7%
Simplified18.7%
Taylor expanded in x around inf 65.8%
if -1.02e133 < x < -0.0106Initial program 33.3%
Simplified33.3%
Taylor expanded in y2 around inf 60.4%
if -0.0106 < x < -1.9500000000000001e-60Initial program 45.5%
Simplified45.5%
Taylor expanded in b around inf 73.3%
if -1.9500000000000001e-60 < x < -5.09999999999999992e-104Initial program 44.4%
Simplified44.4%
Taylor expanded in y5 around inf 22.6%
mul-1-neg22.6%
mul-1-neg22.6%
mul-1-neg22.6%
sub-neg22.6%
sub-neg22.6%
Simplified22.6%
Taylor expanded in t around inf 67.3%
if -5.09999999999999992e-104 < x < -6.20000000000000016e-132 or 5.50000000000000006e-292 < x < 3.9999999999999999e-121Initial program 34.7%
Simplified34.7%
Taylor expanded in y4 around inf 61.2%
if -6.20000000000000016e-132 < x < 5.50000000000000006e-292 or 3.9999999999999999e-121 < x < 1.69999999999999996e80Initial program 29.1%
Simplified34.2%
Taylor expanded in y0 around inf 53.9%
mul-1-neg53.9%
Simplified53.9%
if 1.69999999999999996e80 < x < 9.4999999999999996e147Initial program 30.8%
Simplified30.8%
Taylor expanded in c around inf 23.8%
Taylor expanded in y2 around inf 69.6%
if 9.4999999999999996e147 < x < 4.1999999999999998e201Initial program 26.7%
Simplified26.7%
Taylor expanded in y around inf 73.3%
mul-1-neg73.3%
Simplified73.3%
Final simplification61.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (- (* i y1) (* b y0))))
(t_2 (- (* t j) (* y k)))
(t_3 (- (* x j) (* z k)))
(t_4 (- (* x y2) (* z y3)))
(t_5 (- (* j y3) (* k y2)))
(t_6 (- (* c y0) (* a y1))))
(if (<= j -1.65e+143)
(* x (+ (* y2 t_6) t_1))
(if (<= j -8.2e-200)
(*
y1
(+
(* a (- (* z y3) (* x y2)))
(+ (* i t_3) (* y4 (- (* k y2) (* j y3))))))
(if (<= j -2.45e-247)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5))))))
(if (<= j 6e-258)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_6))
(* t (- (* a y5) (* c y4)))))
(if (<= j 1.15e-213)
(* y0 (+ (* c t_4) (- (* y5 t_5) (* b t_3))))
(if (<= j 0.025)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 t_4))
(* y4 (- (* y y3) (* t y2)))))
(if (<= j 1e+115)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_2))
(* y0 (- (* z k) (* x j)))))
(if (<= j 1.82e+205)
(* x t_1)
(if (<= j 3.55e+227)
(* y4 (* b t_2))
(* y5 (* y0 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 * ((i * y1) - (b * y0));
double t_2 = (t * j) - (y * k);
double t_3 = (x * j) - (z * k);
double t_4 = (x * y2) - (z * y3);
double t_5 = (j * y3) - (k * y2);
double t_6 = (c * y0) - (a * y1);
double tmp;
if (j <= -1.65e+143) {
tmp = x * ((y2 * t_6) + t_1);
} else if (j <= -8.2e-200) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_3) + (y4 * ((k * y2) - (j * y3)))));
} else if (j <= -2.45e-247) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if (j <= 6e-258) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_6)) + (t * ((a * y5) - (c * y4))));
} else if (j <= 1.15e-213) {
tmp = y0 * ((c * t_4) + ((y5 * t_5) - (b * t_3)));
} else if (j <= 0.025) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_4)) + (y4 * ((y * y3) - (t * y2))));
} else if (j <= 1e+115) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else if (j <= 1.82e+205) {
tmp = x * t_1;
} else if (j <= 3.55e+227) {
tmp = y4 * (b * t_2);
} else {
tmp = y5 * (y0 * 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 * ((i * y1) - (b * y0))
t_2 = (t * j) - (y * k)
t_3 = (x * j) - (z * k)
t_4 = (x * y2) - (z * y3)
t_5 = (j * y3) - (k * y2)
t_6 = (c * y0) - (a * y1)
if (j <= (-1.65d+143)) then
tmp = x * ((y2 * t_6) + t_1)
else if (j <= (-8.2d-200)) then
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_3) + (y4 * ((k * y2) - (j * y3)))))
else if (j <= (-2.45d-247)) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
else if (j <= 6d-258) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_6)) + (t * ((a * y5) - (c * y4))))
else if (j <= 1.15d-213) then
tmp = y0 * ((c * t_4) + ((y5 * t_5) - (b * t_3)))
else if (j <= 0.025d0) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_4)) + (y4 * ((y * y3) - (t * y2))))
else if (j <= 1d+115) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))))
else if (j <= 1.82d+205) then
tmp = x * t_1
else if (j <= 3.55d+227) then
tmp = y4 * (b * t_2)
else
tmp = y5 * (y0 * 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 * ((i * y1) - (b * y0));
double t_2 = (t * j) - (y * k);
double t_3 = (x * j) - (z * k);
double t_4 = (x * y2) - (z * y3);
double t_5 = (j * y3) - (k * y2);
double t_6 = (c * y0) - (a * y1);
double tmp;
if (j <= -1.65e+143) {
tmp = x * ((y2 * t_6) + t_1);
} else if (j <= -8.2e-200) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_3) + (y4 * ((k * y2) - (j * y3)))));
} else if (j <= -2.45e-247) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if (j <= 6e-258) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_6)) + (t * ((a * y5) - (c * y4))));
} else if (j <= 1.15e-213) {
tmp = y0 * ((c * t_4) + ((y5 * t_5) - (b * t_3)));
} else if (j <= 0.025) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_4)) + (y4 * ((y * y3) - (t * y2))));
} else if (j <= 1e+115) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else if (j <= 1.82e+205) {
tmp = x * t_1;
} else if (j <= 3.55e+227) {
tmp = y4 * (b * t_2);
} else {
tmp = y5 * (y0 * 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 * ((i * y1) - (b * y0)) t_2 = (t * j) - (y * k) t_3 = (x * j) - (z * k) t_4 = (x * y2) - (z * y3) t_5 = (j * y3) - (k * y2) t_6 = (c * y0) - (a * y1) tmp = 0 if j <= -1.65e+143: tmp = x * ((y2 * t_6) + t_1) elif j <= -8.2e-200: tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_3) + (y4 * ((k * y2) - (j * y3))))) elif j <= -2.45e-247: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) elif j <= 6e-258: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_6)) + (t * ((a * y5) - (c * y4)))) elif j <= 1.15e-213: tmp = y0 * ((c * t_4) + ((y5 * t_5) - (b * t_3))) elif j <= 0.025: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_4)) + (y4 * ((y * y3) - (t * y2)))) elif j <= 1e+115: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))) elif j <= 1.82e+205: tmp = x * t_1 elif j <= 3.55e+227: tmp = y4 * (b * t_2) else: tmp = y5 * (y0 * 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(i * y1) - Float64(b * y0))) t_2 = Float64(Float64(t * j) - Float64(y * k)) t_3 = Float64(Float64(x * j) - Float64(z * k)) t_4 = Float64(Float64(x * y2) - Float64(z * y3)) t_5 = Float64(Float64(j * y3) - Float64(k * y2)) t_6 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (j <= -1.65e+143) tmp = Float64(x * Float64(Float64(y2 * t_6) + t_1)); elseif (j <= -8.2e-200) tmp = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * t_3) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))))); elseif (j <= -2.45e-247) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (j <= 6e-258) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_6)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (j <= 1.15e-213) tmp = Float64(y0 * Float64(Float64(c * t_4) + Float64(Float64(y5 * t_5) - Float64(b * t_3)))); elseif (j <= 0.025) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * t_4)) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (j <= 1e+115) 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 (j <= 1.82e+205) tmp = Float64(x * t_1); elseif (j <= 3.55e+227) tmp = Float64(y4 * Float64(b * t_2)); else tmp = Float64(y5 * Float64(y0 * 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 * ((i * y1) - (b * y0)); t_2 = (t * j) - (y * k); t_3 = (x * j) - (z * k); t_4 = (x * y2) - (z * y3); t_5 = (j * y3) - (k * y2); t_6 = (c * y0) - (a * y1); tmp = 0.0; if (j <= -1.65e+143) tmp = x * ((y2 * t_6) + t_1); elseif (j <= -8.2e-200) tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * t_3) + (y4 * ((k * y2) - (j * y3))))); elseif (j <= -2.45e-247) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); elseif (j <= 6e-258) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_6)) + (t * ((a * y5) - (c * y4)))); elseif (j <= 1.15e-213) tmp = y0 * ((c * t_4) + ((y5 * t_5) - (b * t_3))); elseif (j <= 0.025) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * t_4)) + (y4 * ((y * y3) - (t * y2)))); elseif (j <= 1e+115) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))); elseif (j <= 1.82e+205) tmp = x * t_1; elseif (j <= 3.55e+227) tmp = y4 * (b * t_2); else tmp = y5 * (y0 * 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[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.65e+143], N[(x * N[(N[(y2 * t$95$6), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.2e-200], N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * t$95$3), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.45e-247], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e-258], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e-213], N[(y0 * N[(N[(c * t$95$4), $MachinePrecision] + N[(N[(y5 * t$95$5), $MachinePrecision] - N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 0.025], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1e+115], 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[j, 1.82e+205], N[(x * t$95$1), $MachinePrecision], If[LessEqual[j, 3.55e+227], N[(y4 * N[(b * t$95$2), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(i \cdot y1 - b \cdot y0\right)\\
t_2 := t \cdot j - y \cdot k\\
t_3 := x \cdot j - z \cdot k\\
t_4 := x \cdot y2 - z \cdot y3\\
t_5 := j \cdot y3 - k \cdot y2\\
t_6 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;j \leq -1.65 \cdot 10^{+143}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_6 + t_1\right)\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-200}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot t_3 + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)\\
\mathbf{elif}\;j \leq -2.45 \cdot 10^{-247}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{-258}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_6\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-213}:\\
\;\;\;\;y0 \cdot \left(c \cdot t_4 + \left(y5 \cdot t_5 - b \cdot t_3\right)\right)\\
\mathbf{elif}\;j \leq 0.025:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot t_4\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq 10^{+115}:\\
\;\;\;\;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}\;j \leq 1.82 \cdot 10^{+205}:\\
\;\;\;\;x \cdot t_1\\
\mathbf{elif}\;j \leq 3.55 \cdot 10^{+227}:\\
\;\;\;\;y4 \cdot \left(b \cdot t_2\right)\\
\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot t_5\right)\\
\end{array}
\end{array}
if j < -1.65e143Initial program 15.4%
Simplified15.4%
Taylor expanded in x around inf 54.1%
Taylor expanded in y around 0 65.7%
if -1.65e143 < j < -8.19999999999999974e-200Initial program 32.3%
Simplified40.0%
Taylor expanded in y1 around inf 54.6%
mul-1-neg54.6%
mul-1-neg54.6%
sub-neg54.6%
Simplified54.6%
if -8.19999999999999974e-200 < j < -2.45e-247Initial program 46.7%
Simplified54.4%
Taylor expanded in y around inf 54.9%
mul-1-neg54.9%
Simplified54.9%
if -2.45e-247 < j < 6.00000000000000042e-258Initial program 17.4%
Simplified17.4%
Taylor expanded in y2 around inf 61.2%
if 6.00000000000000042e-258 < j < 1.15000000000000001e-213Initial program 25.0%
Simplified33.3%
Taylor expanded in y0 around inf 67.1%
mul-1-neg67.1%
Simplified67.1%
if 1.15000000000000001e-213 < j < 0.025000000000000001Initial program 44.5%
Simplified44.5%
Taylor expanded in c around inf 61.5%
if 0.025000000000000001 < j < 1e115Initial program 38.0%
Simplified38.0%
Taylor expanded in b around inf 58.1%
if 1e115 < j < 1.81999999999999997e205Initial program 6.8%
Simplified6.8%
Taylor expanded in x around inf 56.3%
Taylor expanded in j around inf 63.2%
*-commutative63.2%
*-commutative63.2%
associate-*l*69.1%
*-commutative69.1%
Simplified69.1%
if 1.81999999999999997e205 < j < 3.5500000000000001e227Initial program 0.0%
Simplified0.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in b around inf 100.0%
if 3.5500000000000001e227 < j Initial program 13.6%
Simplified18.2%
Taylor expanded in y5 around inf 31.8%
mul-1-neg31.8%
mul-1-neg31.8%
mul-1-neg31.8%
sub-neg31.8%
sub-neg31.8%
Simplified31.8%
Taylor expanded in y0 around inf 59.3%
Final simplification60.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1))))
(t_3 (- (* t j) (* y k)))
(t_4
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_3))
(* y0 (- (* z k) (* x j)))))))
(if (<= y2 -4.7e-14)
t_2
(if (<= y2 -6e-72)
(*
y
(*
x
(/ (- (* (* a b) (* a b)) (* (* c i) (* c i))) (+ (* a b) (* c i)))))
(if (<= y2 -4.3e-124)
(*
y4
(+
(+ (* b t_3) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= y2 -7e-208)
t_4
(if (<= y2 -4.2e-295)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 6e-270)
t_4
(if (<= y2 4.2e-50)
(* x (+ (* y2 t_1) (* j (- (* i y1) (* b y0)))))
(if (<= y2 9.2e+50)
(* y (* x (- (* a b) (* c i))))
(if (<= y2 1.65e+118)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (or (<= y2 1.85e+241) (not (<= y2 7e+291)))
(* y5 (* y2 (- (* t a) (* k y0))))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = (t * j) - (y * k);
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
double tmp;
if (y2 <= -4.7e-14) {
tmp = t_2;
} else if (y2 <= -6e-72) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -4.3e-124) {
tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -7e-208) {
tmp = t_4;
} else if (y2 <= -4.2e-295) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 6e-270) {
tmp = t_4;
} else if (y2 <= 4.2e-50) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 9.2e+50) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y2 <= 1.65e+118) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 1.85e+241) || !(y2 <= 7e+291)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1))
t_3 = (t * j) - (y * k)
t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))))
if (y2 <= (-4.7d-14)) then
tmp = t_2
else if (y2 <= (-6d-72)) then
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))))
else if (y2 <= (-4.3d-124)) then
tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (y2 <= (-7d-208)) then
tmp = t_4
else if (y2 <= (-4.2d-295)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 6d-270) then
tmp = t_4
else if (y2 <= 4.2d-50) then
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 9.2d+50) then
tmp = y * (x * ((a * b) - (c * i)))
else if (y2 <= 1.65d+118) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if ((y2 <= 1.85d+241) .or. (.not. (y2 <= 7d+291))) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = (t * j) - (y * k);
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
double tmp;
if (y2 <= -4.7e-14) {
tmp = t_2;
} else if (y2 <= -6e-72) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -4.3e-124) {
tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -7e-208) {
tmp = t_4;
} else if (y2 <= -4.2e-295) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 6e-270) {
tmp = t_4;
} else if (y2 <= 4.2e-50) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 9.2e+50) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y2 <= 1.65e+118) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 1.85e+241) || !(y2 <= 7e+291)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1) t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) t_3 = (t * j) - (y * k) t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))) tmp = 0 if y2 <= -4.7e-14: tmp = t_2 elif y2 <= -6e-72: tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))) elif y2 <= -4.3e-124: tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif y2 <= -7e-208: tmp = t_4 elif y2 <= -4.2e-295: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 6e-270: tmp = t_4 elif y2 <= 4.2e-50: tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))) elif y2 <= 9.2e+50: tmp = y * (x * ((a * b) - (c * i))) elif y2 <= 1.65e+118: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif (y2 <= 1.85e+241) or not (y2 <= 7e+291): tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1))) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = 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))))) tmp = 0.0 if (y2 <= -4.7e-14) tmp = t_2; elseif (y2 <= -6e-72) tmp = Float64(y * Float64(x * Float64(Float64(Float64(Float64(a * b) * Float64(a * b)) - Float64(Float64(c * i) * Float64(c * i))) / Float64(Float64(a * b) + Float64(c * i))))); elseif (y2 <= -4.3e-124) tmp = Float64(y4 * Float64(Float64(Float64(b * t_3) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y2 <= -7e-208) tmp = t_4; elseif (y2 <= -4.2e-295) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 6e-270) tmp = t_4; elseif (y2 <= 4.2e-50) tmp = Float64(x * Float64(Float64(y2 * t_1) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 9.2e+50) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (y2 <= 1.65e+118) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif ((y2 <= 1.85e+241) || !(y2 <= 7e+291)) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); 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) - (a * y1); t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)); t_3 = (t * j) - (y * k); t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (y2 <= -4.7e-14) tmp = t_2; elseif (y2 <= -6e-72) tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))); elseif (y2 <= -4.3e-124) tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (y2 <= -7e-208) tmp = t_4; elseif (y2 <= -4.2e-295) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 6e-270) tmp = t_4; elseif (y2 <= 4.2e-50) tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 9.2e+50) tmp = y * (x * ((a * b) - (c * i))); elseif (y2 <= 1.65e+118) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif ((y2 <= 1.85e+241) || ~((y2 <= 7e+291))) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.7e-14], t$95$2, If[LessEqual[y2, -6e-72], N[(y * N[(x * N[(N[(N[(N[(a * b), $MachinePrecision] * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(N[(c * i), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.3e-124], N[(y4 * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -7e-208], t$95$4, If[LessEqual[y2, -4.2e-295], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6e-270], t$95$4, If[LessEqual[y2, 4.2e-50], N[(x * N[(N[(y2 * t$95$1), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.2e+50], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.65e+118], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y2, 1.85e+241], N[Not[LessEqual[y2, 7e+291]], $MachinePrecision]], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right)\\
t_3 := t \cdot j - y \cdot k\\
t_4 := 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{if}\;y2 \leq -4.7 \cdot 10^{-14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -6 \cdot 10^{-72}:\\
\;\;\;\;y \cdot \left(x \cdot \frac{\left(a \cdot b\right) \cdot \left(a \cdot b\right) - \left(c \cdot i\right) \cdot \left(c \cdot i\right)}{a \cdot b + c \cdot i}\right)\\
\mathbf{elif}\;y2 \leq -4.3 \cdot 10^{-124}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_3 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -7 \cdot 10^{-208}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y2 \leq -4.2 \cdot 10^{-295}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 6 \cdot 10^{-270}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y2 \leq 4.2 \cdot 10^{-50}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_1 + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 9.2 \cdot 10^{+50}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 1.65 \cdot 10^{+118}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 1.85 \cdot 10^{+241} \lor \neg \left(y2 \leq 7 \cdot 10^{+291}\right):\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -4.7000000000000002e-14 or 1.8499999999999999e241 < y2 < 7.0000000000000005e291Initial program 32.4%
Simplified32.4%
Taylor expanded in y2 around inf 62.7%
Taylor expanded in t around 0 56.5%
if -4.7000000000000002e-14 < y2 < -6e-72Initial program 29.8%
Simplified39.8%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in x around inf 70.9%
flip--80.5%
Applied egg-rr80.5%
if -6e-72 < y2 < -4.3e-124Initial program 23.8%
Simplified23.8%
Taylor expanded in y4 around inf 48.0%
if -4.3e-124 < y2 < -6.99999999999999982e-208 or -4.19999999999999986e-295 < y2 < 6.00000000000000025e-270Initial program 43.9%
Simplified43.9%
Taylor expanded in b around inf 63.3%
if -6.99999999999999982e-208 < y2 < -4.19999999999999986e-295Initial program 14.3%
Simplified14.3%
Taylor expanded in c around inf 43.7%
Taylor expanded in z around inf 48.4%
associate-*r*52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
if 6.00000000000000025e-270 < y2 < 4.2000000000000002e-50Initial program 34.4%
Simplified34.4%
Taylor expanded in x around inf 55.8%
Taylor expanded in y around 0 53.8%
if 4.2000000000000002e-50 < y2 < 9.19999999999999987e50Initial program 26.3%
Simplified31.6%
Taylor expanded in y around inf 53.2%
mul-1-neg53.2%
Simplified53.2%
Taylor expanded in x around inf 63.8%
if 9.19999999999999987e50 < y2 < 1.65e118Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 1.65e118 < y2 < 1.8499999999999999e241 or 7.0000000000000005e291 < y2 Initial program 17.6%
Simplified20.5%
Taylor expanded in y5 around inf 32.7%
mul-1-neg32.7%
mul-1-neg32.7%
mul-1-neg32.7%
sub-neg32.7%
sub-neg32.7%
Simplified32.7%
Taylor expanded in y2 around inf 59.4%
Final simplification58.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))))
(t_2 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -2.9e-14)
t_1
(if (<= y2 -8.6e-73)
t_2
(if (<= y2 -3.2e-253)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.3e-187)
(* x (* j (- (* i y1) (* b y0))))
(if (<= y2 4e-108)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 9e-91)
(* y5 (* y0 (- (* j y3) (* k y2))))
(if (<= y2 1.2e+51)
t_2
(if (<= y2 2.55e+113)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (or (<= y2 4.4e+241) (not (<= y2 1.4e+288)))
(* y5 (* y2 (- (* t a) (* k y0))))
t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1))));
double t_2 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -2.9e-14) {
tmp = t_1;
} else if (y2 <= -8.6e-73) {
tmp = t_2;
} else if (y2 <= -3.2e-253) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.3e-187) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y2 <= 4e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 9e-91) {
tmp = y5 * (y0 * ((j * y3) - (k * y2)));
} else if (y2 <= 1.2e+51) {
tmp = t_2;
} else if (y2 <= 2.55e+113) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 4.4e+241) || !(y2 <= 1.4e+288)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1))))
t_2 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-2.9d-14)) then
tmp = t_1
else if (y2 <= (-8.6d-73)) then
tmp = t_2
else if (y2 <= (-3.2d-253)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.3d-187) then
tmp = x * (j * ((i * y1) - (b * y0)))
else if (y2 <= 4d-108) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 9d-91) then
tmp = y5 * (y0 * ((j * y3) - (k * y2)))
else if (y2 <= 1.2d+51) then
tmp = t_2
else if (y2 <= 2.55d+113) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if ((y2 <= 4.4d+241) .or. (.not. (y2 <= 1.4d+288))) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1))));
double t_2 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -2.9e-14) {
tmp = t_1;
} else if (y2 <= -8.6e-73) {
tmp = t_2;
} else if (y2 <= -3.2e-253) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.3e-187) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y2 <= 4e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 9e-91) {
tmp = y5 * (y0 * ((j * y3) - (k * y2)));
} else if (y2 <= 1.2e+51) {
tmp = t_2;
} else if (y2 <= 2.55e+113) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 4.4e+241) || !(y2 <= 1.4e+288)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) t_2 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -2.9e-14: tmp = t_1 elif y2 <= -8.6e-73: tmp = t_2 elif y2 <= -3.2e-253: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.3e-187: tmp = x * (j * ((i * y1) - (b * y0))) elif y2 <= 4e-108: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 9e-91: tmp = y5 * (y0 * ((j * y3) - (k * y2))) elif y2 <= 1.2e+51: tmp = t_2 elif y2 <= 2.55e+113: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif (y2 <= 4.4e+241) or not (y2 <= 1.4e+288): tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1))))) t_2 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -2.9e-14) tmp = t_1; elseif (y2 <= -8.6e-73) tmp = t_2; elseif (y2 <= -3.2e-253) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.3e-187) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y2 <= 4e-108) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 9e-91) tmp = Float64(y5 * Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y2 <= 1.2e+51) tmp = t_2; elseif (y2 <= 2.55e+113) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif ((y2 <= 4.4e+241) || !(y2 <= 1.4e+288)) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))); t_2 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -2.9e-14) tmp = t_1; elseif (y2 <= -8.6e-73) tmp = t_2; elseif (y2 <= -3.2e-253) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.3e-187) tmp = x * (j * ((i * y1) - (b * y0))); elseif (y2 <= 4e-108) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 9e-91) tmp = y5 * (y0 * ((j * y3) - (k * y2))); elseif (y2 <= 1.2e+51) tmp = t_2; elseif (y2 <= 2.55e+113) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif ((y2 <= 4.4e+241) || ~((y2 <= 1.4e+288))) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.9e-14], t$95$1, If[LessEqual[y2, -8.6e-73], t$95$2, If[LessEqual[y2, -3.2e-253], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.3e-187], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4e-108], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9e-91], N[(y5 * N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.2e+51], t$95$2, If[LessEqual[y2, 2.55e+113], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y2, 4.4e+241], N[Not[LessEqual[y2, 1.4e+288]], $MachinePrecision]], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
t_2 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -2.9 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -8.6 \cdot 10^{-73}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -3.2 \cdot 10^{-253}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.3 \cdot 10^{-187}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 4 \cdot 10^{-108}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 9 \cdot 10^{-91}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{+51}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 2.55 \cdot 10^{+113}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 4.4 \cdot 10^{+241} \lor \neg \left(y2 \leq 1.4 \cdot 10^{+288}\right):\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y2 < -2.9000000000000003e-14 or 4.4e241 < y2 < 1.3999999999999999e288Initial program 32.4%
Simplified32.4%
Taylor expanded in y2 around inf 62.7%
Taylor expanded in t around 0 56.5%
if -2.9000000000000003e-14 < y2 < -8.5999999999999998e-73 or 8.99999999999999952e-91 < y2 < 1.1999999999999999e51Initial program 25.0%
Simplified33.3%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in x around inf 61.8%
if -8.5999999999999998e-73 < y2 < -3.1999999999999997e-253Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -3.1999999999999997e-253 < y2 < 1.3e-187Initial program 32.2%
Simplified32.2%
Taylor expanded in x around inf 49.8%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
*-commutative39.5%
associate-*l*45.8%
*-commutative45.8%
Simplified45.8%
if 1.3e-187 < y2 < 4.00000000000000016e-108Initial program 33.4%
Simplified33.4%
Taylor expanded in c around inf 79.6%
Taylor expanded in x around inf 56.3%
*-commutative56.3%
+-commutative56.3%
mul-1-neg56.3%
*-commutative56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
if 4.00000000000000016e-108 < y2 < 8.99999999999999952e-91Initial program 74.6%
Simplified74.6%
Taylor expanded in y5 around inf 100.0%
mul-1-neg100.0%
mul-1-neg100.0%
mul-1-neg100.0%
sub-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y0 around inf 100.0%
if 1.1999999999999999e51 < y2 < 2.54999999999999997e113Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 2.54999999999999997e113 < y2 < 4.4e241 or 1.3999999999999999e288 < y2 Initial program 17.6%
Simplified20.5%
Taylor expanded in y5 around inf 32.7%
mul-1-neg32.7%
mul-1-neg32.7%
mul-1-neg32.7%
sub-neg32.7%
sub-neg32.7%
Simplified32.7%
Taylor expanded in y2 around inf 59.4%
Final simplification55.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) (* a y1)))
(t_2 (* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1)))))
(if (<= y2 -1.15e-11)
t_2
(if (<= y2 -7.5e-71)
(*
y
(*
x
(/ (- (* (* a b) (* a b)) (* (* c i) (* c i))) (+ (* a b) (* c i)))))
(if (<= y2 -8.4e-111)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 -2.15e-156)
(* y4 (* b (- (* t j) (* y k))))
(if (<= y2 -7.4e-241)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.2e-49)
(* x (+ (* y2 t_1) (* j (- (* i y1) (* b y0)))))
(if (<= y2 3.5e+50)
(* y (* x (- (* a b) (* c i))))
(if (<= y2 1.65e+114)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (or (<= y2 7.6e+239) (not (<= y2 9e+289)))
(* y5 (* y2 (- (* t a) (* k y0))))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double tmp;
if (y2 <= -1.15e-11) {
tmp = t_2;
} else if (y2 <= -7.5e-71) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -8.4e-111) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -2.15e-156) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (y2 <= -7.4e-241) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.2e-49) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 3.5e+50) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y2 <= 1.65e+114) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 7.6e+239) || !(y2 <= 9e+289)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1)
t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1))
if (y2 <= (-1.15d-11)) then
tmp = t_2
else if (y2 <= (-7.5d-71)) then
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))))
else if (y2 <= (-8.4d-111)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= (-2.15d-156)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (y2 <= (-7.4d-241)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.2d-49) then
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 3.5d+50) then
tmp = y * (x * ((a * b) - (c * i)))
else if (y2 <= 1.65d+114) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if ((y2 <= 7.6d+239) .or. (.not. (y2 <= 9d+289))) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double tmp;
if (y2 <= -1.15e-11) {
tmp = t_2;
} else if (y2 <= -7.5e-71) {
tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
} else if (y2 <= -8.4e-111) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= -2.15e-156) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (y2 <= -7.4e-241) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.2e-49) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 3.5e+50) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y2 <= 1.65e+114) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 7.6e+239) || !(y2 <= 9e+289)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1) t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) tmp = 0 if y2 <= -1.15e-11: tmp = t_2 elif y2 <= -7.5e-71: tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))) elif y2 <= -8.4e-111: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= -2.15e-156: tmp = y4 * (b * ((t * j) - (y * k))) elif y2 <= -7.4e-241: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.2e-49: tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))) elif y2 <= 3.5e+50: tmp = y * (x * ((a * b) - (c * i))) elif y2 <= 1.65e+114: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif (y2 <= 7.6e+239) or not (y2 <= 9e+289): tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1))) tmp = 0.0 if (y2 <= -1.15e-11) tmp = t_2; elseif (y2 <= -7.5e-71) tmp = Float64(y * Float64(x * Float64(Float64(Float64(Float64(a * b) * Float64(a * b)) - Float64(Float64(c * i) * Float64(c * i))) / Float64(Float64(a * b) + Float64(c * i))))); elseif (y2 <= -8.4e-111) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= -2.15e-156) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (y2 <= -7.4e-241) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.2e-49) tmp = Float64(x * Float64(Float64(y2 * t_1) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 3.5e+50) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (y2 <= 1.65e+114) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif ((y2 <= 7.6e+239) || !(y2 <= 9e+289)) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); 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) - (a * y1); t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)); tmp = 0.0; if (y2 <= -1.15e-11) tmp = t_2; elseif (y2 <= -7.5e-71) tmp = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))); elseif (y2 <= -8.4e-111) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= -2.15e-156) tmp = y4 * (b * ((t * j) - (y * k))); elseif (y2 <= -7.4e-241) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.2e-49) tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 3.5e+50) tmp = y * (x * ((a * b) - (c * i))); elseif (y2 <= 1.65e+114) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif ((y2 <= 7.6e+239) || ~((y2 <= 9e+289))) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.15e-11], t$95$2, If[LessEqual[y2, -7.5e-71], N[(y * N[(x * N[(N[(N[(N[(a * b), $MachinePrecision] * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(N[(c * i), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.4e-111], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.15e-156], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -7.4e-241], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.2e-49], N[(x * N[(N[(y2 * t$95$1), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e+50], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.65e+114], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y2, 7.6e+239], N[Not[LessEqual[y2, 9e+289]], $MachinePrecision]], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right)\\
\mathbf{if}\;y2 \leq -1.15 \cdot 10^{-11}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -7.5 \cdot 10^{-71}:\\
\;\;\;\;y \cdot \left(x \cdot \frac{\left(a \cdot b\right) \cdot \left(a \cdot b\right) - \left(c \cdot i\right) \cdot \left(c \cdot i\right)}{a \cdot b + c \cdot i}\right)\\
\mathbf{elif}\;y2 \leq -8.4 \cdot 10^{-111}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -2.15 \cdot 10^{-156}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq -7.4 \cdot 10^{-241}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{-49}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_1 + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{+50}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 1.65 \cdot 10^{+114}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 7.6 \cdot 10^{+239} \lor \neg \left(y2 \leq 9 \cdot 10^{+289}\right):\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -1.15000000000000007e-11 or 7.6000000000000003e239 < y2 < 8.99999999999999969e289Initial program 32.4%
Simplified32.4%
Taylor expanded in y2 around inf 62.7%
Taylor expanded in t around 0 56.5%
if -1.15000000000000007e-11 < y2 < -7.5000000000000004e-71Initial program 33.2%
Simplified44.3%
Taylor expanded in y around inf 56.1%
mul-1-neg56.1%
Simplified56.1%
Taylor expanded in x around inf 67.7%
flip--78.4%
Applied egg-rr78.4%
if -7.5000000000000004e-71 < y2 < -8.3999999999999995e-111Initial program 12.1%
Simplified12.1%
Taylor expanded in c around inf 33.4%
Taylor expanded in y0 around inf 78.0%
if -8.3999999999999995e-111 < y2 < -2.14999999999999989e-156Initial program 50.0%
Simplified50.0%
Taylor expanded in y4 around inf 33.9%
Taylor expanded in b around inf 42.1%
if -2.14999999999999989e-156 < y2 < -7.3999999999999998e-241Initial program 25.0%
Simplified25.0%
Taylor expanded in c around inf 51.0%
Taylor expanded in z around inf 63.4%
associate-*r*69.3%
+-commutative69.3%
mul-1-neg69.3%
unsub-neg69.3%
Simplified69.3%
if -7.3999999999999998e-241 < y2 < 1.19999999999999996e-49Initial program 32.6%
Simplified32.6%
Taylor expanded in x around inf 49.3%
Taylor expanded in y around 0 45.2%
if 1.19999999999999996e-49 < y2 < 3.50000000000000006e50Initial program 26.3%
Simplified31.6%
Taylor expanded in y around inf 53.2%
mul-1-neg53.2%
Simplified53.2%
Taylor expanded in x around inf 63.8%
if 3.50000000000000006e50 < y2 < 1.65e114Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 1.65e114 < y2 < 7.6000000000000003e239 or 8.99999999999999969e289 < y2 Initial program 17.6%
Simplified20.5%
Taylor expanded in y5 around inf 32.7%
mul-1-neg32.7%
mul-1-neg32.7%
mul-1-neg32.7%
sub-neg32.7%
sub-neg32.7%
Simplified32.7%
Taylor expanded in y2 around inf 59.4%
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 (- (* c y0) (* a y1)))
(t_2 (* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1))))
(t_3
(*
y
(*
x
(/
(- (* (* a b) (* a b)) (* (* c i) (* c i)))
(+ (* a b) (* c i)))))))
(if (<= y2 -4.7e-14)
t_2
(if (<= y2 -1.1e-71)
t_3
(if (<= y2 -4.2e-140)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= y2 -7.8e-164)
t_3
(if (<= y2 -1.8e-243)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 6.5e-57)
(* x (+ (* y2 t_1) (* j (- (* i y1) (* b y0)))))
(if (<= y2 7.5e+48)
(* y (* x (- (* a b) (* c i))))
(if (<= y2 1.46e+122)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (or (<= y2 9.2e+237) (not (<= y2 5e+290)))
(* y5 (* y2 (- (* t a) (* k y0))))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
double tmp;
if (y2 <= -4.7e-14) {
tmp = t_2;
} else if (y2 <= -1.1e-71) {
tmp = t_3;
} else if (y2 <= -4.2e-140) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -7.8e-164) {
tmp = t_3;
} else if (y2 <= -1.8e-243) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 6.5e-57) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 7.5e+48) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y2 <= 1.46e+122) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 9.2e+237) || !(y2 <= 5e+290)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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 = (c * y0) - (a * y1)
t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1))
t_3 = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))))
if (y2 <= (-4.7d-14)) then
tmp = t_2
else if (y2 <= (-1.1d-71)) then
tmp = t_3
else if (y2 <= (-4.2d-140)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (y2 <= (-7.8d-164)) then
tmp = t_3
else if (y2 <= (-1.8d-243)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 6.5d-57) then
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 7.5d+48) then
tmp = y * (x * ((a * b) - (c * i)))
else if (y2 <= 1.46d+122) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if ((y2 <= 9.2d+237) .or. (.not. (y2 <= 5d+290))) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i))));
double tmp;
if (y2 <= -4.7e-14) {
tmp = t_2;
} else if (y2 <= -1.1e-71) {
tmp = t_3;
} else if (y2 <= -4.2e-140) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -7.8e-164) {
tmp = t_3;
} else if (y2 <= -1.8e-243) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 6.5e-57) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 7.5e+48) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y2 <= 1.46e+122) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 9.2e+237) || !(y2 <= 5e+290)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1) t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) t_3 = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))) tmp = 0 if y2 <= -4.7e-14: tmp = t_2 elif y2 <= -1.1e-71: tmp = t_3 elif y2 <= -4.2e-140: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif y2 <= -7.8e-164: tmp = t_3 elif y2 <= -1.8e-243: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 6.5e-57: tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))) elif y2 <= 7.5e+48: tmp = y * (x * ((a * b) - (c * i))) elif y2 <= 1.46e+122: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif (y2 <= 9.2e+237) or not (y2 <= 5e+290): tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1))) t_3 = Float64(y * Float64(x * Float64(Float64(Float64(Float64(a * b) * Float64(a * b)) - Float64(Float64(c * i) * Float64(c * i))) / Float64(Float64(a * b) + Float64(c * i))))) tmp = 0.0 if (y2 <= -4.7e-14) tmp = t_2; elseif (y2 <= -1.1e-71) tmp = t_3; elseif (y2 <= -4.2e-140) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y2 <= -7.8e-164) tmp = t_3; elseif (y2 <= -1.8e-243) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 6.5e-57) tmp = Float64(x * Float64(Float64(y2 * t_1) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 7.5e+48) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (y2 <= 1.46e+122) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif ((y2 <= 9.2e+237) || !(y2 <= 5e+290)) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); 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) - (a * y1); t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)); t_3 = y * (x * ((((a * b) * (a * b)) - ((c * i) * (c * i))) / ((a * b) + (c * i)))); tmp = 0.0; if (y2 <= -4.7e-14) tmp = t_2; elseif (y2 <= -1.1e-71) tmp = t_3; elseif (y2 <= -4.2e-140) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (y2 <= -7.8e-164) tmp = t_3; elseif (y2 <= -1.8e-243) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 6.5e-57) tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 7.5e+48) tmp = y * (x * ((a * b) - (c * i))); elseif (y2 <= 1.46e+122) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif ((y2 <= 9.2e+237) || ~((y2 <= 5e+290))) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(x * N[(N[(N[(N[(a * b), $MachinePrecision] * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(N[(c * i), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.7e-14], t$95$2, If[LessEqual[y2, -1.1e-71], t$95$3, If[LessEqual[y2, -4.2e-140], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -7.8e-164], t$95$3, If[LessEqual[y2, -1.8e-243], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.5e-57], N[(x * N[(N[(y2 * t$95$1), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.5e+48], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.46e+122], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y2, 9.2e+237], N[Not[LessEqual[y2, 5e+290]], $MachinePrecision]], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right)\\
t_3 := y \cdot \left(x \cdot \frac{\left(a \cdot b\right) \cdot \left(a \cdot b\right) - \left(c \cdot i\right) \cdot \left(c \cdot i\right)}{a \cdot b + c \cdot i}\right)\\
\mathbf{if}\;y2 \leq -4.7 \cdot 10^{-14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -1.1 \cdot 10^{-71}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -4.2 \cdot 10^{-140}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -7.8 \cdot 10^{-164}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-243}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-57}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_1 + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 7.5 \cdot 10^{+48}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 1.46 \cdot 10^{+122}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 9.2 \cdot 10^{+237} \lor \neg \left(y2 \leq 5 \cdot 10^{+290}\right):\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -4.7000000000000002e-14 or 9.19999999999999981e237 < y2 < 4.9999999999999998e290Initial program 32.4%
Simplified32.4%
Taylor expanded in y2 around inf 62.7%
Taylor expanded in t around 0 56.5%
if -4.7000000000000002e-14 < y2 < -1.09999999999999999e-71 or -4.20000000000000035e-140 < y2 < -7.7999999999999997e-164Initial program 47.0%
Simplified52.8%
Taylor expanded in y around inf 47.4%
mul-1-neg47.4%
Simplified47.4%
Taylor expanded in x around inf 59.6%
flip--70.9%
Applied egg-rr70.9%
if -1.09999999999999999e-71 < y2 < -4.20000000000000035e-140Initial program 22.1%
Simplified22.1%
Taylor expanded in y4 around inf 51.8%
if -7.7999999999999997e-164 < y2 < -1.8000000000000001e-243Initial program 20.0%
Simplified20.0%
Taylor expanded in c around inf 47.8%
Taylor expanded in z around inf 60.9%
associate-*r*67.2%
+-commutative67.2%
mul-1-neg67.2%
unsub-neg67.2%
Simplified67.2%
if -1.8000000000000001e-243 < y2 < 6.49999999999999992e-57Initial program 32.6%
Simplified32.6%
Taylor expanded in x around inf 49.3%
Taylor expanded in y around 0 45.2%
if 6.49999999999999992e-57 < y2 < 7.5000000000000006e48Initial program 26.3%
Simplified31.6%
Taylor expanded in y around inf 53.2%
mul-1-neg53.2%
Simplified53.2%
Taylor expanded in x around inf 63.8%
if 7.5000000000000006e48 < y2 < 1.46e122Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 1.46e122 < y2 < 9.19999999999999981e237 or 4.9999999999999998e290 < y2 Initial program 17.6%
Simplified20.5%
Taylor expanded in y5 around inf 32.7%
mul-1-neg32.7%
mul-1-neg32.7%
mul-1-neg32.7%
sub-neg32.7%
sub-neg32.7%
Simplified32.7%
Taylor expanded in y2 around inf 59.4%
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 (- (* c y0) (* a y1)))
(t_2 (* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1))))
(t_3 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -1.35e-12)
t_2
(if (<= y2 -1.05e-72)
t_3
(if (<= y2 -8.8e-254)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 -1.8e-270)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y2 -3.4e-307)
(* y0 (- (* y5 (- (* j y3) (* k y2))) (* b (- (* x j) (* z k)))))
(if (<= y2 1.55e-282)
(* c (* x (* y (- i))))
(if (<= y2 2.1e-69)
(* x (+ (* y2 t_1) (* j (- (* i y1) (* b y0)))))
(if (<= y2 4.1e+49)
t_3
(if (<= y2 2.4e+113)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (<= y2 1.9e+238)
(* y5 (* y2 (- (* t a) (* k y0))))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -1.35e-12) {
tmp = t_2;
} else if (y2 <= -1.05e-72) {
tmp = t_3;
} else if (y2 <= -8.8e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= -1.8e-270) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -3.4e-307) {
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))));
} else if (y2 <= 1.55e-282) {
tmp = c * (x * (y * -i));
} else if (y2 <= 2.1e-69) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 4.1e+49) {
tmp = t_3;
} else if (y2 <= 2.4e+113) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y2 <= 1.9e+238) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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 = (c * y0) - (a * y1)
t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1))
t_3 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-1.35d-12)) then
tmp = t_2
else if (y2 <= (-1.05d-72)) then
tmp = t_3
else if (y2 <= (-8.8d-254)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= (-1.8d-270)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y2 <= (-3.4d-307)) then
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))))
else if (y2 <= 1.55d-282) then
tmp = c * (x * (y * -i))
else if (y2 <= 2.1d-69) then
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 4.1d+49) then
tmp = t_3
else if (y2 <= 2.4d+113) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if (y2 <= 1.9d+238) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -1.35e-12) {
tmp = t_2;
} else if (y2 <= -1.05e-72) {
tmp = t_3;
} else if (y2 <= -8.8e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= -1.8e-270) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -3.4e-307) {
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))));
} else if (y2 <= 1.55e-282) {
tmp = c * (x * (y * -i));
} else if (y2 <= 2.1e-69) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 4.1e+49) {
tmp = t_3;
} else if (y2 <= 2.4e+113) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y2 <= 1.9e+238) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1) t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) t_3 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -1.35e-12: tmp = t_2 elif y2 <= -1.05e-72: tmp = t_3 elif y2 <= -8.8e-254: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= -1.8e-270: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y2 <= -3.4e-307: tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))) elif y2 <= 1.55e-282: tmp = c * (x * (y * -i)) elif y2 <= 2.1e-69: tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))) elif y2 <= 4.1e+49: tmp = t_3 elif y2 <= 2.4e+113: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif y2 <= 1.9e+238: tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1))) t_3 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -1.35e-12) tmp = t_2; elseif (y2 <= -1.05e-72) tmp = t_3; elseif (y2 <= -8.8e-254) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= -1.8e-270) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -3.4e-307) tmp = Float64(y0 * Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(b * Float64(Float64(x * j) - Float64(z * k))))); elseif (y2 <= 1.55e-282) tmp = Float64(c * Float64(x * Float64(y * Float64(-i)))); elseif (y2 <= 2.1e-69) tmp = Float64(x * Float64(Float64(y2 * t_1) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 4.1e+49) tmp = t_3; elseif (y2 <= 2.4e+113) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif (y2 <= 1.9e+238) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); 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) - (a * y1); t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)); t_3 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -1.35e-12) tmp = t_2; elseif (y2 <= -1.05e-72) tmp = t_3; elseif (y2 <= -8.8e-254) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= -1.8e-270) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y2 <= -3.4e-307) tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))); elseif (y2 <= 1.55e-282) tmp = c * (x * (y * -i)); elseif (y2 <= 2.1e-69) tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 4.1e+49) tmp = t_3; elseif (y2 <= 2.4e+113) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif (y2 <= 1.9e+238) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.35e-12], t$95$2, If[LessEqual[y2, -1.05e-72], t$95$3, If[LessEqual[y2, -8.8e-254], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.8e-270], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.4e-307], N[(y0 * N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.55e-282], N[(c * N[(x * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.1e-69], N[(x * N[(N[(y2 * t$95$1), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.1e+49], t$95$3, If[LessEqual[y2, 2.4e+113], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.9e+238], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right)\\
t_3 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -1.35 \cdot 10^{-12}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-72}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -8.8 \cdot 10^{-254}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-270}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -3.4 \cdot 10^{-307}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) - b \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq 1.55 \cdot 10^{-282}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{-69}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_1 + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 4.1 \cdot 10^{+49}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{+113}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 1.9 \cdot 10^{+238}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -1.3499999999999999e-12 or 1.90000000000000012e238 < y2 Initial program 30.4%
Simplified30.4%
Taylor expanded in y2 around inf 61.4%
Taylor expanded in t around 0 54.3%
if -1.3499999999999999e-12 < y2 < -1.05e-72 or 2.1e-69 < y2 < 4.1e49Initial program 27.5%
Simplified34.4%
Taylor expanded in y around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in x around inf 66.2%
if -1.05e-72 < y2 < -8.8000000000000004e-254Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -8.8000000000000004e-254 < y2 < -1.7999999999999999e-270Initial program 0.0%
Simplified0.0%
Taylor expanded in y4 around inf 34.3%
Taylor expanded in y1 around inf 52.2%
if -1.7999999999999999e-270 < y2 < -3.39999999999999989e-307Initial program 30.0%
Simplified30.0%
Taylor expanded in y0 around inf 50.8%
mul-1-neg50.8%
Simplified50.8%
Taylor expanded in c around 0 50.8%
if -3.39999999999999989e-307 < y2 < 1.55000000000000007e-282Initial program 56.2%
Simplified56.2%
Taylor expanded in c around inf 44.6%
Taylor expanded in x around inf 66.8%
*-commutative66.8%
+-commutative66.8%
mul-1-neg66.8%
*-commutative66.8%
unsub-neg66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in y0 around 0 66.8%
neg-mul-166.8%
distribute-rgt-neg-in66.8%
Simplified66.8%
if 1.55000000000000007e-282 < y2 < 2.1e-69Initial program 33.5%
Simplified33.5%
Taylor expanded in x around inf 55.3%
Taylor expanded in y around 0 51.3%
if 4.1e49 < y2 < 2.39999999999999983e113Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 2.39999999999999983e113 < y2 < 1.90000000000000012e238Initial program 20.6%
Simplified24.1%
Taylor expanded in y5 around inf 31.4%
mul-1-neg31.4%
mul-1-neg31.4%
mul-1-neg31.4%
sub-neg31.4%
sub-neg31.4%
Simplified31.4%
Taylor expanded in y2 around inf 59.3%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1))))
(t_3 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -2.15e-12)
t_2
(if (<= y2 -4e-72)
t_3
(if (<= y2 -3.25e-254)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 -8.8e-271)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y2 5.8e-308)
(* y0 (- (* y5 (- (* j y3) (* k y2))) (* b (- (* x j) (* z k)))))
(if (<= y2 8.5e-283)
(*
c
(*
x
(/
(- (* (* y0 y2) (* y0 y2)) (* (* y i) (* y i)))
(+ (* y0 y2) (* y i)))))
(if (<= y2 1.46e-61)
(* x (+ (* y2 t_1) (* j (- (* i y1) (* b y0)))))
(if (<= y2 3.5e+48)
t_3
(if (<= y2 5.5e+114)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (<= y2 1.1e+240)
(* y5 (* y2 (- (* t a) (* k y0))))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -2.15e-12) {
tmp = t_2;
} else if (y2 <= -4e-72) {
tmp = t_3;
} else if (y2 <= -3.25e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= -8.8e-271) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= 5.8e-308) {
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))));
} else if (y2 <= 8.5e-283) {
tmp = c * (x * ((((y0 * y2) * (y0 * y2)) - ((y * i) * (y * i))) / ((y0 * y2) + (y * i))));
} else if (y2 <= 1.46e-61) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 3.5e+48) {
tmp = t_3;
} else if (y2 <= 5.5e+114) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y2 <= 1.1e+240) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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 = (c * y0) - (a * y1)
t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1))
t_3 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-2.15d-12)) then
tmp = t_2
else if (y2 <= (-4d-72)) then
tmp = t_3
else if (y2 <= (-3.25d-254)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= (-8.8d-271)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y2 <= 5.8d-308) then
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))))
else if (y2 <= 8.5d-283) then
tmp = c * (x * ((((y0 * y2) * (y0 * y2)) - ((y * i) * (y * i))) / ((y0 * y2) + (y * i))))
else if (y2 <= 1.46d-61) then
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 3.5d+48) then
tmp = t_3
else if (y2 <= 5.5d+114) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if (y2 <= 1.1d+240) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -2.15e-12) {
tmp = t_2;
} else if (y2 <= -4e-72) {
tmp = t_3;
} else if (y2 <= -3.25e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= -8.8e-271) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= 5.8e-308) {
tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k))));
} else if (y2 <= 8.5e-283) {
tmp = c * (x * ((((y0 * y2) * (y0 * y2)) - ((y * i) * (y * i))) / ((y0 * y2) + (y * i))));
} else if (y2 <= 1.46e-61) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 3.5e+48) {
tmp = t_3;
} else if (y2 <= 5.5e+114) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y2 <= 1.1e+240) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1) t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) t_3 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -2.15e-12: tmp = t_2 elif y2 <= -4e-72: tmp = t_3 elif y2 <= -3.25e-254: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= -8.8e-271: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y2 <= 5.8e-308: tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))) elif y2 <= 8.5e-283: tmp = c * (x * ((((y0 * y2) * (y0 * y2)) - ((y * i) * (y * i))) / ((y0 * y2) + (y * i)))) elif y2 <= 1.46e-61: tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))) elif y2 <= 3.5e+48: tmp = t_3 elif y2 <= 5.5e+114: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif y2 <= 1.1e+240: tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1))) t_3 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -2.15e-12) tmp = t_2; elseif (y2 <= -4e-72) tmp = t_3; elseif (y2 <= -3.25e-254) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= -8.8e-271) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= 5.8e-308) tmp = Float64(y0 * Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(b * Float64(Float64(x * j) - Float64(z * k))))); elseif (y2 <= 8.5e-283) tmp = Float64(c * Float64(x * Float64(Float64(Float64(Float64(y0 * y2) * Float64(y0 * y2)) - Float64(Float64(y * i) * Float64(y * i))) / Float64(Float64(y0 * y2) + Float64(y * i))))); elseif (y2 <= 1.46e-61) tmp = Float64(x * Float64(Float64(y2 * t_1) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 3.5e+48) tmp = t_3; elseif (y2 <= 5.5e+114) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif (y2 <= 1.1e+240) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); 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) - (a * y1); t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)); t_3 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -2.15e-12) tmp = t_2; elseif (y2 <= -4e-72) tmp = t_3; elseif (y2 <= -3.25e-254) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= -8.8e-271) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y2 <= 5.8e-308) tmp = y0 * ((y5 * ((j * y3) - (k * y2))) - (b * ((x * j) - (z * k)))); elseif (y2 <= 8.5e-283) tmp = c * (x * ((((y0 * y2) * (y0 * y2)) - ((y * i) * (y * i))) / ((y0 * y2) + (y * i)))); elseif (y2 <= 1.46e-61) tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 3.5e+48) tmp = t_3; elseif (y2 <= 5.5e+114) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif (y2 <= 1.1e+240) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.15e-12], t$95$2, If[LessEqual[y2, -4e-72], t$95$3, If[LessEqual[y2, -3.25e-254], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.8e-271], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e-308], N[(y0 * N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.5e-283], N[(c * N[(x * N[(N[(N[(N[(y0 * y2), $MachinePrecision] * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] - N[(N[(y * i), $MachinePrecision] * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y0 * y2), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.46e-61], N[(x * N[(N[(y2 * t$95$1), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e+48], t$95$3, If[LessEqual[y2, 5.5e+114], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.1e+240], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right)\\
t_3 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -2.15 \cdot 10^{-12}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -4 \cdot 10^{-72}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -3.25 \cdot 10^{-254}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -8.8 \cdot 10^{-271}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-308}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) - b \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq 8.5 \cdot 10^{-283}:\\
\;\;\;\;c \cdot \left(x \cdot \frac{\left(y0 \cdot y2\right) \cdot \left(y0 \cdot y2\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{y0 \cdot y2 + y \cdot i}\right)\\
\mathbf{elif}\;y2 \leq 1.46 \cdot 10^{-61}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_1 + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{+48}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq 5.5 \cdot 10^{+114}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 1.1 \cdot 10^{+240}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -2.14999999999999993e-12 or 1.1000000000000001e240 < y2 Initial program 30.4%
Simplified30.4%
Taylor expanded in y2 around inf 61.4%
Taylor expanded in t around 0 54.3%
if -2.14999999999999993e-12 < y2 < -3.9999999999999999e-72 or 1.46e-61 < y2 < 3.4999999999999997e48Initial program 27.5%
Simplified34.4%
Taylor expanded in y around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in x around inf 66.2%
if -3.9999999999999999e-72 < y2 < -3.25e-254Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -3.25e-254 < y2 < -8.7999999999999998e-271Initial program 0.0%
Simplified0.0%
Taylor expanded in y4 around inf 34.3%
Taylor expanded in y1 around inf 52.2%
if -8.7999999999999998e-271 < y2 < 5.8000000000000001e-308Initial program 30.0%
Simplified30.0%
Taylor expanded in y0 around inf 50.8%
mul-1-neg50.8%
Simplified50.8%
Taylor expanded in c around 0 50.8%
if 5.8000000000000001e-308 < y2 < 8.49999999999999997e-283Initial program 56.2%
Simplified56.2%
Taylor expanded in c around inf 44.6%
Taylor expanded in x around inf 66.8%
*-commutative66.8%
+-commutative66.8%
mul-1-neg66.8%
*-commutative66.8%
unsub-neg66.8%
*-commutative66.8%
Simplified66.8%
flip--66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
Applied egg-rr66.8%
if 8.49999999999999997e-283 < y2 < 1.46e-61Initial program 33.5%
Simplified33.5%
Taylor expanded in x around inf 55.3%
Taylor expanded in y around 0 51.3%
if 3.4999999999999997e48 < y2 < 5.5000000000000001e114Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 5.5000000000000001e114 < y2 < 1.1000000000000001e240Initial program 20.6%
Simplified24.1%
Taylor expanded in y5 around inf 31.4%
mul-1-neg31.4%
mul-1-neg31.4%
mul-1-neg31.4%
sub-neg31.4%
sub-neg31.4%
Simplified31.4%
Taylor expanded in y2 around inf 59.3%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (* y2 (+ (* k (- (* y1 y4) (* y0 y5))) (* x t_1))))
(t_3 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -4.45e-13)
t_2
(if (<= y2 -8.6e-73)
t_3
(if (<= y2 -3.1e-243)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 2.2e-50)
(* x (+ (* y2 t_1) (* j (- (* i y1) (* b y0)))))
(if (<= y2 5.8e+50)
t_3
(if (<= y2 1.5e+121)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (or (<= y2 1.1e+239) (not (<= y2 3e+290)))
(* y5 (* y2 (- (* t a) (* k y0))))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -4.45e-13) {
tmp = t_2;
} else if (y2 <= -8.6e-73) {
tmp = t_3;
} else if (y2 <= -3.1e-243) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 2.2e-50) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 5.8e+50) {
tmp = t_3;
} else if (y2 <= 1.5e+121) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 1.1e+239) || !(y2 <= 3e+290)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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 = (c * y0) - (a * y1)
t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1))
t_3 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-4.45d-13)) then
tmp = t_2
else if (y2 <= (-8.6d-73)) then
tmp = t_3
else if (y2 <= (-3.1d-243)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 2.2d-50) then
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))))
else if (y2 <= 5.8d+50) then
tmp = t_3
else if (y2 <= 1.5d+121) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if ((y2 <= 1.1d+239) .or. (.not. (y2 <= 3d+290))) then
tmp = y5 * (y2 * ((t * a) - (k * y0)))
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) - (a * y1);
double t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1));
double t_3 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -4.45e-13) {
tmp = t_2;
} else if (y2 <= -8.6e-73) {
tmp = t_3;
} else if (y2 <= -3.1e-243) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 2.2e-50) {
tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0))));
} else if (y2 <= 5.8e+50) {
tmp = t_3;
} else if (y2 <= 1.5e+121) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if ((y2 <= 1.1e+239) || !(y2 <= 3e+290)) {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
} 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) - (a * y1) t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)) t_3 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -4.45e-13: tmp = t_2 elif y2 <= -8.6e-73: tmp = t_3 elif y2 <= -3.1e-243: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 2.2e-50: tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))) elif y2 <= 5.8e+50: tmp = t_3 elif y2 <= 1.5e+121: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif (y2 <= 1.1e+239) or not (y2 <= 3e+290): tmp = y5 * (y2 * ((t * a) - (k * y0))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_1))) t_3 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -4.45e-13) tmp = t_2; elseif (y2 <= -8.6e-73) tmp = t_3; elseif (y2 <= -3.1e-243) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 2.2e-50) tmp = Float64(x * Float64(Float64(y2 * t_1) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= 5.8e+50) tmp = t_3; elseif (y2 <= 1.5e+121) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif ((y2 <= 1.1e+239) || !(y2 <= 3e+290)) tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * y0)))); 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) - (a * y1); t_2 = y2 * ((k * ((y1 * y4) - (y0 * y5))) + (x * t_1)); t_3 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -4.45e-13) tmp = t_2; elseif (y2 <= -8.6e-73) tmp = t_3; elseif (y2 <= -3.1e-243) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 2.2e-50) tmp = x * ((y2 * t_1) + (j * ((i * y1) - (b * y0)))); elseif (y2 <= 5.8e+50) tmp = t_3; elseif (y2 <= 1.5e+121) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif ((y2 <= 1.1e+239) || ~((y2 <= 3e+290))) tmp = y5 * (y2 * ((t * a) - (k * y0))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.45e-13], t$95$2, If[LessEqual[y2, -8.6e-73], t$95$3, If[LessEqual[y2, -3.1e-243], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.2e-50], N[(x * N[(N[(y2 * t$95$1), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e+50], t$95$3, If[LessEqual[y2, 1.5e+121], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y2, 1.1e+239], N[Not[LessEqual[y2, 3e+290]], $MachinePrecision]], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t_1\right)\\
t_3 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -4.45 \cdot 10^{-13}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -8.6 \cdot 10^{-73}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq -3.1 \cdot 10^{-243}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-50}:\\
\;\;\;\;x \cdot \left(y2 \cdot t_1 + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y2 \leq 1.5 \cdot 10^{+121}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y2 \leq 1.1 \cdot 10^{+239} \lor \neg \left(y2 \leq 3 \cdot 10^{+290}\right):\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -4.4500000000000002e-13 or 1.10000000000000002e239 < y2 < 3e290Initial program 32.4%
Simplified32.4%
Taylor expanded in y2 around inf 62.7%
Taylor expanded in t around 0 56.5%
if -4.4500000000000002e-13 < y2 < -8.5999999999999998e-73 or 2.1999999999999999e-50 < y2 < 5.8e50Initial program 27.5%
Simplified34.4%
Taylor expanded in y around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in x around inf 66.2%
if -8.5999999999999998e-73 < y2 < -3.0999999999999999e-243Initial program 30.8%
Simplified30.8%
Taylor expanded in c around inf 42.5%
Taylor expanded in z around inf 45.2%
associate-*r*45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
Simplified45.2%
if -3.0999999999999999e-243 < y2 < 2.1999999999999999e-50Initial program 32.6%
Simplified32.6%
Taylor expanded in x around inf 49.3%
Taylor expanded in y around 0 45.2%
if 5.8e50 < y2 < 1.5000000000000001e121Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 1.5000000000000001e121 < y2 < 1.10000000000000002e239 or 3e290 < y2 Initial program 17.6%
Simplified20.5%
Taylor expanded in y5 around inf 32.7%
mul-1-neg32.7%
mul-1-neg32.7%
mul-1-neg32.7%
sub-neg32.7%
sub-neg32.7%
Simplified32.7%
Taylor expanded in y2 around inf 59.4%
Final simplification53.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i)))))
(t_2 (* x (* j (- (* i y1) (* b y0))))))
(if (<= y2 -4.5e+236)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y2 -2.05e+48)
(* y0 (* k (- (* z b) (* y2 y5))))
(if (<= y2 -1.4e-11)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y2 -7.2e-72)
t_1
(if (<= y2 -1.35e-251)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.95e-187)
t_2
(if (<= y2 4.6e-107)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 3.6e-68)
t_2
(if (<= y2 5e+50)
t_1
(if (<= y2 2.3e+177)
(* (* k y4) (- (* y1 y2) (* y b)))
(* c (* y2 (- (* x y0) (* 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 = y * (x * ((a * b) - (c * i)));
double t_2 = x * (j * ((i * y1) - (b * y0)));
double tmp;
if (y2 <= -4.5e+236) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -2.05e+48) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (y2 <= -1.4e-11) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -7.2e-72) {
tmp = t_1;
} else if (y2 <= -1.35e-251) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.95e-187) {
tmp = t_2;
} else if (y2 <= 4.6e-107) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 3.6e-68) {
tmp = t_2;
} else if (y2 <= 5e+50) {
tmp = t_1;
} else if (y2 <= 2.3e+177) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else {
tmp = c * (y2 * ((x * y0) - (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) :: t_2
real(8) :: tmp
t_1 = y * (x * ((a * b) - (c * i)))
t_2 = x * (j * ((i * y1) - (b * y0)))
if (y2 <= (-4.5d+236)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y2 <= (-2.05d+48)) then
tmp = y0 * (k * ((z * b) - (y2 * y5)))
else if (y2 <= (-1.4d-11)) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y2 <= (-7.2d-72)) then
tmp = t_1
else if (y2 <= (-1.35d-251)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.95d-187) then
tmp = t_2
else if (y2 <= 4.6d-107) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 3.6d-68) then
tmp = t_2
else if (y2 <= 5d+50) then
tmp = t_1
else if (y2 <= 2.3d+177) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else
tmp = c * (y2 * ((x * y0) - (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 = y * (x * ((a * b) - (c * i)));
double t_2 = x * (j * ((i * y1) - (b * y0)));
double tmp;
if (y2 <= -4.5e+236) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -2.05e+48) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (y2 <= -1.4e-11) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -7.2e-72) {
tmp = t_1;
} else if (y2 <= -1.35e-251) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.95e-187) {
tmp = t_2;
} else if (y2 <= 4.6e-107) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 3.6e-68) {
tmp = t_2;
} else if (y2 <= 5e+50) {
tmp = t_1;
} else if (y2 <= 2.3e+177) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else {
tmp = c * (y2 * ((x * y0) - (t * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) t_2 = x * (j * ((i * y1) - (b * y0))) tmp = 0 if y2 <= -4.5e+236: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y2 <= -2.05e+48: tmp = y0 * (k * ((z * b) - (y2 * y5))) elif y2 <= -1.4e-11: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y2 <= -7.2e-72: tmp = t_1 elif y2 <= -1.35e-251: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.95e-187: tmp = t_2 elif y2 <= 4.6e-107: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 3.6e-68: tmp = t_2 elif y2 <= 5e+50: tmp = t_1 elif y2 <= 2.3e+177: tmp = (k * y4) * ((y1 * y2) - (y * b)) else: tmp = c * (y2 * ((x * y0) - (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(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (y2 <= -4.5e+236) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -2.05e+48) tmp = Float64(y0 * Float64(k * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y2 <= -1.4e-11) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y2 <= -7.2e-72) tmp = t_1; elseif (y2 <= -1.35e-251) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.95e-187) tmp = t_2; elseif (y2 <= 4.6e-107) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 3.6e-68) tmp = t_2; elseif (y2 <= 5e+50) tmp = t_1; elseif (y2 <= 2.3e+177) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); else tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - 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 = y * (x * ((a * b) - (c * i))); t_2 = x * (j * ((i * y1) - (b * y0))); tmp = 0.0; if (y2 <= -4.5e+236) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y2 <= -2.05e+48) tmp = y0 * (k * ((z * b) - (y2 * y5))); elseif (y2 <= -1.4e-11) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y2 <= -7.2e-72) tmp = t_1; elseif (y2 <= -1.35e-251) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.95e-187) tmp = t_2; elseif (y2 <= 4.6e-107) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 3.6e-68) tmp = t_2; elseif (y2 <= 5e+50) tmp = t_1; elseif (y2 <= 2.3e+177) tmp = (k * y4) * ((y1 * y2) - (y * b)); else tmp = c * (y2 * ((x * y0) - (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[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.5e+236], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.05e+48], N[(y0 * N[(k * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.4e-11], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -7.2e-72], t$95$1, If[LessEqual[y2, -1.35e-251], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.95e-187], t$95$2, If[LessEqual[y2, 4.6e-107], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e-68], t$95$2, If[LessEqual[y2, 5e+50], t$95$1, If[LessEqual[y2, 2.3e+177], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;y2 \leq -4.5 \cdot 10^{+236}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -2.05 \cdot 10^{+48}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -1.4 \cdot 10^{-11}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y2 \leq -7.2 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -1.35 \cdot 10^{-251}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.95 \cdot 10^{-187}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 4.6 \cdot 10^{-107}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{-68}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 5 \cdot 10^{+50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 2.3 \cdot 10^{+177}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -4.50000000000000018e236Initial program 11.8%
Simplified11.8%
Taylor expanded in y4 around inf 23.5%
Taylor expanded in y1 around inf 70.8%
if -4.50000000000000018e236 < y2 < -2.0500000000000001e48Initial program 38.7%
Simplified38.7%
Taylor expanded in y0 around inf 33.2%
mul-1-neg33.2%
Simplified33.2%
Taylor expanded in k around inf 52.1%
if -2.0500000000000001e48 < y2 < -1.4e-11Initial program 49.9%
Simplified49.9%
Taylor expanded in y2 around inf 57.7%
Taylor expanded in y1 around inf 44.8%
*-commutative44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
*-commutative44.8%
Simplified44.8%
if -1.4e-11 < y2 < -7.2e-72 or 3.60000000000000007e-68 < y2 < 5e50Initial program 27.5%
Simplified34.4%
Taylor expanded in y around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in x around inf 66.2%
if -7.2e-72 < y2 < -1.35000000000000005e-251Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -1.35000000000000005e-251 < y2 < 1.9499999999999999e-187 or 4.60000000000000007e-107 < y2 < 3.60000000000000007e-68Initial program 31.8%
Simplified31.8%
Taylor expanded in x around inf 53.4%
Taylor expanded in j around inf 39.9%
*-commutative39.9%
*-commutative39.9%
associate-*l*46.8%
*-commutative46.8%
Simplified46.8%
if 1.9499999999999999e-187 < y2 < 4.60000000000000007e-107Initial program 40.0%
Simplified40.0%
Taylor expanded in c around inf 72.5%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
+-commutative51.4%
mul-1-neg51.4%
*-commutative51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
if 5e50 < y2 < 2.2999999999999999e177Initial program 13.6%
Simplified13.6%
Taylor expanded in y4 around inf 45.6%
Taylor expanded in k around inf 50.9%
associate-*r*55.2%
*-commutative55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
*-commutative55.2%
Simplified55.2%
if 2.2999999999999999e177 < y2 Initial program 21.6%
Simplified21.6%
Taylor expanded in c around inf 35.5%
Taylor expanded in y2 around inf 54.5%
Final simplification53.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i)))))
(t_2 (* x (* j (- (* i y1) (* b y0))))))
(if (<= y2 -7.5e+231)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y2 -6.1e+47)
(* y0 (* k (- (* z b) (* y2 y5))))
(if (<= y2 -1.62e-12)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y2 -3.7e-72)
t_1
(if (<= y2 -2e-251)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.8e-187)
t_2
(if (<= y2 6.6e-108)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 1.8e-59)
t_2
(if (<= y2 7.8e+59)
t_1
(* c (* t (- (* z i) (* y2 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 = y * (x * ((a * b) - (c * i)));
double t_2 = x * (j * ((i * y1) - (b * y0)));
double tmp;
if (y2 <= -7.5e+231) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -6.1e+47) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (y2 <= -1.62e-12) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -3.7e-72) {
tmp = t_1;
} else if (y2 <= -2e-251) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.8e-187) {
tmp = t_2;
} else if (y2 <= 6.6e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 1.8e-59) {
tmp = t_2;
} else if (y2 <= 7.8e+59) {
tmp = t_1;
} else {
tmp = c * (t * ((z * i) - (y2 * 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 = y * (x * ((a * b) - (c * i)))
t_2 = x * (j * ((i * y1) - (b * y0)))
if (y2 <= (-7.5d+231)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y2 <= (-6.1d+47)) then
tmp = y0 * (k * ((z * b) - (y2 * y5)))
else if (y2 <= (-1.62d-12)) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y2 <= (-3.7d-72)) then
tmp = t_1
else if (y2 <= (-2d-251)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.8d-187) then
tmp = t_2
else if (y2 <= 6.6d-108) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 1.8d-59) then
tmp = t_2
else if (y2 <= 7.8d+59) then
tmp = t_1
else
tmp = c * (t * ((z * i) - (y2 * 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 = y * (x * ((a * b) - (c * i)));
double t_2 = x * (j * ((i * y1) - (b * y0)));
double tmp;
if (y2 <= -7.5e+231) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -6.1e+47) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (y2 <= -1.62e-12) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -3.7e-72) {
tmp = t_1;
} else if (y2 <= -2e-251) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.8e-187) {
tmp = t_2;
} else if (y2 <= 6.6e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 1.8e-59) {
tmp = t_2;
} else if (y2 <= 7.8e+59) {
tmp = t_1;
} else {
tmp = c * (t * ((z * i) - (y2 * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) t_2 = x * (j * ((i * y1) - (b * y0))) tmp = 0 if y2 <= -7.5e+231: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y2 <= -6.1e+47: tmp = y0 * (k * ((z * b) - (y2 * y5))) elif y2 <= -1.62e-12: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y2 <= -3.7e-72: tmp = t_1 elif y2 <= -2e-251: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.8e-187: tmp = t_2 elif y2 <= 6.6e-108: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 1.8e-59: tmp = t_2 elif y2 <= 7.8e+59: tmp = t_1 else: tmp = c * (t * ((z * i) - (y2 * y4))) 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(x * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (y2 <= -7.5e+231) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -6.1e+47) tmp = Float64(y0 * Float64(k * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y2 <= -1.62e-12) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y2 <= -3.7e-72) tmp = t_1; elseif (y2 <= -2e-251) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.8e-187) tmp = t_2; elseif (y2 <= 6.6e-108) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 1.8e-59) tmp = t_2; elseif (y2 <= 7.8e+59) tmp = t_1; else tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * 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 = y * (x * ((a * b) - (c * i))); t_2 = x * (j * ((i * y1) - (b * y0))); tmp = 0.0; if (y2 <= -7.5e+231) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y2 <= -6.1e+47) tmp = y0 * (k * ((z * b) - (y2 * y5))); elseif (y2 <= -1.62e-12) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y2 <= -3.7e-72) tmp = t_1; elseif (y2 <= -2e-251) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.8e-187) tmp = t_2; elseif (y2 <= 6.6e-108) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 1.8e-59) tmp = t_2; elseif (y2 <= 7.8e+59) tmp = t_1; else tmp = c * (t * ((z * i) - (y2 * 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[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -7.5e+231], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.1e+47], N[(y0 * N[(k * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.62e-12], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.7e-72], t$95$1, If[LessEqual[y2, -2e-251], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.8e-187], t$95$2, If[LessEqual[y2, 6.6e-108], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.8e-59], t$95$2, If[LessEqual[y2, 7.8e+59], t$95$1, N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;y2 \leq -7.5 \cdot 10^{+231}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -6.1 \cdot 10^{+47}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -1.62 \cdot 10^{-12}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y2 \leq -3.7 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -2 \cdot 10^{-251}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-187}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 6.6 \cdot 10^{-108}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-59}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 7.8 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -7.50000000000000008e231Initial program 11.8%
Simplified11.8%
Taylor expanded in y4 around inf 23.5%
Taylor expanded in y1 around inf 70.8%
if -7.50000000000000008e231 < y2 < -6.10000000000000019e47Initial program 38.7%
Simplified38.7%
Taylor expanded in y0 around inf 33.2%
mul-1-neg33.2%
Simplified33.2%
Taylor expanded in k around inf 52.1%
if -6.10000000000000019e47 < y2 < -1.62e-12Initial program 49.9%
Simplified49.9%
Taylor expanded in y2 around inf 57.7%
Taylor expanded in y1 around inf 44.8%
*-commutative44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
*-commutative44.8%
Simplified44.8%
if -1.62e-12 < y2 < -3.6999999999999998e-72 or 1.8e-59 < y2 < 7.80000000000000043e59Initial program 28.1%
Simplified37.5%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in x around inf 63.1%
if -3.6999999999999998e-72 < y2 < -2.00000000000000003e-251Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -2.00000000000000003e-251 < y2 < 1.79999999999999997e-187 or 6.6000000000000004e-108 < y2 < 1.8e-59Initial program 31.8%
Simplified31.8%
Taylor expanded in x around inf 53.4%
Taylor expanded in j around inf 39.9%
*-commutative39.9%
*-commutative39.9%
associate-*l*46.8%
*-commutative46.8%
Simplified46.8%
if 1.79999999999999997e-187 < y2 < 6.6000000000000004e-108Initial program 40.0%
Simplified40.0%
Taylor expanded in c around inf 72.5%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
+-commutative51.4%
mul-1-neg51.4%
*-commutative51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
if 7.80000000000000043e59 < y2 Initial program 17.8%
Simplified17.8%
Taylor expanded in c around inf 32.5%
Taylor expanded in t around inf 47.1%
Final simplification51.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i))))))
(if (<= x -6.8e+120)
t_1
(if (<= x -2.3e+14)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= x -2.35e-182)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= x 6.2e-301)
(* y0 (* k (- (* z b) (* y2 y5))))
(if (<= x 5.5e-154)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= x 3.5e-14)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= x 5.6e+200)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= x 8.8e+265)
(* x (* j (- (* i y1) (* b y0))))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * ((a * b) - (c * i)));
double tmp;
if (x <= -6.8e+120) {
tmp = t_1;
} else if (x <= -2.3e+14) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (x <= -2.35e-182) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 6.2e-301) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (x <= 5.5e-154) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (x <= 3.5e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 5.6e+200) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (x <= 8.8e+265) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * ((a * b) - (c * i)))
if (x <= (-6.8d+120)) then
tmp = t_1
else if (x <= (-2.3d+14)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (x <= (-2.35d-182)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (x <= 6.2d-301) then
tmp = y0 * (k * ((z * b) - (y2 * y5)))
else if (x <= 5.5d-154) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (x <= 3.5d-14) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (x <= 5.6d+200) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (x <= 8.8d+265) then
tmp = x * (j * ((i * y1) - (b * y0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * ((a * b) - (c * i)));
double tmp;
if (x <= -6.8e+120) {
tmp = t_1;
} else if (x <= -2.3e+14) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (x <= -2.35e-182) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 6.2e-301) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (x <= 5.5e-154) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (x <= 3.5e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 5.6e+200) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (x <= 8.8e+265) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) tmp = 0 if x <= -6.8e+120: tmp = t_1 elif x <= -2.3e+14: tmp = c * (x * ((y0 * y2) - (y * i))) elif x <= -2.35e-182: tmp = c * (y4 * ((y * y3) - (t * y2))) elif x <= 6.2e-301: tmp = y0 * (k * ((z * b) - (y2 * y5))) elif x <= 5.5e-154: tmp = c * (t * ((z * i) - (y2 * y4))) elif x <= 3.5e-14: tmp = t * (y5 * ((a * y2) - (i * j))) elif x <= 5.6e+200: tmp = c * (y0 * ((x * y2) - (z * y3))) elif x <= 8.8e+265: tmp = x * (j * ((i * y1) - (b * y0))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (x <= -6.8e+120) tmp = t_1; elseif (x <= -2.3e+14) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (x <= -2.35e-182) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (x <= 6.2e-301) tmp = Float64(y0 * Float64(k * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (x <= 5.5e-154) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (x <= 3.5e-14) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (x <= 5.6e+200) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (x <= 8.8e+265) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (x <= -6.8e+120) tmp = t_1; elseif (x <= -2.3e+14) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (x <= -2.35e-182) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (x <= 6.2e-301) tmp = y0 * (k * ((z * b) - (y2 * y5))); elseif (x <= 5.5e-154) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (x <= 3.5e-14) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (x <= 5.6e+200) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (x <= 8.8e+265) tmp = x * (j * ((i * y1) - (b * y0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.8e+120], t$95$1, If[LessEqual[x, -2.3e+14], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.35e-182], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.2e-301], N[(y0 * N[(k * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e-154], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e-14], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e+200], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.8e+265], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;x \leq -6.8 \cdot 10^{+120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+14}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{-182}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-301}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-154}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-14}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{+200}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{+265}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -6.79999999999999998e120 or 8.7999999999999996e265 < x Initial program 19.6%
Simplified21.4%
Taylor expanded in y around inf 43.3%
mul-1-neg43.3%
Simplified43.3%
Taylor expanded in x around inf 52.3%
if -6.79999999999999998e120 < x < -2.3e14Initial program 31.5%
Simplified31.5%
Taylor expanded in c around inf 42.6%
Taylor expanded in x around inf 48.8%
*-commutative48.8%
+-commutative48.8%
mul-1-neg48.8%
*-commutative48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
if -2.3e14 < x < -2.35e-182Initial program 37.8%
Simplified37.8%
Taylor expanded in c around inf 49.2%
Taylor expanded in y4 around inf 49.4%
if -2.35e-182 < x < 6.20000000000000029e-301Initial program 37.0%
Simplified37.0%
Taylor expanded in y0 around inf 56.3%
mul-1-neg56.3%
Simplified56.3%
Taylor expanded in k around inf 45.6%
if 6.20000000000000029e-301 < x < 5.50000000000000002e-154Initial program 33.9%
Simplified33.9%
Taylor expanded in c around inf 46.9%
Taylor expanded in t around inf 47.5%
if 5.50000000000000002e-154 < x < 3.5000000000000002e-14Initial program 25.2%
Simplified33.5%
Taylor expanded in y5 around inf 38.6%
mul-1-neg38.6%
mul-1-neg38.6%
mul-1-neg38.6%
sub-neg38.6%
sub-neg38.6%
Simplified38.6%
Taylor expanded in t around inf 46.9%
if 3.5000000000000002e-14 < x < 5.59999999999999969e200Initial program 29.1%
Simplified29.1%
Taylor expanded in c around inf 33.6%
Taylor expanded in y0 around inf 44.6%
if 5.59999999999999969e200 < x < 8.7999999999999996e265Initial program 20.0%
Simplified20.0%
Taylor expanded in x around inf 80.0%
Taylor expanded in j around inf 67.4%
*-commutative67.4%
*-commutative67.4%
associate-*l*67.5%
*-commutative67.5%
Simplified67.5%
Final simplification49.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* j (- (* i y1) (* b y0)))))
(t_2 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -3.7e+242)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= y2 -1.95e+179)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= y2 -9.6e-14)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y2 2.9e-282)
t_2
(if (<= y2 2.1e-187)
t_1
(if (<= y2 6.3e-108)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 6.5e-68)
t_1
(if (<= y2 2.1e+60)
t_2
(* c (* t (- (* z i) (* y2 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 = x * (j * ((i * y1) - (b * y0)));
double t_2 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -3.7e+242) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= -1.95e+179) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y2 <= -9.6e-14) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= 2.9e-282) {
tmp = t_2;
} else if (y2 <= 2.1e-187) {
tmp = t_1;
} else if (y2 <= 6.3e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 6.5e-68) {
tmp = t_1;
} else if (y2 <= 2.1e+60) {
tmp = t_2;
} else {
tmp = c * (t * ((z * i) - (y2 * 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 = x * (j * ((i * y1) - (b * y0)))
t_2 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-3.7d+242)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (y2 <= (-1.95d+179)) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (y2 <= (-9.6d-14)) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y2 <= 2.9d-282) then
tmp = t_2
else if (y2 <= 2.1d-187) then
tmp = t_1
else if (y2 <= 6.3d-108) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 6.5d-68) then
tmp = t_1
else if (y2 <= 2.1d+60) then
tmp = t_2
else
tmp = c * (t * ((z * i) - (y2 * 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 = x * (j * ((i * y1) - (b * y0)));
double t_2 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -3.7e+242) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= -1.95e+179) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (y2 <= -9.6e-14) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= 2.9e-282) {
tmp = t_2;
} else if (y2 <= 2.1e-187) {
tmp = t_1;
} else if (y2 <= 6.3e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 6.5e-68) {
tmp = t_1;
} else if (y2 <= 2.1e+60) {
tmp = t_2;
} else {
tmp = c * (t * ((z * i) - (y2 * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (j * ((i * y1) - (b * y0))) t_2 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -3.7e+242: tmp = c * (y4 * ((y * y3) - (t * y2))) elif y2 <= -1.95e+179: tmp = t * (y5 * ((a * y2) - (i * j))) elif y2 <= -9.6e-14: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y2 <= 2.9e-282: tmp = t_2 elif y2 <= 2.1e-187: tmp = t_1 elif y2 <= 6.3e-108: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 6.5e-68: tmp = t_1 elif y2 <= 2.1e+60: tmp = t_2 else: tmp = c * (t * ((z * i) - (y2 * y4))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -3.7e+242) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (y2 <= -1.95e+179) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (y2 <= -9.6e-14) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y2 <= 2.9e-282) tmp = t_2; elseif (y2 <= 2.1e-187) tmp = t_1; elseif (y2 <= 6.3e-108) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 6.5e-68) tmp = t_1; elseif (y2 <= 2.1e+60) tmp = t_2; else tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * 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 = x * (j * ((i * y1) - (b * y0))); t_2 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -3.7e+242) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (y2 <= -1.95e+179) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (y2 <= -9.6e-14) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y2 <= 2.9e-282) tmp = t_2; elseif (y2 <= 2.1e-187) tmp = t_1; elseif (y2 <= 6.3e-108) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 6.5e-68) tmp = t_1; elseif (y2 <= 2.1e+60) tmp = t_2; else tmp = c * (t * ((z * i) - (y2 * 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[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.7e+242], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.95e+179], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -9.6e-14], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.9e-282], t$95$2, If[LessEqual[y2, 2.1e-187], t$95$1, If[LessEqual[y2, 6.3e-108], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.5e-68], t$95$1, If[LessEqual[y2, 2.1e+60], t$95$2, N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -3.7 \cdot 10^{+242}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -1.95 \cdot 10^{+179}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq -9.6 \cdot 10^{-14}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y2 \leq 2.9 \cdot 10^{-282}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 6.3 \cdot 10^{-108}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{+60}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -3.7e242Initial program 14.3%
Simplified14.3%
Taylor expanded in c around inf 43.2%
Taylor expanded in y4 around inf 71.6%
if -3.7e242 < y2 < -1.94999999999999987e179Initial program 18.2%
Simplified18.2%
Taylor expanded in y5 around inf 36.4%
mul-1-neg36.4%
mul-1-neg36.4%
mul-1-neg36.4%
sub-neg36.4%
sub-neg36.4%
Simplified36.4%
Taylor expanded in t around inf 64.9%
if -1.94999999999999987e179 < y2 < -9.599999999999999e-14Initial program 46.1%
Simplified46.1%
Taylor expanded in y2 around inf 54.7%
Taylor expanded in y1 around inf 42.4%
*-commutative42.4%
+-commutative42.4%
mul-1-neg42.4%
unsub-neg42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
if -9.599999999999999e-14 < y2 < 2.89999999999999998e-282 or 6.4999999999999997e-68 < y2 < 2.1000000000000001e60Initial program 29.9%
Simplified36.3%
Taylor expanded in y around inf 42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in x around inf 43.5%
if 2.89999999999999998e-282 < y2 < 2.09999999999999992e-187 or 6.2999999999999997e-108 < y2 < 6.4999999999999997e-68Initial program 31.5%
Simplified31.5%
Taylor expanded in x around inf 62.8%
Taylor expanded in j around inf 45.6%
*-commutative45.6%
*-commutative45.6%
associate-*l*57.4%
*-commutative57.4%
Simplified57.4%
if 2.09999999999999992e-187 < y2 < 6.2999999999999997e-108Initial program 40.0%
Simplified40.0%
Taylor expanded in c around inf 72.5%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
+-commutative51.4%
mul-1-neg51.4%
*-commutative51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
if 2.1000000000000001e60 < y2 Initial program 17.8%
Simplified17.8%
Taylor expanded in c around inf 32.5%
Taylor expanded in t around inf 47.1%
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 (* x (* j (- (* i y1) (* b y0)))))
(t_2 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -1.45e+234)
(* y4 (* y1 (- (* k y2) (* j y3))))
(if (<= y2 -1.15e+48)
(* y0 (* k (- (* z b) (* y2 y5))))
(if (<= y2 -1.8e-13)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y2 1.35e-282)
t_2
(if (<= y2 2.1e-187)
t_1
(if (<= y2 3.1e-105)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 2.9e-67)
t_1
(if (<= y2 8e+63)
t_2
(* c (* t (- (* z i) (* y2 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 = x * (j * ((i * y1) - (b * y0)));
double t_2 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -1.45e+234) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.15e+48) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (y2 <= -1.8e-13) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= 1.35e-282) {
tmp = t_2;
} else if (y2 <= 2.1e-187) {
tmp = t_1;
} else if (y2 <= 3.1e-105) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 2.9e-67) {
tmp = t_1;
} else if (y2 <= 8e+63) {
tmp = t_2;
} else {
tmp = c * (t * ((z * i) - (y2 * 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 = x * (j * ((i * y1) - (b * y0)))
t_2 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-1.45d+234)) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else if (y2 <= (-1.15d+48)) then
tmp = y0 * (k * ((z * b) - (y2 * y5)))
else if (y2 <= (-1.8d-13)) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y2 <= 1.35d-282) then
tmp = t_2
else if (y2 <= 2.1d-187) then
tmp = t_1
else if (y2 <= 3.1d-105) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 2.9d-67) then
tmp = t_1
else if (y2 <= 8d+63) then
tmp = t_2
else
tmp = c * (t * ((z * i) - (y2 * 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 = x * (j * ((i * y1) - (b * y0)));
double t_2 = y * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -1.45e+234) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.15e+48) {
tmp = y0 * (k * ((z * b) - (y2 * y5)));
} else if (y2 <= -1.8e-13) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= 1.35e-282) {
tmp = t_2;
} else if (y2 <= 2.1e-187) {
tmp = t_1;
} else if (y2 <= 3.1e-105) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 2.9e-67) {
tmp = t_1;
} else if (y2 <= 8e+63) {
tmp = t_2;
} else {
tmp = c * (t * ((z * i) - (y2 * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (j * ((i * y1) - (b * y0))) t_2 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -1.45e+234: tmp = y4 * (y1 * ((k * y2) - (j * y3))) elif y2 <= -1.15e+48: tmp = y0 * (k * ((z * b) - (y2 * y5))) elif y2 <= -1.8e-13: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y2 <= 1.35e-282: tmp = t_2 elif y2 <= 2.1e-187: tmp = t_1 elif y2 <= 3.1e-105: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 2.9e-67: tmp = t_1 elif y2 <= 8e+63: tmp = t_2 else: tmp = c * (t * ((z * i) - (y2 * y4))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))) t_2 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -1.45e+234) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -1.15e+48) tmp = Float64(y0 * Float64(k * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y2 <= -1.8e-13) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y2 <= 1.35e-282) tmp = t_2; elseif (y2 <= 2.1e-187) tmp = t_1; elseif (y2 <= 3.1e-105) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 2.9e-67) tmp = t_1; elseif (y2 <= 8e+63) tmp = t_2; else tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * 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 = x * (j * ((i * y1) - (b * y0))); t_2 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -1.45e+234) tmp = y4 * (y1 * ((k * y2) - (j * y3))); elseif (y2 <= -1.15e+48) tmp = y0 * (k * ((z * b) - (y2 * y5))); elseif (y2 <= -1.8e-13) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y2 <= 1.35e-282) tmp = t_2; elseif (y2 <= 2.1e-187) tmp = t_1; elseif (y2 <= 3.1e-105) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 2.9e-67) tmp = t_1; elseif (y2 <= 8e+63) tmp = t_2; else tmp = c * (t * ((z * i) - (y2 * 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[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.45e+234], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.15e+48], N[(y0 * N[(k * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.8e-13], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.35e-282], t$95$2, If[LessEqual[y2, 2.1e-187], t$95$1, If[LessEqual[y2, 3.1e-105], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.9e-67], t$95$1, If[LessEqual[y2, 8e+63], t$95$2, N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -1.45 \cdot 10^{+234}:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{+48}:\\
\;\;\;\;y0 \cdot \left(k \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-13}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y2 \leq 1.35 \cdot 10^{-282}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 3.1 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 2.9 \cdot 10^{-67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{+63}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -1.44999999999999993e234Initial program 11.8%
Simplified11.8%
Taylor expanded in y4 around inf 23.5%
Taylor expanded in y1 around inf 70.8%
if -1.44999999999999993e234 < y2 < -1.15e48Initial program 38.7%
Simplified38.7%
Taylor expanded in y0 around inf 33.2%
mul-1-neg33.2%
Simplified33.2%
Taylor expanded in k around inf 52.1%
if -1.15e48 < y2 < -1.7999999999999999e-13Initial program 49.9%
Simplified49.9%
Taylor expanded in y2 around inf 57.7%
Taylor expanded in y1 around inf 44.8%
*-commutative44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
*-commutative44.8%
Simplified44.8%
if -1.7999999999999999e-13 < y2 < 1.34999999999999991e-282 or 2.90000000000000005e-67 < y2 < 8.00000000000000046e63Initial program 29.9%
Simplified36.3%
Taylor expanded in y around inf 42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in x around inf 43.5%
if 1.34999999999999991e-282 < y2 < 2.09999999999999992e-187 or 3.10000000000000014e-105 < y2 < 2.90000000000000005e-67Initial program 31.5%
Simplified31.5%
Taylor expanded in x around inf 62.8%
Taylor expanded in j around inf 45.6%
*-commutative45.6%
*-commutative45.6%
associate-*l*57.4%
*-commutative57.4%
Simplified57.4%
if 2.09999999999999992e-187 < y2 < 3.10000000000000014e-105Initial program 40.0%
Simplified40.0%
Taylor expanded in c around inf 72.5%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
+-commutative51.4%
mul-1-neg51.4%
*-commutative51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
if 8.00000000000000046e63 < y2 Initial program 17.8%
Simplified17.8%
Taylor expanded in c around inf 32.5%
Taylor expanded in t around inf 47.1%
Final simplification49.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i)))))
(t_2 (* x (* j (- (* i y1) (* b y0))))))
(if (<= y2 -3.4e-12)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y2 -8.5e-72)
t_1
(if (<= y2 -1.5e-251)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.95e-187)
t_2
(if (<= y2 2.15e-106)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 7.9e-50)
t_2
(if (<= y2 5.5e+48)
t_1
(if (<= y2 1.7e+122)
(* (* k y4) (- (* y1 y2) (* y b)))
(* y5 (* y2 (- (* t a) (* k 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 * (x * ((a * b) - (c * i)));
double t_2 = x * (j * ((i * y1) - (b * y0)));
double tmp;
if (y2 <= -3.4e-12) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -8.5e-72) {
tmp = t_1;
} else if (y2 <= -1.5e-251) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.95e-187) {
tmp = t_2;
} else if (y2 <= 2.15e-106) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 7.9e-50) {
tmp = t_2;
} else if (y2 <= 5.5e+48) {
tmp = t_1;
} else if (y2 <= 1.7e+122) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else {
tmp = y5 * (y2 * ((t * a) - (k * 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) :: tmp
t_1 = y * (x * ((a * b) - (c * i)))
t_2 = x * (j * ((i * y1) - (b * y0)))
if (y2 <= (-3.4d-12)) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y2 <= (-8.5d-72)) then
tmp = t_1
else if (y2 <= (-1.5d-251)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.95d-187) then
tmp = t_2
else if (y2 <= 2.15d-106) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 7.9d-50) then
tmp = t_2
else if (y2 <= 5.5d+48) then
tmp = t_1
else if (y2 <= 1.7d+122) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else
tmp = y5 * (y2 * ((t * a) - (k * 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 * (x * ((a * b) - (c * i)));
double t_2 = x * (j * ((i * y1) - (b * y0)));
double tmp;
if (y2 <= -3.4e-12) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -8.5e-72) {
tmp = t_1;
} else if (y2 <= -1.5e-251) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.95e-187) {
tmp = t_2;
} else if (y2 <= 2.15e-106) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 7.9e-50) {
tmp = t_2;
} else if (y2 <= 5.5e+48) {
tmp = t_1;
} else if (y2 <= 1.7e+122) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) t_2 = x * (j * ((i * y1) - (b * y0))) tmp = 0 if y2 <= -3.4e-12: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y2 <= -8.5e-72: tmp = t_1 elif y2 <= -1.5e-251: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.95e-187: tmp = t_2 elif y2 <= 2.15e-106: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 7.9e-50: tmp = t_2 elif y2 <= 5.5e+48: tmp = t_1 elif y2 <= 1.7e+122: tmp = (k * y4) * ((y1 * y2) - (y * b)) else: tmp = y5 * (y2 * ((t * a) - (k * 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(x * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (y2 <= -3.4e-12) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y2 <= -8.5e-72) tmp = t_1; elseif (y2 <= -1.5e-251) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.95e-187) tmp = t_2; elseif (y2 <= 2.15e-106) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 7.9e-50) tmp = t_2; elseif (y2 <= 5.5e+48) tmp = t_1; elseif (y2 <= 1.7e+122) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); else tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * 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 * (x * ((a * b) - (c * i))); t_2 = x * (j * ((i * y1) - (b * y0))); tmp = 0.0; if (y2 <= -3.4e-12) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y2 <= -8.5e-72) tmp = t_1; elseif (y2 <= -1.5e-251) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.95e-187) tmp = t_2; elseif (y2 <= 2.15e-106) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 7.9e-50) tmp = t_2; elseif (y2 <= 5.5e+48) tmp = t_1; elseif (y2 <= 1.7e+122) tmp = (k * y4) * ((y1 * y2) - (y * b)); else tmp = y5 * (y2 * ((t * a) - (k * 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[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.4e-12], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.5e-72], t$95$1, If[LessEqual[y2, -1.5e-251], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.95e-187], t$95$2, If[LessEqual[y2, 2.15e-106], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.9e-50], t$95$2, If[LessEqual[y2, 5.5e+48], t$95$1, If[LessEqual[y2, 1.7e+122], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;y2 \leq -3.4 \cdot 10^{-12}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y2 \leq -8.5 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-251}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.95 \cdot 10^{-187}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 2.15 \cdot 10^{-106}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 7.9 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq 5.5 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 1.7 \cdot 10^{+122}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\end{array}
\end{array}
if y2 < -3.4000000000000001e-12Initial program 34.3%
Simplified34.3%
Taylor expanded in y2 around inf 58.3%
Taylor expanded in y1 around inf 44.7%
*-commutative44.7%
+-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
*-commutative44.7%
*-commutative44.7%
Simplified44.7%
if -3.4000000000000001e-12 < y2 < -8.50000000000000008e-72 or 7.9000000000000002e-50 < y2 < 5.5000000000000002e48Initial program 27.5%
Simplified34.4%
Taylor expanded in y around inf 52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in x around inf 66.2%
if -8.50000000000000008e-72 < y2 < -1.4999999999999999e-251Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -1.4999999999999999e-251 < y2 < 1.9499999999999999e-187 or 2.1500000000000001e-106 < y2 < 7.9000000000000002e-50Initial program 31.8%
Simplified31.8%
Taylor expanded in x around inf 53.4%
Taylor expanded in j around inf 39.9%
*-commutative39.9%
*-commutative39.9%
associate-*l*46.8%
*-commutative46.8%
Simplified46.8%
if 1.9499999999999999e-187 < y2 < 2.1500000000000001e-106Initial program 40.0%
Simplified40.0%
Taylor expanded in c around inf 72.5%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
+-commutative51.4%
mul-1-neg51.4%
*-commutative51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
if 5.5000000000000002e48 < y2 < 1.7e122Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 1.7e122 < y2 Initial program 19.1%
Simplified27.6%
Taylor expanded in y5 around inf 34.4%
mul-1-neg34.4%
mul-1-neg34.4%
mul-1-neg34.4%
sub-neg34.4%
sub-neg34.4%
Simplified34.4%
Taylor expanded in y2 around inf 55.9%
Final simplification51.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i))))))
(if (<= y2 -2.55e-11)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y2 -1.3e-72)
t_1
(if (<= y2 -4.5e-254)
(* z (* c (- (* t i) (* y0 y3))))
(if (<= y2 1.4e-187)
(* x (* j (- (* i y1) (* b y0))))
(if (<= y2 5.5e-108)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y2 9.4e-88)
(* y5 (* y0 (- (* j y3) (* k y2))))
(if (<= y2 7.2e+48)
t_1
(if (<= y2 1.6e+118)
(* (* k y4) (- (* y1 y2) (* y b)))
(* y5 (* y2 (- (* t a) (* k 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 * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -2.55e-11) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -1.3e-72) {
tmp = t_1;
} else if (y2 <= -4.5e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.4e-187) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y2 <= 5.5e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 9.4e-88) {
tmp = y5 * (y0 * ((j * y3) - (k * y2)));
} else if (y2 <= 7.2e+48) {
tmp = t_1;
} else if (y2 <= 1.6e+118) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * ((a * b) - (c * i)))
if (y2 <= (-2.55d-11)) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y2 <= (-1.3d-72)) then
tmp = t_1
else if (y2 <= (-4.5d-254)) then
tmp = z * (c * ((t * i) - (y0 * y3)))
else if (y2 <= 1.4d-187) then
tmp = x * (j * ((i * y1) - (b * y0)))
else if (y2 <= 5.5d-108) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y2 <= 9.4d-88) then
tmp = y5 * (y0 * ((j * y3) - (k * y2)))
else if (y2 <= 7.2d+48) then
tmp = t_1
else if (y2 <= 1.6d+118) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else
tmp = y5 * (y2 * ((t * a) - (k * 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 * (x * ((a * b) - (c * i)));
double tmp;
if (y2 <= -2.55e-11) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y2 <= -1.3e-72) {
tmp = t_1;
} else if (y2 <= -4.5e-254) {
tmp = z * (c * ((t * i) - (y0 * y3)));
} else if (y2 <= 1.4e-187) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y2 <= 5.5e-108) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y2 <= 9.4e-88) {
tmp = y5 * (y0 * ((j * y3) - (k * y2)));
} else if (y2 <= 7.2e+48) {
tmp = t_1;
} else if (y2 <= 1.6e+118) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else {
tmp = y5 * (y2 * ((t * a) - (k * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) tmp = 0 if y2 <= -2.55e-11: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y2 <= -1.3e-72: tmp = t_1 elif y2 <= -4.5e-254: tmp = z * (c * ((t * i) - (y0 * y3))) elif y2 <= 1.4e-187: tmp = x * (j * ((i * y1) - (b * y0))) elif y2 <= 5.5e-108: tmp = c * (x * ((y0 * y2) - (y * i))) elif y2 <= 9.4e-88: tmp = y5 * (y0 * ((j * y3) - (k * y2))) elif y2 <= 7.2e+48: tmp = t_1 elif y2 <= 1.6e+118: tmp = (k * y4) * ((y1 * y2) - (y * b)) else: tmp = y5 * (y2 * ((t * a) - (k * 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(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (y2 <= -2.55e-11) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y2 <= -1.3e-72) tmp = t_1; elseif (y2 <= -4.5e-254) tmp = Float64(z * Float64(c * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (y2 <= 1.4e-187) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y2 <= 5.5e-108) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y2 <= 9.4e-88) tmp = Float64(y5 * Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y2 <= 7.2e+48) tmp = t_1; elseif (y2 <= 1.6e+118) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); else tmp = Float64(y5 * Float64(y2 * Float64(Float64(t * a) - Float64(k * 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 * (x * ((a * b) - (c * i))); tmp = 0.0; if (y2 <= -2.55e-11) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y2 <= -1.3e-72) tmp = t_1; elseif (y2 <= -4.5e-254) tmp = z * (c * ((t * i) - (y0 * y3))); elseif (y2 <= 1.4e-187) tmp = x * (j * ((i * y1) - (b * y0))); elseif (y2 <= 5.5e-108) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y2 <= 9.4e-88) tmp = y5 * (y0 * ((j * y3) - (k * y2))); elseif (y2 <= 7.2e+48) tmp = t_1; elseif (y2 <= 1.6e+118) tmp = (k * y4) * ((y1 * y2) - (y * b)); else tmp = y5 * (y2 * ((t * a) - (k * 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[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.55e-11], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.3e-72], t$95$1, If[LessEqual[y2, -4.5e-254], N[(z * N[(c * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.4e-187], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.5e-108], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.4e-88], N[(y5 * N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.2e+48], t$95$1, If[LessEqual[y2, 1.6e+118], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(y2 * N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;y2 \leq -2.55 \cdot 10^{-11}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y2 \leq -1.3 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq -4.5 \cdot 10^{-254}:\\
\;\;\;\;z \cdot \left(c \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 1.4 \cdot 10^{-187}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 5.5 \cdot 10^{-108}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 9.4 \cdot 10^{-88}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 7.2 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y2 \leq 1.6 \cdot 10^{+118}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(y2 \cdot \left(t \cdot a - k \cdot y0\right)\right)\\
\end{array}
\end{array}
if y2 < -2.54999999999999992e-11Initial program 34.3%
Simplified34.3%
Taylor expanded in y2 around inf 58.3%
Taylor expanded in y1 around inf 44.7%
*-commutative44.7%
+-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
*-commutative44.7%
*-commutative44.7%
Simplified44.7%
if -2.54999999999999992e-11 < y2 < -1.29999999999999998e-72 or 9.4e-88 < y2 < 7.19999999999999967e48Initial program 25.0%
Simplified33.3%
Taylor expanded in y around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in x around inf 61.8%
if -1.29999999999999998e-72 < y2 < -4.5e-254Initial program 30.0%
Simplified30.0%
Taylor expanded in c around inf 44.1%
Taylor expanded in z around inf 46.7%
associate-*r*46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
Simplified46.7%
if -4.5e-254 < y2 < 1.4e-187Initial program 32.2%
Simplified32.2%
Taylor expanded in x around inf 49.8%
Taylor expanded in j around inf 39.5%
*-commutative39.5%
*-commutative39.5%
associate-*l*45.8%
*-commutative45.8%
Simplified45.8%
if 1.4e-187 < y2 < 5.50000000000000031e-108Initial program 33.4%
Simplified33.4%
Taylor expanded in c around inf 79.6%
Taylor expanded in x around inf 56.3%
*-commutative56.3%
+-commutative56.3%
mul-1-neg56.3%
*-commutative56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
if 5.50000000000000031e-108 < y2 < 9.4e-88Initial program 74.6%
Simplified74.6%
Taylor expanded in y5 around inf 100.0%
mul-1-neg100.0%
mul-1-neg100.0%
mul-1-neg100.0%
sub-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y0 around inf 100.0%
if 7.19999999999999967e48 < y2 < 1.60000000000000008e118Initial program 16.7%
Simplified16.7%
Taylor expanded in y4 around inf 58.6%
Taylor expanded in k around inf 67.4%
associate-*r*67.4%
*-commutative67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
*-commutative67.4%
Simplified67.4%
if 1.60000000000000008e118 < y2 Initial program 19.1%
Simplified27.6%
Taylor expanded in y5 around inf 34.4%
mul-1-neg34.4%
mul-1-neg34.4%
mul-1-neg34.4%
sub-neg34.4%
sub-neg34.4%
Simplified34.4%
Taylor expanded in y2 around inf 55.9%
Final simplification52.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i))))))
(if (<= x -2.95e+122)
t_1
(if (<= x -3.2e+19)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= x -8.4e-255)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= x 3.7e-14)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= x 5e+200)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= x 5.6e+267) (* x (* j (- (* i y1) (* b y0)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * ((a * b) - (c * i)));
double tmp;
if (x <= -2.95e+122) {
tmp = t_1;
} else if (x <= -3.2e+19) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (x <= -8.4e-255) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 3.7e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 5e+200) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (x <= 5.6e+267) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * ((a * b) - (c * i)))
if (x <= (-2.95d+122)) then
tmp = t_1
else if (x <= (-3.2d+19)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (x <= (-8.4d-255)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (x <= 3.7d-14) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (x <= 5d+200) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (x <= 5.6d+267) then
tmp = x * (j * ((i * y1) - (b * y0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * ((a * b) - (c * i)));
double tmp;
if (x <= -2.95e+122) {
tmp = t_1;
} else if (x <= -3.2e+19) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (x <= -8.4e-255) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 3.7e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 5e+200) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (x <= 5.6e+267) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) tmp = 0 if x <= -2.95e+122: tmp = t_1 elif x <= -3.2e+19: tmp = c * (x * ((y0 * y2) - (y * i))) elif x <= -8.4e-255: tmp = c * (y4 * ((y * y3) - (t * y2))) elif x <= 3.7e-14: tmp = t * (y5 * ((a * y2) - (i * j))) elif x <= 5e+200: tmp = c * (y0 * ((x * y2) - (z * y3))) elif x <= 5.6e+267: tmp = x * (j * ((i * y1) - (b * y0))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) tmp = 0.0 if (x <= -2.95e+122) tmp = t_1; elseif (x <= -3.2e+19) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (x <= -8.4e-255) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (x <= 3.7e-14) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (x <= 5e+200) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (x <= 5.6e+267) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (x * ((a * b) - (c * i))); tmp = 0.0; if (x <= -2.95e+122) tmp = t_1; elseif (x <= -3.2e+19) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (x <= -8.4e-255) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (x <= 3.7e-14) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (x <= 5e+200) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (x <= 5.6e+267) tmp = x * (j * ((i * y1) - (b * y0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.95e+122], t$95$1, If[LessEqual[x, -3.2e+19], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.4e-255], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e-14], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+200], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e+267], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{if}\;x \leq -2.95 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{+19}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;x \leq -8.4 \cdot 10^{-255}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-14}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+200}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{+267}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.95000000000000016e122 or 5.6000000000000004e267 < x Initial program 19.6%
Simplified21.4%
Taylor expanded in y around inf 43.3%
mul-1-neg43.3%
Simplified43.3%
Taylor expanded in x around inf 52.3%
if -2.95000000000000016e122 < x < -3.2e19Initial program 31.5%
Simplified31.5%
Taylor expanded in c around inf 42.6%
Taylor expanded in x around inf 48.8%
*-commutative48.8%
+-commutative48.8%
mul-1-neg48.8%
*-commutative48.8%
unsub-neg48.8%
*-commutative48.8%
Simplified48.8%
if -3.2e19 < x < -8.3999999999999999e-255Initial program 43.6%
Simplified43.6%
Taylor expanded in c around inf 44.5%
Taylor expanded in y4 around inf 42.9%
if -8.3999999999999999e-255 < x < 3.70000000000000001e-14Initial program 25.8%
Simplified30.5%
Taylor expanded in y5 around inf 37.2%
mul-1-neg37.2%
mul-1-neg37.2%
mul-1-neg37.2%
sub-neg37.2%
sub-neg37.2%
Simplified37.2%
Taylor expanded in t around inf 39.1%
if 3.70000000000000001e-14 < x < 5.00000000000000019e200Initial program 29.1%
Simplified29.1%
Taylor expanded in c around inf 33.6%
Taylor expanded in y0 around inf 44.6%
if 5.00000000000000019e200 < x < 5.6000000000000004e267Initial program 20.0%
Simplified20.0%
Taylor expanded in x around inf 80.0%
Taylor expanded in j around inf 67.4%
*-commutative67.4%
*-commutative67.4%
associate-*l*67.5%
*-commutative67.5%
Simplified67.5%
Final simplification46.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -1.6e+121)
(* t (* a (* y2 y5)))
(if (<= y2 -5.7e+43)
(* y0 (* c (* x y2)))
(if (<= y2 -0.0245)
(* i (* (* t j) (- y5)))
(if (<= y2 -1.8e-71)
(* y (* x (* c (- i))))
(if (<= y2 -1.65e-174)
(* y (* y3 (* y5 (- a))))
(if (<= y2 3.1e-281)
(* c (* x (* y (- i))))
(if (<= y2 2.35e+165)
(* (* y k) (* i y5))
(* a (* t (* y2 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.6e+121) {
tmp = t * (a * (y2 * y5));
} else if (y2 <= -5.7e+43) {
tmp = y0 * (c * (x * y2));
} else if (y2 <= -0.0245) {
tmp = i * ((t * j) * -y5);
} else if (y2 <= -1.8e-71) {
tmp = y * (x * (c * -i));
} else if (y2 <= -1.65e-174) {
tmp = y * (y3 * (y5 * -a));
} else if (y2 <= 3.1e-281) {
tmp = c * (x * (y * -i));
} else if (y2 <= 2.35e+165) {
tmp = (y * k) * (i * y5);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-1.6d+121)) then
tmp = t * (a * (y2 * y5))
else if (y2 <= (-5.7d+43)) then
tmp = y0 * (c * (x * y2))
else if (y2 <= (-0.0245d0)) then
tmp = i * ((t * j) * -y5)
else if (y2 <= (-1.8d-71)) then
tmp = y * (x * (c * -i))
else if (y2 <= (-1.65d-174)) then
tmp = y * (y3 * (y5 * -a))
else if (y2 <= 3.1d-281) then
tmp = c * (x * (y * -i))
else if (y2 <= 2.35d+165) then
tmp = (y * k) * (i * y5)
else
tmp = a * (t * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.6e+121) {
tmp = t * (a * (y2 * y5));
} else if (y2 <= -5.7e+43) {
tmp = y0 * (c * (x * y2));
} else if (y2 <= -0.0245) {
tmp = i * ((t * j) * -y5);
} else if (y2 <= -1.8e-71) {
tmp = y * (x * (c * -i));
} else if (y2 <= -1.65e-174) {
tmp = y * (y3 * (y5 * -a));
} else if (y2 <= 3.1e-281) {
tmp = c * (x * (y * -i));
} else if (y2 <= 2.35e+165) {
tmp = (y * k) * (i * y5);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.6e+121: tmp = t * (a * (y2 * y5)) elif y2 <= -5.7e+43: tmp = y0 * (c * (x * y2)) elif y2 <= -0.0245: tmp = i * ((t * j) * -y5) elif y2 <= -1.8e-71: tmp = y * (x * (c * -i)) elif y2 <= -1.65e-174: tmp = y * (y3 * (y5 * -a)) elif y2 <= 3.1e-281: tmp = c * (x * (y * -i)) elif y2 <= 2.35e+165: tmp = (y * k) * (i * y5) else: tmp = a * (t * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -1.6e+121) tmp = Float64(t * Float64(a * Float64(y2 * y5))); elseif (y2 <= -5.7e+43) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (y2 <= -0.0245) tmp = Float64(i * Float64(Float64(t * j) * Float64(-y5))); elseif (y2 <= -1.8e-71) tmp = Float64(y * Float64(x * Float64(c * Float64(-i)))); elseif (y2 <= -1.65e-174) tmp = Float64(y * Float64(y3 * Float64(y5 * Float64(-a)))); elseif (y2 <= 3.1e-281) tmp = Float64(c * Float64(x * Float64(y * Float64(-i)))); elseif (y2 <= 2.35e+165) tmp = Float64(Float64(y * k) * Float64(i * y5)); else tmp = Float64(a * Float64(t * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -1.6e+121) tmp = t * (a * (y2 * y5)); elseif (y2 <= -5.7e+43) tmp = y0 * (c * (x * y2)); elseif (y2 <= -0.0245) tmp = i * ((t * j) * -y5); elseif (y2 <= -1.8e-71) tmp = y * (x * (c * -i)); elseif (y2 <= -1.65e-174) tmp = y * (y3 * (y5 * -a)); elseif (y2 <= 3.1e-281) tmp = c * (x * (y * -i)); elseif (y2 <= 2.35e+165) tmp = (y * k) * (i * y5); else tmp = a * (t * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.6e+121], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.7e+43], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -0.0245], N[(i * N[(N[(t * j), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.8e-71], N[(y * N[(x * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.65e-174], N[(y * N[(y3 * N[(y5 * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.1e-281], N[(c * N[(x * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.35e+165], N[(N[(y * k), $MachinePrecision] * N[(i * y5), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.6 \cdot 10^{+121}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -5.7 \cdot 10^{+43}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -0.0245:\\
\;\;\;\;i \cdot \left(\left(t \cdot j\right) \cdot \left(-y5\right)\right)\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-71}:\\
\;\;\;\;y \cdot \left(x \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.65 \cdot 10^{-174}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(y5 \cdot \left(-a\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 3.1 \cdot 10^{-281}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 2.35 \cdot 10^{+165}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -1.6e121Initial program 18.2%
Simplified21.2%
Taylor expanded in y5 around inf 48.6%
mul-1-neg48.6%
mul-1-neg48.6%
mul-1-neg48.6%
sub-neg48.6%
sub-neg48.6%
Simplified48.6%
Taylor expanded in t around inf 43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y2 around inf 37.3%
*-commutative37.3%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
if -1.6e121 < y2 < -5.6999999999999999e43Initial program 56.2%
Simplified56.2%
Taylor expanded in c around inf 32.0%
Taylor expanded in x around inf 44.5%
*-commutative44.5%
+-commutative44.5%
mul-1-neg44.5%
*-commutative44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in y0 around inf 33.0%
*-commutative33.0%
*-commutative33.0%
associate-*l*45.4%
Simplified45.4%
if -5.6999999999999999e43 < y2 < -0.024500000000000001Initial program 36.2%
Simplified36.2%
Taylor expanded in y5 around inf 18.7%
mul-1-neg18.7%
mul-1-neg18.7%
mul-1-neg18.7%
sub-neg18.7%
sub-neg18.7%
Simplified18.7%
Taylor expanded in t around inf 28.9%
associate-*r*20.5%
*-commutative20.5%
Simplified20.5%
Taylor expanded in y2 around 0 37.3%
associate-*r*37.3%
neg-mul-137.3%
associate-*r*46.2%
Simplified46.2%
if -0.024500000000000001 < y2 < -1.8e-71Initial program 46.0%
Simplified53.7%
Taylor expanded in y around inf 54.5%
mul-1-neg54.5%
Simplified54.5%
Taylor expanded in x around inf 54.8%
Taylor expanded in a around 0 39.7%
neg-mul-139.7%
distribute-rgt-neg-in39.7%
Simplified39.7%
if -1.8e-71 < y2 < -1.65e-174Initial program 32.4%
Simplified36.4%
Taylor expanded in y around inf 36.4%
mul-1-neg36.4%
Simplified36.4%
Taylor expanded in a around inf 44.6%
associate-*r*29.6%
+-commutative29.6%
mul-1-neg29.6%
unsub-neg29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in x around 0 29.6%
mul-1-neg29.6%
*-commutative29.6%
distribute-rgt-neg-in29.6%
associate-*r*29.6%
*-commutative29.6%
associate-*l*33.1%
Simplified33.1%
if -1.65e-174 < y2 < 3.1000000000000002e-281Initial program 29.1%
Simplified29.1%
Taylor expanded in c around inf 45.5%
Taylor expanded in x around inf 38.1%
*-commutative38.1%
+-commutative38.1%
mul-1-neg38.1%
*-commutative38.1%
unsub-neg38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in y0 around 0 35.4%
neg-mul-135.4%
distribute-rgt-neg-in35.4%
Simplified35.4%
if 3.1000000000000002e-281 < y2 < 2.35000000000000008e165Initial program 26.3%
Simplified36.3%
Taylor expanded in y5 around inf 35.8%
mul-1-neg35.8%
mul-1-neg35.8%
mul-1-neg35.8%
sub-neg35.8%
sub-neg35.8%
Simplified35.8%
Taylor expanded in y around -inf 28.6%
associate-*r*28.6%
neg-mul-128.6%
*-commutative28.6%
*-commutative28.6%
Simplified28.6%
Taylor expanded in y3 around 0 27.5%
associate-*r*29.8%
*-commutative29.8%
*-commutative29.8%
Simplified29.8%
if 2.35000000000000008e165 < y2 Initial program 22.5%
Simplified30.0%
Taylor expanded in y5 around inf 37.9%
mul-1-neg37.9%
mul-1-neg37.9%
mul-1-neg37.9%
sub-neg37.9%
sub-neg37.9%
Simplified37.9%
Taylor expanded in t around inf 43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y2 around inf 45.6%
Final simplification37.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -5e+119)
(* t (* a (* y2 y5)))
(if (<= y2 -7.5e+42)
(* y0 (* c (* x y2)))
(if (<= y2 -1.6e-12)
(* a (* y (* y3 (- y5))))
(if (<= y2 -5.5e-71)
(* y (* x (* c (- i))))
(if (<= y2 -1.8e-174)
(* y (* y3 (* y5 (- a))))
(if (<= y2 3.4e-281)
(* c (* x (* y (- i))))
(if (<= y2 2.4e+159)
(* (* y k) (* i y5))
(* a (* t (* y2 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -5e+119) {
tmp = t * (a * (y2 * y5));
} else if (y2 <= -7.5e+42) {
tmp = y0 * (c * (x * y2));
} else if (y2 <= -1.6e-12) {
tmp = a * (y * (y3 * -y5));
} else if (y2 <= -5.5e-71) {
tmp = y * (x * (c * -i));
} else if (y2 <= -1.8e-174) {
tmp = y * (y3 * (y5 * -a));
} else if (y2 <= 3.4e-281) {
tmp = c * (x * (y * -i));
} else if (y2 <= 2.4e+159) {
tmp = (y * k) * (i * y5);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-5d+119)) then
tmp = t * (a * (y2 * y5))
else if (y2 <= (-7.5d+42)) then
tmp = y0 * (c * (x * y2))
else if (y2 <= (-1.6d-12)) then
tmp = a * (y * (y3 * -y5))
else if (y2 <= (-5.5d-71)) then
tmp = y * (x * (c * -i))
else if (y2 <= (-1.8d-174)) then
tmp = y * (y3 * (y5 * -a))
else if (y2 <= 3.4d-281) then
tmp = c * (x * (y * -i))
else if (y2 <= 2.4d+159) then
tmp = (y * k) * (i * y5)
else
tmp = a * (t * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -5e+119) {
tmp = t * (a * (y2 * y5));
} else if (y2 <= -7.5e+42) {
tmp = y0 * (c * (x * y2));
} else if (y2 <= -1.6e-12) {
tmp = a * (y * (y3 * -y5));
} else if (y2 <= -5.5e-71) {
tmp = y * (x * (c * -i));
} else if (y2 <= -1.8e-174) {
tmp = y * (y3 * (y5 * -a));
} else if (y2 <= 3.4e-281) {
tmp = c * (x * (y * -i));
} else if (y2 <= 2.4e+159) {
tmp = (y * k) * (i * y5);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -5e+119: tmp = t * (a * (y2 * y5)) elif y2 <= -7.5e+42: tmp = y0 * (c * (x * y2)) elif y2 <= -1.6e-12: tmp = a * (y * (y3 * -y5)) elif y2 <= -5.5e-71: tmp = y * (x * (c * -i)) elif y2 <= -1.8e-174: tmp = y * (y3 * (y5 * -a)) elif y2 <= 3.4e-281: tmp = c * (x * (y * -i)) elif y2 <= 2.4e+159: tmp = (y * k) * (i * y5) else: tmp = a * (t * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -5e+119) tmp = Float64(t * Float64(a * Float64(y2 * y5))); elseif (y2 <= -7.5e+42) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (y2 <= -1.6e-12) tmp = Float64(a * Float64(y * Float64(y3 * Float64(-y5)))); elseif (y2 <= -5.5e-71) tmp = Float64(y * Float64(x * Float64(c * Float64(-i)))); elseif (y2 <= -1.8e-174) tmp = Float64(y * Float64(y3 * Float64(y5 * Float64(-a)))); elseif (y2 <= 3.4e-281) tmp = Float64(c * Float64(x * Float64(y * Float64(-i)))); elseif (y2 <= 2.4e+159) tmp = Float64(Float64(y * k) * Float64(i * y5)); else tmp = Float64(a * Float64(t * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -5e+119) tmp = t * (a * (y2 * y5)); elseif (y2 <= -7.5e+42) tmp = y0 * (c * (x * y2)); elseif (y2 <= -1.6e-12) tmp = a * (y * (y3 * -y5)); elseif (y2 <= -5.5e-71) tmp = y * (x * (c * -i)); elseif (y2 <= -1.8e-174) tmp = y * (y3 * (y5 * -a)); elseif (y2 <= 3.4e-281) tmp = c * (x * (y * -i)); elseif (y2 <= 2.4e+159) tmp = (y * k) * (i * y5); else tmp = a * (t * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -5e+119], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -7.5e+42], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.6e-12], N[(a * N[(y * N[(y3 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.5e-71], N[(y * N[(x * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.8e-174], N[(y * N[(y3 * N[(y5 * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.4e-281], N[(c * N[(x * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.4e+159], N[(N[(y * k), $MachinePrecision] * N[(i * y5), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -5 \cdot 10^{+119}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -7.5 \cdot 10^{+42}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -1.6 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \left(y \cdot \left(y3 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -5.5 \cdot 10^{-71}:\\
\;\;\;\;y \cdot \left(x \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-174}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(y5 \cdot \left(-a\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 3.4 \cdot 10^{-281}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{+159}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -4.9999999999999999e119Initial program 18.2%
Simplified21.2%
Taylor expanded in y5 around inf 48.6%
mul-1-neg48.6%
mul-1-neg48.6%
mul-1-neg48.6%
sub-neg48.6%
sub-neg48.6%
Simplified48.6%
Taylor expanded in t around inf 43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y2 around inf 37.3%
*-commutative37.3%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
if -4.9999999999999999e119 < y2 < -7.50000000000000041e42Initial program 56.2%
Simplified56.2%
Taylor expanded in c around inf 32.0%
Taylor expanded in x around inf 44.5%
*-commutative44.5%
+-commutative44.5%
mul-1-neg44.5%
*-commutative44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in y0 around inf 33.0%
*-commutative33.0%
*-commutative33.0%
associate-*l*45.4%
Simplified45.4%
if -7.50000000000000041e42 < y2 < -1.6e-12Initial program 46.6%
Simplified46.6%
Taylor expanded in y5 around inf 27.2%
mul-1-neg27.2%
mul-1-neg27.2%
mul-1-neg27.2%
sub-neg27.2%
sub-neg27.2%
Simplified27.2%
Taylor expanded in y around -inf 14.9%
associate-*r*14.9%
neg-mul-114.9%
*-commutative14.9%
*-commutative14.9%
Simplified14.9%
Taylor expanded in y3 around -inf 35.7%
if -1.6e-12 < y2 < -5.4999999999999997e-71Initial program 33.2%
Simplified44.3%
Taylor expanded in y around inf 56.1%
mul-1-neg56.1%
Simplified56.1%
Taylor expanded in x around inf 67.7%
Taylor expanded in a around 0 56.7%
neg-mul-156.7%
distribute-rgt-neg-in56.7%
Simplified56.7%
if -5.4999999999999997e-71 < y2 < -1.79999999999999999e-174Initial program 32.4%
Simplified36.4%
Taylor expanded in y around inf 36.4%
mul-1-neg36.4%
Simplified36.4%
Taylor expanded in a around inf 44.6%
associate-*r*29.6%
+-commutative29.6%
mul-1-neg29.6%
unsub-neg29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in x around 0 29.6%
mul-1-neg29.6%
*-commutative29.6%
distribute-rgt-neg-in29.6%
associate-*r*29.6%
*-commutative29.6%
associate-*l*33.1%
Simplified33.1%
if -1.79999999999999999e-174 < y2 < 3.4e-281Initial program 29.1%
Simplified29.1%
Taylor expanded in c around inf 45.5%
Taylor expanded in x around inf 38.1%
*-commutative38.1%
+-commutative38.1%
mul-1-neg38.1%
*-commutative38.1%
unsub-neg38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in y0 around 0 35.4%
neg-mul-135.4%
distribute-rgt-neg-in35.4%
Simplified35.4%
if 3.4e-281 < y2 < 2.4e159Initial program 26.3%
Simplified36.3%
Taylor expanded in y5 around inf 35.8%
mul-1-neg35.8%
mul-1-neg35.8%
mul-1-neg35.8%
sub-neg35.8%
sub-neg35.8%
Simplified35.8%
Taylor expanded in y around -inf 28.6%
associate-*r*28.6%
neg-mul-128.6%
*-commutative28.6%
*-commutative28.6%
Simplified28.6%
Taylor expanded in y3 around 0 27.5%
associate-*r*29.8%
*-commutative29.8%
*-commutative29.8%
Simplified29.8%
if 2.4e159 < y2 Initial program 22.5%
Simplified30.0%
Taylor expanded in y5 around inf 37.9%
mul-1-neg37.9%
mul-1-neg37.9%
mul-1-neg37.9%
sub-neg37.9%
sub-neg37.9%
Simplified37.9%
Taylor expanded in t around inf 43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y2 around inf 45.6%
Final simplification37.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.9e+122)
(* t (* a (* y2 y5)))
(if (<= y2 -1.15e+44)
(* y0 (* c (* x y2)))
(if (<= y2 -5.2e-14)
(* a (* y (* y3 (- y5))))
(if (<= y2 -1.9e-71)
(* y (* x (* c (- i))))
(if (<= y2 -1.86e-174)
(* y (* y3 (* y5 (- a))))
(if (<= y2 8e-199)
(* c (- (* y (* x i))))
(if (<= y2 1.85e+162)
(* (* y k) (* i y5))
(* a (* t (* y2 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.9e+122) {
tmp = t * (a * (y2 * y5));
} else if (y2 <= -1.15e+44) {
tmp = y0 * (c * (x * y2));
} else if (y2 <= -5.2e-14) {
tmp = a * (y * (y3 * -y5));
} else if (y2 <= -1.9e-71) {
tmp = y * (x * (c * -i));
} else if (y2 <= -1.86e-174) {
tmp = y * (y3 * (y5 * -a));
} else if (y2 <= 8e-199) {
tmp = c * -(y * (x * i));
} else if (y2 <= 1.85e+162) {
tmp = (y * k) * (i * y5);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.9d+122)) then
tmp = t * (a * (y2 * y5))
else if (y2 <= (-1.15d+44)) then
tmp = y0 * (c * (x * y2))
else if (y2 <= (-5.2d-14)) then
tmp = a * (y * (y3 * -y5))
else if (y2 <= (-1.9d-71)) then
tmp = y * (x * (c * -i))
else if (y2 <= (-1.86d-174)) then
tmp = y * (y3 * (y5 * -a))
else if (y2 <= 8d-199) then
tmp = c * -(y * (x * i))
else if (y2 <= 1.85d+162) then
tmp = (y * k) * (i * y5)
else
tmp = a * (t * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.9e+122) {
tmp = t * (a * (y2 * y5));
} else if (y2 <= -1.15e+44) {
tmp = y0 * (c * (x * y2));
} else if (y2 <= -5.2e-14) {
tmp = a * (y * (y3 * -y5));
} else if (y2 <= -1.9e-71) {
tmp = y * (x * (c * -i));
} else if (y2 <= -1.86e-174) {
tmp = y * (y3 * (y5 * -a));
} else if (y2 <= 8e-199) {
tmp = c * -(y * (x * i));
} else if (y2 <= 1.85e+162) {
tmp = (y * k) * (i * y5);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.9e+122: tmp = t * (a * (y2 * y5)) elif y2 <= -1.15e+44: tmp = y0 * (c * (x * y2)) elif y2 <= -5.2e-14: tmp = a * (y * (y3 * -y5)) elif y2 <= -1.9e-71: tmp = y * (x * (c * -i)) elif y2 <= -1.86e-174: tmp = y * (y3 * (y5 * -a)) elif y2 <= 8e-199: tmp = c * -(y * (x * i)) elif y2 <= 1.85e+162: tmp = (y * k) * (i * y5) else: tmp = a * (t * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.9e+122) tmp = Float64(t * Float64(a * Float64(y2 * y5))); elseif (y2 <= -1.15e+44) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (y2 <= -5.2e-14) tmp = Float64(a * Float64(y * Float64(y3 * Float64(-y5)))); elseif (y2 <= -1.9e-71) tmp = Float64(y * Float64(x * Float64(c * Float64(-i)))); elseif (y2 <= -1.86e-174) tmp = Float64(y * Float64(y3 * Float64(y5 * Float64(-a)))); elseif (y2 <= 8e-199) tmp = Float64(c * Float64(-Float64(y * Float64(x * i)))); elseif (y2 <= 1.85e+162) tmp = Float64(Float64(y * k) * Float64(i * y5)); else tmp = Float64(a * Float64(t * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.9e+122) tmp = t * (a * (y2 * y5)); elseif (y2 <= -1.15e+44) tmp = y0 * (c * (x * y2)); elseif (y2 <= -5.2e-14) tmp = a * (y * (y3 * -y5)); elseif (y2 <= -1.9e-71) tmp = y * (x * (c * -i)); elseif (y2 <= -1.86e-174) tmp = y * (y3 * (y5 * -a)); elseif (y2 <= 8e-199) tmp = c * -(y * (x * i)); elseif (y2 <= 1.85e+162) tmp = (y * k) * (i * y5); else tmp = a * (t * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.9e+122], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.15e+44], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.2e-14], N[(a * N[(y * N[(y3 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.9e-71], N[(y * N[(x * N[(c * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.86e-174], N[(y * N[(y3 * N[(y5 * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8e-199], N[(c * (-N[(y * N[(x * i), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], If[LessEqual[y2, 1.85e+162], N[(N[(y * k), $MachinePrecision] * N[(i * y5), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.9 \cdot 10^{+122}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{+44}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -5.2 \cdot 10^{-14}:\\
\;\;\;\;a \cdot \left(y \cdot \left(y3 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.9 \cdot 10^{-71}:\\
\;\;\;\;y \cdot \left(x \cdot \left(c \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.86 \cdot 10^{-174}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(y5 \cdot \left(-a\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{-199}:\\
\;\;\;\;c \cdot \left(-y \cdot \left(x \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 1.85 \cdot 10^{+162}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -2.9000000000000001e122Initial program 18.2%
Simplified21.2%
Taylor expanded in y5 around inf 48.6%
mul-1-neg48.6%
mul-1-neg48.6%
mul-1-neg48.6%
sub-neg48.6%
sub-neg48.6%
Simplified48.6%
Taylor expanded in t around inf 43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y2 around inf 37.3%
*-commutative37.3%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
if -2.9000000000000001e122 < y2 < -1.15000000000000002e44Initial program 56.2%
Simplified56.2%
Taylor expanded in c around inf 32.0%
Taylor expanded in x around inf 44.5%
*-commutative44.5%
+-commutative44.5%
mul-1-neg44.5%
*-commutative44.5%
unsub-neg44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in y0 around inf 33.0%
*-commutative33.0%
*-commutative33.0%
associate-*l*45.4%
Simplified45.4%
if -1.15000000000000002e44 < y2 < -5.19999999999999993e-14Initial program 46.6%
Simplified46.6%
Taylor expanded in y5 around inf 27.2%
mul-1-neg27.2%
mul-1-neg27.2%
mul-1-neg27.2%
sub-neg27.2%
sub-neg27.2%
Simplified27.2%
Taylor expanded in y around -inf 14.9%
associate-*r*14.9%
neg-mul-114.9%
*-commutative14.9%
*-commutative14.9%
Simplified14.9%
Taylor expanded in y3 around -inf 35.7%
if -5.19999999999999993e-14 < y2 < -1.89999999999999996e-71Initial program 33.2%
Simplified44.3%
Taylor expanded in y around inf 56.1%
mul-1-neg56.1%
Simplified56.1%
Taylor expanded in x around inf 67.7%
Taylor expanded in a around 0 56.7%
neg-mul-156.7%
distribute-rgt-neg-in56.7%
Simplified56.7%
if -1.89999999999999996e-71 < y2 < -1.86e-174Initial program 32.4%
Simplified36.4%
Taylor expanded in y around inf 36.4%
mul-1-neg36.4%
Simplified36.4%
Taylor expanded in a around inf 44.6%
associate-*r*29.6%
+-commutative29.6%
mul-1-neg29.6%
unsub-neg29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in x around 0 29.6%
mul-1-neg29.6%
*-commutative29.6%
distribute-rgt-neg-in29.6%
associate-*r*29.6%
*-commutative29.6%
associate-*l*33.1%
Simplified33.1%
if -1.86e-174 < y2 < 7.99999999999999986e-199Initial program 30.8%
Simplified30.8%
Taylor expanded in c around inf 44.5%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
+-commutative30.2%
mul-1-neg30.2%
*-commutative30.2%
unsub-neg30.2%
*-commutative30.2%
Simplified30.2%
Taylor expanded in y0 around 0 30.0%
if 7.99999999999999986e-199 < y2 < 1.85000000000000004e162Initial program 23.7%
Simplified37.3%
Taylor expanded in y5 around inf 38.2%
mul-1-neg38.2%
mul-1-neg38.2%
mul-1-neg38.2%
sub-neg38.2%
sub-neg38.2%
Simplified38.2%
Taylor expanded in y around -inf 31.6%
associate-*r*31.6%
neg-mul-131.6%
*-commutative31.6%
*-commutative31.6%
Simplified31.6%
Taylor expanded in y3 around 0 30.2%
associate-*r*33.3%
*-commutative33.3%
*-commutative33.3%
Simplified33.3%
if 1.85000000000000004e162 < y2 Initial program 22.5%
Simplified30.0%
Taylor expanded in y5 around inf 37.9%
mul-1-neg37.9%
mul-1-neg37.9%
mul-1-neg37.9%
sub-neg37.9%
sub-neg37.9%
Simplified37.9%
Taylor expanded in t around inf 43.2%
associate-*r*43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y2 around inf 45.6%
Final simplification37.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.6e+242)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= y2 -1.9e+156)
(* (* a y2) (* t y5))
(if (<= y2 -1.48e-5)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -1.7e-209)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y2 2.7e+49)
(* c (* x (- (* y0 y2) (* y i))))
(* c (* t (- (* z i) (* y2 y4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.6e+242) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= -1.9e+156) {
tmp = (a * y2) * (t * y5);
} else if (y2 <= -1.48e-5) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -1.7e-209) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= 2.7e+49) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else {
tmp = c * (t * ((z * i) - (y2 * y4)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.6d+242)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (y2 <= (-1.9d+156)) then
tmp = (a * y2) * (t * y5)
else if (y2 <= (-1.48d-5)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-1.7d-209)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y2 <= 2.7d+49) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else
tmp = c * (t * ((z * i) - (y2 * y4)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.6e+242) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= -1.9e+156) {
tmp = (a * y2) * (t * y5);
} else if (y2 <= -1.48e-5) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -1.7e-209) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y2 <= 2.7e+49) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else {
tmp = c * (t * ((z * i) - (y2 * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.6e+242: tmp = c * (y4 * ((y * y3) - (t * y2))) elif y2 <= -1.9e+156: tmp = (a * y2) * (t * y5) elif y2 <= -1.48e-5: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -1.7e-209: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y2 <= 2.7e+49: tmp = c * (x * ((y0 * y2) - (y * i))) else: tmp = c * (t * ((z * i) - (y2 * y4))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.6e+242) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (y2 <= -1.9e+156) tmp = Float64(Float64(a * y2) * Float64(t * y5)); elseif (y2 <= -1.48e-5) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -1.7e-209) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y2 <= 2.7e+49) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); else tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.6e+242) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (y2 <= -1.9e+156) tmp = (a * y2) * (t * y5); elseif (y2 <= -1.48e-5) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -1.7e-209) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y2 <= 2.7e+49) tmp = c * (x * ((y0 * y2) - (y * i))); else tmp = c * (t * ((z * i) - (y2 * y4))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.6e+242], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.9e+156], N[(N[(a * y2), $MachinePrecision] * N[(t * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.48e-5], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.7e-209], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.7e+49], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.6 \cdot 10^{+242}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -1.9 \cdot 10^{+156}:\\
\;\;\;\;\left(a \cdot y2\right) \cdot \left(t \cdot y5\right)\\
\mathbf{elif}\;y2 \leq -1.48 \cdot 10^{-5}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.7 \cdot 10^{-209}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 2.7 \cdot 10^{+49}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -2.5999999999999998e242Initial program 14.3%
Simplified14.3%
Taylor expanded in c around inf 43.2%
Taylor expanded in y4 around inf 71.6%
if -2.5999999999999998e242 < y2 < -1.90000000000000012e156Initial program 15.4%
Simplified23.1%
Taylor expanded in y5 around inf 46.2%
mul-1-neg46.2%
mul-1-neg46.2%
mul-1-neg46.2%
sub-neg46.2%
sub-neg46.2%
Simplified46.2%
Taylor expanded in t around inf 62.6%
associate-*r*62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in y2 around inf 55.0%
*-commutative55.0%
Simplified55.0%
if -1.90000000000000012e156 < y2 < -1.4800000000000001e-5Initial program 45.6%
Simplified45.6%
Taylor expanded in c around inf 29.4%
Taylor expanded in y2 around inf 32.6%
if -1.4800000000000001e-5 < y2 < -1.69999999999999994e-209Initial program 35.2%
Simplified35.2%
Taylor expanded in c around inf 45.5%
Taylor expanded in y0 around inf 41.3%
if -1.69999999999999994e-209 < y2 < 2.7000000000000001e49Initial program 30.7%
Simplified30.7%
Taylor expanded in c around inf 47.0%
Taylor expanded in x around inf 33.8%
*-commutative33.8%
+-commutative33.8%
mul-1-neg33.8%
*-commutative33.8%
unsub-neg33.8%
*-commutative33.8%
Simplified33.8%
if 2.7000000000000001e49 < y2 Initial program 18.6%
Simplified18.6%
Taylor expanded in c around inf 32.6%
Taylor expanded in t around inf 44.8%
Final simplification40.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -1.6e+19)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= x -1.75e-260)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= x 5.5e-14)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= x 2.15e+201)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= x 4.2e+267)
(* x (* j (- (* i y1) (* b y0))))
(* (* y a) (* 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 (x <= -1.6e+19) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (x <= -1.75e-260) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 5.5e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 2.15e+201) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (x <= 4.2e+267) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else {
tmp = (y * a) * (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 (x <= (-1.6d+19)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (x <= (-1.75d-260)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (x <= 5.5d-14) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (x <= 2.15d+201) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (x <= 4.2d+267) then
tmp = x * (j * ((i * y1) - (b * y0)))
else
tmp = (y * a) * (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 (x <= -1.6e+19) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (x <= -1.75e-260) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 5.5e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (x <= 2.15e+201) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (x <= 4.2e+267) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else {
tmp = (y * a) * (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 x <= -1.6e+19: tmp = c * (x * ((y0 * y2) - (y * i))) elif x <= -1.75e-260: tmp = c * (y4 * ((y * y3) - (t * y2))) elif x <= 5.5e-14: tmp = t * (y5 * ((a * y2) - (i * j))) elif x <= 2.15e+201: tmp = c * (y0 * ((x * y2) - (z * y3))) elif x <= 4.2e+267: tmp = x * (j * ((i * y1) - (b * y0))) else: tmp = (y * a) * (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 (x <= -1.6e+19) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (x <= -1.75e-260) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (x <= 5.5e-14) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (x <= 2.15e+201) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (x <= 4.2e+267) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(Float64(y * a) * 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 (x <= -1.6e+19) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (x <= -1.75e-260) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (x <= 5.5e-14) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (x <= 2.15e+201) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (x <= 4.2e+267) tmp = x * (j * ((i * y1) - (b * y0))); else tmp = (y * a) * (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[LessEqual[x, -1.6e+19], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.75e-260], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e-14], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.15e+201], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+267], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * a), $MachinePrecision] * N[(x * b), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{+19}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;x \leq -1.75 \cdot 10^{-260}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-14}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{+201}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+267}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b\right)\\
\end{array}
\end{array}
if x < -1.6e19Initial program 21.2%
Simplified21.2%
Taylor expanded in c around inf 35.4%
Taylor expanded in x around inf 39.0%
*-commutative39.0%
+-commutative39.0%
mul-1-neg39.0%
*-commutative39.0%
unsub-neg39.0%
*-commutative39.0%
Simplified39.0%
if -1.6e19 < x < -1.75e-260Initial program 43.6%
Simplified43.6%
Taylor expanded in c around inf 44.5%
Taylor expanded in y4 around inf 42.9%
if -1.75e-260 < x < 5.49999999999999991e-14Initial program 25.8%
Simplified30.5%
Taylor expanded in y5 around inf 37.2%
mul-1-neg37.2%
mul-1-neg37.2%
mul-1-neg37.2%
sub-neg37.2%
sub-neg37.2%
Simplified37.2%
Taylor expanded in t around inf 39.1%
if 5.49999999999999991e-14 < x < 2.14999999999999995e201Initial program 29.1%
Simplified29.1%
Taylor expanded in c around inf 33.6%
Taylor expanded in y0 around inf 44.6%
if 2.14999999999999995e201 < x < 4.20000000000000007e267Initial program 20.0%
Simplified20.0%
Taylor expanded in x around inf 80.0%
Taylor expanded in j around inf 67.4%
*-commutative67.4%
*-commutative67.4%
associate-*l*67.5%
*-commutative67.5%
Simplified67.5%
if 4.20000000000000007e267 < x Initial program 33.3%
Simplified33.3%
Taylor expanded in y around inf 33.3%
mul-1-neg33.3%
Simplified33.3%
Taylor expanded in a around inf 66.8%
associate-*r*66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in x around inf 66.8%
Final simplification43.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y4 (- (* y y3) (* t y2)))))
(t_2 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= y0 -5.1e-9)
t_2
(if (<= y0 -1.6e-201)
t_1
(if (<= y0 3.05e-245)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y0 8e-160) 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 * (y4 * ((y * y3) - (t * y2)));
double t_2 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y0 <= -5.1e-9) {
tmp = t_2;
} else if (y0 <= -1.6e-201) {
tmp = t_1;
} else if (y0 <= 3.05e-245) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y0 <= 8e-160) {
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 * (y4 * ((y * y3) - (t * y2)))
t_2 = c * (y0 * ((x * y2) - (z * y3)))
if (y0 <= (-5.1d-9)) then
tmp = t_2
else if (y0 <= (-1.6d-201)) then
tmp = t_1
else if (y0 <= 3.05d-245) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y0 <= 8d-160) 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 * (y4 * ((y * y3) - (t * y2)));
double t_2 = c * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y0 <= -5.1e-9) {
tmp = t_2;
} else if (y0 <= -1.6e-201) {
tmp = t_1;
} else if (y0 <= 3.05e-245) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y0 <= 8e-160) {
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 * (y4 * ((y * y3) - (t * y2))) t_2 = c * (y0 * ((x * y2) - (z * y3))) tmp = 0 if y0 <= -5.1e-9: tmp = t_2 elif y0 <= -1.6e-201: tmp = t_1 elif y0 <= 3.05e-245: tmp = c * (x * ((y0 * y2) - (y * i))) elif y0 <= 8e-160: 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(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) t_2 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (y0 <= -5.1e-9) tmp = t_2; elseif (y0 <= -1.6e-201) tmp = t_1; elseif (y0 <= 3.05e-245) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y0 <= 8e-160) 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 * (y4 * ((y * y3) - (t * y2))); t_2 = c * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (y0 <= -5.1e-9) tmp = t_2; elseif (y0 <= -1.6e-201) tmp = t_1; elseif (y0 <= 3.05e-245) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y0 <= 8e-160) 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[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -5.1e-9], t$95$2, If[LessEqual[y0, -1.6e-201], t$95$1, If[LessEqual[y0, 3.05e-245], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 8e-160], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_2 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;y0 \leq -5.1 \cdot 10^{-9}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y0 \leq -1.6 \cdot 10^{-201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq 3.05 \cdot 10^{-245}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y0 \leq 8 \cdot 10^{-160}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y0 < -5.10000000000000017e-9 or 7.9999999999999999e-160 < y0 Initial program 32.6%
Simplified32.6%
Taylor expanded in c around inf 34.6%
Taylor expanded in y0 around inf 37.5%
if -5.10000000000000017e-9 < y0 < -1.6000000000000001e-201 or 3.05000000000000011e-245 < y0 < 7.9999999999999999e-160Initial program 24.1%
Simplified24.1%
Taylor expanded in c around inf 51.9%
Taylor expanded in y4 around inf 46.2%
if -1.6000000000000001e-201 < y0 < 3.05000000000000011e-245Initial program 19.7%
Simplified19.7%
Taylor expanded in c around inf 38.6%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
+-commutative30.2%
mul-1-neg30.2%
*-commutative30.2%
unsub-neg30.2%
*-commutative30.2%
Simplified30.2%
Final simplification38.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3))))))
(if (<= y0 -1.6e-9)
t_1
(if (<= y0 -2.3e-201)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= y0 2.6e-237)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= y0 3.3e-153) (* c (* t (- (* z i) (* y2 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 * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y0 <= -1.6e-9) {
tmp = t_1;
} else if (y0 <= -2.3e-201) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y0 <= 2.6e-237) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y0 <= 3.3e-153) {
tmp = c * (t * ((z * i) - (y2 * 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 * (y0 * ((x * y2) - (z * y3)))
if (y0 <= (-1.6d-9)) then
tmp = t_1
else if (y0 <= (-2.3d-201)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (y0 <= 2.6d-237) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (y0 <= 3.3d-153) then
tmp = c * (t * ((z * i) - (y2 * 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 * (y0 * ((x * y2) - (z * y3)));
double tmp;
if (y0 <= -1.6e-9) {
tmp = t_1;
} else if (y0 <= -2.3e-201) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y0 <= 2.6e-237) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (y0 <= 3.3e-153) {
tmp = c * (t * ((z * i) - (y2 * 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 * (y0 * ((x * y2) - (z * y3))) tmp = 0 if y0 <= -1.6e-9: tmp = t_1 elif y0 <= -2.3e-201: tmp = c * (y4 * ((y * y3) - (t * y2))) elif y0 <= 2.6e-237: tmp = c * (x * ((y0 * y2) - (y * i))) elif y0 <= 3.3e-153: tmp = c * (t * ((z * i) - (y2 * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) tmp = 0.0 if (y0 <= -1.6e-9) tmp = t_1; elseif (y0 <= -2.3e-201) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (y0 <= 2.6e-237) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (y0 <= 3.3e-153) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * 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 * (y0 * ((x * y2) - (z * y3))); tmp = 0.0; if (y0 <= -1.6e-9) tmp = t_1; elseif (y0 <= -2.3e-201) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (y0 <= 2.6e-237) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (y0 <= 3.3e-153) tmp = c * (t * ((z * i) - (y2 * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1.6e-9], t$95$1, If[LessEqual[y0, -2.3e-201], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.6e-237], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 3.3e-153], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{if}\;y0 \leq -1.6 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq -2.3 \cdot 10^{-201}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y0 \leq 2.6 \cdot 10^{-237}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;y0 \leq 3.3 \cdot 10^{-153}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y0 < -1.60000000000000006e-9 or 3.29999999999999988e-153 < y0 Initial program 32.6%
Simplified32.6%
Taylor expanded in c around inf 34.6%
Taylor expanded in y0 around inf 37.5%
if -1.60000000000000006e-9 < y0 < -2.29999999999999986e-201Initial program 19.5%
Simplified19.5%
Taylor expanded in c around inf 41.8%
Taylor expanded in y4 around inf 42.7%
if -2.29999999999999986e-201 < y0 < 2.6000000000000002e-237Initial program 17.9%
Simplified17.9%
Taylor expanded in c around inf 41.1%
Taylor expanded in x around inf 33.4%
*-commutative33.4%
+-commutative33.4%
mul-1-neg33.4%
*-commutative33.4%
unsub-neg33.4%
*-commutative33.4%
Simplified33.4%
if 2.6000000000000002e-237 < y0 < 3.29999999999999988e-153Initial program 38.8%
Simplified38.8%
Taylor expanded in c around inf 72.3%
Taylor expanded in t around inf 50.9%
Final simplification38.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (* a (* y2 y5)))))
(if (<= b -1.8e+88)
(* y (* x (* a b)))
(if (<= b -1.7e-120)
t_1
(if (<= b 5.3e-102)
(* k (* y (* i y5)))
(if (<= b 32500000000000.0)
t_1
(if (<= b 1.15e+104) (* k (* i (* y 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 t_1 = t * (a * (y2 * y5));
double tmp;
if (b <= -1.8e+88) {
tmp = y * (x * (a * b));
} else if (b <= -1.7e-120) {
tmp = t_1;
} else if (b <= 5.3e-102) {
tmp = k * (y * (i * y5));
} else if (b <= 32500000000000.0) {
tmp = t_1;
} else if (b <= 1.15e+104) {
tmp = k * (i * (y * 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) :: t_1
real(8) :: tmp
t_1 = t * (a * (y2 * y5))
if (b <= (-1.8d+88)) then
tmp = y * (x * (a * b))
else if (b <= (-1.7d-120)) then
tmp = t_1
else if (b <= 5.3d-102) then
tmp = k * (y * (i * y5))
else if (b <= 32500000000000.0d0) then
tmp = t_1
else if (b <= 1.15d+104) then
tmp = k * (i * (y * 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 t_1 = t * (a * (y2 * y5));
double tmp;
if (b <= -1.8e+88) {
tmp = y * (x * (a * b));
} else if (b <= -1.7e-120) {
tmp = t_1;
} else if (b <= 5.3e-102) {
tmp = k * (y * (i * y5));
} else if (b <= 32500000000000.0) {
tmp = t_1;
} else if (b <= 1.15e+104) {
tmp = k * (i * (y * 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): t_1 = t * (a * (y2 * y5)) tmp = 0 if b <= -1.8e+88: tmp = y * (x * (a * b)) elif b <= -1.7e-120: tmp = t_1 elif b <= 5.3e-102: tmp = k * (y * (i * y5)) elif b <= 32500000000000.0: tmp = t_1 elif b <= 1.15e+104: tmp = k * (i * (y * 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) t_1 = Float64(t * Float64(a * Float64(y2 * y5))) tmp = 0.0 if (b <= -1.8e+88) tmp = Float64(y * Float64(x * Float64(a * b))); elseif (b <= -1.7e-120) tmp = t_1; elseif (b <= 5.3e-102) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 32500000000000.0) tmp = t_1; elseif (b <= 1.15e+104) tmp = Float64(k * Float64(i * Float64(y * y5))); else tmp = Float64(a * Float64(x * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * (a * (y2 * y5)); tmp = 0.0; if (b <= -1.8e+88) tmp = y * (x * (a * b)); elseif (b <= -1.7e-120) tmp = t_1; elseif (b <= 5.3e-102) tmp = k * (y * (i * y5)); elseif (b <= 32500000000000.0) tmp = t_1; elseif (b <= 1.15e+104) tmp = k * (i * (y * 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_] := Block[{t$95$1 = N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+88], N[(y * N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-120], t$95$1, If[LessEqual[b, 5.3e-102], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 32500000000000.0], t$95$1, If[LessEqual[b, 1.15e+104], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+88}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{-102}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 32500000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+104}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if b < -1.8000000000000001e88Initial program 20.7%
Simplified25.9%
Taylor expanded in y around inf 31.3%
mul-1-neg31.3%
Simplified31.3%
Taylor expanded in x around inf 49.2%
Taylor expanded in a around inf 36.8%
associate-*r*41.8%
*-commutative41.8%
Simplified41.8%
if -1.8000000000000001e88 < b < -1.70000000000000005e-120 or 5.3000000000000003e-102 < b < 3.25e13Initial program 39.8%
Simplified42.4%
Taylor expanded in y5 around inf 35.4%
mul-1-neg35.4%
mul-1-neg35.4%
mul-1-neg35.4%
sub-neg35.4%
sub-neg35.4%
Simplified35.4%
Taylor expanded in t around inf 34.2%
associate-*r*31.7%
*-commutative31.7%
Simplified31.7%
Taylor expanded in y2 around inf 29.4%
*-commutative29.4%
associate-*r*33.0%
*-commutative33.0%
Simplified33.0%
if -1.70000000000000005e-120 < b < 5.3000000000000003e-102Initial program 26.2%
Simplified37.0%
Taylor expanded in y5 around inf 33.8%
mul-1-neg33.8%
mul-1-neg33.8%
mul-1-neg33.8%
sub-neg33.8%
sub-neg33.8%
Simplified33.8%
Taylor expanded in y around -inf 24.2%
associate-*r*24.2%
neg-mul-124.2%
*-commutative24.2%
*-commutative24.2%
Simplified24.2%
Taylor expanded in y3 around 0 21.9%
if 3.25e13 < b < 1.14999999999999992e104Initial program 18.2%
Simplified18.2%
Taylor expanded in y5 around inf 27.4%
mul-1-neg27.4%
mul-1-neg27.4%
mul-1-neg27.4%
sub-neg27.4%
sub-neg27.4%
Simplified27.4%
Taylor expanded in y around -inf 29.4%
associate-*r*29.4%
neg-mul-129.4%
*-commutative29.4%
*-commutative29.4%
Simplified29.4%
Taylor expanded in i around inf 28.4%
if 1.14999999999999992e104 < b Initial program 25.0%
Simplified29.5%
Taylor expanded in y around inf 32.2%
mul-1-neg32.2%
Simplified32.2%
Taylor expanded in x around inf 37.0%
Taylor expanded in a around inf 34.9%
associate-*r*32.8%
*-commutative32.8%
associate-*r*37.2%
associate-*r*37.1%
*-commutative37.1%
Simplified37.1%
Final simplification31.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (- (* y0 y2) (* y i))))))
(if (<= x -1.82e+49)
t_1
(if (<= x 3.7e-289)
(* k (* i (* y y5)))
(if (<= x 1.15e-100) (* (* a y2) (* t 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 * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -1.82e+49) {
tmp = t_1;
} else if (x <= 3.7e-289) {
tmp = k * (i * (y * y5));
} else if (x <= 1.15e-100) {
tmp = (a * y2) * (t * 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 * ((y0 * y2) - (y * i)))
if (x <= (-1.82d+49)) then
tmp = t_1
else if (x <= 3.7d-289) then
tmp = k * (i * (y * y5))
else if (x <= 1.15d-100) then
tmp = (a * y2) * (t * 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 * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -1.82e+49) {
tmp = t_1;
} else if (x <= 3.7e-289) {
tmp = k * (i * (y * y5));
} else if (x <= 1.15e-100) {
tmp = (a * y2) * (t * 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 * ((y0 * y2) - (y * i))) tmp = 0 if x <= -1.82e+49: tmp = t_1 elif x <= 3.7e-289: tmp = k * (i * (y * y5)) elif x <= 1.15e-100: tmp = (a * y2) * (t * 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(x * Float64(Float64(y0 * y2) - Float64(y * i)))) tmp = 0.0 if (x <= -1.82e+49) tmp = t_1; elseif (x <= 3.7e-289) tmp = Float64(k * Float64(i * Float64(y * y5))); elseif (x <= 1.15e-100) tmp = Float64(Float64(a * y2) * Float64(t * 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 * ((y0 * y2) - (y * i))); tmp = 0.0; if (x <= -1.82e+49) tmp = t_1; elseif (x <= 3.7e-289) tmp = k * (i * (y * y5)); elseif (x <= 1.15e-100) tmp = (a * y2) * (t * 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[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.82e+49], t$95$1, If[LessEqual[x, 3.7e-289], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e-100], N[(N[(a * y2), $MachinePrecision] * N[(t * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{if}\;x \leq -1.82 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-289}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-100}:\\
\;\;\;\;\left(a \cdot y2\right) \cdot \left(t \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.82000000000000013e49 or 1.14999999999999997e-100 < x Initial program 23.3%
Simplified23.3%
Taylor expanded in c around inf 37.6%
Taylor expanded in x around inf 41.4%
*-commutative41.4%
+-commutative41.4%
mul-1-neg41.4%
*-commutative41.4%
unsub-neg41.4%
*-commutative41.4%
Simplified41.4%
if -1.82000000000000013e49 < x < 3.69999999999999989e-289Initial program 36.6%
Simplified40.8%
Taylor expanded in y5 around inf 31.5%
mul-1-neg31.5%
mul-1-neg31.5%
mul-1-neg31.5%
sub-neg31.5%
sub-neg31.5%
Simplified31.5%
Taylor expanded in y around -inf 21.4%
associate-*r*21.4%
neg-mul-121.4%
*-commutative21.4%
*-commutative21.4%
Simplified21.4%
Taylor expanded in i around inf 23.9%
if 3.69999999999999989e-289 < x < 1.14999999999999997e-100Initial program 36.3%
Simplified41.5%
Taylor expanded in y5 around inf 46.7%
mul-1-neg46.7%
mul-1-neg46.7%
mul-1-neg46.7%
sub-neg46.7%
sub-neg46.7%
Simplified46.7%
Taylor expanded in t around inf 37.1%
associate-*r*37.2%
*-commutative37.2%
Simplified37.2%
Taylor expanded in y2 around inf 26.8%
*-commutative26.8%
Simplified26.8%
Final simplification34.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (- (* y0 y2) (* y i))))))
(if (<= x -1.2e+18)
t_1
(if (<= x -6e-264)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= x 4.5e+16) (* t (* y5 (- (* a y2) (* i 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 * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -1.2e+18) {
tmp = t_1;
} else if (x <= -6e-264) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 4.5e+16) {
tmp = t * (y5 * ((a * y2) - (i * 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 * (x * ((y0 * y2) - (y * i)))
if (x <= (-1.2d+18)) then
tmp = t_1
else if (x <= (-6d-264)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (x <= 4.5d+16) then
tmp = t * (y5 * ((a * y2) - (i * 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 * (x * ((y0 * y2) - (y * i)));
double tmp;
if (x <= -1.2e+18) {
tmp = t_1;
} else if (x <= -6e-264) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (x <= 4.5e+16) {
tmp = t * (y5 * ((a * y2) - (i * 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 * (x * ((y0 * y2) - (y * i))) tmp = 0 if x <= -1.2e+18: tmp = t_1 elif x <= -6e-264: tmp = c * (y4 * ((y * y3) - (t * y2))) elif x <= 4.5e+16: tmp = t * (y5 * ((a * y2) - (i * 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(x * Float64(Float64(y0 * y2) - Float64(y * i)))) tmp = 0.0 if (x <= -1.2e+18) tmp = t_1; elseif (x <= -6e-264) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (x <= 4.5e+16) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * 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 * (x * ((y0 * y2) - (y * i))); tmp = 0.0; if (x <= -1.2e+18) tmp = t_1; elseif (x <= -6e-264) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (x <= 4.5e+16) tmp = t * (y5 * ((a * y2) - (i * 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[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.2e+18], t$95$1, If[LessEqual[x, -6e-264], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+16], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{if}\;x \leq -1.2 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-264}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+16}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.2e18 or 4.5e16 < x Initial program 23.6%
Simplified23.6%
Taylor expanded in c around inf 36.4%
Taylor expanded in x around inf 43.0%
*-commutative43.0%
+-commutative43.0%
mul-1-neg43.0%
*-commutative43.0%
unsub-neg43.0%
*-commutative43.0%
Simplified43.0%
if -1.2e18 < x < -6.0000000000000001e-264Initial program 43.6%
Simplified43.6%
Taylor expanded in c around inf 44.5%
Taylor expanded in y4 around inf 42.9%
if -6.0000000000000001e-264 < x < 4.5e16Initial program 27.4%
Simplified33.2%
Taylor expanded in y5 around inf 37.8%
mul-1-neg37.8%
mul-1-neg37.8%
mul-1-neg37.8%
sub-neg37.8%
sub-neg37.8%
Simplified37.8%
Taylor expanded in t around inf 38.2%
Final simplification41.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* x (* y b)))))
(if (<= x -1.36e+163)
t_1
(if (<= x -4.4e-104)
(* a (* t (* y2 y5)))
(if (<= x 3.7e-14)
(* k (* i (* y y5)))
(if (<= x 8.2e+181) (* c (* y0 (* x 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 * (x * (y * b));
double tmp;
if (x <= -1.36e+163) {
tmp = t_1;
} else if (x <= -4.4e-104) {
tmp = a * (t * (y2 * y5));
} else if (x <= 3.7e-14) {
tmp = k * (i * (y * y5));
} else if (x <= 8.2e+181) {
tmp = c * (y0 * (x * y2));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (x * (y * b))
if (x <= (-1.36d+163)) then
tmp = t_1
else if (x <= (-4.4d-104)) then
tmp = a * (t * (y2 * y5))
else if (x <= 3.7d-14) then
tmp = k * (i * (y * y5))
else if (x <= 8.2d+181) then
tmp = c * (y0 * (x * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (x * (y * b));
double tmp;
if (x <= -1.36e+163) {
tmp = t_1;
} else if (x <= -4.4e-104) {
tmp = a * (t * (y2 * y5));
} else if (x <= 3.7e-14) {
tmp = k * (i * (y * y5));
} else if (x <= 8.2e+181) {
tmp = c * (y0 * (x * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (x * (y * b)) tmp = 0 if x <= -1.36e+163: tmp = t_1 elif x <= -4.4e-104: tmp = a * (t * (y2 * y5)) elif x <= 3.7e-14: tmp = k * (i * (y * y5)) elif x <= 8.2e+181: tmp = c * (y0 * (x * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(x * Float64(y * b))) tmp = 0.0 if (x <= -1.36e+163) tmp = t_1; elseif (x <= -4.4e-104) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (x <= 3.7e-14) tmp = Float64(k * Float64(i * Float64(y * y5))); elseif (x <= 8.2e+181) tmp = Float64(c * Float64(y0 * Float64(x * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (x * (y * b)); tmp = 0.0; if (x <= -1.36e+163) tmp = t_1; elseif (x <= -4.4e-104) tmp = a * (t * (y2 * y5)); elseif (x <= 3.7e-14) tmp = k * (i * (y * y5)); elseif (x <= 8.2e+181) tmp = c * (y0 * (x * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(x * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.36e+163], t$95$1, If[LessEqual[x, -4.4e-104], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e-14], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e+181], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(y \cdot b\right)\right)\\
\mathbf{if}\;x \leq -1.36 \cdot 10^{+163}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-104}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-14}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+181}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.36000000000000001e163 or 8.20000000000000035e181 < x Initial program 15.5%
Simplified15.5%
Taylor expanded in y around inf 45.0%
mul-1-neg45.0%
Simplified45.0%
Taylor expanded in x around inf 52.2%
Taylor expanded in a around inf 45.5%
associate-*r*40.6%
*-commutative40.6%
associate-*r*47.2%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if -1.36000000000000001e163 < x < -4.40000000000000023e-104Initial program 37.7%
Simplified50.8%
Taylor expanded in y5 around inf 39.7%
mul-1-neg39.7%
mul-1-neg39.7%
mul-1-neg39.7%
sub-neg39.7%
sub-neg39.7%
Simplified39.7%
Taylor expanded in t around inf 22.9%
associate-*r*22.8%
*-commutative22.8%
Simplified22.8%
Taylor expanded in y2 around inf 21.1%
if -4.40000000000000023e-104 < x < 3.70000000000000001e-14Initial program 31.8%
Simplified37.1%
Taylor expanded in y5 around inf 34.4%
mul-1-neg34.4%
mul-1-neg34.4%
mul-1-neg34.4%
sub-neg34.4%
sub-neg34.4%
Simplified34.4%
Taylor expanded in y around -inf 18.2%
associate-*r*18.2%
neg-mul-118.2%
*-commutative18.2%
*-commutative18.2%
Simplified18.2%
Taylor expanded in i around inf 20.6%
if 3.70000000000000001e-14 < x < 8.20000000000000035e181Initial program 28.5%
Simplified28.5%
Taylor expanded in c around inf 33.6%
Taylor expanded in x around inf 39.0%
*-commutative39.0%
+-commutative39.0%
mul-1-neg39.0%
*-commutative39.0%
unsub-neg39.0%
*-commutative39.0%
Simplified39.0%
Taylor expanded in y0 around -inf 34.4%
Final simplification29.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (* a b)))))
(if (<= a -4.2e+192)
t_1
(if (<= a -1e+109)
(* (* t a) (* y2 y5))
(if (<= a -8e-225)
t_1
(if (<= a 2.4e+87) (* k (* i (* y y5))) (* y (* b (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * (a * b));
double tmp;
if (a <= -4.2e+192) {
tmp = t_1;
} else if (a <= -1e+109) {
tmp = (t * a) * (y2 * y5);
} else if (a <= -8e-225) {
tmp = t_1;
} else if (a <= 2.4e+87) {
tmp = k * (i * (y * y5));
} else {
tmp = y * (b * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * (a * b))
if (a <= (-4.2d+192)) then
tmp = t_1
else if (a <= (-1d+109)) then
tmp = (t * a) * (y2 * y5)
else if (a <= (-8d-225)) then
tmp = t_1
else if (a <= 2.4d+87) then
tmp = k * (i * (y * y5))
else
tmp = y * (b * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * (a * b));
double tmp;
if (a <= -4.2e+192) {
tmp = t_1;
} else if (a <= -1e+109) {
tmp = (t * a) * (y2 * y5);
} else if (a <= -8e-225) {
tmp = t_1;
} else if (a <= 2.4e+87) {
tmp = k * (i * (y * y5));
} else {
tmp = y * (b * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * (a * b)) tmp = 0 if a <= -4.2e+192: tmp = t_1 elif a <= -1e+109: tmp = (t * a) * (y2 * y5) elif a <= -8e-225: tmp = t_1 elif a <= 2.4e+87: tmp = k * (i * (y * y5)) else: tmp = y * (b * (x * a)) 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(x * Float64(a * b))) tmp = 0.0 if (a <= -4.2e+192) tmp = t_1; elseif (a <= -1e+109) tmp = Float64(Float64(t * a) * Float64(y2 * y5)); elseif (a <= -8e-225) tmp = t_1; elseif (a <= 2.4e+87) tmp = Float64(k * Float64(i * Float64(y * y5))); else tmp = Float64(y * Float64(b * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (x * (a * b)); tmp = 0.0; if (a <= -4.2e+192) tmp = t_1; elseif (a <= -1e+109) tmp = (t * a) * (y2 * y5); elseif (a <= -8e-225) tmp = t_1; elseif (a <= 2.4e+87) tmp = k * (i * (y * y5)); else tmp = y * (b * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+192], t$95$1, If[LessEqual[a, -1e+109], N[(N[(t * a), $MachinePrecision] * N[(y2 * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e-225], t$95$1, If[LessEqual[a, 2.4e+87], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(b * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b\right)\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1 \cdot 10^{+109}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(y2 \cdot y5\right)\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-225}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{+87}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(b \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if a < -4.19999999999999989e192 or -9.99999999999999982e108 < a < -7.9999999999999997e-225Initial program 31.8%
Simplified40.1%
Taylor expanded in y around inf 33.5%
mul-1-neg33.5%
Simplified33.5%
Taylor expanded in x around inf 33.9%
Taylor expanded in a around inf 23.5%
associate-*r*28.1%
*-commutative28.1%
Simplified28.1%
if -4.19999999999999989e192 < a < -9.99999999999999982e108Initial program 32.3%
Simplified32.3%
Taylor expanded in y5 around inf 53.0%
mul-1-neg53.0%
mul-1-neg53.0%
mul-1-neg53.0%
sub-neg53.0%
sub-neg53.0%
Simplified53.0%
Taylor expanded in t around inf 37.9%
associate-*r*41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in y2 around inf 26.2%
associate-*r*37.6%
*-commutative37.6%
Simplified37.6%
if -7.9999999999999997e-225 < a < 2.39999999999999981e87Initial program 26.8%
Simplified34.7%
Taylor expanded in y5 around inf 38.9%
mul-1-neg38.9%
mul-1-neg38.9%
mul-1-neg38.9%
sub-neg38.9%
sub-neg38.9%
Simplified38.9%
Taylor expanded in y around -inf 28.2%
associate-*r*28.2%
neg-mul-128.2%
*-commutative28.2%
*-commutative28.2%
Simplified28.2%
Taylor expanded in i around inf 25.1%
if 2.39999999999999981e87 < a Initial program 26.7%
Simplified31.1%
Taylor expanded in y around inf 31.6%
mul-1-neg31.6%
Simplified31.6%
Taylor expanded in x around inf 47.6%
Taylor expanded in a around inf 37.0%
associate-*r*37.0%
*-commutative37.0%
associate-*l*41.2%
Simplified41.2%
Final simplification30.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (* a b)))) (t_2 (* t (* a (* y2 y5)))))
(if (<= b -3.5e+86)
t_1
(if (<= b -2.5e-121)
t_2
(if (<= b 5.4e-102)
(* (* y k) (* i y5))
(if (<= b 8.5e+47) 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 = y * (x * (a * b));
double t_2 = t * (a * (y2 * y5));
double tmp;
if (b <= -3.5e+86) {
tmp = t_1;
} else if (b <= -2.5e-121) {
tmp = t_2;
} else if (b <= 5.4e-102) {
tmp = (y * k) * (i * y5);
} else if (b <= 8.5e+47) {
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 = y * (x * (a * b))
t_2 = t * (a * (y2 * y5))
if (b <= (-3.5d+86)) then
tmp = t_1
else if (b <= (-2.5d-121)) then
tmp = t_2
else if (b <= 5.4d-102) then
tmp = (y * k) * (i * y5)
else if (b <= 8.5d+47) 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 = y * (x * (a * b));
double t_2 = t * (a * (y2 * y5));
double tmp;
if (b <= -3.5e+86) {
tmp = t_1;
} else if (b <= -2.5e-121) {
tmp = t_2;
} else if (b <= 5.4e-102) {
tmp = (y * k) * (i * y5);
} else if (b <= 8.5e+47) {
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 = y * (x * (a * b)) t_2 = t * (a * (y2 * y5)) tmp = 0 if b <= -3.5e+86: tmp = t_1 elif b <= -2.5e-121: tmp = t_2 elif b <= 5.4e-102: tmp = (y * k) * (i * y5) elif b <= 8.5e+47: 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(y * Float64(x * Float64(a * b))) t_2 = Float64(t * Float64(a * Float64(y2 * y5))) tmp = 0.0 if (b <= -3.5e+86) tmp = t_1; elseif (b <= -2.5e-121) tmp = t_2; elseif (b <= 5.4e-102) tmp = Float64(Float64(y * k) * Float64(i * y5)); elseif (b <= 8.5e+47) 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 = y * (x * (a * b)); t_2 = t * (a * (y2 * y5)); tmp = 0.0; if (b <= -3.5e+86) tmp = t_1; elseif (b <= -2.5e-121) tmp = t_2; elseif (b <= 5.4e-102) tmp = (y * k) * (i * y5); elseif (b <= 8.5e+47) 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[(y * N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+86], t$95$1, If[LessEqual[b, -2.5e-121], t$95$2, If[LessEqual[b, 5.4e-102], N[(N[(y * k), $MachinePrecision] * N[(i * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+47], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b\right)\right)\\
t_2 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-102}:\\
\;\;\;\;\left(y \cdot k\right) \cdot \left(i \cdot y5\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+47}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.50000000000000019e86 or 8.5000000000000008e47 < b Initial program 22.6%
Simplified27.0%
Taylor expanded in y around inf 30.8%
mul-1-neg30.8%
Simplified30.8%
Taylor expanded in x around inf 42.1%
Taylor expanded in a around inf 33.4%
associate-*r*36.8%
*-commutative36.8%
Simplified36.8%
if -3.50000000000000019e86 < b < -2.49999999999999995e-121 or 5.4e-102 < b < 8.5000000000000008e47Initial program 38.6%
Simplified41.0%
Taylor expanded in y5 around inf 34.5%
mul-1-neg34.5%
mul-1-neg34.5%
mul-1-neg34.5%
sub-neg34.5%
sub-neg34.5%
Simplified34.5%
Taylor expanded in t around inf 33.4%
associate-*r*31.1%
*-commutative31.1%
Simplified31.1%
Taylor expanded in y2 around inf 28.9%
*-commutative28.9%
associate-*r*32.3%
*-commutative32.3%
Simplified32.3%
if -2.49999999999999995e-121 < b < 5.4e-102Initial program 26.2%
Simplified37.0%
Taylor expanded in y5 around inf 33.8%
mul-1-neg33.8%
mul-1-neg33.8%
mul-1-neg33.8%
sub-neg33.8%
sub-neg33.8%
Simplified33.8%
Taylor expanded in y around -inf 24.2%
associate-*r*24.2%
neg-mul-124.2%
*-commutative24.2%
*-commutative24.2%
Simplified24.2%
Taylor expanded in y3 around 0 21.9%
associate-*r*24.0%
*-commutative24.0%
*-commutative24.0%
Simplified24.0%
Final simplification31.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (* a b)))) (t_2 (* t (* a (* y2 y5)))))
(if (<= b -1.16e+91)
t_1
(if (<= b -2.3e-121)
t_2
(if (<= b 3.6e-102)
(* y5 (* i (* y k)))
(if (<= b 8.6e+49) 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 = y * (x * (a * b));
double t_2 = t * (a * (y2 * y5));
double tmp;
if (b <= -1.16e+91) {
tmp = t_1;
} else if (b <= -2.3e-121) {
tmp = t_2;
} else if (b <= 3.6e-102) {
tmp = y5 * (i * (y * k));
} else if (b <= 8.6e+49) {
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 = y * (x * (a * b))
t_2 = t * (a * (y2 * y5))
if (b <= (-1.16d+91)) then
tmp = t_1
else if (b <= (-2.3d-121)) then
tmp = t_2
else if (b <= 3.6d-102) then
tmp = y5 * (i * (y * k))
else if (b <= 8.6d+49) 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 = y * (x * (a * b));
double t_2 = t * (a * (y2 * y5));
double tmp;
if (b <= -1.16e+91) {
tmp = t_1;
} else if (b <= -2.3e-121) {
tmp = t_2;
} else if (b <= 3.6e-102) {
tmp = y5 * (i * (y * k));
} else if (b <= 8.6e+49) {
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 = y * (x * (a * b)) t_2 = t * (a * (y2 * y5)) tmp = 0 if b <= -1.16e+91: tmp = t_1 elif b <= -2.3e-121: tmp = t_2 elif b <= 3.6e-102: tmp = y5 * (i * (y * k)) elif b <= 8.6e+49: 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(y * Float64(x * Float64(a * b))) t_2 = Float64(t * Float64(a * Float64(y2 * y5))) tmp = 0.0 if (b <= -1.16e+91) tmp = t_1; elseif (b <= -2.3e-121) tmp = t_2; elseif (b <= 3.6e-102) tmp = Float64(y5 * Float64(i * Float64(y * k))); elseif (b <= 8.6e+49) 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 = y * (x * (a * b)); t_2 = t * (a * (y2 * y5)); tmp = 0.0; if (b <= -1.16e+91) tmp = t_1; elseif (b <= -2.3e-121) tmp = t_2; elseif (b <= 3.6e-102) tmp = y5 * (i * (y * k)); elseif (b <= 8.6e+49) 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[(y * N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.16e+91], t$95$1, If[LessEqual[b, -2.3e-121], t$95$2, If[LessEqual[b, 3.6e-102], N[(y5 * N[(i * N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.6e+49], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b\right)\right)\\
t_2 := t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{if}\;b \leq -1.16 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-102}:\\
\;\;\;\;y5 \cdot \left(i \cdot \left(y \cdot k\right)\right)\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{+49}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.1600000000000001e91 or 8.5999999999999998e49 < b Initial program 22.6%
Simplified27.0%
Taylor expanded in y around inf 30.8%
mul-1-neg30.8%
Simplified30.8%
Taylor expanded in x around inf 42.1%
Taylor expanded in a around inf 33.4%
associate-*r*36.8%
*-commutative36.8%
Simplified36.8%
if -1.1600000000000001e91 < b < -2.30000000000000012e-121 or 3.6e-102 < b < 8.5999999999999998e49Initial program 38.6%
Simplified41.0%
Taylor expanded in y5 around inf 34.5%
mul-1-neg34.5%
mul-1-neg34.5%
mul-1-neg34.5%
sub-neg34.5%
sub-neg34.5%
Simplified34.5%
Taylor expanded in t around inf 33.4%
associate-*r*31.1%
*-commutative31.1%
Simplified31.1%
Taylor expanded in y2 around inf 28.9%
*-commutative28.9%
associate-*r*32.3%
*-commutative32.3%
Simplified32.3%
if -2.30000000000000012e-121 < b < 3.6e-102Initial program 26.2%
Simplified37.0%
Taylor expanded in y5 around inf 33.8%
mul-1-neg33.8%
mul-1-neg33.8%
mul-1-neg33.8%
sub-neg33.8%
sub-neg33.8%
Simplified33.8%
Taylor expanded in y around -inf 24.2%
associate-*r*24.2%
neg-mul-124.2%
*-commutative24.2%
*-commutative24.2%
Simplified24.2%
Taylor expanded in y3 around 0 21.8%
*-commutative21.8%
associate-*l*25.2%
Simplified25.2%
Final simplification31.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= z -5.8e-18) (not (<= z 6.4e+29))) (* c (* y0 (- (* x y2) (* z y3)))) (* c (* x (- (* y0 y2) (* 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 ((z <= -5.8e-18) || !(z <= 6.4e+29)) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else {
tmp = c * (x * ((y0 * y2) - (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 ((z <= (-5.8d-18)) .or. (.not. (z <= 6.4d+29))) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else
tmp = c * (x * ((y0 * y2) - (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 ((z <= -5.8e-18) || !(z <= 6.4e+29)) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else {
tmp = c * (x * ((y0 * y2) - (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 (z <= -5.8e-18) or not (z <= 6.4e+29): tmp = c * (y0 * ((x * y2) - (z * y3))) else: tmp = c * (x * ((y0 * y2) - (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 ((z <= -5.8e-18) || !(z <= 6.4e+29)) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); else tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * 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 ((z <= -5.8e-18) || ~((z <= 6.4e+29))) tmp = c * (y0 * ((x * y2) - (z * y3))); else tmp = c * (x * ((y0 * y2) - (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[Or[LessEqual[z, -5.8e-18], N[Not[LessEqual[z, 6.4e+29]], $MachinePrecision]], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-18} \lor \neg \left(z \leq 6.4 \cdot 10^{+29}\right):\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\end{array}
\end{array}
if z < -5.8e-18 or 6.39999999999999973e29 < z Initial program 26.5%
Simplified26.5%
Taylor expanded in c around inf 35.6%
Taylor expanded in y0 around inf 37.1%
if -5.8e-18 < z < 6.39999999999999973e29Initial program 31.4%
Simplified31.4%
Taylor expanded in c around inf 42.9%
Taylor expanded in x around inf 34.9%
*-commutative34.9%
+-commutative34.9%
mul-1-neg34.9%
*-commutative34.9%
unsub-neg34.9%
*-commutative34.9%
Simplified34.9%
Final simplification36.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* x (* y b)))))
(if (<= x -1.95e+163)
t_1
(if (<= x 2.5e+37)
(* a (* t (* y2 y5)))
(if (<= x 8e+181) (* c (* y0 (* x 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 * (x * (y * b));
double tmp;
if (x <= -1.95e+163) {
tmp = t_1;
} else if (x <= 2.5e+37) {
tmp = a * (t * (y2 * y5));
} else if (x <= 8e+181) {
tmp = c * (y0 * (x * y2));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (x * (y * b))
if (x <= (-1.95d+163)) then
tmp = t_1
else if (x <= 2.5d+37) then
tmp = a * (t * (y2 * y5))
else if (x <= 8d+181) then
tmp = c * (y0 * (x * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (x * (y * b));
double tmp;
if (x <= -1.95e+163) {
tmp = t_1;
} else if (x <= 2.5e+37) {
tmp = a * (t * (y2 * y5));
} else if (x <= 8e+181) {
tmp = c * (y0 * (x * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (x * (y * b)) tmp = 0 if x <= -1.95e+163: tmp = t_1 elif x <= 2.5e+37: tmp = a * (t * (y2 * y5)) elif x <= 8e+181: tmp = c * (y0 * (x * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(x * Float64(y * b))) tmp = 0.0 if (x <= -1.95e+163) tmp = t_1; elseif (x <= 2.5e+37) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (x <= 8e+181) tmp = Float64(c * Float64(y0 * Float64(x * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (x * (y * b)); tmp = 0.0; if (x <= -1.95e+163) tmp = t_1; elseif (x <= 2.5e+37) tmp = a * (t * (y2 * y5)); elseif (x <= 8e+181) tmp = c * (y0 * (x * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(x * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.95e+163], t$95$1, If[LessEqual[x, 2.5e+37], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8e+181], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(y \cdot b\right)\right)\\
\mathbf{if}\;x \leq -1.95 \cdot 10^{+163}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+37}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+181}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.95000000000000012e163 or 7.9999999999999993e181 < x Initial program 15.5%
Simplified15.5%
Taylor expanded in y around inf 45.0%
mul-1-neg45.0%
Simplified45.0%
Taylor expanded in x around inf 52.2%
Taylor expanded in a around inf 45.5%
associate-*r*40.6%
*-commutative40.6%
associate-*r*47.2%
associate-*r*47.3%
*-commutative47.3%
Simplified47.3%
if -1.95000000000000012e163 < x < 2.49999999999999994e37Initial program 34.0%
Simplified43.0%
Taylor expanded in y5 around inf 36.9%
mul-1-neg36.9%
mul-1-neg36.9%
mul-1-neg36.9%
sub-neg36.9%
sub-neg36.9%
Simplified36.9%
Taylor expanded in t around inf 28.1%
associate-*r*26.9%
*-commutative26.9%
Simplified26.9%
Taylor expanded in y2 around inf 17.5%
if 2.49999999999999994e37 < x < 7.9999999999999993e181Initial program 26.7%
Simplified26.7%
Taylor expanded in c around inf 30.4%
Taylor expanded in x around inf 44.4%
*-commutative44.4%
+-commutative44.4%
mul-1-neg44.4%
*-commutative44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in y0 around -inf 40.9%
Final simplification27.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= x -4.2e+163) (not (<= x 9e+58))) (* a (* x (* y b))) (* a (* t (* y2 y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -4.2e+163) || !(x <= 9e+58)) {
tmp = a * (x * (y * b));
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((x <= (-4.2d+163)) .or. (.not. (x <= 9d+58))) then
tmp = a * (x * (y * b))
else
tmp = a * (t * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -4.2e+163) || !(x <= 9e+58)) {
tmp = a * (x * (y * b));
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (x <= -4.2e+163) or not (x <= 9e+58): tmp = a * (x * (y * b)) else: tmp = a * (t * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((x <= -4.2e+163) || !(x <= 9e+58)) tmp = Float64(a * Float64(x * Float64(y * b))); else tmp = Float64(a * Float64(t * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((x <= -4.2e+163) || ~((x <= 9e+58))) tmp = a * (x * (y * b)); else tmp = a * (t * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[x, -4.2e+163], N[Not[LessEqual[x, 9e+58]], $MachinePrecision]], N[(a * N[(x * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.2 \cdot 10^{+163} \lor \neg \left(x \leq 9 \cdot 10^{+58}\right):\\
\;\;\;\;a \cdot \left(x \cdot \left(y \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if x < -4.2000000000000001e163 or 8.9999999999999996e58 < x Initial program 20.0%
Simplified20.0%
Taylor expanded in y around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in x around inf 48.8%
Taylor expanded in a around inf 40.7%
associate-*r*35.1%
*-commutative35.1%
associate-*r*39.7%
associate-*r*38.6%
*-commutative38.6%
Simplified38.6%
if -4.2000000000000001e163 < x < 8.9999999999999996e58Initial program 33.4%
Simplified42.2%
Taylor expanded in y5 around inf 36.2%
mul-1-neg36.2%
mul-1-neg36.2%
mul-1-neg36.2%
sub-neg36.2%
sub-neg36.2%
Simplified36.2%
Taylor expanded in t around inf 28.7%
associate-*r*27.6%
*-commutative27.6%
Simplified27.6%
Taylor expanded in y2 around inf 18.3%
Final simplification25.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= a -2.2e+40) (not (<= a 9e+87))) (* y (* b (* x a))) (* k (* i (* y y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((a <= -2.2e+40) || !(a <= 9e+87)) {
tmp = y * (b * (x * a));
} else {
tmp = k * (i * (y * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((a <= (-2.2d+40)) .or. (.not. (a <= 9d+87))) then
tmp = y * (b * (x * a))
else
tmp = k * (i * (y * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((a <= -2.2e+40) || !(a <= 9e+87)) {
tmp = y * (b * (x * a));
} else {
tmp = k * (i * (y * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (a <= -2.2e+40) or not (a <= 9e+87): tmp = y * (b * (x * a)) else: tmp = k * (i * (y * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((a <= -2.2e+40) || !(a <= 9e+87)) tmp = Float64(y * Float64(b * Float64(x * a))); else tmp = Float64(k * Float64(i * Float64(y * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((a <= -2.2e+40) || ~((a <= 9e+87))) tmp = y * (b * (x * a)); else tmp = k * (i * (y * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[a, -2.2e+40], N[Not[LessEqual[a, 9e+87]], $MachinePrecision]], N[(y * N[(b * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+40} \lor \neg \left(a \leq 9 \cdot 10^{+87}\right):\\
\;\;\;\;y \cdot \left(b \cdot \left(x \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\end{array}
\end{array}
if a < -2.1999999999999999e40 or 9.0000000000000005e87 < a Initial program 25.7%
Simplified28.4%
Taylor expanded in y around inf 29.8%
mul-1-neg29.8%
Simplified29.8%
Taylor expanded in x around inf 46.1%
Taylor expanded in a around inf 30.6%
associate-*r*36.5%
*-commutative36.5%
associate-*l*33.9%
Simplified33.9%
if -2.1999999999999999e40 < a < 9.0000000000000005e87Initial program 31.5%
Simplified40.6%
Taylor expanded in y5 around inf 37.0%
mul-1-neg37.0%
mul-1-neg37.0%
mul-1-neg37.0%
sub-neg37.0%
sub-neg37.0%
Simplified37.0%
Taylor expanded in y around -inf 21.8%
associate-*r*21.8%
neg-mul-121.8%
*-commutative21.8%
*-commutative21.8%
Simplified21.8%
Taylor expanded in i around inf 20.3%
Final simplification26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= a -2.65e-225) (* y (* x (* a b))) (if (<= a 4.9e+86) (* k (* i (* y y5))) (* y (* b (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -2.65e-225) {
tmp = y * (x * (a * b));
} else if (a <= 4.9e+86) {
tmp = k * (i * (y * y5));
} else {
tmp = y * (b * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (a <= (-2.65d-225)) then
tmp = y * (x * (a * b))
else if (a <= 4.9d+86) then
tmp = k * (i * (y * y5))
else
tmp = y * (b * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -2.65e-225) {
tmp = y * (x * (a * b));
} else if (a <= 4.9e+86) {
tmp = k * (i * (y * y5));
} else {
tmp = y * (b * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -2.65e-225: tmp = y * (x * (a * b)) elif a <= 4.9e+86: tmp = k * (i * (y * y5)) else: tmp = y * (b * (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -2.65e-225) tmp = Float64(y * Float64(x * Float64(a * b))); elseif (a <= 4.9e+86) tmp = Float64(k * Float64(i * Float64(y * y5))); else tmp = Float64(y * Float64(b * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (a <= -2.65e-225) tmp = y * (x * (a * b)); elseif (a <= 4.9e+86) tmp = k * (i * (y * y5)); else tmp = y * (b * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -2.65e-225], N[(y * N[(x * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.9e+86], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(b * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.65 \cdot 10^{-225}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b\right)\right)\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{+86}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(b \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if a < -2.65000000000000003e-225Initial program 31.9%
Simplified38.3%
Taylor expanded in y around inf 31.6%
mul-1-neg31.6%
Simplified31.6%
Taylor expanded in x around inf 32.8%
Taylor expanded in a around inf 20.4%
associate-*r*25.7%
*-commutative25.7%
Simplified25.7%
if -2.65000000000000003e-225 < a < 4.8999999999999999e86Initial program 26.8%
Simplified34.7%
Taylor expanded in y5 around inf 38.9%
mul-1-neg38.9%
mul-1-neg38.9%
mul-1-neg38.9%
sub-neg38.9%
sub-neg38.9%
Simplified38.9%
Taylor expanded in y around -inf 28.2%
associate-*r*28.2%
neg-mul-128.2%
*-commutative28.2%
*-commutative28.2%
Simplified28.2%
Taylor expanded in i around inf 25.1%
if 4.8999999999999999e86 < a Initial program 26.7%
Simplified31.1%
Taylor expanded in y around inf 31.6%
mul-1-neg31.6%
Simplified31.6%
Taylor expanded in x around inf 47.6%
Taylor expanded in a around inf 37.0%
associate-*r*37.0%
*-commutative37.0%
associate-*l*41.2%
Simplified41.2%
Final simplification28.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* t (* y2 y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (t * (y2 * y5));
}
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 * (t * (y2 * y5))
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 * (t * (y2 * y5));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (t * (y2 * y5))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(t * Float64(y2 * y5))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (t * (y2 * y5)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)
\end{array}
Initial program 29.0%
Simplified35.6%
Taylor expanded in y5 around inf 33.4%
mul-1-neg33.4%
mul-1-neg33.4%
mul-1-neg33.4%
sub-neg33.4%
sub-neg33.4%
Simplified33.4%
Taylor expanded in t around inf 25.0%
associate-*r*23.5%
*-commutative23.5%
Simplified23.5%
Taylor expanded in y2 around inf 15.8%
Final simplification15.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t_9\\
t_11 := t_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t_4 \cdot t_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t_3 \cdot t_1 - t_14\right)\right) + \left(t_8 - \left(t_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t_13\right)\right) + \left(t_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t_10 - \left(y \cdot x - z \cdot t\right) \cdot t_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t_8 - \left(t_11 - t_6\right)\right) - \left(\frac{t_3}{\frac{1}{t_1}} - t_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t_2 - \left(t_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t_5\right) - t_17 \cdot t_1\right) + t_13\\
\end{array}
\end{array}
herbie shell --seed 2023238
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))