
(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 34 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 (- (* i y1) (* b y0)))
(t_2 (* y (- (* i y5) (* b y4))))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4 (- (* a y5) (* c y4)))
(t_5
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 t_4))))
(t_6 (- (* y y3) (* t y2)))
(t_7 (- (* c y0) (* a y1)))
(t_8 (* k (- t_2 (* z t_1))))
(t_9 (* k (+ (* z (- (* b y0) (* i y1))) (+ (* y2 t_3) t_2)))))
(if (<= k -4e+254)
t_8
(if (<= k -1.75e+221)
(* (* y0 y2) (- (* x c) (* k y5)))
(if (<= k -3.6e+105)
t_9
(if (<= k -1.2e+43)
t_5
(if (<= k -2.85e-84)
(*
a
(+
(+ (* y1 (- (* z y3) (* x y2))) (* b (- (* x y) (* z t))))
(* y5 (- (* t y2) (* y y3)))))
(if (<= k -5.8e-151)
t_5
(if (<= k -3.15e-202)
(* x (+ (+ (* y (- (* a b) (* c i))) (* y2 t_7)) (* j t_1)))
(if (<= k -2.7e-305)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 t_6)))
(if (<= k 4.2e-196)
(* y2 (+ (+ (* k t_3) (* x t_7)) (* t t_4)))
(if (<= k 1.45e-104)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= k 1.32e-71)
t_8
(if (<= k 1.05e+15)
(*
y4
(+
(+
(* b (- (* t j) (* y k)))
(* y1 (- (* k y2) (* j y3))))
(* c t_6)))
t_9))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double t_2 = y * ((i * y5) - (b * y4));
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = (a * y5) - (c * y4);
double t_5 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4));
double t_6 = (y * y3) - (t * y2);
double t_7 = (c * y0) - (a * y1);
double t_8 = k * (t_2 - (z * t_1));
double t_9 = k * ((z * ((b * y0) - (i * y1))) + ((y2 * t_3) + t_2));
double tmp;
if (k <= -4e+254) {
tmp = t_8;
} else if (k <= -1.75e+221) {
tmp = (y0 * y2) * ((x * c) - (k * y5));
} else if (k <= -3.6e+105) {
tmp = t_9;
} else if (k <= -1.2e+43) {
tmp = t_5;
} else if (k <= -2.85e-84) {
tmp = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (k <= -5.8e-151) {
tmp = t_5;
} else if (k <= -3.15e-202) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_1));
} else if (k <= -2.7e-305) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6));
} else if (k <= 4.2e-196) {
tmp = y2 * (((k * t_3) + (x * t_7)) + (t * t_4));
} else if (k <= 1.45e-104) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (k <= 1.32e-71) {
tmp = t_8;
} else if (k <= 1.05e+15) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_6));
} else {
tmp = t_9;
}
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 = (i * y1) - (b * y0)
t_2 = y * ((i * y5) - (b * y4))
t_3 = (y1 * y4) - (y0 * y5)
t_4 = (a * y5) - (c * y4)
t_5 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4))
t_6 = (y * y3) - (t * y2)
t_7 = (c * y0) - (a * y1)
t_8 = k * (t_2 - (z * t_1))
t_9 = k * ((z * ((b * y0) - (i * y1))) + ((y2 * t_3) + t_2))
if (k <= (-4d+254)) then
tmp = t_8
else if (k <= (-1.75d+221)) then
tmp = (y0 * y2) * ((x * c) - (k * y5))
else if (k <= (-3.6d+105)) then
tmp = t_9
else if (k <= (-1.2d+43)) then
tmp = t_5
else if (k <= (-2.85d-84)) then
tmp = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))))
else if (k <= (-5.8d-151)) then
tmp = t_5
else if (k <= (-3.15d-202)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_1))
else if (k <= (-2.7d-305)) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6))
else if (k <= 4.2d-196) then
tmp = y2 * (((k * t_3) + (x * t_7)) + (t * t_4))
else if (k <= 1.45d-104) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (k <= 1.32d-71) then
tmp = t_8
else if (k <= 1.05d+15) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_6))
else
tmp = t_9
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 = (i * y1) - (b * y0);
double t_2 = y * ((i * y5) - (b * y4));
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = (a * y5) - (c * y4);
double t_5 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4));
double t_6 = (y * y3) - (t * y2);
double t_7 = (c * y0) - (a * y1);
double t_8 = k * (t_2 - (z * t_1));
double t_9 = k * ((z * ((b * y0) - (i * y1))) + ((y2 * t_3) + t_2));
double tmp;
if (k <= -4e+254) {
tmp = t_8;
} else if (k <= -1.75e+221) {
tmp = (y0 * y2) * ((x * c) - (k * y5));
} else if (k <= -3.6e+105) {
tmp = t_9;
} else if (k <= -1.2e+43) {
tmp = t_5;
} else if (k <= -2.85e-84) {
tmp = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3))));
} else if (k <= -5.8e-151) {
tmp = t_5;
} else if (k <= -3.15e-202) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_1));
} else if (k <= -2.7e-305) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6));
} else if (k <= 4.2e-196) {
tmp = y2 * (((k * t_3) + (x * t_7)) + (t * t_4));
} else if (k <= 1.45e-104) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (k <= 1.32e-71) {
tmp = t_8;
} else if (k <= 1.05e+15) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_6));
} else {
tmp = t_9;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) t_2 = y * ((i * y5) - (b * y4)) t_3 = (y1 * y4) - (y0 * y5) t_4 = (a * y5) - (c * y4) t_5 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4)) t_6 = (y * y3) - (t * y2) t_7 = (c * y0) - (a * y1) t_8 = k * (t_2 - (z * t_1)) t_9 = k * ((z * ((b * y0) - (i * y1))) + ((y2 * t_3) + t_2)) tmp = 0 if k <= -4e+254: tmp = t_8 elif k <= -1.75e+221: tmp = (y0 * y2) * ((x * c) - (k * y5)) elif k <= -3.6e+105: tmp = t_9 elif k <= -1.2e+43: tmp = t_5 elif k <= -2.85e-84: tmp = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))) elif k <= -5.8e-151: tmp = t_5 elif k <= -3.15e-202: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_1)) elif k <= -2.7e-305: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6)) elif k <= 4.2e-196: tmp = y2 * (((k * t_3) + (x * t_7)) + (t * t_4)) elif k <= 1.45e-104: tmp = c * (y * ((y3 * y4) - (x * i))) elif k <= 1.32e-71: tmp = t_8 elif k <= 1.05e+15: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_6)) else: tmp = t_9 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) t_2 = Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) t_3 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(Float64(a * y5) - Float64(c * y4)) t_5 = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_4))) t_6 = Float64(Float64(y * y3) - Float64(t * y2)) t_7 = Float64(Float64(c * y0) - Float64(a * y1)) t_8 = Float64(k * Float64(t_2 - Float64(z * t_1))) t_9 = Float64(k * Float64(Float64(z * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(Float64(y2 * t_3) + t_2))) tmp = 0.0 if (k <= -4e+254) tmp = t_8; elseif (k <= -1.75e+221) tmp = Float64(Float64(y0 * y2) * Float64(Float64(x * c) - Float64(k * y5))); elseif (k <= -3.6e+105) tmp = t_9; elseif (k <= -1.2e+43) tmp = t_5; elseif (k <= -2.85e-84) tmp = Float64(a * Float64(Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * Float64(Float64(x * y) - Float64(z * t)))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (k <= -5.8e-151) tmp = t_5; elseif (k <= -3.15e-202) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_7)) + Float64(j * t_1))); elseif (k <= -2.7e-305) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_6))); elseif (k <= 4.2e-196) tmp = Float64(y2 * Float64(Float64(Float64(k * t_3) + Float64(x * t_7)) + Float64(t * t_4))); elseif (k <= 1.45e-104) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (k <= 1.32e-71) tmp = t_8; elseif (k <= 1.05e+15) 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 * t_6))); else tmp = t_9; 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 = (i * y1) - (b * y0); t_2 = y * ((i * y5) - (b * y4)); t_3 = (y1 * y4) - (y0 * y5); t_4 = (a * y5) - (c * y4); t_5 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_4)); t_6 = (y * y3) - (t * y2); t_7 = (c * y0) - (a * y1); t_8 = k * (t_2 - (z * t_1)); t_9 = k * ((z * ((b * y0) - (i * y1))) + ((y2 * t_3) + t_2)); tmp = 0.0; if (k <= -4e+254) tmp = t_8; elseif (k <= -1.75e+221) tmp = (y0 * y2) * ((x * c) - (k * y5)); elseif (k <= -3.6e+105) tmp = t_9; elseif (k <= -1.2e+43) tmp = t_5; elseif (k <= -2.85e-84) tmp = a * (((y1 * ((z * y3) - (x * y2))) + (b * ((x * y) - (z * t)))) + (y5 * ((t * y2) - (y * y3)))); elseif (k <= -5.8e-151) tmp = t_5; elseif (k <= -3.15e-202) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_7)) + (j * t_1)); elseif (k <= -2.7e-305) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_6)); elseif (k <= 4.2e-196) tmp = y2 * (((k * t_3) + (x * t_7)) + (t * t_4)); elseif (k <= 1.45e-104) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (k <= 1.32e-71) tmp = t_8; elseif (k <= 1.05e+15) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_6)); else tmp = t_9; 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[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(k * N[(t$95$2 - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(k * N[(N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y2 * t$95$3), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4e+254], t$95$8, If[LessEqual[k, -1.75e+221], N[(N[(y0 * y2), $MachinePrecision] * N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3.6e+105], t$95$9, If[LessEqual[k, -1.2e+43], t$95$5, If[LessEqual[k, -2.85e-84], N[(a * N[(N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -5.8e-151], t$95$5, If[LessEqual[k, -3.15e-202], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.7e-305], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.2e-196], N[(y2 * N[(N[(N[(k * t$95$3), $MachinePrecision] + N[(x * t$95$7), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.45e-104], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.32e-71], t$95$8, If[LessEqual[k, 1.05e+15], 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 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$9]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
t_2 := y \cdot \left(i \cdot y5 - b \cdot y4\right)\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := a \cdot y5 - c \cdot y4\\
t_5 := t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_4\right)\\
t_6 := y \cdot y3 - t \cdot y2\\
t_7 := c \cdot y0 - a \cdot y1\\
t_8 := k \cdot \left(t\_2 - z \cdot t\_1\right)\\
t_9 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y2 \cdot t\_3 + t\_2\right)\right)\\
\mathbf{if}\;k \leq -4 \cdot 10^{+254}:\\
\;\;\;\;t\_8\\
\mathbf{elif}\;k \leq -1.75 \cdot 10^{+221}:\\
\;\;\;\;\left(y0 \cdot y2\right) \cdot \left(x \cdot c - k \cdot y5\right)\\
\mathbf{elif}\;k \leq -3.6 \cdot 10^{+105}:\\
\;\;\;\;t\_9\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{+43}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq -2.85 \cdot 10^{-84}:\\
\;\;\;\;a \cdot \left(\left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot \left(x \cdot y - z \cdot t\right)\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq -5.8 \cdot 10^{-151}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq -3.15 \cdot 10^{-202}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t\_7\right) + j \cdot t\_1\right)\\
\mathbf{elif}\;k \leq -2.7 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t\_6\right)\\
\mathbf{elif}\;k \leq 4.2 \cdot 10^{-196}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_3 + x \cdot t\_7\right) + t \cdot t\_4\right)\\
\mathbf{elif}\;k \leq 1.45 \cdot 10^{-104}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;k \leq 1.32 \cdot 10^{-71}:\\
\;\;\;\;t\_8\\
\mathbf{elif}\;k \leq 1.05 \cdot 10^{+15}:\\
\;\;\;\;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 t\_6\right)\\
\mathbf{else}:\\
\;\;\;\;t\_9\\
\end{array}
\end{array}
if k < -3.9999999999999997e254 or 1.4500000000000001e-104 < k < 1.32e-71Initial program 26.9%
Taylor expanded in k around inf 79.1%
Taylor expanded in y2 around 0 84.4%
distribute-lft-out--84.4%
Simplified84.4%
if -3.9999999999999997e254 < k < -1.7500000000000001e221Initial program 12.5%
Taylor expanded in y0 around inf 50.0%
Taylor expanded in y2 around inf 87.8%
associate-*r*87.7%
+-commutative87.7%
mul-1-neg87.7%
unsub-neg87.7%
Simplified87.7%
if -1.7500000000000001e221 < k < -3.5999999999999999e105 or 1.05e15 < k Initial program 29.8%
Taylor expanded in k around inf 65.2%
if -3.5999999999999999e105 < k < -1.20000000000000012e43 or -2.85e-84 < k < -5.80000000000000025e-151Initial program 22.6%
Taylor expanded in t around inf 70.7%
if -1.20000000000000012e43 < k < -2.85e-84Initial program 34.0%
Taylor expanded in a around inf 52.5%
if -5.80000000000000025e-151 < k < -3.15e-202Initial program 41.7%
Taylor expanded in x around inf 83.4%
if -3.15e-202 < k < -2.6999999999999999e-305Initial program 24.7%
Taylor expanded in c around inf 52.4%
if -2.6999999999999999e-305 < k < 4.19999999999999977e-196Initial program 23.3%
Taylor expanded in y2 around inf 62.4%
if 4.19999999999999977e-196 < k < 1.4500000000000001e-104Initial program 38.9%
Taylor expanded in c around inf 50.6%
Taylor expanded in y around -inf 67.0%
mul-1-neg67.0%
Simplified67.0%
if 1.32e-71 < k < 1.05e15Initial program 31.2%
Taylor expanded in y4 around inf 77.2%
Final simplification66.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x j) (* z k)))
(t_2 (- (* k y2) (* j y3)))
(t_3
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* t_1 (- (* i y1) (* b y0))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* (- (* t j) (* y k)) (- (* b y4) (* i y5))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* t_2 (- (* y1 y4) (* y0 y5))))))
(if (<= t_3 INFINITY)
t_3
(* y1 (+ (+ (* a (- (* z y3) (* x y2))) (* y4 t_2)) (* i 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 = (x * j) - (z * k);
double t_2 = (k * y2) - (j * y3);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (t_1 * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_2)) + (i * t_1));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * j) - (z * k);
double t_2 = (k * y2) - (j * y3);
double t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (t_1 * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_3;
} else {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_2)) + (i * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * j) - (z * k) t_2 = (k * y2) - (j * y3) t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (t_1 * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_3 <= math.inf: tmp = t_3 else: tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_2)) + (i * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * j) - Float64(z * k)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) + Float64(t_1 * Float64(Float64(i * y1) - Float64(b * y0)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + 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(t_2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(y1 * Float64(Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y4 * t_2)) + Float64(i * 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 = (x * j) - (z * k); t_2 = (k * y2) - (j * y3); t_3 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (t_1 * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_3 <= Inf) tmp = t_3; else tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_2)) + (i * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(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[(t$95$2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(y1 * N[(N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot j - z \cdot k\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + t\_1 \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\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) + t\_2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + y4 \cdot t\_2\right) + i \cdot t\_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 86.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%
Taylor expanded in y1 around inf 39.5%
Final simplification55.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0)))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (* k (- (* y (- (* i y5) (* b y4))) (* z t_1))))
(t_4 (- (* t j) (* y k)))
(t_5 (- (* z k) (* x j)))
(t_6 (- (* k y2) (* j y3))))
(if (<= y2 -3.4e+240)
(* x (* y0 (- (* c y2) (* b j))))
(if (<= y2 -1.65e+180)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_1)))
(if (<= y2 -2.6e+162)
(* k (* y0 (* z (- b (* y2 (/ y5 z))))))
(if (<= y2 -3.2e-16)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))))
(if (<= y2 -8.2e-50)
(* y4 (+ (+ (* b t_4) (* y1 t_6)) (* c (- (* y y3) (* t y2)))))
(if (<= y2 -8e-187)
t_3
(if (<= y2 -1.45e-303)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_4)) (* y0 t_5)))
(if (<= y2 1.3e-165)
(+
(* t_6 t_2)
(+ t_3 (* (- (* t y2) (* y y3)) (- (* a y5) (* c y4)))))
(if (<= y2 4.1e+155)
(*
y0
(+
(+
(* y5 (- (* j y3) (* k y2)))
(* c (- (* x y2) (* z y3))))
(* b t_5)))
(* k (* y2 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 = (i * y1) - (b * y0);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_1));
double t_4 = (t * j) - (y * k);
double t_5 = (z * k) - (x * j);
double t_6 = (k * y2) - (j * y3);
double tmp;
if (y2 <= -3.4e+240) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y2 <= -1.65e+180) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
} else if (y2 <= -2.6e+162) {
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))));
} else if (y2 <= -3.2e-16) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (y2 <= -8.2e-50) {
tmp = y4 * (((b * t_4) + (y1 * t_6)) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -8e-187) {
tmp = t_3;
} else if (y2 <= -1.45e-303) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * t_5));
} else if (y2 <= 1.3e-165) {
tmp = (t_6 * t_2) + (t_3 + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))));
} else if (y2 <= 4.1e+155) {
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5));
} else {
tmp = k * (y2 * 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) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
t_2 = (y1 * y4) - (y0 * y5)
t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_1))
t_4 = (t * j) - (y * k)
t_5 = (z * k) - (x * j)
t_6 = (k * y2) - (j * y3)
if (y2 <= (-3.4d+240)) then
tmp = x * (y0 * ((c * y2) - (b * j)))
else if (y2 <= (-1.65d+180)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1))
else if (y2 <= (-2.6d+162)) then
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))))
else if (y2 <= (-3.2d-16)) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
else if (y2 <= (-8.2d-50)) then
tmp = y4 * (((b * t_4) + (y1 * t_6)) + (c * ((y * y3) - (t * y2))))
else if (y2 <= (-8d-187)) then
tmp = t_3
else if (y2 <= (-1.45d-303)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * t_5))
else if (y2 <= 1.3d-165) then
tmp = (t_6 * t_2) + (t_3 + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))))
else if (y2 <= 4.1d+155) then
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5))
else
tmp = k * (y2 * 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 = (i * y1) - (b * y0);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_1));
double t_4 = (t * j) - (y * k);
double t_5 = (z * k) - (x * j);
double t_6 = (k * y2) - (j * y3);
double tmp;
if (y2 <= -3.4e+240) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y2 <= -1.65e+180) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
} else if (y2 <= -2.6e+162) {
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))));
} else if (y2 <= -3.2e-16) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (y2 <= -8.2e-50) {
tmp = y4 * (((b * t_4) + (y1 * t_6)) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -8e-187) {
tmp = t_3;
} else if (y2 <= -1.45e-303) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * t_5));
} else if (y2 <= 1.3e-165) {
tmp = (t_6 * t_2) + (t_3 + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4))));
} else if (y2 <= 4.1e+155) {
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5));
} else {
tmp = k * (y2 * t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) t_2 = (y1 * y4) - (y0 * y5) t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_1)) t_4 = (t * j) - (y * k) t_5 = (z * k) - (x * j) t_6 = (k * y2) - (j * y3) tmp = 0 if y2 <= -3.4e+240: tmp = x * (y0 * ((c * y2) - (b * j))) elif y2 <= -1.65e+180: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)) elif y2 <= -2.6e+162: tmp = k * (y0 * (z * (b - (y2 * (y5 / z))))) elif y2 <= -3.2e-16: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) elif y2 <= -8.2e-50: tmp = y4 * (((b * t_4) + (y1 * t_6)) + (c * ((y * y3) - (t * y2)))) elif y2 <= -8e-187: tmp = t_3 elif y2 <= -1.45e-303: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * t_5)) elif y2 <= 1.3e-165: tmp = (t_6 * t_2) + (t_3 + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) elif y2 <= 4.1e+155: tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5)) else: tmp = k * (y2 * 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(i * y1) - Float64(b * y0)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(z * t_1))) t_4 = Float64(Float64(t * j) - Float64(y * k)) t_5 = Float64(Float64(z * k) - Float64(x * j)) t_6 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (y2 <= -3.4e+240) tmp = Float64(x * Float64(y0 * Float64(Float64(c * y2) - Float64(b * j)))); elseif (y2 <= -1.65e+180) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_1))); elseif (y2 <= -2.6e+162) tmp = Float64(k * Float64(y0 * Float64(z * Float64(b - Float64(y2 * Float64(y5 / z)))))); elseif (y2 <= -3.2e-16) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); elseif (y2 <= -8.2e-50) tmp = Float64(y4 * Float64(Float64(Float64(b * t_4) + Float64(y1 * t_6)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y2 <= -8e-187) tmp = t_3; elseif (y2 <= -1.45e-303) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_4)) + Float64(y0 * t_5))); elseif (y2 <= 1.3e-165) tmp = Float64(Float64(t_6 * t_2) + Float64(t_3 + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y2 <= 4.1e+155) tmp = Float64(y0 * Float64(Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(b * t_5))); else tmp = Float64(k * Float64(y2 * 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 = (i * y1) - (b * y0); t_2 = (y1 * y4) - (y0 * y5); t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_1)); t_4 = (t * j) - (y * k); t_5 = (z * k) - (x * j); t_6 = (k * y2) - (j * y3); tmp = 0.0; if (y2 <= -3.4e+240) tmp = x * (y0 * ((c * y2) - (b * j))); elseif (y2 <= -1.65e+180) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)); elseif (y2 <= -2.6e+162) tmp = k * (y0 * (z * (b - (y2 * (y5 / z))))); elseif (y2 <= -3.2e-16) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); elseif (y2 <= -8.2e-50) tmp = y4 * (((b * t_4) + (y1 * t_6)) + (c * ((y * y3) - (t * y2)))); elseif (y2 <= -8e-187) tmp = t_3; elseif (y2 <= -1.45e-303) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * t_5)); elseif (y2 <= 1.3e-165) tmp = (t_6 * t_2) + (t_3 + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))); elseif (y2 <= 4.1e+155) tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5)); else tmp = k * (y2 * 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[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.4e+240], N[(x * N[(y0 * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.65e+180], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.6e+162], N[(k * N[(y0 * N[(z * N[(b - N[(y2 * N[(y5 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.2e-16], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.2e-50], N[(y4 * N[(N[(N[(b * t$95$4), $MachinePrecision] + N[(y1 * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8e-187], t$95$3, If[LessEqual[y2, -1.45e-303], 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 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.3e-165], N[(N[(t$95$6 * t$95$2), $MachinePrecision] + N[(t$95$3 + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.1e+155], N[(y0 * N[(N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - z \cdot t\_1\right)\\
t_4 := t \cdot j - y \cdot k\\
t_5 := z \cdot k - x \cdot j\\
t_6 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;y2 \leq -3.4 \cdot 10^{+240}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq -1.65 \cdot 10^{+180}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t\_1\right)\\
\mathbf{elif}\;y2 \leq -2.6 \cdot 10^{+162}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot \left(b - y2 \cdot \frac{y5}{z}\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -3.2 \cdot 10^{-16}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -8.2 \cdot 10^{-50}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_4 + y1 \cdot t\_6\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -8 \cdot 10^{-187}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y2 \leq -1.45 \cdot 10^{-303}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_4\right) + y0 \cdot t\_5\right)\\
\mathbf{elif}\;y2 \leq 1.3 \cdot 10^{-165}:\\
\;\;\;\;t\_6 \cdot t\_2 + \left(t\_3 + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 4.1 \cdot 10^{+155}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot t\_5\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot t\_2\right)\\
\end{array}
\end{array}
if y2 < -3.40000000000000008e240Initial program 28.6%
Taylor expanded in y0 around inf 50.5%
Taylor expanded in x around inf 86.0%
if -3.40000000000000008e240 < y2 < -1.64999999999999995e180Initial program 12.5%
Taylor expanded in x around inf 75.0%
if -1.64999999999999995e180 < y2 < -2.6e162Initial program 20.0%
Taylor expanded in k around inf 40.9%
Taylor expanded in y0 around -inf 60.8%
mul-1-neg60.8%
Simplified60.8%
Taylor expanded in z around inf 80.4%
associate-/l*80.4%
Simplified80.4%
if -2.6e162 < y2 < -3.20000000000000023e-16Initial program 29.4%
Taylor expanded in y3 around -inf 60.6%
if -3.20000000000000023e-16 < y2 < -8.19999999999999971e-50Initial program 29.6%
Taylor expanded in y4 around inf 99.8%
if -8.19999999999999971e-50 < y2 < -8.0000000000000001e-187Initial program 35.7%
Taylor expanded in k around inf 53.4%
Taylor expanded in y2 around 0 53.4%
distribute-lft-out--53.4%
Simplified53.4%
if -8.0000000000000001e-187 < y2 < -1.45000000000000007e-303Initial program 42.1%
Taylor expanded in b around inf 68.6%
if -1.45000000000000007e-303 < y2 < 1.30000000000000004e-165Initial program 37.3%
Taylor expanded in k around -inf 64.1%
mul-1-neg64.1%
Simplified64.1%
if 1.30000000000000004e-165 < y2 < 4.0999999999999998e155Initial program 27.7%
Taylor expanded in y0 around inf 48.0%
if 4.0999999999999998e155 < y2 Initial program 10.0%
Taylor expanded in k around inf 60.0%
Taylor expanded in y2 around inf 80.0%
Final simplification62.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (- (* y (- (* i y5) (* b y4))) (* z (- (* i y1) (* b y0))))))
(t_2
(* y5 (- (* y0 (- (* j y3) (* k y2))) (* a (- (* y y3) (* t y2))))))
(t_3 (* y4 (- (* t j) (* y k))))
(t_4
(*
b
(+ (+ (* a (- (* x y) (* z t))) t_3) (* y0 (- (* z k) (* x j)))))))
(if (<= i -8.5e+261)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= i -3.7e+183)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= i -7.6e+112)
t_1
(if (<= i -2.8e-129)
t_2
(if (<= i -4.5e-195)
(* k (* y0 (* z (- b (* y2 (/ y5 z))))))
(if (<= i 1.65e-238)
t_4
(if (<= i 1e-107)
t_2
(if (<= i 1.45e-21)
t_4
(if (<= i 9e+43)
(* b t_3)
(if (<= i 2.2e+144)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= i 5.2e+213)
t_1
(if (<= i 6e+249)
t_4
(* y (* y5 (- (* i k) (* a y3))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0))));
double t_2 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2))));
double t_3 = y4 * ((t * j) - (y * k));
double t_4 = b * (((a * ((x * y) - (z * t))) + t_3) + (y0 * ((z * k) - (x * j))));
double tmp;
if (i <= -8.5e+261) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (i <= -3.7e+183) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -7.6e+112) {
tmp = t_1;
} else if (i <= -2.8e-129) {
tmp = t_2;
} else if (i <= -4.5e-195) {
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))));
} else if (i <= 1.65e-238) {
tmp = t_4;
} else if (i <= 1e-107) {
tmp = t_2;
} else if (i <= 1.45e-21) {
tmp = t_4;
} else if (i <= 9e+43) {
tmp = b * t_3;
} else if (i <= 2.2e+144) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (i <= 5.2e+213) {
tmp = t_1;
} else if (i <= 6e+249) {
tmp = t_4;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0))))
t_2 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2))))
t_3 = y4 * ((t * j) - (y * k))
t_4 = b * (((a * ((x * y) - (z * t))) + t_3) + (y0 * ((z * k) - (x * j))))
if (i <= (-8.5d+261)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (i <= (-3.7d+183)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (i <= (-7.6d+112)) then
tmp = t_1
else if (i <= (-2.8d-129)) then
tmp = t_2
else if (i <= (-4.5d-195)) then
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))))
else if (i <= 1.65d-238) then
tmp = t_4
else if (i <= 1d-107) then
tmp = t_2
else if (i <= 1.45d-21) then
tmp = t_4
else if (i <= 9d+43) then
tmp = b * t_3
else if (i <= 2.2d+144) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (i <= 5.2d+213) then
tmp = t_1
else if (i <= 6d+249) then
tmp = t_4
else
tmp = y * (y5 * ((i * k) - (a * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0))));
double t_2 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2))));
double t_3 = y4 * ((t * j) - (y * k));
double t_4 = b * (((a * ((x * y) - (z * t))) + t_3) + (y0 * ((z * k) - (x * j))));
double tmp;
if (i <= -8.5e+261) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (i <= -3.7e+183) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (i <= -7.6e+112) {
tmp = t_1;
} else if (i <= -2.8e-129) {
tmp = t_2;
} else if (i <= -4.5e-195) {
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))));
} else if (i <= 1.65e-238) {
tmp = t_4;
} else if (i <= 1e-107) {
tmp = t_2;
} else if (i <= 1.45e-21) {
tmp = t_4;
} else if (i <= 9e+43) {
tmp = b * t_3;
} else if (i <= 2.2e+144) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (i <= 5.2e+213) {
tmp = t_1;
} else if (i <= 6e+249) {
tmp = t_4;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0)))) t_2 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2)))) t_3 = y4 * ((t * j) - (y * k)) t_4 = b * (((a * ((x * y) - (z * t))) + t_3) + (y0 * ((z * k) - (x * j)))) tmp = 0 if i <= -8.5e+261: tmp = y1 * (z * ((a * y3) - (i * k))) elif i <= -3.7e+183: tmp = c * (y * ((y3 * y4) - (x * i))) elif i <= -7.6e+112: tmp = t_1 elif i <= -2.8e-129: tmp = t_2 elif i <= -4.5e-195: tmp = k * (y0 * (z * (b - (y2 * (y5 / z))))) elif i <= 1.65e-238: tmp = t_4 elif i <= 1e-107: tmp = t_2 elif i <= 1.45e-21: tmp = t_4 elif i <= 9e+43: tmp = b * t_3 elif i <= 2.2e+144: tmp = x * (y1 * ((i * j) - (a * y2))) elif i <= 5.2e+213: tmp = t_1 elif i <= 6e+249: tmp = t_4 else: tmp = y * (y5 * ((i * k) - (a * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(z * Float64(Float64(i * y1) - Float64(b * y0))))) t_2 = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(a * Float64(Float64(y * y3) - Float64(t * y2))))) t_3 = Float64(y4 * Float64(Float64(t * j) - Float64(y * k))) t_4 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + t_3) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (i <= -8.5e+261) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (i <= -3.7e+183) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (i <= -7.6e+112) tmp = t_1; elseif (i <= -2.8e-129) tmp = t_2; elseif (i <= -4.5e-195) tmp = Float64(k * Float64(y0 * Float64(z * Float64(b - Float64(y2 * Float64(y5 / z)))))); elseif (i <= 1.65e-238) tmp = t_4; elseif (i <= 1e-107) tmp = t_2; elseif (i <= 1.45e-21) tmp = t_4; elseif (i <= 9e+43) tmp = Float64(b * t_3); elseif (i <= 2.2e+144) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (i <= 5.2e+213) tmp = t_1; elseif (i <= 6e+249) tmp = t_4; else tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0)))); t_2 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2)))); t_3 = y4 * ((t * j) - (y * k)); t_4 = b * (((a * ((x * y) - (z * t))) + t_3) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (i <= -8.5e+261) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (i <= -3.7e+183) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (i <= -7.6e+112) tmp = t_1; elseif (i <= -2.8e-129) tmp = t_2; elseif (i <= -4.5e-195) tmp = k * (y0 * (z * (b - (y2 * (y5 / z))))); elseif (i <= 1.65e-238) tmp = t_4; elseif (i <= 1e-107) tmp = t_2; elseif (i <= 1.45e-21) tmp = t_4; elseif (i <= 9e+43) tmp = b * t_3; elseif (i <= 2.2e+144) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (i <= 5.2e+213) tmp = t_1; elseif (i <= 6e+249) tmp = t_4; else tmp = y * (y5 * ((i * k) - (a * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.5e+261], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.7e+183], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.6e+112], t$95$1, If[LessEqual[i, -2.8e-129], t$95$2, If[LessEqual[i, -4.5e-195], N[(k * N[(y0 * N[(z * N[(b - N[(y2 * N[(y5 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.65e-238], t$95$4, If[LessEqual[i, 1e-107], t$95$2, If[LessEqual[i, 1.45e-21], t$95$4, If[LessEqual[i, 9e+43], N[(b * t$95$3), $MachinePrecision], If[LessEqual[i, 2.2e+144], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e+213], t$95$1, If[LessEqual[i, 6e+249], t$95$4, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - z \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_2 := y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - a \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_3 := y4 \cdot \left(t \cdot j - y \cdot k\right)\\
t_4 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + t\_3\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;i \leq -8.5 \cdot 10^{+261}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{+183}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;i \leq -7.6 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-195}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot \left(b - y2 \cdot \frac{y5}{z}\right)\right)\right)\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{-238}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;i \leq 10^{-107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{-21}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;i \leq 9 \cdot 10^{+43}:\\
\;\;\;\;b \cdot t\_3\\
\mathbf{elif}\;i \leq 2.2 \cdot 10^{+144}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+213}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+249}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\end{array}
\end{array}
if i < -8.5000000000000005e261Initial program 9.1%
Taylor expanded in y1 around inf 64.3%
Taylor expanded in z around inf 73.2%
if -8.5000000000000005e261 < i < -3.7000000000000001e183Initial program 21.1%
Taylor expanded in c around inf 47.6%
Taylor expanded in y around -inf 63.7%
mul-1-neg63.7%
Simplified63.7%
if -3.7000000000000001e183 < i < -7.60000000000000015e112 or 2.19999999999999988e144 < i < 5.19999999999999998e213Initial program 27.6%
Taylor expanded in k around inf 72.6%
Taylor expanded in y2 around 0 72.9%
distribute-lft-out--72.9%
Simplified72.9%
if -7.60000000000000015e112 < i < -2.7999999999999999e-129 or 1.64999999999999985e-238 < i < 1e-107Initial program 21.7%
Taylor expanded in y5 around -inf 53.6%
Taylor expanded in i around 0 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
if -2.7999999999999999e-129 < i < -4.5e-195Initial program 29.9%
Taylor expanded in k around inf 59.3%
Taylor expanded in y0 around -inf 48.8%
mul-1-neg48.8%
Simplified48.8%
Taylor expanded in z around inf 54.2%
associate-/l*65.4%
Simplified65.4%
if -4.5e-195 < i < 1.64999999999999985e-238 or 1e-107 < i < 1.45e-21 or 5.19999999999999998e213 < i < 6.00000000000000032e249Initial program 36.5%
Taylor expanded in b around inf 54.8%
if 1.45e-21 < i < 9e43Initial program 31.8%
Taylor expanded in b around inf 24.1%
Taylor expanded in y4 around inf 55.0%
if 9e43 < i < 2.19999999999999988e144Initial program 38.6%
Taylor expanded in y1 around inf 58.0%
Taylor expanded in x around -inf 57.9%
mul-1-neg57.9%
Simplified57.9%
if 6.00000000000000032e249 < i Initial program 37.5%
Taylor expanded in y5 around -inf 62.5%
Taylor expanded in y around inf 75.0%
distribute-lft-out--75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Final simplification59.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0)))
(t_2
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_1))))
(t_3 (- (* c y2) (* b j)))
(t_4 (- (* y y3) (* t y2)))
(t_5 (* y5 (- (* y0 (- (* j y3) (* k y2))) (* a t_4)))))
(if (<= x -7.2e+228)
t_2
(if (<= x -1.95e+96)
(* y0 (* x t_3))
(if (<= x -8.5e-154)
t_5
(if (<= x -3.8e-219)
(* c (* y4 t_4))
(if (<= x -1.15e-294)
t_5
(if (<= x 4.8e-70)
(* k (- (* y (- (* i y5) (* b y4))) (* z t_1)))
(if (<= x 6e+20)
(* y0 (* j (- (* y3 y5) (* x b))))
(if (<= x 3.7e+120)
(*
i
(+
(* j (* x y1))
(- (* c (- (* z t) (* x y))) (* j (* t y5)))))
(if (<= x 2.45e+159)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= x 1.1e+215)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= x 3.05e+289) t_2 (* x (* y0 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 = (i * y1) - (b * y0);
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
double t_3 = (c * y2) - (b * j);
double t_4 = (y * y3) - (t * y2);
double t_5 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_4));
double tmp;
if (x <= -7.2e+228) {
tmp = t_2;
} else if (x <= -1.95e+96) {
tmp = y0 * (x * t_3);
} else if (x <= -8.5e-154) {
tmp = t_5;
} else if (x <= -3.8e-219) {
tmp = c * (y4 * t_4);
} else if (x <= -1.15e-294) {
tmp = t_5;
} else if (x <= 4.8e-70) {
tmp = k * ((y * ((i * y5) - (b * y4))) - (z * t_1));
} else if (x <= 6e+20) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (x <= 3.7e+120) {
tmp = i * ((j * (x * y1)) + ((c * ((z * t) - (x * y))) - (j * (t * y5))));
} else if (x <= 2.45e+159) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 1.1e+215) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (x <= 3.05e+289) {
tmp = t_2;
} else {
tmp = x * (y0 * 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) :: tmp
t_1 = (i * y1) - (b * y0)
t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1))
t_3 = (c * y2) - (b * j)
t_4 = (y * y3) - (t * y2)
t_5 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_4))
if (x <= (-7.2d+228)) then
tmp = t_2
else if (x <= (-1.95d+96)) then
tmp = y0 * (x * t_3)
else if (x <= (-8.5d-154)) then
tmp = t_5
else if (x <= (-3.8d-219)) then
tmp = c * (y4 * t_4)
else if (x <= (-1.15d-294)) then
tmp = t_5
else if (x <= 4.8d-70) then
tmp = k * ((y * ((i * y5) - (b * y4))) - (z * t_1))
else if (x <= 6d+20) then
tmp = y0 * (j * ((y3 * y5) - (x * b)))
else if (x <= 3.7d+120) then
tmp = i * ((j * (x * y1)) + ((c * ((z * t) - (x * y))) - (j * (t * y5))))
else if (x <= 2.45d+159) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (x <= 1.1d+215) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (x <= 3.05d+289) then
tmp = t_2
else
tmp = x * (y0 * 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 = (i * y1) - (b * y0);
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
double t_3 = (c * y2) - (b * j);
double t_4 = (y * y3) - (t * y2);
double t_5 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_4));
double tmp;
if (x <= -7.2e+228) {
tmp = t_2;
} else if (x <= -1.95e+96) {
tmp = y0 * (x * t_3);
} else if (x <= -8.5e-154) {
tmp = t_5;
} else if (x <= -3.8e-219) {
tmp = c * (y4 * t_4);
} else if (x <= -1.15e-294) {
tmp = t_5;
} else if (x <= 4.8e-70) {
tmp = k * ((y * ((i * y5) - (b * y4))) - (z * t_1));
} else if (x <= 6e+20) {
tmp = y0 * (j * ((y3 * y5) - (x * b)));
} else if (x <= 3.7e+120) {
tmp = i * ((j * (x * y1)) + ((c * ((z * t) - (x * y))) - (j * (t * y5))));
} else if (x <= 2.45e+159) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (x <= 1.1e+215) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (x <= 3.05e+289) {
tmp = t_2;
} else {
tmp = x * (y0 * t_3);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)) t_3 = (c * y2) - (b * j) t_4 = (y * y3) - (t * y2) t_5 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_4)) tmp = 0 if x <= -7.2e+228: tmp = t_2 elif x <= -1.95e+96: tmp = y0 * (x * t_3) elif x <= -8.5e-154: tmp = t_5 elif x <= -3.8e-219: tmp = c * (y4 * t_4) elif x <= -1.15e-294: tmp = t_5 elif x <= 4.8e-70: tmp = k * ((y * ((i * y5) - (b * y4))) - (z * t_1)) elif x <= 6e+20: tmp = y0 * (j * ((y3 * y5) - (x * b))) elif x <= 3.7e+120: tmp = i * ((j * (x * y1)) + ((c * ((z * t) - (x * y))) - (j * (t * y5)))) elif x <= 2.45e+159: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif x <= 1.1e+215: tmp = y * (y5 * ((i * k) - (a * y3))) elif x <= 3.05e+289: tmp = t_2 else: tmp = x * (y0 * 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(i * y1) - Float64(b * y0)) t_2 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_1))) t_3 = Float64(Float64(c * y2) - Float64(b * j)) t_4 = Float64(Float64(y * y3) - Float64(t * y2)) t_5 = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(a * t_4))) tmp = 0.0 if (x <= -7.2e+228) tmp = t_2; elseif (x <= -1.95e+96) tmp = Float64(y0 * Float64(x * t_3)); elseif (x <= -8.5e-154) tmp = t_5; elseif (x <= -3.8e-219) tmp = Float64(c * Float64(y4 * t_4)); elseif (x <= -1.15e-294) tmp = t_5; elseif (x <= 4.8e-70) tmp = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(z * t_1))); elseif (x <= 6e+20) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (x <= 3.7e+120) tmp = Float64(i * Float64(Float64(j * Float64(x * y1)) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(j * Float64(t * y5))))); elseif (x <= 2.45e+159) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (x <= 1.1e+215) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (x <= 3.05e+289) tmp = t_2; else tmp = Float64(x * Float64(y0 * 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 = (i * y1) - (b * y0); t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)); t_3 = (c * y2) - (b * j); t_4 = (y * y3) - (t * y2); t_5 = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_4)); tmp = 0.0; if (x <= -7.2e+228) tmp = t_2; elseif (x <= -1.95e+96) tmp = y0 * (x * t_3); elseif (x <= -8.5e-154) tmp = t_5; elseif (x <= -3.8e-219) tmp = c * (y4 * t_4); elseif (x <= -1.15e-294) tmp = t_5; elseif (x <= 4.8e-70) tmp = k * ((y * ((i * y5) - (b * y4))) - (z * t_1)); elseif (x <= 6e+20) tmp = y0 * (j * ((y3 * y5) - (x * b))); elseif (x <= 3.7e+120) tmp = i * ((j * (x * y1)) + ((c * ((z * t) - (x * y))) - (j * (t * y5)))); elseif (x <= 2.45e+159) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (x <= 1.1e+215) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (x <= 3.05e+289) tmp = t_2; else tmp = x * (y0 * 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[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7.2e+228], t$95$2, If[LessEqual[x, -1.95e+96], N[(y0 * N[(x * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.5e-154], t$95$5, If[LessEqual[x, -3.8e-219], N[(c * N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.15e-294], t$95$5, If[LessEqual[x, 4.8e-70], N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e+20], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e+120], N[(i * N[(N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.45e+159], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+215], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.05e+289], t$95$2, N[(x * N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
t_2 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t\_1\right)\\
t_3 := c \cdot y2 - b \cdot j\\
t_4 := y \cdot y3 - t \cdot y2\\
t_5 := y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - a \cdot t\_4\right)\\
\mathbf{if}\;x \leq -7.2 \cdot 10^{+228}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -1.95 \cdot 10^{+96}:\\
\;\;\;\;y0 \cdot \left(x \cdot t\_3\right)\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-154}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-219}:\\
\;\;\;\;c \cdot \left(y4 \cdot t\_4\right)\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{-294}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-70}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - z \cdot t\_1\right)\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+20}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+120}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) - j \cdot \left(t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;x \leq 2.45 \cdot 10^{+159}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+215}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+289}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y0 \cdot t\_3\right)\\
\end{array}
\end{array}
if x < -7.2e228 or 1.1000000000000001e215 < x < 3.05000000000000014e289Initial program 21.1%
Taylor expanded in x around inf 62.1%
if -7.2e228 < x < -1.95e96Initial program 7.8%
Taylor expanded in y0 around inf 45.2%
Taylor expanded in x around inf 59.1%
if -1.95e96 < x < -8.4999999999999996e-154 or -3.80000000000000025e-219 < x < -1.15000000000000008e-294Initial program 34.1%
Taylor expanded in y5 around -inf 56.6%
Taylor expanded in i around 0 51.6%
*-commutative51.6%
*-commutative51.6%
Simplified51.6%
if -8.4999999999999996e-154 < x < -3.80000000000000025e-219Initial program 39.0%
Taylor expanded in c around inf 39.1%
Taylor expanded in y4 around inf 46.9%
if -1.15000000000000008e-294 < x < 4.8000000000000002e-70Initial program 40.3%
Taylor expanded in k around inf 54.6%
Taylor expanded in y2 around 0 56.7%
distribute-lft-out--56.7%
Simplified56.7%
if 4.8000000000000002e-70 < x < 6e20Initial program 38.6%
Taylor expanded in y0 around inf 62.3%
Taylor expanded in j around inf 57.9%
*-commutative57.9%
Simplified57.9%
if 6e20 < x < 3.70000000000000024e120Initial program 26.2%
Taylor expanded in i around -inf 37.5%
Taylor expanded in k around 0 53.1%
if 3.70000000000000024e120 < x < 2.4499999999999998e159Initial program 14.3%
Taylor expanded in k around inf 58.4%
Taylor expanded in y2 around inf 87.0%
if 2.4499999999999998e159 < x < 1.1000000000000001e215Initial program 23.5%
Taylor expanded in y5 around -inf 47.3%
Taylor expanded in y around inf 70.9%
distribute-lft-out--70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
if 3.05000000000000014e289 < x Initial program 14.3%
Taylor expanded in y0 around inf 100.0%
Taylor expanded in x around inf 100.0%
Final simplification58.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* i y1) (* b y0)))
(t_3 (* k (- (* y (- (* i y5) (* b y4))) (* z t_2))))
(t_4
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_2)))))
(if (<= y2 -5.6e+240)
(* x (* y0 (- (* c y2) (* b j))))
(if (<= y2 -1.55e+180)
t_4
(if (<= y2 -2.9e+162)
(* k (* y0 (* z (- b (* y2 (/ y5 z))))))
(if (<= y2 -4.8e-15)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))))
(if (<= y2 -2.8e-53)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= y2 -1.4e-194)
t_3
(if (<= y2 2.3e-291)
t_4
(if (<= y2 7e-136)
t_3
(if (<= y2 5.5e+172)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j)))))
(* k (* y2 (- (* y1 y4) (* y0 y5)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (i * y1) - (b * y0);
double t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_2));
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_2));
double tmp;
if (y2 <= -5.6e+240) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y2 <= -1.55e+180) {
tmp = t_4;
} else if (y2 <= -2.9e+162) {
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))));
} else if (y2 <= -4.8e-15) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (y2 <= -2.8e-53) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -1.4e-194) {
tmp = t_3;
} else if (y2 <= 2.3e-291) {
tmp = t_4;
} else if (y2 <= 7e-136) {
tmp = t_3;
} else if (y2 <= 5.5e+172) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (i * y1) - (b * y0)
t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_2))
t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_2))
if (y2 <= (-5.6d+240)) then
tmp = x * (y0 * ((c * y2) - (b * j)))
else if (y2 <= (-1.55d+180)) then
tmp = t_4
else if (y2 <= (-2.9d+162)) then
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))))
else if (y2 <= (-4.8d-15)) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
else if (y2 <= (-2.8d-53)) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (y2 <= (-1.4d-194)) then
tmp = t_3
else if (y2 <= 2.3d-291) then
tmp = t_4
else if (y2 <= 7d-136) then
tmp = t_3
else if (y2 <= 5.5d+172) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (i * y1) - (b * y0);
double t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_2));
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_2));
double tmp;
if (y2 <= -5.6e+240) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y2 <= -1.55e+180) {
tmp = t_4;
} else if (y2 <= -2.9e+162) {
tmp = k * (y0 * (z * (b - (y2 * (y5 / z)))));
} else if (y2 <= -4.8e-15) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (y2 <= -2.8e-53) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y2 <= -1.4e-194) {
tmp = t_3;
} else if (y2 <= 2.3e-291) {
tmp = t_4;
} else if (y2 <= 7e-136) {
tmp = t_3;
} else if (y2 <= 5.5e+172) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (i * y1) - (b * y0) t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_2)) t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_2)) tmp = 0 if y2 <= -5.6e+240: tmp = x * (y0 * ((c * y2) - (b * j))) elif y2 <= -1.55e+180: tmp = t_4 elif y2 <= -2.9e+162: tmp = k * (y0 * (z * (b - (y2 * (y5 / z))))) elif y2 <= -4.8e-15: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) elif y2 <= -2.8e-53: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif y2 <= -1.4e-194: tmp = t_3 elif y2 <= 2.3e-291: tmp = t_4 elif y2 <= 7e-136: tmp = t_3 elif y2 <= 5.5e+172: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(i * y1) - Float64(b * y0)) t_3 = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(z * t_2))) t_4 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_2))) tmp = 0.0 if (y2 <= -5.6e+240) tmp = Float64(x * Float64(y0 * Float64(Float64(c * y2) - Float64(b * j)))); elseif (y2 <= -1.55e+180) tmp = t_4; elseif (y2 <= -2.9e+162) tmp = Float64(k * Float64(y0 * Float64(z * Float64(b - Float64(y2 * Float64(y5 / z)))))); elseif (y2 <= -4.8e-15) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); elseif (y2 <= -2.8e-53) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y2 <= -1.4e-194) tmp = t_3; elseif (y2 <= 2.3e-291) tmp = t_4; elseif (y2 <= 7e-136) tmp = t_3; elseif (y2 <= 5.5e+172) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (i * y1) - (b * y0); t_3 = k * ((y * ((i * y5) - (b * y4))) - (z * t_2)); t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_2)); tmp = 0.0; if (y2 <= -5.6e+240) tmp = x * (y0 * ((c * y2) - (b * j))); elseif (y2 <= -1.55e+180) tmp = t_4; elseif (y2 <= -2.9e+162) tmp = k * (y0 * (z * (b - (y2 * (y5 / z))))); elseif (y2 <= -4.8e-15) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); elseif (y2 <= -2.8e-53) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (y2 <= -1.4e-194) tmp = t_3; elseif (y2 <= 2.3e-291) tmp = t_4; elseif (y2 <= 7e-136) tmp = t_3; elseif (y2 <= 5.5e+172) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -5.6e+240], N[(x * N[(y0 * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.55e+180], t$95$4, If[LessEqual[y2, -2.9e+162], N[(k * N[(y0 * N[(z * N[(b - N[(y2 * N[(y5 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.8e-15], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.8e-53], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.4e-194], t$95$3, If[LessEqual[y2, 2.3e-291], t$95$4, If[LessEqual[y2, 7e-136], t$95$3, If[LessEqual[y2, 5.5e+172], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := i \cdot y1 - b \cdot y0\\
t_3 := k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - z \cdot t\_2\right)\\
t_4 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t\_2\right)\\
\mathbf{if}\;y2 \leq -5.6 \cdot 10^{+240}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq -1.55 \cdot 10^{+180}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y2 \leq -2.9 \cdot 10^{+162}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot \left(b - y2 \cdot \frac{y5}{z}\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -4.8 \cdot 10^{-15}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-53}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -1.4 \cdot 10^{-194}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y2 \leq 2.3 \cdot 10^{-291}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y2 \leq 7 \cdot 10^{-136}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y2 \leq 5.5 \cdot 10^{+172}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -5.6000000000000002e240Initial program 28.6%
Taylor expanded in y0 around inf 50.5%
Taylor expanded in x around inf 86.0%
if -5.6000000000000002e240 < y2 < -1.54999999999999999e180 or -1.40000000000000006e-194 < y2 < 2.3000000000000001e-291Initial program 29.7%
Taylor expanded in x around inf 65.2%
if -1.54999999999999999e180 < y2 < -2.90000000000000006e162Initial program 20.0%
Taylor expanded in k around inf 40.9%
Taylor expanded in y0 around -inf 60.8%
mul-1-neg60.8%
Simplified60.8%
Taylor expanded in z around inf 80.4%
associate-/l*80.4%
Simplified80.4%
if -2.90000000000000006e162 < y2 < -4.7999999999999999e-15Initial program 29.4%
Taylor expanded in y3 around -inf 60.6%
if -4.7999999999999999e-15 < y2 < -2.79999999999999985e-53Initial program 29.6%
Taylor expanded in y4 around inf 99.8%
if -2.79999999999999985e-53 < y2 < -1.40000000000000006e-194 or 2.3000000000000001e-291 < y2 < 7.00000000000000058e-136Initial program 34.4%
Taylor expanded in k around inf 51.4%
Taylor expanded in y2 around 0 52.7%
distribute-lft-out--52.7%
Simplified52.7%
if 7.00000000000000058e-136 < y2 < 5.4999999999999999e172Initial program 27.0%
Taylor expanded in b around inf 43.9%
if 5.4999999999999999e172 < y2 Initial program 11.8%
Taylor expanded in k around inf 70.6%
Taylor expanded in y2 around inf 88.3%
Final simplification59.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (* y4 t_1))
(t_3
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(+ (* y0 (- (* j y3) (* k y2))) (* i (- (* y k) (* t j)))))))
(t_4 (- (* x y) (* z t))))
(if (<= y5 -9.8e+107)
t_3
(if (<= y5 -6.2e+38)
(* k (* y0 (- (* z b) (* y2 y5))))
(if (<= y5 -12500.0)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y5 -3.1e-99)
(* a (* b t_4))
(if (<= y5 -2.1e-232)
(* b (+ (+ (* a t_4) t_2) (* y0 (- (* z k) (* x j)))))
(if (<= y5 4.5e-293)
(* x (* y0 (- (* c y2) (* b j))))
(if (<= y5 6.9e-245)
(* b t_2)
(if (<= y5 2.6e-22)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = y4 * t_1;
double t_3 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))));
double t_4 = (x * y) - (z * t);
double tmp;
if (y5 <= -9.8e+107) {
tmp = t_3;
} else if (y5 <= -6.2e+38) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -12500.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -3.1e-99) {
tmp = a * (b * t_4);
} else if (y5 <= -2.1e-232) {
tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j))));
} else if (y5 <= 4.5e-293) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y5 <= 6.9e-245) {
tmp = b * t_2;
} else if (y5 <= 2.6e-22) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = y4 * t_1
t_3 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))))
t_4 = (x * y) - (z * t)
if (y5 <= (-9.8d+107)) then
tmp = t_3
else if (y5 <= (-6.2d+38)) then
tmp = k * (y0 * ((z * b) - (y2 * y5)))
else if (y5 <= (-12500.0d0)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y5 <= (-3.1d-99)) then
tmp = a * (b * t_4)
else if (y5 <= (-2.1d-232)) then
tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j))))
else if (y5 <= 4.5d-293) then
tmp = x * (y0 * ((c * y2) - (b * j)))
else if (y5 <= 6.9d-245) then
tmp = b * t_2
else if (y5 <= 2.6d-22) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = y4 * t_1;
double t_3 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))));
double t_4 = (x * y) - (z * t);
double tmp;
if (y5 <= -9.8e+107) {
tmp = t_3;
} else if (y5 <= -6.2e+38) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -12500.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -3.1e-99) {
tmp = a * (b * t_4);
} else if (y5 <= -2.1e-232) {
tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j))));
} else if (y5 <= 4.5e-293) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y5 <= 6.9e-245) {
tmp = b * t_2;
} else if (y5 <= 2.6e-22) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = y4 * t_1 t_3 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j))))) t_4 = (x * y) - (z * t) tmp = 0 if y5 <= -9.8e+107: tmp = t_3 elif y5 <= -6.2e+38: tmp = k * (y0 * ((z * b) - (y2 * y5))) elif y5 <= -12500.0: tmp = c * (y * ((y3 * y4) - (x * i))) elif y5 <= -3.1e-99: tmp = a * (b * t_4) elif y5 <= -2.1e-232: tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j)))) elif y5 <= 4.5e-293: tmp = x * (y0 * ((c * y2) - (b * j))) elif y5 <= 6.9e-245: tmp = b * t_2 elif y5 <= 2.6e-22: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) 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(t * j) - Float64(y * k)) t_2 = Float64(y4 * t_1) t_3 = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(i * Float64(Float64(y * k) - Float64(t * j)))))) t_4 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y5 <= -9.8e+107) tmp = t_3; elseif (y5 <= -6.2e+38) tmp = Float64(k * Float64(y0 * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y5 <= -12500.0) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y5 <= -3.1e-99) tmp = Float64(a * Float64(b * t_4)); elseif (y5 <= -2.1e-232) tmp = Float64(b * Float64(Float64(Float64(a * t_4) + t_2) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y5 <= 4.5e-293) tmp = Float64(x * Float64(y0 * Float64(Float64(c * y2) - Float64(b * j)))); elseif (y5 <= 6.9e-245) tmp = Float64(b * t_2); elseif (y5 <= 2.6e-22) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = y4 * t_1; t_3 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j))))); t_4 = (x * y) - (z * t); tmp = 0.0; if (y5 <= -9.8e+107) tmp = t_3; elseif (y5 <= -6.2e+38) tmp = k * (y0 * ((z * b) - (y2 * y5))); elseif (y5 <= -12500.0) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y5 <= -3.1e-99) tmp = a * (b * t_4); elseif (y5 <= -2.1e-232) tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j)))); elseif (y5 <= 4.5e-293) tmp = x * (y0 * ((c * y2) - (b * j))); elseif (y5 <= 6.9e-245) tmp = b * t_2; elseif (y5 <= 2.6e-22) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); 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[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -9.8e+107], t$95$3, If[LessEqual[y5, -6.2e+38], N[(k * N[(y0 * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -12500.0], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.1e-99], N[(a * N[(b * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.1e-232], N[(b * N[(N[(N[(a * t$95$4), $MachinePrecision] + t$95$2), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.5e-293], N[(x * N[(y0 * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.9e-245], N[(b * t$95$2), $MachinePrecision], If[LessEqual[y5, 2.6e-22], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := y4 \cdot t\_1\\
t_3 := y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) + i \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\
t_4 := x \cdot y - z \cdot t\\
\mathbf{if}\;y5 \leq -9.8 \cdot 10^{+107}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y5 \leq -6.2 \cdot 10^{+38}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -12500:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-99}:\\
\;\;\;\;a \cdot \left(b \cdot t\_4\right)\\
\mathbf{elif}\;y5 \leq -2.1 \cdot 10^{-232}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_4 + t\_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y5 \leq 4.5 \cdot 10^{-293}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;y5 \leq 6.9 \cdot 10^{-245}:\\
\;\;\;\;b \cdot t\_2\\
\mathbf{elif}\;y5 \leq 2.6 \cdot 10^{-22}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y5 < -9.8000000000000003e107 or 2.6e-22 < y5 Initial program 29.6%
Taylor expanded in y5 around -inf 56.3%
if -9.8000000000000003e107 < y5 < -6.20000000000000035e38Initial program 19.1%
Taylor expanded in k around inf 56.5%
Taylor expanded in y0 around -inf 75.1%
mul-1-neg75.1%
Simplified75.1%
if -6.20000000000000035e38 < y5 < -12500Initial program 41.7%
Taylor expanded in c around inf 50.1%
Taylor expanded in y around -inf 75.3%
mul-1-neg75.3%
Simplified75.3%
if -12500 < y5 < -3.0999999999999999e-99Initial program 18.8%
Taylor expanded in b around inf 18.8%
Taylor expanded in a around inf 63.1%
if -3.0999999999999999e-99 < y5 < -2.1e-232Initial program 43.7%
Taylor expanded in b around inf 53.2%
if -2.1e-232 < y5 < 4.5000000000000002e-293Initial program 33.2%
Taylor expanded in y0 around inf 56.4%
Taylor expanded in x around inf 62.1%
if 4.5000000000000002e-293 < y5 < 6.8999999999999997e-245Initial program 9.8%
Taylor expanded in b around inf 27.7%
Taylor expanded in y4 around inf 55.2%
if 6.8999999999999997e-245 < y5 < 2.6e-22Initial program 26.9%
Taylor expanded in y4 around inf 53.5%
Final simplification58.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (* y4 t_1))
(t_3 (- (* y y3) (* t y2)))
(t_4 (- (* x y) (* z t))))
(if (<= y5 -3.7e+114)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= y5 -2.45e+38)
(* k (* y0 (- (* z b) (* y2 y5))))
(if (<= y5 -630.0)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y5 -1.4e-95)
(* a (* b t_4))
(if (<= y5 -2.1e-232)
(* b (+ (+ (* a t_4) t_2) (* y0 (- (* z k) (* x j)))))
(if (<= y5 3.8e-293)
(* x (* y0 (- (* c y2) (* b j))))
(if (<= y5 5.4e-244)
(* b t_2)
(if (<= y5 4.35e-147)
(*
y4
(+ (+ (* b t_1) (* y1 (- (* k y2) (* j y3)))) (* c t_3)))
(if (<= y5 6.5e+67)
(*
k
(-
(* y (- (* i y5) (* b y4)))
(* z (- (* i y1) (* b y0)))))
(*
y5
(- (* y0 (- (* j y3) (* k y2))) (* a t_3))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = y4 * t_1;
double t_3 = (y * y3) - (t * y2);
double t_4 = (x * y) - (z * t);
double tmp;
if (y5 <= -3.7e+114) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (y5 <= -2.45e+38) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -630.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -1.4e-95) {
tmp = a * (b * t_4);
} else if (y5 <= -2.1e-232) {
tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j))));
} else if (y5 <= 3.8e-293) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y5 <= 5.4e-244) {
tmp = b * t_2;
} else if (y5 <= 4.35e-147) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3));
} else if (y5 <= 6.5e+67) {
tmp = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0))));
} else {
tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = y4 * t_1
t_3 = (y * y3) - (t * y2)
t_4 = (x * y) - (z * t)
if (y5 <= (-3.7d+114)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (y5 <= (-2.45d+38)) then
tmp = k * (y0 * ((z * b) - (y2 * y5)))
else if (y5 <= (-630.0d0)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y5 <= (-1.4d-95)) then
tmp = a * (b * t_4)
else if (y5 <= (-2.1d-232)) then
tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j))))
else if (y5 <= 3.8d-293) then
tmp = x * (y0 * ((c * y2) - (b * j)))
else if (y5 <= 5.4d-244) then
tmp = b * t_2
else if (y5 <= 4.35d-147) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3))
else if (y5 <= 6.5d+67) then
tmp = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0))))
else
tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = y4 * t_1;
double t_3 = (y * y3) - (t * y2);
double t_4 = (x * y) - (z * t);
double tmp;
if (y5 <= -3.7e+114) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (y5 <= -2.45e+38) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -630.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -1.4e-95) {
tmp = a * (b * t_4);
} else if (y5 <= -2.1e-232) {
tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j))));
} else if (y5 <= 3.8e-293) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y5 <= 5.4e-244) {
tmp = b * t_2;
} else if (y5 <= 4.35e-147) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3));
} else if (y5 <= 6.5e+67) {
tmp = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0))));
} else {
tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = y4 * t_1 t_3 = (y * y3) - (t * y2) t_4 = (x * y) - (z * t) tmp = 0 if y5 <= -3.7e+114: tmp = a * (y5 * ((t * y2) - (y * y3))) elif y5 <= -2.45e+38: tmp = k * (y0 * ((z * b) - (y2 * y5))) elif y5 <= -630.0: tmp = c * (y * ((y3 * y4) - (x * i))) elif y5 <= -1.4e-95: tmp = a * (b * t_4) elif y5 <= -2.1e-232: tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j)))) elif y5 <= 3.8e-293: tmp = x * (y0 * ((c * y2) - (b * j))) elif y5 <= 5.4e-244: tmp = b * t_2 elif y5 <= 4.35e-147: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3)) elif y5 <= 6.5e+67: tmp = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0)))) else: tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * t_3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(y4 * t_1) t_3 = Float64(Float64(y * y3) - Float64(t * y2)) t_4 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y5 <= -3.7e+114) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (y5 <= -2.45e+38) tmp = Float64(k * Float64(y0 * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y5 <= -630.0) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y5 <= -1.4e-95) tmp = Float64(a * Float64(b * t_4)); elseif (y5 <= -2.1e-232) tmp = Float64(b * Float64(Float64(Float64(a * t_4) + t_2) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y5 <= 3.8e-293) tmp = Float64(x * Float64(y0 * Float64(Float64(c * y2) - Float64(b * j)))); elseif (y5 <= 5.4e-244) tmp = Float64(b * t_2); elseif (y5 <= 4.35e-147) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_3))); elseif (y5 <= 6.5e+67) tmp = Float64(k * Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(z * Float64(Float64(i * y1) - Float64(b * y0))))); else tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(a * t_3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = y4 * t_1; t_3 = (y * y3) - (t * y2); t_4 = (x * y) - (z * t); tmp = 0.0; if (y5 <= -3.7e+114) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (y5 <= -2.45e+38) tmp = k * (y0 * ((z * b) - (y2 * y5))); elseif (y5 <= -630.0) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y5 <= -1.4e-95) tmp = a * (b * t_4); elseif (y5 <= -2.1e-232) tmp = b * (((a * t_4) + t_2) + (y0 * ((z * k) - (x * j)))); elseif (y5 <= 3.8e-293) tmp = x * (y0 * ((c * y2) - (b * j))); elseif (y5 <= 5.4e-244) tmp = b * t_2; elseif (y5 <= 4.35e-147) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_3)); elseif (y5 <= 6.5e+67) tmp = k * ((y * ((i * y5) - (b * y4))) - (z * ((i * y1) - (b * y0)))); else tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * 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[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -3.7e+114], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.45e+38], N[(k * N[(y0 * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -630.0], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.4e-95], N[(a * N[(b * t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.1e-232], N[(b * N[(N[(N[(a * t$95$4), $MachinePrecision] + t$95$2), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.8e-293], N[(x * N[(y0 * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.4e-244], N[(b * t$95$2), $MachinePrecision], If[LessEqual[y5, 4.35e-147], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.5e+67], N[(k * N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := y4 \cdot t\_1\\
t_3 := y \cdot y3 - t \cdot y2\\
t_4 := x \cdot y - z \cdot t\\
\mathbf{if}\;y5 \leq -3.7 \cdot 10^{+114}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y5 \leq -2.45 \cdot 10^{+38}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -630:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -1.4 \cdot 10^{-95}:\\
\;\;\;\;a \cdot \left(b \cdot t\_4\right)\\
\mathbf{elif}\;y5 \leq -2.1 \cdot 10^{-232}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_4 + t\_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y5 \leq 3.8 \cdot 10^{-293}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;y5 \leq 5.4 \cdot 10^{-244}:\\
\;\;\;\;b \cdot t\_2\\
\mathbf{elif}\;y5 \leq 4.35 \cdot 10^{-147}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t\_3\right)\\
\mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+67}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - z \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - a \cdot t\_3\right)\\
\end{array}
\end{array}
if y5 < -3.7000000000000001e114Initial program 26.5%
Taylor expanded in y5 around -inf 54.7%
Taylor expanded in a around inf 53.2%
if -3.7000000000000001e114 < y5 < -2.45000000000000001e38Initial program 23.1%
Taylor expanded in k around inf 55.9%
Taylor expanded in y0 around -inf 67.2%
mul-1-neg67.2%
Simplified67.2%
if -2.45000000000000001e38 < y5 < -630Initial program 41.7%
Taylor expanded in c around inf 50.1%
Taylor expanded in y around -inf 75.3%
mul-1-neg75.3%
Simplified75.3%
if -630 < y5 < -1.4e-95Initial program 18.8%
Taylor expanded in b around inf 18.8%
Taylor expanded in a around inf 63.1%
if -1.4e-95 < y5 < -2.1e-232Initial program 43.7%
Taylor expanded in b around inf 53.2%
if -2.1e-232 < y5 < 3.8e-293Initial program 33.2%
Taylor expanded in y0 around inf 56.4%
Taylor expanded in x around inf 62.1%
if 3.8e-293 < y5 < 5.3999999999999999e-244Initial program 9.8%
Taylor expanded in b around inf 27.7%
Taylor expanded in y4 around inf 55.2%
if 5.3999999999999999e-244 < y5 < 4.3500000000000002e-147Initial program 35.9%
Taylor expanded in y4 around inf 70.6%
if 4.3500000000000002e-147 < y5 < 6.4999999999999995e67Initial program 26.2%
Taylor expanded in k around inf 55.3%
Taylor expanded in y2 around 0 52.9%
distribute-lft-out--52.9%
Simplified52.9%
if 6.4999999999999995e67 < y5 Initial program 29.3%
Taylor expanded in y5 around -inf 58.8%
Taylor expanded in i around 0 52.7%
*-commutative52.7%
*-commutative52.7%
Simplified52.7%
Final simplification57.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* j y3) (* k y2)))
(t_3 (- (* z k) (* x j)))
(t_4
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(+ (* y0 t_2) (* i (- (* y k) (* t j)))))))
(t_5 (- (* x y) (* z t))))
(if (<= y5 -2.3e+109)
t_4
(if (<= y5 -1.32e+38)
(* k (* y0 (- (* z b) (* y2 y5))))
(if (<= y5 -1720000.0)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y5 -1e-96)
(* a (* b t_5))
(if (<= y5 -2.8e-231)
(* b (+ (+ (* a t_5) (* y4 t_1)) (* y0 t_3)))
(if (<= y5 7.5e-243)
(* y0 (+ (+ (* y5 t_2) (* c (- (* x y2) (* z y3)))) (* b t_3)))
(if (<= y5 1.95e-21)
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
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 = (t * j) - (y * k);
double t_2 = (j * y3) - (k * y2);
double t_3 = (z * k) - (x * j);
double t_4 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) + (i * ((y * k) - (t * j)))));
double t_5 = (x * y) - (z * t);
double tmp;
if (y5 <= -2.3e+109) {
tmp = t_4;
} else if (y5 <= -1.32e+38) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -1720000.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -1e-96) {
tmp = a * (b * t_5);
} else if (y5 <= -2.8e-231) {
tmp = b * (((a * t_5) + (y4 * t_1)) + (y0 * t_3));
} else if (y5 <= 7.5e-243) {
tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * t_3));
} else if (y5 <= 1.95e-21) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (j * y3) - (k * y2)
t_3 = (z * k) - (x * j)
t_4 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) + (i * ((y * k) - (t * j)))))
t_5 = (x * y) - (z * t)
if (y5 <= (-2.3d+109)) then
tmp = t_4
else if (y5 <= (-1.32d+38)) then
tmp = k * (y0 * ((z * b) - (y2 * y5)))
else if (y5 <= (-1720000.0d0)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y5 <= (-1d-96)) then
tmp = a * (b * t_5)
else if (y5 <= (-2.8d-231)) then
tmp = b * (((a * t_5) + (y4 * t_1)) + (y0 * t_3))
else if (y5 <= 7.5d-243) then
tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * t_3))
else if (y5 <= 1.95d-21) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
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 = (t * j) - (y * k);
double t_2 = (j * y3) - (k * y2);
double t_3 = (z * k) - (x * j);
double t_4 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) + (i * ((y * k) - (t * j)))));
double t_5 = (x * y) - (z * t);
double tmp;
if (y5 <= -2.3e+109) {
tmp = t_4;
} else if (y5 <= -1.32e+38) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -1720000.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -1e-96) {
tmp = a * (b * t_5);
} else if (y5 <= -2.8e-231) {
tmp = b * (((a * t_5) + (y4 * t_1)) + (y0 * t_3));
} else if (y5 <= 7.5e-243) {
tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * t_3));
} else if (y5 <= 1.95e-21) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} 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 = (t * j) - (y * k) t_2 = (j * y3) - (k * y2) t_3 = (z * k) - (x * j) t_4 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) + (i * ((y * k) - (t * j))))) t_5 = (x * y) - (z * t) tmp = 0 if y5 <= -2.3e+109: tmp = t_4 elif y5 <= -1.32e+38: tmp = k * (y0 * ((z * b) - (y2 * y5))) elif y5 <= -1720000.0: tmp = c * (y * ((y3 * y4) - (x * i))) elif y5 <= -1e-96: tmp = a * (b * t_5) elif y5 <= -2.8e-231: tmp = b * (((a * t_5) + (y4 * t_1)) + (y0 * t_3)) elif y5 <= 7.5e-243: tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * t_3)) elif y5 <= 1.95e-21: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) 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(t * j) - Float64(y * k)) t_2 = Float64(Float64(j * y3) - Float64(k * y2)) t_3 = Float64(Float64(z * k) - Float64(x * j)) t_4 = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * t_2) + Float64(i * Float64(Float64(y * k) - Float64(t * j)))))) t_5 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y5 <= -2.3e+109) tmp = t_4; elseif (y5 <= -1.32e+38) tmp = Float64(k * Float64(y0 * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y5 <= -1720000.0) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y5 <= -1e-96) tmp = Float64(a * Float64(b * t_5)); elseif (y5 <= -2.8e-231) tmp = Float64(b * Float64(Float64(Float64(a * t_5) + Float64(y4 * t_1)) + Float64(y0 * t_3))); elseif (y5 <= 7.5e-243) tmp = Float64(y0 * Float64(Float64(Float64(y5 * t_2) + Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(b * t_3))); elseif (y5 <= 1.95e-21) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); 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 = (t * j) - (y * k); t_2 = (j * y3) - (k * y2); t_3 = (z * k) - (x * j); t_4 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * t_2) + (i * ((y * k) - (t * j))))); t_5 = (x * y) - (z * t); tmp = 0.0; if (y5 <= -2.3e+109) tmp = t_4; elseif (y5 <= -1.32e+38) tmp = k * (y0 * ((z * b) - (y2 * y5))); elseif (y5 <= -1720000.0) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y5 <= -1e-96) tmp = a * (b * t_5); elseif (y5 <= -2.8e-231) tmp = b * (((a * t_5) + (y4 * t_1)) + (y0 * t_3)); elseif (y5 <= 7.5e-243) tmp = y0 * (((y5 * t_2) + (c * ((x * y2) - (z * y3)))) + (b * t_3)); elseif (y5 <= 1.95e-21) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); 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[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * t$95$2), $MachinePrecision] + N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.3e+109], t$95$4, If[LessEqual[y5, -1.32e+38], N[(k * N[(y0 * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1720000.0], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1e-96], N[(a * N[(b * t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.8e-231], N[(b * N[(N[(N[(a * t$95$5), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7.5e-243], N[(y0 * N[(N[(N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.95e-21], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := j \cdot y3 - k \cdot y2\\
t_3 := z \cdot k - x \cdot j\\
t_4 := y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot t\_2 + i \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\
t_5 := x \cdot y - z \cdot t\\
\mathbf{if}\;y5 \leq -2.3 \cdot 10^{+109}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y5 \leq -1.32 \cdot 10^{+38}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -1720000:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -1 \cdot 10^{-96}:\\
\;\;\;\;a \cdot \left(b \cdot t\_5\right)\\
\mathbf{elif}\;y5 \leq -2.8 \cdot 10^{-231}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_5 + y4 \cdot t\_1\right) + y0 \cdot t\_3\right)\\
\mathbf{elif}\;y5 \leq 7.5 \cdot 10^{-243}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot t\_2 + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot t\_3\right)\\
\mathbf{elif}\;y5 \leq 1.95 \cdot 10^{-21}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y5 < -2.3000000000000001e109 or 1.95e-21 < y5 Initial program 29.6%
Taylor expanded in y5 around -inf 56.3%
if -2.3000000000000001e109 < y5 < -1.32e38Initial program 19.1%
Taylor expanded in k around inf 56.5%
Taylor expanded in y0 around -inf 75.1%
mul-1-neg75.1%
Simplified75.1%
if -1.32e38 < y5 < -1.72e6Initial program 41.7%
Taylor expanded in c around inf 50.1%
Taylor expanded in y around -inf 75.3%
mul-1-neg75.3%
Simplified75.3%
if -1.72e6 < y5 < -9.9999999999999991e-97Initial program 18.8%
Taylor expanded in b around inf 18.8%
Taylor expanded in a around inf 63.1%
if -9.9999999999999991e-97 < y5 < -2.7999999999999999e-231Initial program 43.1%
Taylor expanded in b around inf 58.6%
if -2.7999999999999999e-231 < y5 < 7.5e-243Initial program 26.0%
Taylor expanded in y0 around inf 52.6%
if 7.5e-243 < y5 < 1.95e-21Initial program 26.9%
Taylor expanded in y4 around inf 53.5%
Final simplification58.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(+ (* y0 (- (* j y3) (* k y2))) (* i (- (* y k) (* t j)))))))
(t_2 (- (* y y3) (* t y2))))
(if (<= y5 -5.2e+108)
t_1
(if (<= y5 -1.26e+39)
(* k (* y0 (- (* z b) (* y2 y5))))
(if (<= y5 -320.0)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y5 -2.7e-105)
(* a (* b (- (* x y) (* z t))))
(if (<= y5 -2.7e-290)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))
(if (<= y5 6.5e-243)
(*
c
(+
(+ (* i (- (* z t) (* x y))) (* y0 (- (* x y2) (* z y3))))
(* y4 t_2)))
(if (<= y5 2.4e-21)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c 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 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))));
double t_2 = (y * y3) - (t * y2);
double tmp;
if (y5 <= -5.2e+108) {
tmp = t_1;
} else if (y5 <= -1.26e+39) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -320.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -2.7e-105) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= -2.7e-290) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (y5 <= 6.5e-243) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
} else if (y5 <= 2.4e-21) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * 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 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))))
t_2 = (y * y3) - (t * y2)
if (y5 <= (-5.2d+108)) then
tmp = t_1
else if (y5 <= (-1.26d+39)) then
tmp = k * (y0 * ((z * b) - (y2 * y5)))
else if (y5 <= (-320.0d0)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y5 <= (-2.7d-105)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y5 <= (-2.7d-290)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
else if (y5 <= 6.5d-243) then
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2))
else if (y5 <= 2.4d-21) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * 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 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j)))));
double t_2 = (y * y3) - (t * y2);
double tmp;
if (y5 <= -5.2e+108) {
tmp = t_1;
} else if (y5 <= -1.26e+39) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (y5 <= -320.0) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y5 <= -2.7e-105) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y5 <= -2.7e-290) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (y5 <= 6.5e-243) {
tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2));
} else if (y5 <= 2.4e-21) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * 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 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j))))) t_2 = (y * y3) - (t * y2) tmp = 0 if y5 <= -5.2e+108: tmp = t_1 elif y5 <= -1.26e+39: tmp = k * (y0 * ((z * b) - (y2 * y5))) elif y5 <= -320.0: tmp = c * (y * ((y3 * y4) - (x * i))) elif y5 <= -2.7e-105: tmp = a * (b * ((x * y) - (z * t))) elif y5 <= -2.7e-290: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) elif y5 <= 6.5e-243: tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)) elif y5 <= 2.4e-21: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * 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(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(i * Float64(Float64(y * k) - Float64(t * j)))))) t_2 = Float64(Float64(y * y3) - Float64(t * y2)) tmp = 0.0 if (y5 <= -5.2e+108) tmp = t_1; elseif (y5 <= -1.26e+39) tmp = Float64(k * Float64(y0 * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (y5 <= -320.0) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y5 <= -2.7e-105) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y5 <= -2.7e-290) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y5 <= 6.5e-243) tmp = Float64(c * Float64(Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * t_2))); elseif (y5 <= 2.4e-21) 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 * 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 = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) + (i * ((y * k) - (t * j))))); t_2 = (y * y3) - (t * y2); tmp = 0.0; if (y5 <= -5.2e+108) tmp = t_1; elseif (y5 <= -1.26e+39) tmp = k * (y0 * ((z * b) - (y2 * y5))); elseif (y5 <= -320.0) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y5 <= -2.7e-105) tmp = a * (b * ((x * y) - (z * t))); elseif (y5 <= -2.7e-290) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); elseif (y5 <= 6.5e-243) tmp = c * (((i * ((z * t) - (x * y))) + (y0 * ((x * y2) - (z * y3)))) + (y4 * t_2)); elseif (y5 <= 2.4e-21) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * 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[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -5.2e+108], t$95$1, If[LessEqual[y5, -1.26e+39], N[(k * N[(y0 * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -320.0], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.7e-105], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.7e-290], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.5e-243], N[(c * N[(N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.4e-21], 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 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) + i \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\
t_2 := y \cdot y3 - t \cdot y2\\
\mathbf{if}\;y5 \leq -5.2 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.26 \cdot 10^{+39}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -320:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq -2.7 \cdot 10^{-105}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y5 \leq -2.7 \cdot 10^{-290}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 6.5 \cdot 10^{-243}:\\
\;\;\;\;c \cdot \left(\left(i \cdot \left(z \cdot t - x \cdot y\right) + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot t\_2\right)\\
\mathbf{elif}\;y5 \leq 2.4 \cdot 10^{-21}:\\
\;\;\;\;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 t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -5.2000000000000005e108 or 2.3999999999999999e-21 < y5 Initial program 29.6%
Taylor expanded in y5 around -inf 56.3%
if -5.2000000000000005e108 < y5 < -1.26000000000000001e39Initial program 19.1%
Taylor expanded in k around inf 56.5%
Taylor expanded in y0 around -inf 75.1%
mul-1-neg75.1%
Simplified75.1%
if -1.26000000000000001e39 < y5 < -320Initial program 41.7%
Taylor expanded in c around inf 50.1%
Taylor expanded in y around -inf 75.3%
mul-1-neg75.3%
Simplified75.3%
if -320 < y5 < -2.69999999999999993e-105Initial program 17.6%
Taylor expanded in b around inf 23.5%
Taylor expanded in a around inf 59.5%
if -2.69999999999999993e-105 < y5 < -2.69999999999999999e-290Initial program 44.3%
Taylor expanded in x around inf 54.0%
if -2.69999999999999999e-290 < y5 < 6.50000000000000043e-243Initial program 12.2%
Taylor expanded in c around inf 59.6%
if 6.50000000000000043e-243 < y5 < 2.3999999999999999e-21Initial program 26.9%
Taylor expanded in y4 around inf 53.5%
Final simplification58.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y -1.5e+156)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y -7e+81)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y -2100000.0)
(* i (* x (- (* j y1) (* y c))))
(if (<= y -5.2e-38)
(* i (* k (- (* y y5) (* z y1))))
(if (<= y -7.2e-84)
(*
y5
(- (* y0 (- (* j y3) (* k y2))) (* a (- (* y y3) (* t y2)))))
(if (<= y -2.4e-218)
t_1
(if (<= y 1.02e-144)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y 1.8e+32)
t_1
(* y (* y5 (- (* i k) (* a y3))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y <= -1.5e+156) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y <= -7e+81) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= -2100000.0) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y <= -5.2e-38) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y <= -7.2e-84) {
tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2))));
} else if (y <= -2.4e-218) {
tmp = t_1;
} else if (y <= 1.02e-144) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y <= 1.8e+32) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y <= (-1.5d+156)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y <= (-7d+81)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= (-2100000.0d0)) then
tmp = i * (x * ((j * y1) - (y * c)))
else if (y <= (-5.2d-38)) then
tmp = i * (k * ((y * y5) - (z * y1)))
else if (y <= (-7.2d-84)) then
tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2))))
else if (y <= (-2.4d-218)) then
tmp = t_1
else if (y <= 1.02d-144) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y <= 1.8d+32) then
tmp = t_1
else
tmp = y * (y5 * ((i * k) - (a * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y <= -1.5e+156) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y <= -7e+81) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= -2100000.0) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y <= -5.2e-38) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else if (y <= -7.2e-84) {
tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2))));
} else if (y <= -2.4e-218) {
tmp = t_1;
} else if (y <= 1.02e-144) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y <= 1.8e+32) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y <= -1.5e+156: tmp = c * (y * ((y3 * y4) - (x * i))) elif y <= -7e+81: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= -2100000.0: tmp = i * (x * ((j * y1) - (y * c))) elif y <= -5.2e-38: tmp = i * (k * ((y * y5) - (z * y1))) elif y <= -7.2e-84: tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2)))) elif y <= -2.4e-218: tmp = t_1 elif y <= 1.02e-144: tmp = k * (z * ((b * y0) - (i * y1))) elif y <= 1.8e+32: tmp = t_1 else: tmp = y * (y5 * ((i * k) - (a * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y <= -1.5e+156) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y <= -7e+81) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= -2100000.0) tmp = Float64(i * Float64(x * Float64(Float64(j * y1) - Float64(y * c)))); elseif (y <= -5.2e-38) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); elseif (y <= -7.2e-84) tmp = Float64(y5 * Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(a * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y <= -2.4e-218) tmp = t_1; elseif (y <= 1.02e-144) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y <= 1.8e+32) tmp = t_1; else tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y <= -1.5e+156) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y <= -7e+81) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= -2100000.0) tmp = i * (x * ((j * y1) - (y * c))); elseif (y <= -5.2e-38) tmp = i * (k * ((y * y5) - (z * y1))); elseif (y <= -7.2e-84) tmp = y5 * ((y0 * ((j * y3) - (k * y2))) - (a * ((y * y3) - (t * y2)))); elseif (y <= -2.4e-218) tmp = t_1; elseif (y <= 1.02e-144) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y <= 1.8e+32) tmp = t_1; else tmp = y * (y5 * ((i * k) - (a * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+156], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7e+81], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2100000.0], N[(i * N[(x * N[(N[(j * y1), $MachinePrecision] - N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.2e-38], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.2e-84], N[(y5 * N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.4e-218], t$95$1, If[LessEqual[y, 1.02e-144], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e+32], t$95$1, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+156}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y \leq -7 \cdot 10^{+81}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq -2100000:\\
\;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{-38}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-84}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - a \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-218}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-144}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\end{array}
\end{array}
if y < -1.5e156Initial program 10.3%
Taylor expanded in c around inf 22.9%
Taylor expanded in y around -inf 55.3%
mul-1-neg55.3%
Simplified55.3%
if -1.5e156 < y < -7.0000000000000001e81Initial program 26.3%
Taylor expanded in b around inf 47.4%
Taylor expanded in y0 around inf 58.9%
if -7.0000000000000001e81 < y < -2.1e6Initial program 23.3%
Taylor expanded in i around -inf 47.8%
Taylor expanded in x around inf 60.8%
if -2.1e6 < y < -5.20000000000000022e-38Initial program 33.3%
Taylor expanded in k around inf 84.2%
Taylor expanded in i around inf 84.2%
if -5.20000000000000022e-38 < y < -7.20000000000000007e-84Initial program 57.1%
Taylor expanded in y5 around -inf 71.9%
Taylor expanded in i around 0 71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
if -7.20000000000000007e-84 < y < -2.4000000000000001e-218 or 1.01999999999999997e-144 < y < 1.7999999999999998e32Initial program 35.3%
Taylor expanded in k around inf 48.9%
Taylor expanded in y2 around inf 54.2%
if -2.4000000000000001e-218 < y < 1.01999999999999997e-144Initial program 29.5%
Taylor expanded in k around inf 26.0%
Taylor expanded in z around inf 39.4%
if 1.7999999999999998e32 < y Initial program 30.0%
Taylor expanded in y5 around -inf 43.2%
Taylor expanded in y around inf 46.3%
distribute-lft-out--46.3%
*-commutative46.3%
*-commutative46.3%
Simplified46.3%
Final simplification51.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (- (* y y5) (* z y1)))))
(t_2 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= y2 -1.3e+114)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -8.8e+93)
t_1
(if (<= y2 -1.35e-30)
t_2
(if (<= y2 -5.6e-106)
t_1
(if (<= y2 -1.2e-117)
t_2
(if (<= y2 -4.6e-298)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y2 9.2e-18)
t_1
(if (<= y2 6.5e+209)
(* a (* b (- (* x y) (* z t))))
(* y0 (* c (* x y2)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y2 <= -1.3e+114) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -8.8e+93) {
tmp = t_1;
} else if (y2 <= -1.35e-30) {
tmp = t_2;
} else if (y2 <= -5.6e-106) {
tmp = t_1;
} else if (y2 <= -1.2e-117) {
tmp = t_2;
} else if (y2 <= -4.6e-298) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 9.2e-18) {
tmp = t_1;
} else if (y2 <= 6.5e+209) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = y0 * (c * (x * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
t_2 = c * (y4 * ((y * y3) - (t * y2)))
if (y2 <= (-1.3d+114)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-8.8d+93)) then
tmp = t_1
else if (y2 <= (-1.35d-30)) then
tmp = t_2
else if (y2 <= (-5.6d-106)) then
tmp = t_1
else if (y2 <= (-1.2d-117)) then
tmp = t_2
else if (y2 <= (-4.6d-298)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y2 <= 9.2d-18) then
tmp = t_1
else if (y2 <= 6.5d+209) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = y0 * (c * (x * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y2 <= -1.3e+114) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -8.8e+93) {
tmp = t_1;
} else if (y2 <= -1.35e-30) {
tmp = t_2;
} else if (y2 <= -5.6e-106) {
tmp = t_1;
} else if (y2 <= -1.2e-117) {
tmp = t_2;
} else if (y2 <= -4.6e-298) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 9.2e-18) {
tmp = t_1;
} else if (y2 <= 6.5e+209) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = y0 * (c * (x * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * ((y * y5) - (z * y1))) t_2 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if y2 <= -1.3e+114: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -8.8e+93: tmp = t_1 elif y2 <= -1.35e-30: tmp = t_2 elif y2 <= -5.6e-106: tmp = t_1 elif y2 <= -1.2e-117: tmp = t_2 elif y2 <= -4.6e-298: tmp = b * (y0 * ((z * k) - (x * j))) elif y2 <= 9.2e-18: tmp = t_1 elif y2 <= 6.5e+209: tmp = a * (b * ((x * y) - (z * t))) else: tmp = y0 * (c * (x * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) t_2 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y2 <= -1.3e+114) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -8.8e+93) tmp = t_1; elseif (y2 <= -1.35e-30) tmp = t_2; elseif (y2 <= -5.6e-106) tmp = t_1; elseif (y2 <= -1.2e-117) tmp = t_2; elseif (y2 <= -4.6e-298) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y2 <= 9.2e-18) tmp = t_1; elseif (y2 <= 6.5e+209) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(y0 * Float64(c * Float64(x * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * ((y * y5) - (z * y1))); t_2 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (y2 <= -1.3e+114) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -8.8e+93) tmp = t_1; elseif (y2 <= -1.35e-30) tmp = t_2; elseif (y2 <= -5.6e-106) tmp = t_1; elseif (y2 <= -1.2e-117) tmp = t_2; elseif (y2 <= -4.6e-298) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y2 <= 9.2e-18) tmp = t_1; elseif (y2 <= 6.5e+209) tmp = a * (b * ((x * y) - (z * t))); else tmp = y0 * (c * (x * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.3e+114], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.8e+93], t$95$1, If[LessEqual[y2, -1.35e-30], t$95$2, If[LessEqual[y2, -5.6e-106], t$95$1, If[LessEqual[y2, -1.2e-117], t$95$2, If[LessEqual[y2, -4.6e-298], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.2e-18], t$95$1, If[LessEqual[y2, 6.5e+209], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y2 \leq -1.3 \cdot 10^{+114}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -8.8 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1.35 \cdot 10^{-30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -5.6 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1.2 \cdot 10^{-117}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -4.6 \cdot 10^{-298}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 9.2 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{+209}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -1.3e114Initial program 22.4%
Taylor expanded in c around inf 40.1%
Taylor expanded in y2 around inf 58.3%
if -1.3e114 < y2 < -8.80000000000000084e93 or -1.34999999999999994e-30 < y2 < -5.59999999999999977e-106 or -4.6000000000000001e-298 < y2 < 9.2000000000000004e-18Initial program 36.0%
Taylor expanded in k around inf 42.1%
Taylor expanded in i around inf 41.5%
if -8.80000000000000084e93 < y2 < -1.34999999999999994e-30 or -5.59999999999999977e-106 < y2 < -1.20000000000000007e-117Initial program 25.8%
Taylor expanded in c around inf 34.4%
Taylor expanded in y4 around inf 41.0%
if -1.20000000000000007e-117 < y2 < -4.6000000000000001e-298Initial program 34.6%
Taylor expanded in b around inf 52.3%
Taylor expanded in y0 around inf 52.0%
if 9.2000000000000004e-18 < y2 < 6.49999999999999975e209Initial program 23.4%
Taylor expanded in b around inf 41.6%
Taylor expanded in a around inf 44.7%
if 6.49999999999999975e209 < y2 Initial program 14.3%
Taylor expanded in y0 around inf 42.9%
Taylor expanded in c around inf 64.6%
Taylor expanded in x around inf 64.6%
*-commutative64.6%
Simplified64.6%
Final simplification47.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t)))))
(t_2 (* b (* y0 (- (* z k) (* x j))))))
(if (<= y2 -3e+130)
(* c (* x (* y0 y2)))
(if (<= y2 1.35e-236)
t_2
(if (<= y2 2.2e-165)
t_1
(if (<= y2 2.4e-163)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y2 7.2e-149)
(* i (* j (* x y1)))
(if (<= y2 3.5e-99)
t_1
(if (<= y2 2e-8)
t_2
(if (<= y2 7.6e+212) t_1 (* y0 (* c (* x y2)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = b * (y0 * ((z * k) - (x * j)));
double tmp;
if (y2 <= -3e+130) {
tmp = c * (x * (y0 * y2));
} else if (y2 <= 1.35e-236) {
tmp = t_2;
} else if (y2 <= 2.2e-165) {
tmp = t_1;
} else if (y2 <= 2.4e-163) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y2 <= 7.2e-149) {
tmp = i * (j * (x * y1));
} else if (y2 <= 3.5e-99) {
tmp = t_1;
} else if (y2 <= 2e-8) {
tmp = t_2;
} else if (y2 <= 7.6e+212) {
tmp = t_1;
} else {
tmp = y0 * (c * (x * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
t_2 = b * (y0 * ((z * k) - (x * j)))
if (y2 <= (-3d+130)) then
tmp = c * (x * (y0 * y2))
else if (y2 <= 1.35d-236) then
tmp = t_2
else if (y2 <= 2.2d-165) then
tmp = t_1
else if (y2 <= 2.4d-163) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y2 <= 7.2d-149) then
tmp = i * (j * (x * y1))
else if (y2 <= 3.5d-99) then
tmp = t_1
else if (y2 <= 2d-8) then
tmp = t_2
else if (y2 <= 7.6d+212) then
tmp = t_1
else
tmp = y0 * (c * (x * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = b * (y0 * ((z * k) - (x * j)));
double tmp;
if (y2 <= -3e+130) {
tmp = c * (x * (y0 * y2));
} else if (y2 <= 1.35e-236) {
tmp = t_2;
} else if (y2 <= 2.2e-165) {
tmp = t_1;
} else if (y2 <= 2.4e-163) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y2 <= 7.2e-149) {
tmp = i * (j * (x * y1));
} else if (y2 <= 3.5e-99) {
tmp = t_1;
} else if (y2 <= 2e-8) {
tmp = t_2;
} else if (y2 <= 7.6e+212) {
tmp = t_1;
} else {
tmp = y0 * (c * (x * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) t_2 = b * (y0 * ((z * k) - (x * j))) tmp = 0 if y2 <= -3e+130: tmp = c * (x * (y0 * y2)) elif y2 <= 1.35e-236: tmp = t_2 elif y2 <= 2.2e-165: tmp = t_1 elif y2 <= 2.4e-163: tmp = b * (y4 * ((t * j) - (y * k))) elif y2 <= 7.2e-149: tmp = i * (j * (x * y1)) elif y2 <= 3.5e-99: tmp = t_1 elif y2 <= 2e-8: tmp = t_2 elif y2 <= 7.6e+212: tmp = t_1 else: tmp = y0 * (c * (x * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_2 = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (y2 <= -3e+130) tmp = Float64(c * Float64(x * Float64(y0 * y2))); elseif (y2 <= 1.35e-236) tmp = t_2; elseif (y2 <= 2.2e-165) tmp = t_1; elseif (y2 <= 2.4e-163) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y2 <= 7.2e-149) tmp = Float64(i * Float64(j * Float64(x * y1))); elseif (y2 <= 3.5e-99) tmp = t_1; elseif (y2 <= 2e-8) tmp = t_2; elseif (y2 <= 7.6e+212) tmp = t_1; else tmp = Float64(y0 * Float64(c * Float64(x * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); t_2 = b * (y0 * ((z * k) - (x * j))); tmp = 0.0; if (y2 <= -3e+130) tmp = c * (x * (y0 * y2)); elseif (y2 <= 1.35e-236) tmp = t_2; elseif (y2 <= 2.2e-165) tmp = t_1; elseif (y2 <= 2.4e-163) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y2 <= 7.2e-149) tmp = i * (j * (x * y1)); elseif (y2 <= 3.5e-99) tmp = t_1; elseif (y2 <= 2e-8) tmp = t_2; elseif (y2 <= 7.6e+212) tmp = t_1; else tmp = y0 * (c * (x * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3e+130], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.35e-236], t$95$2, If[LessEqual[y2, 2.2e-165], t$95$1, If[LessEqual[y2, 2.4e-163], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.2e-149], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e-99], t$95$1, If[LessEqual[y2, 2e-8], t$95$2, If[LessEqual[y2, 7.6e+212], t$95$1, N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_2 := b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;y2 \leq -3 \cdot 10^{+130}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 1.35 \cdot 10^{-236}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 2.2 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{-163}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq 7.2 \cdot 10^{-149}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{-8}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 7.6 \cdot 10^{+212}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -2.9999999999999999e130Initial program 20.6%
Taylor expanded in y0 around inf 36.9%
Taylor expanded in c around inf 46.5%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
Simplified51.0%
if -2.9999999999999999e130 < y2 < 1.35e-236 or 3.4999999999999999e-99 < y2 < 2e-8Initial program 36.2%
Taylor expanded in b around inf 35.7%
Taylor expanded in y0 around inf 36.0%
if 1.35e-236 < y2 < 2.1999999999999999e-165 or 7.2000000000000004e-149 < y2 < 3.4999999999999999e-99 or 2e-8 < y2 < 7.59999999999999976e212Initial program 21.8%
Taylor expanded in b around inf 41.5%
Taylor expanded in a around inf 45.7%
if 2.1999999999999999e-165 < y2 < 2.4000000000000001e-163Initial program 66.7%
Taylor expanded in b around inf 66.7%
Taylor expanded in y4 around inf 100.0%
if 2.4000000000000001e-163 < y2 < 7.2000000000000004e-149Initial program 1.0%
Taylor expanded in y1 around inf 60.6%
Taylor expanded in i around inf 80.6%
Taylor expanded in j around inf 61.3%
if 7.59999999999999976e212 < y2 Initial program 14.3%
Taylor expanded in y0 around inf 42.9%
Taylor expanded in c around inf 64.6%
Taylor expanded in x around inf 64.6%
*-commutative64.6%
Simplified64.6%
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 (* b (* y4 (- (* t j) (* y k)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -2.5e+197)
t_2
(if (<= b -2.2e+153)
t_1
(if (<= b -3.7e+24)
t_2
(if (<= b -1e-125)
(* k (* y0 (* y2 (- y5))))
(if (<= b 1.3e-208)
(* c (* t (- (* z i) (* y2 y4))))
(if (or (<= b 400000000.0) (not (<= b 1.45e+187)))
(* b (* y0 (- (* z k) (* x 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 = b * (y4 * ((t * j) - (y * k)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -2.5e+197) {
tmp = t_2;
} else if (b <= -2.2e+153) {
tmp = t_1;
} else if (b <= -3.7e+24) {
tmp = t_2;
} else if (b <= -1e-125) {
tmp = k * (y0 * (y2 * -y5));
} else if (b <= 1.3e-208) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if ((b <= 400000000.0) || !(b <= 1.45e+187)) {
tmp = b * (y0 * ((z * k) - (x * 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) :: t_2
real(8) :: tmp
t_1 = b * (y4 * ((t * j) - (y * k)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-2.5d+197)) then
tmp = t_2
else if (b <= (-2.2d+153)) then
tmp = t_1
else if (b <= (-3.7d+24)) then
tmp = t_2
else if (b <= (-1d-125)) then
tmp = k * (y0 * (y2 * -y5))
else if (b <= 1.3d-208) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if ((b <= 400000000.0d0) .or. (.not. (b <= 1.45d+187))) then
tmp = b * (y0 * ((z * k) - (x * 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 = b * (y4 * ((t * j) - (y * k)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -2.5e+197) {
tmp = t_2;
} else if (b <= -2.2e+153) {
tmp = t_1;
} else if (b <= -3.7e+24) {
tmp = t_2;
} else if (b <= -1e-125) {
tmp = k * (y0 * (y2 * -y5));
} else if (b <= 1.3e-208) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if ((b <= 400000000.0) || !(b <= 1.45e+187)) {
tmp = b * (y0 * ((z * k) - (x * 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 = b * (y4 * ((t * j) - (y * k))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -2.5e+197: tmp = t_2 elif b <= -2.2e+153: tmp = t_1 elif b <= -3.7e+24: tmp = t_2 elif b <= -1e-125: tmp = k * (y0 * (y2 * -y5)) elif b <= 1.3e-208: tmp = c * (t * ((z * i) - (y2 * y4))) elif (b <= 400000000.0) or not (b <= 1.45e+187): tmp = b * (y0 * ((z * k) - (x * 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(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -2.5e+197) tmp = t_2; elseif (b <= -2.2e+153) tmp = t_1; elseif (b <= -3.7e+24) tmp = t_2; elseif (b <= -1e-125) tmp = Float64(k * Float64(y0 * Float64(y2 * Float64(-y5)))); elseif (b <= 1.3e-208) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif ((b <= 400000000.0) || !(b <= 1.45e+187)) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * 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 = b * (y4 * ((t * j) - (y * k))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -2.5e+197) tmp = t_2; elseif (b <= -2.2e+153) tmp = t_1; elseif (b <= -3.7e+24) tmp = t_2; elseif (b <= -1e-125) tmp = k * (y0 * (y2 * -y5)); elseif (b <= 1.3e-208) tmp = c * (t * ((z * i) - (y2 * y4))); elseif ((b <= 400000000.0) || ~((b <= 1.45e+187))) tmp = b * (y0 * ((z * k) - (x * 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[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+197], t$95$2, If[LessEqual[b, -2.2e+153], t$95$1, If[LessEqual[b, -3.7e+24], t$95$2, If[LessEqual[b, -1e-125], N[(k * N[(y0 * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e-208], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 400000000.0], N[Not[LessEqual[b, 1.45e+187]], $MachinePrecision]], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+197}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.7 \cdot 10^{+24}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-125}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-208}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 400000000 \lor \neg \left(b \leq 1.45 \cdot 10^{+187}\right):\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.50000000000000004e197 or -2.2e153 < b < -3.69999999999999999e24Initial program 18.9%
Taylor expanded in b around inf 58.5%
Taylor expanded in a around inf 52.8%
if -2.50000000000000004e197 < b < -2.2e153 or 4e8 < b < 1.45e187Initial program 17.8%
Taylor expanded in b around inf 31.3%
Taylor expanded in y4 around inf 45.4%
if -3.69999999999999999e24 < b < -1.00000000000000001e-125Initial program 45.7%
Taylor expanded in k around inf 64.5%
Taylor expanded in y0 around -inf 37.8%
mul-1-neg37.8%
Simplified37.8%
Taylor expanded in y2 around inf 34.6%
if -1.00000000000000001e-125 < b < 1.30000000000000008e-208Initial program 31.9%
Taylor expanded in c around inf 37.5%
Taylor expanded in t around inf 39.8%
if 1.30000000000000008e-208 < b < 4e8 or 1.45e187 < b Initial program 33.8%
Taylor expanded in b around inf 29.6%
Taylor expanded in y0 around inf 38.6%
Final simplification42.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (- (* y y5) (* z y1)))))
(t_2 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= y2 -2.1e+114)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -5.2e+89)
t_1
(if (<= y2 -2.3e-31)
t_2
(if (<= y2 -5.3e-106)
t_1
(if (<= y2 -5.5e-117)
t_2
(if (<= y2 -4.8e-298)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y2 2.7e-19)
t_1
(* k (* y2 (- (* y1 y4) (* y0 y5)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y2 <= -2.1e+114) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -5.2e+89) {
tmp = t_1;
} else if (y2 <= -2.3e-31) {
tmp = t_2;
} else if (y2 <= -5.3e-106) {
tmp = t_1;
} else if (y2 <= -5.5e-117) {
tmp = t_2;
} else if (y2 <= -4.8e-298) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 2.7e-19) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
t_2 = c * (y4 * ((y * y3) - (t * y2)))
if (y2 <= (-2.1d+114)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-5.2d+89)) then
tmp = t_1
else if (y2 <= (-2.3d-31)) then
tmp = t_2
else if (y2 <= (-5.3d-106)) then
tmp = t_1
else if (y2 <= (-5.5d-117)) then
tmp = t_2
else if (y2 <= (-4.8d-298)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y2 <= 2.7d-19) then
tmp = t_1
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double t_2 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y2 <= -2.1e+114) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -5.2e+89) {
tmp = t_1;
} else if (y2 <= -2.3e-31) {
tmp = t_2;
} else if (y2 <= -5.3e-106) {
tmp = t_1;
} else if (y2 <= -5.5e-117) {
tmp = t_2;
} else if (y2 <= -4.8e-298) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 2.7e-19) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * ((y * y5) - (z * y1))) t_2 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if y2 <= -2.1e+114: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -5.2e+89: tmp = t_1 elif y2 <= -2.3e-31: tmp = t_2 elif y2 <= -5.3e-106: tmp = t_1 elif y2 <= -5.5e-117: tmp = t_2 elif y2 <= -4.8e-298: tmp = b * (y0 * ((z * k) - (x * j))) elif y2 <= 2.7e-19: tmp = t_1 else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) t_2 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y2 <= -2.1e+114) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -5.2e+89) tmp = t_1; elseif (y2 <= -2.3e-31) tmp = t_2; elseif (y2 <= -5.3e-106) tmp = t_1; elseif (y2 <= -5.5e-117) tmp = t_2; elseif (y2 <= -4.8e-298) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y2 <= 2.7e-19) tmp = t_1; else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * ((y * y5) - (z * y1))); t_2 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (y2 <= -2.1e+114) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -5.2e+89) tmp = t_1; elseif (y2 <= -2.3e-31) tmp = t_2; elseif (y2 <= -5.3e-106) tmp = t_1; elseif (y2 <= -5.5e-117) tmp = t_2; elseif (y2 <= -4.8e-298) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y2 <= 2.7e-19) tmp = t_1; else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.1e+114], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.2e+89], t$95$1, If[LessEqual[y2, -2.3e-31], t$95$2, If[LessEqual[y2, -5.3e-106], t$95$1, If[LessEqual[y2, -5.5e-117], t$95$2, If[LessEqual[y2, -4.8e-298], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.7e-19], t$95$1, N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
t_2 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y2 \leq -2.1 \cdot 10^{+114}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -5.2 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -2.3 \cdot 10^{-31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -5.3 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -5.5 \cdot 10^{-117}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -4.8 \cdot 10^{-298}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 2.7 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -2.1e114Initial program 22.4%
Taylor expanded in c around inf 40.1%
Taylor expanded in y2 around inf 58.3%
if -2.1e114 < y2 < -5.2000000000000001e89 or -2.2999999999999998e-31 < y2 < -5.2999999999999998e-106 or -4.79999999999999975e-298 < y2 < 2.7000000000000001e-19Initial program 35.2%
Taylor expanded in k around inf 41.5%
Taylor expanded in i around inf 41.9%
if -5.2000000000000001e89 < y2 < -2.2999999999999998e-31 or -5.2999999999999998e-106 < y2 < -5.50000000000000025e-117Initial program 25.8%
Taylor expanded in c around inf 34.4%
Taylor expanded in y4 around inf 41.0%
if -5.50000000000000025e-117 < y2 < -4.79999999999999975e-298Initial program 34.6%
Taylor expanded in b around inf 52.3%
Taylor expanded in y0 around inf 52.0%
if 2.7000000000000001e-19 < y2 Initial program 22.5%
Taylor expanded in k around inf 50.7%
Taylor expanded in y2 around inf 52.8%
Final simplification48.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* c (* x y2)))) (t_2 (* a (* y (* x b)))))
(if (<= y2 -4.1e+101)
t_1
(if (<= y2 -9.5e+29)
t_2
(if (<= y2 -330000.0)
t_1
(if (<= y2 2.4e-237)
(* i (* k (* z (- y1))))
(if (<= y2 6.5e-6)
t_2
(if (<= y2 6e+49)
(* a (* b (* z (- t))))
(if (<= y2 3.2e+233) (* k (* y0 (* y2 (- y5)))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -4.1e+101) {
tmp = t_1;
} else if (y2 <= -9.5e+29) {
tmp = t_2;
} else if (y2 <= -330000.0) {
tmp = t_1;
} else if (y2 <= 2.4e-237) {
tmp = i * (k * (z * -y1));
} else if (y2 <= 6.5e-6) {
tmp = t_2;
} else if (y2 <= 6e+49) {
tmp = a * (b * (z * -t));
} else if (y2 <= 3.2e+233) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (c * (x * y2))
t_2 = a * (y * (x * b))
if (y2 <= (-4.1d+101)) then
tmp = t_1
else if (y2 <= (-9.5d+29)) then
tmp = t_2
else if (y2 <= (-330000.0d0)) then
tmp = t_1
else if (y2 <= 2.4d-237) then
tmp = i * (k * (z * -y1))
else if (y2 <= 6.5d-6) then
tmp = t_2
else if (y2 <= 6d+49) then
tmp = a * (b * (z * -t))
else if (y2 <= 3.2d+233) then
tmp = k * (y0 * (y2 * -y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -4.1e+101) {
tmp = t_1;
} else if (y2 <= -9.5e+29) {
tmp = t_2;
} else if (y2 <= -330000.0) {
tmp = t_1;
} else if (y2 <= 2.4e-237) {
tmp = i * (k * (z * -y1));
} else if (y2 <= 6.5e-6) {
tmp = t_2;
} else if (y2 <= 6e+49) {
tmp = a * (b * (z * -t));
} else if (y2 <= 3.2e+233) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (c * (x * y2)) t_2 = a * (y * (x * b)) tmp = 0 if y2 <= -4.1e+101: tmp = t_1 elif y2 <= -9.5e+29: tmp = t_2 elif y2 <= -330000.0: tmp = t_1 elif y2 <= 2.4e-237: tmp = i * (k * (z * -y1)) elif y2 <= 6.5e-6: tmp = t_2 elif y2 <= 6e+49: tmp = a * (b * (z * -t)) elif y2 <= 3.2e+233: tmp = k * (y0 * (y2 * -y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(c * Float64(x * y2))) t_2 = Float64(a * Float64(y * Float64(x * b))) tmp = 0.0 if (y2 <= -4.1e+101) tmp = t_1; elseif (y2 <= -9.5e+29) tmp = t_2; elseif (y2 <= -330000.0) tmp = t_1; elseif (y2 <= 2.4e-237) tmp = Float64(i * Float64(k * Float64(z * Float64(-y1)))); elseif (y2 <= 6.5e-6) tmp = t_2; elseif (y2 <= 6e+49) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (y2 <= 3.2e+233) tmp = Float64(k * Float64(y0 * Float64(y2 * Float64(-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 = y0 * (c * (x * y2)); t_2 = a * (y * (x * b)); tmp = 0.0; if (y2 <= -4.1e+101) tmp = t_1; elseif (y2 <= -9.5e+29) tmp = t_2; elseif (y2 <= -330000.0) tmp = t_1; elseif (y2 <= 2.4e-237) tmp = i * (k * (z * -y1)); elseif (y2 <= 6.5e-6) tmp = t_2; elseif (y2 <= 6e+49) tmp = a * (b * (z * -t)); elseif (y2 <= 3.2e+233) tmp = k * (y0 * (y2 * -y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.1e+101], t$95$1, If[LessEqual[y2, -9.5e+29], t$95$2, If[LessEqual[y2, -330000.0], t$95$1, If[LessEqual[y2, 2.4e-237], N[(i * N[(k * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.5e-6], t$95$2, If[LessEqual[y2, 6e+49], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.2e+233], N[(k * N[(y0 * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
t_2 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;y2 \leq -4.1 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -9.5 \cdot 10^{+29}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -330000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 2.4 \cdot 10^{-237}:\\
\;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-6}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 6 \cdot 10^{+49}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{+233}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -4.1e101 or -9.5000000000000003e29 < y2 < -3.3e5 or 3.20000000000000018e233 < y2 Initial program 21.5%
Taylor expanded in y0 around inf 40.0%
Taylor expanded in c around inf 48.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -4.1e101 < y2 < -9.5000000000000003e29 or 2.4e-237 < y2 < 6.4999999999999996e-6Initial program 24.3%
Taylor expanded in b around inf 27.1%
Taylor expanded in a around inf 27.8%
Taylor expanded in x around inf 25.0%
*-commutative25.0%
associate-*r*29.3%
*-commutative29.3%
Simplified29.3%
if -3.3e5 < y2 < 2.4e-237Initial program 39.3%
Taylor expanded in y1 around inf 40.9%
Taylor expanded in i around inf 35.2%
Taylor expanded in j around 0 27.4%
mul-1-neg27.4%
*-commutative27.4%
distribute-rgt-neg-in27.4%
*-commutative27.4%
Simplified27.4%
if 6.4999999999999996e-6 < y2 < 6.0000000000000005e49Initial program 41.5%
Taylor expanded in b around inf 25.5%
Taylor expanded in a around inf 50.8%
Taylor expanded in x around 0 50.8%
mul-1-neg50.8%
*-commutative50.8%
distribute-lft-neg-in50.8%
*-commutative50.8%
distribute-rgt-neg-in50.8%
*-commutative50.8%
distribute-rgt-neg-in50.8%
Simplified50.8%
if 6.0000000000000005e49 < y2 < 3.20000000000000018e233Initial program 19.5%
Taylor expanded in k around inf 35.1%
Taylor expanded in y0 around -inf 55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in y2 around inf 47.5%
Final simplification37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* c (* x y2)))) (t_2 (* a (* y (* x b)))))
(if (<= y2 -2.9e+101)
t_1
(if (<= y2 -4.6e+30)
t_2
(if (<= y2 -135000.0)
t_1
(if (<= y2 3.2e-234)
(* i (* y1 (* z (- k))))
(if (<= y2 1e-7)
t_2
(if (<= y2 3.2e+47)
(* a (* b (* z (- t))))
(if (<= y2 1.3e+254) (* k (* y0 (* y2 (- y5)))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -2.9e+101) {
tmp = t_1;
} else if (y2 <= -4.6e+30) {
tmp = t_2;
} else if (y2 <= -135000.0) {
tmp = t_1;
} else if (y2 <= 3.2e-234) {
tmp = i * (y1 * (z * -k));
} else if (y2 <= 1e-7) {
tmp = t_2;
} else if (y2 <= 3.2e+47) {
tmp = a * (b * (z * -t));
} else if (y2 <= 1.3e+254) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (c * (x * y2))
t_2 = a * (y * (x * b))
if (y2 <= (-2.9d+101)) then
tmp = t_1
else if (y2 <= (-4.6d+30)) then
tmp = t_2
else if (y2 <= (-135000.0d0)) then
tmp = t_1
else if (y2 <= 3.2d-234) then
tmp = i * (y1 * (z * -k))
else if (y2 <= 1d-7) then
tmp = t_2
else if (y2 <= 3.2d+47) then
tmp = a * (b * (z * -t))
else if (y2 <= 1.3d+254) then
tmp = k * (y0 * (y2 * -y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -2.9e+101) {
tmp = t_1;
} else if (y2 <= -4.6e+30) {
tmp = t_2;
} else if (y2 <= -135000.0) {
tmp = t_1;
} else if (y2 <= 3.2e-234) {
tmp = i * (y1 * (z * -k));
} else if (y2 <= 1e-7) {
tmp = t_2;
} else if (y2 <= 3.2e+47) {
tmp = a * (b * (z * -t));
} else if (y2 <= 1.3e+254) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (c * (x * y2)) t_2 = a * (y * (x * b)) tmp = 0 if y2 <= -2.9e+101: tmp = t_1 elif y2 <= -4.6e+30: tmp = t_2 elif y2 <= -135000.0: tmp = t_1 elif y2 <= 3.2e-234: tmp = i * (y1 * (z * -k)) elif y2 <= 1e-7: tmp = t_2 elif y2 <= 3.2e+47: tmp = a * (b * (z * -t)) elif y2 <= 1.3e+254: tmp = k * (y0 * (y2 * -y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(c * Float64(x * y2))) t_2 = Float64(a * Float64(y * Float64(x * b))) tmp = 0.0 if (y2 <= -2.9e+101) tmp = t_1; elseif (y2 <= -4.6e+30) tmp = t_2; elseif (y2 <= -135000.0) tmp = t_1; elseif (y2 <= 3.2e-234) tmp = Float64(i * Float64(y1 * Float64(z * Float64(-k)))); elseif (y2 <= 1e-7) tmp = t_2; elseif (y2 <= 3.2e+47) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); elseif (y2 <= 1.3e+254) tmp = Float64(k * Float64(y0 * Float64(y2 * Float64(-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 = y0 * (c * (x * y2)); t_2 = a * (y * (x * b)); tmp = 0.0; if (y2 <= -2.9e+101) tmp = t_1; elseif (y2 <= -4.6e+30) tmp = t_2; elseif (y2 <= -135000.0) tmp = t_1; elseif (y2 <= 3.2e-234) tmp = i * (y1 * (z * -k)); elseif (y2 <= 1e-7) tmp = t_2; elseif (y2 <= 3.2e+47) tmp = a * (b * (z * -t)); elseif (y2 <= 1.3e+254) tmp = k * (y0 * (y2 * -y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.9e+101], t$95$1, If[LessEqual[y2, -4.6e+30], t$95$2, If[LessEqual[y2, -135000.0], t$95$1, If[LessEqual[y2, 3.2e-234], N[(i * N[(y1 * N[(z * (-k)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1e-7], t$95$2, If[LessEqual[y2, 3.2e+47], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.3e+254], N[(k * N[(y0 * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
t_2 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;y2 \leq -2.9 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -4.6 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -135000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{-234}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(z \cdot \left(-k\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 10^{-7}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{+47}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 1.3 \cdot 10^{+254}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -2.89999999999999987e101 or -4.6e30 < y2 < -135000 or 1.3e254 < y2 Initial program 21.5%
Taylor expanded in y0 around inf 40.0%
Taylor expanded in c around inf 48.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -2.89999999999999987e101 < y2 < -4.6e30 or 3.1999999999999999e-234 < y2 < 9.9999999999999995e-8Initial program 24.3%
Taylor expanded in b around inf 27.1%
Taylor expanded in a around inf 27.8%
Taylor expanded in x around inf 25.0%
*-commutative25.0%
associate-*r*29.3%
*-commutative29.3%
Simplified29.3%
if -135000 < y2 < 3.1999999999999999e-234Initial program 39.3%
Taylor expanded in y1 around inf 40.9%
Taylor expanded in i around inf 35.2%
Taylor expanded in j around 0 27.4%
neg-mul-127.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
if 9.9999999999999995e-8 < y2 < 3.2e47Initial program 41.5%
Taylor expanded in b around inf 25.5%
Taylor expanded in a around inf 50.8%
Taylor expanded in x around 0 50.8%
mul-1-neg50.8%
*-commutative50.8%
distribute-lft-neg-in50.8%
*-commutative50.8%
distribute-rgt-neg-in50.8%
*-commutative50.8%
distribute-rgt-neg-in50.8%
Simplified50.8%
if 3.2e47 < y2 < 1.3e254Initial program 19.5%
Taylor expanded in k around inf 35.1%
Taylor expanded in y0 around -inf 55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in y2 around inf 47.5%
Final simplification37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* c (* x y2)))) (t_2 (* a (* y (* x b)))))
(if (<= y2 -2.7e+101)
t_1
(if (<= y2 -3.7e+35)
t_2
(if (<= y2 -1050000.0)
t_1
(if (<= y2 4e-237)
(* i (* y1 (* z (- k))))
(if (<= y2 6e-6)
t_2
(if (<= y2 8.5e+71)
(* c (* t (* z i)))
(if (<= y2 1.4e+224) (* k (* y0 (* y2 (- y5)))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -2.7e+101) {
tmp = t_1;
} else if (y2 <= -3.7e+35) {
tmp = t_2;
} else if (y2 <= -1050000.0) {
tmp = t_1;
} else if (y2 <= 4e-237) {
tmp = i * (y1 * (z * -k));
} else if (y2 <= 6e-6) {
tmp = t_2;
} else if (y2 <= 8.5e+71) {
tmp = c * (t * (z * i));
} else if (y2 <= 1.4e+224) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (c * (x * y2))
t_2 = a * (y * (x * b))
if (y2 <= (-2.7d+101)) then
tmp = t_1
else if (y2 <= (-3.7d+35)) then
tmp = t_2
else if (y2 <= (-1050000.0d0)) then
tmp = t_1
else if (y2 <= 4d-237) then
tmp = i * (y1 * (z * -k))
else if (y2 <= 6d-6) then
tmp = t_2
else if (y2 <= 8.5d+71) then
tmp = c * (t * (z * i))
else if (y2 <= 1.4d+224) then
tmp = k * (y0 * (y2 * -y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -2.7e+101) {
tmp = t_1;
} else if (y2 <= -3.7e+35) {
tmp = t_2;
} else if (y2 <= -1050000.0) {
tmp = t_1;
} else if (y2 <= 4e-237) {
tmp = i * (y1 * (z * -k));
} else if (y2 <= 6e-6) {
tmp = t_2;
} else if (y2 <= 8.5e+71) {
tmp = c * (t * (z * i));
} else if (y2 <= 1.4e+224) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (c * (x * y2)) t_2 = a * (y * (x * b)) tmp = 0 if y2 <= -2.7e+101: tmp = t_1 elif y2 <= -3.7e+35: tmp = t_2 elif y2 <= -1050000.0: tmp = t_1 elif y2 <= 4e-237: tmp = i * (y1 * (z * -k)) elif y2 <= 6e-6: tmp = t_2 elif y2 <= 8.5e+71: tmp = c * (t * (z * i)) elif y2 <= 1.4e+224: tmp = k * (y0 * (y2 * -y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(c * Float64(x * y2))) t_2 = Float64(a * Float64(y * Float64(x * b))) tmp = 0.0 if (y2 <= -2.7e+101) tmp = t_1; elseif (y2 <= -3.7e+35) tmp = t_2; elseif (y2 <= -1050000.0) tmp = t_1; elseif (y2 <= 4e-237) tmp = Float64(i * Float64(y1 * Float64(z * Float64(-k)))); elseif (y2 <= 6e-6) tmp = t_2; elseif (y2 <= 8.5e+71) tmp = Float64(c * Float64(t * Float64(z * i))); elseif (y2 <= 1.4e+224) tmp = Float64(k * Float64(y0 * Float64(y2 * Float64(-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 = y0 * (c * (x * y2)); t_2 = a * (y * (x * b)); tmp = 0.0; if (y2 <= -2.7e+101) tmp = t_1; elseif (y2 <= -3.7e+35) tmp = t_2; elseif (y2 <= -1050000.0) tmp = t_1; elseif (y2 <= 4e-237) tmp = i * (y1 * (z * -k)); elseif (y2 <= 6e-6) tmp = t_2; elseif (y2 <= 8.5e+71) tmp = c * (t * (z * i)); elseif (y2 <= 1.4e+224) tmp = k * (y0 * (y2 * -y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.7e+101], t$95$1, If[LessEqual[y2, -3.7e+35], t$95$2, If[LessEqual[y2, -1050000.0], t$95$1, If[LessEqual[y2, 4e-237], N[(i * N[(y1 * N[(z * (-k)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6e-6], t$95$2, If[LessEqual[y2, 8.5e+71], N[(c * N[(t * N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.4e+224], N[(k * N[(y0 * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
t_2 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;y2 \leq -2.7 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -3.7 \cdot 10^{+35}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -1050000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 4 \cdot 10^{-237}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(z \cdot \left(-k\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 6 \cdot 10^{-6}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 8.5 \cdot 10^{+71}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i\right)\right)\\
\mathbf{elif}\;y2 \leq 1.4 \cdot 10^{+224}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -2.70000000000000006e101 or -3.7e35 < y2 < -1.05e6 or 1.40000000000000004e224 < y2 Initial program 21.5%
Taylor expanded in y0 around inf 40.0%
Taylor expanded in c around inf 48.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -2.70000000000000006e101 < y2 < -3.7e35 or 4e-237 < y2 < 6.0000000000000002e-6Initial program 24.3%
Taylor expanded in b around inf 27.1%
Taylor expanded in a around inf 27.8%
Taylor expanded in x around inf 25.0%
*-commutative25.0%
associate-*r*29.3%
*-commutative29.3%
Simplified29.3%
if -1.05e6 < y2 < 4e-237Initial program 39.3%
Taylor expanded in y1 around inf 40.9%
Taylor expanded in i around inf 35.2%
Taylor expanded in j around 0 27.4%
neg-mul-127.4%
distribute-rgt-neg-in27.4%
Simplified27.4%
if 6.0000000000000002e-6 < y2 < 8.4999999999999996e71Initial program 38.8%
Taylor expanded in c around inf 28.5%
Taylor expanded in z around inf 40.1%
Taylor expanded in y0 around 0 29.4%
associate-*r*34.5%
*-commutative34.5%
associate-*l*40.1%
*-commutative40.1%
Simplified40.1%
if 8.4999999999999996e71 < y2 < 1.40000000000000004e224Initial program 15.4%
Taylor expanded in k around inf 40.3%
Taylor expanded in y0 around -inf 61.0%
mul-1-neg61.0%
Simplified61.0%
Taylor expanded in y2 around inf 56.1%
Final simplification37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y2 (- (* y1 y4) (* y0 y5))))))
(if (<= y -1.52e+156)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y -5.9e+81)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y -5e+19)
(* i (* x (- (* j y1) (* y c))))
(if (<= y -6.4e-218)
t_1
(if (<= y 3.8e-142)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y 8e+32) t_1 (* y (* y5 (- (* i k) (* a y3))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y <= -1.52e+156) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y <= -5.9e+81) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= -5e+19) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y <= -6.4e-218) {
tmp = t_1;
} else if (y <= 3.8e-142) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y <= 8e+32) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)))
if (y <= (-1.52d+156)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y <= (-5.9d+81)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y <= (-5d+19)) then
tmp = i * (x * ((j * y1) - (y * c)))
else if (y <= (-6.4d-218)) then
tmp = t_1
else if (y <= 3.8d-142) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y <= 8d+32) then
tmp = t_1
else
tmp = y * (y5 * ((i * k) - (a * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (y <= -1.52e+156) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y <= -5.9e+81) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y <= -5e+19) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y <= -6.4e-218) {
tmp = t_1;
} else if (y <= 3.8e-142) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y <= 8e+32) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * ((y1 * y4) - (y0 * y5))) tmp = 0 if y <= -1.52e+156: tmp = c * (y * ((y3 * y4) - (x * i))) elif y <= -5.9e+81: tmp = b * (y0 * ((z * k) - (x * j))) elif y <= -5e+19: tmp = i * (x * ((j * y1) - (y * c))) elif y <= -6.4e-218: tmp = t_1 elif y <= 3.8e-142: tmp = k * (z * ((b * y0) - (i * y1))) elif y <= 8e+32: tmp = t_1 else: tmp = y * (y5 * ((i * k) - (a * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (y <= -1.52e+156) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y <= -5.9e+81) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y <= -5e+19) tmp = Float64(i * Float64(x * Float64(Float64(j * y1) - Float64(y * c)))); elseif (y <= -6.4e-218) tmp = t_1; elseif (y <= 3.8e-142) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y <= 8e+32) tmp = t_1; else tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (y <= -1.52e+156) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y <= -5.9e+81) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y <= -5e+19) tmp = i * (x * ((j * y1) - (y * c))); elseif (y <= -6.4e-218) tmp = t_1; elseif (y <= 3.8e-142) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y <= 8e+32) tmp = t_1; else tmp = y * (y5 * ((i * k) - (a * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.52e+156], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.9e+81], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5e+19], N[(i * N[(x * N[(N[(j * y1), $MachinePrecision] - N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.4e-218], t$95$1, If[LessEqual[y, 3.8e-142], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e+32], t$95$1, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{if}\;y \leq -1.52 \cdot 10^{+156}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y \leq -5.9 \cdot 10^{+81}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y \leq -5 \cdot 10^{+19}:\\
\;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\
\mathbf{elif}\;y \leq -6.4 \cdot 10^{-218}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-142}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\end{array}
\end{array}
if y < -1.52e156Initial program 10.3%
Taylor expanded in c around inf 22.9%
Taylor expanded in y around -inf 55.3%
mul-1-neg55.3%
Simplified55.3%
if -1.52e156 < y < -5.9000000000000004e81Initial program 26.3%
Taylor expanded in b around inf 47.4%
Taylor expanded in y0 around inf 58.9%
if -5.9000000000000004e81 < y < -5e19Initial program 19.9%
Taylor expanded in i around -inf 54.0%
Taylor expanded in x around inf 68.7%
if -5e19 < y < -6.4000000000000002e-218 or 3.79999999999999972e-142 < y < 8.00000000000000043e32Initial program 37.6%
Taylor expanded in k around inf 48.6%
Taylor expanded in y2 around inf 51.5%
if -6.4000000000000002e-218 < y < 3.79999999999999972e-142Initial program 29.5%
Taylor expanded in k around inf 26.0%
Taylor expanded in z around inf 39.4%
if 8.00000000000000043e32 < y Initial program 30.0%
Taylor expanded in y5 around -inf 43.2%
Taylor expanded in y around inf 46.3%
distribute-lft-out--46.3%
*-commutative46.3%
*-commutative46.3%
Simplified46.3%
Final simplification49.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.3e+224)
(* x (* y0 (- (* c y2) (* b j))))
(if (<= y2 -2e+101)
(* i (* x (- (* j y1) (* y c))))
(if (<= y2 -1500000000.0)
(* (* y0 y3) (- (* j y5) (* z c)))
(if (<= y2 -2.3e-79)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -1.05e-299)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y2 3.5e-19)
(* i (* k (- (* y y5) (* z y1))))
(* k (* y2 (- (* y1 y4) (* y0 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.3e+224) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y2 <= -2e+101) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y2 <= -1500000000.0) {
tmp = (y0 * y3) * ((j * y5) - (z * c));
} else if (y2 <= -2.3e-79) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.05e-299) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 3.5e-19) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.3d+224)) then
tmp = x * (y0 * ((c * y2) - (b * j)))
else if (y2 <= (-2d+101)) then
tmp = i * (x * ((j * y1) - (y * c)))
else if (y2 <= (-1500000000.0d0)) then
tmp = (y0 * y3) * ((j * y5) - (z * c))
else if (y2 <= (-2.3d-79)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-1.05d-299)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y2 <= 3.5d-19) then
tmp = i * (k * ((y * y5) - (z * y1)))
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.3e+224) {
tmp = x * (y0 * ((c * y2) - (b * j)));
} else if (y2 <= -2e+101) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y2 <= -1500000000.0) {
tmp = (y0 * y3) * ((j * y5) - (z * c));
} else if (y2 <= -2.3e-79) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.05e-299) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 3.5e-19) {
tmp = i * (k * ((y * y5) - (z * y1)));
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.3e+224: tmp = x * (y0 * ((c * y2) - (b * j))) elif y2 <= -2e+101: tmp = i * (x * ((j * y1) - (y * c))) elif y2 <= -1500000000.0: tmp = (y0 * y3) * ((j * y5) - (z * c)) elif y2 <= -2.3e-79: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -1.05e-299: tmp = b * (y0 * ((z * k) - (x * j))) elif y2 <= 3.5e-19: tmp = i * (k * ((y * y5) - (z * y1))) else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.3e+224) tmp = Float64(x * Float64(y0 * Float64(Float64(c * y2) - Float64(b * j)))); elseif (y2 <= -2e+101) tmp = Float64(i * Float64(x * Float64(Float64(j * y1) - Float64(y * c)))); elseif (y2 <= -1500000000.0) tmp = Float64(Float64(y0 * y3) * Float64(Float64(j * y5) - Float64(z * c))); elseif (y2 <= -2.3e-79) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -1.05e-299) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y2 <= 3.5e-19) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))); else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.3e+224) tmp = x * (y0 * ((c * y2) - (b * j))); elseif (y2 <= -2e+101) tmp = i * (x * ((j * y1) - (y * c))); elseif (y2 <= -1500000000.0) tmp = (y0 * y3) * ((j * y5) - (z * c)); elseif (y2 <= -2.3e-79) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -1.05e-299) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y2 <= 3.5e-19) tmp = i * (k * ((y * y5) - (z * y1))); else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.3e+224], N[(x * N[(y0 * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2e+101], N[(i * N[(x * N[(N[(j * y1), $MachinePrecision] - N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1500000000.0], N[(N[(y0 * y3), $MachinePrecision] * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.3e-79], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.05e-299], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e-19], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.3 \cdot 10^{+224}:\\
\;\;\;\;x \cdot \left(y0 \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq -2 \cdot 10^{+101}:\\
\;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\
\mathbf{elif}\;y2 \leq -1500000000:\\
\;\;\;\;\left(y0 \cdot y3\right) \cdot \left(j \cdot y5 - z \cdot c\right)\\
\mathbf{elif}\;y2 \leq -2.3 \cdot 10^{-79}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-299}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{-19}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -2.3000000000000002e224Initial program 20.0%
Taylor expanded in y0 around inf 40.4%
Taylor expanded in x around inf 75.3%
if -2.3000000000000002e224 < y2 < -2e101Initial program 30.3%
Taylor expanded in i around -inf 43.4%
Taylor expanded in x around inf 53.8%
if -2e101 < y2 < -1.5e9Initial program 24.2%
Taylor expanded in y0 around inf 34.3%
Taylor expanded in y3 around inf 44.4%
associate-*r*44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
Simplified44.1%
if -1.5e9 < y2 < -2.30000000000000012e-79Initial program 29.1%
Taylor expanded in y1 around inf 48.7%
Taylor expanded in y4 around inf 48.6%
if -2.30000000000000012e-79 < y2 < -1.05000000000000005e-299Initial program 37.3%
Taylor expanded in b around inf 50.8%
Taylor expanded in y0 around inf 48.6%
if -1.05000000000000005e-299 < y2 < 3.50000000000000015e-19Initial program 31.7%
Taylor expanded in k around inf 36.8%
Taylor expanded in i around inf 35.7%
if 3.50000000000000015e-19 < y2 Initial program 22.5%
Taylor expanded in k around inf 50.7%
Taylor expanded in y2 around inf 52.8%
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 (* i (* k (- (* y y5) (* z y1))))))
(if (<= y2 -1.8e+124)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -2.65e+93)
t_1
(if (<= y2 -1700000000.0)
(* (* y0 y3) (- (* j y5) (* z c)))
(if (<= y2 -2.2e-78)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -1e-297)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y2 3.8e-18)
t_1
(* k (* y2 (- (* y1 y4) (* y0 y5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (y2 <= -1.8e+124) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -2.65e+93) {
tmp = t_1;
} else if (y2 <= -1700000000.0) {
tmp = (y0 * y3) * ((j * y5) - (z * c));
} else if (y2 <= -2.2e-78) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1e-297) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 3.8e-18) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
if (y2 <= (-1.8d+124)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-2.65d+93)) then
tmp = t_1
else if (y2 <= (-1700000000.0d0)) then
tmp = (y0 * y3) * ((j * y5) - (z * c))
else if (y2 <= (-2.2d-78)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-1d-297)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y2 <= 3.8d-18) then
tmp = t_1
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (y2 <= -1.8e+124) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -2.65e+93) {
tmp = t_1;
} else if (y2 <= -1700000000.0) {
tmp = (y0 * y3) * ((j * y5) - (z * c));
} else if (y2 <= -2.2e-78) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1e-297) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 3.8e-18) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if y2 <= -1.8e+124: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -2.65e+93: tmp = t_1 elif y2 <= -1700000000.0: tmp = (y0 * y3) * ((j * y5) - (z * c)) elif y2 <= -2.2e-78: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -1e-297: tmp = b * (y0 * ((z * k) - (x * j))) elif y2 <= 3.8e-18: tmp = t_1 else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (y2 <= -1.8e+124) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -2.65e+93) tmp = t_1; elseif (y2 <= -1700000000.0) tmp = Float64(Float64(y0 * y3) * Float64(Float64(j * y5) - Float64(z * c))); elseif (y2 <= -2.2e-78) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -1e-297) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y2 <= 3.8e-18) tmp = t_1; else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (y2 <= -1.8e+124) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -2.65e+93) tmp = t_1; elseif (y2 <= -1700000000.0) tmp = (y0 * y3) * ((j * y5) - (z * c)); elseif (y2 <= -2.2e-78) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -1e-297) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y2 <= 3.8e-18) tmp = t_1; else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.8e+124], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.65e+93], t$95$1, If[LessEqual[y2, -1700000000.0], N[(N[(y0 * y3), $MachinePrecision] * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.2e-78], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1e-297], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.8e-18], t$95$1, N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;y2 \leq -1.8 \cdot 10^{+124}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -2.65 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1700000000:\\
\;\;\;\;\left(y0 \cdot y3\right) \cdot \left(j \cdot y5 - z \cdot c\right)\\
\mathbf{elif}\;y2 \leq -2.2 \cdot 10^{-78}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1 \cdot 10^{-297}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 3.8 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -1.79999999999999993e124Initial program 22.4%
Taylor expanded in c around inf 40.1%
Taylor expanded in y2 around inf 58.3%
if -1.79999999999999993e124 < y2 < -2.6500000000000002e93 or -1.00000000000000004e-297 < y2 < 3.7999999999999998e-18Initial program 33.3%
Taylor expanded in k around inf 40.5%
Taylor expanded in i around inf 39.6%
if -2.6500000000000002e93 < y2 < -1.7e9Initial program 24.0%
Taylor expanded in y0 around inf 36.5%
Taylor expanded in y3 around inf 48.5%
associate-*r*48.1%
+-commutative48.1%
mul-1-neg48.1%
unsub-neg48.1%
Simplified48.1%
if -1.7e9 < y2 < -2.1999999999999999e-78Initial program 29.1%
Taylor expanded in y1 around inf 48.7%
Taylor expanded in y4 around inf 48.6%
if -2.1999999999999999e-78 < y2 < -1.00000000000000004e-297Initial program 37.3%
Taylor expanded in b around inf 50.8%
Taylor expanded in y0 around inf 48.6%
if 3.7999999999999998e-18 < y2 Initial program 22.5%
Taylor expanded in k around inf 50.7%
Taylor expanded in y2 around inf 52.8%
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 (* i (* k (- (* y y5) (* z y1))))))
(if (<= y2 -2.1e+120)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -3.5e+90)
t_1
(if (<= y2 -3.8e+34)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= y2 -1.12e-69)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -1.28e-298)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y2 1.05e-20)
t_1
(* k (* y2 (- (* y1 y4) (* y0 y5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (y2 <= -2.1e+120) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -3.5e+90) {
tmp = t_1;
} else if (y2 <= -3.8e+34) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= -1.12e-69) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.28e-298) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 1.05e-20) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * ((y * y5) - (z * y1)))
if (y2 <= (-2.1d+120)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-3.5d+90)) then
tmp = t_1
else if (y2 <= (-3.8d+34)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (y2 <= (-1.12d-69)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-1.28d-298)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y2 <= 1.05d-20) then
tmp = t_1
else
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (z * y1)));
double tmp;
if (y2 <= -2.1e+120) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -3.5e+90) {
tmp = t_1;
} else if (y2 <= -3.8e+34) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (y2 <= -1.12e-69) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.28e-298) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y2 <= 1.05e-20) {
tmp = t_1;
} else {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * ((y * y5) - (z * y1))) tmp = 0 if y2 <= -2.1e+120: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -3.5e+90: tmp = t_1 elif y2 <= -3.8e+34: tmp = c * (y4 * ((y * y3) - (t * y2))) elif y2 <= -1.12e-69: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -1.28e-298: tmp = b * (y0 * ((z * k) - (x * j))) elif y2 <= 1.05e-20: tmp = t_1 else: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(z * y1)))) tmp = 0.0 if (y2 <= -2.1e+120) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -3.5e+90) tmp = t_1; elseif (y2 <= -3.8e+34) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (y2 <= -1.12e-69) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -1.28e-298) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y2 <= 1.05e-20) tmp = t_1; else tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * ((y * y5) - (z * y1))); tmp = 0.0; if (y2 <= -2.1e+120) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -3.5e+90) tmp = t_1; elseif (y2 <= -3.8e+34) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (y2 <= -1.12e-69) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -1.28e-298) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y2 <= 1.05e-20) tmp = t_1; else tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.1e+120], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.5e+90], t$95$1, If[LessEqual[y2, -3.8e+34], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.12e-69], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.28e-298], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.05e-20], t$95$1, N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - z \cdot y1\right)\right)\\
\mathbf{if}\;y2 \leq -2.1 \cdot 10^{+120}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -3.5 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -3.8 \cdot 10^{+34}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq -1.12 \cdot 10^{-69}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.28 \cdot 10^{-298}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 1.05 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -2.1e120Initial program 22.4%
Taylor expanded in c around inf 40.1%
Taylor expanded in y2 around inf 58.3%
if -2.1e120 < y2 < -3.4999999999999998e90 or -1.28000000000000003e-298 < y2 < 1.0499999999999999e-20Initial program 33.3%
Taylor expanded in k around inf 40.5%
Taylor expanded in i around inf 39.6%
if -3.4999999999999998e90 < y2 < -3.8000000000000001e34Initial program 23.0%
Taylor expanded in c around inf 46.7%
Taylor expanded in y4 around inf 47.9%
if -3.8000000000000001e34 < y2 < -1.12e-69Initial program 28.8%
Taylor expanded in y1 around inf 48.9%
Taylor expanded in y4 around inf 48.9%
if -1.12e-69 < y2 < -1.28000000000000003e-298Initial program 37.3%
Taylor expanded in b around inf 50.8%
Taylor expanded in y0 around inf 48.6%
if 1.0499999999999999e-20 < y2 Initial program 22.5%
Taylor expanded in k around inf 50.7%
Taylor expanded in y2 around inf 52.8%
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 (* y0 (* c (* x y2)))) (t_2 (* a (* y (* x b)))))
(if (<= y2 -2.7e+101)
t_1
(if (<= y2 -4.2e+37)
t_2
(if (<= y2 -360000.0)
t_1
(if (<= y2 -5.4e-213)
(* c (* i (* z t)))
(if (<= y2 7.5e+33)
t_2
(if (<= y2 1.95e+235) (* k (* y0 (* y2 (- y5)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -2.7e+101) {
tmp = t_1;
} else if (y2 <= -4.2e+37) {
tmp = t_2;
} else if (y2 <= -360000.0) {
tmp = t_1;
} else if (y2 <= -5.4e-213) {
tmp = c * (i * (z * t));
} else if (y2 <= 7.5e+33) {
tmp = t_2;
} else if (y2 <= 1.95e+235) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (c * (x * y2))
t_2 = a * (y * (x * b))
if (y2 <= (-2.7d+101)) then
tmp = t_1
else if (y2 <= (-4.2d+37)) then
tmp = t_2
else if (y2 <= (-360000.0d0)) then
tmp = t_1
else if (y2 <= (-5.4d-213)) then
tmp = c * (i * (z * t))
else if (y2 <= 7.5d+33) then
tmp = t_2
else if (y2 <= 1.95d+235) then
tmp = k * (y0 * (y2 * -y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (c * (x * y2));
double t_2 = a * (y * (x * b));
double tmp;
if (y2 <= -2.7e+101) {
tmp = t_1;
} else if (y2 <= -4.2e+37) {
tmp = t_2;
} else if (y2 <= -360000.0) {
tmp = t_1;
} else if (y2 <= -5.4e-213) {
tmp = c * (i * (z * t));
} else if (y2 <= 7.5e+33) {
tmp = t_2;
} else if (y2 <= 1.95e+235) {
tmp = k * (y0 * (y2 * -y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (c * (x * y2)) t_2 = a * (y * (x * b)) tmp = 0 if y2 <= -2.7e+101: tmp = t_1 elif y2 <= -4.2e+37: tmp = t_2 elif y2 <= -360000.0: tmp = t_1 elif y2 <= -5.4e-213: tmp = c * (i * (z * t)) elif y2 <= 7.5e+33: tmp = t_2 elif y2 <= 1.95e+235: tmp = k * (y0 * (y2 * -y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(c * Float64(x * y2))) t_2 = Float64(a * Float64(y * Float64(x * b))) tmp = 0.0 if (y2 <= -2.7e+101) tmp = t_1; elseif (y2 <= -4.2e+37) tmp = t_2; elseif (y2 <= -360000.0) tmp = t_1; elseif (y2 <= -5.4e-213) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (y2 <= 7.5e+33) tmp = t_2; elseif (y2 <= 1.95e+235) tmp = Float64(k * Float64(y0 * Float64(y2 * Float64(-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 = y0 * (c * (x * y2)); t_2 = a * (y * (x * b)); tmp = 0.0; if (y2 <= -2.7e+101) tmp = t_1; elseif (y2 <= -4.2e+37) tmp = t_2; elseif (y2 <= -360000.0) tmp = t_1; elseif (y2 <= -5.4e-213) tmp = c * (i * (z * t)); elseif (y2 <= 7.5e+33) tmp = t_2; elseif (y2 <= 1.95e+235) tmp = k * (y0 * (y2 * -y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.7e+101], t$95$1, If[LessEqual[y2, -4.2e+37], t$95$2, If[LessEqual[y2, -360000.0], t$95$1, If[LessEqual[y2, -5.4e-213], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.5e+33], t$95$2, If[LessEqual[y2, 1.95e+235], N[(k * N[(y0 * N[(y2 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
t_2 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;y2 \leq -2.7 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -4.2 \cdot 10^{+37}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -360000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -5.4 \cdot 10^{-213}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 7.5 \cdot 10^{+33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 1.95 \cdot 10^{+235}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(y2 \cdot \left(-y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -2.70000000000000006e101 or -4.2000000000000002e37 < y2 < -3.6e5 or 1.9500000000000001e235 < y2 Initial program 21.5%
Taylor expanded in y0 around inf 40.0%
Taylor expanded in c around inf 48.0%
Taylor expanded in x around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -2.70000000000000006e101 < y2 < -4.2000000000000002e37 or -5.4000000000000001e-213 < y2 < 7.50000000000000046e33Initial program 32.4%
Taylor expanded in b around inf 33.3%
Taylor expanded in a around inf 28.6%
Taylor expanded in x around inf 23.3%
*-commutative23.3%
associate-*r*25.9%
*-commutative25.9%
Simplified25.9%
if -3.6e5 < y2 < -5.4000000000000001e-213Initial program 34.6%
Taylor expanded in c around inf 28.5%
Taylor expanded in z around inf 28.7%
Taylor expanded in y0 around 0 27.2%
if 7.50000000000000046e33 < y2 < 1.9500000000000001e235Initial program 22.8%
Taylor expanded in k around inf 39.3%
Taylor expanded in y0 around -inf 53.0%
mul-1-neg53.0%
Simplified53.0%
Taylor expanded in y2 around inf 43.5%
Final simplification34.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t)))))
(t_2 (* b (* y0 (- (* z k) (* x j))))))
(if (<= y2 -4.2e+130)
(* c (* x (* y0 y2)))
(if (<= y2 2.1e-239)
t_2
(if (<= y2 4.8e-99)
t_1
(if (<= y2 1.45e-8)
t_2
(if (<= y2 2.3e+215) t_1 (* y0 (* c (* x y2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = b * (y0 * ((z * k) - (x * j)));
double tmp;
if (y2 <= -4.2e+130) {
tmp = c * (x * (y0 * y2));
} else if (y2 <= 2.1e-239) {
tmp = t_2;
} else if (y2 <= 4.8e-99) {
tmp = t_1;
} else if (y2 <= 1.45e-8) {
tmp = t_2;
} else if (y2 <= 2.3e+215) {
tmp = t_1;
} else {
tmp = y0 * (c * (x * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
t_2 = b * (y0 * ((z * k) - (x * j)))
if (y2 <= (-4.2d+130)) then
tmp = c * (x * (y0 * y2))
else if (y2 <= 2.1d-239) then
tmp = t_2
else if (y2 <= 4.8d-99) then
tmp = t_1
else if (y2 <= 1.45d-8) then
tmp = t_2
else if (y2 <= 2.3d+215) then
tmp = t_1
else
tmp = y0 * (c * (x * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double t_2 = b * (y0 * ((z * k) - (x * j)));
double tmp;
if (y2 <= -4.2e+130) {
tmp = c * (x * (y0 * y2));
} else if (y2 <= 2.1e-239) {
tmp = t_2;
} else if (y2 <= 4.8e-99) {
tmp = t_1;
} else if (y2 <= 1.45e-8) {
tmp = t_2;
} else if (y2 <= 2.3e+215) {
tmp = t_1;
} else {
tmp = y0 * (c * (x * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) t_2 = b * (y0 * ((z * k) - (x * j))) tmp = 0 if y2 <= -4.2e+130: tmp = c * (x * (y0 * y2)) elif y2 <= 2.1e-239: tmp = t_2 elif y2 <= 4.8e-99: tmp = t_1 elif y2 <= 1.45e-8: tmp = t_2 elif y2 <= 2.3e+215: tmp = t_1 else: tmp = y0 * (c * (x * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_2 = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (y2 <= -4.2e+130) tmp = Float64(c * Float64(x * Float64(y0 * y2))); elseif (y2 <= 2.1e-239) tmp = t_2; elseif (y2 <= 4.8e-99) tmp = t_1; elseif (y2 <= 1.45e-8) tmp = t_2; elseif (y2 <= 2.3e+215) tmp = t_1; else tmp = Float64(y0 * Float64(c * Float64(x * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); t_2 = b * (y0 * ((z * k) - (x * j))); tmp = 0.0; if (y2 <= -4.2e+130) tmp = c * (x * (y0 * y2)); elseif (y2 <= 2.1e-239) tmp = t_2; elseif (y2 <= 4.8e-99) tmp = t_1; elseif (y2 <= 1.45e-8) tmp = t_2; elseif (y2 <= 2.3e+215) tmp = t_1; else tmp = y0 * (c * (x * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.2e+130], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.1e-239], t$95$2, If[LessEqual[y2, 4.8e-99], t$95$1, If[LessEqual[y2, 1.45e-8], t$95$2, If[LessEqual[y2, 2.3e+215], t$95$1, N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_2 := b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;y2 \leq -4.2 \cdot 10^{+130}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{-239}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.45 \cdot 10^{-8}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq 2.3 \cdot 10^{+215}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -4.19999999999999981e130Initial program 20.6%
Taylor expanded in y0 around inf 36.9%
Taylor expanded in c around inf 46.5%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
Simplified51.0%
if -4.19999999999999981e130 < y2 < 2.1000000000000002e-239 or 4.8000000000000001e-99 < y2 < 1.4500000000000001e-8Initial program 36.2%
Taylor expanded in b around inf 35.7%
Taylor expanded in y0 around inf 36.0%
if 2.1000000000000002e-239 < y2 < 4.8000000000000001e-99 or 1.4500000000000001e-8 < y2 < 2.3000000000000001e215Initial program 22.3%
Taylor expanded in b around inf 39.5%
Taylor expanded in a around inf 43.1%
if 2.3000000000000001e215 < y2 Initial program 14.3%
Taylor expanded in y0 around inf 42.9%
Taylor expanded in c around inf 64.6%
Taylor expanded in x around inf 64.6%
*-commutative64.6%
Simplified64.6%
Final simplification41.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* c (* x y2)))))
(if (<= y2 -3.5e+101)
t_1
(if (<= y2 -2.8e+34)
(* a (* y (* x b)))
(if (<= y2 -1700000.0)
t_1
(if (<= y2 -6.6e-189)
(* i (* y1 (* z (- k))))
(if (<= y2 2e+210) (* a (* b (- (* x y) (* z t)))) 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 = y0 * (c * (x * y2));
double tmp;
if (y2 <= -3.5e+101) {
tmp = t_1;
} else if (y2 <= -2.8e+34) {
tmp = a * (y * (x * b));
} else if (y2 <= -1700000.0) {
tmp = t_1;
} else if (y2 <= -6.6e-189) {
tmp = i * (y1 * (z * -k));
} else if (y2 <= 2e+210) {
tmp = a * (b * ((x * y) - (z * t)));
} 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 = y0 * (c * (x * y2))
if (y2 <= (-3.5d+101)) then
tmp = t_1
else if (y2 <= (-2.8d+34)) then
tmp = a * (y * (x * b))
else if (y2 <= (-1700000.0d0)) then
tmp = t_1
else if (y2 <= (-6.6d-189)) then
tmp = i * (y1 * (z * -k))
else if (y2 <= 2d+210) then
tmp = a * (b * ((x * y) - (z * t)))
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 = y0 * (c * (x * y2));
double tmp;
if (y2 <= -3.5e+101) {
tmp = t_1;
} else if (y2 <= -2.8e+34) {
tmp = a * (y * (x * b));
} else if (y2 <= -1700000.0) {
tmp = t_1;
} else if (y2 <= -6.6e-189) {
tmp = i * (y1 * (z * -k));
} else if (y2 <= 2e+210) {
tmp = a * (b * ((x * y) - (z * t)));
} 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 = y0 * (c * (x * y2)) tmp = 0 if y2 <= -3.5e+101: tmp = t_1 elif y2 <= -2.8e+34: tmp = a * (y * (x * b)) elif y2 <= -1700000.0: tmp = t_1 elif y2 <= -6.6e-189: tmp = i * (y1 * (z * -k)) elif y2 <= 2e+210: tmp = a * (b * ((x * y) - (z * t))) 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(y0 * Float64(c * Float64(x * y2))) tmp = 0.0 if (y2 <= -3.5e+101) tmp = t_1; elseif (y2 <= -2.8e+34) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (y2 <= -1700000.0) tmp = t_1; elseif (y2 <= -6.6e-189) tmp = Float64(i * Float64(y1 * Float64(z * Float64(-k)))); elseif (y2 <= 2e+210) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); 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 = y0 * (c * (x * y2)); tmp = 0.0; if (y2 <= -3.5e+101) tmp = t_1; elseif (y2 <= -2.8e+34) tmp = a * (y * (x * b)); elseif (y2 <= -1700000.0) tmp = t_1; elseif (y2 <= -6.6e-189) tmp = i * (y1 * (z * -k)); elseif (y2 <= 2e+210) tmp = a * (b * ((x * y) - (z * t))); 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[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.5e+101], t$95$1, If[LessEqual[y2, -2.8e+34], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1700000.0], t$95$1, If[LessEqual[y2, -6.6e-189], N[(i * N[(y1 * N[(z * (-k)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2e+210], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{if}\;y2 \leq -3.5 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -2.8 \cdot 10^{+34}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;y2 \leq -1700000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -6.6 \cdot 10^{-189}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(z \cdot \left(-k\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{+210}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -3.50000000000000023e101 or -2.80000000000000008e34 < y2 < -1.7e6 or 1.99999999999999985e210 < y2 Initial program 23.1%
Taylor expanded in y0 around inf 40.6%
Taylor expanded in c around inf 46.7%
Taylor expanded in x around inf 49.7%
*-commutative49.7%
Simplified49.7%
if -3.50000000000000023e101 < y2 < -2.80000000000000008e34Initial program 22.1%
Taylor expanded in b around inf 16.4%
Taylor expanded in a around inf 22.9%
Taylor expanded in x around inf 23.4%
*-commutative23.4%
associate-*r*34.1%
*-commutative34.1%
Simplified34.1%
if -1.7e6 < y2 < -6.6000000000000002e-189Initial program 33.9%
Taylor expanded in y1 around inf 42.5%
Taylor expanded in i around inf 40.7%
Taylor expanded in j around 0 30.9%
neg-mul-130.9%
distribute-rgt-neg-in30.9%
Simplified30.9%
if -6.6000000000000002e-189 < y2 < 1.99999999999999985e210Initial program 31.2%
Taylor expanded in b around inf 41.2%
Taylor expanded in a around inf 33.7%
Final simplification37.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* x j) (* z k))))))
(if (<= y1 -3.8e+268)
t_1
(if (<= y1 -7.4e-239)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y1 2.9e-235)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= y1 2.9e+183) (* a (* b (- (* x y) (* z t)))) 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 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -3.8e+268) {
tmp = t_1;
} else if (y1 <= -7.4e-239) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 2.9e-235) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y1 <= 2.9e+183) {
tmp = a * (b * ((x * y) - (z * t)));
} 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 = i * (y1 * ((x * j) - (z * k)))
if (y1 <= (-3.8d+268)) then
tmp = t_1
else if (y1 <= (-7.4d-239)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y1 <= 2.9d-235) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (y1 <= 2.9d+183) then
tmp = a * (b * ((x * y) - (z * t)))
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 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -3.8e+268) {
tmp = t_1;
} else if (y1 <= -7.4e-239) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 2.9e-235) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y1 <= 2.9e+183) {
tmp = a * (b * ((x * y) - (z * t)));
} 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 = i * (y1 * ((x * j) - (z * k))) tmp = 0 if y1 <= -3.8e+268: tmp = t_1 elif y1 <= -7.4e-239: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y1 <= 2.9e-235: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif y1 <= 2.9e+183: tmp = a * (b * ((x * y) - (z * t))) 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(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) tmp = 0.0 if (y1 <= -3.8e+268) tmp = t_1; elseif (y1 <= -7.4e-239) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y1 <= 2.9e-235) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (y1 <= 2.9e+183) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); 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 = i * (y1 * ((x * j) - (z * k))); tmp = 0.0; if (y1 <= -3.8e+268) tmp = t_1; elseif (y1 <= -7.4e-239) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y1 <= 2.9e-235) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (y1 <= 2.9e+183) tmp = a * (b * ((x * y) - (z * t))); 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[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.8e+268], t$95$1, If[LessEqual[y1, -7.4e-239], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.9e-235], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.9e+183], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;y1 \leq -3.8 \cdot 10^{+268}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -7.4 \cdot 10^{-239}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 2.9 \cdot 10^{-235}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;y1 \leq 2.9 \cdot 10^{+183}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -3.80000000000000027e268 or 2.9000000000000001e183 < y1 Initial program 22.1%
Taylor expanded in y1 around inf 63.3%
Taylor expanded in i around inf 57.0%
if -3.80000000000000027e268 < y1 < -7.40000000000000031e-239Initial program 29.1%
Taylor expanded in c around inf 38.1%
Taylor expanded in y0 around inf 40.8%
if -7.40000000000000031e-239 < y1 < 2.90000000000000009e-235Initial program 46.0%
Taylor expanded in y0 around inf 50.8%
Taylor expanded in j around inf 39.8%
if 2.90000000000000009e-235 < y1 < 2.9000000000000001e183Initial program 22.5%
Taylor expanded in b around inf 34.9%
Taylor expanded in a around inf 35.6%
Final simplification42.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* x j) (* z k))))))
(if (<= y1 -1.7e+268)
t_1
(if (<= y1 -4.9e-231)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y1 8.8e-257)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y1 2.4e+183) (* a (* b (- (* x y) (* z t)))) 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 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -1.7e+268) {
tmp = t_1;
} else if (y1 <= -4.9e-231) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 8.8e-257) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y1 <= 2.4e+183) {
tmp = a * (b * ((x * y) - (z * t)));
} 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 = i * (y1 * ((x * j) - (z * k)))
if (y1 <= (-1.7d+268)) then
tmp = t_1
else if (y1 <= (-4.9d-231)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y1 <= 8.8d-257) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y1 <= 2.4d+183) then
tmp = a * (b * ((x * y) - (z * t)))
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 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -1.7e+268) {
tmp = t_1;
} else if (y1 <= -4.9e-231) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 8.8e-257) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y1 <= 2.4e+183) {
tmp = a * (b * ((x * y) - (z * t)));
} 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 = i * (y1 * ((x * j) - (z * k))) tmp = 0 if y1 <= -1.7e+268: tmp = t_1 elif y1 <= -4.9e-231: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y1 <= 8.8e-257: tmp = b * (y0 * ((z * k) - (x * j))) elif y1 <= 2.4e+183: tmp = a * (b * ((x * y) - (z * t))) 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(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) tmp = 0.0 if (y1 <= -1.7e+268) tmp = t_1; elseif (y1 <= -4.9e-231) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y1 <= 8.8e-257) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y1 <= 2.4e+183) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); 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 = i * (y1 * ((x * j) - (z * k))); tmp = 0.0; if (y1 <= -1.7e+268) tmp = t_1; elseif (y1 <= -4.9e-231) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y1 <= 8.8e-257) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y1 <= 2.4e+183) tmp = a * (b * ((x * y) - (z * t))); 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[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -1.7e+268], t$95$1, If[LessEqual[y1, -4.9e-231], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 8.8e-257], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.4e+183], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;y1 \leq -1.7 \cdot 10^{+268}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -4.9 \cdot 10^{-231}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 8.8 \cdot 10^{-257}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y1 \leq 2.4 \cdot 10^{+183}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -1.7000000000000001e268 or 2.4000000000000002e183 < y1 Initial program 22.1%
Taylor expanded in y1 around inf 63.3%
Taylor expanded in i around inf 57.0%
if -1.7000000000000001e268 < y1 < -4.90000000000000003e-231Initial program 29.1%
Taylor expanded in c around inf 38.1%
Taylor expanded in y0 around inf 40.8%
if -4.90000000000000003e-231 < y1 < 8.7999999999999995e-257Initial program 45.6%
Taylor expanded in b around inf 28.2%
Taylor expanded in y0 around inf 40.9%
if 8.7999999999999995e-257 < y1 < 2.4000000000000002e183Initial program 24.0%
Taylor expanded in b around inf 34.4%
Taylor expanded in a around inf 35.1%
Final simplification42.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 -6.5e+266)
(* x (* i (* j y1)))
(if (<= y1 -7.3e-237)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= y1 9.4e-257)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y1 2.4e+183)
(* a (* b (- (* x y) (* z t))))
(* i (* k (* z (- y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= -6.5e+266) {
tmp = x * (i * (j * y1));
} else if (y1 <= -7.3e-237) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 9.4e-257) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y1 <= 2.4e+183) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = i * (k * (z * -y1));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y1 <= (-6.5d+266)) then
tmp = x * (i * (j * y1))
else if (y1 <= (-7.3d-237)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (y1 <= 9.4d-257) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y1 <= 2.4d+183) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = i * (k * (z * -y1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= -6.5e+266) {
tmp = x * (i * (j * y1));
} else if (y1 <= -7.3e-237) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (y1 <= 9.4e-257) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y1 <= 2.4e+183) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = i * (k * (z * -y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= -6.5e+266: tmp = x * (i * (j * y1)) elif y1 <= -7.3e-237: tmp = c * (y0 * ((x * y2) - (z * y3))) elif y1 <= 9.4e-257: tmp = b * (y0 * ((z * k) - (x * j))) elif y1 <= 2.4e+183: tmp = a * (b * ((x * y) - (z * t))) else: tmp = i * (k * (z * -y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y1 <= -6.5e+266) tmp = Float64(x * Float64(i * Float64(j * y1))); elseif (y1 <= -7.3e-237) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y1 <= 9.4e-257) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y1 <= 2.4e+183) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(i * Float64(k * Float64(z * Float64(-y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y1 <= -6.5e+266) tmp = x * (i * (j * y1)); elseif (y1 <= -7.3e-237) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (y1 <= 9.4e-257) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y1 <= 2.4e+183) tmp = a * (b * ((x * y) - (z * t))); else tmp = i * (k * (z * -y1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, -6.5e+266], N[(x * N[(i * N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -7.3e-237], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 9.4e-257], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.4e+183], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -6.5 \cdot 10^{+266}:\\
\;\;\;\;x \cdot \left(i \cdot \left(j \cdot y1\right)\right)\\
\mathbf{elif}\;y1 \leq -7.3 \cdot 10^{-237}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 9.4 \cdot 10^{-257}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y1 \leq 2.4 \cdot 10^{+183}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \left(z \cdot \left(-y1\right)\right)\right)\\
\end{array}
\end{array}
if y1 < -6.50000000000000006e266Initial program 30.0%
Taylor expanded in y1 around inf 71.2%
Taylor expanded in x around -inf 51.1%
mul-1-neg51.1%
Simplified51.1%
Taylor expanded in a around 0 50.8%
associate-*r*50.8%
neg-mul-150.8%
Simplified50.8%
if -6.50000000000000006e266 < y1 < -7.30000000000000007e-237Initial program 29.1%
Taylor expanded in c around inf 38.1%
Taylor expanded in y0 around inf 40.8%
if -7.30000000000000007e-237 < y1 < 9.3999999999999996e-257Initial program 45.6%
Taylor expanded in b around inf 28.2%
Taylor expanded in y0 around inf 40.9%
if 9.3999999999999996e-257 < y1 < 2.4000000000000002e183Initial program 24.0%
Taylor expanded in b around inf 34.4%
Taylor expanded in a around inf 35.1%
if 2.4000000000000002e183 < y1 Initial program 19.9%
Taylor expanded in y1 around inf 61.1%
Taylor expanded in i around inf 58.5%
Taylor expanded in j around 0 42.3%
mul-1-neg42.3%
*-commutative42.3%
distribute-rgt-neg-in42.3%
*-commutative42.3%
Simplified42.3%
Final simplification39.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= c -7.5e-67) (not (<= c 1.65e-32))) (* c (* x (* y0 y2))) (* a (* (* x y) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((c <= -7.5e-67) || !(c <= 1.65e-32)) {
tmp = c * (x * (y0 * y2));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((c <= (-7.5d-67)) .or. (.not. (c <= 1.65d-32))) then
tmp = c * (x * (y0 * y2))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((c <= -7.5e-67) || !(c <= 1.65e-32)) {
tmp = c * (x * (y0 * y2));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (c <= -7.5e-67) or not (c <= 1.65e-32): tmp = c * (x * (y0 * y2)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((c <= -7.5e-67) || !(c <= 1.65e-32)) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((c <= -7.5e-67) || ~((c <= 1.65e-32))) tmp = c * (x * (y0 * y2)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[c, -7.5e-67], N[Not[LessEqual[c, 1.65e-32]], $MachinePrecision]], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.5 \cdot 10^{-67} \lor \neg \left(c \leq 1.65 \cdot 10^{-32}\right):\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if c < -7.5000000000000005e-67 or 1.65000000000000013e-32 < c Initial program 20.4%
Taylor expanded in y0 around inf 40.4%
Taylor expanded in c around inf 41.2%
Taylor expanded in x around inf 28.2%
*-commutative28.2%
Simplified28.2%
if -7.5000000000000005e-67 < c < 1.65000000000000013e-32Initial program 38.9%
Taylor expanded in b around inf 34.8%
Taylor expanded in a around inf 27.8%
Taylor expanded in x around inf 22.7%
Final simplification25.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= z -1.4e+172) (not (<= z 300.0))) (* c (* i (* z t))) (* a (* (* x y) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.4e+172) || !(z <= 300.0)) {
tmp = c * (i * (z * t));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((z <= (-1.4d+172)) .or. (.not. (z <= 300.0d0))) then
tmp = c * (i * (z * t))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.4e+172) || !(z <= 300.0)) {
tmp = c * (i * (z * t));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (z <= -1.4e+172) or not (z <= 300.0): tmp = c * (i * (z * t)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((z <= -1.4e+172) || !(z <= 300.0)) tmp = Float64(c * Float64(i * Float64(z * t))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((z <= -1.4e+172) || ~((z <= 300.0))) tmp = c * (i * (z * t)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[z, -1.4e+172], N[Not[LessEqual[z, 300.0]], $MachinePrecision]], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+172} \lor \neg \left(z \leq 300\right):\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if z < -1.4e172 or 300 < z Initial program 21.5%
Taylor expanded in c around inf 35.6%
Taylor expanded in z around inf 43.0%
Taylor expanded in y0 around 0 33.9%
if -1.4e172 < z < 300Initial program 32.5%
Taylor expanded in b around inf 31.7%
Taylor expanded in a around inf 23.5%
Taylor expanded in x around inf 20.7%
Final simplification25.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= i -6.5e+101) (* a (* (* x y) b)) (if (<= i 8.4e+33) (* y0 (* c (* x y2))) (* c (* t (* z 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 (i <= -6.5e+101) {
tmp = a * ((x * y) * b);
} else if (i <= 8.4e+33) {
tmp = y0 * (c * (x * y2));
} else {
tmp = c * (t * (z * 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 (i <= (-6.5d+101)) then
tmp = a * ((x * y) * b)
else if (i <= 8.4d+33) then
tmp = y0 * (c * (x * y2))
else
tmp = c * (t * (z * 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 (i <= -6.5e+101) {
tmp = a * ((x * y) * b);
} else if (i <= 8.4e+33) {
tmp = y0 * (c * (x * y2));
} else {
tmp = c * (t * (z * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if i <= -6.5e+101: tmp = a * ((x * y) * b) elif i <= 8.4e+33: tmp = y0 * (c * (x * y2)) else: tmp = c * (t * (z * 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 (i <= -6.5e+101) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (i <= 8.4e+33) tmp = Float64(y0 * Float64(c * Float64(x * y2))); else tmp = Float64(c * Float64(t * Float64(z * 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 (i <= -6.5e+101) tmp = a * ((x * y) * b); elseif (i <= 8.4e+33) tmp = y0 * (c * (x * y2)); else tmp = c * (t * (z * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -6.5e+101], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.4e+33], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.5 \cdot 10^{+101}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;i \leq 8.4 \cdot 10^{+33}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i\right)\right)\\
\end{array}
\end{array}
if i < -6.50000000000000016e101Initial program 19.2%
Taylor expanded in b around inf 32.9%
Taylor expanded in a around inf 29.8%
Taylor expanded in x around inf 30.2%
if -6.50000000000000016e101 < i < 8.4000000000000002e33Initial program 29.8%
Taylor expanded in y0 around inf 41.0%
Taylor expanded in c around inf 32.4%
Taylor expanded in x around inf 24.4%
*-commutative24.4%
Simplified24.4%
if 8.4000000000000002e33 < i Initial program 36.4%
Taylor expanded in c around inf 41.0%
Taylor expanded in z around inf 37.2%
Taylor expanded in y0 around 0 31.4%
associate-*r*31.4%
*-commutative31.4%
associate-*l*35.4%
*-commutative35.4%
Simplified35.4%
Final simplification27.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -2050.0) (* c (* t (* z i))) (if (<= z 0.135) (* i (* j (* x y1))) (* c (* i (* z t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2050.0) {
tmp = c * (t * (z * i));
} else if (z <= 0.135) {
tmp = i * (j * (x * y1));
} else {
tmp = c * (i * (z * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-2050.0d0)) then
tmp = c * (t * (z * i))
else if (z <= 0.135d0) then
tmp = i * (j * (x * y1))
else
tmp = c * (i * (z * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2050.0) {
tmp = c * (t * (z * i));
} else if (z <= 0.135) {
tmp = i * (j * (x * y1));
} else {
tmp = c * (i * (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -2050.0: tmp = c * (t * (z * i)) elif z <= 0.135: tmp = i * (j * (x * y1)) else: tmp = c * (i * (z * t)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -2050.0) tmp = Float64(c * Float64(t * Float64(z * i))); elseif (z <= 0.135) tmp = Float64(i * Float64(j * Float64(x * y1))); else tmp = Float64(c * Float64(i * Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -2050.0) tmp = c * (t * (z * i)); elseif (z <= 0.135) tmp = i * (j * (x * y1)); else tmp = c * (i * (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -2050.0], N[(c * N[(t * N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.135], N[(i * N[(j * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2050:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i\right)\right)\\
\mathbf{elif}\;z \leq 0.135:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\end{array}
\end{array}
if z < -2050Initial program 24.9%
Taylor expanded in c around inf 37.3%
Taylor expanded in z around inf 33.3%
Taylor expanded in y0 around 0 27.4%
associate-*r*25.9%
*-commutative25.9%
associate-*l*31.8%
*-commutative31.8%
Simplified31.8%
if -2050 < z < 0.13500000000000001Initial program 33.0%
Taylor expanded in y1 around inf 37.0%
Taylor expanded in i around inf 23.1%
Taylor expanded in j around inf 21.8%
if 0.13500000000000001 < z Initial program 23.0%
Taylor expanded in c around inf 38.1%
Taylor expanded in z around inf 44.0%
Taylor expanded in y0 around 0 31.2%
Final simplification26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -410.0) (* c (* t (* z i))) (if (<= z 0.061) (* a (* (* x y) b)) (* c (* i (* z t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -410.0) {
tmp = c * (t * (z * i));
} else if (z <= 0.061) {
tmp = a * ((x * y) * b);
} else {
tmp = c * (i * (z * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-410.0d0)) then
tmp = c * (t * (z * i))
else if (z <= 0.061d0) then
tmp = a * ((x * y) * b)
else
tmp = c * (i * (z * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -410.0) {
tmp = c * (t * (z * i));
} else if (z <= 0.061) {
tmp = a * ((x * y) * b);
} else {
tmp = c * (i * (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -410.0: tmp = c * (t * (z * i)) elif z <= 0.061: tmp = a * ((x * y) * b) else: tmp = c * (i * (z * t)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -410.0) tmp = Float64(c * Float64(t * Float64(z * i))); elseif (z <= 0.061) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = Float64(c * Float64(i * Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -410.0) tmp = c * (t * (z * i)); elseif (z <= 0.061) tmp = a * ((x * y) * b); else tmp = c * (i * (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -410.0], N[(c * N[(t * N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.061], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -410:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i\right)\right)\\
\mathbf{elif}\;z \leq 0.061:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\end{array}
\end{array}
if z < -410Initial program 24.9%
Taylor expanded in c around inf 37.3%
Taylor expanded in z around inf 33.3%
Taylor expanded in y0 around 0 27.4%
associate-*r*25.9%
*-commutative25.9%
associate-*l*31.8%
*-commutative31.8%
Simplified31.8%
if -410 < z < 0.060999999999999999Initial program 33.0%
Taylor expanded in b around inf 31.9%
Taylor expanded in a around inf 22.4%
Taylor expanded in x around inf 20.3%
if 0.060999999999999999 < z Initial program 23.0%
Taylor expanded in c around inf 38.1%
Taylor expanded in z around inf 44.0%
Taylor expanded in y0 around 0 31.2%
Final simplification25.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 28.9%
Taylor expanded in b around inf 33.8%
Taylor expanded in a around inf 24.7%
Taylor expanded in x around inf 17.8%
Final simplification17.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 2024085
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))