
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 44 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* t y2) (* y y3)))
(t_3 (- (* x y) (* z t)))
(t_4 (- (* b y4) (* i y5)))
(t_5 (- (* y k) (* t j)))
(t_6 (- (* y0 y5) (* y1 y4)))
(t_7 (- (* x j) (* z k))))
(if (<= i -1.8e+235)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= i -1e-83)
(* t (+ (* z (- (* c i) (* a b))) (+ (* j t_4) (* y2 t_1))))
(if (<= i 1.6e-263)
(* a (+ (* b t_3) (+ (* y1 (- (* z y3) (* x y2))) (* y5 t_2))))
(if (<= i 1.15e-192)
(* j (+ (+ (* y3 t_6) (* t t_4)) (* x (- (* i y1) (* b y0)))))
(if (<= i 4.5e-77)
(+
(* (* i y5) t_5)
(+
(* (- (* y1 y4) (* y0 y5)) (- (* k y2) (* j y3)))
(* t_2 t_1)))
(if (<= i 7.5e-44)
(* i (- (+ (* y1 t_7) (* y5 t_5)) (* c t_3)))
(if (<= i 3.5e+22)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5))))))
(if (<= i 9.2e+46)
(*
y3
(- (+ (* j t_6) (* z (- (* a y1) (* c y0)))) (* y t_1)))
(if (<= i 3.1e+101)
(* c (* i (- (* z t) (* x y))))
(if (<= i 8.5e+242)
(* y1 (* i t_7))
(* c (- (* x (* y0 y2)) (* i t_3)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (t * y2) - (y * y3);
double t_3 = (x * y) - (z * t);
double t_4 = (b * y4) - (i * y5);
double t_5 = (y * k) - (t * j);
double t_6 = (y0 * y5) - (y1 * y4);
double t_7 = (x * j) - (z * k);
double tmp;
if (i <= -1.8e+235) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (i <= -1e-83) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_1)));
} else if (i <= 1.6e-263) {
tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * t_2)));
} else if (i <= 1.15e-192) {
tmp = j * (((y3 * t_6) + (t * t_4)) + (x * ((i * y1) - (b * y0))));
} else if (i <= 4.5e-77) {
tmp = ((i * y5) * t_5) + ((((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) + (t_2 * t_1));
} else if (i <= 7.5e-44) {
tmp = i * (((y1 * t_7) + (y5 * t_5)) - (c * t_3));
} else if (i <= 3.5e+22) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if (i <= 9.2e+46) {
tmp = y3 * (((j * t_6) + (z * ((a * y1) - (c * y0)))) - (y * t_1));
} else if (i <= 3.1e+101) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (i <= 8.5e+242) {
tmp = y1 * (i * t_7);
} else {
tmp = c * ((x * (y0 * y2)) - (i * t_3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = (t * y2) - (y * y3)
t_3 = (x * y) - (z * t)
t_4 = (b * y4) - (i * y5)
t_5 = (y * k) - (t * j)
t_6 = (y0 * y5) - (y1 * y4)
t_7 = (x * j) - (z * k)
if (i <= (-1.8d+235)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (i <= (-1d-83)) then
tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_1)))
else if (i <= 1.6d-263) then
tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * t_2)))
else if (i <= 1.15d-192) then
tmp = j * (((y3 * t_6) + (t * t_4)) + (x * ((i * y1) - (b * y0))))
else if (i <= 4.5d-77) then
tmp = ((i * y5) * t_5) + ((((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) + (t_2 * t_1))
else if (i <= 7.5d-44) then
tmp = i * (((y1 * t_7) + (y5 * t_5)) - (c * t_3))
else if (i <= 3.5d+22) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
else if (i <= 9.2d+46) then
tmp = y3 * (((j * t_6) + (z * ((a * y1) - (c * y0)))) - (y * t_1))
else if (i <= 3.1d+101) then
tmp = c * (i * ((z * t) - (x * y)))
else if (i <= 8.5d+242) then
tmp = y1 * (i * t_7)
else
tmp = c * ((x * (y0 * y2)) - (i * t_3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (t * y2) - (y * y3);
double t_3 = (x * y) - (z * t);
double t_4 = (b * y4) - (i * y5);
double t_5 = (y * k) - (t * j);
double t_6 = (y0 * y5) - (y1 * y4);
double t_7 = (x * j) - (z * k);
double tmp;
if (i <= -1.8e+235) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (i <= -1e-83) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_1)));
} else if (i <= 1.6e-263) {
tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * t_2)));
} else if (i <= 1.15e-192) {
tmp = j * (((y3 * t_6) + (t * t_4)) + (x * ((i * y1) - (b * y0))));
} else if (i <= 4.5e-77) {
tmp = ((i * y5) * t_5) + ((((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) + (t_2 * t_1));
} else if (i <= 7.5e-44) {
tmp = i * (((y1 * t_7) + (y5 * t_5)) - (c * t_3));
} else if (i <= 3.5e+22) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if (i <= 9.2e+46) {
tmp = y3 * (((j * t_6) + (z * ((a * y1) - (c * y0)))) - (y * t_1));
} else if (i <= 3.1e+101) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (i <= 8.5e+242) {
tmp = y1 * (i * t_7);
} else {
tmp = c * ((x * (y0 * y2)) - (i * t_3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (t * y2) - (y * y3) t_3 = (x * y) - (z * t) t_4 = (b * y4) - (i * y5) t_5 = (y * k) - (t * j) t_6 = (y0 * y5) - (y1 * y4) t_7 = (x * j) - (z * k) tmp = 0 if i <= -1.8e+235: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif i <= -1e-83: tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_1))) elif i <= 1.6e-263: tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * t_2))) elif i <= 1.15e-192: tmp = j * (((y3 * t_6) + (t * t_4)) + (x * ((i * y1) - (b * y0)))) elif i <= 4.5e-77: tmp = ((i * y5) * t_5) + ((((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) + (t_2 * t_1)) elif i <= 7.5e-44: tmp = i * (((y1 * t_7) + (y5 * t_5)) - (c * t_3)) elif i <= 3.5e+22: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) elif i <= 9.2e+46: tmp = y3 * (((j * t_6) + (z * ((a * y1) - (c * y0)))) - (y * t_1)) elif i <= 3.1e+101: tmp = c * (i * ((z * t) - (x * y))) elif i <= 8.5e+242: tmp = y1 * (i * t_7) else: tmp = c * ((x * (y0 * y2)) - (i * 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(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(t * y2) - Float64(y * y3)) t_3 = Float64(Float64(x * y) - Float64(z * t)) t_4 = Float64(Float64(b * y4) - Float64(i * y5)) t_5 = Float64(Float64(y * k) - Float64(t * j)) t_6 = Float64(Float64(y0 * y5) - Float64(y1 * y4)) t_7 = Float64(Float64(x * j) - Float64(z * k)) tmp = 0.0 if (i <= -1.8e+235) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (i <= -1e-83) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * t_4) + Float64(y2 * t_1)))); elseif (i <= 1.6e-263) tmp = Float64(a * Float64(Float64(b * t_3) + Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y5 * t_2)))); elseif (i <= 1.15e-192) tmp = Float64(j * Float64(Float64(Float64(y3 * t_6) + Float64(t * t_4)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (i <= 4.5e-77) tmp = Float64(Float64(Float64(i * y5) * t_5) + Float64(Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(t_2 * t_1))); elseif (i <= 7.5e-44) tmp = Float64(i * Float64(Float64(Float64(y1 * t_7) + Float64(y5 * t_5)) - Float64(c * t_3))); elseif (i <= 3.5e+22) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (i <= 9.2e+46) tmp = Float64(y3 * Float64(Float64(Float64(j * t_6) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) - Float64(y * t_1))); elseif (i <= 3.1e+101) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (i <= 8.5e+242) tmp = Float64(y1 * Float64(i * t_7)); else tmp = Float64(c * Float64(Float64(x * Float64(y0 * y2)) - Float64(i * t_3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (t * y2) - (y * y3); t_3 = (x * y) - (z * t); t_4 = (b * y4) - (i * y5); t_5 = (y * k) - (t * j); t_6 = (y0 * y5) - (y1 * y4); t_7 = (x * j) - (z * k); tmp = 0.0; if (i <= -1.8e+235) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (i <= -1e-83) tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_1))); elseif (i <= 1.6e-263) tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * t_2))); elseif (i <= 1.15e-192) tmp = j * (((y3 * t_6) + (t * t_4)) + (x * ((i * y1) - (b * y0)))); elseif (i <= 4.5e-77) tmp = ((i * y5) * t_5) + ((((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) + (t_2 * t_1)); elseif (i <= 7.5e-44) tmp = i * (((y1 * t_7) + (y5 * t_5)) - (c * t_3)); elseif (i <= 3.5e+22) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); elseif (i <= 9.2e+46) tmp = y3 * (((j * t_6) + (z * ((a * y1) - (c * y0)))) - (y * t_1)); elseif (i <= 3.1e+101) tmp = c * (i * ((z * t) - (x * y))); elseif (i <= 8.5e+242) tmp = y1 * (i * t_7); else tmp = c * ((x * (y0 * y2)) - (i * 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[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.8e+235], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1e-83], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t$95$4), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e-263], N[(a * N[(N[(b * t$95$3), $MachinePrecision] + N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.15e-192], N[(j * N[(N[(N[(y3 * t$95$6), $MachinePrecision] + N[(t * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.5e-77], N[(N[(N[(i * y5), $MachinePrecision] * t$95$5), $MachinePrecision] + N[(N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e-44], N[(i * N[(N[(N[(y1 * t$95$7), $MachinePrecision] + N[(y5 * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e+22], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.2e+46], N[(y3 * N[(N[(N[(j * t$95$6), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e+101], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e+242], N[(y1 * N[(i * t$95$7), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := t \cdot y2 - y \cdot y3\\
t_3 := x \cdot y - z \cdot t\\
t_4 := b \cdot y4 - i \cdot y5\\
t_5 := y \cdot k - t \cdot j\\
t_6 := y0 \cdot y5 - y1 \cdot y4\\
t_7 := x \cdot j - z \cdot k\\
\mathbf{if}\;i \leq -1.8 \cdot 10^{+235}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;i \leq -1 \cdot 10^{-83}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot t_4 + y2 \cdot t_1\right)\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{-263}:\\
\;\;\;\;a \cdot \left(b \cdot t_3 + \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + y5 \cdot t_2\right)\right)\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{-192}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot t_6 + t \cdot t_4\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 4.5 \cdot 10^{-77}:\\
\;\;\;\;\left(i \cdot y5\right) \cdot t_5 + \left(\left(y1 \cdot y4 - y0 \cdot y5\right) \cdot \left(k \cdot y2 - j \cdot y3\right) + t_2 \cdot t_1\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{-44}:\\
\;\;\;\;i \cdot \left(\left(y1 \cdot t_7 + y5 \cdot t_5\right) - c \cdot t_3\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{+46}:\\
\;\;\;\;y3 \cdot \left(\left(j \cdot t_6 + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) - y \cdot t_1\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{+101}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+242}:\\
\;\;\;\;y1 \cdot \left(i \cdot t_7\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right) - i \cdot t_3\right)\\
\end{array}
\end{array}
if i < -1.79999999999999993e235Initial program 20.0%
+-commutative20.0%
fma-def20.0%
Simplified20.0%
Taylor expanded in y1 around inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
sub-neg40.3%
Simplified40.3%
Taylor expanded in j around inf 70.2%
associate-*r*70.2%
mul-1-neg70.2%
unsub-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
if -1.79999999999999993e235 < i < -1e-83Initial program 40.1%
associate-+l-40.1%
Simplified40.1%
Taylor expanded in t around inf 64.9%
associate--l+64.9%
mul-1-neg64.9%
Simplified64.9%
if -1e-83 < i < 1.6e-263Initial program 36.2%
associate-+l-36.2%
Simplified36.2%
Taylor expanded in a around inf 50.1%
associate--l+50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
if 1.6e-263 < i < 1.15000000000000009e-192Initial program 23.8%
+-commutative23.8%
fma-def29.7%
*-commutative29.7%
*-commutative29.7%
Simplified29.7%
Taylor expanded in j around inf 76.8%
if 1.15000000000000009e-192 < i < 4.5000000000000001e-77Initial program 35.0%
associate-+l-35.0%
Simplified35.0%
Taylor expanded in y5 around inf 60.5%
mul-1-neg60.5%
Simplified60.5%
if 4.5000000000000001e-77 < i < 7.50000000000000008e-44Initial program 37.5%
associate-+l-37.5%
Simplified37.5%
Taylor expanded in i around -inf 87.5%
mul-1-neg87.5%
associate--l+87.5%
Simplified87.5%
if 7.50000000000000008e-44 < i < 3.5e22Initial program 26.7%
associate-+l-26.7%
Simplified26.7%
Taylor expanded in y around inf 73.5%
associate--l+73.5%
mul-1-neg73.5%
mul-1-neg73.5%
Simplified73.5%
if 3.5e22 < i < 9.2000000000000002e46Initial program 28.6%
associate-+l-28.6%
Simplified28.6%
Taylor expanded in y3 around -inf 85.7%
if 9.2000000000000002e46 < i < 3.09999999999999999e101Initial program 11.1%
associate-+l-11.1%
Simplified11.1%
Taylor expanded in c around inf 44.5%
associate--l+44.5%
mul-1-neg44.5%
Simplified44.5%
Taylor expanded in i around inf 77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
if 3.09999999999999999e101 < i < 8.5000000000000003e242Initial program 18.1%
+-commutative18.1%
fma-def21.2%
Simplified30.3%
Taylor expanded in y1 around inf 60.7%
mul-1-neg60.7%
mul-1-neg60.7%
sub-neg60.7%
Simplified60.7%
Taylor expanded in i around inf 67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 8.5000000000000003e242 < i Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in c around inf 56.4%
associate--l+56.4%
mul-1-neg56.4%
Simplified56.4%
Taylor expanded in y4 around 0 68.9%
Taylor expanded in y3 around 0 69.4%
*-commutative69.4%
associate-*r*69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Final simplification64.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* c y0) (* a y1)))
(t_3 (- (* x y2) (* z y3)))
(t_4 (- (* i y1) (* b y0)))
(t_5 (- (* k y2) (* j y3)))
(t_6 (* (- (* a b) (* c i)) (- (* x y) (* z t))))
(t_7 (- (* a y5) (* c y4)))
(t_8 (* (- (* t y2) (* y y3)) t_7))
(t_9 (- (* b y4) (* i y5)))
(t_10 (- (* y1 y4) (* y0 y5))))
(if (<=
(+
(+
(+ (+ (+ t_6 (* (- (* x j) (* z k)) t_4)) (* t_2 t_3)) (* t_9 t_1))
t_8)
(* t_10 t_5))
INFINITY)
(fma
t_5
t_10
(+
(fma t_1 t_9 (fma t_3 t_2 (+ t_6 (* (fma x j (* z (- k))) t_4))))
t_8))
(*
y3
(-
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))
(* y t_7))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (c * y0) - (a * y1);
double t_3 = (x * y2) - (z * y3);
double t_4 = (i * y1) - (b * y0);
double t_5 = (k * y2) - (j * y3);
double t_6 = ((a * b) - (c * i)) * ((x * y) - (z * t));
double t_7 = (a * y5) - (c * y4);
double t_8 = ((t * y2) - (y * y3)) * t_7;
double t_9 = (b * y4) - (i * y5);
double t_10 = (y1 * y4) - (y0 * y5);
double tmp;
if ((((((t_6 + (((x * j) - (z * k)) * t_4)) + (t_2 * t_3)) + (t_9 * t_1)) + t_8) + (t_10 * t_5)) <= ((double) INFINITY)) {
tmp = fma(t_5, t_10, (fma(t_1, t_9, fma(t_3, t_2, (t_6 + (fma(x, j, (z * -k)) * t_4)))) + t_8));
} else {
tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_7));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(Float64(x * y2) - Float64(z * y3)) t_4 = Float64(Float64(i * y1) - Float64(b * y0)) t_5 = Float64(Float64(k * y2) - Float64(j * y3)) t_6 = Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) t_7 = Float64(Float64(a * y5) - Float64(c * y4)) t_8 = Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_7) t_9 = Float64(Float64(b * y4) - Float64(i * y5)) t_10 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(t_6 + Float64(Float64(Float64(x * j) - Float64(z * k)) * t_4)) + Float64(t_2 * t_3)) + Float64(t_9 * t_1)) + t_8) + Float64(t_10 * t_5)) <= Inf) tmp = fma(t_5, t_10, Float64(fma(t_1, t_9, fma(t_3, t_2, Float64(t_6 + Float64(fma(x, j, Float64(z * Float64(-k))) * t_4)))) + t_8)); else tmp = Float64(y3 * Float64(Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) - Float64(y * t_7))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]}, Block[{t$95$9 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(t$95$6 + N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(t$95$9 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$8), $MachinePrecision] + N[(t$95$10 * t$95$5), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$5 * t$95$10 + N[(N[(t$95$1 * t$95$9 + N[(t$95$3 * t$95$2 + N[(t$95$6 + N[(N[(x * j + N[(z * (-k)), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$8), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(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] - N[(y * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := x \cdot y2 - z \cdot y3\\
t_4 := i \cdot y1 - b \cdot y0\\
t_5 := k \cdot y2 - j \cdot y3\\
t_6 := \left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right)\\
t_7 := a \cdot y5 - c \cdot y4\\
t_8 := \left(t \cdot y2 - y \cdot y3\right) \cdot t_7\\
t_9 := b \cdot y4 - i \cdot y5\\
t_10 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;\left(\left(\left(\left(t_6 + \left(x \cdot j - z \cdot k\right) \cdot t_4\right) + t_2 \cdot t_3\right) + t_9 \cdot t_1\right) + t_8\right) + t_10 \cdot t_5 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t_5, t_10, \mathsf{fma}\left(t_1, t_9, \mathsf{fma}\left(t_3, t_2, t_6 + \mathsf{fma}\left(x, j, z \cdot \left(-k\right)\right) \cdot t_4\right)\right) + t_8\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(\left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) - y \cdot t_7\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 92.9%
+-commutative92.9%
fma-def92.9%
*-commutative92.9%
*-commutative92.9%
Simplified92.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%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y3 around -inf 39.9%
Final simplification56.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* x j) (* z k)) (- (* i y1) (* b y0))))
(* (- (* c y0) (* a y1)) (- (* x y2) (* z y3))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) t_1))
(* (- (* y1 y4) (* y0 y5)) (- (* k y2) (* j y3))))))
(if (<= t_2 INFINITY)
t_2
(*
y3
(-
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))
(* y t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_1));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(i * y1) - Float64(b * y0)))) + Float64(Float64(Float64(c * y0) - Float64(a * y1)) * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_1)) + Float64(Float64(Float64(y1 * y4) - Float64(y0 * y5)) * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(y3 * Float64(Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) - Float64(y * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((c * y0) - (a * y1)) * ((x * y2) - (z * y3)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * t_1)) + (((y1 * y4) - (y0 * y5)) * ((k * y2) - (j * y3))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(y3 * N[(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] - N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(x \cdot j - z \cdot k\right) \cdot \left(i \cdot y1 - b \cdot y0\right)\right) + \left(c \cdot y0 - a \cdot y1\right) \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + \left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot t_1\right) + \left(y1 \cdot y4 - y0 \cdot y5\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(\left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) - y \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 92.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%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in y3 around -inf 39.9%
Final simplification56.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
t
(+
(* z (- (* c i) (* a b)))
(+ (* j (- (* b y4) (* i y5))) (* y2 (- (* a y5) (* c y4)))))))
(t_2 (* b (- (* z k) (* x j))))
(t_3 (- (* x y2) (* z y3)))
(t_4 (* y0 (+ (* c t_3) (+ (* y5 (- (* j y3) (* k y2))) t_2))))
(t_5 (* (* y a) (- (* x b) (* y3 y5)))))
(if (<= y0 -1.8e+79)
t_4
(if (<= y0 -2.7e-51)
(* (- (* y1 y3) (* t b)) (* z a))
(if (<= y0 -1.7e-137)
(* c (- (* y0 (* x y2)) (* t (- (* y2 y4) (* z i)))))
(if (<= y0 1.7e-272)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))
(if (<= y0 3.2e-235)
(* y0 (* c (* x y2)))
(if (<= y0 7e-234)
t_5
(if (<= y0 2.25e-145)
t_1
(if (<= y0 1.85e-106)
(* y4 (* y3 (- (* y c) (* j y1))))
(if (<= y0 5.2e+66)
t_1
(if (<= y0 8.7e+80)
t_5
(if (<= y0 1.4e+120)
(* c (- (* y0 t_3) (- (* y4 (* t y2)) (* (* z t) i))))
(if (<= y0 5e+170) (* y0 t_2) 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 * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))));
double t_2 = b * ((z * k) - (x * j));
double t_3 = (x * y2) - (z * y3);
double t_4 = y0 * ((c * t_3) + ((y5 * ((j * y3) - (k * y2))) + t_2));
double t_5 = (y * a) * ((x * b) - (y3 * y5));
double tmp;
if (y0 <= -1.8e+79) {
tmp = t_4;
} else if (y0 <= -2.7e-51) {
tmp = ((y1 * y3) - (t * b)) * (z * a);
} else if (y0 <= -1.7e-137) {
tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))));
} else if (y0 <= 1.7e-272) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (y0 <= 3.2e-235) {
tmp = y0 * (c * (x * y2));
} else if (y0 <= 7e-234) {
tmp = t_5;
} else if (y0 <= 2.25e-145) {
tmp = t_1;
} else if (y0 <= 1.85e-106) {
tmp = y4 * (y3 * ((y * c) - (j * y1)));
} else if (y0 <= 5.2e+66) {
tmp = t_1;
} else if (y0 <= 8.7e+80) {
tmp = t_5;
} else if (y0 <= 1.4e+120) {
tmp = c * ((y0 * t_3) - ((y4 * (t * y2)) - ((z * t) * i)));
} else if (y0 <= 5e+170) {
tmp = y0 * t_2;
} 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 * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))))
t_2 = b * ((z * k) - (x * j))
t_3 = (x * y2) - (z * y3)
t_4 = y0 * ((c * t_3) + ((y5 * ((j * y3) - (k * y2))) + t_2))
t_5 = (y * a) * ((x * b) - (y3 * y5))
if (y0 <= (-1.8d+79)) then
tmp = t_4
else if (y0 <= (-2.7d-51)) then
tmp = ((y1 * y3) - (t * b)) * (z * a)
else if (y0 <= (-1.7d-137)) then
tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))))
else if (y0 <= 1.7d-272) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
else if (y0 <= 3.2d-235) then
tmp = y0 * (c * (x * y2))
else if (y0 <= 7d-234) then
tmp = t_5
else if (y0 <= 2.25d-145) then
tmp = t_1
else if (y0 <= 1.85d-106) then
tmp = y4 * (y3 * ((y * c) - (j * y1)))
else if (y0 <= 5.2d+66) then
tmp = t_1
else if (y0 <= 8.7d+80) then
tmp = t_5
else if (y0 <= 1.4d+120) then
tmp = c * ((y0 * t_3) - ((y4 * (t * y2)) - ((z * t) * i)))
else if (y0 <= 5d+170) then
tmp = y0 * t_2
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 * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4)))));
double t_2 = b * ((z * k) - (x * j));
double t_3 = (x * y2) - (z * y3);
double t_4 = y0 * ((c * t_3) + ((y5 * ((j * y3) - (k * y2))) + t_2));
double t_5 = (y * a) * ((x * b) - (y3 * y5));
double tmp;
if (y0 <= -1.8e+79) {
tmp = t_4;
} else if (y0 <= -2.7e-51) {
tmp = ((y1 * y3) - (t * b)) * (z * a);
} else if (y0 <= -1.7e-137) {
tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))));
} else if (y0 <= 1.7e-272) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (y0 <= 3.2e-235) {
tmp = y0 * (c * (x * y2));
} else if (y0 <= 7e-234) {
tmp = t_5;
} else if (y0 <= 2.25e-145) {
tmp = t_1;
} else if (y0 <= 1.85e-106) {
tmp = y4 * (y3 * ((y * c) - (j * y1)));
} else if (y0 <= 5.2e+66) {
tmp = t_1;
} else if (y0 <= 8.7e+80) {
tmp = t_5;
} else if (y0 <= 1.4e+120) {
tmp = c * ((y0 * t_3) - ((y4 * (t * y2)) - ((z * t) * i)));
} else if (y0 <= 5e+170) {
tmp = y0 * t_2;
} 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 * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))))) t_2 = b * ((z * k) - (x * j)) t_3 = (x * y2) - (z * y3) t_4 = y0 * ((c * t_3) + ((y5 * ((j * y3) - (k * y2))) + t_2)) t_5 = (y * a) * ((x * b) - (y3 * y5)) tmp = 0 if y0 <= -1.8e+79: tmp = t_4 elif y0 <= -2.7e-51: tmp = ((y1 * y3) - (t * b)) * (z * a) elif y0 <= -1.7e-137: tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i)))) elif y0 <= 1.7e-272: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) elif y0 <= 3.2e-235: tmp = y0 * (c * (x * y2)) elif y0 <= 7e-234: tmp = t_5 elif y0 <= 2.25e-145: tmp = t_1 elif y0 <= 1.85e-106: tmp = y4 * (y3 * ((y * c) - (j * y1))) elif y0 <= 5.2e+66: tmp = t_1 elif y0 <= 8.7e+80: tmp = t_5 elif y0 <= 1.4e+120: tmp = c * ((y0 * t_3) - ((y4 * (t * y2)) - ((z * t) * i))) elif y0 <= 5e+170: tmp = y0 * t_2 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(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))))) t_2 = Float64(b * Float64(Float64(z * k) - Float64(x * j))) t_3 = Float64(Float64(x * y2) - Float64(z * y3)) t_4 = Float64(y0 * Float64(Float64(c * t_3) + Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + t_2))) t_5 = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))) tmp = 0.0 if (y0 <= -1.8e+79) tmp = t_4; elseif (y0 <= -2.7e-51) tmp = Float64(Float64(Float64(y1 * y3) - Float64(t * b)) * Float64(z * a)); elseif (y0 <= -1.7e-137) tmp = Float64(c * Float64(Float64(y0 * Float64(x * y2)) - Float64(t * Float64(Float64(y2 * y4) - Float64(z * i))))); elseif (y0 <= 1.7e-272) 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 (y0 <= 3.2e-235) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (y0 <= 7e-234) tmp = t_5; elseif (y0 <= 2.25e-145) tmp = t_1; elseif (y0 <= 1.85e-106) tmp = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))); elseif (y0 <= 5.2e+66) tmp = t_1; elseif (y0 <= 8.7e+80) tmp = t_5; elseif (y0 <= 1.4e+120) tmp = Float64(c * Float64(Float64(y0 * t_3) - Float64(Float64(y4 * Float64(t * y2)) - Float64(Float64(z * t) * i)))); elseif (y0 <= 5e+170) tmp = Float64(y0 * t_2); 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 * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * ((a * y5) - (c * y4))))); t_2 = b * ((z * k) - (x * j)); t_3 = (x * y2) - (z * y3); t_4 = y0 * ((c * t_3) + ((y5 * ((j * y3) - (k * y2))) + t_2)); t_5 = (y * a) * ((x * b) - (y3 * y5)); tmp = 0.0; if (y0 <= -1.8e+79) tmp = t_4; elseif (y0 <= -2.7e-51) tmp = ((y1 * y3) - (t * b)) * (z * a); elseif (y0 <= -1.7e-137) tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i)))); elseif (y0 <= 1.7e-272) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); elseif (y0 <= 3.2e-235) tmp = y0 * (c * (x * y2)); elseif (y0 <= 7e-234) tmp = t_5; elseif (y0 <= 2.25e-145) tmp = t_1; elseif (y0 <= 1.85e-106) tmp = y4 * (y3 * ((y * c) - (j * y1))); elseif (y0 <= 5.2e+66) tmp = t_1; elseif (y0 <= 8.7e+80) tmp = t_5; elseif (y0 <= 1.4e+120) tmp = c * ((y0 * t_3) - ((y4 * (t * y2)) - ((z * t) * i))); elseif (y0 <= 5e+170) tmp = y0 * t_2; 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[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y0 * N[(N[(c * t$95$3), $MachinePrecision] + N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1.8e+79], t$95$4, If[LessEqual[y0, -2.7e-51], N[(N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision] * N[(z * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.7e-137], N[(c * N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.7e-272], 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[y0, 3.2e-235], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 7e-234], t$95$5, If[LessEqual[y0, 2.25e-145], t$95$1, If[LessEqual[y0, 1.85e-106], N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5.2e+66], t$95$1, If[LessEqual[y0, 8.7e+80], t$95$5, If[LessEqual[y0, 1.4e+120], N[(c * N[(N[(y0 * t$95$3), $MachinePrecision] - N[(N[(y4 * N[(t * y2), $MachinePrecision]), $MachinePrecision] - N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5e+170], N[(y0 * t$95$2), $MachinePrecision], t$95$4]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\right)\\
t_2 := b \cdot \left(z \cdot k - x \cdot j\right)\\
t_3 := x \cdot y2 - z \cdot y3\\
t_4 := y0 \cdot \left(c \cdot t_3 + \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + t_2\right)\right)\\
t_5 := \left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{if}\;y0 \leq -1.8 \cdot 10^{+79}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y0 \leq -2.7 \cdot 10^{-51}:\\
\;\;\;\;\left(y1 \cdot y3 - t \cdot b\right) \cdot \left(z \cdot a\right)\\
\mathbf{elif}\;y0 \leq -1.7 \cdot 10^{-137}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right) - t \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y0 \leq 1.7 \cdot 10^{-272}:\\
\;\;\;\;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}\;y0 \leq 3.2 \cdot 10^{-235}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y0 \leq 7 \cdot 10^{-234}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y0 \leq 2.25 \cdot 10^{-145}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq 1.85 \cdot 10^{-106}:\\
\;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq 5.2 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq 8.7 \cdot 10^{+80}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y0 \leq 1.4 \cdot 10^{+120}:\\
\;\;\;\;c \cdot \left(y0 \cdot t_3 - \left(y4 \cdot \left(t \cdot y2\right) - \left(z \cdot t\right) \cdot i\right)\right)\\
\mathbf{elif}\;y0 \leq 5 \cdot 10^{+170}:\\
\;\;\;\;y0 \cdot t_2\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if y0 < -1.8e79 or 4.99999999999999977e170 < y0 Initial program 22.4%
+-commutative22.4%
fma-def23.7%
*-commutative23.7%
*-commutative23.7%
Simplified28.9%
Taylor expanded in y0 around inf 66.3%
mul-1-neg66.3%
Simplified66.3%
if -1.8e79 < y0 < -2.6999999999999997e-51Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in a around inf 55.0%
associate--l+55.0%
mul-1-neg55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in z around inf 51.1%
associate-*r*51.2%
distribute-lft-out--51.2%
mul-1-neg51.2%
distribute-rgt-neg-in51.2%
*-commutative51.2%
mul-1-neg51.2%
associate-*r*51.2%
distribute-lft-out--51.2%
sub-neg51.2%
mul-1-neg51.2%
remove-double-neg51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if -2.6999999999999997e-51 < y0 < -1.70000000000000007e-137Initial program 35.6%
associate-+l-35.6%
Simplified35.6%
Taylor expanded in c around inf 64.5%
associate--l+64.5%
mul-1-neg64.5%
Simplified64.5%
Taylor expanded in y2 around inf 64.5%
Taylor expanded in y around 0 65.2%
associate-*r*65.2%
*-commutative65.2%
associate-*r*71.9%
associate-*r*71.9%
*-commutative71.9%
associate-*r*71.9%
distribute-rgt-in71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
Simplified71.9%
if -1.70000000000000007e-137 < y0 < 1.7000000000000002e-272Initial program 21.7%
associate-+l-21.7%
Simplified21.7%
Taylor expanded in x around inf 62.9%
if 1.7000000000000002e-272 < y0 < 3.2000000000000001e-235Initial program 49.9%
associate-+l-49.9%
Simplified49.9%
Taylor expanded in c around inf 25.5%
associate--l+25.5%
mul-1-neg25.5%
Simplified25.5%
Taylor expanded in y2 around inf 25.5%
Taylor expanded in y0 around inf 24.7%
*-commutative24.7%
associate-*l*56.3%
*-commutative56.3%
Simplified56.3%
if 3.2000000000000001e-235 < y0 < 7.0000000000000003e-234 or 5.20000000000000024e66 < y0 < 8.70000000000000009e80Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in a around inf 56.0%
associate--l+56.0%
mul-1-neg56.0%
mul-1-neg56.0%
Simplified56.0%
Taylor expanded in y around inf 78.4%
associate-*r*78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
if 7.0000000000000003e-234 < y0 < 2.25e-145 or 1.8499999999999999e-106 < y0 < 5.20000000000000024e66Initial program 40.9%
associate-+l-40.9%
Simplified40.9%
Taylor expanded in t around inf 60.8%
associate--l+60.8%
mul-1-neg60.8%
Simplified60.8%
if 2.25e-145 < y0 < 1.8499999999999999e-106Initial program 45.0%
associate-+l-45.0%
Simplified45.0%
Taylor expanded in y4 around inf 55.7%
Taylor expanded in y3 around -inf 77.9%
if 8.70000000000000009e80 < y0 < 1.4e120Initial program 20.0%
associate-+l-20.0%
Simplified20.0%
Taylor expanded in c around inf 60.5%
associate--l+60.5%
mul-1-neg60.5%
Simplified60.5%
Taylor expanded in y around 0 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
*-commutative60.9%
*-commutative60.9%
Simplified60.9%
if 1.4e120 < y0 < 4.99999999999999977e170Initial program 18.2%
+-commutative18.2%
fma-def18.2%
*-commutative18.2%
*-commutative18.2%
Simplified18.2%
Taylor expanded in y0 around inf 54.5%
mul-1-neg54.5%
Simplified54.5%
Taylor expanded in b around inf 82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Final simplification64.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 (- (* y y3) (* t y2)))
(t_3 (* i (- (* z t) (* x y))))
(t_4 (- (* z k) (* x j)))
(t_5 (* y0 (* b t_4)))
(t_6 (* y4 (+ (+ (* b t_1) (* y1 (- (* k y2) (* j y3)))) (* c t_2)))))
(if (<= b -1.55e+119)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_1)) (* y0 t_4)))
(if (<= b -2.9e+47)
(* i (* y5 (- (* y k) (* t j))))
(if (<= b -2e+44)
t_5
(if (<= b -1.75e-134)
(* c (+ t_3 (* y2 (- (* x y0) (* t y4)))))
(if (<= b 2.1e-299)
t_6
(if (<= b 4.4e-281)
(* y (* y3 (* a (- y5))))
(if (<= b 1.05e-232)
t_6
(if (<= b 2.2e+104)
(* c (+ t_3 (+ (* y0 (* x y2)) (* y4 t_2))))
(if (<= b 2.9e+238)
(* y4 (* t (- (* b j) (* c y2))))
t_5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (y * y3) - (t * y2);
double t_3 = i * ((z * t) - (x * y));
double t_4 = (z * k) - (x * j);
double t_5 = y0 * (b * t_4);
double t_6 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
double tmp;
if (b <= -1.55e+119) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_4));
} else if (b <= -2.9e+47) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (b <= -2e+44) {
tmp = t_5;
} else if (b <= -1.75e-134) {
tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 2.1e-299) {
tmp = t_6;
} else if (b <= 4.4e-281) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1.05e-232) {
tmp = t_6;
} else if (b <= 2.2e+104) {
tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_2)));
} else if (b <= 2.9e+238) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_5;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (y * y3) - (t * y2)
t_3 = i * ((z * t) - (x * y))
t_4 = (z * k) - (x * j)
t_5 = y0 * (b * t_4)
t_6 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2))
if (b <= (-1.55d+119)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_4))
else if (b <= (-2.9d+47)) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (b <= (-2d+44)) then
tmp = t_5
else if (b <= (-1.75d-134)) then
tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4))))
else if (b <= 2.1d-299) then
tmp = t_6
else if (b <= 4.4d-281) then
tmp = y * (y3 * (a * -y5))
else if (b <= 1.05d-232) then
tmp = t_6
else if (b <= 2.2d+104) then
tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_2)))
else if (b <= 2.9d+238) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (y * y3) - (t * y2);
double t_3 = i * ((z * t) - (x * y));
double t_4 = (z * k) - (x * j);
double t_5 = y0 * (b * t_4);
double t_6 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2));
double tmp;
if (b <= -1.55e+119) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_4));
} else if (b <= -2.9e+47) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (b <= -2e+44) {
tmp = t_5;
} else if (b <= -1.75e-134) {
tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 2.1e-299) {
tmp = t_6;
} else if (b <= 4.4e-281) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1.05e-232) {
tmp = t_6;
} else if (b <= 2.2e+104) {
tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_2)));
} else if (b <= 2.9e+238) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (y * y3) - (t * y2) t_3 = i * ((z * t) - (x * y)) t_4 = (z * k) - (x * j) t_5 = y0 * (b * t_4) t_6 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)) tmp = 0 if b <= -1.55e+119: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_4)) elif b <= -2.9e+47: tmp = i * (y5 * ((y * k) - (t * j))) elif b <= -2e+44: tmp = t_5 elif b <= -1.75e-134: tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4)))) elif b <= 2.1e-299: tmp = t_6 elif b <= 4.4e-281: tmp = y * (y3 * (a * -y5)) elif b <= 1.05e-232: tmp = t_6 elif b <= 2.2e+104: tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_2))) elif b <= 2.9e+238: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(y * y3) - Float64(t * y2)) t_3 = Float64(i * Float64(Float64(z * t) - Float64(x * y))) t_4 = Float64(Float64(z * k) - Float64(x * j)) t_5 = Float64(y0 * Float64(b * t_4)) t_6 = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_2))) tmp = 0.0 if (b <= -1.55e+119) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * t_4))); elseif (b <= -2.9e+47) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (b <= -2e+44) tmp = t_5; elseif (b <= -1.75e-134) tmp = Float64(c * Float64(t_3 + Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))))); elseif (b <= 2.1e-299) tmp = t_6; elseif (b <= 4.4e-281) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (b <= 1.05e-232) tmp = t_6; elseif (b <= 2.2e+104) tmp = Float64(c * Float64(t_3 + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * t_2)))); elseif (b <= 2.9e+238) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (y * y3) - (t * y2); t_3 = i * ((z * t) - (x * y)); t_4 = (z * k) - (x * j); t_5 = y0 * (b * t_4); t_6 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_2)); tmp = 0.0; if (b <= -1.55e+119) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_4)); elseif (b <= -2.9e+47) tmp = i * (y5 * ((y * k) - (t * j))); elseif (b <= -2e+44) tmp = t_5; elseif (b <= -1.75e-134) tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4)))); elseif (b <= 2.1e-299) tmp = t_6; elseif (b <= 4.4e-281) tmp = y * (y3 * (a * -y5)); elseif (b <= 1.05e-232) tmp = t_6; elseif (b <= 2.2e+104) tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_2))); elseif (b <= 2.9e+238) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y0 * N[(b * t$95$4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = 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$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e+119], 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 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9e+47], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e+44], t$95$5, If[LessEqual[b, -1.75e-134], N[(c * N[(t$95$3 + N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-299], t$95$6, If[LessEqual[b, 4.4e-281], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-232], t$95$6, If[LessEqual[b, 2.2e+104], N[(c * N[(t$95$3 + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+238], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := y \cdot y3 - t \cdot y2\\
t_3 := i \cdot \left(z \cdot t - x \cdot y\right)\\
t_4 := z \cdot k - x \cdot j\\
t_5 := y0 \cdot \left(b \cdot t_4\right)\\
t_6 := y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_2\right)\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{+119}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot t_4\right)\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{+47}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{+44}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-134}:\\
\;\;\;\;c \cdot \left(t_3 + y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-299}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-281}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-232}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+104}:\\
\;\;\;\;c \cdot \left(t_3 + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot t_2\right)\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+238}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if b < -1.54999999999999998e119Initial program 20.9%
associate-+l-20.9%
Simplified20.9%
Taylor expanded in b around inf 54.4%
if -1.54999999999999998e119 < b < -2.8999999999999998e47Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in i around -inf 28.9%
mul-1-neg28.9%
associate--l+28.9%
Simplified28.9%
Taylor expanded in y5 around inf 47.9%
*-commutative47.9%
Simplified47.9%
if -2.8999999999999998e47 < b < -2.0000000000000002e44 or 2.9000000000000002e238 < b Initial program 21.3%
+-commutative21.3%
fma-def28.6%
*-commutative28.6%
*-commutative28.6%
Simplified35.7%
Taylor expanded in y0 around inf 50.5%
mul-1-neg50.5%
Simplified50.5%
Taylor expanded in b around inf 72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
if -2.0000000000000002e44 < b < -1.7499999999999999e-134Initial program 42.4%
associate-+l-42.4%
Simplified42.4%
Taylor expanded in c around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in y2 around inf 40.1%
Taylor expanded in y3 around 0 43.4%
+-commutative43.4%
associate--r+43.4%
associate-*r*46.4%
*-commutative46.4%
cancel-sign-sub-inv46.4%
associate-*r*46.4%
neg-mul-146.4%
*-commutative46.4%
distribute-rgt-in46.4%
mul-1-neg46.4%
sub-neg46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
if -1.7499999999999999e-134 < b < 2.1000000000000001e-299 or 4.40000000000000008e-281 < b < 1.05e-232Initial program 33.6%
associate-+l-33.6%
Simplified33.6%
Taylor expanded in y4 around inf 50.9%
if 2.1000000000000001e-299 < b < 4.40000000000000008e-281Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in a around inf 83.3%
associate--l+83.3%
mul-1-neg83.3%
mul-1-neg83.3%
Simplified83.3%
Taylor expanded in y around inf 67.5%
associate-*r*67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around 0 67.5%
mul-1-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in a around 0 83.3%
*-commutative83.3%
associate-*l*83.5%
Simplified83.5%
if 1.05e-232 < b < 2.2e104Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
mul-1-neg60.3%
Simplified60.3%
Taylor expanded in y2 around inf 55.7%
if 2.2e104 < b < 2.9000000000000002e238Initial program 28.1%
associate-+l-28.1%
Simplified28.1%
Taylor expanded in y4 around inf 35.1%
Taylor expanded in t around inf 59.9%
Final simplification55.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2 (- (* z k) (* x j)))
(t_3
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0))))))
(t_4 (- (* y y3) (* t y2)))
(t_5 (* y4 (+ (+ (* b t_1) (* y1 (- (* k y2) (* j y3)))) (* c t_4)))))
(if (<= b -7.2e+193)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_1)) (* y0 t_2)))
(if (<= b -1.45e+148)
t_3
(if (<= b -1.42e+97)
t_5
(if (<= b -2.3e-132)
t_3
(if (<= b 2.1e-299)
t_5
(if (<= b 5.8e-282)
(* y (* y3 (* a (- y5))))
(if (<= b 1e-232)
t_5
(if (<= b 8.4e+105)
(*
c
(+
(* i (- (* z t) (* x y)))
(+ (* y0 (* x y2)) (* y4 t_4))))
(if (<= b 1.12e+237)
(* y4 (* t (- (* b j) (* c y2))))
(* y0 (* b t_2)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (z * k) - (x * j);
double t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double t_4 = (y * y3) - (t * y2);
double t_5 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4));
double tmp;
if (b <= -7.2e+193) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_2));
} else if (b <= -1.45e+148) {
tmp = t_3;
} else if (b <= -1.42e+97) {
tmp = t_5;
} else if (b <= -2.3e-132) {
tmp = t_3;
} else if (b <= 2.1e-299) {
tmp = t_5;
} else if (b <= 5.8e-282) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1e-232) {
tmp = t_5;
} else if (b <= 8.4e+105) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_4)));
} else if (b <= 1.12e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = y0 * (b * 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) :: tmp
t_1 = (t * j) - (y * k)
t_2 = (z * k) - (x * j)
t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
t_4 = (y * y3) - (t * y2)
t_5 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4))
if (b <= (-7.2d+193)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_2))
else if (b <= (-1.45d+148)) then
tmp = t_3
else if (b <= (-1.42d+97)) then
tmp = t_5
else if (b <= (-2.3d-132)) then
tmp = t_3
else if (b <= 2.1d-299) then
tmp = t_5
else if (b <= 5.8d-282) then
tmp = y * (y3 * (a * -y5))
else if (b <= 1d-232) then
tmp = t_5
else if (b <= 8.4d+105) then
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_4)))
else if (b <= 1.12d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = y0 * (b * t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (z * k) - (x * j);
double t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double t_4 = (y * y3) - (t * y2);
double t_5 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4));
double tmp;
if (b <= -7.2e+193) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_2));
} else if (b <= -1.45e+148) {
tmp = t_3;
} else if (b <= -1.42e+97) {
tmp = t_5;
} else if (b <= -2.3e-132) {
tmp = t_3;
} else if (b <= 2.1e-299) {
tmp = t_5;
} else if (b <= 5.8e-282) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1e-232) {
tmp = t_5;
} else if (b <= 8.4e+105) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_4)));
} else if (b <= 1.12e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = y0 * (b * t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (z * k) - (x * j) t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) t_4 = (y * y3) - (t * y2) t_5 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4)) tmp = 0 if b <= -7.2e+193: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_2)) elif b <= -1.45e+148: tmp = t_3 elif b <= -1.42e+97: tmp = t_5 elif b <= -2.3e-132: tmp = t_3 elif b <= 2.1e-299: tmp = t_5 elif b <= 5.8e-282: tmp = y * (y3 * (a * -y5)) elif b <= 1e-232: tmp = t_5 elif b <= 8.4e+105: tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_4))) elif b <= 1.12e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = y0 * (b * t_2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(z * k) - Float64(x * j)) t_3 = 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))))) t_4 = Float64(Float64(y * y3) - Float64(t * y2)) t_5 = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_4))) tmp = 0.0 if (b <= -7.2e+193) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * t_2))); elseif (b <= -1.45e+148) tmp = t_3; elseif (b <= -1.42e+97) tmp = t_5; elseif (b <= -2.3e-132) tmp = t_3; elseif (b <= 2.1e-299) tmp = t_5; elseif (b <= 5.8e-282) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (b <= 1e-232) tmp = t_5; elseif (b <= 8.4e+105) tmp = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * t_4)))); elseif (b <= 1.12e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = Float64(y0 * Float64(b * t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (z * k) - (x * j); t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); t_4 = (y * y3) - (t * y2); t_5 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_4)); tmp = 0.0; if (b <= -7.2e+193) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_2)); elseif (b <= -1.45e+148) tmp = t_3; elseif (b <= -1.42e+97) tmp = t_5; elseif (b <= -2.3e-132) tmp = t_3; elseif (b <= 2.1e-299) tmp = t_5; elseif (b <= 5.8e-282) tmp = y * (y3 * (a * -y5)); elseif (b <= 1e-232) tmp = t_5; elseif (b <= 8.4e+105) tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_4))); elseif (b <= 1.12e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = y0 * (b * t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = 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]}, Block[{t$95$4 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = 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$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+193], 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 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e+148], t$95$3, If[LessEqual[b, -1.42e+97], t$95$5, If[LessEqual[b, -2.3e-132], t$95$3, If[LessEqual[b, 2.1e-299], t$95$5, If[LessEqual[b, 5.8e-282], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-232], t$95$5, If[LessEqual[b, 8.4e+105], N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.12e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(b * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := z \cdot k - x \cdot j\\
t_3 := 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)\\
t_4 := y \cdot y3 - t \cdot y2\\
t_5 := y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_4\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+193}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_1\right) + y0 \cdot t_2\right)\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{+148}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.42 \cdot 10^{+97}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-132}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-299}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-282}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 10^{-232}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq 8.4 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot t_4\right)\right)\\
\mathbf{elif}\;b \leq 1.12 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(b \cdot t_2\right)\\
\end{array}
\end{array}
if b < -7.2e193Initial program 13.5%
associate-+l-13.5%
Simplified13.5%
Taylor expanded in b around inf 59.9%
if -7.2e193 < b < -1.45e148 or -1.41999999999999991e97 < b < -2.30000000000000003e-132Initial program 41.1%
associate-+l-41.1%
Simplified41.1%
Taylor expanded in x around inf 53.4%
if -1.45e148 < b < -1.41999999999999991e97 or -2.30000000000000003e-132 < b < 2.1000000000000001e-299 or 5.79999999999999995e-282 < b < 1.00000000000000002e-232Initial program 29.3%
associate-+l-29.3%
Simplified29.3%
Taylor expanded in y4 around inf 53.4%
if 2.1000000000000001e-299 < b < 5.79999999999999995e-282Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in a around inf 83.3%
associate--l+83.3%
mul-1-neg83.3%
mul-1-neg83.3%
Simplified83.3%
Taylor expanded in y around inf 67.5%
associate-*r*67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around 0 67.5%
mul-1-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in a around 0 83.3%
*-commutative83.3%
associate-*l*83.5%
Simplified83.5%
if 1.00000000000000002e-232 < b < 8.4000000000000004e105Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
mul-1-neg60.3%
Simplified60.3%
Taylor expanded in y2 around inf 55.7%
if 8.4000000000000004e105 < b < 1.11999999999999997e237Initial program 28.1%
associate-+l-28.1%
Simplified28.1%
Taylor expanded in y4 around inf 35.1%
Taylor expanded in t around inf 59.9%
if 1.11999999999999997e237 < b Initial program 16.5%
+-commutative16.5%
fma-def25.0%
*-commutative25.0%
*-commutative25.0%
Simplified33.3%
Taylor expanded in y0 around inf 42.3%
mul-1-neg42.3%
Simplified42.3%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Final simplification56.9%
(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 (- (* x y) (* z t)))
(t_3 (- (* z k) (* x j)))
(t_4
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0))))))
(t_5 (- (* y y3) (* t y2))))
(if (<= b -3.5e+200)
(* b (+ (+ (* a t_2) (* y4 t_1)) (* y0 t_3)))
(if (<= b -6.6e+148)
t_4
(if (<= b -5e+98)
(* y4 (+ (+ (* b t_1) (* y1 (- (* k y2) (* j y3)))) (* c t_5)))
(if (<= b -3.6e+61)
t_4
(if (<= b 1.7e-234)
(*
i
(-
(+ (* y1 (- (* x j) (* z k))) (* y5 (- (* y k) (* t j))))
(* c t_2)))
(if (<= b 3.8e+104)
(* c (- (+ (* y0 (- (* x y2) (* z y3))) (* y4 t_5)) (* i t_2)))
(if (<= b 2.55e+237)
(* y4 (* t (- (* b j) (* c y2))))
(* y0 (* b 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 = (x * y) - (z * t);
double t_3 = (z * k) - (x * j);
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double t_5 = (y * y3) - (t * y2);
double tmp;
if (b <= -3.5e+200) {
tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3));
} else if (b <= -6.6e+148) {
tmp = t_4;
} else if (b <= -5e+98) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5));
} else if (b <= -3.6e+61) {
tmp = t_4;
} else if (b <= 1.7e-234) {
tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2));
} else if (b <= 3.8e+104) {
tmp = c * (((y0 * ((x * y2) - (z * y3))) + (y4 * t_5)) - (i * t_2));
} else if (b <= 2.55e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = y0 * (b * 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 = (t * j) - (y * k)
t_2 = (x * y) - (z * t)
t_3 = (z * k) - (x * j)
t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
t_5 = (y * y3) - (t * y2)
if (b <= (-3.5d+200)) then
tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3))
else if (b <= (-6.6d+148)) then
tmp = t_4
else if (b <= (-5d+98)) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5))
else if (b <= (-3.6d+61)) then
tmp = t_4
else if (b <= 1.7d-234) then
tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2))
else if (b <= 3.8d+104) then
tmp = c * (((y0 * ((x * y2) - (z * y3))) + (y4 * t_5)) - (i * t_2))
else if (b <= 2.55d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = y0 * (b * 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 = (x * y) - (z * t);
double t_3 = (z * k) - (x * j);
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double t_5 = (y * y3) - (t * y2);
double tmp;
if (b <= -3.5e+200) {
tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3));
} else if (b <= -6.6e+148) {
tmp = t_4;
} else if (b <= -5e+98) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5));
} else if (b <= -3.6e+61) {
tmp = t_4;
} else if (b <= 1.7e-234) {
tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2));
} else if (b <= 3.8e+104) {
tmp = c * (((y0 * ((x * y2) - (z * y3))) + (y4 * t_5)) - (i * t_2));
} else if (b <= 2.55e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = y0 * (b * 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 = (x * y) - (z * t) t_3 = (z * k) - (x * j) t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) t_5 = (y * y3) - (t * y2) tmp = 0 if b <= -3.5e+200: tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3)) elif b <= -6.6e+148: tmp = t_4 elif b <= -5e+98: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5)) elif b <= -3.6e+61: tmp = t_4 elif b <= 1.7e-234: tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2)) elif b <= 3.8e+104: tmp = c * (((y0 * ((x * y2) - (z * y3))) + (y4 * t_5)) - (i * t_2)) elif b <= 2.55e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = y0 * (b * t_3) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(x * y) - Float64(z * t)) t_3 = Float64(Float64(z * k) - Float64(x * j)) 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 * Float64(Float64(i * y1) - Float64(b * y0))))) t_5 = Float64(Float64(y * y3) - Float64(t * y2)) tmp = 0.0 if (b <= -3.5e+200) tmp = Float64(b * Float64(Float64(Float64(a * t_2) + Float64(y4 * t_1)) + Float64(y0 * t_3))); elseif (b <= -6.6e+148) tmp = t_4; elseif (b <= -5e+98) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_5))); elseif (b <= -3.6e+61) tmp = t_4; elseif (b <= 1.7e-234) tmp = Float64(i * Float64(Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))) - Float64(c * t_2))); elseif (b <= 3.8e+104) tmp = Float64(c * Float64(Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y4 * t_5)) - Float64(i * t_2))); elseif (b <= 2.55e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = Float64(y0 * Float64(b * 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 = (x * y) - (z * t); t_3 = (z * k) - (x * j); t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); t_5 = (y * y3) - (t * y2); tmp = 0.0; if (b <= -3.5e+200) tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3)); elseif (b <= -6.6e+148) tmp = t_4; elseif (b <= -5e+98) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5)); elseif (b <= -3.6e+61) tmp = t_4; elseif (b <= 1.7e-234) tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2)); elseif (b <= 3.8e+104) tmp = c * (((y0 * ((x * y2) - (z * y3))) + (y4 * t_5)) - (i * t_2)); elseif (b <= 2.55e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = y0 * (b * 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[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $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 * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+200], N[(b * N[(N[(N[(a * t$95$2), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.6e+148], t$95$4, If[LessEqual[b, -5e+98], 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$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e+61], t$95$4, If[LessEqual[b, 1.7e-234], N[(i * N[(N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e+104], N[(c * N[(N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.55e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := x \cdot y - z \cdot t\\
t_3 := z \cdot k - x \cdot j\\
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 \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_5 := y \cdot y3 - t \cdot y2\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+200}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t_2 + y4 \cdot t_1\right) + y0 \cdot t_3\right)\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{+148}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq -5 \cdot 10^{+98}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_5\right)\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{+61}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-234}:\\
\;\;\;\;i \cdot \left(\left(y1 \cdot \left(x \cdot j - z \cdot k\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right) - c \cdot t_2\right)\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+104}:\\
\;\;\;\;c \cdot \left(\left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) + y4 \cdot t_5\right) - i \cdot t_2\right)\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(b \cdot t_3\right)\\
\end{array}
\end{array}
if b < -3.50000000000000006e200Initial program 13.5%
associate-+l-13.5%
Simplified13.5%
Taylor expanded in b around inf 59.9%
if -3.50000000000000006e200 < b < -6.60000000000000021e148 or -4.9999999999999998e98 < b < -3.6000000000000001e61Initial program 40.0%
associate-+l-40.0%
Simplified40.0%
Taylor expanded in x around inf 75.1%
if -6.60000000000000021e148 < b < -4.9999999999999998e98Initial program 15.4%
associate-+l-15.4%
Simplified15.4%
Taylor expanded in y4 around inf 61.7%
if -3.6000000000000001e61 < b < 1.69999999999999993e-234Initial program 37.0%
associate-+l-37.0%
Simplified37.0%
Taylor expanded in i around -inf 44.9%
mul-1-neg44.9%
associate--l+44.9%
Simplified44.9%
if 1.69999999999999993e-234 < b < 3.79999999999999969e104Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
mul-1-neg60.3%
Simplified60.3%
if 3.79999999999999969e104 < b < 2.54999999999999989e237Initial program 28.1%
associate-+l-28.1%
Simplified28.1%
Taylor expanded in y4 around inf 35.1%
Taylor expanded in t around inf 59.9%
if 2.54999999999999989e237 < b Initial program 16.5%
+-commutative16.5%
fma-def25.0%
*-commutative25.0%
*-commutative25.0%
Simplified33.3%
Taylor expanded in y0 around inf 42.3%
mul-1-neg42.3%
Simplified42.3%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Final simplification56.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2 (- (* c i) (* a b)))
(t_3 (- (* c y0) (* a y1))))
(if (<= t -2.5e+151)
(* t (+ (* z t_2) (+ (* j (- (* b y4) (* i y5))) (* y2 t_1))))
(if (<= t -1.5e-50)
(*
c
(+
(* i (- (* z t) (* x y)))
(+ (* y0 (* x y2)) (* y4 (- (* y y3) (* t y2))))))
(if (<= t -1.35e-193)
(*
y1
(+
(* a (- (* z y3) (* x y2)))
(+ (* i (- (* x j) (* z k))) (* y4 (- (* k y2) (* j y3))))))
(if (<= t 6.8e-97)
(*
y5
(+
(* i (- (* y k) (* t j)))
(+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2))))))
(if (<= t 5.8e+67)
(* y2 (+ (+ (* x t_3) (* k (- (* y1 y4) (* y0 y5)))) (* t t_1)))
(if (<= t 6.4e+151)
(* z (- (+ (* k (- (* b y0) (* i y1))) (* t t_2)) (* y3 t_3)))
(if (<= t 1e+194)
(*
c
(- (* y0 (- (* x y2) (* z y3))) (* i (- (* x y) (* z t)))))
(if (<= t 1.35e+261)
(* a (* (* z t) (- b)))
(* i (* (* z t) c))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (c * i) - (a * b);
double t_3 = (c * y0) - (a * y1);
double tmp;
if (t <= -2.5e+151) {
tmp = t * ((z * t_2) + ((j * ((b * y4) - (i * y5))) + (y2 * t_1)));
} else if (t <= -1.5e-50) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))));
} else if (t <= -1.35e-193) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))));
} else if (t <= 6.8e-97) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))));
} else if (t <= 5.8e+67) {
tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_1));
} else if (t <= 6.4e+151) {
tmp = z * (((k * ((b * y0) - (i * y1))) + (t * t_2)) - (y3 * t_3));
} else if (t <= 1e+194) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t))));
} else if (t <= 1.35e+261) {
tmp = a * ((z * t) * -b);
} else {
tmp = i * ((z * t) * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = (c * i) - (a * b)
t_3 = (c * y0) - (a * y1)
if (t <= (-2.5d+151)) then
tmp = t * ((z * t_2) + ((j * ((b * y4) - (i * y5))) + (y2 * t_1)))
else if (t <= (-1.5d-50)) then
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))))
else if (t <= (-1.35d-193)) then
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))))
else if (t <= 6.8d-97) then
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))))
else if (t <= 5.8d+67) then
tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_1))
else if (t <= 6.4d+151) then
tmp = z * (((k * ((b * y0) - (i * y1))) + (t * t_2)) - (y3 * t_3))
else if (t <= 1d+194) then
tmp = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t))))
else if (t <= 1.35d+261) then
tmp = a * ((z * t) * -b)
else
tmp = i * ((z * t) * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (c * i) - (a * b);
double t_3 = (c * y0) - (a * y1);
double tmp;
if (t <= -2.5e+151) {
tmp = t * ((z * t_2) + ((j * ((b * y4) - (i * y5))) + (y2 * t_1)));
} else if (t <= -1.5e-50) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))));
} else if (t <= -1.35e-193) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))));
} else if (t <= 6.8e-97) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))));
} else if (t <= 5.8e+67) {
tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_1));
} else if (t <= 6.4e+151) {
tmp = z * (((k * ((b * y0) - (i * y1))) + (t * t_2)) - (y3 * t_3));
} else if (t <= 1e+194) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t))));
} else if (t <= 1.35e+261) {
tmp = a * ((z * t) * -b);
} else {
tmp = i * ((z * t) * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (c * i) - (a * b) t_3 = (c * y0) - (a * y1) tmp = 0 if t <= -2.5e+151: tmp = t * ((z * t_2) + ((j * ((b * y4) - (i * y5))) + (y2 * t_1))) elif t <= -1.5e-50: tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2))))) elif t <= -1.35e-193: tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3))))) elif t <= 6.8e-97: tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))) elif t <= 5.8e+67: tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_1)) elif t <= 6.4e+151: tmp = z * (((k * ((b * y0) - (i * y1))) + (t * t_2)) - (y3 * t_3)) elif t <= 1e+194: tmp = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t)))) elif t <= 1.35e+261: tmp = a * ((z * t) * -b) else: tmp = i * ((z * t) * c) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(c * i) - Float64(a * b)) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (t <= -2.5e+151) tmp = Float64(t * Float64(Float64(z * t_2) + Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * t_1)))); elseif (t <= -1.5e-50) tmp = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))))); elseif (t <= -1.35e-193) tmp = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))))); elseif (t <= 6.8e-97) tmp = Float64(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (t <= 5.8e+67) tmp = Float64(y2 * Float64(Float64(Float64(x * t_3) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * t_1))); elseif (t <= 6.4e+151) tmp = Float64(z * Float64(Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(t * t_2)) - Float64(y3 * t_3))); elseif (t <= 1e+194) tmp = Float64(c * Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) - Float64(i * Float64(Float64(x * y) - Float64(z * t))))); elseif (t <= 1.35e+261) tmp = Float64(a * Float64(Float64(z * t) * Float64(-b))); else tmp = Float64(i * Float64(Float64(z * t) * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (c * i) - (a * b); t_3 = (c * y0) - (a * y1); tmp = 0.0; if (t <= -2.5e+151) tmp = t * ((z * t_2) + ((j * ((b * y4) - (i * y5))) + (y2 * t_1))); elseif (t <= -1.5e-50) tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2))))); elseif (t <= -1.35e-193) tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3))))); elseif (t <= 6.8e-97) tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))); elseif (t <= 5.8e+67) tmp = y2 * (((x * t_3) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_1)); elseif (t <= 6.4e+151) tmp = z * (((k * ((b * y0) - (i * y1))) + (t * t_2)) - (y3 * t_3)); elseif (t <= 1e+194) tmp = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t)))); elseif (t <= 1.35e+261) tmp = a * ((z * t) * -b); else tmp = i * ((z * t) * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+151], N[(t * N[(N[(z * t$95$2), $MachinePrecision] + N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.5e-50], N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.35e-193], N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e-97], N[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+67], N[(y2 * N[(N[(N[(x * t$95$3), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.4e+151], N[(z * N[(N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+194], N[(c * N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+261], N[(a * N[(N[(z * t), $MachinePrecision] * (-b)), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := c \cdot i - a \cdot b\\
t_3 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+151}:\\
\;\;\;\;t \cdot \left(z \cdot t_2 + \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot t_1\right)\right)\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-50}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-193}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-97}:\\
\;\;\;\;y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+67}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_3 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot t_1\right)\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{+151}:\\
\;\;\;\;z \cdot \left(\left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + t \cdot t_2\right) - y3 \cdot t_3\right)\\
\mathbf{elif}\;t \leq 10^{+194}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) - i \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+261}:\\
\;\;\;\;a \cdot \left(\left(z \cdot t\right) \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\end{array}
\end{array}
if t < -2.5000000000000001e151Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in t around inf 62.8%
associate--l+62.8%
mul-1-neg62.8%
Simplified62.8%
if -2.5000000000000001e151 < t < -1.49999999999999995e-50Initial program 23.9%
associate-+l-23.9%
Simplified23.9%
Taylor expanded in c around inf 59.0%
associate--l+59.0%
mul-1-neg59.0%
Simplified59.0%
Taylor expanded in y2 around inf 63.4%
if -1.49999999999999995e-50 < t < -1.35e-193Initial program 39.9%
+-commutative39.9%
fma-def39.9%
Simplified49.9%
Taylor expanded in y1 around inf 57.4%
mul-1-neg57.4%
mul-1-neg57.4%
sub-neg57.4%
Simplified57.4%
if -1.35e-193 < t < 6.7999999999999998e-97Initial program 30.1%
+-commutative30.1%
fma-def31.9%
Simplified38.9%
Taylor expanded in y5 around inf 55.0%
mul-1-neg55.0%
mul-1-neg55.0%
mul-1-neg55.0%
sub-neg55.0%
sub-neg55.0%
Simplified55.0%
if 6.7999999999999998e-97 < t < 5.80000000000000047e67Initial program 33.6%
associate-+l-33.6%
Simplified33.6%
Taylor expanded in y2 around inf 57.6%
if 5.80000000000000047e67 < t < 6.39999999999999988e151Initial program 52.9%
associate-+l-52.9%
Simplified52.9%
Taylor expanded in z around -inf 58.9%
mul-1-neg58.9%
associate--l+58.9%
Simplified58.9%
if 6.39999999999999988e151 < t < 9.99999999999999945e193Initial program 9.1%
associate-+l-9.1%
Simplified9.1%
Taylor expanded in c around inf 63.9%
associate--l+63.9%
mul-1-neg63.9%
Simplified63.9%
Taylor expanded in y4 around 0 82.0%
if 9.99999999999999945e193 < t < 1.35000000000000001e261Initial program 35.3%
associate-+l-35.3%
Simplified35.3%
Taylor expanded in a around inf 41.6%
associate--l+41.6%
mul-1-neg41.6%
mul-1-neg41.6%
Simplified41.6%
Taylor expanded in b around inf 42.3%
*-commutative42.3%
*-commutative42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in x around 0 48.2%
mul-1-neg48.2%
distribute-lft-neg-out48.2%
*-commutative48.2%
Simplified48.2%
if 1.35000000000000001e261 < t Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in c around inf 14.8%
associate--l+14.8%
mul-1-neg14.8%
Simplified14.8%
Taylor expanded in y2 around inf 14.8%
Taylor expanded in z around inf 72.6%
*-commutative72.6%
associate-*l*86.2%
Simplified86.2%
Final simplification60.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1))) (t_2 (- (* a y5) (* c y4))))
(if (<= t -7e+153)
(*
t
(+ (* z (- (* c i) (* a b))) (+ (* j (- (* b y4) (* i y5))) (* y2 t_2))))
(if (<= t -4e-55)
(*
c
(+
(* i (- (* z t) (* x y)))
(+ (* y0 (* x y2)) (* y4 (- (* y y3) (* t y2))))))
(if (<= t -1.9e-193)
(*
y1
(+
(* a (- (* z y3) (* x y2)))
(+ (* i (- (* x j) (* z k))) (* y4 (- (* k y2) (* j y3))))))
(if (<= t 3.6e-98)
(*
y5
(+
(* i (- (* y k) (* t j)))
(+ (* a (- (* t y2) (* y y3))) (* y0 (- (* j y3) (* k y2))))))
(if (<= t 6.6e+105)
(* y2 (+ (+ (* x t_1) (* k (- (* y1 y4) (* y0 y5)))) (* t t_2)))
(if (<= t 9.5e+216)
(*
y3
(-
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))
(* y t_2)))
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_1))
(* j (- (* i y1) (* b y0)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (a * y5) - (c * y4);
double tmp;
if (t <= -7e+153) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)));
} else if (t <= -4e-55) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))));
} else if (t <= -1.9e-193) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))));
} else if (t <= 3.6e-98) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))));
} else if (t <= 6.6e+105) {
tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_2));
} else if (t <= 9.5e+216) {
tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_2));
} else {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = (a * y5) - (c * y4)
if (t <= (-7d+153)) then
tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)))
else if (t <= (-4d-55)) then
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))))
else if (t <= (-1.9d-193)) then
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))))
else if (t <= 3.6d-98) then
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))))
else if (t <= 6.6d+105) then
tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_2))
else if (t <= 9.5d+216) then
tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_2))
else
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (a * y5) - (c * y4);
double tmp;
if (t <= -7e+153) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2)));
} else if (t <= -4e-55) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))));
} else if (t <= -1.9e-193) {
tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3)))));
} else if (t <= 3.6e-98) {
tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2)))));
} else if (t <= 6.6e+105) {
tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_2));
} else if (t <= 9.5e+216) {
tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_2));
} else {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y0) - (a * y1) t_2 = (a * y5) - (c * y4) tmp = 0 if t <= -7e+153: tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2))) elif t <= -4e-55: tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2))))) elif t <= -1.9e-193: tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3))))) elif t <= 3.6e-98: tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))) elif t <= 6.6e+105: tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_2)) elif t <= 9.5e+216: tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_2)) else: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) tmp = 0.0 if (t <= -7e+153) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y2 * t_2)))); elseif (t <= -4e-55) tmp = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))))); elseif (t <= -1.9e-193) tmp = Float64(y1 * Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))))); elseif (t <= 3.6e-98) tmp = Float64(y5 * Float64(Float64(i * Float64(Float64(y * k) - Float64(t * j))) + Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2)))))); elseif (t <= 6.6e+105) tmp = Float64(y2 * Float64(Float64(Float64(x * t_1) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * t_2))); elseif (t <= 9.5e+216) tmp = Float64(y3 * Float64(Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) - Float64(y * t_2))); else tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_1)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (c * y0) - (a * y1); t_2 = (a * y5) - (c * y4); tmp = 0.0; if (t <= -7e+153) tmp = t * ((z * ((c * i) - (a * b))) + ((j * ((b * y4) - (i * y5))) + (y2 * t_2))); elseif (t <= -4e-55) tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2))))); elseif (t <= -1.9e-193) tmp = y1 * ((a * ((z * y3) - (x * y2))) + ((i * ((x * j) - (z * k))) + (y4 * ((k * y2) - (j * y3))))); elseif (t <= 3.6e-98) tmp = y5 * ((i * ((y * k) - (t * j))) + ((a * ((t * y2) - (y * y3))) + (y0 * ((j * y3) - (k * y2))))); elseif (t <= 6.6e+105) tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * t_2)); elseif (t <= 9.5e+216) tmp = y3 * (((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))) - (y * t_2)); else tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7e+153], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4e-55], N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.9e-193], N[(y1 * N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-98], N[(y5 * N[(N[(i * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e+105], N[(y2 * N[(N[(N[(x * t$95$1), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e+216], N[(y3 * N[(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] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := a \cdot y5 - c \cdot y4\\
\mathbf{if}\;t \leq -7 \cdot 10^{+153}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot \left(b \cdot y4 - i \cdot y5\right) + y2 \cdot t_2\right)\right)\\
\mathbf{elif}\;t \leq -4 \cdot 10^{-55}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{-193}:\\
\;\;\;\;y1 \cdot \left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + \left(i \cdot \left(x \cdot j - z \cdot k\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-98}:\\
\;\;\;\;y5 \cdot \left(i \cdot \left(y \cdot k - t \cdot j\right) + \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + y0 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+105}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_1 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot t_2\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+216}:\\
\;\;\;\;y3 \cdot \left(\left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) - y \cdot t_2\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_1\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\end{array}
\end{array}
if t < -6.9999999999999998e153Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in t around inf 62.8%
associate--l+62.8%
mul-1-neg62.8%
Simplified62.8%
if -6.9999999999999998e153 < t < -3.99999999999999998e-55Initial program 23.9%
associate-+l-23.9%
Simplified23.9%
Taylor expanded in c around inf 59.0%
associate--l+59.0%
mul-1-neg59.0%
Simplified59.0%
Taylor expanded in y2 around inf 63.4%
if -3.99999999999999998e-55 < t < -1.90000000000000002e-193Initial program 39.9%
+-commutative39.9%
fma-def39.9%
Simplified49.9%
Taylor expanded in y1 around inf 57.4%
mul-1-neg57.4%
mul-1-neg57.4%
sub-neg57.4%
Simplified57.4%
if -1.90000000000000002e-193 < t < 3.6000000000000002e-98Initial program 30.1%
+-commutative30.1%
fma-def31.9%
Simplified38.9%
Taylor expanded in y5 around inf 55.0%
mul-1-neg55.0%
mul-1-neg55.0%
mul-1-neg55.0%
sub-neg55.0%
sub-neg55.0%
Simplified55.0%
if 3.6000000000000002e-98 < t < 6.59999999999999995e105Initial program 40.2%
associate-+l-40.2%
Simplified40.2%
Taylor expanded in y2 around inf 54.5%
if 6.59999999999999995e105 < t < 9.50000000000000005e216Initial program 28.6%
associate-+l-28.6%
Simplified28.6%
Taylor expanded in y3 around -inf 64.7%
if 9.50000000000000005e216 < t Initial program 16.7%
associate-+l-16.7%
Simplified16.7%
Taylor expanded in x around inf 55.8%
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 (- (* y0 y5) (* y1 y4)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* x y) (* z t)))
(t_4 (- (* b y4) (* i y5))))
(if (<= i -1.4e+234)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= i -1.12e-83)
(* t (+ (* z (- (* c i) (* a b))) (+ (* j t_4) (* y2 t_2))))
(if (<= i 5e-265)
(*
a
(+
(* b t_3)
(+ (* y1 (- (* z y3) (* x y2))) (* y5 (- (* t y2) (* y y3))))))
(if (<= i 3.9e-185)
(* j (+ (+ (* y3 t_1) (* t t_4)) (* x (- (* i y1) (* b y0)))))
(if (<= i 1.8e+22)
(*
y
(+
(* k (- (* i y5) (* b y4)))
(+ (* x (- (* a b) (* c i))) (* y3 (- (* c y4) (* a y5))))))
(if (<= i 5.8e+48)
(* y3 (- (+ (* j t_1) (* z (- (* a y1) (* c y0)))) (* y t_2)))
(if (<= i 3.2e+100)
(* c (* i (- (* z t) (* x y))))
(if (<= i 7.2e+242)
(* y1 (* i (- (* x j) (* z k))))
(* c (- (* x (* y0 y2)) (* i t_3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * y5) - (y1 * y4);
double t_2 = (a * y5) - (c * y4);
double t_3 = (x * y) - (z * t);
double t_4 = (b * y4) - (i * y5);
double tmp;
if (i <= -1.4e+234) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (i <= -1.12e-83) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_2)));
} else if (i <= 5e-265) {
tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * ((t * y2) - (y * y3)))));
} else if (i <= 3.9e-185) {
tmp = j * (((y3 * t_1) + (t * t_4)) + (x * ((i * y1) - (b * y0))));
} else if (i <= 1.8e+22) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if (i <= 5.8e+48) {
tmp = y3 * (((j * t_1) + (z * ((a * y1) - (c * y0)))) - (y * t_2));
} else if (i <= 3.2e+100) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (i <= 7.2e+242) {
tmp = y1 * (i * ((x * j) - (z * k)));
} else {
tmp = c * ((x * (y0 * y2)) - (i * 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 = (y0 * y5) - (y1 * y4)
t_2 = (a * y5) - (c * y4)
t_3 = (x * y) - (z * t)
t_4 = (b * y4) - (i * y5)
if (i <= (-1.4d+234)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (i <= (-1.12d-83)) then
tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_2)))
else if (i <= 5d-265) then
tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * ((t * y2) - (y * y3)))))
else if (i <= 3.9d-185) then
tmp = j * (((y3 * t_1) + (t * t_4)) + (x * ((i * y1) - (b * y0))))
else if (i <= 1.8d+22) then
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))))
else if (i <= 5.8d+48) then
tmp = y3 * (((j * t_1) + (z * ((a * y1) - (c * y0)))) - (y * t_2))
else if (i <= 3.2d+100) then
tmp = c * (i * ((z * t) - (x * y)))
else if (i <= 7.2d+242) then
tmp = y1 * (i * ((x * j) - (z * k)))
else
tmp = c * ((x * (y0 * y2)) - (i * 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 = (y0 * y5) - (y1 * y4);
double t_2 = (a * y5) - (c * y4);
double t_3 = (x * y) - (z * t);
double t_4 = (b * y4) - (i * y5);
double tmp;
if (i <= -1.4e+234) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (i <= -1.12e-83) {
tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_2)));
} else if (i <= 5e-265) {
tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * ((t * y2) - (y * y3)))));
} else if (i <= 3.9e-185) {
tmp = j * (((y3 * t_1) + (t * t_4)) + (x * ((i * y1) - (b * y0))));
} else if (i <= 1.8e+22) {
tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5)))));
} else if (i <= 5.8e+48) {
tmp = y3 * (((j * t_1) + (z * ((a * y1) - (c * y0)))) - (y * t_2));
} else if (i <= 3.2e+100) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (i <= 7.2e+242) {
tmp = y1 * (i * ((x * j) - (z * k)));
} else {
tmp = c * ((x * (y0 * y2)) - (i * t_3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y0 * y5) - (y1 * y4) t_2 = (a * y5) - (c * y4) t_3 = (x * y) - (z * t) t_4 = (b * y4) - (i * y5) tmp = 0 if i <= -1.4e+234: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif i <= -1.12e-83: tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_2))) elif i <= 5e-265: tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * ((t * y2) - (y * y3))))) elif i <= 3.9e-185: tmp = j * (((y3 * t_1) + (t * t_4)) + (x * ((i * y1) - (b * y0)))) elif i <= 1.8e+22: tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))) elif i <= 5.8e+48: tmp = y3 * (((j * t_1) + (z * ((a * y1) - (c * y0)))) - (y * t_2)) elif i <= 3.2e+100: tmp = c * (i * ((z * t) - (x * y))) elif i <= 7.2e+242: tmp = y1 * (i * ((x * j) - (z * k))) else: tmp = c * ((x * (y0 * y2)) - (i * 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(y0 * y5) - Float64(y1 * y4)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(x * y) - Float64(z * t)) t_4 = Float64(Float64(b * y4) - Float64(i * y5)) tmp = 0.0 if (i <= -1.4e+234) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (i <= -1.12e-83) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(Float64(j * t_4) + Float64(y2 * t_2)))); elseif (i <= 5e-265) tmp = Float64(a * Float64(Float64(b * t_3) + Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (i <= 3.9e-185) tmp = Float64(j * Float64(Float64(Float64(y3 * t_1) + Float64(t * t_4)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (i <= 1.8e+22) tmp = Float64(y * Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (i <= 5.8e+48) tmp = Float64(y3 * Float64(Float64(Float64(j * t_1) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))) - Float64(y * t_2))); elseif (i <= 3.2e+100) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (i <= 7.2e+242) tmp = Float64(y1 * Float64(i * Float64(Float64(x * j) - Float64(z * k)))); else tmp = Float64(c * Float64(Float64(x * Float64(y0 * y2)) - Float64(i * 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 = (y0 * y5) - (y1 * y4); t_2 = (a * y5) - (c * y4); t_3 = (x * y) - (z * t); t_4 = (b * y4) - (i * y5); tmp = 0.0; if (i <= -1.4e+234) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (i <= -1.12e-83) tmp = t * ((z * ((c * i) - (a * b))) + ((j * t_4) + (y2 * t_2))); elseif (i <= 5e-265) tmp = a * ((b * t_3) + ((y1 * ((z * y3) - (x * y2))) + (y5 * ((t * y2) - (y * y3))))); elseif (i <= 3.9e-185) tmp = j * (((y3 * t_1) + (t * t_4)) + (x * ((i * y1) - (b * y0)))); elseif (i <= 1.8e+22) tmp = y * ((k * ((i * y5) - (b * y4))) + ((x * ((a * b) - (c * i))) + (y3 * ((c * y4) - (a * y5))))); elseif (i <= 5.8e+48) tmp = y3 * (((j * t_1) + (z * ((a * y1) - (c * y0)))) - (y * t_2)); elseif (i <= 3.2e+100) tmp = c * (i * ((z * t) - (x * y))); elseif (i <= 7.2e+242) tmp = y1 * (i * ((x * j) - (z * k))); else tmp = c * ((x * (y0 * y2)) - (i * 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[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.4e+234], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.12e-83], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t$95$4), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e-265], N[(a * N[(N[(b * t$95$3), $MachinePrecision] + N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.9e-185], N[(j * N[(N[(N[(y3 * t$95$1), $MachinePrecision] + N[(t * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+22], N[(y * N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.8e+48], N[(y3 * N[(N[(N[(j * t$95$1), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.2e+100], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.2e+242], N[(y1 * N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot y5 - y1 \cdot y4\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := x \cdot y - z \cdot t\\
t_4 := b \cdot y4 - i \cdot y5\\
\mathbf{if}\;i \leq -1.4 \cdot 10^{+234}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;i \leq -1.12 \cdot 10^{-83}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + \left(j \cdot t_4 + y2 \cdot t_2\right)\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(b \cdot t_3 + \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{-185}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot t_1 + t \cdot t_4\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + \left(x \cdot \left(a \cdot b - c \cdot i\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{+48}:\\
\;\;\;\;y3 \cdot \left(\left(j \cdot t_1 + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right) - y \cdot t_2\right)\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{+100}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;i \leq 7.2 \cdot 10^{+242}:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right) - i \cdot t_3\right)\\
\end{array}
\end{array}
if i < -1.3999999999999999e234Initial program 20.0%
+-commutative20.0%
fma-def20.0%
Simplified20.0%
Taylor expanded in y1 around inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
sub-neg40.3%
Simplified40.3%
Taylor expanded in j around inf 70.2%
associate-*r*70.2%
mul-1-neg70.2%
unsub-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
if -1.3999999999999999e234 < i < -1.11999999999999993e-83Initial program 40.1%
associate-+l-40.1%
Simplified40.1%
Taylor expanded in t around inf 64.9%
associate--l+64.9%
mul-1-neg64.9%
Simplified64.9%
if -1.11999999999999993e-83 < i < 5.0000000000000001e-265Initial program 36.2%
associate-+l-36.2%
Simplified36.2%
Taylor expanded in a around inf 50.1%
associate--l+50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
if 5.0000000000000001e-265 < i < 3.8999999999999999e-185Initial program 23.8%
+-commutative23.8%
fma-def29.7%
*-commutative29.7%
*-commutative29.7%
Simplified29.7%
Taylor expanded in j around inf 76.8%
if 3.8999999999999999e-185 < i < 1.8e22Initial program 32.6%
associate-+l-32.6%
Simplified32.6%
Taylor expanded in y around inf 58.4%
associate--l+58.4%
mul-1-neg58.4%
mul-1-neg58.4%
Simplified58.4%
if 1.8e22 < i < 5.7999999999999998e48Initial program 28.6%
associate-+l-28.6%
Simplified28.6%
Taylor expanded in y3 around -inf 85.7%
if 5.7999999999999998e48 < i < 3.1999999999999999e100Initial program 11.1%
associate-+l-11.1%
Simplified11.1%
Taylor expanded in c around inf 44.5%
associate--l+44.5%
mul-1-neg44.5%
Simplified44.5%
Taylor expanded in i around inf 77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
if 3.1999999999999999e100 < i < 7.19999999999999989e242Initial program 18.1%
+-commutative18.1%
fma-def21.2%
Simplified30.3%
Taylor expanded in y1 around inf 60.7%
mul-1-neg60.7%
mul-1-neg60.7%
sub-neg60.7%
Simplified60.7%
Taylor expanded in i around inf 67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 7.19999999999999989e242 < i Initial program 0.0%
associate-+l-0.0%
Simplified0.0%
Taylor expanded in c around inf 56.4%
associate--l+56.4%
mul-1-neg56.4%
Simplified56.4%
Taylor expanded in y4 around 0 68.9%
Taylor expanded in y3 around 0 69.4%
*-commutative69.4%
associate-*r*69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Final simplification62.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y y3) (* t y2)))
(t_2 (* y0 (* b (- (* z k) (* x j)))))
(t_3 (* i (- (* z t) (* x y))))
(t_4
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c t_1)))))
(if (<= b -4e+44)
t_2
(if (<= b -1.9e-132)
(* c (+ t_3 (* y2 (- (* x y0) (* t y4)))))
(if (<= b 2.1e-299)
t_4
(if (<= b 6.4e-282)
(* y (* y3 (* a (- y5))))
(if (<= b 1e-236)
t_4
(if (<= b 4e+105)
(* c (+ t_3 (+ (* y0 (* x y2)) (* y4 t_1))))
(if (<= b 2.2e+237)
(* y4 (* t (- (* b j) (* c 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 = (y * y3) - (t * y2);
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = i * ((z * t) - (x * y));
double t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1));
double tmp;
if (b <= -4e+44) {
tmp = t_2;
} else if (b <= -1.9e-132) {
tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 2.1e-299) {
tmp = t_4;
} else if (b <= 6.4e-282) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1e-236) {
tmp = t_4;
} else if (b <= 4e+105) {
tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_1)));
} else if (b <= 2.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (y * y3) - (t * y2)
t_2 = y0 * (b * ((z * k) - (x * j)))
t_3 = i * ((z * t) - (x * y))
t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1))
if (b <= (-4d+44)) then
tmp = t_2
else if (b <= (-1.9d-132)) then
tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4))))
else if (b <= 2.1d-299) then
tmp = t_4
else if (b <= 6.4d-282) then
tmp = y * (y3 * (a * -y5))
else if (b <= 1d-236) then
tmp = t_4
else if (b <= 4d+105) then
tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_1)))
else if (b <= 2.2d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * y3) - (t * y2);
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = i * ((z * t) - (x * y));
double t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1));
double tmp;
if (b <= -4e+44) {
tmp = t_2;
} else if (b <= -1.9e-132) {
tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 2.1e-299) {
tmp = t_4;
} else if (b <= 6.4e-282) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1e-236) {
tmp = t_4;
} else if (b <= 4e+105) {
tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_1)));
} else if (b <= 2.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y * y3) - (t * y2) t_2 = y0 * (b * ((z * k) - (x * j))) t_3 = i * ((z * t) - (x * y)) t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1)) tmp = 0 if b <= -4e+44: tmp = t_2 elif b <= -1.9e-132: tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4)))) elif b <= 2.1e-299: tmp = t_4 elif b <= 6.4e-282: tmp = y * (y3 * (a * -y5)) elif b <= 1e-236: tmp = t_4 elif b <= 4e+105: tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_1))) elif b <= 2.2e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * y3) - Float64(t * y2)) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_3 = Float64(i * Float64(Float64(z * t) - Float64(x * y))) t_4 = 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_1))) tmp = 0.0 if (b <= -4e+44) tmp = t_2; elseif (b <= -1.9e-132) tmp = Float64(c * Float64(t_3 + Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))))); elseif (b <= 2.1e-299) tmp = t_4; elseif (b <= 6.4e-282) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (b <= 1e-236) tmp = t_4; elseif (b <= 4e+105) tmp = Float64(c * Float64(t_3 + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * t_1)))); elseif (b <= 2.2e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y * y3) - (t * y2); t_2 = y0 * (b * ((z * k) - (x * j))); t_3 = i * ((z * t) - (x * y)); t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * t_1)); tmp = 0.0; if (b <= -4e+44) tmp = t_2; elseif (b <= -1.9e-132) tmp = c * (t_3 + (y2 * ((x * y0) - (t * y4)))); elseif (b <= 2.1e-299) tmp = t_4; elseif (b <= 6.4e-282) tmp = y * (y3 * (a * -y5)); elseif (b <= 1e-236) tmp = t_4; elseif (b <= 4e+105) tmp = c * (t_3 + ((y0 * (x * y2)) + (y4 * t_1))); elseif (b <= 2.2e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = 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$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e+44], t$95$2, If[LessEqual[b, -1.9e-132], N[(c * N[(t$95$3 + N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-299], t$95$4, If[LessEqual[b, 6.4e-282], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-236], t$95$4, If[LessEqual[b, 4e+105], N[(c * N[(t$95$3 + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot y3 - t \cdot y2\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_3 := i \cdot \left(z \cdot t - x \cdot y\right)\\
t_4 := 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_1\right)\\
\mathbf{if}\;b \leq -4 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-132}:\\
\;\;\;\;c \cdot \left(t_3 + y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-299}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{-282}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 10^{-236}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(t_3 + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot t_1\right)\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.0000000000000004e44 or 2.2e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -4.0000000000000004e44 < b < -1.8999999999999998e-132Initial program 42.4%
associate-+l-42.4%
Simplified42.4%
Taylor expanded in c around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in y2 around inf 40.1%
Taylor expanded in y3 around 0 43.4%
+-commutative43.4%
associate--r+43.4%
associate-*r*46.4%
*-commutative46.4%
cancel-sign-sub-inv46.4%
associate-*r*46.4%
neg-mul-146.4%
*-commutative46.4%
distribute-rgt-in46.4%
mul-1-neg46.4%
sub-neg46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
if -1.8999999999999998e-132 < b < 2.1000000000000001e-299 or 6.39999999999999966e-282 < b < 1e-236Initial program 33.6%
associate-+l-33.6%
Simplified33.6%
Taylor expanded in y4 around inf 50.9%
if 2.1000000000000001e-299 < b < 6.39999999999999966e-282Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in a around inf 83.3%
associate--l+83.3%
mul-1-neg83.3%
mul-1-neg83.3%
Simplified83.3%
Taylor expanded in y around inf 67.5%
associate-*r*67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in x around 0 67.5%
mul-1-neg67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in a around 0 83.3%
*-commutative83.3%
associate-*l*83.5%
Simplified83.5%
if 1e-236 < b < 3.9999999999999998e105Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
mul-1-neg60.3%
Simplified60.3%
Taylor expanded in y2 around inf 55.7%
if 3.9999999999999998e105 < b < 2.2e237Initial program 28.1%
associate-+l-28.1%
Simplified28.1%
Taylor expanded in y4 around inf 35.1%
Taylor expanded in t around inf 59.9%
Final simplification53.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 (- (* x y) (* z t)))
(t_3 (- (* z k) (* x j)))
(t_4
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0))))))
(t_5 (- (* y y3) (* t y2))))
(if (<= b -2e+198)
(* b (+ (+ (* a t_2) (* y4 t_1)) (* y0 t_3)))
(if (<= b -1.25e+148)
t_4
(if (<= b -6.7e+97)
(* y4 (+ (+ (* b t_1) (* y1 (- (* k y2) (* j y3)))) (* c t_5)))
(if (<= b -2e+53)
t_4
(if (<= b 1.2e-231)
(*
i
(-
(+ (* y1 (- (* x j) (* z k))) (* y5 (- (* y k) (* t j))))
(* c t_2)))
(if (<= b 6e+104)
(*
c
(+ (* i (- (* z t) (* x y))) (+ (* y0 (* x y2)) (* y4 t_5))))
(if (<= b 2.55e+239)
(* y4 (* t (- (* b j) (* c y2))))
(* y0 (* b 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 = (x * y) - (z * t);
double t_3 = (z * k) - (x * j);
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double t_5 = (y * y3) - (t * y2);
double tmp;
if (b <= -2e+198) {
tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3));
} else if (b <= -1.25e+148) {
tmp = t_4;
} else if (b <= -6.7e+97) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5));
} else if (b <= -2e+53) {
tmp = t_4;
} else if (b <= 1.2e-231) {
tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2));
} else if (b <= 6e+104) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_5)));
} else if (b <= 2.55e+239) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = y0 * (b * 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 = (t * j) - (y * k)
t_2 = (x * y) - (z * t)
t_3 = (z * k) - (x * j)
t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
t_5 = (y * y3) - (t * y2)
if (b <= (-2d+198)) then
tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3))
else if (b <= (-1.25d+148)) then
tmp = t_4
else if (b <= (-6.7d+97)) then
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5))
else if (b <= (-2d+53)) then
tmp = t_4
else if (b <= 1.2d-231) then
tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2))
else if (b <= 6d+104) then
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_5)))
else if (b <= 2.55d+239) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = y0 * (b * 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 = (x * y) - (z * t);
double t_3 = (z * k) - (x * j);
double t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double t_5 = (y * y3) - (t * y2);
double tmp;
if (b <= -2e+198) {
tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3));
} else if (b <= -1.25e+148) {
tmp = t_4;
} else if (b <= -6.7e+97) {
tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5));
} else if (b <= -2e+53) {
tmp = t_4;
} else if (b <= 1.2e-231) {
tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2));
} else if (b <= 6e+104) {
tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_5)));
} else if (b <= 2.55e+239) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = y0 * (b * 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 = (x * y) - (z * t) t_3 = (z * k) - (x * j) t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) t_5 = (y * y3) - (t * y2) tmp = 0 if b <= -2e+198: tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3)) elif b <= -1.25e+148: tmp = t_4 elif b <= -6.7e+97: tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5)) elif b <= -2e+53: tmp = t_4 elif b <= 1.2e-231: tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2)) elif b <= 6e+104: tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_5))) elif b <= 2.55e+239: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = y0 * (b * t_3) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(Float64(x * y) - Float64(z * t)) t_3 = Float64(Float64(z * k) - Float64(x * j)) 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 * Float64(Float64(i * y1) - Float64(b * y0))))) t_5 = Float64(Float64(y * y3) - Float64(t * y2)) tmp = 0.0 if (b <= -2e+198) tmp = Float64(b * Float64(Float64(Float64(a * t_2) + Float64(y4 * t_1)) + Float64(y0 * t_3))); elseif (b <= -1.25e+148) tmp = t_4; elseif (b <= -6.7e+97) tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * t_5))); elseif (b <= -2e+53) tmp = t_4; elseif (b <= 1.2e-231) tmp = Float64(i * Float64(Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))) - Float64(c * t_2))); elseif (b <= 6e+104) tmp = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * t_5)))); elseif (b <= 2.55e+239) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = Float64(y0 * Float64(b * 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 = (x * y) - (z * t); t_3 = (z * k) - (x * j); t_4 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); t_5 = (y * y3) - (t * y2); tmp = 0.0; if (b <= -2e+198) tmp = b * (((a * t_2) + (y4 * t_1)) + (y0 * t_3)); elseif (b <= -1.25e+148) tmp = t_4; elseif (b <= -6.7e+97) tmp = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * t_5)); elseif (b <= -2e+53) tmp = t_4; elseif (b <= 1.2e-231) tmp = i * (((y1 * ((x * j) - (z * k))) + (y5 * ((y * k) - (t * j)))) - (c * t_2)); elseif (b <= 6e+104) tmp = c * ((i * ((z * t) - (x * y))) + ((y0 * (x * y2)) + (y4 * t_5))); elseif (b <= 2.55e+239) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = y0 * (b * 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[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $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 * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+198], N[(b * N[(N[(N[(a * t$95$2), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.25e+148], t$95$4, If[LessEqual[b, -6.7e+97], 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$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e+53], t$95$4, If[LessEqual[b, 1.2e-231], N[(i * N[(N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+104], N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.55e+239], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := x \cdot y - z \cdot t\\
t_3 := z \cdot k - x \cdot j\\
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 \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_5 := y \cdot y3 - t \cdot y2\\
\mathbf{if}\;b \leq -2 \cdot 10^{+198}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t_2 + y4 \cdot t_1\right) + y0 \cdot t_3\right)\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{+148}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq -6.7 \cdot 10^{+97}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot t_5\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{+53}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-231}:\\
\;\;\;\;i \cdot \left(\left(y1 \cdot \left(x \cdot j - z \cdot k\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right) - c \cdot t_2\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+104}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot t_5\right)\right)\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+239}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(b \cdot t_3\right)\\
\end{array}
\end{array}
if b < -2.00000000000000004e198Initial program 13.5%
associate-+l-13.5%
Simplified13.5%
Taylor expanded in b around inf 59.9%
if -2.00000000000000004e198 < b < -1.25000000000000006e148 or -6.69999999999999985e97 < b < -2e53Initial program 40.0%
associate-+l-40.0%
Simplified40.0%
Taylor expanded in x around inf 75.1%
if -1.25000000000000006e148 < b < -6.69999999999999985e97Initial program 15.4%
associate-+l-15.4%
Simplified15.4%
Taylor expanded in y4 around inf 61.7%
if -2e53 < b < 1.19999999999999996e-231Initial program 37.0%
associate-+l-37.0%
Simplified37.0%
Taylor expanded in i around -inf 44.9%
mul-1-neg44.9%
associate--l+44.9%
Simplified44.9%
if 1.19999999999999996e-231 < b < 5.99999999999999937e104Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
mul-1-neg60.3%
Simplified60.3%
Taylor expanded in y2 around inf 55.7%
if 5.99999999999999937e104 < b < 2.5499999999999999e239Initial program 28.1%
associate-+l-28.1%
Simplified28.1%
Taylor expanded in y4 around inf 35.1%
Taylor expanded in t around inf 59.9%
if 2.5499999999999999e239 < b Initial program 16.5%
+-commutative16.5%
fma-def25.0%
*-commutative25.0%
*-commutative25.0%
Simplified33.3%
Taylor expanded in y0 around inf 42.3%
mul-1-neg42.3%
Simplified42.3%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Final simplification55.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j))))) (t_2 (* i (- (* z t) (* x y)))))
(if (<= b -4e+44)
t_1
(if (<= b -1.15e-132)
(* c (+ t_2 (* y2 (- (* x y0) (* t y4)))))
(if (<= b 1.65e-272)
(* y4 (* y3 (- (* y c) (* j y1))))
(if (<= b 8.2e+105)
(* c (+ t_2 (+ (* y0 (* x y2)) (* y4 (- (* y y3) (* t y2))))))
(if (<= b 1.1e+237) (* y4 (* t (- (* b j) (* c y2)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = i * ((z * t) - (x * y));
double tmp;
if (b <= -4e+44) {
tmp = t_1;
} else if (b <= -1.15e-132) {
tmp = c * (t_2 + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 1.65e-272) {
tmp = y4 * (y3 * ((y * c) - (j * y1)));
} else if (b <= 8.2e+105) {
tmp = c * (t_2 + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))));
} else if (b <= 1.1e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
t_2 = i * ((z * t) - (x * y))
if (b <= (-4d+44)) then
tmp = t_1
else if (b <= (-1.15d-132)) then
tmp = c * (t_2 + (y2 * ((x * y0) - (t * y4))))
else if (b <= 1.65d-272) then
tmp = y4 * (y3 * ((y * c) - (j * y1)))
else if (b <= 8.2d+105) then
tmp = c * (t_2 + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))))
else if (b <= 1.1d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = i * ((z * t) - (x * y));
double tmp;
if (b <= -4e+44) {
tmp = t_1;
} else if (b <= -1.15e-132) {
tmp = c * (t_2 + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 1.65e-272) {
tmp = y4 * (y3 * ((y * c) - (j * y1)));
} else if (b <= 8.2e+105) {
tmp = c * (t_2 + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2)))));
} else if (b <= 1.1e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) t_2 = i * ((z * t) - (x * y)) tmp = 0 if b <= -4e+44: tmp = t_1 elif b <= -1.15e-132: tmp = c * (t_2 + (y2 * ((x * y0) - (t * y4)))) elif b <= 1.65e-272: tmp = y4 * (y3 * ((y * c) - (j * y1))) elif b <= 8.2e+105: tmp = c * (t_2 + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2))))) elif b <= 1.1e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(i * Float64(Float64(z * t) - Float64(x * y))) tmp = 0.0 if (b <= -4e+44) tmp = t_1; elseif (b <= -1.15e-132) tmp = Float64(c * Float64(t_2 + Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))))); elseif (b <= 1.65e-272) tmp = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))); elseif (b <= 8.2e+105) tmp = Float64(c * Float64(t_2 + Float64(Float64(y0 * Float64(x * y2)) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))))); elseif (b <= 1.1e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); t_2 = i * ((z * t) - (x * y)); tmp = 0.0; if (b <= -4e+44) tmp = t_1; elseif (b <= -1.15e-132) tmp = c * (t_2 + (y2 * ((x * y0) - (t * y4)))); elseif (b <= 1.65e-272) tmp = y4 * (y3 * ((y * c) - (j * y1))); elseif (b <= 8.2e+105) tmp = c * (t_2 + ((y0 * (x * y2)) + (y4 * ((y * y3) - (t * y2))))); elseif (b <= 1.1e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e+44], t$95$1, If[LessEqual[b, -1.15e-132], N[(c * N[(t$95$2 + N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e-272], N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+105], N[(c * N[(t$95$2 + N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := i \cdot \left(z \cdot t - x \cdot y\right)\\
\mathbf{if}\;b \leq -4 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-132}:\\
\;\;\;\;c \cdot \left(t_2 + y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-272}:\\
\;\;\;\;y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(t_2 + \left(y0 \cdot \left(x \cdot y2\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.0000000000000004e44 or 1.1e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -4.0000000000000004e44 < b < -1.15000000000000002e-132Initial program 42.4%
associate-+l-42.4%
Simplified42.4%
Taylor expanded in c around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in y2 around inf 40.1%
Taylor expanded in y3 around 0 43.4%
+-commutative43.4%
associate--r+43.4%
associate-*r*46.4%
*-commutative46.4%
cancel-sign-sub-inv46.4%
associate-*r*46.4%
neg-mul-146.4%
*-commutative46.4%
distribute-rgt-in46.4%
mul-1-neg46.4%
sub-neg46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
if -1.15000000000000002e-132 < b < 1.65000000000000016e-272Initial program 35.8%
associate-+l-35.8%
Simplified35.8%
Taylor expanded in y4 around inf 45.9%
Taylor expanded in y3 around -inf 43.9%
if 1.65000000000000016e-272 < b < 8.2000000000000005e105Initial program 28.4%
associate-+l-28.4%
Simplified28.4%
Taylor expanded in c around inf 58.0%
associate--l+58.0%
mul-1-neg58.0%
Simplified58.0%
Taylor expanded in y2 around inf 53.9%
if 8.2000000000000005e105 < b < 1.1e237Initial program 28.1%
associate-+l-28.1%
Simplified28.1%
Taylor expanded in y4 around inf 35.1%
Taylor expanded in t around inf 59.9%
Final simplification51.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j)))))
(t_2 (* y4 (* y3 (- (* y c) (* j y1))))))
(if (<= b -9.8e+43)
t_1
(if (<= b -7e-134)
(* c (+ (* i (- (* z t) (* x y))) (* y2 (- (* x y0) (* t y4)))))
(if (<= b 1.02e-269)
t_2
(if (<= b 9e+40)
(*
c
(- (* y0 (- (* x y2) (* z y3))) (- (* y4 (* t y2)) (* (* z t) i))))
(if (<= b 3.2e+118)
t_2
(if (<= b 9.2e+237) (* y4 (* t (- (* b j) (* c y2)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -9.8e+43) {
tmp = t_1;
} else if (b <= -7e-134) {
tmp = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 1.02e-269) {
tmp = t_2;
} else if (b <= 9e+40) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) - ((y4 * (t * y2)) - ((z * t) * i)));
} else if (b <= 3.2e+118) {
tmp = t_2;
} else if (b <= 9.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
t_2 = y4 * (y3 * ((y * c) - (j * y1)))
if (b <= (-9.8d+43)) then
tmp = t_1
else if (b <= (-7d-134)) then
tmp = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4))))
else if (b <= 1.02d-269) then
tmp = t_2
else if (b <= 9d+40) then
tmp = c * ((y0 * ((x * y2) - (z * y3))) - ((y4 * (t * y2)) - ((z * t) * i)))
else if (b <= 3.2d+118) then
tmp = t_2
else if (b <= 9.2d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -9.8e+43) {
tmp = t_1;
} else if (b <= -7e-134) {
tmp = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4))));
} else if (b <= 1.02e-269) {
tmp = t_2;
} else if (b <= 9e+40) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) - ((y4 * (t * y2)) - ((z * t) * i)));
} else if (b <= 3.2e+118) {
tmp = t_2;
} else if (b <= 9.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) t_2 = y4 * (y3 * ((y * c) - (j * y1))) tmp = 0 if b <= -9.8e+43: tmp = t_1 elif b <= -7e-134: tmp = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4)))) elif b <= 1.02e-269: tmp = t_2 elif b <= 9e+40: tmp = c * ((y0 * ((x * y2) - (z * y3))) - ((y4 * (t * y2)) - ((z * t) * i))) elif b <= 3.2e+118: tmp = t_2 elif b <= 9.2e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))) tmp = 0.0 if (b <= -9.8e+43) tmp = t_1; elseif (b <= -7e-134) tmp = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))))); elseif (b <= 1.02e-269) tmp = t_2; elseif (b <= 9e+40) tmp = Float64(c * Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) - Float64(Float64(y4 * Float64(t * y2)) - Float64(Float64(z * t) * i)))); elseif (b <= 3.2e+118) tmp = t_2; elseif (b <= 9.2e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); t_2 = y4 * (y3 * ((y * c) - (j * y1))); tmp = 0.0; if (b <= -9.8e+43) tmp = t_1; elseif (b <= -7e-134) tmp = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4)))); elseif (b <= 1.02e-269) tmp = t_2; elseif (b <= 9e+40) tmp = c * ((y0 * ((x * y2) - (z * y3))) - ((y4 * (t * y2)) - ((z * t) * i))); elseif (b <= 3.2e+118) tmp = t_2; elseif (b <= 9.2e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.8e+43], t$95$1, If[LessEqual[b, -7e-134], N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.02e-269], t$95$2, If[LessEqual[b, 9e+40], N[(c * N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * N[(t * y2), $MachinePrecision]), $MachinePrecision] - N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+118], t$95$2, If[LessEqual[b, 9.2e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;b \leq -9.8 \cdot 10^{+43}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-134}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{-269}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 9 \cdot 10^{+40}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) - \left(y4 \cdot \left(t \cdot y2\right) - \left(z \cdot t\right) \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -9.7999999999999999e43 or 9.19999999999999981e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -9.7999999999999999e43 < b < -6.9999999999999997e-134Initial program 42.4%
associate-+l-42.4%
Simplified42.4%
Taylor expanded in c around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in y2 around inf 40.1%
Taylor expanded in y3 around 0 43.4%
+-commutative43.4%
associate--r+43.4%
associate-*r*46.4%
*-commutative46.4%
cancel-sign-sub-inv46.4%
associate-*r*46.4%
neg-mul-146.4%
*-commutative46.4%
distribute-rgt-in46.4%
mul-1-neg46.4%
sub-neg46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
if -6.9999999999999997e-134 < b < 1.02000000000000002e-269 or 9.00000000000000064e40 < b < 3.20000000000000016e118Initial program 37.5%
associate-+l-37.5%
Simplified37.5%
Taylor expanded in y4 around inf 45.9%
Taylor expanded in y3 around -inf 49.3%
if 1.02000000000000002e-269 < b < 9.00000000000000064e40Initial program 24.8%
associate-+l-24.8%
Simplified24.8%
Taylor expanded in c around inf 58.7%
associate--l+58.7%
mul-1-neg58.7%
Simplified58.7%
Taylor expanded in y around 0 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
if 3.20000000000000016e118 < b < 9.19999999999999981e237Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y4 around inf 40.1%
Taylor expanded in t around inf 64.8%
Final simplification51.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))))
(t_2 (* y4 (* c (- (* y y3) (* t y2))))))
(if (<= y1 -6.8e+74)
t_1
(if (<= y1 -8.2e-125)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= y1 -3.5e-238)
t_2
(if (<= y1 -2.6e-295)
(* y4 (* b (- (* t j) (* y k))))
(if (<= y1 1.8e-260)
t_2
(if (<= y1 2.6e-219)
(* c (* i (- (* z t) (* x y))))
(if (<= y1 1.3e-57)
t_2
(if (<= y1 6.8e+93)
(* y4 (* j (- (* t b) (* y1 y3))))
(if (<= y1 5.8e+121)
(* y2 (* a (- (* t y5) (* x y1))))
t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) * ((x * j) - (z * k));
double t_2 = y4 * (c * ((y * y3) - (t * y2)));
double tmp;
if (y1 <= -6.8e+74) {
tmp = t_1;
} else if (y1 <= -8.2e-125) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y1 <= -3.5e-238) {
tmp = t_2;
} else if (y1 <= -2.6e-295) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (y1 <= 1.8e-260) {
tmp = t_2;
} else if (y1 <= 2.6e-219) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y1 <= 1.3e-57) {
tmp = t_2;
} else if (y1 <= 6.8e+93) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (y1 <= 5.8e+121) {
tmp = y2 * (a * ((t * y5) - (x * y1)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (i * y1) * ((x * j) - (z * k))
t_2 = y4 * (c * ((y * y3) - (t * y2)))
if (y1 <= (-6.8d+74)) then
tmp = t_1
else if (y1 <= (-8.2d-125)) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (y1 <= (-3.5d-238)) then
tmp = t_2
else if (y1 <= (-2.6d-295)) then
tmp = y4 * (b * ((t * j) - (y * k)))
else if (y1 <= 1.8d-260) then
tmp = t_2
else if (y1 <= 2.6d-219) then
tmp = c * (i * ((z * t) - (x * y)))
else if (y1 <= 1.3d-57) then
tmp = t_2
else if (y1 <= 6.8d+93) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else if (y1 <= 5.8d+121) then
tmp = y2 * (a * ((t * y5) - (x * y1)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) * ((x * j) - (z * k));
double t_2 = y4 * (c * ((y * y3) - (t * y2)));
double tmp;
if (y1 <= -6.8e+74) {
tmp = t_1;
} else if (y1 <= -8.2e-125) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (y1 <= -3.5e-238) {
tmp = t_2;
} else if (y1 <= -2.6e-295) {
tmp = y4 * (b * ((t * j) - (y * k)));
} else if (y1 <= 1.8e-260) {
tmp = t_2;
} else if (y1 <= 2.6e-219) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y1 <= 1.3e-57) {
tmp = t_2;
} else if (y1 <= 6.8e+93) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (y1 <= 5.8e+121) {
tmp = y2 * (a * ((t * y5) - (x * y1)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) * ((x * j) - (z * k)) t_2 = y4 * (c * ((y * y3) - (t * y2))) tmp = 0 if y1 <= -6.8e+74: tmp = t_1 elif y1 <= -8.2e-125: tmp = y4 * (t * ((b * j) - (c * y2))) elif y1 <= -3.5e-238: tmp = t_2 elif y1 <= -2.6e-295: tmp = y4 * (b * ((t * j) - (y * k))) elif y1 <= 1.8e-260: tmp = t_2 elif y1 <= 2.6e-219: tmp = c * (i * ((z * t) - (x * y))) elif y1 <= 1.3e-57: tmp = t_2 elif y1 <= 6.8e+93: tmp = y4 * (j * ((t * b) - (y1 * y3))) elif y1 <= 5.8e+121: tmp = y2 * (a * ((t * y5) - (x * y1))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) * Float64(Float64(x * j) - Float64(z * k))) t_2 = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y1 <= -6.8e+74) tmp = t_1; elseif (y1 <= -8.2e-125) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y1 <= -3.5e-238) tmp = t_2; elseif (y1 <= -2.6e-295) tmp = Float64(y4 * Float64(b * Float64(Float64(t * j) - Float64(y * k)))); elseif (y1 <= 1.8e-260) tmp = t_2; elseif (y1 <= 2.6e-219) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (y1 <= 1.3e-57) tmp = t_2; elseif (y1 <= 6.8e+93) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (y1 <= 5.8e+121) tmp = Float64(y2 * Float64(a * Float64(Float64(t * y5) - Float64(x * y1)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) * ((x * j) - (z * k)); t_2 = y4 * (c * ((y * y3) - (t * y2))); tmp = 0.0; if (y1 <= -6.8e+74) tmp = t_1; elseif (y1 <= -8.2e-125) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (y1 <= -3.5e-238) tmp = t_2; elseif (y1 <= -2.6e-295) tmp = y4 * (b * ((t * j) - (y * k))); elseif (y1 <= 1.8e-260) tmp = t_2; elseif (y1 <= 2.6e-219) tmp = c * (i * ((z * t) - (x * y))); elseif (y1 <= 1.3e-57) tmp = t_2; elseif (y1 <= 6.8e+93) tmp = y4 * (j * ((t * b) - (y1 * y3))); elseif (y1 <= 5.8e+121) tmp = y2 * (a * ((t * y5) - (x * y1))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -6.8e+74], t$95$1, If[LessEqual[y1, -8.2e-125], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -3.5e-238], t$95$2, If[LessEqual[y1, -2.6e-295], N[(y4 * N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e-260], t$95$2, If[LessEqual[y1, 2.6e-219], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.3e-57], t$95$2, If[LessEqual[y1, 6.8e+93], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 5.8e+121], N[(y2 * N[(a * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot y1\right) \cdot \left(x \cdot j - z \cdot k\right)\\
t_2 := y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y1 \leq -6.8 \cdot 10^{+74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y1 \leq -8.2 \cdot 10^{-125}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y1 \leq -3.5 \cdot 10^{-238}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y1 \leq -2.6 \cdot 10^{-295}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-260}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y1 \leq 2.6 \cdot 10^{-219}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;y1 \leq 1.3 \cdot 10^{-57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y1 \leq 6.8 \cdot 10^{+93}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;y1 \leq 5.8 \cdot 10^{+121}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y1 < -6.7999999999999998e74 or 5.7999999999999998e121 < y1 Initial program 21.1%
+-commutative21.1%
fma-def21.1%
Simplified28.5%
Taylor expanded in y1 around inf 50.2%
mul-1-neg50.2%
mul-1-neg50.2%
sub-neg50.2%
Simplified50.2%
Taylor expanded in i around inf 42.1%
associate-*r*44.4%
*-commutative44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
if -6.7999999999999998e74 < y1 < -8.1999999999999995e-125Initial program 36.4%
associate-+l-36.4%
Simplified36.4%
Taylor expanded in y4 around inf 43.9%
Taylor expanded in t around inf 46.3%
if -8.1999999999999995e-125 < y1 < -3.49999999999999997e-238 or -2.59999999999999985e-295 < y1 < 1.8e-260 or 2.60000000000000002e-219 < y1 < 1.29999999999999993e-57Initial program 35.0%
associate-+l-35.0%
Simplified35.0%
Taylor expanded in y4 around inf 47.5%
Taylor expanded in c around inf 49.5%
*-commutative49.5%
*-commutative49.5%
Simplified49.5%
if -3.49999999999999997e-238 < y1 < -2.59999999999999985e-295Initial program 14.3%
associate-+l-14.3%
Simplified14.3%
Taylor expanded in y4 around inf 28.6%
Taylor expanded in b around inf 72.2%
if 1.8e-260 < y1 < 2.60000000000000002e-219Initial program 36.4%
associate-+l-36.4%
Simplified36.4%
Taylor expanded in c around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in i around inf 56.0%
*-commutative56.0%
*-commutative56.0%
Simplified56.0%
if 1.29999999999999993e-57 < y1 < 6.8000000000000001e93Initial program 31.6%
associate-+l-31.6%
Simplified31.6%
Taylor expanded in y4 around inf 37.6%
Taylor expanded in j around inf 46.1%
*-commutative46.1%
mul-1-neg46.1%
sub-neg46.1%
*-commutative46.1%
Simplified46.1%
if 6.8000000000000001e93 < y1 < 5.7999999999999998e121Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in a around inf 55.6%
associate--l+55.6%
mul-1-neg55.6%
mul-1-neg55.6%
Simplified55.6%
Taylor expanded in y2 around inf 89.0%
associate-*r*89.0%
*-commutative89.0%
Simplified89.0%
Final simplification49.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j)))))
(t_2 (* c (- (* y0 (* x y2)) (* t (- (* y2 y4) (* z i))))))
(t_3 (* y4 (* y3 (- (* y c) (* j y1))))))
(if (<= b -6.8e+43)
t_1
(if (<= b -3.1e-97)
t_2
(if (<= b 2.6e-272)
t_3
(if (<= b 1.9e-177)
t_2
(if (<= b 1.55e-116)
(* a (* z (- (* y1 y3) (* t b))))
(if (<= b 6.4e+32)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 1.55e+98)
t_3
(if (<= b 3e+116)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= b 4.6e+237)
(* y4 (* t (- (* b j) (* c y2))))
t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))));
double t_3 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -6.8e+43) {
tmp = t_1;
} else if (b <= -3.1e-97) {
tmp = t_2;
} else if (b <= 2.6e-272) {
tmp = t_3;
} else if (b <= 1.9e-177) {
tmp = t_2;
} else if (b <= 1.55e-116) {
tmp = a * (z * ((y1 * y3) - (t * b)));
} else if (b <= 6.4e+32) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.55e+98) {
tmp = t_3;
} else if (b <= 3e+116) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= 4.6e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
t_2 = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))))
t_3 = y4 * (y3 * ((y * c) - (j * y1)))
if (b <= (-6.8d+43)) then
tmp = t_1
else if (b <= (-3.1d-97)) then
tmp = t_2
else if (b <= 2.6d-272) then
tmp = t_3
else if (b <= 1.9d-177) then
tmp = t_2
else if (b <= 1.55d-116) then
tmp = a * (z * ((y1 * y3) - (t * b)))
else if (b <= 6.4d+32) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 1.55d+98) then
tmp = t_3
else if (b <= 3d+116) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (b <= 4.6d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))));
double t_3 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -6.8e+43) {
tmp = t_1;
} else if (b <= -3.1e-97) {
tmp = t_2;
} else if (b <= 2.6e-272) {
tmp = t_3;
} else if (b <= 1.9e-177) {
tmp = t_2;
} else if (b <= 1.55e-116) {
tmp = a * (z * ((y1 * y3) - (t * b)));
} else if (b <= 6.4e+32) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.55e+98) {
tmp = t_3;
} else if (b <= 3e+116) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= 4.6e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) t_2 = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i)))) t_3 = y4 * (y3 * ((y * c) - (j * y1))) tmp = 0 if b <= -6.8e+43: tmp = t_1 elif b <= -3.1e-97: tmp = t_2 elif b <= 2.6e-272: tmp = t_3 elif b <= 1.9e-177: tmp = t_2 elif b <= 1.55e-116: tmp = a * (z * ((y1 * y3) - (t * b))) elif b <= 6.4e+32: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 1.55e+98: tmp = t_3 elif b <= 3e+116: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif b <= 4.6e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(c * Float64(Float64(y0 * Float64(x * y2)) - Float64(t * Float64(Float64(y2 * y4) - Float64(z * i))))) t_3 = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))) tmp = 0.0 if (b <= -6.8e+43) tmp = t_1; elseif (b <= -3.1e-97) tmp = t_2; elseif (b <= 2.6e-272) tmp = t_3; elseif (b <= 1.9e-177) tmp = t_2; elseif (b <= 1.55e-116) tmp = Float64(a * Float64(z * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 6.4e+32) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 1.55e+98) tmp = t_3; elseif (b <= 3e+116) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (b <= 4.6e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); t_2 = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i)))); t_3 = y4 * (y3 * ((y * c) - (j * y1))); tmp = 0.0; if (b <= -6.8e+43) tmp = t_1; elseif (b <= -3.1e-97) tmp = t_2; elseif (b <= 2.6e-272) tmp = t_3; elseif (b <= 1.9e-177) tmp = t_2; elseif (b <= 1.55e-116) tmp = a * (z * ((y1 * y3) - (t * b))); elseif (b <= 6.4e+32) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 1.55e+98) tmp = t_3; elseif (b <= 3e+116) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (b <= 4.6e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.8e+43], t$95$1, If[LessEqual[b, -3.1e-97], t$95$2, If[LessEqual[b, 2.6e-272], t$95$3, If[LessEqual[b, 1.9e-177], t$95$2, If[LessEqual[b, 1.55e-116], N[(a * N[(z * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+32], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e+98], t$95$3, If[LessEqual[b, 3e+116], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := c \cdot \left(y0 \cdot \left(x \cdot y2\right) - t \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
t_3 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;b \leq -6.8 \cdot 10^{+43}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{-97}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-272}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-177}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-116}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+32}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+98}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+116}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -6.80000000000000024e43 or 4.59999999999999991e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -6.80000000000000024e43 < b < -3.10000000000000002e-97 or 2.59999999999999992e-272 < b < 1.90000000000000002e-177Initial program 35.1%
associate-+l-35.1%
Simplified35.1%
Taylor expanded in c around inf 47.9%
associate--l+47.9%
mul-1-neg47.9%
Simplified47.9%
Taylor expanded in y2 around inf 48.1%
Taylor expanded in y around 0 43.6%
associate-*r*43.6%
*-commutative43.6%
associate-*r*43.6%
associate-*r*43.6%
*-commutative43.6%
associate-*r*46.1%
distribute-rgt-in48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
if -3.10000000000000002e-97 < b < 2.59999999999999992e-272 or 6.3999999999999998e32 < b < 1.5500000000000001e98Initial program 37.0%
associate-+l-37.0%
Simplified37.0%
Taylor expanded in y4 around inf 46.8%
Taylor expanded in y3 around -inf 48.5%
if 1.90000000000000002e-177 < b < 1.55000000000000009e-116Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in a around inf 38.2%
associate--l+38.2%
mul-1-neg38.2%
mul-1-neg38.2%
Simplified38.2%
Taylor expanded in z around inf 45.2%
cancel-sign-sub-inv45.2%
metadata-eval45.2%
*-lft-identity45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
Simplified45.2%
if 1.55000000000000009e-116 < b < 6.3999999999999998e32Initial program 33.8%
associate-+l-33.8%
Simplified33.8%
Taylor expanded in c around inf 62.9%
associate--l+62.9%
mul-1-neg62.9%
Simplified62.9%
Taylor expanded in y0 around -inf 54.8%
if 1.5500000000000001e98 < b < 2.9999999999999999e116Initial program 39.7%
+-commutative39.7%
fma-def39.7%
Simplified59.7%
Taylor expanded in y1 around inf 44.9%
mul-1-neg44.9%
mul-1-neg44.9%
sub-neg44.9%
Simplified44.9%
Taylor expanded in j around inf 62.4%
associate-*r*80.3%
mul-1-neg80.3%
unsub-neg80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
if 2.9999999999999999e116 < b < 4.59999999999999991e237Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y4 around inf 40.1%
Taylor expanded in t around inf 64.8%
Final simplification52.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* y3 (- (* y c) (* j y1)))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -2e+44)
t_2
(if (<= b -2.8e-132)
(* c (- (* x (* y0 y2)) (* i (- (* x y) (* z t)))))
(if (<= b 1.7e-271)
t_1
(if (<= b 7e-178)
(* c (- (* y0 (* x y2)) (* t (- (* y2 y4) (* z i)))))
(if (<= b 2.3e-116)
(* a (* z (- (* y1 y3) (* t b))))
(if (<= b 1.1e+34)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 1.5e+100)
t_1
(if (<= b 6.5e+117)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= b 2.4e+237)
(* y4 (* t (- (* b j) (* c 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 = y4 * (y3 * ((y * c) - (j * y1)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -2e+44) {
tmp = t_2;
} else if (b <= -2.8e-132) {
tmp = c * ((x * (y0 * y2)) - (i * ((x * y) - (z * t))));
} else if (b <= 1.7e-271) {
tmp = t_1;
} else if (b <= 7e-178) {
tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))));
} else if (b <= 2.3e-116) {
tmp = a * (z * ((y1 * y3) - (t * b)));
} else if (b <= 1.1e+34) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.5e+100) {
tmp = t_1;
} else if (b <= 6.5e+117) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= 2.4e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y4 * (y3 * ((y * c) - (j * y1)))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-2d+44)) then
tmp = t_2
else if (b <= (-2.8d-132)) then
tmp = c * ((x * (y0 * y2)) - (i * ((x * y) - (z * t))))
else if (b <= 1.7d-271) then
tmp = t_1
else if (b <= 7d-178) then
tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))))
else if (b <= 2.3d-116) then
tmp = a * (z * ((y1 * y3) - (t * b)))
else if (b <= 1.1d+34) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 1.5d+100) then
tmp = t_1
else if (b <= 6.5d+117) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (b <= 2.4d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (y3 * ((y * c) - (j * y1)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -2e+44) {
tmp = t_2;
} else if (b <= -2.8e-132) {
tmp = c * ((x * (y0 * y2)) - (i * ((x * y) - (z * t))));
} else if (b <= 1.7e-271) {
tmp = t_1;
} else if (b <= 7e-178) {
tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i))));
} else if (b <= 2.3e-116) {
tmp = a * (z * ((y1 * y3) - (t * b)));
} else if (b <= 1.1e+34) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.5e+100) {
tmp = t_1;
} else if (b <= 6.5e+117) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= 2.4e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (y3 * ((y * c) - (j * y1))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -2e+44: tmp = t_2 elif b <= -2.8e-132: tmp = c * ((x * (y0 * y2)) - (i * ((x * y) - (z * t)))) elif b <= 1.7e-271: tmp = t_1 elif b <= 7e-178: tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i)))) elif b <= 2.3e-116: tmp = a * (z * ((y1 * y3) - (t * b))) elif b <= 1.1e+34: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 1.5e+100: tmp = t_1 elif b <= 6.5e+117: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif b <= 2.4e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -2e+44) tmp = t_2; elseif (b <= -2.8e-132) tmp = Float64(c * Float64(Float64(x * Float64(y0 * y2)) - Float64(i * Float64(Float64(x * y) - Float64(z * t))))); elseif (b <= 1.7e-271) tmp = t_1; elseif (b <= 7e-178) tmp = Float64(c * Float64(Float64(y0 * Float64(x * y2)) - Float64(t * Float64(Float64(y2 * y4) - Float64(z * i))))); elseif (b <= 2.3e-116) tmp = Float64(a * Float64(z * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 1.1e+34) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 1.5e+100) tmp = t_1; elseif (b <= 6.5e+117) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (b <= 2.4e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * (y3 * ((y * c) - (j * y1))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -2e+44) tmp = t_2; elseif (b <= -2.8e-132) tmp = c * ((x * (y0 * y2)) - (i * ((x * y) - (z * t)))); elseif (b <= 1.7e-271) tmp = t_1; elseif (b <= 7e-178) tmp = c * ((y0 * (x * y2)) - (t * ((y2 * y4) - (z * i)))); elseif (b <= 2.3e-116) tmp = a * (z * ((y1 * y3) - (t * b))); elseif (b <= 1.1e+34) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 1.5e+100) tmp = t_1; elseif (b <= 6.5e+117) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (b <= 2.4e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+44], t$95$2, If[LessEqual[b, -2.8e-132], N[(c * N[(N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-271], t$95$1, If[LessEqual[b, 7e-178], N[(c * N[(N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-116], N[(a * N[(z * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e+34], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+100], t$95$1, If[LessEqual[b, 6.5e+117], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -2 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-132}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right) - i \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-178}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right) - t \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-116}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+34}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+117}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.0000000000000002e44 or 2.3999999999999999e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -2.0000000000000002e44 < b < -2.80000000000000002e-132Initial program 42.4%
associate-+l-42.4%
Simplified42.4%
Taylor expanded in c around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in y4 around 0 46.0%
Taylor expanded in y3 around 0 43.5%
*-commutative43.5%
associate-*r*43.5%
*-commutative43.5%
*-commutative43.5%
Simplified43.5%
if -2.80000000000000002e-132 < b < 1.7e-271 or 1.1000000000000001e34 < b < 1.49999999999999993e100Initial program 38.0%
associate-+l-38.0%
Simplified38.0%
Taylor expanded in y4 around inf 48.9%
Taylor expanded in y3 around -inf 50.9%
if 1.7e-271 < b < 6.99999999999999966e-178Initial program 14.6%
associate-+l-14.6%
Simplified14.6%
Taylor expanded in c around inf 50.0%
associate--l+50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in y2 around inf 57.5%
Taylor expanded in y around 0 58.0%
associate-*r*58.0%
*-commutative58.0%
associate-*r*57.9%
associate-*r*57.9%
*-commutative57.9%
associate-*r*57.9%
distribute-rgt-in57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if 6.99999999999999966e-178 < b < 2.30000000000000002e-116Initial program 18.8%
associate-+l-18.8%
Simplified18.8%
Taylor expanded in a around inf 38.2%
associate--l+38.2%
mul-1-neg38.2%
mul-1-neg38.2%
Simplified38.2%
Taylor expanded in z around inf 45.2%
cancel-sign-sub-inv45.2%
metadata-eval45.2%
*-lft-identity45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
Simplified45.2%
if 2.30000000000000002e-116 < b < 1.1000000000000001e34Initial program 33.8%
associate-+l-33.8%
Simplified33.8%
Taylor expanded in c around inf 62.9%
associate--l+62.9%
mul-1-neg62.9%
Simplified62.9%
Taylor expanded in y0 around -inf 54.8%
if 1.49999999999999993e100 < b < 6.5000000000000004e117Initial program 39.7%
+-commutative39.7%
fma-def39.7%
Simplified59.7%
Taylor expanded in y1 around inf 44.9%
mul-1-neg44.9%
mul-1-neg44.9%
sub-neg44.9%
Simplified44.9%
Taylor expanded in j around inf 62.4%
associate-*r*80.3%
mul-1-neg80.3%
unsub-neg80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
if 6.5000000000000004e117 < b < 2.3999999999999999e237Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y4 around inf 40.1%
Taylor expanded in t around inf 64.8%
Final simplification52.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (- (* y0 (- (* x y2) (* z y3))) (* i (- (* x y) (* z t))))))
(t_2 (* y0 (* b (- (* z k) (* x j)))))
(t_3 (* y4 (* y3 (- (* y c) (* j y1))))))
(if (<= b -2.55e+44)
t_2
(if (<= b -1.15e-135)
t_1
(if (<= b 1.4e-269)
t_3
(if (<= b 1.05e-26)
t_1
(if (<= b 1.02e+50)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= b 6e+117)
t_3
(if (<= b 5.3e+237)
(* y4 (* t (- (* b j) (* c 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 = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t))));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -2.55e+44) {
tmp = t_2;
} else if (b <= -1.15e-135) {
tmp = t_1;
} else if (b <= 1.4e-269) {
tmp = t_3;
} else if (b <= 1.05e-26) {
tmp = t_1;
} else if (b <= 1.02e+50) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 6e+117) {
tmp = t_3;
} else if (b <= 5.3e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t))))
t_2 = y0 * (b * ((z * k) - (x * j)))
t_3 = y4 * (y3 * ((y * c) - (j * y1)))
if (b <= (-2.55d+44)) then
tmp = t_2
else if (b <= (-1.15d-135)) then
tmp = t_1
else if (b <= 1.4d-269) then
tmp = t_3
else if (b <= 1.05d-26) then
tmp = t_1
else if (b <= 1.02d+50) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (b <= 6d+117) then
tmp = t_3
else if (b <= 5.3d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t))));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -2.55e+44) {
tmp = t_2;
} else if (b <= -1.15e-135) {
tmp = t_1;
} else if (b <= 1.4e-269) {
tmp = t_3;
} else if (b <= 1.05e-26) {
tmp = t_1;
} else if (b <= 1.02e+50) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 6e+117) {
tmp = t_3;
} else if (b <= 5.3e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t)))) t_2 = y0 * (b * ((z * k) - (x * j))) t_3 = y4 * (y3 * ((y * c) - (j * y1))) tmp = 0 if b <= -2.55e+44: tmp = t_2 elif b <= -1.15e-135: tmp = t_1 elif b <= 1.4e-269: tmp = t_3 elif b <= 1.05e-26: tmp = t_1 elif b <= 1.02e+50: tmp = c * (y3 * ((y * y4) - (z * y0))) elif b <= 6e+117: tmp = t_3 elif b <= 5.3e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) - Float64(i * Float64(Float64(x * y) - Float64(z * t))))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_3 = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))) tmp = 0.0 if (b <= -2.55e+44) tmp = t_2; elseif (b <= -1.15e-135) tmp = t_1; elseif (b <= 1.4e-269) tmp = t_3; elseif (b <= 1.05e-26) tmp = t_1; elseif (b <= 1.02e+50) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (b <= 6e+117) tmp = t_3; elseif (b <= 5.3e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * ((y0 * ((x * y2) - (z * y3))) - (i * ((x * y) - (z * t)))); t_2 = y0 * (b * ((z * k) - (x * j))); t_3 = y4 * (y3 * ((y * c) - (j * y1))); tmp = 0.0; if (b <= -2.55e+44) tmp = t_2; elseif (b <= -1.15e-135) tmp = t_1; elseif (b <= 1.4e-269) tmp = t_3; elseif (b <= 1.05e-26) tmp = t_1; elseif (b <= 1.02e+50) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (b <= 6e+117) tmp = t_3; elseif (b <= 5.3e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.55e+44], t$95$2, If[LessEqual[b, -1.15e-135], t$95$1, If[LessEqual[b, 1.4e-269], t$95$3, If[LessEqual[b, 1.05e-26], t$95$1, If[LessEqual[b, 1.02e+50], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+117], t$95$3, If[LessEqual[b, 5.3e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) - i \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_3 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;b \leq -2.55 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-269}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{+50}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+117}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.55e44 or 5.30000000000000032e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -2.55e44 < b < -1.15e-135 or 1.39999999999999997e-269 < b < 1.05000000000000004e-26Initial program 29.0%
associate-+l-29.0%
Simplified29.0%
Taylor expanded in c around inf 51.1%
associate--l+51.1%
mul-1-neg51.1%
Simplified51.1%
Taylor expanded in y4 around 0 44.7%
if -1.15e-135 < b < 1.39999999999999997e-269 or 1.01999999999999991e50 < b < 6e117Initial program 37.3%
associate-+l-37.3%
Simplified37.3%
Taylor expanded in y4 around inf 43.0%
Taylor expanded in y3 around -inf 46.7%
if 1.05000000000000004e-26 < b < 1.01999999999999991e50Initial program 44.4%
associate-+l-44.4%
Simplified44.4%
Taylor expanded in c around inf 61.1%
associate--l+61.1%
mul-1-neg61.1%
Simplified61.1%
Taylor expanded in y3 around inf 67.4%
distribute-lft-out--67.4%
mul-1-neg67.4%
distribute-rgt-neg-in67.4%
*-commutative67.4%
Simplified67.4%
if 6e117 < b < 5.30000000000000032e237Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y4 around inf 40.1%
Taylor expanded in t around inf 64.8%
Final simplification50.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (+ (* i (- (* z t) (* x y))) (* y2 (- (* x y0) (* t y4))))))
(t_2 (* y0 (* b (- (* z k) (* x j)))))
(t_3 (* y4 (* y3 (- (* y c) (* j y1))))))
(if (<= b -2.3e+44)
t_2
(if (<= b -2.5e-135)
t_1
(if (<= b 4e-278)
t_3
(if (<= b 4.2e+41)
t_1
(if (<= b 2.5e+117)
t_3
(if (<= b 1.2e+239) (* y4 (* t (- (* b j) (* c 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 = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4))));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -2.3e+44) {
tmp = t_2;
} else if (b <= -2.5e-135) {
tmp = t_1;
} else if (b <= 4e-278) {
tmp = t_3;
} else if (b <= 4.2e+41) {
tmp = t_1;
} else if (b <= 2.5e+117) {
tmp = t_3;
} else if (b <= 1.2e+239) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4))))
t_2 = y0 * (b * ((z * k) - (x * j)))
t_3 = y4 * (y3 * ((y * c) - (j * y1)))
if (b <= (-2.3d+44)) then
tmp = t_2
else if (b <= (-2.5d-135)) then
tmp = t_1
else if (b <= 4d-278) then
tmp = t_3
else if (b <= 4.2d+41) then
tmp = t_1
else if (b <= 2.5d+117) then
tmp = t_3
else if (b <= 1.2d+239) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4))));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -2.3e+44) {
tmp = t_2;
} else if (b <= -2.5e-135) {
tmp = t_1;
} else if (b <= 4e-278) {
tmp = t_3;
} else if (b <= 4.2e+41) {
tmp = t_1;
} else if (b <= 2.5e+117) {
tmp = t_3;
} else if (b <= 1.2e+239) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4)))) t_2 = y0 * (b * ((z * k) - (x * j))) t_3 = y4 * (y3 * ((y * c) - (j * y1))) tmp = 0 if b <= -2.3e+44: tmp = t_2 elif b <= -2.5e-135: tmp = t_1 elif b <= 4e-278: tmp = t_3 elif b <= 4.2e+41: tmp = t_1 elif b <= 2.5e+117: tmp = t_3 elif b <= 1.2e+239: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(i * Float64(Float64(z * t) - Float64(x * y))) + Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4))))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_3 = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))) tmp = 0.0 if (b <= -2.3e+44) tmp = t_2; elseif (b <= -2.5e-135) tmp = t_1; elseif (b <= 4e-278) tmp = t_3; elseif (b <= 4.2e+41) tmp = t_1; elseif (b <= 2.5e+117) tmp = t_3; elseif (b <= 1.2e+239) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * ((i * ((z * t) - (x * y))) + (y2 * ((x * y0) - (t * y4)))); t_2 = y0 * (b * ((z * k) - (x * j))); t_3 = y4 * (y3 * ((y * c) - (j * y1))); tmp = 0.0; if (b <= -2.3e+44) tmp = t_2; elseif (b <= -2.5e-135) tmp = t_1; elseif (b <= 4e-278) tmp = t_3; elseif (b <= 4.2e+41) tmp = t_1; elseif (b <= 2.5e+117) tmp = t_3; elseif (b <= 1.2e+239) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.3e+44], t$95$2, If[LessEqual[b, -2.5e-135], t$95$1, If[LessEqual[b, 4e-278], t$95$3, If[LessEqual[b, 4.2e+41], t$95$1, If[LessEqual[b, 2.5e+117], t$95$3, If[LessEqual[b, 1.2e+239], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right) + y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_3 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;b \leq -2.3 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-278}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+117}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+239}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.30000000000000004e44 or 1.2e239 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -2.30000000000000004e44 < b < -2.5000000000000001e-135 or 3.99999999999999975e-278 < b < 4.1999999999999999e41Initial program 32.0%
associate-+l-32.0%
Simplified32.0%
Taylor expanded in c around inf 51.5%
associate--l+51.5%
mul-1-neg51.5%
Simplified51.5%
Taylor expanded in y2 around inf 47.1%
Taylor expanded in y3 around 0 46.4%
+-commutative46.4%
associate--r+46.4%
associate-*r*46.4%
*-commutative46.4%
cancel-sign-sub-inv46.4%
associate-*r*48.6%
neg-mul-148.6%
*-commutative48.6%
distribute-rgt-in48.6%
mul-1-neg48.6%
sub-neg48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
if -2.5000000000000001e-135 < b < 3.99999999999999975e-278 or 4.1999999999999999e41 < b < 2.49999999999999992e117Initial program 37.1%
associate-+l-37.1%
Simplified37.1%
Taylor expanded in y4 around inf 44.2%
Taylor expanded in y3 around -inf 49.3%
if 2.49999999999999992e117 < b < 1.2e239Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y4 around inf 40.1%
Taylor expanded in t around inf 64.8%
Final simplification51.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i)))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -4.2e+44)
t_2
(if (<= b -1.02e-192)
t_1
(if (<= b -1.85e-281)
(* a (* z (- (* y1 y3) (* t b))))
(if (<= b 3.1e-289)
(* y4 (* c (- (* y y3) (* t y2))))
(if (<= b 1.45e-179)
(* y2 (* y1 (- (* k y4) (* x a))))
(if (<= b 1.26e-23)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 6.4e+98)
t_1
(if (<= b 4.6e+237)
(* y4 (* t (- (* b j) (* c 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 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -4.2e+44) {
tmp = t_2;
} else if (b <= -1.02e-192) {
tmp = t_1;
} else if (b <= -1.85e-281) {
tmp = a * (z * ((y1 * y3) - (t * b)));
} else if (b <= 3.1e-289) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (b <= 1.45e-179) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 1.26e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 6.4e+98) {
tmp = t_1;
} else if (b <= 4.6e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-4.2d+44)) then
tmp = t_2
else if (b <= (-1.02d-192)) then
tmp = t_1
else if (b <= (-1.85d-281)) then
tmp = a * (z * ((y1 * y3) - (t * b)))
else if (b <= 3.1d-289) then
tmp = y4 * (c * ((y * y3) - (t * y2)))
else if (b <= 1.45d-179) then
tmp = y2 * (y1 * ((k * y4) - (x * a)))
else if (b <= 1.26d-23) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 6.4d+98) then
tmp = t_1
else if (b <= 4.6d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -4.2e+44) {
tmp = t_2;
} else if (b <= -1.02e-192) {
tmp = t_1;
} else if (b <= -1.85e-281) {
tmp = a * (z * ((y1 * y3) - (t * b)));
} else if (b <= 3.1e-289) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (b <= 1.45e-179) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 1.26e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 6.4e+98) {
tmp = t_1;
} else if (b <= 4.6e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -4.2e+44: tmp = t_2 elif b <= -1.02e-192: tmp = t_1 elif b <= -1.85e-281: tmp = a * (z * ((y1 * y3) - (t * b))) elif b <= 3.1e-289: tmp = y4 * (c * ((y * y3) - (t * y2))) elif b <= 1.45e-179: tmp = y2 * (y1 * ((k * y4) - (x * a))) elif b <= 1.26e-23: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 6.4e+98: tmp = t_1 elif b <= 4.6e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -4.2e+44) tmp = t_2; elseif (b <= -1.02e-192) tmp = t_1; elseif (b <= -1.85e-281) tmp = Float64(a * Float64(z * Float64(Float64(y1 * y3) - Float64(t * b)))); elseif (b <= 3.1e-289) tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (b <= 1.45e-179) tmp = Float64(y2 * Float64(y1 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (b <= 1.26e-23) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 6.4e+98) tmp = t_1; elseif (b <= 4.6e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -4.2e+44) tmp = t_2; elseif (b <= -1.02e-192) tmp = t_1; elseif (b <= -1.85e-281) tmp = a * (z * ((y1 * y3) - (t * b))); elseif (b <= 3.1e-289) tmp = y4 * (c * ((y * y3) - (t * y2))); elseif (b <= 1.45e-179) tmp = y2 * (y1 * ((k * y4) - (x * a))); elseif (b <= 1.26e-23) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 6.4e+98) tmp = t_1; elseif (b <= 4.6e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+44], t$95$2, If[LessEqual[b, -1.02e-192], t$95$1, If[LessEqual[b, -1.85e-281], N[(a * N[(z * N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-289], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-179], N[(y2 * N[(y1 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.26e-23], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+98], t$95$1, If[LessEqual[b, 4.6e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.02 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{-281}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3 - t \cdot b\right)\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-289}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-179}:\\
\;\;\;\;y2 \cdot \left(y1 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 1.26 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.19999999999999974e44 or 4.59999999999999991e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -4.19999999999999974e44 < b < -1.02e-192 or 1.25999999999999996e-23 < b < 6.4000000000000005e98Initial program 39.1%
associate-+l-39.1%
Simplified39.1%
Taylor expanded in c around inf 46.8%
associate--l+46.8%
mul-1-neg46.8%
Simplified46.8%
Taylor expanded in y around -inf 44.1%
mul-1-neg44.1%
unsub-neg44.1%
*-commutative44.1%
*-commutative44.1%
Simplified44.1%
if -1.02e-192 < b < -1.84999999999999996e-281Initial program 44.7%
associate-+l-44.7%
Simplified44.7%
Taylor expanded in a around inf 44.9%
associate--l+44.9%
mul-1-neg44.9%
mul-1-neg44.9%
Simplified44.9%
Taylor expanded in z around inf 41.1%
cancel-sign-sub-inv41.1%
metadata-eval41.1%
*-lft-identity41.1%
+-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
*-commutative41.1%
Simplified41.1%
if -1.84999999999999996e-281 < b < 3.1e-289Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y4 around inf 56.5%
Taylor expanded in c around inf 56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
if 3.1e-289 < b < 1.4499999999999999e-179Initial program 26.6%
+-commutative26.6%
fma-def26.6%
Simplified26.6%
Taylor expanded in y1 around inf 53.1%
mul-1-neg53.1%
mul-1-neg53.1%
sub-neg53.1%
Simplified53.1%
Taylor expanded in y2 around inf 53.3%
associate-*r*53.3%
*-commutative53.3%
*-commutative53.3%
Simplified53.3%
if 1.4499999999999999e-179 < b < 1.25999999999999996e-23Initial program 23.7%
associate-+l-23.7%
Simplified23.7%
Taylor expanded in c around inf 60.4%
associate--l+60.4%
mul-1-neg60.4%
Simplified60.4%
Taylor expanded in y0 around -inf 44.3%
if 6.4000000000000005e98 < b < 4.59999999999999991e237Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in y4 around inf 34.1%
Taylor expanded in t around inf 58.1%
Final simplification48.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -1.8e+66)
t_1
(if (<= b -3e-158)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= b -1.05e-281)
(* (* a y1) (- (* z y3) (* x y2)))
(if (<= b 2e-289)
(* y4 (* c (- (* y y3) (* t y2))))
(if (<= b 3.4e-179)
(* y2 (* y1 (- (* k y4) (* x a))))
(if (<= b 1.3e-23)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 2.8e+101)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= b 2.05e+238)
(* y4 (* t (- (* b j) (* c y2))))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.8e+66) {
tmp = t_1;
} else if (b <= -3e-158) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= -1.05e-281) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (b <= 2e-289) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (b <= 3.4e-179) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 1.3e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 2.8e+101) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (b <= 2.05e+238) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-1.8d+66)) then
tmp = t_1
else if (b <= (-3d-158)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (b <= (-1.05d-281)) then
tmp = (a * y1) * ((z * y3) - (x * y2))
else if (b <= 2d-289) then
tmp = y4 * (c * ((y * y3) - (t * y2)))
else if (b <= 3.4d-179) then
tmp = y2 * (y1 * ((k * y4) - (x * a)))
else if (b <= 1.3d-23) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 2.8d+101) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (b <= 2.05d+238) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.8e+66) {
tmp = t_1;
} else if (b <= -3e-158) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= -1.05e-281) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (b <= 2e-289) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (b <= 3.4e-179) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 1.3e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 2.8e+101) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (b <= 2.05e+238) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -1.8e+66: tmp = t_1 elif b <= -3e-158: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif b <= -1.05e-281: tmp = (a * y1) * ((z * y3) - (x * y2)) elif b <= 2e-289: tmp = y4 * (c * ((y * y3) - (t * y2))) elif b <= 3.4e-179: tmp = y2 * (y1 * ((k * y4) - (x * a))) elif b <= 1.3e-23: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 2.8e+101: tmp = c * (y * ((y3 * y4) - (x * i))) elif b <= 2.05e+238: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -1.8e+66) tmp = t_1; elseif (b <= -3e-158) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (b <= -1.05e-281) tmp = Float64(Float64(a * y1) * Float64(Float64(z * y3) - Float64(x * y2))); elseif (b <= 2e-289) tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (b <= 3.4e-179) tmp = Float64(y2 * Float64(y1 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (b <= 1.3e-23) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 2.8e+101) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (b <= 2.05e+238) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -1.8e+66) tmp = t_1; elseif (b <= -3e-158) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (b <= -1.05e-281) tmp = (a * y1) * ((z * y3) - (x * y2)); elseif (b <= 2e-289) tmp = y4 * (c * ((y * y3) - (t * y2))); elseif (b <= 3.4e-179) tmp = y2 * (y1 * ((k * y4) - (x * a))); elseif (b <= 1.3e-23) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 2.8e+101) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (b <= 2.05e+238) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+66], t$95$1, If[LessEqual[b, -3e-158], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.05e-281], N[(N[(a * y1), $MachinePrecision] * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e-289], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-179], N[(y2 * N[(y1 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e-23], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e+101], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e+238], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-158}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-281}:\\
\;\;\;\;\left(a \cdot y1\right) \cdot \left(z \cdot y3 - x \cdot y2\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-289}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-179}:\\
\;\;\;\;y2 \cdot \left(y1 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{+101}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+238}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.8e66 or 2.0499999999999999e238 < b Initial program 20.9%
+-commutative20.9%
fma-def23.7%
*-commutative23.7%
*-commutative23.7%
Simplified27.9%
Taylor expanded in y0 around inf 39.5%
mul-1-neg39.5%
Simplified39.5%
Taylor expanded in b around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
if -1.8e66 < b < -3e-158Initial program 38.6%
+-commutative38.6%
fma-def38.6%
Simplified45.5%
Taylor expanded in y1 around inf 41.9%
mul-1-neg41.9%
mul-1-neg41.9%
sub-neg41.9%
Simplified41.9%
Taylor expanded in j around inf 33.6%
associate-*r*35.7%
mul-1-neg35.7%
unsub-neg35.7%
*-commutative35.7%
*-commutative35.7%
Simplified35.7%
if -3e-158 < b < -1.0499999999999999e-281Initial program 41.1%
+-commutative41.1%
fma-def41.2%
Simplified41.2%
Taylor expanded in y1 around inf 47.2%
mul-1-neg47.2%
mul-1-neg47.2%
sub-neg47.2%
Simplified47.2%
Taylor expanded in a around inf 50.7%
associate-*r*42.1%
*-commutative42.1%
*-commutative42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
if -1.0499999999999999e-281 < b < 2e-289Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y4 around inf 56.5%
Taylor expanded in c around inf 56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
if 2e-289 < b < 3.3999999999999997e-179Initial program 26.6%
+-commutative26.6%
fma-def26.6%
Simplified26.6%
Taylor expanded in y1 around inf 53.1%
mul-1-neg53.1%
mul-1-neg53.1%
sub-neg53.1%
Simplified53.1%
Taylor expanded in y2 around inf 53.3%
associate-*r*53.3%
*-commutative53.3%
*-commutative53.3%
Simplified53.3%
if 3.3999999999999997e-179 < b < 1.3e-23Initial program 23.7%
associate-+l-23.7%
Simplified23.7%
Taylor expanded in c around inf 60.4%
associate--l+60.4%
mul-1-neg60.4%
Simplified60.4%
Taylor expanded in y0 around -inf 44.3%
if 1.3e-23 < b < 2.79999999999999981e101Initial program 40.7%
associate-+l-40.7%
Simplified40.7%
Taylor expanded in c around inf 59.5%
associate--l+59.5%
mul-1-neg59.5%
Simplified59.5%
Taylor expanded in y around -inf 55.9%
mul-1-neg55.9%
unsub-neg55.9%
*-commutative55.9%
*-commutative55.9%
Simplified55.9%
if 2.79999999999999981e101 < b < 2.0499999999999999e238Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in y4 around inf 34.1%
Taylor expanded in t around inf 58.1%
Final simplification49.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j)))))
(t_2 (* y4 (* y3 (- (* y c) (* j y1))))))
(if (<= b -3.5e+44)
t_1
(if (<= b -1.7e-135)
(* c (* i (- (* z t) (* x y))))
(if (<= b 1.5e-289)
t_2
(if (<= b 3.9e-208)
(* y2 (* y1 (- (* k y4) (* x a))))
(if (<= b 3.75e-115)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= b 3e+37)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 3.3e+117)
t_2
(if (<= b 1.4e+238)
(* y4 (* t (- (* b j) (* c y2))))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -3.5e+44) {
tmp = t_1;
} else if (b <= -1.7e-135) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (b <= 1.5e-289) {
tmp = t_2;
} else if (b <= 3.9e-208) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 3.75e-115) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 3e+37) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 3.3e+117) {
tmp = t_2;
} else if (b <= 1.4e+238) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
t_2 = y4 * (y3 * ((y * c) - (j * y1)))
if (b <= (-3.5d+44)) then
tmp = t_1
else if (b <= (-1.7d-135)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (b <= 1.5d-289) then
tmp = t_2
else if (b <= 3.9d-208) then
tmp = y2 * (y1 * ((k * y4) - (x * a)))
else if (b <= 3.75d-115) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (b <= 3d+37) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 3.3d+117) then
tmp = t_2
else if (b <= 1.4d+238) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = y4 * (y3 * ((y * c) - (j * y1)));
double tmp;
if (b <= -3.5e+44) {
tmp = t_1;
} else if (b <= -1.7e-135) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (b <= 1.5e-289) {
tmp = t_2;
} else if (b <= 3.9e-208) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 3.75e-115) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 3e+37) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 3.3e+117) {
tmp = t_2;
} else if (b <= 1.4e+238) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) t_2 = y4 * (y3 * ((y * c) - (j * y1))) tmp = 0 if b <= -3.5e+44: tmp = t_1 elif b <= -1.7e-135: tmp = c * (i * ((z * t) - (x * y))) elif b <= 1.5e-289: tmp = t_2 elif b <= 3.9e-208: tmp = y2 * (y1 * ((k * y4) - (x * a))) elif b <= 3.75e-115: tmp = c * (y3 * ((y * y4) - (z * y0))) elif b <= 3e+37: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 3.3e+117: tmp = t_2 elif b <= 1.4e+238: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(y4 * Float64(y3 * Float64(Float64(y * c) - Float64(j * y1)))) tmp = 0.0 if (b <= -3.5e+44) tmp = t_1; elseif (b <= -1.7e-135) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (b <= 1.5e-289) tmp = t_2; elseif (b <= 3.9e-208) tmp = Float64(y2 * Float64(y1 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (b <= 3.75e-115) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (b <= 3e+37) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 3.3e+117) tmp = t_2; elseif (b <= 1.4e+238) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); t_2 = y4 * (y3 * ((y * c) - (j * y1))); tmp = 0.0; if (b <= -3.5e+44) tmp = t_1; elseif (b <= -1.7e-135) tmp = c * (i * ((z * t) - (x * y))); elseif (b <= 1.5e-289) tmp = t_2; elseif (b <= 3.9e-208) tmp = y2 * (y1 * ((k * y4) - (x * a))); elseif (b <= 3.75e-115) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (b <= 3e+37) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 3.3e+117) tmp = t_2; elseif (b <= 1.4e+238) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(y3 * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+44], t$95$1, If[LessEqual[b, -1.7e-135], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-289], t$95$2, If[LessEqual[b, 3.9e-208], N[(y2 * N[(y1 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.75e-115], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e+37], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.3e+117], t$95$2, If[LessEqual[b, 1.4e+238], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := y4 \cdot \left(y3 \cdot \left(y \cdot c - j \cdot y1\right)\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-135}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-289}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-208}:\\
\;\;\;\;y2 \cdot \left(y1 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 3.75 \cdot 10^{-115}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+37}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+117}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+238}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.4999999999999999e44 or 1.39999999999999995e238 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -3.4999999999999999e44 < b < -1.69999999999999995e-135Initial program 42.4%
associate-+l-42.4%
Simplified42.4%
Taylor expanded in c around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in i around inf 34.9%
*-commutative34.9%
*-commutative34.9%
Simplified34.9%
if -1.69999999999999995e-135 < b < 1.4999999999999999e-289 or 3.00000000000000022e37 < b < 3.2999999999999998e117Initial program 36.9%
associate-+l-36.9%
Simplified36.9%
Taylor expanded in y4 around inf 44.5%
Taylor expanded in y3 around -inf 48.3%
if 1.4999999999999999e-289 < b < 3.90000000000000004e-208Initial program 31.5%
+-commutative31.5%
fma-def31.5%
Simplified31.5%
Taylor expanded in y1 around inf 56.8%
mul-1-neg56.8%
mul-1-neg56.8%
sub-neg56.8%
Simplified56.8%
Taylor expanded in y2 around inf 57.0%
associate-*r*57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
if 3.90000000000000004e-208 < b < 3.75000000000000019e-115Initial program 15.0%
associate-+l-15.0%
Simplified15.0%
Taylor expanded in c around inf 55.3%
associate--l+55.3%
mul-1-neg55.3%
Simplified55.3%
Taylor expanded in y3 around inf 41.4%
distribute-lft-out--41.4%
mul-1-neg41.4%
distribute-rgt-neg-in41.4%
*-commutative41.4%
Simplified41.4%
if 3.75000000000000019e-115 < b < 3.00000000000000022e37Initial program 33.8%
associate-+l-33.8%
Simplified33.8%
Taylor expanded in c around inf 62.9%
associate--l+62.9%
mul-1-neg62.9%
Simplified62.9%
Taylor expanded in y0 around -inf 54.8%
if 3.2999999999999998e117 < b < 1.39999999999999995e238Initial program 25.0%
associate-+l-25.0%
Simplified25.0%
Taylor expanded in y4 around inf 40.1%
Taylor expanded in t around inf 64.8%
Final simplification49.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i)))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -1.85e+44)
t_2
(if (<= b 2.05e-299)
t_1
(if (<= b 1.2e-259)
(* y (* y3 (* a (- y5))))
(if (<= b 1.26e-23)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 6.5e+100)
t_1
(if (<= b 8.9e+238)
(* y4 (* j (- (* t b) (* y1 y3))))
(if (<= b 1.7e+286) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.85e+44) {
tmp = t_2;
} else if (b <= 2.05e-299) {
tmp = t_1;
} else if (b <= 1.2e-259) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1.26e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 6.5e+100) {
tmp = t_1;
} else if (b <= 8.9e+238) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (b <= 1.7e+286) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-1.85d+44)) then
tmp = t_2
else if (b <= 2.05d-299) then
tmp = t_1
else if (b <= 1.2d-259) then
tmp = y * (y3 * (a * -y5))
else if (b <= 1.26d-23) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 6.5d+100) then
tmp = t_1
else if (b <= 8.9d+238) then
tmp = y4 * (j * ((t * b) - (y1 * y3)))
else if (b <= 1.7d+286) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.85e+44) {
tmp = t_2;
} else if (b <= 2.05e-299) {
tmp = t_1;
} else if (b <= 1.2e-259) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1.26e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 6.5e+100) {
tmp = t_1;
} else if (b <= 8.9e+238) {
tmp = y4 * (j * ((t * b) - (y1 * y3)));
} else if (b <= 1.7e+286) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -1.85e+44: tmp = t_2 elif b <= 2.05e-299: tmp = t_1 elif b <= 1.2e-259: tmp = y * (y3 * (a * -y5)) elif b <= 1.26e-23: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 6.5e+100: tmp = t_1 elif b <= 8.9e+238: tmp = y4 * (j * ((t * b) - (y1 * y3))) elif b <= 1.7e+286: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -1.85e+44) tmp = t_2; elseif (b <= 2.05e-299) tmp = t_1; elseif (b <= 1.2e-259) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (b <= 1.26e-23) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 6.5e+100) tmp = t_1; elseif (b <= 8.9e+238) tmp = Float64(y4 * Float64(j * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (b <= 1.7e+286) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -1.85e+44) tmp = t_2; elseif (b <= 2.05e-299) tmp = t_1; elseif (b <= 1.2e-259) tmp = y * (y3 * (a * -y5)); elseif (b <= 1.26e-23) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 6.5e+100) tmp = t_1; elseif (b <= 8.9e+238) tmp = y4 * (j * ((t * b) - (y1 * y3))); elseif (b <= 1.7e+286) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.85e+44], t$95$2, If[LessEqual[b, 2.05e-299], t$95$1, If[LessEqual[b, 1.2e-259], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.26e-23], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e+100], t$95$1, If[LessEqual[b, 8.9e+238], N[(y4 * N[(j * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+286], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.85 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-259}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.26 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+100}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.9 \cdot 10^{+238}:\\
\;\;\;\;y4 \cdot \left(j \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+286}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.85e44 or 8.8999999999999999e238 < b < 1.7e286Initial program 20.3%
+-commutative20.3%
fma-def21.7%
*-commutative21.7%
*-commutative21.7%
Simplified25.7%
Taylor expanded in y0 around inf 38.4%
mul-1-neg38.4%
Simplified38.4%
Taylor expanded in b around inf 52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
if -1.85e44 < b < 2.05e-299 or 1.25999999999999996e-23 < b < 6.50000000000000001e100 or 1.7e286 < b Initial program 39.8%
associate-+l-39.8%
Simplified39.8%
Taylor expanded in c around inf 42.4%
associate--l+42.4%
mul-1-neg42.4%
Simplified42.4%
Taylor expanded in y around -inf 40.7%
mul-1-neg40.7%
unsub-neg40.7%
*-commutative40.7%
*-commutative40.7%
Simplified40.7%
if 2.05e-299 < b < 1.2e-259Initial program 36.4%
associate-+l-36.4%
Simplified36.4%
Taylor expanded in a around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in y around inf 55.4%
associate-*r*55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in x around 0 55.4%
mul-1-neg55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around 0 64.1%
*-commutative64.1%
associate-*l*64.2%
Simplified64.2%
if 1.2e-259 < b < 1.25999999999999996e-23Initial program 20.4%
associate-+l-20.4%
Simplified20.4%
Taylor expanded in c around inf 57.9%
associate--l+57.9%
mul-1-neg57.9%
Simplified57.9%
Taylor expanded in y0 around -inf 38.5%
if 6.50000000000000001e100 < b < 8.8999999999999999e238Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in y4 around inf 34.1%
Taylor expanded in j around inf 49.5%
*-commutative49.5%
mul-1-neg49.5%
sub-neg49.5%
*-commutative49.5%
Simplified49.5%
Final simplification45.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -1.8e+66)
t_1
(if (<= b -1.92e-160)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= b -1.9e-281)
(* (* a y1) (- (* z y3) (* x y2)))
(if (<= b 3.9e-297)
(* y4 (* c (- (* y y3) (* t y2))))
(if (<= b 2.4e-214)
(* y2 (* y1 (- (* k y4) (* x a))))
(if (<= b 2.7e+106)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= b 4.2e+237)
(* y4 (* t (- (* b j) (* c y2))))
t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.8e+66) {
tmp = t_1;
} else if (b <= -1.92e-160) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= -1.9e-281) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (b <= 3.9e-297) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (b <= 2.4e-214) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 2.7e+106) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 4.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-1.8d+66)) then
tmp = t_1
else if (b <= (-1.92d-160)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (b <= (-1.9d-281)) then
tmp = (a * y1) * ((z * y3) - (x * y2))
else if (b <= 3.9d-297) then
tmp = y4 * (c * ((y * y3) - (t * y2)))
else if (b <= 2.4d-214) then
tmp = y2 * (y1 * ((k * y4) - (x * a)))
else if (b <= 2.7d+106) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (b <= 4.2d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.8e+66) {
tmp = t_1;
} else if (b <= -1.92e-160) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (b <= -1.9e-281) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (b <= 3.9e-297) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (b <= 2.4e-214) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 2.7e+106) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 4.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -1.8e+66: tmp = t_1 elif b <= -1.92e-160: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif b <= -1.9e-281: tmp = (a * y1) * ((z * y3) - (x * y2)) elif b <= 3.9e-297: tmp = y4 * (c * ((y * y3) - (t * y2))) elif b <= 2.4e-214: tmp = y2 * (y1 * ((k * y4) - (x * a))) elif b <= 2.7e+106: tmp = c * (y3 * ((y * y4) - (z * y0))) elif b <= 4.2e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -1.8e+66) tmp = t_1; elseif (b <= -1.92e-160) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (b <= -1.9e-281) tmp = Float64(Float64(a * y1) * Float64(Float64(z * y3) - Float64(x * y2))); elseif (b <= 3.9e-297) tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (b <= 2.4e-214) tmp = Float64(y2 * Float64(y1 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (b <= 2.7e+106) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (b <= 4.2e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -1.8e+66) tmp = t_1; elseif (b <= -1.92e-160) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (b <= -1.9e-281) tmp = (a * y1) * ((z * y3) - (x * y2)); elseif (b <= 3.9e-297) tmp = y4 * (c * ((y * y3) - (t * y2))); elseif (b <= 2.4e-214) tmp = y2 * (y1 * ((k * y4) - (x * a))); elseif (b <= 2.7e+106) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (b <= 4.2e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+66], t$95$1, If[LessEqual[b, -1.92e-160], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.9e-281], N[(N[(a * y1), $MachinePrecision] * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.9e-297], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-214], N[(y2 * N[(y1 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e+106], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.92 \cdot 10^{-160}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-281}:\\
\;\;\;\;\left(a \cdot y1\right) \cdot \left(z \cdot y3 - x \cdot y2\right)\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-297}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-214}:\\
\;\;\;\;y2 \cdot \left(y1 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+106}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.8e66 or 4.20000000000000029e237 < b Initial program 20.9%
+-commutative20.9%
fma-def23.7%
*-commutative23.7%
*-commutative23.7%
Simplified27.9%
Taylor expanded in y0 around inf 39.5%
mul-1-neg39.5%
Simplified39.5%
Taylor expanded in b around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
if -1.8e66 < b < -1.91999999999999999e-160Initial program 38.6%
+-commutative38.6%
fma-def38.6%
Simplified45.5%
Taylor expanded in y1 around inf 41.9%
mul-1-neg41.9%
mul-1-neg41.9%
sub-neg41.9%
Simplified41.9%
Taylor expanded in j around inf 33.6%
associate-*r*35.7%
mul-1-neg35.7%
unsub-neg35.7%
*-commutative35.7%
*-commutative35.7%
Simplified35.7%
if -1.91999999999999999e-160 < b < -1.89999999999999988e-281Initial program 41.1%
+-commutative41.1%
fma-def41.2%
Simplified41.2%
Taylor expanded in y1 around inf 47.2%
mul-1-neg47.2%
mul-1-neg47.2%
sub-neg47.2%
Simplified47.2%
Taylor expanded in a around inf 50.7%
associate-*r*42.1%
*-commutative42.1%
*-commutative42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
if -1.89999999999999988e-281 < b < 3.9000000000000001e-297Initial program 22.2%
associate-+l-22.2%
Simplified22.2%
Taylor expanded in y4 around inf 56.5%
Taylor expanded in c around inf 56.7%
*-commutative56.7%
*-commutative56.7%
Simplified56.7%
if 3.9000000000000001e-297 < b < 2.4000000000000002e-214Initial program 31.5%
+-commutative31.5%
fma-def31.5%
Simplified31.5%
Taylor expanded in y1 around inf 56.8%
mul-1-neg56.8%
mul-1-neg56.8%
sub-neg56.8%
Simplified56.8%
Taylor expanded in y2 around inf 57.0%
associate-*r*57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
if 2.4000000000000002e-214 < b < 2.70000000000000006e106Initial program 30.8%
associate-+l-30.8%
Simplified30.8%
Taylor expanded in c around inf 58.4%
associate--l+58.4%
mul-1-neg58.4%
Simplified58.4%
Taylor expanded in y3 around inf 41.5%
distribute-lft-out--41.5%
mul-1-neg41.5%
distribute-rgt-neg-in41.5%
*-commutative41.5%
Simplified41.5%
if 2.70000000000000006e106 < b < 4.20000000000000029e237Initial program 25.8%
associate-+l-25.8%
Simplified25.8%
Taylor expanded in y4 around inf 36.2%
Taylor expanded in t around inf 61.8%
Final simplification47.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -1.05e-81)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -1.5e-236)
(* c (* i (- (* z t) (* x y))))
(if (<= y2 -1.4e-291)
(* (* c y0) (* z (- y3)))
(if (<= y2 4.5e-308)
(* c (* (* z t) i))
(if (<= y2 1.02e-196)
(* y (* y3 (* a (- y5))))
(if (<= y2 5.4e+72)
(* c (* y (- (* y3 y4) (* x i))))
(* a (* x (* y1 (- y2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.05e-81) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -1.5e-236) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y2 <= -1.4e-291) {
tmp = (c * y0) * (z * -y3);
} else if (y2 <= 4.5e-308) {
tmp = c * ((z * t) * i);
} else if (y2 <= 1.02e-196) {
tmp = y * (y3 * (a * -y5));
} else if (y2 <= 5.4e+72) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else {
tmp = a * (x * (y1 * -y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-1.05d-81)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-1.5d-236)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (y2 <= (-1.4d-291)) then
tmp = (c * y0) * (z * -y3)
else if (y2 <= 4.5d-308) then
tmp = c * ((z * t) * i)
else if (y2 <= 1.02d-196) then
tmp = y * (y3 * (a * -y5))
else if (y2 <= 5.4d+72) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else
tmp = a * (x * (y1 * -y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.05e-81) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -1.5e-236) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y2 <= -1.4e-291) {
tmp = (c * y0) * (z * -y3);
} else if (y2 <= 4.5e-308) {
tmp = c * ((z * t) * i);
} else if (y2 <= 1.02e-196) {
tmp = y * (y3 * (a * -y5));
} else if (y2 <= 5.4e+72) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else {
tmp = a * (x * (y1 * -y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.05e-81: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -1.5e-236: tmp = c * (i * ((z * t) - (x * y))) elif y2 <= -1.4e-291: tmp = (c * y0) * (z * -y3) elif y2 <= 4.5e-308: tmp = c * ((z * t) * i) elif y2 <= 1.02e-196: tmp = y * (y3 * (a * -y5)) elif y2 <= 5.4e+72: tmp = c * (y * ((y3 * y4) - (x * i))) else: tmp = a * (x * (y1 * -y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -1.05e-81) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -1.5e-236) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (y2 <= -1.4e-291) tmp = Float64(Float64(c * y0) * Float64(z * Float64(-y3))); elseif (y2 <= 4.5e-308) tmp = Float64(c * Float64(Float64(z * t) * i)); elseif (y2 <= 1.02e-196) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (y2 <= 5.4e+72) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); else tmp = Float64(a * Float64(x * Float64(y1 * Float64(-y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -1.05e-81) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -1.5e-236) tmp = c * (i * ((z * t) - (x * y))); elseif (y2 <= -1.4e-291) tmp = (c * y0) * (z * -y3); elseif (y2 <= 4.5e-308) tmp = c * ((z * t) * i); elseif (y2 <= 1.02e-196) tmp = y * (y3 * (a * -y5)); elseif (y2 <= 5.4e+72) tmp = c * (y * ((y3 * y4) - (x * i))); else tmp = a * (x * (y1 * -y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.05e-81], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.5e-236], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.4e-291], N[(N[(c * y0), $MachinePrecision] * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.5e-308], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.02e-196], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.4e+72], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * N[(y1 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.05 \cdot 10^{-81}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.5 \cdot 10^{-236}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;y2 \leq -1.4 \cdot 10^{-291}:\\
\;\;\;\;\left(c \cdot y0\right) \cdot \left(z \cdot \left(-y3\right)\right)\\
\mathbf{elif}\;y2 \leq 4.5 \cdot 10^{-308}:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;y2 \leq 1.02 \cdot 10^{-196}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 5.4 \cdot 10^{+72}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(y1 \cdot \left(-y2\right)\right)\right)\\
\end{array}
\end{array}
if y2 < -1.05e-81Initial program 30.7%
associate-+l-30.7%
Simplified30.7%
Taylor expanded in c around inf 55.8%
associate--l+55.8%
mul-1-neg55.8%
Simplified55.8%
Taylor expanded in y2 around inf 50.3%
if -1.05e-81 < y2 < -1.50000000000000007e-236Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in c around inf 38.7%
associate--l+38.7%
mul-1-neg38.7%
Simplified38.7%
Taylor expanded in i around inf 36.4%
*-commutative36.4%
*-commutative36.4%
Simplified36.4%
if -1.50000000000000007e-236 < y2 < -1.4e-291Initial program 58.3%
associate-+l-58.3%
Simplified58.3%
Taylor expanded in c around inf 59.6%
associate--l+59.6%
mul-1-neg59.6%
Simplified59.6%
Taylor expanded in y4 around 0 43.4%
Taylor expanded in y3 around inf 51.5%
mul-1-neg51.5%
associate-*r*59.3%
Simplified59.3%
if -1.4e-291 < y2 < 4.50000000000000009e-308Initial program 20.0%
associate-+l-20.0%
Simplified20.0%
Taylor expanded in c around inf 80.2%
associate--l+80.2%
mul-1-neg80.2%
Simplified80.2%
Taylor expanded in i around inf 60.4%
*-commutative60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in z around inf 60.7%
*-commutative60.7%
Simplified60.7%
if 4.50000000000000009e-308 < y2 < 1.0200000000000001e-196Initial program 36.1%
associate-+l-36.1%
Simplified36.1%
Taylor expanded in a around inf 28.9%
associate--l+28.9%
mul-1-neg28.9%
mul-1-neg28.9%
Simplified28.9%
Taylor expanded in y around inf 29.2%
associate-*r*33.0%
+-commutative33.0%
mul-1-neg33.0%
unsub-neg33.0%
*-commutative33.0%
Simplified33.0%
Taylor expanded in x around 0 33.5%
mul-1-neg33.5%
*-commutative33.5%
Simplified33.5%
Taylor expanded in a around 0 37.2%
*-commutative37.2%
associate-*l*37.2%
Simplified37.2%
if 1.0200000000000001e-196 < y2 < 5.4000000000000001e72Initial program 34.5%
associate-+l-34.5%
Simplified34.5%
Taylor expanded in c around inf 33.5%
associate--l+33.5%
mul-1-neg33.5%
Simplified33.5%
Taylor expanded in y around -inf 33.9%
mul-1-neg33.9%
unsub-neg33.9%
*-commutative33.9%
*-commutative33.9%
Simplified33.9%
if 5.4000000000000001e72 < y2 Initial program 11.4%
associate-+l-11.4%
Simplified11.4%
Taylor expanded in a around inf 36.6%
associate--l+36.6%
mul-1-neg36.6%
mul-1-neg36.6%
Simplified36.6%
Taylor expanded in x around inf 44.1%
Taylor expanded in y around 0 41.8%
mul-1-neg41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
Simplified41.8%
Final simplification42.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.5e-82)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y2 -1.95e-236)
(* c (* i (- (* z t) (* x y))))
(if (<= y2 -5.5e-290)
(* (* c y0) (* z (- y3)))
(if (<= y2 -2e-309)
(* c (* (* z t) i))
(if (<= y2 4.1e-196)
(* y (* y3 (* a (- y5))))
(if (<= y2 2.25e-27)
(* c (* y (- (* y3 y4) (* x i))))
(* y0 (* y5 (- (* j y3) (* k y2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.5e-82) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -1.95e-236) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y2 <= -5.5e-290) {
tmp = (c * y0) * (z * -y3);
} else if (y2 <= -2e-309) {
tmp = c * ((z * t) * i);
} else if (y2 <= 4.1e-196) {
tmp = y * (y3 * (a * -y5));
} else if (y2 <= 2.25e-27) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.5d-82)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y2 <= (-1.95d-236)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (y2 <= (-5.5d-290)) then
tmp = (c * y0) * (z * -y3)
else if (y2 <= (-2d-309)) then
tmp = c * ((z * t) * i)
else if (y2 <= 4.1d-196) then
tmp = y * (y3 * (a * -y5))
else if (y2 <= 2.25d-27) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.5e-82) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y2 <= -1.95e-236) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y2 <= -5.5e-290) {
tmp = (c * y0) * (z * -y3);
} else if (y2 <= -2e-309) {
tmp = c * ((z * t) * i);
} else if (y2 <= 4.1e-196) {
tmp = y * (y3 * (a * -y5));
} else if (y2 <= 2.25e-27) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.5e-82: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y2 <= -1.95e-236: tmp = c * (i * ((z * t) - (x * y))) elif y2 <= -5.5e-290: tmp = (c * y0) * (z * -y3) elif y2 <= -2e-309: tmp = c * ((z * t) * i) elif y2 <= 4.1e-196: tmp = y * (y3 * (a * -y5)) elif y2 <= 2.25e-27: tmp = c * (y * ((y3 * y4) - (x * i))) else: tmp = y0 * (y5 * ((j * y3) - (k * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.5e-82) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y2 <= -1.95e-236) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (y2 <= -5.5e-290) tmp = Float64(Float64(c * y0) * Float64(z * Float64(-y3))); elseif (y2 <= -2e-309) tmp = Float64(c * Float64(Float64(z * t) * i)); elseif (y2 <= 4.1e-196) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (y2 <= 2.25e-27) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); else tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.5e-82) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y2 <= -1.95e-236) tmp = c * (i * ((z * t) - (x * y))); elseif (y2 <= -5.5e-290) tmp = (c * y0) * (z * -y3); elseif (y2 <= -2e-309) tmp = c * ((z * t) * i); elseif (y2 <= 4.1e-196) tmp = y * (y3 * (a * -y5)); elseif (y2 <= 2.25e-27) tmp = c * (y * ((y3 * y4) - (x * i))); else tmp = y0 * (y5 * ((j * y3) - (k * y2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.5e-82], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.95e-236], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.5e-290], N[(N[(c * y0), $MachinePrecision] * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2e-309], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.1e-196], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.25e-27], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.5 \cdot 10^{-82}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.95 \cdot 10^{-236}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;y2 \leq -5.5 \cdot 10^{-290}:\\
\;\;\;\;\left(c \cdot y0\right) \cdot \left(z \cdot \left(-y3\right)\right)\\
\mathbf{elif}\;y2 \leq -2 \cdot 10^{-309}:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;y2 \leq 4.1 \cdot 10^{-196}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 2.25 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -2.4999999999999999e-82Initial program 30.7%
associate-+l-30.7%
Simplified30.7%
Taylor expanded in c around inf 55.8%
associate--l+55.8%
mul-1-neg55.8%
Simplified55.8%
Taylor expanded in y2 around inf 50.3%
if -2.4999999999999999e-82 < y2 < -1.95e-236Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in c around inf 38.7%
associate--l+38.7%
mul-1-neg38.7%
Simplified38.7%
Taylor expanded in i around inf 36.4%
*-commutative36.4%
*-commutative36.4%
Simplified36.4%
if -1.95e-236 < y2 < -5.5e-290Initial program 58.3%
associate-+l-58.3%
Simplified58.3%
Taylor expanded in c around inf 59.6%
associate--l+59.6%
mul-1-neg59.6%
Simplified59.6%
Taylor expanded in y4 around 0 43.4%
Taylor expanded in y3 around inf 51.5%
mul-1-neg51.5%
associate-*r*59.3%
Simplified59.3%
if -5.5e-290 < y2 < -1.9999999999999988e-309Initial program 20.0%
associate-+l-20.0%
Simplified20.0%
Taylor expanded in c around inf 80.2%
associate--l+80.2%
mul-1-neg80.2%
Simplified80.2%
Taylor expanded in i around inf 60.4%
*-commutative60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in z around inf 60.7%
*-commutative60.7%
Simplified60.7%
if -1.9999999999999988e-309 < y2 < 4.10000000000000021e-196Initial program 36.1%
associate-+l-36.1%
Simplified36.1%
Taylor expanded in a around inf 28.9%
associate--l+28.9%
mul-1-neg28.9%
mul-1-neg28.9%
Simplified28.9%
Taylor expanded in y around inf 29.2%
associate-*r*33.0%
+-commutative33.0%
mul-1-neg33.0%
unsub-neg33.0%
*-commutative33.0%
Simplified33.0%
Taylor expanded in x around 0 33.5%
mul-1-neg33.5%
*-commutative33.5%
Simplified33.5%
Taylor expanded in a around 0 37.2%
*-commutative37.2%
associate-*l*37.2%
Simplified37.2%
if 4.10000000000000021e-196 < y2 < 2.2500000000000001e-27Initial program 45.0%
associate-+l-45.0%
Simplified45.0%
Taylor expanded in c around inf 35.8%
associate--l+35.8%
mul-1-neg35.8%
Simplified35.8%
Taylor expanded in y around -inf 33.5%
mul-1-neg33.5%
unsub-neg33.5%
*-commutative33.5%
*-commutative33.5%
Simplified33.5%
if 2.2500000000000001e-27 < y2 Initial program 12.4%
+-commutative12.4%
fma-def13.9%
*-commutative13.9%
*-commutative13.9%
Simplified15.5%
Taylor expanded in y0 around inf 40.6%
mul-1-neg40.6%
Simplified40.6%
Taylor expanded in y5 around inf 47.2%
Final simplification44.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i)))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -1.35e+44)
t_2
(if (<= b 2.1e-299)
t_1
(if (<= b 1.55e-264)
(* y (* y3 (* a (- y5))))
(if (<= b 2.4e-23)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 7e+99)
t_1
(if (<= b 9.5e+236) (* c (* y2 (- (* x y0) (* t y4)))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.35e+44) {
tmp = t_2;
} else if (b <= 2.1e-299) {
tmp = t_1;
} else if (b <= 1.55e-264) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 2.4e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 7e+99) {
tmp = t_1;
} else if (b <= 9.5e+236) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-1.35d+44)) then
tmp = t_2
else if (b <= 2.1d-299) then
tmp = t_1
else if (b <= 1.55d-264) then
tmp = y * (y3 * (a * -y5))
else if (b <= 2.4d-23) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 7d+99) then
tmp = t_1
else if (b <= 9.5d+236) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -1.35e+44) {
tmp = t_2;
} else if (b <= 2.1e-299) {
tmp = t_1;
} else if (b <= 1.55e-264) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 2.4e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 7e+99) {
tmp = t_1;
} else if (b <= 9.5e+236) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -1.35e+44: tmp = t_2 elif b <= 2.1e-299: tmp = t_1 elif b <= 1.55e-264: tmp = y * (y3 * (a * -y5)) elif b <= 2.4e-23: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 7e+99: tmp = t_1 elif b <= 9.5e+236: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -1.35e+44) tmp = t_2; elseif (b <= 2.1e-299) tmp = t_1; elseif (b <= 1.55e-264) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (b <= 2.4e-23) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 7e+99) tmp = t_1; elseif (b <= 9.5e+236) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -1.35e+44) tmp = t_2; elseif (b <= 2.1e-299) tmp = t_1; elseif (b <= 1.55e-264) tmp = y * (y3 * (a * -y5)); elseif (b <= 2.4e-23) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 7e+99) tmp = t_1; elseif (b <= 9.5e+236) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.35e+44], t$95$2, If[LessEqual[b, 2.1e-299], t$95$1, If[LessEqual[b, 1.55e-264], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-23], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+99], t$95$1, If[LessEqual[b, 9.5e+236], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.35 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-264}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+236}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.35e44 or 9.4999999999999999e236 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -1.35e44 < b < 2.1000000000000001e-299 or 2.39999999999999996e-23 < b < 6.9999999999999995e99Initial program 39.4%
associate-+l-39.4%
Simplified39.4%
Taylor expanded in c around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in y around -inf 39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
*-commutative39.2%
Simplified39.2%
if 2.1000000000000001e-299 < b < 1.5500000000000001e-264Initial program 36.4%
associate-+l-36.4%
Simplified36.4%
Taylor expanded in a around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in y around inf 55.4%
associate-*r*55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in x around 0 55.4%
mul-1-neg55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around 0 64.1%
*-commutative64.1%
associate-*l*64.2%
Simplified64.2%
if 1.5500000000000001e-264 < b < 2.39999999999999996e-23Initial program 20.4%
associate-+l-20.4%
Simplified20.4%
Taylor expanded in c around inf 57.9%
associate--l+57.9%
mul-1-neg57.9%
Simplified57.9%
Taylor expanded in y0 around -inf 38.5%
if 6.9999999999999995e99 < b < 9.4999999999999999e236Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in c around inf 28.3%
associate--l+28.3%
mul-1-neg28.3%
Simplified28.3%
Taylor expanded in y2 around inf 40.2%
Final simplification43.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i)))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -3.2e+44)
t_2
(if (<= b 2e-299)
t_1
(if (<= b 6e-263)
(* y (* y3 (* a (- y5))))
(if (<= b 1.15e-23)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 1.06e+99)
t_1
(if (<= b 1.2e+237) (* y4 (* t (- (* b j) (* c 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 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -3.2e+44) {
tmp = t_2;
} else if (b <= 2e-299) {
tmp = t_1;
} else if (b <= 6e-263) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1.15e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.06e+99) {
tmp = t_1;
} else if (b <= 1.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-3.2d+44)) then
tmp = t_2
else if (b <= 2d-299) then
tmp = t_1
else if (b <= 6d-263) then
tmp = y * (y3 * (a * -y5))
else if (b <= 1.15d-23) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 1.06d+99) then
tmp = t_1
else if (b <= 1.2d+237) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -3.2e+44) {
tmp = t_2;
} else if (b <= 2e-299) {
tmp = t_1;
} else if (b <= 6e-263) {
tmp = y * (y3 * (a * -y5));
} else if (b <= 1.15e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.06e+99) {
tmp = t_1;
} else if (b <= 1.2e+237) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -3.2e+44: tmp = t_2 elif b <= 2e-299: tmp = t_1 elif b <= 6e-263: tmp = y * (y3 * (a * -y5)) elif b <= 1.15e-23: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 1.06e+99: tmp = t_1 elif b <= 1.2e+237: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -3.2e+44) tmp = t_2; elseif (b <= 2e-299) tmp = t_1; elseif (b <= 6e-263) tmp = Float64(y * Float64(y3 * Float64(a * Float64(-y5)))); elseif (b <= 1.15e-23) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 1.06e+99) tmp = t_1; elseif (b <= 1.2e+237) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -3.2e+44) tmp = t_2; elseif (b <= 2e-299) tmp = t_1; elseif (b <= 6e-263) tmp = y * (y3 * (a * -y5)); elseif (b <= 1.15e-23) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 1.06e+99) tmp = t_1; elseif (b <= 1.2e+237) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+44], t$95$2, If[LessEqual[b, 2e-299], t$95$1, If[LessEqual[b, 6e-263], N[(y * N[(y3 * N[(a * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e-23], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e+99], t$95$1, If[LessEqual[b, 1.2e+237], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-263}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(a \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+237}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.20000000000000004e44 or 1.1999999999999999e237 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -3.20000000000000004e44 < b < 1.99999999999999998e-299 or 1.15000000000000005e-23 < b < 1.05999999999999999e99Initial program 39.4%
associate-+l-39.4%
Simplified39.4%
Taylor expanded in c around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in y around -inf 39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
*-commutative39.2%
Simplified39.2%
if 1.99999999999999998e-299 < b < 6.0000000000000001e-263Initial program 36.4%
associate-+l-36.4%
Simplified36.4%
Taylor expanded in a around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in y around inf 55.4%
associate-*r*55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in x around 0 55.4%
mul-1-neg55.4%
*-commutative55.4%
Simplified55.4%
Taylor expanded in a around 0 64.1%
*-commutative64.1%
associate-*l*64.2%
Simplified64.2%
if 6.0000000000000001e-263 < b < 1.15000000000000005e-23Initial program 20.4%
associate-+l-20.4%
Simplified20.4%
Taylor expanded in c around inf 57.9%
associate--l+57.9%
mul-1-neg57.9%
Simplified57.9%
Taylor expanded in y0 around -inf 38.5%
if 1.05999999999999999e99 < b < 1.1999999999999999e237Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in y4 around inf 34.1%
Taylor expanded in t around inf 58.1%
Final simplification46.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (- (* y3 y4) (* x i)))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= b -2.2e+44)
t_2
(if (<= b 2.1e-299)
t_1
(if (<= b 1.35e-179)
(* y2 (* y1 (- (* k y4) (* x a))))
(if (<= b 1.28e-23)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 5.5e+101)
t_1
(if (<= b 9.8e+236) (* y4 (* t (- (* b j) (* c 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 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -2.2e+44) {
tmp = t_2;
} else if (b <= 2.1e-299) {
tmp = t_1;
} else if (b <= 1.35e-179) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 1.28e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 5.5e+101) {
tmp = t_1;
} else if (b <= 9.8e+236) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y * ((y3 * y4) - (x * i)))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (b <= (-2.2d+44)) then
tmp = t_2
else if (b <= 2.1d-299) then
tmp = t_1
else if (b <= 1.35d-179) then
tmp = y2 * (y1 * ((k * y4) - (x * a)))
else if (b <= 1.28d-23) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 5.5d+101) then
tmp = t_1
else if (b <= 9.8d+236) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * ((y3 * y4) - (x * i)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (b <= -2.2e+44) {
tmp = t_2;
} else if (b <= 2.1e-299) {
tmp = t_1;
} else if (b <= 1.35e-179) {
tmp = y2 * (y1 * ((k * y4) - (x * a)));
} else if (b <= 1.28e-23) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 5.5e+101) {
tmp = t_1;
} else if (b <= 9.8e+236) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * ((y3 * y4) - (x * i))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if b <= -2.2e+44: tmp = t_2 elif b <= 2.1e-299: tmp = t_1 elif b <= 1.35e-179: tmp = y2 * (y1 * ((k * y4) - (x * a))) elif b <= 1.28e-23: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 5.5e+101: tmp = t_1 elif b <= 9.8e+236: tmp = y4 * (t * ((b * j) - (c * y2))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (b <= -2.2e+44) tmp = t_2; elseif (b <= 2.1e-299) tmp = t_1; elseif (b <= 1.35e-179) tmp = Float64(y2 * Float64(y1 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (b <= 1.28e-23) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 5.5e+101) tmp = t_1; elseif (b <= 9.8e+236) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * ((y3 * y4) - (x * i))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (b <= -2.2e+44) tmp = t_2; elseif (b <= 2.1e-299) tmp = t_1; elseif (b <= 1.35e-179) tmp = y2 * (y1 * ((k * y4) - (x * a))); elseif (b <= 1.28e-23) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 5.5e+101) tmp = t_1; elseif (b <= 9.8e+236) tmp = y4 * (t * ((b * j) - (c * y2))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.2e+44], t$95$2, If[LessEqual[b, 2.1e-299], t$95$1, If[LessEqual[b, 1.35e-179], N[(y2 * N[(y1 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.28e-23], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e+101], t$95$1, If[LessEqual[b, 9.8e+236], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-179}:\\
\;\;\;\;y2 \cdot \left(y1 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 1.28 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+236}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.19999999999999996e44 or 9.8e236 < b Initial program 21.8%
+-commutative21.8%
fma-def24.4%
*-commutative24.4%
*-commutative24.4%
Simplified28.3%
Taylor expanded in y0 around inf 40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -2.19999999999999996e44 < b < 2.1000000000000001e-299 or 1.28000000000000005e-23 < b < 5.50000000000000018e101Initial program 39.4%
associate-+l-39.4%
Simplified39.4%
Taylor expanded in c around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in y around -inf 39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
*-commutative39.2%
Simplified39.2%
if 2.1000000000000001e-299 < b < 1.34999999999999994e-179Initial program 24.0%
+-commutative24.0%
fma-def24.0%
Simplified24.0%
Taylor expanded in y1 around inf 52.8%
mul-1-neg52.8%
mul-1-neg52.8%
sub-neg52.8%
Simplified52.8%
Taylor expanded in y2 around inf 48.3%
associate-*r*48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
if 1.34999999999999994e-179 < b < 1.28000000000000005e-23Initial program 23.7%
associate-+l-23.7%
Simplified23.7%
Taylor expanded in c around inf 60.4%
associate--l+60.4%
mul-1-neg60.4%
Simplified60.4%
Taylor expanded in y0 around -inf 44.3%
if 5.50000000000000018e101 < b < 9.8e236Initial program 27.2%
associate-+l-27.2%
Simplified27.2%
Taylor expanded in y4 around inf 34.1%
Taylor expanded in t around inf 58.1%
Final simplification46.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -1.82e+171)
(* (* j y1) (- (* x i) (* y3 y4)))
(if (<= j -1.35e-47)
(* y0 (* b (- (* z k) (* x j))))
(if (<= j -1.45e-274)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= j 3.7e-190)
(* c (* i (- (* z t) (* x y))))
(if (<= j 1.12e+162)
(* y4 (* c (- (* y y3) (* t y2))))
(* y4 (* t (- (* b j) (* c y2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1.82e+171) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (j <= -1.35e-47) {
tmp = y0 * (b * ((z * k) - (x * j)));
} else if (j <= -1.45e-274) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (j <= 3.7e-190) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (j <= 1.12e+162) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else {
tmp = y4 * (t * ((b * j) - (c * y2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (j <= (-1.82d+171)) then
tmp = (j * y1) * ((x * i) - (y3 * y4))
else if (j <= (-1.35d-47)) then
tmp = y0 * (b * ((z * k) - (x * j)))
else if (j <= (-1.45d-274)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (j <= 3.7d-190) then
tmp = c * (i * ((z * t) - (x * y)))
else if (j <= 1.12d+162) then
tmp = y4 * (c * ((y * y3) - (t * y2)))
else
tmp = y4 * (t * ((b * j) - (c * y2)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1.82e+171) {
tmp = (j * y1) * ((x * i) - (y3 * y4));
} else if (j <= -1.35e-47) {
tmp = y0 * (b * ((z * k) - (x * j)));
} else if (j <= -1.45e-274) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (j <= 3.7e-190) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (j <= 1.12e+162) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else {
tmp = y4 * (t * ((b * j) - (c * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -1.82e+171: tmp = (j * y1) * ((x * i) - (y3 * y4)) elif j <= -1.35e-47: tmp = y0 * (b * ((z * k) - (x * j))) elif j <= -1.45e-274: tmp = c * (y * ((y3 * y4) - (x * i))) elif j <= 3.7e-190: tmp = c * (i * ((z * t) - (x * y))) elif j <= 1.12e+162: tmp = y4 * (c * ((y * y3) - (t * y2))) else: tmp = y4 * (t * ((b * j) - (c * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -1.82e+171) tmp = Float64(Float64(j * y1) * Float64(Float64(x * i) - Float64(y3 * y4))); elseif (j <= -1.35e-47) tmp = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))); elseif (j <= -1.45e-274) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (j <= 3.7e-190) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (j <= 1.12e+162) tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); else tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -1.82e+171) tmp = (j * y1) * ((x * i) - (y3 * y4)); elseif (j <= -1.35e-47) tmp = y0 * (b * ((z * k) - (x * j))); elseif (j <= -1.45e-274) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (j <= 3.7e-190) tmp = c * (i * ((z * t) - (x * y))); elseif (j <= 1.12e+162) tmp = y4 * (c * ((y * y3) - (t * y2))); else tmp = y4 * (t * ((b * j) - (c * y2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -1.82e+171], N[(N[(j * y1), $MachinePrecision] * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.35e-47], N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.45e-274], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.7e-190], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.12e+162], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.82 \cdot 10^{+171}:\\
\;\;\;\;\left(j \cdot y1\right) \cdot \left(x \cdot i - y3 \cdot y4\right)\\
\mathbf{elif}\;j \leq -1.35 \cdot 10^{-47}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;j \leq -1.45 \cdot 10^{-274}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 3.7 \cdot 10^{-190}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+162}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\end{array}
\end{array}
if j < -1.81999999999999996e171Initial program 3.6%
+-commutative3.6%
fma-def3.6%
Simplified21.4%
Taylor expanded in y1 around inf 43.5%
mul-1-neg43.5%
mul-1-neg43.5%
sub-neg43.5%
Simplified43.5%
Taylor expanded in j around inf 65.1%
associate-*r*68.3%
mul-1-neg68.3%
unsub-neg68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
if -1.81999999999999996e171 < j < -1.3499999999999999e-47Initial program 34.0%
+-commutative34.0%
fma-def37.4%
*-commutative37.4%
*-commutative37.4%
Simplified40.8%
Taylor expanded in y0 around inf 48.0%
mul-1-neg48.0%
Simplified48.0%
Taylor expanded in b around inf 40.3%
*-commutative40.3%
*-commutative40.3%
Simplified40.3%
if -1.3499999999999999e-47 < j < -1.44999999999999988e-274Initial program 33.4%
associate-+l-33.4%
Simplified33.4%
Taylor expanded in c around inf 33.9%
associate--l+33.9%
mul-1-neg33.9%
Simplified33.9%
Taylor expanded in y around -inf 46.7%
mul-1-neg46.7%
unsub-neg46.7%
*-commutative46.7%
*-commutative46.7%
Simplified46.7%
if -1.44999999999999988e-274 < j < 3.7000000000000002e-190Initial program 47.5%
associate-+l-47.5%
Simplified47.5%
Taylor expanded in c around inf 39.5%
associate--l+39.5%
mul-1-neg39.5%
Simplified39.5%
Taylor expanded in i around inf 37.3%
*-commutative37.3%
*-commutative37.3%
Simplified37.3%
if 3.7000000000000002e-190 < j < 1.12000000000000008e162Initial program 35.1%
associate-+l-35.1%
Simplified35.1%
Taylor expanded in y4 around inf 43.7%
Taylor expanded in c around inf 46.5%
*-commutative46.5%
*-commutative46.5%
Simplified46.5%
if 1.12000000000000008e162 < j Initial program 3.6%
associate-+l-3.6%
Simplified3.6%
Taylor expanded in y4 around inf 21.8%
Taylor expanded in t around inf 47.0%
Final simplification46.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.5e+36)
(* c (* y4 (* y y3)))
(if (<= y -2.9e-20)
(* c (* y2 (* t (- y4))))
(if (<= y -1.3e-38)
(* (* x i) (* y (- c)))
(if (<= y -8.6e-182)
(* y0 (* c (* x y2)))
(if (<= y 620000.0) (* i (* (* z t) c)) (* a (* (* x y) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.5e+36) {
tmp = c * (y4 * (y * y3));
} else if (y <= -2.9e-20) {
tmp = c * (y2 * (t * -y4));
} else if (y <= -1.3e-38) {
tmp = (x * i) * (y * -c);
} else if (y <= -8.6e-182) {
tmp = y0 * (c * (x * y2));
} else if (y <= 620000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.5d+36)) then
tmp = c * (y4 * (y * y3))
else if (y <= (-2.9d-20)) then
tmp = c * (y2 * (t * -y4))
else if (y <= (-1.3d-38)) then
tmp = (x * i) * (y * -c)
else if (y <= (-8.6d-182)) then
tmp = y0 * (c * (x * y2))
else if (y <= 620000.0d0) then
tmp = i * ((z * t) * c)
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.5e+36) {
tmp = c * (y4 * (y * y3));
} else if (y <= -2.9e-20) {
tmp = c * (y2 * (t * -y4));
} else if (y <= -1.3e-38) {
tmp = (x * i) * (y * -c);
} else if (y <= -8.6e-182) {
tmp = y0 * (c * (x * y2));
} else if (y <= 620000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.5e+36: tmp = c * (y4 * (y * y3)) elif y <= -2.9e-20: tmp = c * (y2 * (t * -y4)) elif y <= -1.3e-38: tmp = (x * i) * (y * -c) elif y <= -8.6e-182: tmp = y0 * (c * (x * y2)) elif y <= 620000.0: tmp = i * ((z * t) * c) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.5e+36) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= -2.9e-20) tmp = Float64(c * Float64(y2 * Float64(t * Float64(-y4)))); elseif (y <= -1.3e-38) tmp = Float64(Float64(x * i) * Float64(y * Float64(-c))); elseif (y <= -8.6e-182) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (y <= 620000.0) tmp = Float64(i * Float64(Float64(z * t) * c)); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.5e+36) tmp = c * (y4 * (y * y3)); elseif (y <= -2.9e-20) tmp = c * (y2 * (t * -y4)); elseif (y <= -1.3e-38) tmp = (x * i) * (y * -c); elseif (y <= -8.6e-182) tmp = y0 * (c * (x * y2)); elseif (y <= 620000.0) tmp = i * ((z * t) * c); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.5e+36], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e-20], N[(c * N[(y2 * N[(t * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.3e-38], N[(N[(x * i), $MachinePrecision] * N[(y * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.6e-182], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 620000.0], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+36}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-20}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(t \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-38}:\\
\;\;\;\;\left(x \cdot i\right) \cdot \left(y \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq -8.6 \cdot 10^{-182}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 620000:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if y < -1.5e36Initial program 22.9%
associate-+l-22.9%
Simplified22.9%
Taylor expanded in c around inf 49.0%
associate--l+49.0%
mul-1-neg49.0%
Simplified49.0%
Taylor expanded in y2 around inf 44.6%
Taylor expanded in y3 around inf 38.8%
if -1.5e36 < y < -2.9e-20Initial program 33.3%
associate-+l-33.3%
Simplified33.3%
Taylor expanded in c around inf 33.5%
associate--l+33.5%
mul-1-neg33.5%
Simplified33.5%
Taylor expanded in y2 around inf 40.5%
Taylor expanded in y0 around 0 47.5%
mul-1-neg47.5%
distribute-rgt-neg-in47.5%
Simplified47.5%
if -2.9e-20 < y < -1.30000000000000005e-38Initial program 15.2%
associate-+l-15.2%
Simplified15.2%
Taylor expanded in c around inf 42.9%
associate--l+42.9%
mul-1-neg42.9%
Simplified42.9%
Taylor expanded in i around inf 57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in z around 0 58.1%
mul-1-neg58.1%
associate-*r*58.1%
*-commutative58.1%
associate-*r*58.1%
associate-*r*58.1%
*-commutative58.1%
Simplified58.1%
if -1.30000000000000005e-38 < y < -8.6e-182Initial program 30.3%
associate-+l-30.3%
Simplified30.3%
Taylor expanded in c around inf 50.7%
associate--l+50.7%
mul-1-neg50.7%
Simplified50.7%
Taylor expanded in y2 around inf 50.7%
Taylor expanded in y0 around inf 33.4%
*-commutative33.4%
associate-*l*33.4%
*-commutative33.4%
Simplified33.4%
if -8.6e-182 < y < 6.2e5Initial program 34.9%
associate-+l-34.9%
Simplified34.9%
Taylor expanded in c around inf 35.7%
associate--l+35.7%
mul-1-neg35.7%
Simplified35.7%
Taylor expanded in y2 around inf 32.2%
Taylor expanded in z around inf 24.4%
*-commutative24.4%
associate-*l*25.6%
Simplified25.6%
if 6.2e5 < y Initial program 29.0%
associate-+l-29.0%
Simplified29.0%
Taylor expanded in a around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in b around inf 42.4%
*-commutative42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in x around inf 40.8%
Final simplification35.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -8.2e-22)
(* c (* y4 (* y y3)))
(if (<= y -2.5e-88)
(* a (* y (* y3 (- y5))))
(if (<= y -3.75e-180)
(* y0 (* c (* x y2)))
(if (<= y 180000.0) (* i (* (* z t) c)) (* a (* (* x y) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -8.2e-22) {
tmp = c * (y4 * (y * y3));
} else if (y <= -2.5e-88) {
tmp = a * (y * (y3 * -y5));
} else if (y <= -3.75e-180) {
tmp = y0 * (c * (x * y2));
} else if (y <= 180000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-8.2d-22)) then
tmp = c * (y4 * (y * y3))
else if (y <= (-2.5d-88)) then
tmp = a * (y * (y3 * -y5))
else if (y <= (-3.75d-180)) then
tmp = y0 * (c * (x * y2))
else if (y <= 180000.0d0) then
tmp = i * ((z * t) * c)
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -8.2e-22) {
tmp = c * (y4 * (y * y3));
} else if (y <= -2.5e-88) {
tmp = a * (y * (y3 * -y5));
} else if (y <= -3.75e-180) {
tmp = y0 * (c * (x * y2));
} else if (y <= 180000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -8.2e-22: tmp = c * (y4 * (y * y3)) elif y <= -2.5e-88: tmp = a * (y * (y3 * -y5)) elif y <= -3.75e-180: tmp = y0 * (c * (x * y2)) elif y <= 180000.0: tmp = i * ((z * t) * c) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -8.2e-22) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= -2.5e-88) tmp = Float64(a * Float64(y * Float64(y3 * Float64(-y5)))); elseif (y <= -3.75e-180) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (y <= 180000.0) tmp = Float64(i * Float64(Float64(z * t) * c)); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -8.2e-22) tmp = c * (y4 * (y * y3)); elseif (y <= -2.5e-88) tmp = a * (y * (y3 * -y5)); elseif (y <= -3.75e-180) tmp = y0 * (c * (x * y2)); elseif (y <= 180000.0) tmp = i * ((z * t) * c); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -8.2e-22], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.5e-88], N[(a * N[(y * N[(y3 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.75e-180], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 180000.0], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{-22}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{-88}:\\
\;\;\;\;a \cdot \left(y \cdot \left(y3 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y \leq -3.75 \cdot 10^{-180}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 180000:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if y < -8.1999999999999999e-22Initial program 24.2%
associate-+l-24.2%
Simplified24.2%
Taylor expanded in c around inf 46.2%
associate--l+46.2%
mul-1-neg46.2%
Simplified46.2%
Taylor expanded in y2 around inf 44.0%
Taylor expanded in y3 around inf 34.8%
if -8.1999999999999999e-22 < y < -2.50000000000000004e-88Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in a around inf 30.0%
associate--l+30.0%
mul-1-neg30.0%
mul-1-neg30.0%
Simplified30.0%
Taylor expanded in y around inf 44.4%
associate-*r*44.4%
+-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in x around 0 43.8%
mul-1-neg43.8%
*-commutative43.8%
Simplified43.8%
if -2.50000000000000004e-88 < y < -3.75000000000000008e-180Initial program 28.7%
associate-+l-28.7%
Simplified28.7%
Taylor expanded in c around inf 53.1%
associate--l+53.1%
mul-1-neg53.1%
Simplified53.1%
Taylor expanded in y2 around inf 53.2%
Taylor expanded in y0 around inf 42.6%
*-commutative42.6%
associate-*l*42.6%
*-commutative42.6%
Simplified42.6%
if -3.75000000000000008e-180 < y < 1.8e5Initial program 34.9%
associate-+l-34.9%
Simplified34.9%
Taylor expanded in c around inf 35.7%
associate--l+35.7%
mul-1-neg35.7%
Simplified35.7%
Taylor expanded in y2 around inf 32.2%
Taylor expanded in z around inf 24.4%
*-commutative24.4%
associate-*l*25.6%
Simplified25.6%
if 1.8e5 < y Initial program 29.0%
associate-+l-29.0%
Simplified29.0%
Taylor expanded in a around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in b around inf 42.4%
*-commutative42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in x around inf 40.8%
Final simplification34.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y3 -1.35e-29) (not (<= y3 7.2e+196))) (* c (* y4 (* y y3))) (* c (* i (- (* z t) (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y3 <= -1.35e-29) || !(y3 <= 7.2e+196)) {
tmp = c * (y4 * (y * y3));
} else {
tmp = c * (i * ((z * t) - (x * y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y3 <= (-1.35d-29)) .or. (.not. (y3 <= 7.2d+196))) then
tmp = c * (y4 * (y * y3))
else
tmp = c * (i * ((z * t) - (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y3 <= -1.35e-29) || !(y3 <= 7.2e+196)) {
tmp = c * (y4 * (y * y3));
} else {
tmp = c * (i * ((z * t) - (x * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y3 <= -1.35e-29) or not (y3 <= 7.2e+196): tmp = c * (y4 * (y * y3)) else: tmp = c * (i * ((z * t) - (x * y))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y3 <= -1.35e-29) || !(y3 <= 7.2e+196)) tmp = Float64(c * Float64(y4 * Float64(y * y3))); else tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y3 <= -1.35e-29) || ~((y3 <= 7.2e+196))) tmp = c * (y4 * (y * y3)); else tmp = c * (i * ((z * t) - (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y3, -1.35e-29], N[Not[LessEqual[y3, 7.2e+196]], $MachinePrecision]], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.35 \cdot 10^{-29} \lor \neg \left(y3 \leq 7.2 \cdot 10^{+196}\right):\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\end{array}
\end{array}
if y3 < -1.35000000000000011e-29 or 7.20000000000000015e196 < y3 Initial program 24.1%
associate-+l-24.1%
Simplified24.1%
Taylor expanded in c around inf 46.1%
associate--l+46.1%
mul-1-neg46.1%
Simplified46.1%
Taylor expanded in y2 around inf 41.0%
Taylor expanded in y3 around inf 36.6%
if -1.35000000000000011e-29 < y3 < 7.20000000000000015e196Initial program 31.7%
associate-+l-31.7%
Simplified31.7%
Taylor expanded in c around inf 36.8%
associate--l+36.8%
mul-1-neg36.8%
Simplified36.8%
Taylor expanded in i around inf 32.3%
*-commutative32.3%
*-commutative32.3%
Simplified32.3%
Final simplification33.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.7e-29)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y3 3.45e+193)
(* c (* i (- (* z t) (* x y))))
(* c (* y4 (* y y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.7e-29) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y3 <= 3.45e+193) {
tmp = c * (i * ((z * t) - (x * y)));
} else {
tmp = c * (y4 * (y * y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.7d-29)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y3 <= 3.45d+193) then
tmp = c * (i * ((z * t) - (x * y)))
else
tmp = c * (y4 * (y * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.7e-29) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y3 <= 3.45e+193) {
tmp = c * (i * ((z * t) - (x * y)));
} else {
tmp = c * (y4 * (y * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.7e-29: tmp = c * (y * ((y3 * y4) - (x * i))) elif y3 <= 3.45e+193: tmp = c * (i * ((z * t) - (x * y))) else: tmp = c * (y4 * (y * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.7e-29) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y3 <= 3.45e+193) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); else tmp = Float64(c * Float64(y4 * Float64(y * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.7e-29) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y3 <= 3.45e+193) tmp = c * (i * ((z * t) - (x * y))); else tmp = c * (y4 * (y * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.7e-29], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.45e+193], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.7 \cdot 10^{-29}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq 3.45 \cdot 10^{+193}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.69999999999999986e-29Initial program 25.9%
associate-+l-25.9%
Simplified25.9%
Taylor expanded in c around inf 43.6%
associate--l+43.6%
mul-1-neg43.6%
Simplified43.6%
Taylor expanded in y around -inf 39.0%
mul-1-neg39.0%
unsub-neg39.0%
*-commutative39.0%
*-commutative39.0%
Simplified39.0%
if -1.69999999999999986e-29 < y3 < 3.45e193Initial program 31.7%
associate-+l-31.7%
Simplified31.7%
Taylor expanded in c around inf 36.8%
associate--l+36.8%
mul-1-neg36.8%
Simplified36.8%
Taylor expanded in i around inf 32.3%
*-commutative32.3%
*-commutative32.3%
Simplified32.3%
if 3.45e193 < y3 Initial program 19.3%
associate-+l-19.3%
Simplified19.3%
Taylor expanded in c around inf 52.9%
associate--l+52.9%
mul-1-neg52.9%
Simplified52.9%
Taylor expanded in y2 around inf 48.1%
Taylor expanded in y3 around inf 43.7%
Final simplification34.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.25e-29)
(* c (* y (- (* y3 y4) (* x i))))
(if (<= y3 1.4e+191)
(* c (* i (- (* z t) (* x y))))
(* c (* y0 (- (* x y2) (* z 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 tmp;
if (y3 <= -1.25e-29) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y3 <= 1.4e+191) {
tmp = c * (i * ((z * t) - (x * y)));
} else {
tmp = c * (y0 * ((x * y2) - (z * 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) :: tmp
if (y3 <= (-1.25d-29)) then
tmp = c * (y * ((y3 * y4) - (x * i)))
else if (y3 <= 1.4d+191) then
tmp = c * (i * ((z * t) - (x * y)))
else
tmp = c * (y0 * ((x * y2) - (z * 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 tmp;
if (y3 <= -1.25e-29) {
tmp = c * (y * ((y3 * y4) - (x * i)));
} else if (y3 <= 1.4e+191) {
tmp = c * (i * ((z * t) - (x * y)));
} else {
tmp = c * (y0 * ((x * y2) - (z * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.25e-29: tmp = c * (y * ((y3 * y4) - (x * i))) elif y3 <= 1.4e+191: tmp = c * (i * ((z * t) - (x * y))) else: tmp = c * (y0 * ((x * y2) - (z * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.25e-29) tmp = Float64(c * Float64(y * Float64(Float64(y3 * y4) - Float64(x * i)))); elseif (y3 <= 1.4e+191) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); else tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * 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) tmp = 0.0; if (y3 <= -1.25e-29) tmp = c * (y * ((y3 * y4) - (x * i))); elseif (y3 <= 1.4e+191) tmp = c * (i * ((z * t) - (x * y))); else tmp = c * (y0 * ((x * y2) - (z * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.25e-29], N[(c * N[(y * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.4e+191], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.25 \cdot 10^{-29}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4 - x \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq 1.4 \cdot 10^{+191}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.24999999999999996e-29Initial program 25.9%
associate-+l-25.9%
Simplified25.9%
Taylor expanded in c around inf 43.6%
associate--l+43.6%
mul-1-neg43.6%
Simplified43.6%
Taylor expanded in y around -inf 39.0%
mul-1-neg39.0%
unsub-neg39.0%
*-commutative39.0%
*-commutative39.0%
Simplified39.0%
if -1.24999999999999996e-29 < y3 < 1.3999999999999999e191Initial program 31.9%
associate-+l-31.9%
Simplified31.9%
Taylor expanded in c around inf 36.4%
associate--l+36.4%
mul-1-neg36.4%
Simplified36.4%
Taylor expanded in i around inf 32.5%
*-commutative32.5%
*-commutative32.5%
Simplified32.5%
if 1.3999999999999999e191 < y3 Initial program 18.4%
associate-+l-18.4%
Simplified18.4%
Taylor expanded in c around inf 55.0%
associate--l+55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in y0 around -inf 47.0%
Final simplification35.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y4 (* y y3)))))
(if (<= y -1.5e-34)
t_1
(if (<= y -2.2e-179)
(* c (* y0 (* x y2)))
(if (<= y 380000000.0) (* c (* (* z t) 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 = c * (y4 * (y * y3));
double tmp;
if (y <= -1.5e-34) {
tmp = t_1;
} else if (y <= -2.2e-179) {
tmp = c * (y0 * (x * y2));
} else if (y <= 380000000.0) {
tmp = c * ((z * t) * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y4 * (y * y3))
if (y <= (-1.5d-34)) then
tmp = t_1
else if (y <= (-2.2d-179)) then
tmp = c * (y0 * (x * y2))
else if (y <= 380000000.0d0) then
tmp = c * ((z * t) * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y4 * (y * y3));
double tmp;
if (y <= -1.5e-34) {
tmp = t_1;
} else if (y <= -2.2e-179) {
tmp = c * (y0 * (x * y2));
} else if (y <= 380000000.0) {
tmp = c * ((z * t) * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y4 * (y * y3)) tmp = 0 if y <= -1.5e-34: tmp = t_1 elif y <= -2.2e-179: tmp = c * (y0 * (x * y2)) elif y <= 380000000.0: tmp = c * ((z * t) * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y4 * Float64(y * y3))) tmp = 0.0 if (y <= -1.5e-34) tmp = t_1; elseif (y <= -2.2e-179) tmp = Float64(c * Float64(y0 * Float64(x * y2))); elseif (y <= 380000000.0) tmp = Float64(c * Float64(Float64(z * t) * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y4 * (y * y3)); tmp = 0.0; if (y <= -1.5e-34) tmp = t_1; elseif (y <= -2.2e-179) tmp = c * (y0 * (x * y2)); elseif (y <= 380000000.0) tmp = c * ((z * t) * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e-34], t$95$1, If[LessEqual[y, -2.2e-179], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 380000000.0], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.2 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 380000000:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.5e-34 or 3.8e8 < y Initial program 25.6%
associate-+l-25.6%
Simplified25.6%
Taylor expanded in c around inf 39.4%
associate--l+39.4%
mul-1-neg39.4%
Simplified39.4%
Taylor expanded in y2 around inf 38.8%
Taylor expanded in y3 around inf 31.0%
if -1.5e-34 < y < -2.20000000000000005e-179Initial program 29.3%
associate-+l-29.3%
Simplified29.3%
Taylor expanded in c around inf 52.3%
associate--l+52.3%
mul-1-neg52.3%
Simplified52.3%
Taylor expanded in y4 around 0 45.8%
Taylor expanded in y2 around inf 32.3%
if -2.20000000000000005e-179 < y < 3.8e8Initial program 35.7%
associate-+l-35.7%
Simplified35.7%
Taylor expanded in c around inf 35.3%
associate--l+35.3%
mul-1-neg35.3%
Simplified35.3%
Taylor expanded in i around inf 26.5%
*-commutative26.5%
*-commutative26.5%
Simplified26.5%
Taylor expanded in z around inf 24.1%
*-commutative24.1%
Simplified24.1%
Final simplification28.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.8e-34)
(* c (* y4 (* y y3)))
(if (<= y -1.06e-179)
(* c (* y0 (* x y2)))
(if (<= y 3300000000000.0) (* c (* (* z t) i)) (* c (* y3 (* y y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.8e-34) {
tmp = c * (y4 * (y * y3));
} else if (y <= -1.06e-179) {
tmp = c * (y0 * (x * y2));
} else if (y <= 3300000000000.0) {
tmp = c * ((z * t) * i);
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.8d-34)) then
tmp = c * (y4 * (y * y3))
else if (y <= (-1.06d-179)) then
tmp = c * (y0 * (x * y2))
else if (y <= 3300000000000.0d0) then
tmp = c * ((z * t) * i)
else
tmp = c * (y3 * (y * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.8e-34) {
tmp = c * (y4 * (y * y3));
} else if (y <= -1.06e-179) {
tmp = c * (y0 * (x * y2));
} else if (y <= 3300000000000.0) {
tmp = c * ((z * t) * i);
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.8e-34: tmp = c * (y4 * (y * y3)) elif y <= -1.06e-179: tmp = c * (y0 * (x * y2)) elif y <= 3300000000000.0: tmp = c * ((z * t) * i) else: tmp = c * (y3 * (y * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.8e-34) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= -1.06e-179) tmp = Float64(c * Float64(y0 * Float64(x * y2))); elseif (y <= 3300000000000.0) tmp = Float64(c * Float64(Float64(z * t) * i)); else tmp = Float64(c * Float64(y3 * Float64(y * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.8e-34) tmp = c * (y4 * (y * y3)); elseif (y <= -1.06e-179) tmp = c * (y0 * (x * y2)); elseif (y <= 3300000000000.0) tmp = c * ((z * t) * i); else tmp = c * (y3 * (y * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.8e-34], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.06e-179], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3300000000000.0], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(y3 * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{-34}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -1.06 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;y \leq 3300000000000:\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4\right)\right)\\
\end{array}
\end{array}
if y < -1.80000000000000004e-34Initial program 24.3%
associate-+l-24.3%
Simplified24.3%
Taylor expanded in c around inf 45.3%
associate--l+45.3%
mul-1-neg45.3%
Simplified45.3%
Taylor expanded in y2 around inf 43.1%
Taylor expanded in y3 around inf 34.4%
if -1.80000000000000004e-34 < y < -1.0599999999999999e-179Initial program 29.3%
associate-+l-29.3%
Simplified29.3%
Taylor expanded in c around inf 52.3%
associate--l+52.3%
mul-1-neg52.3%
Simplified52.3%
Taylor expanded in y4 around 0 45.8%
Taylor expanded in y2 around inf 32.3%
if -1.0599999999999999e-179 < y < 3.3e12Initial program 35.7%
associate-+l-35.7%
Simplified35.7%
Taylor expanded in c around inf 35.3%
associate--l+35.3%
mul-1-neg35.3%
Simplified35.3%
Taylor expanded in i around inf 26.5%
*-commutative26.5%
*-commutative26.5%
Simplified26.5%
Taylor expanded in z around inf 24.1%
*-commutative24.1%
Simplified24.1%
if 3.3e12 < y Initial program 27.7%
associate-+l-27.7%
Simplified27.7%
Taylor expanded in c around inf 29.9%
associate--l+29.9%
mul-1-neg29.9%
Simplified29.9%
Taylor expanded in y2 around inf 31.8%
Taylor expanded in y3 around inf 25.3%
associate-*r*30.6%
Simplified30.6%
Final simplification30.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -4.6e-30)
(* c (* y4 (* y y3)))
(if (<= y 82000.0)
(* i (* (* z t) c))
(if (<= y 2.75e+216) (* y (* a (* x b))) (* c (* y3 (* y y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -4.6e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 82000.0) {
tmp = i * ((z * t) * c);
} else if (y <= 2.75e+216) {
tmp = y * (a * (x * b));
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-4.6d-30)) then
tmp = c * (y4 * (y * y3))
else if (y <= 82000.0d0) then
tmp = i * ((z * t) * c)
else if (y <= 2.75d+216) then
tmp = y * (a * (x * b))
else
tmp = c * (y3 * (y * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -4.6e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 82000.0) {
tmp = i * ((z * t) * c);
} else if (y <= 2.75e+216) {
tmp = y * (a * (x * b));
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -4.6e-30: tmp = c * (y4 * (y * y3)) elif y <= 82000.0: tmp = i * ((z * t) * c) elif y <= 2.75e+216: tmp = y * (a * (x * b)) else: tmp = c * (y3 * (y * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -4.6e-30) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= 82000.0) tmp = Float64(i * Float64(Float64(z * t) * c)); elseif (y <= 2.75e+216) tmp = Float64(y * Float64(a * Float64(x * b))); else tmp = Float64(c * Float64(y3 * Float64(y * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -4.6e-30) tmp = c * (y4 * (y * y3)); elseif (y <= 82000.0) tmp = i * ((z * t) * c); elseif (y <= 2.75e+216) tmp = y * (a * (x * b)); else tmp = c * (y3 * (y * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -4.6e-30], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 82000.0], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.75e+216], N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y3 * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.6 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 82000:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{elif}\;y \leq 2.75 \cdot 10^{+216}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4\right)\right)\\
\end{array}
\end{array}
if y < -4.59999999999999968e-30Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in c around inf 46.3%
associate--l+46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in y2 around inf 44.1%
Taylor expanded in y3 around inf 35.2%
if -4.59999999999999968e-30 < y < 82000Initial program 32.8%
associate-+l-32.8%
Simplified32.8%
Taylor expanded in c around inf 39.6%
associate--l+39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in y2 around inf 36.2%
Taylor expanded in z around inf 22.3%
*-commutative22.3%
associate-*l*23.9%
Simplified23.9%
if 82000 < y < 2.75e216Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in a around inf 36.5%
associate--l+36.5%
mul-1-neg36.5%
mul-1-neg36.5%
Simplified36.5%
Taylor expanded in y around inf 50.6%
associate-*r*45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in x around inf 37.5%
*-commutative37.5%
Simplified37.5%
if 2.75e216 < y Initial program 36.8%
associate-+l-36.8%
Simplified36.8%
Taylor expanded in c around inf 37.4%
associate--l+37.4%
mul-1-neg37.4%
Simplified37.4%
Taylor expanded in y2 around inf 37.4%
Taylor expanded in y3 around inf 38.4%
associate-*r*48.4%
Simplified48.4%
Final simplification31.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -5.4e-30)
(* c (* y4 (* y y3)))
(if (<= y 80000.0)
(* i (* (* z t) c))
(if (<= y 3.1e+215) (* (* y a) (* x b)) (* c (* y3 (* y y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -5.4e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 80000.0) {
tmp = i * ((z * t) * c);
} else if (y <= 3.1e+215) {
tmp = (y * a) * (x * b);
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-5.4d-30)) then
tmp = c * (y4 * (y * y3))
else if (y <= 80000.0d0) then
tmp = i * ((z * t) * c)
else if (y <= 3.1d+215) then
tmp = (y * a) * (x * b)
else
tmp = c * (y3 * (y * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -5.4e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 80000.0) {
tmp = i * ((z * t) * c);
} else if (y <= 3.1e+215) {
tmp = (y * a) * (x * b);
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -5.4e-30: tmp = c * (y4 * (y * y3)) elif y <= 80000.0: tmp = i * ((z * t) * c) elif y <= 3.1e+215: tmp = (y * a) * (x * b) else: tmp = c * (y3 * (y * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -5.4e-30) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= 80000.0) tmp = Float64(i * Float64(Float64(z * t) * c)); elseif (y <= 3.1e+215) tmp = Float64(Float64(y * a) * Float64(x * b)); else tmp = Float64(c * Float64(y3 * Float64(y * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -5.4e-30) tmp = c * (y4 * (y * y3)); elseif (y <= 80000.0) tmp = i * ((z * t) * c); elseif (y <= 3.1e+215) tmp = (y * a) * (x * b); else tmp = c * (y3 * (y * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -5.4e-30], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 80000.0], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e+215], N[(N[(y * a), $MachinePrecision] * N[(x * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(y3 * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.4 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 80000:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+215}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4\right)\right)\\
\end{array}
\end{array}
if y < -5.39999999999999975e-30Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in c around inf 46.3%
associate--l+46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in y2 around inf 44.1%
Taylor expanded in y3 around inf 35.2%
if -5.39999999999999975e-30 < y < 8e4Initial program 32.8%
associate-+l-32.8%
Simplified32.8%
Taylor expanded in c around inf 39.6%
associate--l+39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in y2 around inf 36.2%
Taylor expanded in z around inf 22.3%
*-commutative22.3%
associate-*l*23.9%
Simplified23.9%
if 8e4 < y < 3.0999999999999999e215Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in a around inf 36.5%
associate--l+36.5%
mul-1-neg36.5%
mul-1-neg36.5%
Simplified36.5%
Taylor expanded in y around inf 50.6%
associate-*r*45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in x around inf 40.0%
*-commutative40.0%
Simplified40.0%
if 3.0999999999999999e215 < y Initial program 36.8%
associate-+l-36.8%
Simplified36.8%
Taylor expanded in c around inf 37.4%
associate--l+37.4%
mul-1-neg37.4%
Simplified37.4%
Taylor expanded in y2 around inf 37.4%
Taylor expanded in y3 around inf 38.4%
associate-*r*48.4%
Simplified48.4%
Final simplification31.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= z -1.8e+26) (not (<= z 2.1e+22))) (* c (* (* z t) i)) (* c (* y0 (* 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 tmp;
if ((z <= -1.8e+26) || !(z <= 2.1e+22)) {
tmp = c * ((z * t) * i);
} else {
tmp = c * (y0 * (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) :: tmp
if ((z <= (-1.8d+26)) .or. (.not. (z <= 2.1d+22))) then
tmp = c * ((z * t) * i)
else
tmp = c * (y0 * (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 tmp;
if ((z <= -1.8e+26) || !(z <= 2.1e+22)) {
tmp = c * ((z * t) * i);
} else {
tmp = c * (y0 * (x * y2));
}
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.8e+26) or not (z <= 2.1e+22): tmp = c * ((z * t) * i) else: tmp = c * (y0 * (x * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((z <= -1.8e+26) || !(z <= 2.1e+22)) tmp = Float64(c * Float64(Float64(z * t) * i)); else tmp = Float64(c * Float64(y0 * 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) tmp = 0.0; if ((z <= -1.8e+26) || ~((z <= 2.1e+22))) tmp = c * ((z * t) * i); else tmp = c * (y0 * (x * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[z, -1.8e+26], N[Not[LessEqual[z, 2.1e+22]], $MachinePrecision]], N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{+26} \lor \neg \left(z \leq 2.1 \cdot 10^{+22}\right):\\
\;\;\;\;c \cdot \left(\left(z \cdot t\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2\right)\right)\\
\end{array}
\end{array}
if z < -1.80000000000000012e26 or 2.0999999999999998e22 < z Initial program 25.1%
associate-+l-25.1%
Simplified25.1%
Taylor expanded in c around inf 31.8%
associate--l+31.8%
mul-1-neg31.8%
Simplified31.8%
Taylor expanded in i around inf 34.9%
*-commutative34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in z around inf 32.3%
*-commutative32.3%
Simplified32.3%
if -1.80000000000000012e26 < z < 2.0999999999999998e22Initial program 32.7%
associate-+l-32.7%
Simplified32.7%
Taylor expanded in c around inf 45.7%
associate--l+45.7%
mul-1-neg45.7%
Simplified45.7%
Taylor expanded in y4 around 0 32.3%
Taylor expanded in y2 around inf 20.0%
Final simplification25.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -6.5e-30) (* c (* y4 (* y y3))) (if (<= y 1.28e+126) (* i (* (* z t) c)) (* c (* y3 (* y y4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -6.5e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 1.28e+126) {
tmp = i * ((z * t) * c);
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-6.5d-30)) then
tmp = c * (y4 * (y * y3))
else if (y <= 1.28d+126) then
tmp = i * ((z * t) * c)
else
tmp = c * (y3 * (y * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -6.5e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 1.28e+126) {
tmp = i * ((z * t) * c);
} else {
tmp = c * (y3 * (y * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -6.5e-30: tmp = c * (y4 * (y * y3)) elif y <= 1.28e+126: tmp = i * ((z * t) * c) else: tmp = c * (y3 * (y * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -6.5e-30) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= 1.28e+126) tmp = Float64(i * Float64(Float64(z * t) * c)); else tmp = Float64(c * Float64(y3 * Float64(y * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -6.5e-30) tmp = c * (y4 * (y * y3)); elseif (y <= 1.28e+126) tmp = i * ((z * t) * c); else tmp = c * (y3 * (y * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -6.5e-30], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.28e+126], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(c * N[(y3 * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 1.28 \cdot 10^{+126}:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4\right)\right)\\
\end{array}
\end{array}
if y < -6.5000000000000005e-30Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in c around inf 46.3%
associate--l+46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in y2 around inf 44.1%
Taylor expanded in y3 around inf 35.2%
if -6.5000000000000005e-30 < y < 1.27999999999999993e126Initial program 31.9%
associate-+l-31.9%
Simplified31.9%
Taylor expanded in c around inf 36.9%
associate--l+36.9%
mul-1-neg36.9%
Simplified36.9%
Taylor expanded in y2 around inf 34.8%
Taylor expanded in z around inf 21.1%
*-commutative21.1%
associate-*l*23.2%
Simplified23.2%
if 1.27999999999999993e126 < y Initial program 30.3%
associate-+l-30.3%
Simplified30.3%
Taylor expanded in c around inf 33.8%
associate--l+33.8%
mul-1-neg33.8%
Simplified33.8%
Taylor expanded in y2 around inf 33.8%
Taylor expanded in y3 around inf 28.8%
associate-*r*37.5%
Simplified37.5%
Final simplification29.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -8.5e-30) (* c (* y4 (* y y3))) (if (<= y 840000.0) (* i (* (* z t) c)) (* a (* x (* y b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -8.5e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 840000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * (x * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-8.5d-30)) then
tmp = c * (y4 * (y * y3))
else if (y <= 840000.0d0) then
tmp = i * ((z * t) * c)
else
tmp = a * (x * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -8.5e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 840000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * (x * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -8.5e-30: tmp = c * (y4 * (y * y3)) elif y <= 840000.0: tmp = i * ((z * t) * c) else: tmp = a * (x * (y * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -8.5e-30) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= 840000.0) tmp = Float64(i * Float64(Float64(z * t) * c)); else tmp = Float64(a * Float64(x * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -8.5e-30) tmp = c * (y4 * (y * y3)); elseif (y <= 840000.0) tmp = i * ((z * t) * c); else tmp = a * (x * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -8.5e-30], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 840000.0], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 840000:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -8.49999999999999931e-30Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in c around inf 46.3%
associate--l+46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in y2 around inf 44.1%
Taylor expanded in y3 around inf 35.2%
if -8.49999999999999931e-30 < y < 8.4e5Initial program 32.8%
associate-+l-32.8%
Simplified32.8%
Taylor expanded in c around inf 39.6%
associate--l+39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in y2 around inf 36.2%
Taylor expanded in z around inf 22.3%
*-commutative22.3%
associate-*l*23.9%
Simplified23.9%
if 8.4e5 < y Initial program 29.0%
associate-+l-29.0%
Simplified29.0%
Taylor expanded in a around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in b around inf 42.4%
*-commutative42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in x around inf 35.6%
*-commutative35.6%
*-commutative35.6%
associate-*l*39.1%
Simplified39.1%
Final simplification30.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -6.5e-30) (* c (* y4 (* y y3))) (if (<= y 440000.0) (* i (* (* z t) c)) (* a (* (* x y) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -6.5e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 440000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-6.5d-30)) then
tmp = c * (y4 * (y * y3))
else if (y <= 440000.0d0) then
tmp = i * ((z * t) * c)
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -6.5e-30) {
tmp = c * (y4 * (y * y3));
} else if (y <= 440000.0) {
tmp = i * ((z * t) * c);
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -6.5e-30: tmp = c * (y4 * (y * y3)) elif y <= 440000.0: tmp = i * ((z * t) * c) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -6.5e-30) tmp = Float64(c * Float64(y4 * Float64(y * y3))); elseif (y <= 440000.0) tmp = Float64(i * Float64(Float64(z * t) * c)); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -6.5e-30) tmp = c * (y4 * (y * y3)); elseif (y <= 440000.0) tmp = i * ((z * t) * c); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -6.5e-30], N[(c * N[(y4 * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 440000.0], N[(i * N[(N[(z * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq 440000:\\
\;\;\;\;i \cdot \left(\left(z \cdot t\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if y < -6.5000000000000005e-30Initial program 24.9%
associate-+l-24.9%
Simplified24.9%
Taylor expanded in c around inf 46.3%
associate--l+46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in y2 around inf 44.1%
Taylor expanded in y3 around inf 35.2%
if -6.5000000000000005e-30 < y < 4.4e5Initial program 32.8%
associate-+l-32.8%
Simplified32.8%
Taylor expanded in c around inf 39.6%
associate--l+39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in y2 around inf 36.2%
Taylor expanded in z around inf 22.3%
*-commutative22.3%
associate-*l*23.9%
Simplified23.9%
if 4.4e5 < y Initial program 29.0%
associate-+l-29.0%
Simplified29.0%
Taylor expanded in a around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in b around inf 42.4%
*-commutative42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in x around inf 40.8%
Final simplification31.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* c (* (* z t) 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) {
return c * ((z * t) * i);
}
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 = c * ((z * t) * i)
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 c * ((z * t) * i);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * ((z * t) * i)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(Float64(z * t) * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * ((z * t) * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(N[(z * t), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(\left(z \cdot t\right) \cdot i\right)
\end{array}
Initial program 29.4%
associate-+l-29.4%
Simplified29.4%
Taylor expanded in c around inf 39.6%
associate--l+39.6%
mul-1-neg39.6%
Simplified39.6%
Taylor expanded in i around inf 27.9%
*-commutative27.9%
*-commutative27.9%
Simplified27.9%
Taylor expanded in z around inf 17.9%
*-commutative17.9%
Simplified17.9%
Final simplification17.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t_9\\
t_11 := t_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t_4 \cdot t_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t_3 \cdot t_1 - t_14\right)\right) + \left(t_8 - \left(t_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t_13\right)\right) + \left(t_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t_10 - \left(y \cdot x - z \cdot t\right) \cdot t_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t_8 - \left(t_11 - t_6\right)\right) - \left(\frac{t_3}{\frac{1}{t_1}} - t_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t_2 - \left(t_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t_5\right) - t_17 \cdot t_1\right) + t_13\\
\end{array}
\end{array}
herbie shell --seed 2023176
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))