
(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 45 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x j) (* z k)))
(t_2 (- (* c y0) (* a y1)))
(t_3 (- (* x y) (* z t)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5
(*
b
(+
(+ (* a t_3) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j))))))
(t_6 (- (* z y3) (* x y2)))
(t_7 (* y1 (+ (* i t_1) (+ (* y4 (- (* k y2) (* j y3))) (* a t_6))))))
(if (<= k -7.1e+50)
(*
k
(+
(+ (* y2 t_4) (* y (- (* i y5) (* b y4))))
(* z (- (* b y0) (* i y1)))))
(if (<= k -3.2e-50)
t_7
(if (<= k -6.8e-91)
(* y2 (+ (+ (* k t_4) (* x t_2)) (* t (- (* a y5) (* c y4)))))
(if (<= k -6.5e-103)
t_7
(if (<= k -3e-138)
t_5
(if (<= k -1.2e-205)
(* a (+ (+ (* b t_3) (* y1 t_6)) (* y5 (- (* t y2) (* y y3)))))
(if (<= k -6e-243)
(*
j
(+
(+
(* t (- (* b y4) (* i y5)))
(* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0)))))
(if (<= k 3.7e-221)
(*
c
(- (* y4 (- (* y y3) (* t y2))) (+ (* i t_3) (* y0 t_6))))
(if (<= k 5.1e-118)
t_5
(if (<= k 1.8e+212)
(*
y3
(-
(* y (- (* c y4) (* a y5)))
(+ (* j t_4) (* z t_2))))
(*
i
(+
(* y1 t_1)
(+
(* y5 (- (* y k) (* t j)))
(* c (- (* 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 t_1 = (x * j) - (z * k);
double t_2 = (c * y0) - (a * y1);
double t_3 = (x * y) - (z * t);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_6 = (z * y3) - (x * y2);
double t_7 = y1 * ((i * t_1) + ((y4 * ((k * y2) - (j * y3))) + (a * t_6)));
double tmp;
if (k <= -7.1e+50) {
tmp = k * (((y2 * t_4) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))));
} else if (k <= -3.2e-50) {
tmp = t_7;
} else if (k <= -6.8e-91) {
tmp = y2 * (((k * t_4) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
} else if (k <= -6.5e-103) {
tmp = t_7;
} else if (k <= -3e-138) {
tmp = t_5;
} else if (k <= -1.2e-205) {
tmp = a * (((b * t_3) + (y1 * t_6)) + (y5 * ((t * y2) - (y * y3))));
} else if (k <= -6e-243) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (k <= 3.7e-221) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_6)));
} else if (k <= 5.1e-118) {
tmp = t_5;
} else if (k <= 1.8e+212) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_2)));
} else {
tmp = i * ((y1 * t_1) + ((y5 * ((y * k) - (t * j))) + (c * ((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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (x * j) - (z * k)
t_2 = (c * y0) - (a * y1)
t_3 = (x * y) - (z * t)
t_4 = (y1 * y4) - (y0 * y5)
t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
t_6 = (z * y3) - (x * y2)
t_7 = y1 * ((i * t_1) + ((y4 * ((k * y2) - (j * y3))) + (a * t_6)))
if (k <= (-7.1d+50)) then
tmp = k * (((y2 * t_4) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))))
else if (k <= (-3.2d-50)) then
tmp = t_7
else if (k <= (-6.8d-91)) then
tmp = y2 * (((k * t_4) + (x * t_2)) + (t * ((a * y5) - (c * y4))))
else if (k <= (-6.5d-103)) then
tmp = t_7
else if (k <= (-3d-138)) then
tmp = t_5
else if (k <= (-1.2d-205)) then
tmp = a * (((b * t_3) + (y1 * t_6)) + (y5 * ((t * y2) - (y * y3))))
else if (k <= (-6d-243)) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
else if (k <= 3.7d-221) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_6)))
else if (k <= 5.1d-118) then
tmp = t_5
else if (k <= 1.8d+212) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_2)))
else
tmp = i * ((y1 * t_1) + ((y5 * ((y * k) - (t * j))) + (c * ((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 t_1 = (x * j) - (z * k);
double t_2 = (c * y0) - (a * y1);
double t_3 = (x * y) - (z * t);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_6 = (z * y3) - (x * y2);
double t_7 = y1 * ((i * t_1) + ((y4 * ((k * y2) - (j * y3))) + (a * t_6)));
double tmp;
if (k <= -7.1e+50) {
tmp = k * (((y2 * t_4) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))));
} else if (k <= -3.2e-50) {
tmp = t_7;
} else if (k <= -6.8e-91) {
tmp = y2 * (((k * t_4) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
} else if (k <= -6.5e-103) {
tmp = t_7;
} else if (k <= -3e-138) {
tmp = t_5;
} else if (k <= -1.2e-205) {
tmp = a * (((b * t_3) + (y1 * t_6)) + (y5 * ((t * y2) - (y * y3))));
} else if (k <= -6e-243) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (k <= 3.7e-221) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_6)));
} else if (k <= 5.1e-118) {
tmp = t_5;
} else if (k <= 1.8e+212) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_2)));
} else {
tmp = i * ((y1 * t_1) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * j) - (z * k) t_2 = (c * y0) - (a * y1) t_3 = (x * y) - (z * t) t_4 = (y1 * y4) - (y0 * y5) t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) t_6 = (z * y3) - (x * y2) t_7 = y1 * ((i * t_1) + ((y4 * ((k * y2) - (j * y3))) + (a * t_6))) tmp = 0 if k <= -7.1e+50: tmp = k * (((y2 * t_4) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1)))) elif k <= -3.2e-50: tmp = t_7 elif k <= -6.8e-91: tmp = y2 * (((k * t_4) + (x * t_2)) + (t * ((a * y5) - (c * y4)))) elif k <= -6.5e-103: tmp = t_7 elif k <= -3e-138: tmp = t_5 elif k <= -1.2e-205: tmp = a * (((b * t_3) + (y1 * t_6)) + (y5 * ((t * y2) - (y * y3)))) elif k <= -6e-243: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) elif k <= 3.7e-221: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_6))) elif k <= 5.1e-118: tmp = t_5 elif k <= 1.8e+212: tmp = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_2))) else: tmp = i * ((y1 * t_1) + ((y5 * ((y * k) - (t * j))) + (c * ((z * t) - (x * y))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * j) - Float64(z * k)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(Float64(x * y) - Float64(z * t)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(b * Float64(Float64(Float64(a * t_3) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_6 = Float64(Float64(z * y3) - Float64(x * y2)) t_7 = Float64(y1 * Float64(Float64(i * t_1) + Float64(Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(a * t_6)))) tmp = 0.0 if (k <= -7.1e+50) tmp = Float64(k * Float64(Float64(Float64(y2 * t_4) + Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (k <= -3.2e-50) tmp = t_7; elseif (k <= -6.8e-91) tmp = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * t_2)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (k <= -6.5e-103) tmp = t_7; elseif (k <= -3e-138) tmp = t_5; elseif (k <= -1.2e-205) tmp = Float64(a * Float64(Float64(Float64(b * t_3) + Float64(y1 * t_6)) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (k <= -6e-243) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (k <= 3.7e-221) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_3) + Float64(y0 * t_6)))); elseif (k <= 5.1e-118) tmp = t_5; elseif (k <= 1.8e+212) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) - Float64(Float64(j * t_4) + Float64(z * t_2)))); else tmp = Float64(i * Float64(Float64(y1 * t_1) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) + Float64(c * 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) t_1 = (x * j) - (z * k); t_2 = (c * y0) - (a * y1); t_3 = (x * y) - (z * t); t_4 = (y1 * y4) - (y0 * y5); t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); t_6 = (z * y3) - (x * y2); t_7 = y1 * ((i * t_1) + ((y4 * ((k * y2) - (j * y3))) + (a * t_6))); tmp = 0.0; if (k <= -7.1e+50) tmp = k * (((y2 * t_4) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1)))); elseif (k <= -3.2e-50) tmp = t_7; elseif (k <= -6.8e-91) tmp = y2 * (((k * t_4) + (x * t_2)) + (t * ((a * y5) - (c * y4)))); elseif (k <= -6.5e-103) tmp = t_7; elseif (k <= -3e-138) tmp = t_5; elseif (k <= -1.2e-205) tmp = a * (((b * t_3) + (y1 * t_6)) + (y5 * ((t * y2) - (y * y3)))); elseif (k <= -6e-243) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); elseif (k <= 3.7e-221) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_6))); elseif (k <= 5.1e-118) tmp = t_5; elseif (k <= 1.8e+212) tmp = y3 * ((y * ((c * y4) - (a * y5))) - ((j * t_4) + (z * t_2))); else tmp = i * ((y1 * t_1) + ((y5 * ((y * k) - (t * j))) + (c * ((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_] := Block[{t$95$1 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * N[(N[(N[(a * t$95$3), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y1 * N[(N[(i * t$95$1), $MachinePrecision] + N[(N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -7.1e+50], N[(k * N[(N[(N[(y2 * t$95$4), $MachinePrecision] + N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3.2e-50], t$95$7, If[LessEqual[k, -6.8e-91], N[(y2 * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -6.5e-103], t$95$7, If[LessEqual[k, -3e-138], t$95$5, If[LessEqual[k, -1.2e-205], N[(a * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -6e-243], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.7e-221], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$3), $MachinePrecision] + N[(y0 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.1e-118], t$95$5, If[LessEqual[k, 1.8e+212], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * t$95$4), $MachinePrecision] + N[(z * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(y1 * t$95$1), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot j - z \cdot k\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := x \cdot y - z \cdot t\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := b \cdot \left(\left(a \cdot t\_3 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_6 := z \cdot y3 - x \cdot y2\\
t_7 := y1 \cdot \left(i \cdot t\_1 + \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) + a \cdot t\_6\right)\right)\\
\mathbf{if}\;k \leq -7.1 \cdot 10^{+50}:\\
\;\;\;\;k \cdot \left(\left(y2 \cdot t\_4 + y \cdot \left(i \cdot y5 - b \cdot y4\right)\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -3.2 \cdot 10^{-50}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;k \leq -6.8 \cdot 10^{-91}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_4 + x \cdot t\_2\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq -6.5 \cdot 10^{-103}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;k \leq -3 \cdot 10^{-138}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{-205}:\\
\;\;\;\;a \cdot \left(\left(b \cdot t\_3 + y1 \cdot t\_6\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq -6 \cdot 10^{-243}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 3.7 \cdot 10^{-221}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_3 + y0 \cdot t\_6\right)\right)\\
\mathbf{elif}\;k \leq 5.1 \cdot 10^{-118}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq 1.8 \cdot 10^{+212}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) - \left(j \cdot t\_4 + z \cdot t\_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot t\_1 + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) + c \cdot \left(z \cdot t - x \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if k < -7.09999999999999992e50Initial program 22.5%
Taylor expanded in k around inf 63.8%
+-commutative63.8%
mul-1-neg63.8%
unsub-neg63.8%
*-commutative63.8%
associate-*r*63.8%
neg-mul-163.8%
Simplified63.8%
if -7.09999999999999992e50 < k < -3.2e-50 or -6.80000000000000053e-91 < k < -6.49999999999999966e-103Initial program 50.6%
Taylor expanded in y1 around -inf 71.8%
associate-*r*71.8%
neg-mul-171.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
*-commutative71.8%
*-commutative71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
if -3.2e-50 < k < -6.80000000000000053e-91Initial program 25.0%
Taylor expanded in y2 around inf 75.1%
if -6.49999999999999966e-103 < k < -3.0000000000000001e-138 or 3.69999999999999985e-221 < k < 5.09999999999999964e-118Initial program 31.5%
Taylor expanded in b around inf 69.1%
if -3.0000000000000001e-138 < k < -1.2000000000000001e-205Initial program 12.5%
Taylor expanded in a around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
*-commutative63.1%
*-commutative63.1%
mul-1-neg63.1%
*-commutative63.1%
Simplified63.1%
if -1.2000000000000001e-205 < k < -6.0000000000000002e-243Initial program 46.0%
Taylor expanded in j around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
*-commutative64.6%
Simplified64.6%
if -6.0000000000000002e-243 < k < 3.69999999999999985e-221Initial program 37.5%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
if 5.09999999999999964e-118 < k < 1.8e212Initial program 29.9%
Taylor expanded in y3 around -inf 50.8%
if 1.8e212 < k Initial program 25.0%
Taylor expanded in i around -inf 75.5%
Final simplification64.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5)))
(t_2
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* x j) (* z k)) (- (* i y1) (* b y0))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* t_1 (- (* t j) (* y k))))
(* (- (* c y4) (* a y5)) (- (* y y3) (* t y2))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j t_1))
(* y2 (- (* a y5) (* c y4))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y4) - (i * y5);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * ((a * y5) - (c * y4))));
}
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 = (b * y4) - (i * y5);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * ((a * y5) - (c * y4)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = Float64(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(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t_1 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(c * y4) - Float64(a * y5)) * Float64(Float64(y * y3) - Float64(t * y2)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * t_1)) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y4) - (i * y5); t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((x * j) - (z * k)) * ((i * y1) - (b * y0)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((t * j) - (y * k)))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * ((a * y5) - (c * y4)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(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[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := \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(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t\_1 \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(c \cdot y4 - a \cdot y5\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot t\_1\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.9%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in t around inf 39.6%
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 (- (* z k) (* x j)))
(t_2 (* y0 t_1))
(t_3
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 (- (* a y5) (* c y4))))))
(t_4 (- (* x y) (* z t)))
(t_5 (- (* k y2) (* j y3)))
(t_6 (* t_5 (- (* y1 y4) (* y0 y5))))
(t_7 (- (* z y3) (* x y2))))
(if (<= t -5e+135)
t_3
(if (<= t -5.1e+82)
(* b t_2)
(if (<= t -3.3e-60)
t_3
(if (<= t -1.2e-178)
(+ t_6 (* y (* y4 (- (* c y3) (* b k)))))
(if (<= t -3.8e-261)
(*
y0
(+
(+ (* c (- (* x y2) (* z y3))) (* y5 (- (* j y3) (* k y2))))
(* b t_1)))
(if (<= t 3.5e-277)
(+ t_6 (* y4 (- (* y3 (* y c)) (* b (* y k)))))
(if (<= t 1.15e-197)
(* y1 (+ (* i (- (* x j) (* z k))) (+ (* y4 t_5) (* a t_7))))
(if (<= t 2.7e+61)
(* b (+ (+ (* a t_4) (* y4 (- (* t j) (* y k)))) t_2))
(if (<= t 1.9e+138)
(+
t_6
(+
(* a (+ (* b t_4) (* y1 t_7)))
(* (- (* c y4) (* a y5)) (- (* y y3) (* t y2)))))
t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * k) - (x * j);
double t_2 = y0 * t_1;
double t_3 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
double t_4 = (x * y) - (z * t);
double t_5 = (k * y2) - (j * y3);
double t_6 = t_5 * ((y1 * y4) - (y0 * y5));
double t_7 = (z * y3) - (x * y2);
double tmp;
if (t <= -5e+135) {
tmp = t_3;
} else if (t <= -5.1e+82) {
tmp = b * t_2;
} else if (t <= -3.3e-60) {
tmp = t_3;
} else if (t <= -1.2e-178) {
tmp = t_6 + (y * (y4 * ((c * y3) - (b * k))));
} else if (t <= -3.8e-261) {
tmp = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1));
} else if (t <= 3.5e-277) {
tmp = t_6 + (y4 * ((y3 * (y * c)) - (b * (y * k))));
} else if (t <= 1.15e-197) {
tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_5) + (a * t_7)));
} else if (t <= 2.7e+61) {
tmp = b * (((a * t_4) + (y4 * ((t * j) - (y * k)))) + t_2);
} else if (t <= 1.9e+138) {
tmp = t_6 + ((a * ((b * t_4) + (y1 * t_7))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2))));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (z * k) - (x * j)
t_2 = y0 * t_1
t_3 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))))
t_4 = (x * y) - (z * t)
t_5 = (k * y2) - (j * y3)
t_6 = t_5 * ((y1 * y4) - (y0 * y5))
t_7 = (z * y3) - (x * y2)
if (t <= (-5d+135)) then
tmp = t_3
else if (t <= (-5.1d+82)) then
tmp = b * t_2
else if (t <= (-3.3d-60)) then
tmp = t_3
else if (t <= (-1.2d-178)) then
tmp = t_6 + (y * (y4 * ((c * y3) - (b * k))))
else if (t <= (-3.8d-261)) then
tmp = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1))
else if (t <= 3.5d-277) then
tmp = t_6 + (y4 * ((y3 * (y * c)) - (b * (y * k))))
else if (t <= 1.15d-197) then
tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_5) + (a * t_7)))
else if (t <= 2.7d+61) then
tmp = b * (((a * t_4) + (y4 * ((t * j) - (y * k)))) + t_2)
else if (t <= 1.9d+138) then
tmp = t_6 + ((a * ((b * t_4) + (y1 * t_7))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2))))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * k) - (x * j);
double t_2 = y0 * t_1;
double t_3 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
double t_4 = (x * y) - (z * t);
double t_5 = (k * y2) - (j * y3);
double t_6 = t_5 * ((y1 * y4) - (y0 * y5));
double t_7 = (z * y3) - (x * y2);
double tmp;
if (t <= -5e+135) {
tmp = t_3;
} else if (t <= -5.1e+82) {
tmp = b * t_2;
} else if (t <= -3.3e-60) {
tmp = t_3;
} else if (t <= -1.2e-178) {
tmp = t_6 + (y * (y4 * ((c * y3) - (b * k))));
} else if (t <= -3.8e-261) {
tmp = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1));
} else if (t <= 3.5e-277) {
tmp = t_6 + (y4 * ((y3 * (y * c)) - (b * (y * k))));
} else if (t <= 1.15e-197) {
tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_5) + (a * t_7)));
} else if (t <= 2.7e+61) {
tmp = b * (((a * t_4) + (y4 * ((t * j) - (y * k)))) + t_2);
} else if (t <= 1.9e+138) {
tmp = t_6 + ((a * ((b * t_4) + (y1 * t_7))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2))));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (z * k) - (x * j) t_2 = y0 * t_1 t_3 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))) t_4 = (x * y) - (z * t) t_5 = (k * y2) - (j * y3) t_6 = t_5 * ((y1 * y4) - (y0 * y5)) t_7 = (z * y3) - (x * y2) tmp = 0 if t <= -5e+135: tmp = t_3 elif t <= -5.1e+82: tmp = b * t_2 elif t <= -3.3e-60: tmp = t_3 elif t <= -1.2e-178: tmp = t_6 + (y * (y4 * ((c * y3) - (b * k)))) elif t <= -3.8e-261: tmp = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1)) elif t <= 3.5e-277: tmp = t_6 + (y4 * ((y3 * (y * c)) - (b * (y * k)))) elif t <= 1.15e-197: tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_5) + (a * t_7))) elif t <= 2.7e+61: tmp = b * (((a * t_4) + (y4 * ((t * j) - (y * k)))) + t_2) elif t <= 1.9e+138: tmp = t_6 + ((a * ((b * t_4) + (y1 * t_7))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2)))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(z * k) - Float64(x * j)) t_2 = Float64(y0 * t_1) t_3 = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) t_4 = Float64(Float64(x * y) - Float64(z * t)) t_5 = Float64(Float64(k * y2) - Float64(j * y3)) t_6 = Float64(t_5 * Float64(Float64(y1 * y4) - Float64(y0 * y5))) t_7 = Float64(Float64(z * y3) - Float64(x * y2)) tmp = 0.0 if (t <= -5e+135) tmp = t_3; elseif (t <= -5.1e+82) tmp = Float64(b * t_2); elseif (t <= -3.3e-60) tmp = t_3; elseif (t <= -1.2e-178) tmp = Float64(t_6 + Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k))))); elseif (t <= -3.8e-261) tmp = Float64(y0 * Float64(Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * t_1))); elseif (t <= 3.5e-277) tmp = Float64(t_6 + Float64(y4 * Float64(Float64(y3 * Float64(y * c)) - Float64(b * Float64(y * k))))); elseif (t <= 1.15e-197) tmp = Float64(y1 * Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y4 * t_5) + Float64(a * t_7)))); elseif (t <= 2.7e+61) tmp = Float64(b * Float64(Float64(Float64(a * t_4) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + t_2)); elseif (t <= 1.9e+138) tmp = Float64(t_6 + Float64(Float64(a * Float64(Float64(b * t_4) + Float64(y1 * t_7))) + Float64(Float64(Float64(c * y4) - Float64(a * y5)) * Float64(Float64(y * y3) - Float64(t * y2))))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (z * k) - (x * j); t_2 = y0 * t_1; t_3 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))); t_4 = (x * y) - (z * t); t_5 = (k * y2) - (j * y3); t_6 = t_5 * ((y1 * y4) - (y0 * y5)); t_7 = (z * y3) - (x * y2); tmp = 0.0; if (t <= -5e+135) tmp = t_3; elseif (t <= -5.1e+82) tmp = b * t_2; elseif (t <= -3.3e-60) tmp = t_3; elseif (t <= -1.2e-178) tmp = t_6 + (y * (y4 * ((c * y3) - (b * k)))); elseif (t <= -3.8e-261) tmp = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1)); elseif (t <= 3.5e-277) tmp = t_6 + (y4 * ((y3 * (y * c)) - (b * (y * k)))); elseif (t <= 1.15e-197) tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_5) + (a * t_7))); elseif (t <= 2.7e+61) tmp = b * (((a * t_4) + (y4 * ((t * j) - (y * k)))) + t_2); elseif (t <= 1.9e+138) tmp = t_6 + ((a * ((b * t_4) + (y1 * t_7))) + (((c * y4) - (a * y5)) * ((y * y3) - (t * y2)))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(t$95$5 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e+135], t$95$3, If[LessEqual[t, -5.1e+82], N[(b * t$95$2), $MachinePrecision], If[LessEqual[t, -3.3e-60], t$95$3, If[LessEqual[t, -1.2e-178], N[(t$95$6 + N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e-261], N[(y0 * N[(N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-277], N[(t$95$6 + N[(y4 * N[(N[(y3 * N[(y * c), $MachinePrecision]), $MachinePrecision] - N[(b * N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-197], N[(y1 * N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y4 * t$95$5), $MachinePrecision] + N[(a * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+61], N[(b * N[(N[(N[(a * t$95$4), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+138], N[(t$95$6 + N[(N[(a * N[(N[(b * t$95$4), $MachinePrecision] + N[(y1 * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot k - x \cdot j\\
t_2 := y0 \cdot t\_1\\
t_3 := t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_4 := x \cdot y - z \cdot t\\
t_5 := k \cdot y2 - j \cdot y3\\
t_6 := t\_5 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
t_7 := z \cdot y3 - x \cdot y2\\
\mathbf{if}\;t \leq -5 \cdot 10^{+135}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -5.1 \cdot 10^{+82}:\\
\;\;\;\;b \cdot t\_2\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-60}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1.2 \cdot 10^{-178}:\\
\;\;\;\;t\_6 + y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-261}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot t\_1\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-277}:\\
\;\;\;\;t\_6 + y4 \cdot \left(y3 \cdot \left(y \cdot c\right) - b \cdot \left(y \cdot k\right)\right)\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-197}:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) + \left(y4 \cdot t\_5 + a \cdot t\_7\right)\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+61}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_4 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + t\_2\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+138}:\\
\;\;\;\;t\_6 + \left(a \cdot \left(b \cdot t\_4 + y1 \cdot t\_7\right) + \left(c \cdot y4 - a \cdot y5\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -5.00000000000000029e135 or -5.1000000000000003e82 < t < -3.2999999999999998e-60 or 1.90000000000000006e138 < t Initial program 20.0%
Taylor expanded in t around inf 62.5%
if -5.00000000000000029e135 < t < -5.1000000000000003e82Initial program 20.0%
Taylor expanded in b around inf 30.6%
Taylor expanded in y0 around inf 71.3%
if -3.2999999999999998e-60 < t < -1.20000000000000002e-178Initial program 32.3%
Taylor expanded in y4 around inf 53.2%
*-commutative53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in y around -inf 58.8%
mul-1-neg58.8%
Simplified58.8%
if -1.20000000000000002e-178 < t < -3.8e-261Initial program 50.0%
Taylor expanded in y0 around inf 71.4%
+-commutative71.4%
mul-1-neg71.4%
unsub-neg71.4%
*-commutative71.4%
*-commutative71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
if -3.8e-261 < t < 3.49999999999999983e-277Initial program 59.9%
Taylor expanded in y4 around inf 74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in t around 0 74.4%
distribute-lft-out--74.4%
associate-*r*80.7%
Simplified80.7%
if 3.49999999999999983e-277 < t < 1.15e-197Initial program 46.4%
Taylor expanded in y1 around -inf 72.5%
associate-*r*72.5%
neg-mul-172.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
if 1.15e-197 < t < 2.7000000000000002e61Initial program 28.2%
Taylor expanded in b around inf 49.1%
if 2.7000000000000002e61 < t < 1.90000000000000006e138Initial program 44.2%
Taylor expanded in a around inf 68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Final simplification61.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3
(*
k
(+
(+ (* y2 t_2) (* y (- (* i y5) (* b y4))))
(* z (- (* b y0) (* i y1))))))
(t_4
(*
b
(+
(+ (* a t_1) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j))))))
(t_5 (- (* z y3) (* x y2)))
(t_6 (* a (+ (+ (* b t_1) (* y1 t_5)) (* y5 (- (* t y2) (* y y3))))))
(t_7
(*
y1
(+
(* i (- (* x j) (* z k)))
(+ (* y4 (- (* k y2) (* j y3))) (* a t_5))))))
(if (<= k -1.35e+48)
t_3
(if (<= k -4.2e-47)
t_7
(if (<= k -1.7e-92)
(*
y2
(+
(+ (* k t_2) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= k -1.2e-102)
t_7
(if (<= k -2.75e-136)
t_4
(if (<= k -9e-207)
t_6
(if (<= k -6e-238)
(*
j
(+
(+
(* t (- (* b y4) (* i y5)))
(* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0)))))
(if (<= k 6.4e-220)
(*
c
(- (* y4 (- (* y y3) (* t y2))) (+ (* i t_1) (* y0 t_5))))
(if (<= k 1.9e-110)
t_4
(if (<= k 1.66e-40)
(* y0 (* y3 (- (* j y5) (* z c))))
(if (<= k 7.4e+37) t_6 t_3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = k * (((y2 * t_2) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))));
double t_4 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_5 = (z * y3) - (x * y2);
double t_6 = a * (((b * t_1) + (y1 * t_5)) + (y5 * ((t * y2) - (y * y3))));
double t_7 = y1 * ((i * ((x * j) - (z * k))) + ((y4 * ((k * y2) - (j * y3))) + (a * t_5)));
double tmp;
if (k <= -1.35e+48) {
tmp = t_3;
} else if (k <= -4.2e-47) {
tmp = t_7;
} else if (k <= -1.7e-92) {
tmp = y2 * (((k * t_2) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (k <= -1.2e-102) {
tmp = t_7;
} else if (k <= -2.75e-136) {
tmp = t_4;
} else if (k <= -9e-207) {
tmp = t_6;
} else if (k <= -6e-238) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (k <= 6.4e-220) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * t_5)));
} else if (k <= 1.9e-110) {
tmp = t_4;
} else if (k <= 1.66e-40) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (k <= 7.4e+37) {
tmp = t_6;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (x * y) - (z * t)
t_2 = (y1 * y4) - (y0 * y5)
t_3 = k * (((y2 * t_2) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))))
t_4 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
t_5 = (z * y3) - (x * y2)
t_6 = a * (((b * t_1) + (y1 * t_5)) + (y5 * ((t * y2) - (y * y3))))
t_7 = y1 * ((i * ((x * j) - (z * k))) + ((y4 * ((k * y2) - (j * y3))) + (a * t_5)))
if (k <= (-1.35d+48)) then
tmp = t_3
else if (k <= (-4.2d-47)) then
tmp = t_7
else if (k <= (-1.7d-92)) then
tmp = y2 * (((k * t_2) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (k <= (-1.2d-102)) then
tmp = t_7
else if (k <= (-2.75d-136)) then
tmp = t_4
else if (k <= (-9d-207)) then
tmp = t_6
else if (k <= (-6d-238)) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
else if (k <= 6.4d-220) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * t_5)))
else if (k <= 1.9d-110) then
tmp = t_4
else if (k <= 1.66d-40) then
tmp = y0 * (y3 * ((j * y5) - (z * c)))
else if (k <= 7.4d+37) then
tmp = t_6
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = k * (((y2 * t_2) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))));
double t_4 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double t_5 = (z * y3) - (x * y2);
double t_6 = a * (((b * t_1) + (y1 * t_5)) + (y5 * ((t * y2) - (y * y3))));
double t_7 = y1 * ((i * ((x * j) - (z * k))) + ((y4 * ((k * y2) - (j * y3))) + (a * t_5)));
double tmp;
if (k <= -1.35e+48) {
tmp = t_3;
} else if (k <= -4.2e-47) {
tmp = t_7;
} else if (k <= -1.7e-92) {
tmp = y2 * (((k * t_2) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (k <= -1.2e-102) {
tmp = t_7;
} else if (k <= -2.75e-136) {
tmp = t_4;
} else if (k <= -9e-207) {
tmp = t_6;
} else if (k <= -6e-238) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (k <= 6.4e-220) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * t_5)));
} else if (k <= 1.9e-110) {
tmp = t_4;
} else if (k <= 1.66e-40) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (k <= 7.4e+37) {
tmp = t_6;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) t_2 = (y1 * y4) - (y0 * y5) t_3 = k * (((y2 * t_2) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1)))) t_4 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) t_5 = (z * y3) - (x * y2) t_6 = a * (((b * t_1) + (y1 * t_5)) + (y5 * ((t * y2) - (y * y3)))) t_7 = y1 * ((i * ((x * j) - (z * k))) + ((y4 * ((k * y2) - (j * y3))) + (a * t_5))) tmp = 0 if k <= -1.35e+48: tmp = t_3 elif k <= -4.2e-47: tmp = t_7 elif k <= -1.7e-92: tmp = y2 * (((k * t_2) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif k <= -1.2e-102: tmp = t_7 elif k <= -2.75e-136: tmp = t_4 elif k <= -9e-207: tmp = t_6 elif k <= -6e-238: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) elif k <= 6.4e-220: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * t_5))) elif k <= 1.9e-110: tmp = t_4 elif k <= 1.66e-40: tmp = y0 * (y3 * ((j * y5) - (z * c))) elif k <= 7.4e+37: tmp = t_6 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(k * Float64(Float64(Float64(y2 * t_2) + Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))) t_4 = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) t_5 = Float64(Float64(z * y3) - Float64(x * y2)) t_6 = Float64(a * Float64(Float64(Float64(b * t_1) + Float64(y1 * t_5)) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))) t_7 = Float64(y1 * Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))) + Float64(a * t_5)))) tmp = 0.0 if (k <= -1.35e+48) tmp = t_3; elseif (k <= -4.2e-47) tmp = t_7; elseif (k <= -1.7e-92) tmp = Float64(y2 * Float64(Float64(Float64(k * t_2) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (k <= -1.2e-102) tmp = t_7; elseif (k <= -2.75e-136) tmp = t_4; elseif (k <= -9e-207) tmp = t_6; elseif (k <= -6e-238) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (k <= 6.4e-220) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_1) + Float64(y0 * t_5)))); elseif (k <= 1.9e-110) tmp = t_4; elseif (k <= 1.66e-40) tmp = Float64(y0 * Float64(y3 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (k <= 7.4e+37) tmp = t_6; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); t_2 = (y1 * y4) - (y0 * y5); t_3 = k * (((y2 * t_2) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1)))); t_4 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); t_5 = (z * y3) - (x * y2); t_6 = a * (((b * t_1) + (y1 * t_5)) + (y5 * ((t * y2) - (y * y3)))); t_7 = y1 * ((i * ((x * j) - (z * k))) + ((y4 * ((k * y2) - (j * y3))) + (a * t_5))); tmp = 0.0; if (k <= -1.35e+48) tmp = t_3; elseif (k <= -4.2e-47) tmp = t_7; elseif (k <= -1.7e-92) tmp = y2 * (((k * t_2) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (k <= -1.2e-102) tmp = t_7; elseif (k <= -2.75e-136) tmp = t_4; elseif (k <= -9e-207) tmp = t_6; elseif (k <= -6e-238) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); elseif (k <= 6.4e-220) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * t_5))); elseif (k <= 1.9e-110) tmp = t_4; elseif (k <= 1.66e-40) tmp = y0 * (y3 * ((j * y5) - (z * c))); elseif (k <= 7.4e+37) tmp = t_6; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(k * N[(N[(N[(y2 * t$95$2), $MachinePrecision] + N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(a * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y1 * N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.35e+48], t$95$3, If[LessEqual[k, -4.2e-47], t$95$7, If[LessEqual[k, -1.7e-92], N[(y2 * N[(N[(N[(k * t$95$2), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.2e-102], t$95$7, If[LessEqual[k, -2.75e-136], t$95$4, If[LessEqual[k, -9e-207], t$95$6, If[LessEqual[k, -6e-238], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.4e-220], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.9e-110], t$95$4, If[LessEqual[k, 1.66e-40], N[(y0 * N[(y3 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 7.4e+37], t$95$6, t$95$3]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := k \cdot \left(\left(y2 \cdot t\_2 + y \cdot \left(i \cdot y5 - b \cdot y4\right)\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_4 := b \cdot \left(\left(a \cdot t\_1 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_5 := z \cdot y3 - x \cdot y2\\
t_6 := a \cdot \left(\left(b \cdot t\_1 + y1 \cdot t\_5\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_7 := y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) + \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right) + a \cdot t\_5\right)\right)\\
\mathbf{if}\;k \leq -1.35 \cdot 10^{+48}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;k \leq -4.2 \cdot 10^{-47}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;k \leq -1.7 \cdot 10^{-92}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_2 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{-102}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;k \leq -2.75 \cdot 10^{-136}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;k \leq -9 \cdot 10^{-207}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;k \leq -6 \cdot 10^{-238}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 6.4 \cdot 10^{-220}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_1 + y0 \cdot t\_5\right)\right)\\
\mathbf{elif}\;k \leq 1.9 \cdot 10^{-110}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;k \leq 1.66 \cdot 10^{-40}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;k \leq 7.4 \cdot 10^{+37}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if k < -1.35000000000000002e48 or 7.3999999999999999e37 < k Initial program 21.5%
Taylor expanded in k around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
associate-*r*56.5%
neg-mul-156.5%
Simplified56.5%
if -1.35000000000000002e48 < k < -4.2000000000000001e-47 or -1.7000000000000001e-92 < k < -1.2e-102Initial program 50.6%
Taylor expanded in y1 around -inf 71.8%
associate-*r*71.8%
neg-mul-171.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
*-commutative71.8%
*-commutative71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
if -4.2000000000000001e-47 < k < -1.7000000000000001e-92Initial program 25.0%
Taylor expanded in y2 around inf 75.1%
if -1.2e-102 < k < -2.75e-136 or 6.40000000000000011e-220 < k < 1.8999999999999999e-110Initial program 31.5%
Taylor expanded in b around inf 69.1%
if -2.75e-136 < k < -8.99999999999999984e-207 or 1.6600000000000001e-40 < k < 7.3999999999999999e37Initial program 27.0%
Taylor expanded in a around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
*-commutative62.5%
*-commutative62.5%
mul-1-neg62.5%
*-commutative62.5%
Simplified62.5%
if -8.99999999999999984e-207 < k < -5.9999999999999999e-238Initial program 46.0%
Taylor expanded in j around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
*-commutative64.6%
Simplified64.6%
if -5.9999999999999999e-238 < k < 6.40000000000000011e-220Initial program 37.5%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
if 1.8999999999999999e-110 < k < 1.6600000000000001e-40Initial program 43.8%
Taylor expanded in y0 around inf 50.5%
+-commutative50.5%
mul-1-neg50.5%
unsub-neg50.5%
*-commutative50.5%
*-commutative50.5%
*-commutative50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in y3 around -inf 63.4%
associate-*r*63.4%
neg-mul-163.4%
Simplified63.4%
Final simplification63.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
(*
y4
(+
(+ (* b t_1) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2))))))
(t_3 (- (* x y2) (* z y3)))
(t_4 (- (* i y1) (* b y0)))
(t_5
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x t_4))))
(t_6 (- (* z k) (* x j))))
(if (<= x -4.6e+89)
(* c (+ (* y0 t_3) (* i (- (* z t) (* x y)))))
(if (<= x -7.2e-27)
t_5
(if (<= x -8.6e-120)
(* y0 (+ (+ (* c t_3) (* y5 (- (* j y3) (* k y2)))) (* b t_6)))
(if (<= x -8e-134)
(* y3 (* y5 (- (* j y0) (* y a))))
(if (<= x -5.8e-219)
(* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_1)) (* y0 t_6)))
(if (<= x -2.5e-265)
(* a (* b (* t (- z))))
(if (<= x 7e-155)
t_2
(if (<= x 1.75e-64)
t_5
(if (<= x 5.5e+137)
t_2
(*
x
(+
(+
(* y (- (* a b) (* c i)))
(* y2 (- (* c y0) (* a y1))))
(* j t_4))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_3 = (x * y2) - (z * y3);
double t_4 = (i * y1) - (b * y0);
double t_5 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_4));
double t_6 = (z * k) - (x * j);
double tmp;
if (x <= -4.6e+89) {
tmp = c * ((y0 * t_3) + (i * ((z * t) - (x * y))));
} else if (x <= -7.2e-27) {
tmp = t_5;
} else if (x <= -8.6e-120) {
tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6));
} else if (x <= -8e-134) {
tmp = y3 * (y5 * ((j * y0) - (y * a)));
} else if (x <= -5.8e-219) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_6));
} else if (x <= -2.5e-265) {
tmp = a * (b * (t * -z));
} else if (x <= 7e-155) {
tmp = t_2;
} else if (x <= 1.75e-64) {
tmp = t_5;
} else if (x <= 5.5e+137) {
tmp = t_2;
} else {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (t * j) - (y * k)
t_2 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
t_3 = (x * y2) - (z * y3)
t_4 = (i * y1) - (b * y0)
t_5 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_4))
t_6 = (z * k) - (x * j)
if (x <= (-4.6d+89)) then
tmp = c * ((y0 * t_3) + (i * ((z * t) - (x * y))))
else if (x <= (-7.2d-27)) then
tmp = t_5
else if (x <= (-8.6d-120)) then
tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6))
else if (x <= (-8d-134)) then
tmp = y3 * (y5 * ((j * y0) - (y * a)))
else if (x <= (-5.8d-219)) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_6))
else if (x <= (-2.5d-265)) then
tmp = a * (b * (t * -z))
else if (x <= 7d-155) then
tmp = t_2
else if (x <= 1.75d-64) then
tmp = t_5
else if (x <= 5.5d+137) then
tmp = t_2
else
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_3 = (x * y2) - (z * y3);
double t_4 = (i * y1) - (b * y0);
double t_5 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_4));
double t_6 = (z * k) - (x * j);
double tmp;
if (x <= -4.6e+89) {
tmp = c * ((y0 * t_3) + (i * ((z * t) - (x * y))));
} else if (x <= -7.2e-27) {
tmp = t_5;
} else if (x <= -8.6e-120) {
tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6));
} else if (x <= -8e-134) {
tmp = y3 * (y5 * ((j * y0) - (y * a)));
} else if (x <= -5.8e-219) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_6));
} else if (x <= -2.5e-265) {
tmp = a * (b * (t * -z));
} else if (x <= 7e-155) {
tmp = t_2;
} else if (x <= 1.75e-64) {
tmp = t_5;
} else if (x <= 5.5e+137) {
tmp = t_2;
} else {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) t_3 = (x * y2) - (z * y3) t_4 = (i * y1) - (b * y0) t_5 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_4)) t_6 = (z * k) - (x * j) tmp = 0 if x <= -4.6e+89: tmp = c * ((y0 * t_3) + (i * ((z * t) - (x * y)))) elif x <= -7.2e-27: tmp = t_5 elif x <= -8.6e-120: tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6)) elif x <= -8e-134: tmp = y3 * (y5 * ((j * y0) - (y * a))) elif x <= -5.8e-219: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_6)) elif x <= -2.5e-265: tmp = a * (b * (t * -z)) elif x <= 7e-155: tmp = t_2 elif x <= 1.75e-64: tmp = t_5 elif x <= 5.5e+137: tmp = t_2 else: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) t_2 = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_3 = Float64(Float64(x * y2) - Float64(z * y3)) t_4 = Float64(Float64(i * y1) - Float64(b * y0)) t_5 = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * t_4))) t_6 = Float64(Float64(z * k) - Float64(x * j)) tmp = 0.0 if (x <= -4.6e+89) tmp = Float64(c * Float64(Float64(y0 * t_3) + Float64(i * Float64(Float64(z * t) - Float64(x * y))))); elseif (x <= -7.2e-27) tmp = t_5; elseif (x <= -8.6e-120) tmp = Float64(y0 * Float64(Float64(Float64(c * t_3) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * t_6))); elseif (x <= -8e-134) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(y * a)))); elseif (x <= -5.8e-219) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * t_6))); elseif (x <= -2.5e-265) tmp = Float64(a * Float64(b * Float64(t * Float64(-z)))); elseif (x <= 7e-155) tmp = t_2; elseif (x <= 1.75e-64) tmp = t_5; elseif (x <= 5.5e+137) tmp = t_2; else tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = y4 * (((b * t_1) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); t_3 = (x * y2) - (z * y3); t_4 = (i * y1) - (b * y0); t_5 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_4)); t_6 = (z * k) - (x * j); tmp = 0.0; if (x <= -4.6e+89) tmp = c * ((y0 * t_3) + (i * ((z * t) - (x * y)))); elseif (x <= -7.2e-27) tmp = t_5; elseif (x <= -8.6e-120) tmp = y0 * (((c * t_3) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6)); elseif (x <= -8e-134) tmp = y3 * (y5 * ((j * y0) - (y * a))); elseif (x <= -5.8e-219) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * t_6)); elseif (x <= -2.5e-265) tmp = a * (b * (t * -z)); elseif (x <= 7e-155) tmp = t_2; elseif (x <= 1.75e-64) tmp = t_5; elseif (x <= 5.5e+137) tmp = t_2; else tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * t_4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, 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[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.6e+89], N[(c * N[(N[(y0 * t$95$3), $MachinePrecision] + N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.2e-27], t$95$5, If[LessEqual[x, -8.6e-120], N[(y0 * N[(N[(N[(c * t$95$3), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8e-134], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.8e-219], 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$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.5e-265], N[(a * N[(b * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-155], t$95$2, If[LessEqual[x, 1.75e-64], t$95$5, If[LessEqual[x, 5.5e+137], t$95$2, N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
t_2 := y4 \cdot \left(\left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_3 := x \cdot y2 - z \cdot y3\\
t_4 := i \cdot y1 - b \cdot y0\\
t_5 := j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot t\_4\right)\\
t_6 := z \cdot k - x \cdot j\\
\mathbf{if}\;x \leq -4.6 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(y0 \cdot t\_3 + i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-27}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;x \leq -8.6 \cdot 10^{-120}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot t\_3 + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot t\_6\right)\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-134}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - y \cdot a\right)\right)\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{-219}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot t\_6\right)\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-155}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-64}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+137}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t\_4\right)\\
\end{array}
\end{array}
if x < -4.5999999999999998e89Initial program 14.4%
Taylor expanded in c around inf 52.2%
+-commutative52.2%
mul-1-neg52.2%
unsub-neg52.2%
*-commutative52.2%
*-commutative52.2%
*-commutative52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in y4 around 0 59.4%
if -4.5999999999999998e89 < x < -7.1999999999999997e-27 or 7.00000000000000031e-155 < x < 1.7500000000000002e-64Initial program 31.6%
Taylor expanded in j around inf 49.0%
+-commutative49.0%
mul-1-neg49.0%
unsub-neg49.0%
*-commutative49.0%
Simplified49.0%
if -7.1999999999999997e-27 < x < -8.59999999999999964e-120Initial program 58.2%
Taylor expanded in y0 around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
*-commutative51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if -8.59999999999999964e-120 < x < -8.00000000000000032e-134Initial program 17.7%
Taylor expanded in y3 around -inf 51.0%
Taylor expanded in y5 around inf 84.3%
distribute-lft-out--84.3%
*-commutative84.3%
Simplified84.3%
if -8.00000000000000032e-134 < x < -5.79999999999999968e-219Initial program 33.2%
Taylor expanded in b around inf 67.4%
if -5.79999999999999968e-219 < x < -2.5e-265Initial program 49.7%
Taylor expanded in b around inf 51.4%
Taylor expanded in a around inf 68.2%
Taylor expanded in x around 0 68.2%
mul-1-neg68.2%
*-commutative68.2%
distribute-rgt-neg-in68.2%
*-commutative68.2%
Simplified68.2%
if -2.5e-265 < x < 7.00000000000000031e-155 or 1.7500000000000002e-64 < x < 5.5000000000000002e137Initial program 31.2%
Taylor expanded in y4 around inf 63.8%
if 5.5000000000000002e137 < x Initial program 35.8%
Taylor expanded in x around inf 66.8%
Final simplification60.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* z k) (* x j)))
(t_2
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 (- (* a y5) (* c y4))))))
(t_3 (- (* k y2) (* j y3)))
(t_4 (* t_3 (- (* y1 y4) (* y0 y5))))
(t_5 (* y0 t_1))
(t_6
(*
y0
(+
(+ (* c (- (* x y2) (* z y3))) (* y5 (- (* j y3) (* k y2))))
(* b t_1)))))
(if (<= t -2.85e+135)
t_2
(if (<= t -1.04e+83)
(* b t_5)
(if (<= t -5e-71)
t_2
(if (<= t -3.5e-178)
(+ t_4 (* y (* y4 (- (* c y3) (* b k)))))
(if (<= t -4.6e-262)
t_6
(if (<= t 2.7e-279)
(+ t_4 (* y4 (- (* y3 (* y c)) (* b (* y k)))))
(if (<= t 1.65e-198)
(*
y1
(+
(* i (- (* x j) (* z k)))
(+ (* y4 t_3) (* a (- (* z y3) (* x y2))))))
(if (<= t 1.5e-6)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
t_5))
(if (<= t 1.1e+78) t_6 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 = (z * k) - (x * j);
double t_2 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
double t_3 = (k * y2) - (j * y3);
double t_4 = t_3 * ((y1 * y4) - (y0 * y5));
double t_5 = y0 * t_1;
double t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1));
double tmp;
if (t <= -2.85e+135) {
tmp = t_2;
} else if (t <= -1.04e+83) {
tmp = b * t_5;
} else if (t <= -5e-71) {
tmp = t_2;
} else if (t <= -3.5e-178) {
tmp = t_4 + (y * (y4 * ((c * y3) - (b * k))));
} else if (t <= -4.6e-262) {
tmp = t_6;
} else if (t <= 2.7e-279) {
tmp = t_4 + (y4 * ((y3 * (y * c)) - (b * (y * k))));
} else if (t <= 1.65e-198) {
tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_3) + (a * ((z * y3) - (x * y2)))));
} else if (t <= 1.5e-6) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + t_5);
} else if (t <= 1.1e+78) {
tmp = t_6;
} 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) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (z * k) - (x * j)
t_2 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))))
t_3 = (k * y2) - (j * y3)
t_4 = t_3 * ((y1 * y4) - (y0 * y5))
t_5 = y0 * t_1
t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1))
if (t <= (-2.85d+135)) then
tmp = t_2
else if (t <= (-1.04d+83)) then
tmp = b * t_5
else if (t <= (-5d-71)) then
tmp = t_2
else if (t <= (-3.5d-178)) then
tmp = t_4 + (y * (y4 * ((c * y3) - (b * k))))
else if (t <= (-4.6d-262)) then
tmp = t_6
else if (t <= 2.7d-279) then
tmp = t_4 + (y4 * ((y3 * (y * c)) - (b * (y * k))))
else if (t <= 1.65d-198) then
tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_3) + (a * ((z * y3) - (x * y2)))))
else if (t <= 1.5d-6) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + t_5)
else if (t <= 1.1d+78) then
tmp = t_6
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 = (z * k) - (x * j);
double t_2 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
double t_3 = (k * y2) - (j * y3);
double t_4 = t_3 * ((y1 * y4) - (y0 * y5));
double t_5 = y0 * t_1;
double t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1));
double tmp;
if (t <= -2.85e+135) {
tmp = t_2;
} else if (t <= -1.04e+83) {
tmp = b * t_5;
} else if (t <= -5e-71) {
tmp = t_2;
} else if (t <= -3.5e-178) {
tmp = t_4 + (y * (y4 * ((c * y3) - (b * k))));
} else if (t <= -4.6e-262) {
tmp = t_6;
} else if (t <= 2.7e-279) {
tmp = t_4 + (y4 * ((y3 * (y * c)) - (b * (y * k))));
} else if (t <= 1.65e-198) {
tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_3) + (a * ((z * y3) - (x * y2)))));
} else if (t <= 1.5e-6) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + t_5);
} else if (t <= 1.1e+78) {
tmp = t_6;
} 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 = (z * k) - (x * j) t_2 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))) t_3 = (k * y2) - (j * y3) t_4 = t_3 * ((y1 * y4) - (y0 * y5)) t_5 = y0 * t_1 t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1)) tmp = 0 if t <= -2.85e+135: tmp = t_2 elif t <= -1.04e+83: tmp = b * t_5 elif t <= -5e-71: tmp = t_2 elif t <= -3.5e-178: tmp = t_4 + (y * (y4 * ((c * y3) - (b * k)))) elif t <= -4.6e-262: tmp = t_6 elif t <= 2.7e-279: tmp = t_4 + (y4 * ((y3 * (y * c)) - (b * (y * k)))) elif t <= 1.65e-198: tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_3) + (a * ((z * y3) - (x * y2))))) elif t <= 1.5e-6: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + t_5) elif t <= 1.1e+78: tmp = t_6 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(z * k) - Float64(x * j)) t_2 = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(t_3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))) t_5 = Float64(y0 * t_1) t_6 = Float64(y0 * Float64(Float64(Float64(c * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * t_1))) tmp = 0.0 if (t <= -2.85e+135) tmp = t_2; elseif (t <= -1.04e+83) tmp = Float64(b * t_5); elseif (t <= -5e-71) tmp = t_2; elseif (t <= -3.5e-178) tmp = Float64(t_4 + Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k))))); elseif (t <= -4.6e-262) tmp = t_6; elseif (t <= 2.7e-279) tmp = Float64(t_4 + Float64(y4 * Float64(Float64(y3 * Float64(y * c)) - Float64(b * Float64(y * k))))); elseif (t <= 1.65e-198) tmp = Float64(y1 * Float64(Float64(i * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y4 * t_3) + Float64(a * Float64(Float64(z * y3) - Float64(x * y2)))))); elseif (t <= 1.5e-6) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + t_5)); elseif (t <= 1.1e+78) tmp = t_6; 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 = (z * k) - (x * j); t_2 = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))); t_3 = (k * y2) - (j * y3); t_4 = t_3 * ((y1 * y4) - (y0 * y5)); t_5 = y0 * t_1; t_6 = y0 * (((c * ((x * y2) - (z * y3))) + (y5 * ((j * y3) - (k * y2)))) + (b * t_1)); tmp = 0.0; if (t <= -2.85e+135) tmp = t_2; elseif (t <= -1.04e+83) tmp = b * t_5; elseif (t <= -5e-71) tmp = t_2; elseif (t <= -3.5e-178) tmp = t_4 + (y * (y4 * ((c * y3) - (b * k)))); elseif (t <= -4.6e-262) tmp = t_6; elseif (t <= 2.7e-279) tmp = t_4 + (y4 * ((y3 * (y * c)) - (b * (y * k)))); elseif (t <= 1.65e-198) tmp = y1 * ((i * ((x * j) - (z * k))) + ((y4 * t_3) + (a * ((z * y3) - (x * y2))))); elseif (t <= 1.5e-6) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + t_5); elseif (t <= 1.1e+78) tmp = t_6; 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[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y0 * t$95$1), $MachinePrecision]}, Block[{t$95$6 = N[(y0 * N[(N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.85e+135], t$95$2, If[LessEqual[t, -1.04e+83], N[(b * t$95$5), $MachinePrecision], If[LessEqual[t, -5e-71], t$95$2, If[LessEqual[t, -3.5e-178], N[(t$95$4 + N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.6e-262], t$95$6, If[LessEqual[t, 2.7e-279], N[(t$95$4 + N[(y4 * N[(N[(y3 * N[(y * c), $MachinePrecision]), $MachinePrecision] - N[(b * N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e-198], N[(y1 * N[(N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y4 * t$95$3), $MachinePrecision] + N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-6], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e+78], t$95$6, t$95$2]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot k - x \cdot j\\
t_2 := t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := t\_3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
t_5 := y0 \cdot t\_1\\
t_6 := y0 \cdot \left(\left(c \cdot \left(x \cdot y2 - z \cdot y3\right) + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot t\_1\right)\\
\mathbf{if}\;t \leq -2.85 \cdot 10^{+135}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.04 \cdot 10^{+83}:\\
\;\;\;\;b \cdot t\_5\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-71}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-178}:\\
\;\;\;\;t\_4 + y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{elif}\;t \leq -4.6 \cdot 10^{-262}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-279}:\\
\;\;\;\;t\_4 + y4 \cdot \left(y3 \cdot \left(y \cdot c\right) - b \cdot \left(y \cdot k\right)\right)\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-198}:\\
\;\;\;\;y1 \cdot \left(i \cdot \left(x \cdot j - z \cdot k\right) + \left(y4 \cdot t\_3 + a \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-6}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + t\_5\right)\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+78}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.8500000000000001e135 or -1.0399999999999999e83 < t < -4.99999999999999998e-71 or 1.10000000000000007e78 < t Initial program 21.8%
Taylor expanded in t around inf 60.6%
if -2.8500000000000001e135 < t < -1.0399999999999999e83Initial program 20.0%
Taylor expanded in b around inf 30.6%
Taylor expanded in y0 around inf 71.3%
if -4.99999999999999998e-71 < t < -3.49999999999999983e-178Initial program 32.3%
Taylor expanded in y4 around inf 53.2%
*-commutative53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in y around -inf 58.8%
mul-1-neg58.8%
Simplified58.8%
if -3.49999999999999983e-178 < t < -4.6000000000000002e-262 or 1.5e-6 < t < 1.10000000000000007e78Initial program 47.2%
Taylor expanded in y0 around inf 68.0%
+-commutative68.0%
mul-1-neg68.0%
unsub-neg68.0%
*-commutative68.0%
*-commutative68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
if -4.6000000000000002e-262 < t < 2.7000000000000001e-279Initial program 59.9%
Taylor expanded in y4 around inf 74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in t around 0 74.4%
distribute-lft-out--74.4%
associate-*r*80.7%
Simplified80.7%
if 2.7000000000000001e-279 < t < 1.65e-198Initial program 46.4%
Taylor expanded in y1 around -inf 72.5%
associate-*r*72.5%
neg-mul-172.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
if 1.65e-198 < t < 1.5e-6Initial program 24.1%
Taylor expanded in b around inf 50.5%
Final simplification61.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* t j) (* y k)))
(t_4
(*
y4
(+
(+ (* b t_3) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2))))))
(t_5 (- (* x y) (* z t)))
(t_6 (- (* z k) (* x j))))
(if (<= x -1.05e+82)
(* c (+ (* y0 t_2) (* i (- (* z t) (* x y)))))
(if (<= x -4.4e-75)
(*
a
(+
(+ (* b t_5) (* y1 (- (* z y3) (* x y2))))
(* y5 (- (* t y2) (* y y3)))))
(if (<= x -4e-136)
(* y3 (* y5 (- (* j y0) (* y a))))
(if (<= x -1.45e-174)
(* b (+ (+ (* a t_5) (* y4 t_3)) (* y0 t_6)))
(if (<= x -7e-268)
(* y0 (+ (+ (* c t_2) (* y5 (- (* j y3) (* k y2)))) (* b t_6)))
(if (<= x 4.4e-154)
t_4
(if (<= x 3.3e-64)
(*
j
(+
(+
(* t (- (* b y4) (* i y5)))
(* y3 (- (* y0 y5) (* y1 y4))))
(* x t_1)))
(if (<= x 9.5e+143)
t_4
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j t_1)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double t_2 = (x * y2) - (z * y3);
double t_3 = (t * j) - (y * k);
double t_4 = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_5 = (x * y) - (z * t);
double t_6 = (z * k) - (x * j);
double tmp;
if (x <= -1.05e+82) {
tmp = c * ((y0 * t_2) + (i * ((z * t) - (x * y))));
} else if (x <= -4.4e-75) {
tmp = a * (((b * t_5) + (y1 * ((z * y3) - (x * y2)))) + (y5 * ((t * y2) - (y * y3))));
} else if (x <= -4e-136) {
tmp = y3 * (y5 * ((j * y0) - (y * a)));
} else if (x <= -1.45e-174) {
tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * t_6));
} else if (x <= -7e-268) {
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6));
} else if (x <= 4.4e-154) {
tmp = t_4;
} else if (x <= 3.3e-64) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_1));
} else if (x <= 9.5e+143) {
tmp = t_4;
} else {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * 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) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
t_2 = (x * y2) - (z * y3)
t_3 = (t * j) - (y * k)
t_4 = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
t_5 = (x * y) - (z * t)
t_6 = (z * k) - (x * j)
if (x <= (-1.05d+82)) then
tmp = c * ((y0 * t_2) + (i * ((z * t) - (x * y))))
else if (x <= (-4.4d-75)) then
tmp = a * (((b * t_5) + (y1 * ((z * y3) - (x * y2)))) + (y5 * ((t * y2) - (y * y3))))
else if (x <= (-4d-136)) then
tmp = y3 * (y5 * ((j * y0) - (y * a)))
else if (x <= (-1.45d-174)) then
tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * t_6))
else if (x <= (-7d-268)) then
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6))
else if (x <= 4.4d-154) then
tmp = t_4
else if (x <= 3.3d-64) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_1))
else if (x <= 9.5d+143) then
tmp = t_4
else
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * 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) - (b * y0);
double t_2 = (x * y2) - (z * y3);
double t_3 = (t * j) - (y * k);
double t_4 = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_5 = (x * y) - (z * t);
double t_6 = (z * k) - (x * j);
double tmp;
if (x <= -1.05e+82) {
tmp = c * ((y0 * t_2) + (i * ((z * t) - (x * y))));
} else if (x <= -4.4e-75) {
tmp = a * (((b * t_5) + (y1 * ((z * y3) - (x * y2)))) + (y5 * ((t * y2) - (y * y3))));
} else if (x <= -4e-136) {
tmp = y3 * (y5 * ((j * y0) - (y * a)));
} else if (x <= -1.45e-174) {
tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * t_6));
} else if (x <= -7e-268) {
tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6));
} else if (x <= 4.4e-154) {
tmp = t_4;
} else if (x <= 3.3e-64) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_1));
} else if (x <= 9.5e+143) {
tmp = t_4;
} else {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * 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) - (b * y0) t_2 = (x * y2) - (z * y3) t_3 = (t * j) - (y * k) t_4 = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) t_5 = (x * y) - (z * t) t_6 = (z * k) - (x * j) tmp = 0 if x <= -1.05e+82: tmp = c * ((y0 * t_2) + (i * ((z * t) - (x * y)))) elif x <= -4.4e-75: tmp = a * (((b * t_5) + (y1 * ((z * y3) - (x * y2)))) + (y5 * ((t * y2) - (y * y3)))) elif x <= -4e-136: tmp = y3 * (y5 * ((j * y0) - (y * a))) elif x <= -1.45e-174: tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * t_6)) elif x <= -7e-268: tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6)) elif x <= 4.4e-154: tmp = t_4 elif x <= 3.3e-64: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_1)) elif x <= 9.5e+143: tmp = t_4 else: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * 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(b * y0)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(y4 * Float64(Float64(Float64(b * t_3) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_5 = Float64(Float64(x * y) - Float64(z * t)) t_6 = Float64(Float64(z * k) - Float64(x * j)) tmp = 0.0 if (x <= -1.05e+82) tmp = Float64(c * Float64(Float64(y0 * t_2) + Float64(i * Float64(Float64(z * t) - Float64(x * y))))); elseif (x <= -4.4e-75) tmp = Float64(a * Float64(Float64(Float64(b * t_5) + Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (x <= -4e-136) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(y * a)))); elseif (x <= -1.45e-174) tmp = Float64(b * Float64(Float64(Float64(a * t_5) + Float64(y4 * t_3)) + Float64(y0 * t_6))); elseif (x <= -7e-268) tmp = Float64(y0 * Float64(Float64(Float64(c * t_2) + Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))) + Float64(b * t_6))); elseif (x <= 4.4e-154) tmp = t_4; elseif (x <= 3.3e-64) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * t_1))); elseif (x <= 9.5e+143) tmp = t_4; else tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); t_2 = (x * y2) - (z * y3); t_3 = (t * j) - (y * k); t_4 = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); t_5 = (x * y) - (z * t); t_6 = (z * k) - (x * j); tmp = 0.0; if (x <= -1.05e+82) tmp = c * ((y0 * t_2) + (i * ((z * t) - (x * y)))); elseif (x <= -4.4e-75) tmp = a * (((b * t_5) + (y1 * ((z * y3) - (x * y2)))) + (y5 * ((t * y2) - (y * y3)))); elseif (x <= -4e-136) tmp = y3 * (y5 * ((j * y0) - (y * a))); elseif (x <= -1.45e-174) tmp = b * (((a * t_5) + (y4 * t_3)) + (y0 * t_6)); elseif (x <= -7e-268) tmp = y0 * (((c * t_2) + (y5 * ((j * y3) - (k * y2)))) + (b * t_6)); elseif (x <= 4.4e-154) tmp = t_4; elseif (x <= 3.3e-64) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * t_1)); elseif (x <= 9.5e+143) tmp = t_4; else tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * 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[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.05e+82], N[(c * N[(N[(y0 * t$95$2), $MachinePrecision] + N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.4e-75], N[(a * N[(N[(N[(b * t$95$5), $MachinePrecision] + N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4e-136], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.45e-174], N[(b * N[(N[(N[(a * t$95$5), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7e-268], N[(y0 * N[(N[(N[(c * t$95$2), $MachinePrecision] + N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.4e-154], t$95$4, If[LessEqual[x, 3.3e-64], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e+143], t$95$4, N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := t \cdot j - y \cdot k\\
t_4 := y4 \cdot \left(\left(b \cdot t\_3 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_5 := x \cdot y - z \cdot t\\
t_6 := z \cdot k - x \cdot j\\
\mathbf{if}\;x \leq -1.05 \cdot 10^{+82}:\\
\;\;\;\;c \cdot \left(y0 \cdot t\_2 + i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-75}:\\
\;\;\;\;a \cdot \left(\left(b \cdot t\_5 + y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-136}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - y \cdot a\right)\right)\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{-174}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_5 + y4 \cdot t\_3\right) + y0 \cdot t\_6\right)\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-268}:\\
\;\;\;\;y0 \cdot \left(\left(c \cdot t\_2 + y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right) + b \cdot t\_6\right)\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-154}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-64}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot t\_1\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+143}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t\_1\right)\\
\end{array}
\end{array}
if x < -1.05e82Initial program 16.5%
Taylor expanded in c around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
*-commutative51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in y4 around 0 57.9%
if -1.05e82 < x < -4.40000000000000011e-75Initial program 33.6%
Taylor expanded in a around inf 52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
*-commutative52.0%
*-commutative52.0%
*-commutative52.0%
mul-1-neg52.0%
*-commutative52.0%
Simplified52.0%
if -4.40000000000000011e-75 < x < -4.00000000000000001e-136Initial program 40.6%
Taylor expanded in y3 around -inf 50.6%
Taylor expanded in y5 around inf 61.1%
distribute-lft-out--61.1%
*-commutative61.1%
Simplified61.1%
if -4.00000000000000001e-136 < x < -1.45000000000000005e-174Initial program 27.3%
Taylor expanded in b around inf 82.3%
if -1.45000000000000005e-174 < x < -7.00000000000000011e-268Initial program 45.8%
Taylor expanded in y0 around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
*-commutative61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
if -7.00000000000000011e-268 < x < 4.40000000000000015e-154 or 3.2999999999999999e-64 < x < 9.50000000000000066e143Initial program 31.2%
Taylor expanded in y4 around inf 63.8%
if 4.40000000000000015e-154 < x < 3.2999999999999999e-64Initial program 33.7%
Taylor expanded in j around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
*-commutative43.3%
Simplified43.3%
if 9.50000000000000066e143 < x Initial program 35.8%
Taylor expanded in x around inf 66.8%
Final simplification60.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* z y3) (* x y2)))
(t_2
(*
k
(+
(+ (* y2 (- (* y1 y4) (* y0 y5))) (* y (- (* i y5) (* b y4))))
(* z (- (* b y0) (* i y1))))))
(t_3 (- (* x y) (* z t)))
(t_4 (* a (+ (+ (* b t_3) (* y1 t_1)) (* y5 (- (* t y2) (* y y3))))))
(t_5
(*
b
(+
(+ (* a t_3) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))))
(if (<= k -1.16e-6)
t_2
(if (<= k -1.65e-136)
t_5
(if (<= k -2.3e-205)
t_4
(if (<= k -2.4e-242)
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0)))))
(if (<= k 2.1e-219)
(* c (- (* y4 (- (* y y3) (* t y2))) (+ (* i t_3) (* y0 t_1))))
(if (<= k 1.6e-110)
t_5
(if (<= k 9.8e-41)
(* y0 (* y3 (- (* j y5) (* z c))))
(if (<= k 1.85e+35) t_4 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 = (z * y3) - (x * y2);
double t_2 = k * (((y2 * ((y1 * y4) - (y0 * y5))) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))));
double t_3 = (x * y) - (z * t);
double t_4 = a * (((b * t_3) + (y1 * t_1)) + (y5 * ((t * y2) - (y * y3))));
double t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (k <= -1.16e-6) {
tmp = t_2;
} else if (k <= -1.65e-136) {
tmp = t_5;
} else if (k <= -2.3e-205) {
tmp = t_4;
} else if (k <= -2.4e-242) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (k <= 2.1e-219) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_1)));
} else if (k <= 1.6e-110) {
tmp = t_5;
} else if (k <= 9.8e-41) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (k <= 1.85e+35) {
tmp = t_4;
} 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) :: t_5
real(8) :: tmp
t_1 = (z * y3) - (x * y2)
t_2 = k * (((y2 * ((y1 * y4) - (y0 * y5))) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))))
t_3 = (x * y) - (z * t)
t_4 = a * (((b * t_3) + (y1 * t_1)) + (y5 * ((t * y2) - (y * y3))))
t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
if (k <= (-1.16d-6)) then
tmp = t_2
else if (k <= (-1.65d-136)) then
tmp = t_5
else if (k <= (-2.3d-205)) then
tmp = t_4
else if (k <= (-2.4d-242)) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
else if (k <= 2.1d-219) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_1)))
else if (k <= 1.6d-110) then
tmp = t_5
else if (k <= 9.8d-41) then
tmp = y0 * (y3 * ((j * y5) - (z * c)))
else if (k <= 1.85d+35) then
tmp = t_4
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 = (z * y3) - (x * y2);
double t_2 = k * (((y2 * ((y1 * y4) - (y0 * y5))) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1))));
double t_3 = (x * y) - (z * t);
double t_4 = a * (((b * t_3) + (y1 * t_1)) + (y5 * ((t * y2) - (y * y3))));
double t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (k <= -1.16e-6) {
tmp = t_2;
} else if (k <= -1.65e-136) {
tmp = t_5;
} else if (k <= -2.3e-205) {
tmp = t_4;
} else if (k <= -2.4e-242) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (k <= 2.1e-219) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_1)));
} else if (k <= 1.6e-110) {
tmp = t_5;
} else if (k <= 9.8e-41) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (k <= 1.85e+35) {
tmp = t_4;
} 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 = (z * y3) - (x * y2) t_2 = k * (((y2 * ((y1 * y4) - (y0 * y5))) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1)))) t_3 = (x * y) - (z * t) t_4 = a * (((b * t_3) + (y1 * t_1)) + (y5 * ((t * y2) - (y * y3)))) t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) tmp = 0 if k <= -1.16e-6: tmp = t_2 elif k <= -1.65e-136: tmp = t_5 elif k <= -2.3e-205: tmp = t_4 elif k <= -2.4e-242: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) elif k <= 2.1e-219: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_1))) elif k <= 1.6e-110: tmp = t_5 elif k <= 9.8e-41: tmp = y0 * (y3 * ((j * y5) - (z * c))) elif k <= 1.85e+35: tmp = t_4 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(z * y3) - Float64(x * y2)) t_2 = Float64(k * Float64(Float64(Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))) t_3 = Float64(Float64(x * y) - Float64(z * t)) t_4 = Float64(a * Float64(Float64(Float64(b * t_3) + Float64(y1 * t_1)) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))) t_5 = Float64(b * Float64(Float64(Float64(a * t_3) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (k <= -1.16e-6) tmp = t_2; elseif (k <= -1.65e-136) tmp = t_5; elseif (k <= -2.3e-205) tmp = t_4; elseif (k <= -2.4e-242) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (k <= 2.1e-219) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_3) + Float64(y0 * t_1)))); elseif (k <= 1.6e-110) tmp = t_5; elseif (k <= 9.8e-41) tmp = Float64(y0 * Float64(y3 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (k <= 1.85e+35) tmp = t_4; 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 = (z * y3) - (x * y2); t_2 = k * (((y2 * ((y1 * y4) - (y0 * y5))) + (y * ((i * y5) - (b * y4)))) + (z * ((b * y0) - (i * y1)))); t_3 = (x * y) - (z * t); t_4 = a * (((b * t_3) + (y1 * t_1)) + (y5 * ((t * y2) - (y * y3)))); t_5 = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (k <= -1.16e-6) tmp = t_2; elseif (k <= -1.65e-136) tmp = t_5; elseif (k <= -2.3e-205) tmp = t_4; elseif (k <= -2.4e-242) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); elseif (k <= 2.1e-219) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_3) + (y0 * t_1))); elseif (k <= 1.6e-110) tmp = t_5; elseif (k <= 9.8e-41) tmp = y0 * (y3 * ((j * y5) - (z * c))); elseif (k <= 1.85e+35) tmp = t_4; 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[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(N[(N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(a * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * N[(N[(N[(a * t$95$3), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.16e-6], t$95$2, If[LessEqual[k, -1.65e-136], t$95$5, If[LessEqual[k, -2.3e-205], t$95$4, If[LessEqual[k, -2.4e-242], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.1e-219], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$3), $MachinePrecision] + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.6e-110], t$95$5, If[LessEqual[k, 9.8e-41], N[(y0 * N[(y3 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.85e+35], t$95$4, t$95$2]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot y3 - x \cdot y2\\
t_2 := k \cdot \left(\left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + y \cdot \left(i \cdot y5 - b \cdot y4\right)\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_3 := x \cdot y - z \cdot t\\
t_4 := a \cdot \left(\left(b \cdot t\_3 + y1 \cdot t\_1\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_5 := b \cdot \left(\left(a \cdot t\_3 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;k \leq -1.16 \cdot 10^{-6}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;k \leq -1.65 \cdot 10^{-136}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq -2.3 \cdot 10^{-205}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;k \leq -2.4 \cdot 10^{-242}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 2.1 \cdot 10^{-219}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_3 + y0 \cdot t\_1\right)\right)\\
\mathbf{elif}\;k \leq 1.6 \cdot 10^{-110}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq 9.8 \cdot 10^{-41}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;k \leq 1.85 \cdot 10^{+35}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if k < -1.1599999999999999e-6 or 1.85e35 < k Initial program 23.8%
Taylor expanded in k around inf 56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
associate-*r*56.6%
neg-mul-156.6%
Simplified56.6%
if -1.1599999999999999e-6 < k < -1.65000000000000009e-136 or 2.1e-219 < k < 1.60000000000000014e-110Initial program 32.9%
Taylor expanded in b around inf 63.5%
if -1.65000000000000009e-136 < k < -2.2999999999999999e-205 or 9.79999999999999906e-41 < k < 1.85e35Initial program 27.0%
Taylor expanded in a around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
*-commutative62.5%
*-commutative62.5%
mul-1-neg62.5%
*-commutative62.5%
Simplified62.5%
if -2.2999999999999999e-205 < k < -2.4000000000000001e-242Initial program 46.0%
Taylor expanded in j around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
*-commutative64.6%
Simplified64.6%
if -2.4000000000000001e-242 < k < 2.1e-219Initial program 37.5%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
if 1.60000000000000014e-110 < k < 9.79999999999999906e-41Initial program 43.8%
Taylor expanded in y0 around inf 50.5%
+-commutative50.5%
mul-1-neg50.5%
unsub-neg50.5%
*-commutative50.5%
*-commutative50.5%
*-commutative50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in y3 around -inf 63.4%
associate-*r*63.4%
neg-mul-163.4%
Simplified63.4%
Final simplification62.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.5e+154)
t_2
(if (<= b -1.6e+33)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -6.9e-22)
(* b (* j (- (* t y4) (* x y0))))
(if (<= b -1.15e-41)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b -4.1e-140)
t_1
(if (<= b -7.6e-171)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= b -5.8e-249)
(* c (* x (* y (- (/ (* y0 y2) y) i))))
(if (<= b 3.7e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 1.6e-119)
t_1
(if (<= b 1.22e-10)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= b 3e+132)
(* (* b k) (- (* z y0) (* y 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.5e+154) {
tmp = t_2;
} else if (b <= -1.6e+33) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -6.9e-22) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (b <= -1.15e-41) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= -4.1e-140) {
tmp = t_1;
} else if (b <= -7.6e-171) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (b <= -5.8e-249) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (b <= 3.7e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 1.6e-119) {
tmp = t_1;
} else if (b <= 1.22e-10) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 3e+132) {
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.5d+154)) then
tmp = t_2
else if (b <= (-1.6d+33)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-6.9d-22)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (b <= (-1.15d-41)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= (-4.1d-140)) then
tmp = t_1
else if (b <= (-7.6d-171)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (b <= (-5.8d-249)) then
tmp = c * (x * (y * (((y0 * y2) / y) - i)))
else if (b <= 3.7d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 1.6d-119) then
tmp = t_1
else if (b <= 1.22d-10) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (b <= 3d+132) then
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.5e+154) {
tmp = t_2;
} else if (b <= -1.6e+33) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -6.9e-22) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (b <= -1.15e-41) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= -4.1e-140) {
tmp = t_1;
} else if (b <= -7.6e-171) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (b <= -5.8e-249) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (b <= 3.7e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 1.6e-119) {
tmp = t_1;
} else if (b <= 1.22e-10) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 3e+132) {
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.5e+154: tmp = t_2 elif b <= -1.6e+33: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -6.9e-22: tmp = b * (j * ((t * y4) - (x * y0))) elif b <= -1.15e-41: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= -4.1e-140: tmp = t_1 elif b <= -7.6e-171: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif b <= -5.8e-249: tmp = c * (x * (y * (((y0 * y2) / y) - i))) elif b <= 3.7e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 1.6e-119: tmp = t_1 elif b <= 1.22e-10: tmp = t * (y5 * ((a * y2) - (i * j))) elif b <= 3e+132: tmp = (b * k) * ((z * y0) - (y * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.5e+154) tmp = t_2; elseif (b <= -1.6e+33) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -6.9e-22) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (b <= -1.15e-41) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= -4.1e-140) tmp = t_1; elseif (b <= -7.6e-171) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (b <= -5.8e-249) tmp = Float64(c * Float64(x * Float64(y * Float64(Float64(Float64(y0 * y2) / y) - i)))); elseif (b <= 3.7e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 1.6e-119) tmp = t_1; elseif (b <= 1.22e-10) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (b <= 3e+132) tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * 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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.5e+154) tmp = t_2; elseif (b <= -1.6e+33) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -6.9e-22) tmp = b * (j * ((t * y4) - (x * y0))); elseif (b <= -1.15e-41) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= -4.1e-140) tmp = t_1; elseif (b <= -7.6e-171) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (b <= -5.8e-249) tmp = c * (x * (y * (((y0 * y2) / y) - i))); elseif (b <= 3.7e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 1.6e-119) tmp = t_1; elseif (b <= 1.22e-10) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (b <= 3e+132) tmp = (b * k) * ((z * y0) - (y * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e+154], t$95$2, If[LessEqual[b, -1.6e+33], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.9e-22], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e-41], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.1e-140], t$95$1, If[LessEqual[b, -7.6e-171], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.8e-249], N[(c * N[(x * N[(y * N[(N[(N[(y0 * y2), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e-119], t$95$1, If[LessEqual[b, 1.22e-10], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e+132], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{+33}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -6.9 \cdot 10^{-22}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-41}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{-140}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.6 \cdot 10^{-171}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-249}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(\frac{y0 \cdot y2}{y} - i\right)\right)\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.22 \cdot 10^{-10}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+132}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.50000000000000013e154 or 2.9999999999999998e132 < b Initial program 14.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in a around inf 59.2%
if -1.50000000000000013e154 < b < -1.60000000000000009e33Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -1.60000000000000009e33 < b < -6.9e-22Initial program 21.7%
Taylor expanded in b around inf 28.7%
Taylor expanded in j around inf 50.6%
if -6.9e-22 < b < -1.15000000000000005e-41Initial program 80.0%
Taylor expanded in y4 around inf 80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in y1 around inf 80.1%
if -1.15000000000000005e-41 < b < -4.1000000000000001e-140 or 3.69999999999999978e-269 < b < 1.59999999999999997e-119Initial program 42.9%
Taylor expanded in y0 around inf 45.3%
+-commutative45.3%
mul-1-neg45.3%
unsub-neg45.3%
*-commutative45.3%
*-commutative45.3%
*-commutative45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in c around inf 48.3%
if -4.1000000000000001e-140 < b < -7.60000000000000043e-171Initial program 75.0%
Taylor expanded in k around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
associate-*r*75.3%
neg-mul-175.3%
Simplified75.3%
Taylor expanded in y2 around inf 75.9%
if -7.60000000000000043e-171 < b < -5.80000000000000044e-249Initial program 35.3%
Taylor expanded in c around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
*-commutative70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in x around inf 54.1%
Taylor expanded in y around inf 59.8%
if -5.80000000000000044e-249 < b < 3.69999999999999978e-269Initial program 34.9%
Taylor expanded in t around inf 45.9%
Taylor expanded in i around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
sub-neg51.2%
Simplified51.2%
if 1.59999999999999997e-119 < b < 1.2199999999999999e-10Initial program 33.7%
Taylor expanded in t around inf 50.5%
Taylor expanded in y5 around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if 1.2199999999999999e-10 < b < 2.9999999999999998e132Initial program 28.4%
Taylor expanded in b around inf 52.6%
Taylor expanded in k around -inf 52.6%
mul-1-neg52.6%
associate-*r*52.6%
Simplified52.6%
Final simplification56.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))))
(if (<= b -1.5e+184)
t_1
(if (<= b -3.6e+155)
(* i (* t (- (* z c) (* j y5))))
(if (<= b -1.4e+35)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -5e-11)
(* y2 (- (* k (- (* y1 y4) (* y0 y5))) (* c (* t y4))))
(if (<= b -8.6e-59)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 5.7e-120)
(* c (+ (* y0 (- (* x y2) (* z y3))) (* i (- (* z t) (* x y)))))
(if (<= b 5.8e-34)
(* y3 (* y (+ (* c y4) (* j (/ (- (* y0 y5) (* y1 y4)) 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 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -1.5e+184) {
tmp = t_1;
} else if (b <= -3.6e+155) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= -1.4e+35) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -5e-11) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)));
} else if (b <= -8.6e-59) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 5.7e-120) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y))));
} else if (b <= 5.8e-34) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} 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 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
if (b <= (-1.5d+184)) then
tmp = t_1
else if (b <= (-3.6d+155)) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= (-1.4d+35)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-5d-11)) then
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)))
else if (b <= (-8.6d-59)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 5.7d-120) then
tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y))))
else if (b <= 5.8d-34) then
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -1.5e+184) {
tmp = t_1;
} else if (b <= -3.6e+155) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= -1.4e+35) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -5e-11) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)));
} else if (b <= -8.6e-59) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 5.7e-120) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y))));
} else if (b <= 5.8e-34) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) tmp = 0 if b <= -1.5e+184: tmp = t_1 elif b <= -3.6e+155: tmp = i * (t * ((z * c) - (j * y5))) elif b <= -1.4e+35: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -5e-11: tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4))) elif b <= -8.6e-59: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 5.7e-120: tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) elif b <= 5.8e-34: tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (b <= -1.5e+184) tmp = t_1; elseif (b <= -3.6e+155) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= -1.4e+35) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -5e-11) tmp = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(c * Float64(t * y4)))); elseif (b <= -8.6e-59) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 5.7e-120) tmp = Float64(c * Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(i * Float64(Float64(z * t) - Float64(x * y))))); elseif (b <= 5.8e-34) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) + Float64(j * Float64(Float64(Float64(y0 * y5) - Float64(y1 * y4)) / y))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (((a * ((x * y) - (z * t))) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (b <= -1.5e+184) tmp = t_1; elseif (b <= -3.6e+155) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= -1.4e+35) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -5e-11) tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4))); elseif (b <= -8.6e-59) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 5.7e-120) tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))); elseif (b <= 5.8e-34) tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e+184], t$95$1, If[LessEqual[b, -3.6e+155], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.4e+35], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5e-11], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.6e-59], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.7e-120], N[(c * N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e-34], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] + N[(j * N[(N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{+35}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-11}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - c \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq -8.6 \cdot 10^{-59}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{-120}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) + i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-34}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 + j \cdot \frac{y0 \cdot y5 - y1 \cdot y4}{y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.49999999999999993e184 or 5.8000000000000004e-34 < b Initial program 21.5%
Taylor expanded in b around inf 58.9%
if -1.49999999999999993e184 < b < -3.60000000000000007e155Initial program 0.0%
Taylor expanded in t around inf 10.0%
Taylor expanded in i around inf 80.2%
+-commutative80.2%
mul-1-neg80.2%
sub-neg80.2%
Simplified80.2%
if -3.60000000000000007e155 < b < -1.39999999999999999e35Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -1.39999999999999999e35 < b < -5.00000000000000018e-11Initial program 18.6%
Taylor expanded in y4 around inf 20.1%
*-commutative20.1%
*-commutative20.1%
Simplified20.1%
Taylor expanded in y2 around inf 64.4%
if -5.00000000000000018e-11 < b < -8.6000000000000006e-59Initial program 66.7%
Taylor expanded in y4 around inf 77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in y1 around inf 67.1%
if -8.6000000000000006e-59 < b < 5.70000000000000031e-120Initial program 40.5%
Taylor expanded in c around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in y4 around 0 48.2%
if 5.70000000000000031e-120 < b < 5.8000000000000004e-34Initial program 25.4%
Taylor expanded in y4 around inf 32.0%
*-commutative32.0%
*-commutative32.0%
Simplified32.0%
Taylor expanded in y3 around inf 50.8%
Taylor expanded in y around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
associate-/l*57.0%
*-commutative57.0%
Simplified57.0%
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 (- (* x y) (* z t))))
(if (<= a -1.3e+92)
(* b (* t (- (* j y4) (* z a))))
(if (<= a -1.85e+57)
(+
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5)))
(* c (* y (* y3 y4))))
(if (<= a -2.35e+52)
(* a (* b (* t (- z))))
(if (<= a -1.9e-38)
(* b (* z (- (* k y0) (* t a))))
(if (<= a -3.9e-274)
(*
c
(-
(* y4 (- (* y y3) (* t y2)))
(+ (* i t_1) (* y0 (- (* z y3) (* x y2))))))
(if (<= a 6.4e-209)
(* y3 (* y (+ (* c y4) (* j (/ (- (* y0 y5) (* y1 y4)) y)))))
(if (<= a 2.05e-25)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))
(if (<= a 1.15e+35)
(* b (* y4 (- (* t j) (* y k))))
(* b (* a t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double tmp;
if (a <= -1.3e+92) {
tmp = b * (t * ((j * y4) - (z * a)));
} else if (a <= -1.85e+57) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (y * (y3 * y4)));
} else if (a <= -2.35e+52) {
tmp = a * (b * (t * -z));
} else if (a <= -1.9e-38) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (a <= -3.9e-274) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2)))));
} else if (a <= 6.4e-209) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else if (a <= 2.05e-25) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (a <= 1.15e+35) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = b * (a * 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 = (x * y) - (z * t)
if (a <= (-1.3d+92)) then
tmp = b * (t * ((j * y4) - (z * a)))
else if (a <= (-1.85d+57)) then
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (y * (y3 * y4)))
else if (a <= (-2.35d+52)) then
tmp = a * (b * (t * -z))
else if (a <= (-1.9d-38)) then
tmp = b * (z * ((k * y0) - (t * a)))
else if (a <= (-3.9d-274)) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2)))))
else if (a <= 6.4d-209) then
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))))
else if (a <= 2.05d-25) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
else if (a <= 1.15d+35) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = b * (a * 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 = (x * y) - (z * t);
double tmp;
if (a <= -1.3e+92) {
tmp = b * (t * ((j * y4) - (z * a)));
} else if (a <= -1.85e+57) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (y * (y3 * y4)));
} else if (a <= -2.35e+52) {
tmp = a * (b * (t * -z));
} else if (a <= -1.9e-38) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (a <= -3.9e-274) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2)))));
} else if (a <= 6.4e-209) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else if (a <= 2.05e-25) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
} else if (a <= 1.15e+35) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = b * (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) tmp = 0 if a <= -1.3e+92: tmp = b * (t * ((j * y4) - (z * a))) elif a <= -1.85e+57: tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (y * (y3 * y4))) elif a <= -2.35e+52: tmp = a * (b * (t * -z)) elif a <= -1.9e-38: tmp = b * (z * ((k * y0) - (t * a))) elif a <= -3.9e-274: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2))))) elif a <= 6.4e-209: tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))) elif a <= 2.05e-25: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) elif a <= 1.15e+35: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = b * (a * t_1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (a <= -1.3e+92) tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); elseif (a <= -1.85e+57) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(c * Float64(y * Float64(y3 * y4)))); elseif (a <= -2.35e+52) tmp = Float64(a * Float64(b * Float64(t * Float64(-z)))); elseif (a <= -1.9e-38) tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a)))); elseif (a <= -3.9e-274) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_1) + Float64(y0 * Float64(Float64(z * y3) - Float64(x * y2)))))); elseif (a <= 6.4e-209) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) + Float64(j * Float64(Float64(Float64(y0 * y5) - Float64(y1 * y4)) / y))))); elseif (a <= 2.05e-25) 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 (a <= 1.15e+35) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(b * Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); tmp = 0.0; if (a <= -1.3e+92) tmp = b * (t * ((j * y4) - (z * a))); elseif (a <= -1.85e+57) tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (c * (y * (y3 * y4))); elseif (a <= -2.35e+52) tmp = a * (b * (t * -z)); elseif (a <= -1.9e-38) tmp = b * (z * ((k * y0) - (t * a))); elseif (a <= -3.9e-274) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2))))); elseif (a <= 6.4e-209) tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))); elseif (a <= 2.05e-25) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); elseif (a <= 1.15e+35) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = b * (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.3e+92], N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e+57], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.35e+52], N[(a * N[(b * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.9e-38], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-274], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.4e-209], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] + N[(j * N[(N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-25], 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[a, 1.15e+35], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
\mathbf{if}\;a \leq -1.3 \cdot 10^{+92}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{+57}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{+52}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(-z\right)\right)\right)\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-38}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-274}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_1 + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{-209}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 + j \cdot \frac{y0 \cdot y5 - y1 \cdot y4}{y}\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-25}:\\
\;\;\;\;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}\;a \leq 1.15 \cdot 10^{+35}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot t\_1\right)\\
\end{array}
\end{array}
if a < -1.2999999999999999e92Initial program 23.3%
Taylor expanded in t around inf 33.8%
Taylor expanded in b around inf 51.8%
if -1.2999999999999999e92 < a < -1.85000000000000003e57Initial program 11.1%
Taylor expanded in y4 around inf 45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in y3 around inf 77.8%
if -1.85000000000000003e57 < a < -2.35e52Initial program 50.0%
Taylor expanded in b around inf 54.5%
Taylor expanded in a around inf 100.0%
Taylor expanded in x around 0 100.0%
mul-1-neg100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
*-commutative100.0%
Simplified100.0%
if -2.35e52 < a < -1.9e-38Initial program 31.1%
Taylor expanded in b around inf 56.3%
Taylor expanded in z around -inf 75.2%
associate-*r*75.2%
neg-mul-175.2%
Simplified75.2%
if -1.9e-38 < a < -3.89999999999999985e-274Initial program 49.9%
Taylor expanded in c around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
*-commutative55.6%
*-commutative55.6%
*-commutative55.6%
Simplified55.6%
if -3.89999999999999985e-274 < a < 6.4000000000000003e-209Initial program 31.5%
Taylor expanded in y4 around inf 39.7%
*-commutative39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in y3 around inf 60.4%
Taylor expanded in y around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
associate-/l*67.0%
*-commutative67.0%
Simplified67.0%
if 6.4000000000000003e-209 < a < 2.04999999999999994e-25Initial program 27.0%
Taylor expanded in x around inf 49.4%
if 2.04999999999999994e-25 < a < 1.1499999999999999e35Initial program 26.7%
Taylor expanded in b around inf 33.3%
Taylor expanded in y4 around inf 67.3%
if 1.1499999999999999e35 < a Initial program 23.7%
Taylor expanded in b around inf 42.8%
Taylor expanded in a around inf 51.5%
Final simplification57.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_2))
(* t (- (* a y5) (* c y4)))))))
(if (<= a -1.25e+90)
(* b (* t (- (* j y4) (* z a))))
(if (<= a -7.2e+44)
t_3
(if (<= a -1.9e-38)
(* b (* z (- (* k y0) (* t a))))
(if (<= a -4.3e-276)
(*
c
(-
(* y4 (- (* y y3) (* t y2)))
(+ (* i t_1) (* y0 (- (* z y3) (* x y2))))))
(if (<= a 1.25e-216)
(* y3 (* y (+ (* c y4) (* j (/ (- (* y0 y5) (* y1 y4)) y)))))
(if (<= a 2.3e-108)
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0)))))
(if (<= a 1.22e-30)
t_3
(if (<= a 6.2e-25)
(* y3 (* y5 (- (* j y0) (* y a))))
(if (<= a 3.5e+32)
(* b (* y4 (- (* t j) (* y k))))
(* b (* a t_1)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
double tmp;
if (a <= -1.25e+90) {
tmp = b * (t * ((j * y4) - (z * a)));
} else if (a <= -7.2e+44) {
tmp = t_3;
} else if (a <= -1.9e-38) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (a <= -4.3e-276) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2)))));
} else if (a <= 1.25e-216) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else if (a <= 2.3e-108) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (a <= 1.22e-30) {
tmp = t_3;
} else if (a <= 6.2e-25) {
tmp = y3 * (y5 * ((j * y0) - (y * a)));
} else if (a <= 3.5e+32) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = b * (a * 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 = (x * y) - (z * t)
t_2 = (c * y0) - (a * y1)
t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))))
if (a <= (-1.25d+90)) then
tmp = b * (t * ((j * y4) - (z * a)))
else if (a <= (-7.2d+44)) then
tmp = t_3
else if (a <= (-1.9d-38)) then
tmp = b * (z * ((k * y0) - (t * a)))
else if (a <= (-4.3d-276)) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2)))))
else if (a <= 1.25d-216) then
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))))
else if (a <= 2.3d-108) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
else if (a <= 1.22d-30) then
tmp = t_3
else if (a <= 6.2d-25) then
tmp = y3 * (y5 * ((j * y0) - (y * a)))
else if (a <= 3.5d+32) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = b * (a * 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 = (x * y) - (z * t);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
double tmp;
if (a <= -1.25e+90) {
tmp = b * (t * ((j * y4) - (z * a)));
} else if (a <= -7.2e+44) {
tmp = t_3;
} else if (a <= -1.9e-38) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (a <= -4.3e-276) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2)))));
} else if (a <= 1.25e-216) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else if (a <= 2.3e-108) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
} else if (a <= 1.22e-30) {
tmp = t_3;
} else if (a <= 6.2e-25) {
tmp = y3 * (y5 * ((j * y0) - (y * a)));
} else if (a <= 3.5e+32) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = b * (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) t_2 = (c * y0) - (a * y1) t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4)))) tmp = 0 if a <= -1.25e+90: tmp = b * (t * ((j * y4) - (z * a))) elif a <= -7.2e+44: tmp = t_3 elif a <= -1.9e-38: tmp = b * (z * ((k * y0) - (t * a))) elif a <= -4.3e-276: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2))))) elif a <= 1.25e-216: tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))) elif a <= 2.3e-108: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) elif a <= 1.22e-30: tmp = t_3 elif a <= 6.2e-25: tmp = y3 * (y5 * ((j * y0) - (y * a))) elif a <= 3.5e+32: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = b * (a * t_1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_2)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (a <= -1.25e+90) tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); elseif (a <= -7.2e+44) tmp = t_3; elseif (a <= -1.9e-38) tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a)))); elseif (a <= -4.3e-276) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_1) + Float64(y0 * Float64(Float64(z * y3) - Float64(x * y2)))))); elseif (a <= 1.25e-216) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) + Float64(j * Float64(Float64(Float64(y0 * y5) - Float64(y1 * y4)) / y))))); elseif (a <= 2.3e-108) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (a <= 1.22e-30) tmp = t_3; elseif (a <= 6.2e-25) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(y * a)))); elseif (a <= 3.5e+32) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(b * Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); t_2 = (c * y0) - (a * y1); t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4)))); tmp = 0.0; if (a <= -1.25e+90) tmp = b * (t * ((j * y4) - (z * a))); elseif (a <= -7.2e+44) tmp = t_3; elseif (a <= -1.9e-38) tmp = b * (z * ((k * y0) - (t * a))); elseif (a <= -4.3e-276) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * y2))))); elseif (a <= 1.25e-216) tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))); elseif (a <= 2.3e-108) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); elseif (a <= 1.22e-30) tmp = t_3; elseif (a <= 6.2e-25) tmp = y3 * (y5 * ((j * y0) - (y * a))); elseif (a <= 3.5e+32) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = b * (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.25e+90], N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.2e+44], t$95$3, If[LessEqual[a, -1.9e-38], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.3e-276], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-216], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] + N[(j * N[(N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e-108], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.22e-30], t$95$3, If[LessEqual[a, 6.2e-25], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e+32], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t\_2\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;a \leq -1.25 \cdot 10^{+90}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{+44}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-38}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{elif}\;a \leq -4.3 \cdot 10^{-276}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_1 + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-216}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 + j \cdot \frac{y0 \cdot y5 - y1 \cdot y4}{y}\right)\right)\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-108}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t\_2\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq 1.22 \cdot 10^{-30}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-25}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - y \cdot a\right)\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot t\_1\right)\\
\end{array}
\end{array}
if a < -1.2500000000000001e90Initial program 22.7%
Taylor expanded in t around inf 33.0%
Taylor expanded in b around inf 53.0%
if -1.2500000000000001e90 < a < -7.2e44 or 2.29999999999999996e-108 < a < 1.22e-30Initial program 22.0%
Taylor expanded in y2 around inf 63.1%
if -7.2e44 < a < -1.9e-38Initial program 21.3%
Taylor expanded in b around inf 64.2%
Taylor expanded in z around -inf 85.8%
associate-*r*85.8%
neg-mul-185.8%
Simplified85.8%
if -1.9e-38 < a < -4.2999999999999996e-276Initial program 49.9%
Taylor expanded in c around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
*-commutative55.6%
*-commutative55.6%
*-commutative55.6%
Simplified55.6%
if -4.2999999999999996e-276 < a < 1.25000000000000005e-216Initial program 31.5%
Taylor expanded in y4 around inf 39.7%
*-commutative39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in y3 around inf 60.4%
Taylor expanded in y around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
associate-/l*67.0%
*-commutative67.0%
Simplified67.0%
if 1.25000000000000005e-216 < a < 2.29999999999999996e-108Initial program 35.4%
Taylor expanded in x around inf 61.1%
if 1.22e-30 < a < 6.19999999999999989e-25Initial program 49.2%
Taylor expanded in y3 around -inf 52.1%
Taylor expanded in y5 around inf 51.8%
distribute-lft-out--51.8%
*-commutative51.8%
Simplified51.8%
if 6.19999999999999989e-25 < a < 3.5000000000000001e32Initial program 26.7%
Taylor expanded in b around inf 33.3%
Taylor expanded in y4 around inf 67.3%
if 3.5000000000000001e32 < a Initial program 23.7%
Taylor expanded in b around inf 42.8%
Taylor expanded in a around inf 51.5%
Final simplification59.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -3.5e+242)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= a -1.85e-38)
(* b (* z (- (* k y0) (* t a))))
(if (<= a -1.7e-138)
(* c (* x (* y (- (/ (* y0 y2) y) i))))
(if (<= a 6e-280)
(* j (- (* b (* t y4)) (* y3 (- (* y1 y4) (* y0 y5)))))
(if (<= a 2e-155)
(* y0 (- (* j (* y3 y5)) (* b (- (* x j) (* z k)))))
(if (<= a 1.38e-105)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= a 4.3e+20)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= a 5.2e+31)
(* b (* y4 (- (* t j) (* y k))))
(if (or (<= a 1.9e+61) (not (<= a 5.5e+133)))
(* b (* a (- (* x y) (* z t))))
(* (- (* c y4) (* a y5)) (* 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 (a <= -3.5e+242) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (a <= -1.85e-38) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (a <= -1.7e-138) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (a <= 6e-280) {
tmp = j * ((b * (t * y4)) - (y3 * ((y1 * y4) - (y0 * y5))));
} else if (a <= 2e-155) {
tmp = y0 * ((j * (y3 * y5)) - (b * ((x * j) - (z * k))));
} else if (a <= 1.38e-105) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 4.3e+20) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (a <= 5.2e+31) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if ((a <= 1.9e+61) || !(a <= 5.5e+133)) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = ((c * y4) - (a * y5)) * (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 (a <= (-3.5d+242)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (a <= (-1.85d-38)) then
tmp = b * (z * ((k * y0) - (t * a)))
else if (a <= (-1.7d-138)) then
tmp = c * (x * (y * (((y0 * y2) / y) - i)))
else if (a <= 6d-280) then
tmp = j * ((b * (t * y4)) - (y3 * ((y1 * y4) - (y0 * y5))))
else if (a <= 2d-155) then
tmp = y0 * ((j * (y3 * y5)) - (b * ((x * j) - (z * k))))
else if (a <= 1.38d-105) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (a <= 4.3d+20) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (a <= 5.2d+31) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if ((a <= 1.9d+61) .or. (.not. (a <= 5.5d+133))) then
tmp = b * (a * ((x * y) - (z * t)))
else
tmp = ((c * y4) - (a * y5)) * (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 (a <= -3.5e+242) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (a <= -1.85e-38) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (a <= -1.7e-138) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (a <= 6e-280) {
tmp = j * ((b * (t * y4)) - (y3 * ((y1 * y4) - (y0 * y5))));
} else if (a <= 2e-155) {
tmp = y0 * ((j * (y3 * y5)) - (b * ((x * j) - (z * k))));
} else if (a <= 1.38e-105) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (a <= 4.3e+20) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (a <= 5.2e+31) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if ((a <= 1.9e+61) || !(a <= 5.5e+133)) {
tmp = b * (a * ((x * y) - (z * t)));
} else {
tmp = ((c * y4) - (a * y5)) * (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 a <= -3.5e+242: tmp = y3 * (z * ((a * y1) - (c * y0))) elif a <= -1.85e-38: tmp = b * (z * ((k * y0) - (t * a))) elif a <= -1.7e-138: tmp = c * (x * (y * (((y0 * y2) / y) - i))) elif a <= 6e-280: tmp = j * ((b * (t * y4)) - (y3 * ((y1 * y4) - (y0 * y5)))) elif a <= 2e-155: tmp = y0 * ((j * (y3 * y5)) - (b * ((x * j) - (z * k)))) elif a <= 1.38e-105: tmp = c * (x * ((y0 * y2) - (y * i))) elif a <= 4.3e+20: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif a <= 5.2e+31: tmp = b * (y4 * ((t * j) - (y * k))) elif (a <= 1.9e+61) or not (a <= 5.5e+133): tmp = b * (a * ((x * y) - (z * t))) else: tmp = ((c * y4) - (a * y5)) * (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 (a <= -3.5e+242) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (a <= -1.85e-38) tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a)))); elseif (a <= -1.7e-138) tmp = Float64(c * Float64(x * Float64(y * Float64(Float64(Float64(y0 * y2) / y) - i)))); elseif (a <= 6e-280) tmp = Float64(j * Float64(Float64(b * Float64(t * y4)) - Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))))); elseif (a <= 2e-155) tmp = Float64(y0 * Float64(Float64(j * Float64(y3 * y5)) - Float64(b * Float64(Float64(x * j) - Float64(z * k))))); elseif (a <= 1.38e-105) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (a <= 4.3e+20) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (a <= 5.2e+31) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif ((a <= 1.9e+61) || !(a <= 5.5e+133)) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(Float64(Float64(c * y4) - Float64(a * y5)) * 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 (a <= -3.5e+242) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (a <= -1.85e-38) tmp = b * (z * ((k * y0) - (t * a))); elseif (a <= -1.7e-138) tmp = c * (x * (y * (((y0 * y2) / y) - i))); elseif (a <= 6e-280) tmp = j * ((b * (t * y4)) - (y3 * ((y1 * y4) - (y0 * y5)))); elseif (a <= 2e-155) tmp = y0 * ((j * (y3 * y5)) - (b * ((x * j) - (z * k)))); elseif (a <= 1.38e-105) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (a <= 4.3e+20) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (a <= 5.2e+31) tmp = b * (y4 * ((t * j) - (y * k))); elseif ((a <= 1.9e+61) || ~((a <= 5.5e+133))) tmp = b * (a * ((x * y) - (z * t))); else tmp = ((c * y4) - (a * y5)) * (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[a, -3.5e+242], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-38], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.7e-138], N[(c * N[(x * N[(y * N[(N[(N[(y0 * y2), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e-280], N[(j * N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] - N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-155], N[(y0 * N[(N[(j * N[(y3 * y5), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.38e-105], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e+20], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e+31], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 1.9e+61], N[Not[LessEqual[a, 5.5e+133]], $MachinePrecision]], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision] * N[(y * y3), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.5 \cdot 10^{+242}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-38}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-138}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(\frac{y0 \cdot y2}{y} - i\right)\right)\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-280}:\\
\;\;\;\;j \cdot \left(b \cdot \left(t \cdot y4\right) - y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-155}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5\right) - b \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;a \leq 1.38 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{+20}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+31}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+61} \lor \neg \left(a \leq 5.5 \cdot 10^{+133}\right):\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot y4 - a \cdot y5\right) \cdot \left(y \cdot y3\right)\\
\end{array}
\end{array}
if a < -3.4999999999999999e242Initial program 28.1%
Taylor expanded in y3 around -inf 55.4%
Taylor expanded in z around inf 64.8%
if -3.4999999999999999e242 < a < -1.85e-38Initial program 23.6%
Taylor expanded in b around inf 47.7%
Taylor expanded in z around -inf 53.4%
associate-*r*53.4%
neg-mul-153.4%
Simplified53.4%
if -1.85e-38 < a < -1.7000000000000001e-138Initial program 42.9%
Taylor expanded in c around inf 71.5%
+-commutative71.5%
mul-1-neg71.5%
unsub-neg71.5%
*-commutative71.5%
*-commutative71.5%
*-commutative71.5%
*-commutative71.5%
Simplified71.5%
Taylor expanded in x around inf 51.1%
Taylor expanded in y around inf 58.0%
if -1.7000000000000001e-138 < a < 5.99999999999999974e-280Initial program 43.1%
Taylor expanded in y4 around inf 46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
Taylor expanded in j around inf 46.9%
if 5.99999999999999974e-280 < a < 2.00000000000000003e-155Initial program 34.7%
Taylor expanded in y0 around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
*-commutative57.0%
*-commutative57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
Taylor expanded in j around inf 57.3%
if 2.00000000000000003e-155 < a < 1.3800000000000001e-105Initial program 36.1%
Taylor expanded in c around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
*-commutative42.3%
*-commutative42.3%
*-commutative42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in x around inf 60.2%
if 1.3800000000000001e-105 < a < 4.3e20Initial program 22.3%
Taylor expanded in y4 around inf 37.6%
*-commutative37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in y1 around inf 45.3%
if 4.3e20 < a < 5.2e31Initial program 16.7%
Taylor expanded in b around inf 33.1%
Taylor expanded in y4 around inf 67.4%
if 5.2e31 < a < 1.89999999999999998e61 or 5.5e133 < a Initial program 25.6%
Taylor expanded in b around inf 58.3%
Taylor expanded in a around inf 60.9%
if 1.89999999999999998e61 < a < 5.5e133Initial program 22.2%
Taylor expanded in y3 around -inf 50.2%
Taylor expanded in y around inf 56.1%
associate-*r*51.2%
Simplified51.2%
Final simplification54.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -8.5e+154)
t_2
(if (<= b -2.7e+29)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -1e-25)
(* b (* j (- (* t y4) (* x y0))))
(if (<= b -1.32e-48)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b -6.2e-133)
t_1
(if (<= b -2.5e-232)
(* (* c y4) (- (* y y3) (* t y2)))
(if (<= b 1.75e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 2.05e-119)
t_1
(if (<= b 1.65e-12)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= b 1.15e+128)
(* (* b k) (- (* z y0) (* y 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -8.5e+154) {
tmp = t_2;
} else if (b <= -2.7e+29) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1e-25) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (b <= -1.32e-48) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= -6.2e-133) {
tmp = t_1;
} else if (b <= -2.5e-232) {
tmp = (c * y4) * ((y * y3) - (t * y2));
} else if (b <= 1.75e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 2.05e-119) {
tmp = t_1;
} else if (b <= 1.65e-12) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 1.15e+128) {
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-8.5d+154)) then
tmp = t_2
else if (b <= (-2.7d+29)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-1d-25)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (b <= (-1.32d-48)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= (-6.2d-133)) then
tmp = t_1
else if (b <= (-2.5d-232)) then
tmp = (c * y4) * ((y * y3) - (t * y2))
else if (b <= 1.75d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 2.05d-119) then
tmp = t_1
else if (b <= 1.65d-12) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (b <= 1.15d+128) then
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -8.5e+154) {
tmp = t_2;
} else if (b <= -2.7e+29) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1e-25) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (b <= -1.32e-48) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= -6.2e-133) {
tmp = t_1;
} else if (b <= -2.5e-232) {
tmp = (c * y4) * ((y * y3) - (t * y2));
} else if (b <= 1.75e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 2.05e-119) {
tmp = t_1;
} else if (b <= 1.65e-12) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 1.15e+128) {
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -8.5e+154: tmp = t_2 elif b <= -2.7e+29: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -1e-25: tmp = b * (j * ((t * y4) - (x * y0))) elif b <= -1.32e-48: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= -6.2e-133: tmp = t_1 elif b <= -2.5e-232: tmp = (c * y4) * ((y * y3) - (t * y2)) elif b <= 1.75e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 2.05e-119: tmp = t_1 elif b <= 1.65e-12: tmp = t * (y5 * ((a * y2) - (i * j))) elif b <= 1.15e+128: tmp = (b * k) * ((z * y0) - (y * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -8.5e+154) tmp = t_2; elseif (b <= -2.7e+29) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -1e-25) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (b <= -1.32e-48) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= -6.2e-133) tmp = t_1; elseif (b <= -2.5e-232) tmp = Float64(Float64(c * y4) * Float64(Float64(y * y3) - Float64(t * y2))); elseif (b <= 1.75e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 2.05e-119) tmp = t_1; elseif (b <= 1.65e-12) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (b <= 1.15e+128) tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * 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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -8.5e+154) tmp = t_2; elseif (b <= -2.7e+29) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -1e-25) tmp = b * (j * ((t * y4) - (x * y0))); elseif (b <= -1.32e-48) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= -6.2e-133) tmp = t_1; elseif (b <= -2.5e-232) tmp = (c * y4) * ((y * y3) - (t * y2)); elseif (b <= 1.75e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 2.05e-119) tmp = t_1; elseif (b <= 1.65e-12) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (b <= 1.15e+128) tmp = (b * k) * ((z * y0) - (y * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.5e+154], t$95$2, If[LessEqual[b, -2.7e+29], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-25], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.32e-48], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e-133], t$95$1, If[LessEqual[b, -2.5e-232], N[(N[(c * y4), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e-119], t$95$1, If[LessEqual[b, 1.65e-12], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+128], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -8.5 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+29}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-25}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{-48}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-133}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-232}:\\
\;\;\;\;\left(c \cdot y4\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{-12}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+128}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8.5000000000000002e154 or 1.14999999999999999e128 < b Initial program 14.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in a around inf 59.2%
if -8.5000000000000002e154 < b < -2.7e29Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -2.7e29 < b < -1.00000000000000004e-25Initial program 21.7%
Taylor expanded in b around inf 28.7%
Taylor expanded in j around inf 50.6%
if -1.00000000000000004e-25 < b < -1.32e-48Initial program 80.0%
Taylor expanded in y4 around inf 80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in y1 around inf 80.1%
if -1.32e-48 < b < -6.20000000000000032e-133 or 1.75000000000000009e-269 < b < 2.0500000000000001e-119Initial program 42.9%
Taylor expanded in y0 around inf 45.3%
+-commutative45.3%
mul-1-neg45.3%
unsub-neg45.3%
*-commutative45.3%
*-commutative45.3%
*-commutative45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in c around inf 48.3%
if -6.20000000000000032e-133 < b < -2.5e-232Initial program 47.1%
Taylor expanded in c around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
*-commutative59.0%
*-commutative59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in y4 around inf 47.8%
associate-*r*47.8%
*-commutative47.8%
*-commutative47.8%
Simplified47.8%
if -2.5e-232 < b < 1.75000000000000009e-269Initial program 33.3%
Taylor expanded in t around inf 42.6%
Taylor expanded in i around inf 46.9%
+-commutative46.9%
mul-1-neg46.9%
sub-neg46.9%
Simplified46.9%
if 2.0500000000000001e-119 < b < 1.65e-12Initial program 33.7%
Taylor expanded in t around inf 50.5%
Taylor expanded in y5 around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if 1.65e-12 < b < 1.14999999999999999e128Initial program 28.4%
Taylor expanded in b around inf 52.6%
Taylor expanded in k around -inf 52.6%
mul-1-neg52.6%
associate-*r*52.6%
Simplified52.6%
Final simplification54.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2
(*
b
(+
(+ (* a t_1) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))))
(if (<= b -1.75e+184)
t_2
(if (<= b -5e+155)
(* i (* t (- (* z c) (* j y5))))
(if (<= b -9.5e+27)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -1.4e-11)
(* y2 (- (* k (- (* y1 y4) (* y0 y5))) (* c (* t y4))))
(if (<= b -1.02e-56)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 9.2e+42)
(*
c
(-
(* y4 (- (* y y3) (* t y2)))
(+ (* i t_1) (* y0 (- (* z y3) (* x 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 = (x * y) - (z * t);
double t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -1.75e+184) {
tmp = t_2;
} else if (b <= -5e+155) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= -9.5e+27) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1.4e-11) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)));
} else if (b <= -1.02e-56) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 9.2e+42) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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 = (x * y) - (z * t)
t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
if (b <= (-1.75d+184)) then
tmp = t_2
else if (b <= (-5d+155)) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= (-9.5d+27)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-1.4d-11)) then
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)))
else if (b <= (-1.02d-56)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 9.2d+42) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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 = (x * y) - (z * t);
double t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -1.75e+184) {
tmp = t_2;
} else if (b <= -5e+155) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= -9.5e+27) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1.4e-11) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)));
} else if (b <= -1.02e-56) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 9.2e+42) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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 = (x * y) - (z * t) t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) tmp = 0 if b <= -1.75e+184: tmp = t_2 elif b <= -5e+155: tmp = i * (t * ((z * c) - (j * y5))) elif b <= -9.5e+27: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -1.4e-11: tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4))) elif b <= -1.02e-56: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 9.2e+42: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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(x * y) - Float64(z * t)) t_2 = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (b <= -1.75e+184) tmp = t_2; elseif (b <= -5e+155) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= -9.5e+27) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -1.4e-11) tmp = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(c * Float64(t * y4)))); elseif (b <= -1.02e-56) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 9.2e+42) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_1) + Float64(y0 * Float64(Float64(z * y3) - Float64(x * 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 = (x * y) - (z * t); t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (b <= -1.75e+184) tmp = t_2; elseif (b <= -5e+155) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= -9.5e+27) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -1.4e-11) tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4))); elseif (b <= -1.02e-56) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 9.2e+42) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.75e+184], t$95$2, If[LessEqual[b, -5e+155], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e+27], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.4e-11], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.02e-56], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+42], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := b \cdot \left(\left(a \cdot t\_1 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.75 \cdot 10^{+184}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{+27}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-11}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - c \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq -1.02 \cdot 10^{-56}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_1 + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.74999999999999989e184 or 9.2e42 < b Initial program 16.8%
Taylor expanded in b around inf 61.1%
if -1.74999999999999989e184 < b < -4.9999999999999999e155Initial program 0.0%
Taylor expanded in t around inf 10.0%
Taylor expanded in i around inf 80.2%
+-commutative80.2%
mul-1-neg80.2%
sub-neg80.2%
Simplified80.2%
if -4.9999999999999999e155 < b < -9.4999999999999997e27Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -9.4999999999999997e27 < b < -1.4e-11Initial program 18.6%
Taylor expanded in y4 around inf 20.1%
*-commutative20.1%
*-commutative20.1%
Simplified20.1%
Taylor expanded in y2 around inf 64.4%
if -1.4e-11 < b < -1.02e-56Initial program 66.7%
Taylor expanded in y4 around inf 77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in y1 around inf 67.1%
if -1.02e-56 < b < 9.2e42Initial program 40.1%
Taylor expanded in c around inf 50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Final simplification57.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.2e+154)
t_2
(if (<= b -80000000.0)
t_1
(if (<= b -2.5e-211)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 2.6e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 4.4e-105)
t_1
(if (<= b 9e-10)
(* y3 (* j (* y1 (- y4))))
(if (<= b 2.55e+36)
t_1
(if (or (<= b 6.2e+95) (not (<= b 5.1e+123)))
t_2
(* k (* y (- (* i y5) (* b y4))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -80000000.0) {
tmp = t_1;
} else if (b <= -2.5e-211) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 2.6e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 4.4e-105) {
tmp = t_1;
} else if (b <= 9e-10) {
tmp = y3 * (j * (y1 * -y4));
} else if (b <= 2.55e+36) {
tmp = t_1;
} else if ((b <= 6.2e+95) || !(b <= 5.1e+123)) {
tmp = t_2;
} else {
tmp = k * (y * ((i * y5) - (b * y4)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.2d+154)) then
tmp = t_2
else if (b <= (-80000000.0d0)) then
tmp = t_1
else if (b <= (-2.5d-211)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 2.6d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 4.4d-105) then
tmp = t_1
else if (b <= 9d-10) then
tmp = y3 * (j * (y1 * -y4))
else if (b <= 2.55d+36) then
tmp = t_1
else if ((b <= 6.2d+95) .or. (.not. (b <= 5.1d+123))) then
tmp = t_2
else
tmp = k * (y * ((i * y5) - (b * y4)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -80000000.0) {
tmp = t_1;
} else if (b <= -2.5e-211) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 2.6e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 4.4e-105) {
tmp = t_1;
} else if (b <= 9e-10) {
tmp = y3 * (j * (y1 * -y4));
} else if (b <= 2.55e+36) {
tmp = t_1;
} else if ((b <= 6.2e+95) || !(b <= 5.1e+123)) {
tmp = t_2;
} else {
tmp = k * (y * ((i * y5) - (b * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.2e+154: tmp = t_2 elif b <= -80000000.0: tmp = t_1 elif b <= -2.5e-211: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 2.6e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 4.4e-105: tmp = t_1 elif b <= 9e-10: tmp = y3 * (j * (y1 * -y4)) elif b <= 2.55e+36: tmp = t_1 elif (b <= 6.2e+95) or not (b <= 5.1e+123): tmp = t_2 else: tmp = k * (y * ((i * y5) - (b * y4))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.2e+154) tmp = t_2; elseif (b <= -80000000.0) tmp = t_1; elseif (b <= -2.5e-211) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 2.6e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 4.4e-105) tmp = t_1; elseif (b <= 9e-10) tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-y4)))); elseif (b <= 2.55e+36) tmp = t_1; elseif ((b <= 6.2e+95) || !(b <= 5.1e+123)) tmp = t_2; else tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.2e+154) tmp = t_2; elseif (b <= -80000000.0) tmp = t_1; elseif (b <= -2.5e-211) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 2.6e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 4.4e-105) tmp = t_1; elseif (b <= 9e-10) tmp = y3 * (j * (y1 * -y4)); elseif (b <= 2.55e+36) tmp = t_1; elseif ((b <= 6.2e+95) || ~((b <= 5.1e+123))) tmp = t_2; else tmp = k * (y * ((i * y5) - (b * y4))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.2e+154], t$95$2, If[LessEqual[b, -80000000.0], t$95$1, If[LessEqual[b, -2.5e-211], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-105], t$95$1, If[LessEqual[b, 9e-10], N[(y3 * N[(j * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.55e+36], t$95$1, If[Or[LessEqual[b, 6.2e+95], N[Not[LessEqual[b, 5.1e+123]], $MachinePrecision]], t$95$2, N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -80000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-211}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-10}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;b \leq 2.55 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+95} \lor \neg \left(b \leq 5.1 \cdot 10^{+123}\right):\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\end{array}
\end{array}
if b < -1.20000000000000007e154 or 2.54999999999999986e36 < b < 6.2000000000000006e95 or 5.09999999999999972e123 < b Initial program 14.4%
Taylor expanded in b around inf 58.5%
Taylor expanded in a around inf 56.8%
if -1.20000000000000007e154 < b < -8e7 or 2.6e-269 < b < 4.40000000000000008e-105 or 8.9999999999999999e-10 < b < 2.54999999999999986e36Initial program 34.9%
Taylor expanded in y0 around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in c around inf 51.8%
if -8e7 < b < -2.5000000000000001e-211Initial program 50.0%
Taylor expanded in y4 around inf 43.1%
*-commutative43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in y1 around inf 45.6%
if -2.5000000000000001e-211 < b < 2.6e-269Initial program 32.2%
Taylor expanded in t around inf 42.7%
Taylor expanded in i around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
sub-neg43.1%
Simplified43.1%
if 4.40000000000000008e-105 < b < 8.9999999999999999e-10Initial program 41.5%
Taylor expanded in y4 around inf 36.2%
*-commutative36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in y3 around inf 36.3%
Taylor expanded in y1 around inf 42.6%
associate-*r*42.6%
mul-1-neg42.6%
*-commutative42.6%
Simplified42.6%
if 6.2000000000000006e95 < b < 5.09999999999999972e123Initial program 25.0%
Taylor expanded in k around inf 78.6%
+-commutative78.6%
mul-1-neg78.6%
unsub-neg78.6%
*-commutative78.6%
associate-*r*78.6%
neg-mul-178.6%
Simplified78.6%
Taylor expanded in y around inf 78.6%
Final simplification51.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.2e+154)
t_2
(if (<= b -4.3e+25)
t_1
(if (<= b -1.8e-10)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= b -2.55e-38)
(* y3 (* j (* y1 (- y4))))
(if (<= b -9.5e-217)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= b -1.5e-248)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= b 1.75e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 6.8e-108)
t_1
(if (<= b 2.7e+122)
(* k (* y (- (* i y5) (* b 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -4.3e+25) {
tmp = t_1;
} else if (b <= -1.8e-10) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (b <= -2.55e-38) {
tmp = y3 * (j * (y1 * -y4));
} else if (b <= -9.5e-217) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (b <= -1.5e-248) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (b <= 1.75e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 6.8e-108) {
tmp = t_1;
} else if (b <= 2.7e+122) {
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.2d+154)) then
tmp = t_2
else if (b <= (-4.3d+25)) then
tmp = t_1
else if (b <= (-1.8d-10)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (b <= (-2.55d-38)) then
tmp = y3 * (j * (y1 * -y4))
else if (b <= (-9.5d-217)) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (b <= (-1.5d-248)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (b <= 1.75d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 6.8d-108) then
tmp = t_1
else if (b <= 2.7d+122) then
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -4.3e+25) {
tmp = t_1;
} else if (b <= -1.8e-10) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (b <= -2.55e-38) {
tmp = y3 * (j * (y1 * -y4));
} else if (b <= -9.5e-217) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (b <= -1.5e-248) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (b <= 1.75e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 6.8e-108) {
tmp = t_1;
} else if (b <= 2.7e+122) {
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.2e+154: tmp = t_2 elif b <= -4.3e+25: tmp = t_1 elif b <= -1.8e-10: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif b <= -2.55e-38: tmp = y3 * (j * (y1 * -y4)) elif b <= -9.5e-217: tmp = t * (y2 * ((a * y5) - (c * y4))) elif b <= -1.5e-248: tmp = c * (x * ((y0 * y2) - (y * i))) elif b <= 1.75e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 6.8e-108: tmp = t_1 elif b <= 2.7e+122: tmp = k * (y * ((i * y5) - (b * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.2e+154) tmp = t_2; elseif (b <= -4.3e+25) tmp = t_1; elseif (b <= -1.8e-10) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (b <= -2.55e-38) tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-y4)))); elseif (b <= -9.5e-217) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (b <= -1.5e-248) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (b <= 1.75e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 6.8e-108) tmp = t_1; elseif (b <= 2.7e+122) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * 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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.2e+154) tmp = t_2; elseif (b <= -4.3e+25) tmp = t_1; elseif (b <= -1.8e-10) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (b <= -2.55e-38) tmp = y3 * (j * (y1 * -y4)); elseif (b <= -9.5e-217) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (b <= -1.5e-248) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (b <= 1.75e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 6.8e-108) tmp = t_1; elseif (b <= 2.7e+122) tmp = k * (y * ((i * y5) - (b * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.2e+154], t$95$2, If[LessEqual[b, -4.3e+25], t$95$1, If[LessEqual[b, -1.8e-10], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.55e-38], N[(y3 * N[(j * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e-217], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e-248], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-108], t$95$1, If[LessEqual[b, 2.7e+122], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.3 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-10}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -2.55 \cdot 10^{-38}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-217}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-248}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+122}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.20000000000000007e154 or 2.6999999999999998e122 < b Initial program 14.0%
Taylor expanded in b around inf 58.4%
Taylor expanded in a around inf 59.0%
if -1.20000000000000007e154 < b < -4.29999999999999998e25 or 1.75000000000000009e-269 < b < 6.80000000000000004e-108Initial program 35.5%
Taylor expanded in y0 around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
*-commutative49.7%
*-commutative49.7%
*-commutative49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in c around inf 53.5%
if -4.29999999999999998e25 < b < -1.8e-10Initial program 11.6%
Taylor expanded in k around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
associate-*r*44.8%
neg-mul-144.8%
Simplified44.8%
Taylor expanded in y2 around inf 56.3%
if -1.8e-10 < b < -2.55000000000000014e-38Initial program 50.0%
Taylor expanded in y4 around inf 62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in y3 around inf 51.9%
Taylor expanded in y1 around inf 39.2%
associate-*r*39.2%
mul-1-neg39.2%
*-commutative39.2%
Simplified39.2%
if -2.55000000000000014e-38 < b < -9.5000000000000001e-217Initial program 53.5%
Taylor expanded in t around inf 50.8%
Taylor expanded in y2 around inf 40.6%
if -9.5000000000000001e-217 < b < -1.50000000000000007e-248Initial program 25.0%
Taylor expanded in c around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in x around inf 63.6%
if -1.50000000000000007e-248 < b < 1.75000000000000009e-269Initial program 34.9%
Taylor expanded in t around inf 45.9%
Taylor expanded in i around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
sub-neg51.2%
Simplified51.2%
if 6.80000000000000004e-108 < b < 2.6999999999999998e122Initial program 33.7%
Taylor expanded in k around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
associate-*r*49.6%
neg-mul-149.6%
Simplified49.6%
Taylor expanded in y around inf 37.3%
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 (* a (* b (- (* x y) (* z t))))))
(if (<= b -8.5e+154)
t_1
(if (<= b -1.4e+27)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -1.2e-5)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= b -4.4e-72)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b -3.6e-246)
(* c (* x (* y (- (/ (* y0 y2) y) i))))
(if (<= b 3.4e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 5.7e-120)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 1.75e-10)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= b 1.3e+131)
(* (* b k) (- (* z y0) (* y y4)))
t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -8.5e+154) {
tmp = t_1;
} else if (b <= -1.4e+27) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1.2e-5) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (b <= -4.4e-72) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= -3.6e-246) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (b <= 3.4e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 5.7e-120) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.75e-10) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 1.3e+131) {
tmp = (b * k) * ((z * y0) - (y * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (b <= (-8.5d+154)) then
tmp = t_1
else if (b <= (-1.4d+27)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-1.2d-5)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (b <= (-4.4d-72)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= (-3.6d-246)) then
tmp = c * (x * (y * (((y0 * y2) / y) - i)))
else if (b <= 3.4d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 5.7d-120) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 1.75d-10) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (b <= 1.3d+131) then
tmp = (b * k) * ((z * y0) - (y * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -8.5e+154) {
tmp = t_1;
} else if (b <= -1.4e+27) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1.2e-5) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (b <= -4.4e-72) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= -3.6e-246) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (b <= 3.4e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 5.7e-120) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.75e-10) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 1.3e+131) {
tmp = (b * k) * ((z * y0) - (y * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -8.5e+154: tmp = t_1 elif b <= -1.4e+27: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -1.2e-5: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif b <= -4.4e-72: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= -3.6e-246: tmp = c * (x * (y * (((y0 * y2) / y) - i))) elif b <= 3.4e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 5.7e-120: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 1.75e-10: tmp = t * (y5 * ((a * y2) - (i * j))) elif b <= 1.3e+131: tmp = (b * k) * ((z * y0) - (y * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -8.5e+154) tmp = t_1; elseif (b <= -1.4e+27) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -1.2e-5) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (b <= -4.4e-72) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= -3.6e-246) tmp = Float64(c * Float64(x * Float64(y * Float64(Float64(Float64(y0 * y2) / y) - i)))); elseif (b <= 3.4e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 5.7e-120) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 1.75e-10) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (b <= 1.3e+131) tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -8.5e+154) tmp = t_1; elseif (b <= -1.4e+27) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -1.2e-5) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (b <= -4.4e-72) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= -3.6e-246) tmp = c * (x * (y * (((y0 * y2) / y) - i))); elseif (b <= 3.4e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 5.7e-120) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 1.75e-10) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (b <= 1.3e+131) tmp = (b * k) * ((z * y0) - (y * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.5e+154], t$95$1, If[LessEqual[b, -1.4e+27], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.2e-5], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.4e-72], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-246], N[(c * N[(x * N[(y * N[(N[(N[(y0 * y2), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.7e-120], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-10], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e+131], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -8.5 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{+27}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-5}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-72}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(\frac{y0 \cdot y2}{y} - i\right)\right)\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{-120}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-10}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+131}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.5000000000000002e154 or 1.3e131 < b Initial program 14.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in a around inf 59.2%
if -8.5000000000000002e154 < b < -1.4e27Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -1.4e27 < b < -1.2e-5Initial program 11.6%
Taylor expanded in y0 around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in j around -inf 67.3%
if -1.2e-5 < b < -4.40000000000000005e-72Initial program 61.5%
Taylor expanded in y4 around inf 61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in y1 around inf 62.0%
if -4.40000000000000005e-72 < b < -3.6000000000000002e-246Initial program 43.7%
Taylor expanded in c around inf 56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
*-commutative56.8%
*-commutative56.8%
*-commutative56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in x around inf 41.8%
Taylor expanded in y around inf 48.1%
if -3.6000000000000002e-246 < b < 3.3999999999999997e-269Initial program 34.9%
Taylor expanded in t around inf 45.9%
Taylor expanded in i around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
sub-neg51.2%
Simplified51.2%
if 3.3999999999999997e-269 < b < 5.70000000000000031e-120Initial program 40.2%
Taylor expanded in y0 around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
*-commutative54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in c around inf 49.6%
if 5.70000000000000031e-120 < b < 1.7499999999999999e-10Initial program 33.7%
Taylor expanded in t around inf 50.5%
Taylor expanded in y5 around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if 1.7499999999999999e-10 < b < 1.3e131Initial program 28.4%
Taylor expanded in b around inf 52.6%
Taylor expanded in k around -inf 52.6%
mul-1-neg52.6%
associate-*r*52.6%
Simplified52.6%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2
(*
b
(+
(+ (* a t_1) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))))
(if (<= b -1.56e+184)
t_2
(if (<= b -3.9e+155)
(* i (* t (- (* z c) (* j y5))))
(if (<= b -1.4e+27)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -8.8e-67)
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0)))))
(if (<= b 1.8e+44)
(*
c
(-
(* y4 (- (* y y3) (* t y2)))
(+ (* i t_1) (* y0 (- (* z y3) (* x 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 = (x * y) - (z * t);
double t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -1.56e+184) {
tmp = t_2;
} else if (b <= -3.9e+155) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= -1.4e+27) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -8.8e-67) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (b <= 1.8e+44) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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 = (x * y) - (z * t)
t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
if (b <= (-1.56d+184)) then
tmp = t_2
else if (b <= (-3.9d+155)) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= (-1.4d+27)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-8.8d-67)) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
else if (b <= 1.8d+44) then
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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 = (x * y) - (z * t);
double t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
double tmp;
if (b <= -1.56e+184) {
tmp = t_2;
} else if (b <= -3.9e+155) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= -1.4e+27) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -8.8e-67) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
} else if (b <= 1.8e+44) {
tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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 = (x * y) - (z * t) t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) tmp = 0 if b <= -1.56e+184: tmp = t_2 elif b <= -3.9e+155: tmp = i * (t * ((z * c) - (j * y5))) elif b <= -1.4e+27: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -8.8e-67: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) elif b <= 1.8e+44: tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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(x * y) - Float64(z * t)) t_2 = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))) tmp = 0.0 if (b <= -1.56e+184) tmp = t_2; elseif (b <= -3.9e+155) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= -1.4e+27) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -8.8e-67) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (b <= 1.8e+44) tmp = Float64(c * Float64(Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))) - Float64(Float64(i * t_1) + Float64(y0 * Float64(Float64(z * y3) - Float64(x * 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 = (x * y) - (z * t); t_2 = b * (((a * t_1) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); tmp = 0.0; if (b <= -1.56e+184) tmp = t_2; elseif (b <= -3.9e+155) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= -1.4e+27) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -8.8e-67) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); elseif (b <= 1.8e+44) tmp = c * ((y4 * ((y * y3) - (t * y2))) - ((i * t_1) + (y0 * ((z * y3) - (x * 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[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.56e+184], t$95$2, If[LessEqual[b, -3.9e+155], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.4e+27], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.8e-67], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e+44], N[(c * N[(N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(i * t$95$1), $MachinePrecision] + N[(y0 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := b \cdot \left(\left(a \cdot t\_1 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.56 \cdot 10^{+184}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{+27}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-67}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{+44}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right) - \left(i \cdot t\_1 + y0 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.56e184 or 1.8e44 < b Initial program 16.8%
Taylor expanded in b around inf 61.1%
if -1.56e184 < b < -3.8999999999999998e155Initial program 0.0%
Taylor expanded in t around inf 10.0%
Taylor expanded in i around inf 80.2%
+-commutative80.2%
mul-1-neg80.2%
sub-neg80.2%
Simplified80.2%
if -3.8999999999999998e155 < b < -1.4e27Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -1.4e27 < b < -8.8000000000000004e-67Initial program 43.1%
Taylor expanded in j around inf 62.0%
+-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
*-commutative62.0%
Simplified62.0%
if -8.8000000000000004e-67 < b < 1.8e44Initial program 39.6%
Taylor expanded in c around inf 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
*-commutative50.7%
*-commutative50.7%
*-commutative50.7%
Simplified50.7%
Final simplification57.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (- (* y0 y2) (* y i)))))
(t_2 (* b (* a (- (* x y) (* z t)))))
(t_3 (* b (* y4 (- (* t j) (* y k))))))
(if (<= a -2.25e+59)
t_2
(if (<= a -2600000000.0)
(* (* y0 y2) (* x c))
(if (<= a -1.6e-38)
(* (* b k) (* z y0))
(if (<= a -1.25e-129)
t_1
(if (<= a -5.5e-271)
t_3
(if (<= a 1.9e-155)
(* b (* y0 (- (* z k) (* x j))))
(if (<= a 1.35e-29) t_1 (if (<= a 1.35e+33) t_3 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 * (x * ((y0 * y2) - (y * i)));
double t_2 = b * (a * ((x * y) - (z * t)));
double t_3 = b * (y4 * ((t * j) - (y * k)));
double tmp;
if (a <= -2.25e+59) {
tmp = t_2;
} else if (a <= -2600000000.0) {
tmp = (y0 * y2) * (x * c);
} else if (a <= -1.6e-38) {
tmp = (b * k) * (z * y0);
} else if (a <= -1.25e-129) {
tmp = t_1;
} else if (a <= -5.5e-271) {
tmp = t_3;
} else if (a <= 1.9e-155) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (a <= 1.35e-29) {
tmp = t_1;
} else if (a <= 1.35e+33) {
tmp = t_3;
} 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 * (x * ((y0 * y2) - (y * i)))
t_2 = b * (a * ((x * y) - (z * t)))
t_3 = b * (y4 * ((t * j) - (y * k)))
if (a <= (-2.25d+59)) then
tmp = t_2
else if (a <= (-2600000000.0d0)) then
tmp = (y0 * y2) * (x * c)
else if (a <= (-1.6d-38)) then
tmp = (b * k) * (z * y0)
else if (a <= (-1.25d-129)) then
tmp = t_1
else if (a <= (-5.5d-271)) then
tmp = t_3
else if (a <= 1.9d-155) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (a <= 1.35d-29) then
tmp = t_1
else if (a <= 1.35d+33) then
tmp = t_3
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 * (x * ((y0 * y2) - (y * i)));
double t_2 = b * (a * ((x * y) - (z * t)));
double t_3 = b * (y4 * ((t * j) - (y * k)));
double tmp;
if (a <= -2.25e+59) {
tmp = t_2;
} else if (a <= -2600000000.0) {
tmp = (y0 * y2) * (x * c);
} else if (a <= -1.6e-38) {
tmp = (b * k) * (z * y0);
} else if (a <= -1.25e-129) {
tmp = t_1;
} else if (a <= -5.5e-271) {
tmp = t_3;
} else if (a <= 1.9e-155) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (a <= 1.35e-29) {
tmp = t_1;
} else if (a <= 1.35e+33) {
tmp = t_3;
} 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 * (x * ((y0 * y2) - (y * i))) t_2 = b * (a * ((x * y) - (z * t))) t_3 = b * (y4 * ((t * j) - (y * k))) tmp = 0 if a <= -2.25e+59: tmp = t_2 elif a <= -2600000000.0: tmp = (y0 * y2) * (x * c) elif a <= -1.6e-38: tmp = (b * k) * (z * y0) elif a <= -1.25e-129: tmp = t_1 elif a <= -5.5e-271: tmp = t_3 elif a <= 1.9e-155: tmp = b * (y0 * ((z * k) - (x * j))) elif a <= 1.35e-29: tmp = t_1 elif a <= 1.35e+33: tmp = t_3 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(x * Float64(Float64(y0 * y2) - Float64(y * i)))) t_2 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))) t_3 = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) tmp = 0.0 if (a <= -2.25e+59) tmp = t_2; elseif (a <= -2600000000.0) tmp = Float64(Float64(y0 * y2) * Float64(x * c)); elseif (a <= -1.6e-38) tmp = Float64(Float64(b * k) * Float64(z * y0)); elseif (a <= -1.25e-129) tmp = t_1; elseif (a <= -5.5e-271) tmp = t_3; elseif (a <= 1.9e-155) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (a <= 1.35e-29) tmp = t_1; elseif (a <= 1.35e+33) tmp = t_3; 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 * (x * ((y0 * y2) - (y * i))); t_2 = b * (a * ((x * y) - (z * t))); t_3 = b * (y4 * ((t * j) - (y * k))); tmp = 0.0; if (a <= -2.25e+59) tmp = t_2; elseif (a <= -2600000000.0) tmp = (y0 * y2) * (x * c); elseif (a <= -1.6e-38) tmp = (b * k) * (z * y0); elseif (a <= -1.25e-129) tmp = t_1; elseif (a <= -5.5e-271) tmp = t_3; elseif (a <= 1.9e-155) tmp = b * (y0 * ((z * k) - (x * j))); elseif (a <= 1.35e-29) tmp = t_1; elseif (a <= 1.35e+33) tmp = t_3; 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[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.25e+59], t$95$2, If[LessEqual[a, -2600000000.0], N[(N[(y0 * y2), $MachinePrecision] * N[(x * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.6e-38], N[(N[(b * k), $MachinePrecision] * N[(z * y0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.25e-129], t$95$1, If[LessEqual[a, -5.5e-271], t$95$3, If[LessEqual[a, 1.9e-155], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e-29], t$95$1, If[LessEqual[a, 1.35e+33], t$95$3, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
t_2 := b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_3 := b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{if}\;a \leq -2.25 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2600000000:\\
\;\;\;\;\left(y0 \cdot y2\right) \cdot \left(x \cdot c\right)\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-38}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0\right)\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-271}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{-155}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+33}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.2499999999999998e59 or 1.34999999999999996e33 < a Initial program 22.7%
Taylor expanded in b around inf 43.8%
Taylor expanded in a around inf 47.8%
if -2.2499999999999998e59 < a < -2.6e9Initial program 36.1%
Taylor expanded in c around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in x around inf 54.7%
Taylor expanded in y0 around inf 49.9%
associate-*r*58.3%
Simplified58.3%
if -2.6e9 < a < -1.59999999999999989e-38Initial program 25.0%
Taylor expanded in b around inf 74.8%
Taylor expanded in k around -inf 50.5%
mul-1-neg50.5%
associate-*r*50.7%
Simplified50.7%
Taylor expanded in y around 0 50.7%
neg-mul-150.7%
distribute-lft-neg-in50.7%
*-commutative50.7%
Simplified50.7%
if -1.59999999999999989e-38 < a < -1.25000000000000007e-129 or 1.8999999999999999e-155 < a < 1.35000000000000011e-29Initial program 29.5%
Taylor expanded in c around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in x around inf 49.0%
if -1.25000000000000007e-129 < a < -5.4999999999999996e-271 or 1.35000000000000011e-29 < a < 1.34999999999999996e33Initial program 46.5%
Taylor expanded in b around inf 38.5%
Taylor expanded in y4 around inf 54.1%
if -5.4999999999999996e-271 < a < 1.8999999999999999e-155Initial program 29.3%
Taylor expanded in b around inf 35.2%
Taylor expanded in y0 around inf 40.2%
Final simplification48.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* t j) (* y k)))))
(t_2 (* b (* a (- (* x y) (* z t)))))
(t_3 (* c (* x (- (* y0 y2) (* y i))))))
(if (<= a -2.85e+159)
t_2
(if (<= a -0.00031)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= a -1.7e-38)
(* (* b k) (* z y0))
(if (<= a -1.3e-129)
t_3
(if (<= a -3.4e-269)
t_1
(if (<= a 2.8e-155)
(* b (* y0 (- (* z k) (* x j))))
(if (<= a 2.9e-27) t_3 (if (<= a 2.1e+33) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((t * j) - (y * k)));
double t_2 = b * (a * ((x * y) - (z * t)));
double t_3 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (a <= -2.85e+159) {
tmp = t_2;
} else if (a <= -0.00031) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (a <= -1.7e-38) {
tmp = (b * k) * (z * y0);
} else if (a <= -1.3e-129) {
tmp = t_3;
} else if (a <= -3.4e-269) {
tmp = t_1;
} else if (a <= 2.8e-155) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (a <= 2.9e-27) {
tmp = t_3;
} else if (a <= 2.1e+33) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * (y4 * ((t * j) - (y * k)))
t_2 = b * (a * ((x * y) - (z * t)))
t_3 = c * (x * ((y0 * y2) - (y * i)))
if (a <= (-2.85d+159)) then
tmp = t_2
else if (a <= (-0.00031d0)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (a <= (-1.7d-38)) then
tmp = (b * k) * (z * y0)
else if (a <= (-1.3d-129)) then
tmp = t_3
else if (a <= (-3.4d-269)) then
tmp = t_1
else if (a <= 2.8d-155) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (a <= 2.9d-27) then
tmp = t_3
else if (a <= 2.1d+33) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((t * j) - (y * k)));
double t_2 = b * (a * ((x * y) - (z * t)));
double t_3 = c * (x * ((y0 * y2) - (y * i)));
double tmp;
if (a <= -2.85e+159) {
tmp = t_2;
} else if (a <= -0.00031) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (a <= -1.7e-38) {
tmp = (b * k) * (z * y0);
} else if (a <= -1.3e-129) {
tmp = t_3;
} else if (a <= -3.4e-269) {
tmp = t_1;
} else if (a <= 2.8e-155) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (a <= 2.9e-27) {
tmp = t_3;
} else if (a <= 2.1e+33) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * ((t * j) - (y * k))) t_2 = b * (a * ((x * y) - (z * t))) t_3 = c * (x * ((y0 * y2) - (y * i))) tmp = 0 if a <= -2.85e+159: tmp = t_2 elif a <= -0.00031: tmp = c * (y0 * ((x * y2) - (z * y3))) elif a <= -1.7e-38: tmp = (b * k) * (z * y0) elif a <= -1.3e-129: tmp = t_3 elif a <= -3.4e-269: tmp = t_1 elif a <= 2.8e-155: tmp = b * (y0 * ((z * k) - (x * j))) elif a <= 2.9e-27: tmp = t_3 elif a <= 2.1e+33: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) t_2 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(z * t)))) t_3 = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))) tmp = 0.0 if (a <= -2.85e+159) tmp = t_2; elseif (a <= -0.00031) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (a <= -1.7e-38) tmp = Float64(Float64(b * k) * Float64(z * y0)); elseif (a <= -1.3e-129) tmp = t_3; elseif (a <= -3.4e-269) tmp = t_1; elseif (a <= 2.8e-155) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (a <= 2.9e-27) tmp = t_3; elseif (a <= 2.1e+33) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * ((t * j) - (y * k))); t_2 = b * (a * ((x * y) - (z * t))); t_3 = c * (x * ((y0 * y2) - (y * i))); tmp = 0.0; if (a <= -2.85e+159) tmp = t_2; elseif (a <= -0.00031) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (a <= -1.7e-38) tmp = (b * k) * (z * y0); elseif (a <= -1.3e-129) tmp = t_3; elseif (a <= -3.4e-269) tmp = t_1; elseif (a <= 2.8e-155) tmp = b * (y0 * ((z * k) - (x * j))); elseif (a <= 2.9e-27) tmp = t_3; elseif (a <= 2.1e+33) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.85e+159], t$95$2, If[LessEqual[a, -0.00031], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.7e-38], N[(N[(b * k), $MachinePrecision] * N[(z * y0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.3e-129], t$95$3, If[LessEqual[a, -3.4e-269], t$95$1, If[LessEqual[a, 2.8e-155], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-27], t$95$3, If[LessEqual[a, 2.1e+33], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
t_2 := b \cdot \left(a \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_3 := c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{if}\;a \leq -2.85 \cdot 10^{+159}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -0.00031:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-38}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0\right)\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-129}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -3.4 \cdot 10^{-269}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-155}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-27}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.8499999999999999e159 or 2.1000000000000001e33 < a Initial program 23.3%
Taylor expanded in b around inf 45.5%
Taylor expanded in a around inf 50.6%
if -2.8499999999999999e159 < a < -3.1e-4Initial program 24.2%
Taylor expanded in y0 around inf 36.5%
+-commutative36.5%
mul-1-neg36.5%
unsub-neg36.5%
*-commutative36.5%
*-commutative36.5%
*-commutative36.5%
*-commutative36.5%
Simplified36.5%
Taylor expanded in c around inf 47.8%
if -3.1e-4 < a < -1.7000000000000001e-38Initial program 33.3%
Taylor expanded in b around inf 83.1%
Taylor expanded in k around -inf 67.2%
mul-1-neg67.2%
associate-*r*67.5%
Simplified67.5%
Taylor expanded in y around 0 67.5%
neg-mul-167.5%
distribute-lft-neg-in67.5%
*-commutative67.5%
Simplified67.5%
if -1.7000000000000001e-38 < a < -1.3e-129 or 2.8e-155 < a < 2.90000000000000004e-27Initial program 29.5%
Taylor expanded in c around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in x around inf 49.0%
if -1.3e-129 < a < -3.3999999999999997e-269 or 2.90000000000000004e-27 < a < 2.1000000000000001e33Initial program 46.5%
Taylor expanded in b around inf 38.5%
Taylor expanded in y4 around inf 54.1%
if -3.3999999999999997e-269 < a < 2.8e-155Initial program 29.3%
Taylor expanded in b around inf 35.2%
Taylor expanded in y0 around inf 40.2%
Final simplification49.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y3 (* y (+ (* c y4) (* j (/ (- (* y0 y5) (* y1 y4)) y)))))))
(if (<= z -4.8e+262)
(* b (* t (- (* j y4) (* z a))))
(if (<= z -2.2e+196)
(* c (* x (* y (- (/ (* y0 y2) y) i))))
(if (<= z -4.6e+29)
(* b (* z (- (* k y0) (* t a))))
(if (<= z -7.5e-130)
t_1
(if (<= z -1.15e-242)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= z 1.65e+45)
t_1
(if (<= z 2.7e+163)
(* b (* y0 (- (* z k) (* x j))))
(* y0 (* y3 (- (* j y5) (* z 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 = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
double tmp;
if (z <= -4.8e+262) {
tmp = b * (t * ((j * y4) - (z * a)));
} else if (z <= -2.2e+196) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (z <= -4.6e+29) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (z <= -7.5e-130) {
tmp = t_1;
} else if (z <= -1.15e-242) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (z <= 1.65e+45) {
tmp = t_1;
} else if (z <= 2.7e+163) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = y0 * (y3 * ((j * y5) - (z * 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) :: tmp
t_1 = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))))
if (z <= (-4.8d+262)) then
tmp = b * (t * ((j * y4) - (z * a)))
else if (z <= (-2.2d+196)) then
tmp = c * (x * (y * (((y0 * y2) / y) - i)))
else if (z <= (-4.6d+29)) then
tmp = b * (z * ((k * y0) - (t * a)))
else if (z <= (-7.5d-130)) then
tmp = t_1
else if (z <= (-1.15d-242)) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (z <= 1.65d+45) then
tmp = t_1
else if (z <= 2.7d+163) then
tmp = b * (y0 * ((z * k) - (x * j)))
else
tmp = y0 * (y3 * ((j * y5) - (z * 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 = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
double tmp;
if (z <= -4.8e+262) {
tmp = b * (t * ((j * y4) - (z * a)));
} else if (z <= -2.2e+196) {
tmp = c * (x * (y * (((y0 * y2) / y) - i)));
} else if (z <= -4.6e+29) {
tmp = b * (z * ((k * y0) - (t * a)));
} else if (z <= -7.5e-130) {
tmp = t_1;
} else if (z <= -1.15e-242) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (z <= 1.65e+45) {
tmp = t_1;
} else if (z <= 2.7e+163) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))) tmp = 0 if z <= -4.8e+262: tmp = b * (t * ((j * y4) - (z * a))) elif z <= -2.2e+196: tmp = c * (x * (y * (((y0 * y2) / y) - i))) elif z <= -4.6e+29: tmp = b * (z * ((k * y0) - (t * a))) elif z <= -7.5e-130: tmp = t_1 elif z <= -1.15e-242: tmp = t * (y5 * ((a * y2) - (i * j))) elif z <= 1.65e+45: tmp = t_1 elif z <= 2.7e+163: tmp = b * (y0 * ((z * k) - (x * j))) else: tmp = y0 * (y3 * ((j * y5) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y3 * Float64(y * Float64(Float64(c * y4) + Float64(j * Float64(Float64(Float64(y0 * y5) - Float64(y1 * y4)) / y))))) tmp = 0.0 if (z <= -4.8e+262) tmp = Float64(b * Float64(t * Float64(Float64(j * y4) - Float64(z * a)))); elseif (z <= -2.2e+196) tmp = Float64(c * Float64(x * Float64(y * Float64(Float64(Float64(y0 * y2) / y) - i)))); elseif (z <= -4.6e+29) tmp = Float64(b * Float64(z * Float64(Float64(k * y0) - Float64(t * a)))); elseif (z <= -7.5e-130) tmp = t_1; elseif (z <= -1.15e-242) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (z <= 1.65e+45) tmp = t_1; elseif (z <= 2.7e+163) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); else tmp = Float64(y0 * Float64(y3 * Float64(Float64(j * y5) - Float64(z * 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 = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))); tmp = 0.0; if (z <= -4.8e+262) tmp = b * (t * ((j * y4) - (z * a))); elseif (z <= -2.2e+196) tmp = c * (x * (y * (((y0 * y2) / y) - i))); elseif (z <= -4.6e+29) tmp = b * (z * ((k * y0) - (t * a))); elseif (z <= -7.5e-130) tmp = t_1; elseif (z <= -1.15e-242) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (z <= 1.65e+45) tmp = t_1; elseif (z <= 2.7e+163) tmp = b * (y0 * ((z * k) - (x * j))); else tmp = y0 * (y3 * ((j * y5) - (z * 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[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] + N[(j * N[(N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.8e+262], N[(b * N[(t * N[(N[(j * y4), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.2e+196], N[(c * N[(x * N[(y * N[(N[(N[(y0 * y2), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e+29], N[(b * N[(z * N[(N[(k * y0), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.5e-130], t$95$1, If[LessEqual[z, -1.15e-242], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e+45], t$95$1, If[LessEqual[z, 2.7e+163], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(y3 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot \left(y \cdot \left(c \cdot y4 + j \cdot \frac{y0 \cdot y5 - y1 \cdot y4}{y}\right)\right)\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+262}:\\
\;\;\;\;b \cdot \left(t \cdot \left(j \cdot y4 - z \cdot a\right)\right)\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{+196}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(\frac{y0 \cdot y2}{y} - i\right)\right)\right)\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{+29}:\\
\;\;\;\;b \cdot \left(z \cdot \left(k \cdot y0 - t \cdot a\right)\right)\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-242}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+163}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\end{array}
\end{array}
if z < -4.79999999999999966e262Initial program 0.8%
Taylor expanded in t around inf 38.6%
Taylor expanded in b around inf 81.4%
if -4.79999999999999966e262 < z < -2.19999999999999998e196Initial program 38.8%
Taylor expanded in c around inf 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
*-commutative50.0%
*-commutative50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in x around inf 50.8%
Taylor expanded in y around inf 56.2%
if -2.19999999999999998e196 < z < -4.6000000000000002e29Initial program 31.2%
Taylor expanded in b around inf 44.0%
Taylor expanded in z around -inf 53.5%
associate-*r*53.5%
neg-mul-153.5%
Simplified53.5%
if -4.6000000000000002e29 < z < -7.4999999999999994e-130 or -1.14999999999999992e-242 < z < 1.65e45Initial program 30.4%
Taylor expanded in y4 around inf 38.2%
*-commutative38.2%
*-commutative38.2%
Simplified38.2%
Taylor expanded in y3 around inf 37.7%
Taylor expanded in y around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
associate-/l*44.6%
*-commutative44.6%
Simplified44.6%
if -7.4999999999999994e-130 < z < -1.14999999999999992e-242Initial program 21.1%
Taylor expanded in t around inf 54.3%
Taylor expanded in y5 around -inf 43.5%
mul-1-neg43.5%
Simplified43.5%
if 1.65e45 < z < 2.69999999999999999e163Initial program 33.3%
Taylor expanded in b around inf 62.5%
Taylor expanded in y0 around inf 67.2%
if 2.69999999999999999e163 < z Initial program 38.2%
Taylor expanded in y0 around inf 36.0%
+-commutative36.0%
mul-1-neg36.0%
unsub-neg36.0%
*-commutative36.0%
*-commutative36.0%
*-commutative36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in y3 around -inf 54.4%
associate-*r*54.4%
neg-mul-154.4%
Simplified54.4%
Final simplification51.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t))))))
(if (<= b -2.05e+154)
t_1
(if (<= b -7.5e+33)
(* y3 (* z (- (* a y1) (* c y0))))
(if (<= b -1.15e-11)
(* y2 (- (* k (- (* y1 y4) (* y0 y5))) (* c (* t y4))))
(if (<= b -5.7e-63)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 1.12e-119)
(* c (+ (* y0 (- (* x y2) (* z y3))) (* i (- (* z t) (* x y)))))
(if (<= b 2.1e-35)
(* y3 (* y (+ (* c y4) (* j (/ (- (* y0 y5) (* y1 y4)) y)))))
(if (<= b 6e+130) (* (* b k) (- (* z y0) (* y y4))) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -2.05e+154) {
tmp = t_1;
} else if (b <= -7.5e+33) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1.15e-11) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)));
} else if (b <= -5.7e-63) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 1.12e-119) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y))));
} else if (b <= 2.1e-35) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else if (b <= 6e+130) {
tmp = (b * k) * ((z * y0) - (y * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (b <= (-2.05d+154)) then
tmp = t_1
else if (b <= (-7.5d+33)) then
tmp = y3 * (z * ((a * y1) - (c * y0)))
else if (b <= (-1.15d-11)) then
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)))
else if (b <= (-5.7d-63)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 1.12d-119) then
tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y))))
else if (b <= 2.1d-35) then
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))))
else if (b <= 6d+130) then
tmp = (b * k) * ((z * y0) - (y * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -2.05e+154) {
tmp = t_1;
} else if (b <= -7.5e+33) {
tmp = y3 * (z * ((a * y1) - (c * y0)));
} else if (b <= -1.15e-11) {
tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4)));
} else if (b <= -5.7e-63) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 1.12e-119) {
tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y))));
} else if (b <= 2.1e-35) {
tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y))));
} else if (b <= 6e+130) {
tmp = (b * k) * ((z * y0) - (y * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -2.05e+154: tmp = t_1 elif b <= -7.5e+33: tmp = y3 * (z * ((a * y1) - (c * y0))) elif b <= -1.15e-11: tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4))) elif b <= -5.7e-63: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 1.12e-119: tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))) elif b <= 2.1e-35: tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))) elif b <= 6e+130: tmp = (b * k) * ((z * y0) - (y * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -2.05e+154) tmp = t_1; elseif (b <= -7.5e+33) tmp = Float64(y3 * Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= -1.15e-11) tmp = Float64(y2 * Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) - Float64(c * Float64(t * y4)))); elseif (b <= -5.7e-63) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 1.12e-119) tmp = Float64(c * Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) + Float64(i * Float64(Float64(z * t) - Float64(x * y))))); elseif (b <= 2.1e-35) tmp = Float64(y3 * Float64(y * Float64(Float64(c * y4) + Float64(j * Float64(Float64(Float64(y0 * y5) - Float64(y1 * y4)) / y))))); elseif (b <= 6e+130) tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -2.05e+154) tmp = t_1; elseif (b <= -7.5e+33) tmp = y3 * (z * ((a * y1) - (c * y0))); elseif (b <= -1.15e-11) tmp = y2 * ((k * ((y1 * y4) - (y0 * y5))) - (c * (t * y4))); elseif (b <= -5.7e-63) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 1.12e-119) tmp = c * ((y0 * ((x * y2) - (z * y3))) + (i * ((z * t) - (x * y)))); elseif (b <= 2.1e-35) tmp = y3 * (y * ((c * y4) + (j * (((y0 * y5) - (y1 * y4)) / y)))); elseif (b <= 6e+130) tmp = (b * k) * ((z * y0) - (y * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.05e+154], t$95$1, If[LessEqual[b, -7.5e+33], N[(y3 * N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e-11], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.7e-63], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.12e-119], N[(c * N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-35], N[(y3 * N[(y * N[(N[(c * y4), $MachinePrecision] + N[(j * N[(N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+130], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -2.05 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+33}:\\
\;\;\;\;y3 \cdot \left(z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-11}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) - c \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq -5.7 \cdot 10^{-63}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.12 \cdot 10^{-119}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) + i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-35}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 + j \cdot \frac{y0 \cdot y5 - y1 \cdot y4}{y}\right)\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+130}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.05e154 or 5.9999999999999999e130 < b Initial program 14.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in a around inf 59.2%
if -2.05e154 < b < -7.50000000000000046e33Initial program 29.6%
Taylor expanded in y3 around -inf 67.0%
Taylor expanded in z around inf 63.8%
if -7.50000000000000046e33 < b < -1.15000000000000007e-11Initial program 18.6%
Taylor expanded in y4 around inf 20.1%
*-commutative20.1%
*-commutative20.1%
Simplified20.1%
Taylor expanded in y2 around inf 64.4%
if -1.15000000000000007e-11 < b < -5.70000000000000053e-63Initial program 66.7%
Taylor expanded in y4 around inf 77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in y1 around inf 67.1%
if -5.70000000000000053e-63 < b < 1.11999999999999998e-119Initial program 40.5%
Taylor expanded in c around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in y4 around 0 48.2%
if 1.11999999999999998e-119 < b < 2.1e-35Initial program 25.4%
Taylor expanded in y4 around inf 32.0%
*-commutative32.0%
*-commutative32.0%
Simplified32.0%
Taylor expanded in y3 around inf 50.8%
Taylor expanded in y around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
associate-/l*57.0%
*-commutative57.0%
Simplified57.0%
if 2.1e-35 < b < 5.9999999999999999e130Initial program 33.7%
Taylor expanded in b around inf 49.1%
Taylor expanded in k around -inf 49.0%
mul-1-neg49.0%
associate-*r*49.0%
Simplified49.0%
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 (* b (* y0 (- (* z k) (* x j)))))
(t_2 (- (* x y) (* z t)))
(t_3 (* b (* y4 (- (* t j) (* y k))))))
(if (<= a -1.75e+52)
(* a (* b t_2))
(if (<= a -1.85e-110)
t_1
(if (<= a -5.5e-269)
t_3
(if (<= a 5.5e-149)
t_1
(if (<= a 9e-104)
(* c (* x (* y (- i))))
(if (<= a 2e-81)
(* k (* y1 (* y2 y4)))
(if (<= a 6.5e+33) t_3 (* b (* a t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y0 * ((z * k) - (x * j)));
double t_2 = (x * y) - (z * t);
double t_3 = b * (y4 * ((t * j) - (y * k)));
double tmp;
if (a <= -1.75e+52) {
tmp = a * (b * t_2);
} else if (a <= -1.85e-110) {
tmp = t_1;
} else if (a <= -5.5e-269) {
tmp = t_3;
} else if (a <= 5.5e-149) {
tmp = t_1;
} else if (a <= 9e-104) {
tmp = c * (x * (y * -i));
} else if (a <= 2e-81) {
tmp = k * (y1 * (y2 * y4));
} else if (a <= 6.5e+33) {
tmp = t_3;
} else {
tmp = b * (a * t_2);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * (y0 * ((z * k) - (x * j)))
t_2 = (x * y) - (z * t)
t_3 = b * (y4 * ((t * j) - (y * k)))
if (a <= (-1.75d+52)) then
tmp = a * (b * t_2)
else if (a <= (-1.85d-110)) then
tmp = t_1
else if (a <= (-5.5d-269)) then
tmp = t_3
else if (a <= 5.5d-149) then
tmp = t_1
else if (a <= 9d-104) then
tmp = c * (x * (y * -i))
else if (a <= 2d-81) then
tmp = k * (y1 * (y2 * y4))
else if (a <= 6.5d+33) then
tmp = t_3
else
tmp = b * (a * t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y0 * ((z * k) - (x * j)));
double t_2 = (x * y) - (z * t);
double t_3 = b * (y4 * ((t * j) - (y * k)));
double tmp;
if (a <= -1.75e+52) {
tmp = a * (b * t_2);
} else if (a <= -1.85e-110) {
tmp = t_1;
} else if (a <= -5.5e-269) {
tmp = t_3;
} else if (a <= 5.5e-149) {
tmp = t_1;
} else if (a <= 9e-104) {
tmp = c * (x * (y * -i));
} else if (a <= 2e-81) {
tmp = k * (y1 * (y2 * y4));
} else if (a <= 6.5e+33) {
tmp = t_3;
} else {
tmp = b * (a * t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y0 * ((z * k) - (x * j))) t_2 = (x * y) - (z * t) t_3 = b * (y4 * ((t * j) - (y * k))) tmp = 0 if a <= -1.75e+52: tmp = a * (b * t_2) elif a <= -1.85e-110: tmp = t_1 elif a <= -5.5e-269: tmp = t_3 elif a <= 5.5e-149: tmp = t_1 elif a <= 9e-104: tmp = c * (x * (y * -i)) elif a <= 2e-81: tmp = k * (y1 * (y2 * y4)) elif a <= 6.5e+33: tmp = t_3 else: tmp = b * (a * 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(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(Float64(x * y) - Float64(z * t)) t_3 = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) tmp = 0.0 if (a <= -1.75e+52) tmp = Float64(a * Float64(b * t_2)); elseif (a <= -1.85e-110) tmp = t_1; elseif (a <= -5.5e-269) tmp = t_3; elseif (a <= 5.5e-149) tmp = t_1; elseif (a <= 9e-104) tmp = Float64(c * Float64(x * Float64(y * Float64(-i)))); elseif (a <= 2e-81) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (a <= 6.5e+33) tmp = t_3; else tmp = Float64(b * Float64(a * t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y0 * ((z * k) - (x * j))); t_2 = (x * y) - (z * t); t_3 = b * (y4 * ((t * j) - (y * k))); tmp = 0.0; if (a <= -1.75e+52) tmp = a * (b * t_2); elseif (a <= -1.85e-110) tmp = t_1; elseif (a <= -5.5e-269) tmp = t_3; elseif (a <= 5.5e-149) tmp = t_1; elseif (a <= 9e-104) tmp = c * (x * (y * -i)); elseif (a <= 2e-81) tmp = k * (y1 * (y2 * y4)); elseif (a <= 6.5e+33) tmp = t_3; else tmp = b * (a * 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[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.75e+52], N[(a * N[(b * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-110], t$95$1, If[LessEqual[a, -5.5e-269], t$95$3, If[LessEqual[a, 5.5e-149], t$95$1, If[LessEqual[a, 9e-104], N[(c * N[(x * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e-81], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e+33], t$95$3, N[(b * N[(a * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := x \cdot y - z \cdot t\\
t_3 := b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{if}\;a \leq -1.75 \cdot 10^{+52}:\\
\;\;\;\;a \cdot \left(b \cdot t\_2\right)\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-269}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-104}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y \cdot \left(-i\right)\right)\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-81}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+33}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot t\_2\right)\\
\end{array}
\end{array}
if a < -1.75e52Initial program 22.2%
Taylor expanded in b around inf 44.5%
Taylor expanded in a around inf 44.5%
if -1.75e52 < a < -1.85000000000000008e-110 or -5.5000000000000001e-269 < a < 5.50000000000000043e-149Initial program 31.5%
Taylor expanded in b around inf 38.2%
Taylor expanded in y0 around inf 42.7%
if -1.85000000000000008e-110 < a < -5.5000000000000001e-269 or 1.9999999999999999e-81 < a < 6.49999999999999993e33Initial program 38.9%
Taylor expanded in b around inf 39.6%
Taylor expanded in y4 around inf 46.7%
if 5.50000000000000043e-149 < a < 8.9999999999999995e-104Initial program 36.7%
Taylor expanded in c around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
*-commutative44.2%
*-commutative44.2%
*-commutative44.2%
Simplified44.2%
Taylor expanded in x around inf 58.8%
Taylor expanded in y0 around 0 44.5%
mul-1-neg44.5%
distribute-lft-neg-out44.5%
*-commutative44.5%
Simplified44.5%
if 8.9999999999999995e-104 < a < 1.9999999999999999e-81Initial program 29.2%
Taylor expanded in k around inf 57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
*-commutative57.6%
associate-*r*57.6%
neg-mul-157.6%
Simplified57.6%
Taylor expanded in y2 around inf 58.1%
Taylor expanded in y1 around inf 58.1%
if 6.49999999999999993e33 < a Initial program 23.7%
Taylor expanded in b around inf 42.8%
Taylor expanded in a around inf 51.5%
Final simplification46.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t)))))
(t_3 (* i (* t (- (* z c) (* j y5))))))
(if (<= b -1.2e+154)
t_2
(if (<= b -75000000.0)
t_1
(if (<= b -3.8e-69)
t_3
(if (<= b -6.8e-248)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= b 1.7e-269)
t_3
(if (<= b 4.4e-106)
t_1
(if (<= b 5.2e-8) (* y3 (* j (* y1 (- 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double t_3 = i * (t * ((z * c) - (j * y5)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -75000000.0) {
tmp = t_1;
} else if (b <= -3.8e-69) {
tmp = t_3;
} else if (b <= -6.8e-248) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (b <= 1.7e-269) {
tmp = t_3;
} else if (b <= 4.4e-106) {
tmp = t_1;
} else if (b <= 5.2e-8) {
tmp = y3 * (j * (y1 * -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) :: t_3
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
t_3 = i * (t * ((z * c) - (j * y5)))
if (b <= (-1.2d+154)) then
tmp = t_2
else if (b <= (-75000000.0d0)) then
tmp = t_1
else if (b <= (-3.8d-69)) then
tmp = t_3
else if (b <= (-6.8d-248)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (b <= 1.7d-269) then
tmp = t_3
else if (b <= 4.4d-106) then
tmp = t_1
else if (b <= 5.2d-8) then
tmp = y3 * (j * (y1 * -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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double t_3 = i * (t * ((z * c) - (j * y5)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -75000000.0) {
tmp = t_1;
} else if (b <= -3.8e-69) {
tmp = t_3;
} else if (b <= -6.8e-248) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (b <= 1.7e-269) {
tmp = t_3;
} else if (b <= 4.4e-106) {
tmp = t_1;
} else if (b <= 5.2e-8) {
tmp = y3 * (j * (y1 * -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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) t_3 = i * (t * ((z * c) - (j * y5))) tmp = 0 if b <= -1.2e+154: tmp = t_2 elif b <= -75000000.0: tmp = t_1 elif b <= -3.8e-69: tmp = t_3 elif b <= -6.8e-248: tmp = c * (x * ((y0 * y2) - (y * i))) elif b <= 1.7e-269: tmp = t_3 elif b <= 4.4e-106: tmp = t_1 elif b <= 5.2e-8: tmp = y3 * (j * (y1 * -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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_3 = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))) tmp = 0.0 if (b <= -1.2e+154) tmp = t_2; elseif (b <= -75000000.0) tmp = t_1; elseif (b <= -3.8e-69) tmp = t_3; elseif (b <= -6.8e-248) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (b <= 1.7e-269) tmp = t_3; elseif (b <= 4.4e-106) tmp = t_1; elseif (b <= 5.2e-8) tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); t_3 = i * (t * ((z * c) - (j * y5))); tmp = 0.0; if (b <= -1.2e+154) tmp = t_2; elseif (b <= -75000000.0) tmp = t_1; elseif (b <= -3.8e-69) tmp = t_3; elseif (b <= -6.8e-248) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (b <= 1.7e-269) tmp = t_3; elseif (b <= 4.4e-106) tmp = t_1; elseif (b <= 5.2e-8) tmp = y3 * (j * (y1 * -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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.2e+154], t$95$2, If[LessEqual[b, -75000000.0], t$95$1, If[LessEqual[b, -3.8e-69], t$95$3, If[LessEqual[b, -6.8e-248], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-269], t$95$3, If[LessEqual[b, 4.4e-106], t$95$1, If[LessEqual[b, 5.2e-8], N[(y3 * N[(j * N[(y1 * (-y4)), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_3 := i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -75000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-69}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{-248}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-269}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-8}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.20000000000000007e154 or 5.2000000000000002e-8 < b Initial program 17.0%
Taylor expanded in b around inf 56.7%
Taylor expanded in a around inf 52.3%
if -1.20000000000000007e154 < b < -7.5e7 or 1.6999999999999999e-269 < b < 4.39999999999999989e-106Initial program 33.4%
Taylor expanded in y0 around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in c around inf 51.8%
if -7.5e7 < b < -3.7999999999999998e-69 or -6.7999999999999996e-248 < b < 1.6999999999999999e-269Initial program 41.7%
Taylor expanded in t around inf 50.6%
Taylor expanded in i around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
sub-neg45.6%
Simplified45.6%
if -3.7999999999999998e-69 < b < -6.7999999999999996e-248Initial program 42.3%
Taylor expanded in c around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
*-commutative58.1%
*-commutative58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in x around inf 40.5%
if 4.39999999999999989e-106 < b < 5.2000000000000002e-8Initial program 41.5%
Taylor expanded in y4 around inf 36.2%
*-commutative36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in y3 around inf 36.3%
Taylor expanded in y1 around inf 42.6%
associate-*r*42.6%
mul-1-neg42.6%
*-commutative42.6%
Simplified42.6%
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 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t)))))
(t_3 (* i (* t (- (* z c) (* j y5))))))
(if (<= b -1.2e+154)
t_2
(if (<= b -61000000.0)
t_1
(if (<= b -3.2e-69)
t_3
(if (<= b -4.1e-246)
(* c (* x (- (* y0 y2) (* y i))))
(if (<= b 3.2e-269)
t_3
(if (<= b 2.9e-105)
t_1
(if (<= b 5e+121) (* k (* y (- (* i y5) (* b 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double t_3 = i * (t * ((z * c) - (j * y5)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -61000000.0) {
tmp = t_1;
} else if (b <= -3.2e-69) {
tmp = t_3;
} else if (b <= -4.1e-246) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (b <= 3.2e-269) {
tmp = t_3;
} else if (b <= 2.9e-105) {
tmp = t_1;
} else if (b <= 5e+121) {
tmp = k * (y * ((i * y5) - (b * 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) :: t_3
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
t_3 = i * (t * ((z * c) - (j * y5)))
if (b <= (-1.2d+154)) then
tmp = t_2
else if (b <= (-61000000.0d0)) then
tmp = t_1
else if (b <= (-3.2d-69)) then
tmp = t_3
else if (b <= (-4.1d-246)) then
tmp = c * (x * ((y0 * y2) - (y * i)))
else if (b <= 3.2d-269) then
tmp = t_3
else if (b <= 2.9d-105) then
tmp = t_1
else if (b <= 5d+121) then
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double t_3 = i * (t * ((z * c) - (j * y5)));
double tmp;
if (b <= -1.2e+154) {
tmp = t_2;
} else if (b <= -61000000.0) {
tmp = t_1;
} else if (b <= -3.2e-69) {
tmp = t_3;
} else if (b <= -4.1e-246) {
tmp = c * (x * ((y0 * y2) - (y * i)));
} else if (b <= 3.2e-269) {
tmp = t_3;
} else if (b <= 2.9e-105) {
tmp = t_1;
} else if (b <= 5e+121) {
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) t_3 = i * (t * ((z * c) - (j * y5))) tmp = 0 if b <= -1.2e+154: tmp = t_2 elif b <= -61000000.0: tmp = t_1 elif b <= -3.2e-69: tmp = t_3 elif b <= -4.1e-246: tmp = c * (x * ((y0 * y2) - (y * i))) elif b <= 3.2e-269: tmp = t_3 elif b <= 2.9e-105: tmp = t_1 elif b <= 5e+121: tmp = k * (y * ((i * y5) - (b * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_3 = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))) tmp = 0.0 if (b <= -1.2e+154) tmp = t_2; elseif (b <= -61000000.0) tmp = t_1; elseif (b <= -3.2e-69) tmp = t_3; elseif (b <= -4.1e-246) tmp = Float64(c * Float64(x * Float64(Float64(y0 * y2) - Float64(y * i)))); elseif (b <= 3.2e-269) tmp = t_3; elseif (b <= 2.9e-105) tmp = t_1; elseif (b <= 5e+121) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * 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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); t_3 = i * (t * ((z * c) - (j * y5))); tmp = 0.0; if (b <= -1.2e+154) tmp = t_2; elseif (b <= -61000000.0) tmp = t_1; elseif (b <= -3.2e-69) tmp = t_3; elseif (b <= -4.1e-246) tmp = c * (x * ((y0 * y2) - (y * i))); elseif (b <= 3.2e-269) tmp = t_3; elseif (b <= 2.9e-105) tmp = t_1; elseif (b <= 5e+121) tmp = k * (y * ((i * y5) - (b * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.2e+154], t$95$2, If[LessEqual[b, -61000000.0], t$95$1, If[LessEqual[b, -3.2e-69], t$95$3, If[LessEqual[b, -4.1e-246], N[(c * N[(x * N[(N[(y0 * y2), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e-269], t$95$3, If[LessEqual[b, 2.9e-105], t$95$1, If[LessEqual[b, 5e+121], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_3 := i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -61000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-69}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2 - y \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-269}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{+121}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.20000000000000007e154 or 5.00000000000000007e121 < b Initial program 14.0%
Taylor expanded in b around inf 58.4%
Taylor expanded in a around inf 59.0%
if -1.20000000000000007e154 < b < -6.1e7 or 3.2000000000000001e-269 < b < 2.90000000000000003e-105Initial program 33.4%
Taylor expanded in y0 around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in c around inf 51.8%
if -6.1e7 < b < -3.19999999999999999e-69 or -4.09999999999999986e-246 < b < 3.2000000000000001e-269Initial program 41.7%
Taylor expanded in t around inf 50.6%
Taylor expanded in i around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
sub-neg45.6%
Simplified45.6%
if -3.19999999999999999e-69 < b < -4.09999999999999986e-246Initial program 42.3%
Taylor expanded in c around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
*-commutative58.1%
*-commutative58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in x around inf 40.5%
if 2.90000000000000003e-105 < b < 5.00000000000000007e121Initial program 33.7%
Taylor expanded in k around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
associate-*r*49.6%
neg-mul-149.6%
Simplified49.6%
Taylor expanded in y around inf 37.3%
Final simplification49.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* c y4) (- (* y y3) (* t y2)))) (t_2 (- (* x y) (* z t))))
(if (<= y4 -1.16e+145)
t_1
(if (<= y4 -0.03)
(* b (* a t_2))
(if (<= y4 -1.35e-76)
(* y0 (* y2 (- (* x c) (* k y5))))
(if (<= y4 4e-261)
(* a (* b t_2))
(if (<= y4 3.5e-171)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y4 1.25e-33)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y4 3e+217)
(* c (* y0 (- (* x y2) (* z y3))))
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) - (t * y2));
double t_2 = (x * y) - (z * t);
double tmp;
if (y4 <= -1.16e+145) {
tmp = t_1;
} else if (y4 <= -0.03) {
tmp = b * (a * t_2);
} else if (y4 <= -1.35e-76) {
tmp = y0 * (y2 * ((x * c) - (k * y5)));
} else if (y4 <= 4e-261) {
tmp = a * (b * t_2);
} else if (y4 <= 3.5e-171) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y4 <= 1.25e-33) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y4 <= 3e+217) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} 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 * y4) * ((y * y3) - (t * y2))
t_2 = (x * y) - (z * t)
if (y4 <= (-1.16d+145)) then
tmp = t_1
else if (y4 <= (-0.03d0)) then
tmp = b * (a * t_2)
else if (y4 <= (-1.35d-76)) then
tmp = y0 * (y2 * ((x * c) - (k * y5)))
else if (y4 <= 4d-261) then
tmp = a * (b * t_2)
else if (y4 <= 3.5d-171) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y4 <= 1.25d-33) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y4 <= 3d+217) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
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) - (t * y2));
double t_2 = (x * y) - (z * t);
double tmp;
if (y4 <= -1.16e+145) {
tmp = t_1;
} else if (y4 <= -0.03) {
tmp = b * (a * t_2);
} else if (y4 <= -1.35e-76) {
tmp = y0 * (y2 * ((x * c) - (k * y5)));
} else if (y4 <= 4e-261) {
tmp = a * (b * t_2);
} else if (y4 <= 3.5e-171) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y4 <= 1.25e-33) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y4 <= 3e+217) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} 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) - (t * y2)) t_2 = (x * y) - (z * t) tmp = 0 if y4 <= -1.16e+145: tmp = t_1 elif y4 <= -0.03: tmp = b * (a * t_2) elif y4 <= -1.35e-76: tmp = y0 * (y2 * ((x * c) - (k * y5))) elif y4 <= 4e-261: tmp = a * (b * t_2) elif y4 <= 3.5e-171: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y4 <= 1.25e-33: tmp = k * (z * ((b * y0) - (i * y1))) elif y4 <= 3e+217: tmp = c * (y0 * ((x * y2) - (z * y3))) 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(c * y4) * Float64(Float64(y * y3) - Float64(t * y2))) t_2 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y4 <= -1.16e+145) tmp = t_1; elseif (y4 <= -0.03) tmp = Float64(b * Float64(a * t_2)); elseif (y4 <= -1.35e-76) tmp = Float64(y0 * Float64(y2 * Float64(Float64(x * c) - Float64(k * y5)))); elseif (y4 <= 4e-261) tmp = Float64(a * Float64(b * t_2)); elseif (y4 <= 3.5e-171) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y4 <= 1.25e-33) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y4 <= 3e+217) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); 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) - (t * y2)); t_2 = (x * y) - (z * t); tmp = 0.0; if (y4 <= -1.16e+145) tmp = t_1; elseif (y4 <= -0.03) tmp = b * (a * t_2); elseif (y4 <= -1.35e-76) tmp = y0 * (y2 * ((x * c) - (k * y5))); elseif (y4 <= 4e-261) tmp = a * (b * t_2); elseif (y4 <= 3.5e-171) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y4 <= 1.25e-33) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y4 <= 3e+217) tmp = c * (y0 * ((x * y2) - (z * y3))); 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[(c * y4), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.16e+145], t$95$1, If[LessEqual[y4, -0.03], N[(b * N[(a * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.35e-76], N[(y0 * N[(y2 * N[(N[(x * c), $MachinePrecision] - N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4e-261], N[(a * N[(b * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.5e-171], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.25e-33], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3e+217], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot y4\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\\
t_2 := x \cdot y - z \cdot t\\
\mathbf{if}\;y4 \leq -1.16 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -0.03:\\
\;\;\;\;b \cdot \left(a \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq -1.35 \cdot 10^{-76}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(x \cdot c - k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 4 \cdot 10^{-261}:\\
\;\;\;\;a \cdot \left(b \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-171}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.25 \cdot 10^{-33}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 3 \cdot 10^{+217}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.15999999999999999e145 or 2.99999999999999976e217 < y4 Initial program 23.4%
Taylor expanded in c around inf 64.2%
+-commutative64.2%
mul-1-neg64.2%
unsub-neg64.2%
*-commutative64.2%
*-commutative64.2%
*-commutative64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in y4 around inf 70.8%
associate-*r*70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
if -1.15999999999999999e145 < y4 < -0.029999999999999999Initial program 30.4%
Taylor expanded in b around inf 52.9%
Taylor expanded in a around inf 53.2%
if -0.029999999999999999 < y4 < -1.35e-76Initial program 23.9%
Taylor expanded in y0 around inf 48.2%
+-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
*-commutative48.2%
*-commutative48.2%
*-commutative48.2%
*-commutative48.2%
Simplified48.2%
Taylor expanded in y2 around inf 47.5%
if -1.35e-76 < y4 < 3.99999999999999994e-261Initial program 35.3%
Taylor expanded in b around inf 47.0%
Taylor expanded in a around inf 48.9%
if 3.99999999999999994e-261 < y4 < 3.49999999999999994e-171Initial program 30.9%
Taylor expanded in k around inf 39.3%
+-commutative39.3%
mul-1-neg39.3%
unsub-neg39.3%
*-commutative39.3%
associate-*r*39.3%
neg-mul-139.3%
Simplified39.3%
Taylor expanded in y2 around inf 44.7%
if 3.49999999999999994e-171 < y4 < 1.25000000000000007e-33Initial program 40.6%
Taylor expanded in k around inf 35.2%
+-commutative35.2%
mul-1-neg35.2%
unsub-neg35.2%
*-commutative35.2%
associate-*r*35.2%
neg-mul-135.2%
Simplified35.2%
Taylor expanded in z around inf 35.2%
if 1.25000000000000007e-33 < y4 < 2.99999999999999976e217Initial program 25.2%
Taylor expanded in y0 around inf 29.3%
+-commutative29.3%
mul-1-neg29.3%
unsub-neg29.3%
*-commutative29.3%
*-commutative29.3%
*-commutative29.3%
*-commutative29.3%
Simplified29.3%
Taylor expanded in c around inf 39.2%
Final simplification48.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.22e+154)
t_2
(if (<= b -82000000.0)
t_1
(if (<= b -4e-211)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 1.7e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 2.15e-119)
t_1
(if (<= b 3.8e-14)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= b 8e+121) (* k (* y (- (* i y5) (* b 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.22e+154) {
tmp = t_2;
} else if (b <= -82000000.0) {
tmp = t_1;
} else if (b <= -4e-211) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 1.7e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 2.15e-119) {
tmp = t_1;
} else if (b <= 3.8e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 8e+121) {
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.22d+154)) then
tmp = t_2
else if (b <= (-82000000.0d0)) then
tmp = t_1
else if (b <= (-4d-211)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 1.7d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 2.15d-119) then
tmp = t_1
else if (b <= 3.8d-14) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (b <= 8d+121) then
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.22e+154) {
tmp = t_2;
} else if (b <= -82000000.0) {
tmp = t_1;
} else if (b <= -4e-211) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 1.7e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 2.15e-119) {
tmp = t_1;
} else if (b <= 3.8e-14) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 8e+121) {
tmp = k * (y * ((i * y5) - (b * 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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.22e+154: tmp = t_2 elif b <= -82000000.0: tmp = t_1 elif b <= -4e-211: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 1.7e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 2.15e-119: tmp = t_1 elif b <= 3.8e-14: tmp = t * (y5 * ((a * y2) - (i * j))) elif b <= 8e+121: tmp = k * (y * ((i * y5) - (b * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.22e+154) tmp = t_2; elseif (b <= -82000000.0) tmp = t_1; elseif (b <= -4e-211) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 1.7e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 2.15e-119) tmp = t_1; elseif (b <= 3.8e-14) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (b <= 8e+121) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * 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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.22e+154) tmp = t_2; elseif (b <= -82000000.0) tmp = t_1; elseif (b <= -4e-211) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 1.7e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 2.15e-119) tmp = t_1; elseif (b <= 3.8e-14) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (b <= 8e+121) tmp = k * (y * ((i * y5) - (b * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.22e+154], t$95$2, If[LessEqual[b, -82000000.0], t$95$1, If[LessEqual[b, -4e-211], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.15e-119], t$95$1, If[LessEqual[b, 3.8e-14], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e+121], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.22 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -82000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-211}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-14}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{+121}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.22e154 or 8.0000000000000003e121 < b Initial program 14.0%
Taylor expanded in b around inf 58.4%
Taylor expanded in a around inf 59.0%
if -1.22e154 < b < -8.2e7 or 1.6999999999999999e-269 < b < 2.15e-119Initial program 34.4%
Taylor expanded in y0 around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in c around inf 51.8%
if -8.2e7 < b < -4.00000000000000034e-211Initial program 50.0%
Taylor expanded in y4 around inf 43.1%
*-commutative43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in y1 around inf 45.6%
if -4.00000000000000034e-211 < b < 1.6999999999999999e-269Initial program 32.2%
Taylor expanded in t around inf 42.7%
Taylor expanded in i around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
sub-neg43.1%
Simplified43.1%
if 2.15e-119 < b < 3.8000000000000002e-14Initial program 33.7%
Taylor expanded in t around inf 50.5%
Taylor expanded in y5 around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if 3.8000000000000002e-14 < b < 8.0000000000000003e121Initial program 30.8%
Taylor expanded in k around inf 57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
*-commutative57.3%
associate-*r*57.3%
neg-mul-157.3%
Simplified57.3%
Taylor expanded in y around inf 49.0%
Final simplification51.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.05e+155)
t_2
(if (<= b -98000000.0)
t_1
(if (<= b -4.2e-212)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 2.5e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 2.45e-119)
t_1
(if (<= b 2.45e-12)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= b 4.1e+130)
(* (* b k) (- (* z y0) (* y 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.05e+155) {
tmp = t_2;
} else if (b <= -98000000.0) {
tmp = t_1;
} else if (b <= -4.2e-212) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 2.5e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 2.45e-119) {
tmp = t_1;
} else if (b <= 2.45e-12) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 4.1e+130) {
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3)))
t_2 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.05d+155)) then
tmp = t_2
else if (b <= (-98000000.0d0)) then
tmp = t_1
else if (b <= (-4.2d-212)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 2.5d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 2.45d-119) then
tmp = t_1
else if (b <= 2.45d-12) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (b <= 4.1d+130) then
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3)));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.05e+155) {
tmp = t_2;
} else if (b <= -98000000.0) {
tmp = t_1;
} else if (b <= -4.2e-212) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 2.5e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 2.45e-119) {
tmp = t_1;
} else if (b <= 2.45e-12) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 4.1e+130) {
tmp = (b * k) * ((z * y0) - (y * 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 * (y0 * ((x * y2) - (z * y3))) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.05e+155: tmp = t_2 elif b <= -98000000.0: tmp = t_1 elif b <= -4.2e-212: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 2.5e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 2.45e-119: tmp = t_1 elif b <= 2.45e-12: tmp = t * (y5 * ((a * y2) - (i * j))) elif b <= 4.1e+130: tmp = (b * k) * ((z * y0) - (y * 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(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.05e+155) tmp = t_2; elseif (b <= -98000000.0) tmp = t_1; elseif (b <= -4.2e-212) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 2.5e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 2.45e-119) tmp = t_1; elseif (b <= 2.45e-12) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (b <= 4.1e+130) tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * 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 * (y0 * ((x * y2) - (z * y3))); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.05e+155) tmp = t_2; elseif (b <= -98000000.0) tmp = t_1; elseif (b <= -4.2e-212) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 2.5e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 2.45e-119) tmp = t_1; elseif (b <= 2.45e-12) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (b <= 4.1e+130) tmp = (b * k) * ((z * y0) - (y * 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[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+155], t$95$2, If[LessEqual[b, -98000000.0], t$95$1, If[LessEqual[b, -4.2e-212], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.45e-119], t$95$1, If[LessEqual[b, 2.45e-12], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.1e+130], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $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)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+155}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -98000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-212}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{-12}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{+130}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.05e155 or 4.09999999999999978e130 < b Initial program 14.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in a around inf 59.2%
if -1.05e155 < b < -9.8e7 or 2.49999999999999989e-269 < b < 2.45e-119Initial program 34.4%
Taylor expanded in y0 around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in c around inf 51.8%
if -9.8e7 < b < -4.1999999999999999e-212Initial program 50.0%
Taylor expanded in y4 around inf 43.1%
*-commutative43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in y1 around inf 45.6%
if -4.1999999999999999e-212 < b < 2.49999999999999989e-269Initial program 32.2%
Taylor expanded in t around inf 42.7%
Taylor expanded in i around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
sub-neg43.1%
Simplified43.1%
if 2.45e-119 < b < 2.44999999999999986e-12Initial program 33.7%
Taylor expanded in t around inf 50.5%
Taylor expanded in y5 around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if 2.44999999999999986e-12 < b < 4.09999999999999978e130Initial program 28.4%
Taylor expanded in b around inf 52.6%
Taylor expanded in k around -inf 52.6%
mul-1-neg52.6%
associate-*r*52.6%
Simplified52.6%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t))))))
(if (<= b -1.15e+119)
t_1
(if (<= b -7.5e-12)
(* y0 (* y3 (- (* j y5) (* z c))))
(if (<= b -1.45e-211)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= b 1.55e-269)
(* i (* t (- (* z c) (* j y5))))
(if (<= b 1.16e-119)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 1.75e-12)
(* t (* y5 (- (* a y2) (* i j))))
(if (<= b 1.22e+129)
(* (* b k) (- (* z y0) (* y y4)))
t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.15e+119) {
tmp = t_1;
} else if (b <= -7.5e-12) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (b <= -1.45e-211) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 1.55e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 1.16e-119) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.75e-12) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 1.22e+129) {
tmp = (b * k) * ((z * y0) - (y * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (b <= (-1.15d+119)) then
tmp = t_1
else if (b <= (-7.5d-12)) then
tmp = y0 * (y3 * ((j * y5) - (z * c)))
else if (b <= (-1.45d-211)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (b <= 1.55d-269) then
tmp = i * (t * ((z * c) - (j * y5)))
else if (b <= 1.16d-119) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 1.75d-12) then
tmp = t * (y5 * ((a * y2) - (i * j)))
else if (b <= 1.22d+129) then
tmp = (b * k) * ((z * y0) - (y * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -1.15e+119) {
tmp = t_1;
} else if (b <= -7.5e-12) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (b <= -1.45e-211) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (b <= 1.55e-269) {
tmp = i * (t * ((z * c) - (j * y5)));
} else if (b <= 1.16e-119) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 1.75e-12) {
tmp = t * (y5 * ((a * y2) - (i * j)));
} else if (b <= 1.22e+129) {
tmp = (b * k) * ((z * y0) - (y * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -1.15e+119: tmp = t_1 elif b <= -7.5e-12: tmp = y0 * (y3 * ((j * y5) - (z * c))) elif b <= -1.45e-211: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif b <= 1.55e-269: tmp = i * (t * ((z * c) - (j * y5))) elif b <= 1.16e-119: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 1.75e-12: tmp = t * (y5 * ((a * y2) - (i * j))) elif b <= 1.22e+129: tmp = (b * k) * ((z * y0) - (y * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -1.15e+119) tmp = t_1; elseif (b <= -7.5e-12) tmp = Float64(y0 * Float64(y3 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (b <= -1.45e-211) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (b <= 1.55e-269) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); elseif (b <= 1.16e-119) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 1.75e-12) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(i * j)))); elseif (b <= 1.22e+129) tmp = Float64(Float64(b * k) * Float64(Float64(z * y0) - Float64(y * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -1.15e+119) tmp = t_1; elseif (b <= -7.5e-12) tmp = y0 * (y3 * ((j * y5) - (z * c))); elseif (b <= -1.45e-211) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (b <= 1.55e-269) tmp = i * (t * ((z * c) - (j * y5))); elseif (b <= 1.16e-119) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 1.75e-12) tmp = t * (y5 * ((a * y2) - (i * j))); elseif (b <= 1.22e+129) tmp = (b * k) * ((z * y0) - (y * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e+119], t$95$1, If[LessEqual[b, -7.5e-12], N[(y0 * N[(y3 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-211], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e-269], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.16e-119], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-12], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.22e+129], N[(N[(b * k), $MachinePrecision] * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-12}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-211}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-269}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.16 \cdot 10^{-119}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-12}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 1.22 \cdot 10^{+129}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0 - y \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.15e119 or 1.2200000000000001e129 < b Initial program 16.2%
Taylor expanded in b around inf 59.4%
Taylor expanded in a around inf 58.8%
if -1.15e119 < b < -7.5e-12Initial program 23.7%
Taylor expanded in y0 around inf 38.8%
+-commutative38.8%
mul-1-neg38.8%
unsub-neg38.8%
*-commutative38.8%
*-commutative38.8%
*-commutative38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in y3 around -inf 51.5%
associate-*r*51.5%
neg-mul-151.5%
Simplified51.5%
if -7.5e-12 < b < -1.45000000000000007e-211Initial program 56.2%
Taylor expanded in y4 around inf 47.7%
*-commutative47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in y1 around inf 47.7%
if -1.45000000000000007e-211 < b < 1.54999999999999983e-269Initial program 32.2%
Taylor expanded in t around inf 42.7%
Taylor expanded in i around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
sub-neg43.1%
Simplified43.1%
if 1.54999999999999983e-269 < b < 1.16e-119Initial program 40.2%
Taylor expanded in y0 around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
*-commutative54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in c around inf 49.6%
if 1.16e-119 < b < 1.75e-12Initial program 33.7%
Taylor expanded in t around inf 50.5%
Taylor expanded in y5 around -inf 50.9%
mul-1-neg50.9%
Simplified50.9%
if 1.75e-12 < b < 1.2200000000000001e129Initial program 28.4%
Taylor expanded in b around inf 52.6%
Taylor expanded in k around -inf 52.6%
mul-1-neg52.6%
associate-*r*52.6%
Simplified52.6%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -8.8e+75)
(* b (* j (* x (- y0))))
(if (<= j -2e-155)
(* k (* y1 (* y2 y4)))
(if (<= j -2.85e-235)
(* j (* y0 (* x (- b))))
(if (<= j 3.8e-233)
(* c (* y (* y3 y4)))
(if (<= j 4.4e-175)
(* k (* y2 (* y0 (- y5))))
(if (<= j 8e-39)
(* a (* b (* t (- z))))
(* y3 (* j (* y1 (- 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 (j <= -8.8e+75) {
tmp = b * (j * (x * -y0));
} else if (j <= -2e-155) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= -2.85e-235) {
tmp = j * (y0 * (x * -b));
} else if (j <= 3.8e-233) {
tmp = c * (y * (y3 * y4));
} else if (j <= 4.4e-175) {
tmp = k * (y2 * (y0 * -y5));
} else if (j <= 8e-39) {
tmp = a * (b * (t * -z));
} else {
tmp = y3 * (j * (y1 * -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 (j <= (-8.8d+75)) then
tmp = b * (j * (x * -y0))
else if (j <= (-2d-155)) then
tmp = k * (y1 * (y2 * y4))
else if (j <= (-2.85d-235)) then
tmp = j * (y0 * (x * -b))
else if (j <= 3.8d-233) then
tmp = c * (y * (y3 * y4))
else if (j <= 4.4d-175) then
tmp = k * (y2 * (y0 * -y5))
else if (j <= 8d-39) then
tmp = a * (b * (t * -z))
else
tmp = y3 * (j * (y1 * -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 (j <= -8.8e+75) {
tmp = b * (j * (x * -y0));
} else if (j <= -2e-155) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= -2.85e-235) {
tmp = j * (y0 * (x * -b));
} else if (j <= 3.8e-233) {
tmp = c * (y * (y3 * y4));
} else if (j <= 4.4e-175) {
tmp = k * (y2 * (y0 * -y5));
} else if (j <= 8e-39) {
tmp = a * (b * (t * -z));
} else {
tmp = y3 * (j * (y1 * -y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -8.8e+75: tmp = b * (j * (x * -y0)) elif j <= -2e-155: tmp = k * (y1 * (y2 * y4)) elif j <= -2.85e-235: tmp = j * (y0 * (x * -b)) elif j <= 3.8e-233: tmp = c * (y * (y3 * y4)) elif j <= 4.4e-175: tmp = k * (y2 * (y0 * -y5)) elif j <= 8e-39: tmp = a * (b * (t * -z)) else: tmp = y3 * (j * (y1 * -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 (j <= -8.8e+75) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); elseif (j <= -2e-155) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (j <= -2.85e-235) tmp = Float64(j * Float64(y0 * Float64(x * Float64(-b)))); elseif (j <= 3.8e-233) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (j <= 4.4e-175) tmp = Float64(k * Float64(y2 * Float64(y0 * Float64(-y5)))); elseif (j <= 8e-39) tmp = Float64(a * Float64(b * Float64(t * Float64(-z)))); else tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-y4)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -8.8e+75) tmp = b * (j * (x * -y0)); elseif (j <= -2e-155) tmp = k * (y1 * (y2 * y4)); elseif (j <= -2.85e-235) tmp = j * (y0 * (x * -b)); elseif (j <= 3.8e-233) tmp = c * (y * (y3 * y4)); elseif (j <= 4.4e-175) tmp = k * (y2 * (y0 * -y5)); elseif (j <= 8e-39) tmp = a * (b * (t * -z)); else tmp = y3 * (j * (y1 * -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[j, -8.8e+75], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2e-155], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.85e-235], N[(j * N[(y0 * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.8e-233], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e-175], N[(k * N[(y2 * N[(y0 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-39], N[(a * N[(b * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(j * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.8 \cdot 10^{+75}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;j \leq -2 \cdot 10^{-155}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq -2.85 \cdot 10^{-235}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(x \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-233}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-175}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y0 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-39}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(-z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\end{array}
\end{array}
if j < -8.80000000000000048e75Initial program 38.3%
Taylor expanded in y0 around inf 42.8%
+-commutative42.8%
mul-1-neg42.8%
unsub-neg42.8%
*-commutative42.8%
*-commutative42.8%
*-commutative42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in j around -inf 53.9%
Taylor expanded in b around inf 46.1%
mul-1-neg46.1%
distribute-rgt-neg-in46.1%
distribute-rgt-neg-in46.1%
*-commutative46.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if -8.80000000000000048e75 < j < -2.00000000000000003e-155Initial program 32.1%
Taylor expanded in k around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
associate-*r*44.2%
neg-mul-144.2%
Simplified44.2%
Taylor expanded in y2 around inf 34.7%
Taylor expanded in y1 around inf 31.4%
if -2.00000000000000003e-155 < j < -2.85e-235Initial program 31.3%
Taylor expanded in y0 around inf 26.2%
+-commutative26.2%
mul-1-neg26.2%
unsub-neg26.2%
*-commutative26.2%
*-commutative26.2%
*-commutative26.2%
*-commutative26.2%
Simplified26.2%
Taylor expanded in j around -inf 44.5%
Taylor expanded in b around inf 44.6%
mul-1-neg44.6%
associate-*r*44.6%
distribute-lft-neg-out44.6%
*-commutative44.6%
distribute-rgt-neg-in44.6%
Simplified44.6%
if -2.85e-235 < j < 3.8e-233Initial program 24.1%
Taylor expanded in y4 around inf 34.1%
*-commutative34.1%
*-commutative34.1%
Simplified34.1%
Taylor expanded in y3 around inf 36.8%
Taylor expanded in j around 0 34.4%
if 3.8e-233 < j < 4.4e-175Initial program 26.6%
Taylor expanded in k around inf 40.6%
+-commutative40.6%
mul-1-neg40.6%
unsub-neg40.6%
*-commutative40.6%
associate-*r*40.6%
neg-mul-140.6%
Simplified40.6%
Taylor expanded in y2 around inf 34.1%
Taylor expanded in y1 around 0 34.1%
neg-mul-134.1%
distribute-rgt-neg-in34.1%
Simplified34.1%
if 4.4e-175 < j < 7.99999999999999943e-39Initial program 36.6%
Taylor expanded in b around inf 46.2%
Taylor expanded in a around inf 51.3%
Taylor expanded in x around 0 43.7%
mul-1-neg43.7%
*-commutative43.7%
distribute-rgt-neg-in43.7%
*-commutative43.7%
Simplified43.7%
if 7.99999999999999943e-39 < j Initial program 23.2%
Taylor expanded in y4 around inf 36.7%
*-commutative36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in y3 around inf 41.9%
Taylor expanded in y1 around inf 30.9%
associate-*r*30.9%
mul-1-neg30.9%
*-commutative30.9%
Simplified30.9%
Final simplification36.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -1.08e+76)
(* b (* j (* x (- y0))))
(if (<= j -8.6e+19)
(* (* j y0) (* y3 y5))
(if (<= j -1.26e-52)
(* (* b k) (* z y0))
(if (<= j -5.8e-165)
(* k (* y1 (* y2 y4)))
(if (<= j 1.9e-280)
(* a (* y (* x b)))
(if (<= j 6.8e-43)
(* a (* b (* t (- z))))
(* y3 (* j (* y1 (- 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 (j <= -1.08e+76) {
tmp = b * (j * (x * -y0));
} else if (j <= -8.6e+19) {
tmp = (j * y0) * (y3 * y5);
} else if (j <= -1.26e-52) {
tmp = (b * k) * (z * y0);
} else if (j <= -5.8e-165) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= 1.9e-280) {
tmp = a * (y * (x * b));
} else if (j <= 6.8e-43) {
tmp = a * (b * (t * -z));
} else {
tmp = y3 * (j * (y1 * -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 (j <= (-1.08d+76)) then
tmp = b * (j * (x * -y0))
else if (j <= (-8.6d+19)) then
tmp = (j * y0) * (y3 * y5)
else if (j <= (-1.26d-52)) then
tmp = (b * k) * (z * y0)
else if (j <= (-5.8d-165)) then
tmp = k * (y1 * (y2 * y4))
else if (j <= 1.9d-280) then
tmp = a * (y * (x * b))
else if (j <= 6.8d-43) then
tmp = a * (b * (t * -z))
else
tmp = y3 * (j * (y1 * -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 (j <= -1.08e+76) {
tmp = b * (j * (x * -y0));
} else if (j <= -8.6e+19) {
tmp = (j * y0) * (y3 * y5);
} else if (j <= -1.26e-52) {
tmp = (b * k) * (z * y0);
} else if (j <= -5.8e-165) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= 1.9e-280) {
tmp = a * (y * (x * b));
} else if (j <= 6.8e-43) {
tmp = a * (b * (t * -z));
} else {
tmp = y3 * (j * (y1 * -y4));
}
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.08e+76: tmp = b * (j * (x * -y0)) elif j <= -8.6e+19: tmp = (j * y0) * (y3 * y5) elif j <= -1.26e-52: tmp = (b * k) * (z * y0) elif j <= -5.8e-165: tmp = k * (y1 * (y2 * y4)) elif j <= 1.9e-280: tmp = a * (y * (x * b)) elif j <= 6.8e-43: tmp = a * (b * (t * -z)) else: tmp = y3 * (j * (y1 * -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 (j <= -1.08e+76) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); elseif (j <= -8.6e+19) tmp = Float64(Float64(j * y0) * Float64(y3 * y5)); elseif (j <= -1.26e-52) tmp = Float64(Float64(b * k) * Float64(z * y0)); elseif (j <= -5.8e-165) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (j <= 1.9e-280) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (j <= 6.8e-43) tmp = Float64(a * Float64(b * Float64(t * Float64(-z)))); else tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-y4)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -1.08e+76) tmp = b * (j * (x * -y0)); elseif (j <= -8.6e+19) tmp = (j * y0) * (y3 * y5); elseif (j <= -1.26e-52) tmp = (b * k) * (z * y0); elseif (j <= -5.8e-165) tmp = k * (y1 * (y2 * y4)); elseif (j <= 1.9e-280) tmp = a * (y * (x * b)); elseif (j <= 6.8e-43) tmp = a * (b * (t * -z)); else tmp = y3 * (j * (y1 * -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[j, -1.08e+76], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.6e+19], N[(N[(j * y0), $MachinePrecision] * N[(y3 * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.26e-52], N[(N[(b * k), $MachinePrecision] * N[(z * y0), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.8e-165], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.9e-280], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.8e-43], N[(a * N[(b * N[(t * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(j * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.08 \cdot 10^{+76}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;j \leq -8.6 \cdot 10^{+19}:\\
\;\;\;\;\left(j \cdot y0\right) \cdot \left(y3 \cdot y5\right)\\
\mathbf{elif}\;j \leq -1.26 \cdot 10^{-52}:\\
\;\;\;\;\left(b \cdot k\right) \cdot \left(z \cdot y0\right)\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-165}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 1.9 \cdot 10^{-280}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{-43}:\\
\;\;\;\;a \cdot \left(b \cdot \left(t \cdot \left(-z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\end{array}
\end{array}
if j < -1.07999999999999999e76Initial program 38.3%
Taylor expanded in y0 around inf 42.8%
+-commutative42.8%
mul-1-neg42.8%
unsub-neg42.8%
*-commutative42.8%
*-commutative42.8%
*-commutative42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in j around -inf 53.9%
Taylor expanded in b around inf 46.1%
mul-1-neg46.1%
distribute-rgt-neg-in46.1%
distribute-rgt-neg-in46.1%
*-commutative46.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if -1.07999999999999999e76 < j < -8.6e19Initial program 30.0%
Taylor expanded in y4 around inf 62.7%
*-commutative62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y3 around inf 53.2%
Taylor expanded in y4 around 0 41.9%
associate-*r*51.1%
*-commutative51.1%
Simplified51.1%
if -8.6e19 < j < -1.25999999999999996e-52Initial program 28.7%
Taylor expanded in b around inf 48.5%
Taylor expanded in k around -inf 39.0%
mul-1-neg39.0%
associate-*r*39.0%
Simplified39.0%
Taylor expanded in y around 0 43.6%
neg-mul-143.6%
distribute-lft-neg-in43.6%
*-commutative43.6%
Simplified43.6%
if -1.25999999999999996e-52 < j < -5.8e-165Initial program 31.9%
Taylor expanded in k around inf 40.3%
+-commutative40.3%
mul-1-neg40.3%
unsub-neg40.3%
*-commutative40.3%
associate-*r*40.3%
neg-mul-140.3%
Simplified40.3%
Taylor expanded in y2 around inf 36.8%
Taylor expanded in y1 around inf 41.1%
if -5.8e-165 < j < 1.9000000000000001e-280Initial program 25.9%
Taylor expanded in b around inf 47.0%
Taylor expanded in a around inf 36.0%
Taylor expanded in x around inf 31.6%
associate-*r*33.9%
*-commutative33.9%
Simplified33.9%
if 1.9000000000000001e-280 < j < 6.8000000000000001e-43Initial program 32.7%
Taylor expanded in b around inf 39.3%
Taylor expanded in a around inf 45.8%
Taylor expanded in x around 0 34.5%
mul-1-neg34.5%
*-commutative34.5%
distribute-rgt-neg-in34.5%
*-commutative34.5%
Simplified34.5%
if 6.8000000000000001e-43 < j Initial program 23.2%
Taylor expanded in y4 around inf 36.7%
*-commutative36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in y3 around inf 41.9%
Taylor expanded in y1 around inf 30.9%
associate-*r*30.9%
mul-1-neg30.9%
*-commutative30.9%
Simplified30.9%
Final simplification37.7%
(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)))) (t_2 (* a (* b (- (* x y) (* z t))))))
(if (<= y4 -5.8e+139)
t_1
(if (<= y4 5.1e-264)
t_2
(if (<= y4 7.5e-175)
(* k (* y2 (* y0 (- y5))))
(if (<= y4 1.2e+57)
t_2
(if (<= y4 3.1e+148)
(* c (* i (* x (- y))))
(if (<= y4 5.8e+197) (* b (* j (* x (- y0)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y4 <= -5.8e+139) {
tmp = t_1;
} else if (y4 <= 5.1e-264) {
tmp = t_2;
} else if (y4 <= 7.5e-175) {
tmp = k * (y2 * (y0 * -y5));
} else if (y4 <= 1.2e+57) {
tmp = t_2;
} else if (y4 <= 3.1e+148) {
tmp = c * (i * (x * -y));
} else if (y4 <= 5.8e+197) {
tmp = b * (j * (x * -y0));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y * (y3 * y4))
t_2 = a * (b * ((x * y) - (z * t)))
if (y4 <= (-5.8d+139)) then
tmp = t_1
else if (y4 <= 5.1d-264) then
tmp = t_2
else if (y4 <= 7.5d-175) then
tmp = k * (y2 * (y0 * -y5))
else if (y4 <= 1.2d+57) then
tmp = t_2
else if (y4 <= 3.1d+148) then
tmp = c * (i * (x * -y))
else if (y4 <= 5.8d+197) then
tmp = b * (j * (x * -y0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double t_2 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y4 <= -5.8e+139) {
tmp = t_1;
} else if (y4 <= 5.1e-264) {
tmp = t_2;
} else if (y4 <= 7.5e-175) {
tmp = k * (y2 * (y0 * -y5));
} else if (y4 <= 1.2e+57) {
tmp = t_2;
} else if (y4 <= 3.1e+148) {
tmp = c * (i * (x * -y));
} else if (y4 <= 5.8e+197) {
tmp = b * (j * (x * -y0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * (y3 * y4)) t_2 = a * (b * ((x * y) - (z * t))) tmp = 0 if y4 <= -5.8e+139: tmp = t_1 elif y4 <= 5.1e-264: tmp = t_2 elif y4 <= 7.5e-175: tmp = k * (y2 * (y0 * -y5)) elif y4 <= 1.2e+57: tmp = t_2 elif y4 <= 3.1e+148: tmp = c * (i * (x * -y)) elif y4 <= 5.8e+197: tmp = b * (j * (x * -y0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(y3 * y4))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (y4 <= -5.8e+139) tmp = t_1; elseif (y4 <= 5.1e-264) tmp = t_2; elseif (y4 <= 7.5e-175) tmp = Float64(k * Float64(y2 * Float64(y0 * Float64(-y5)))); elseif (y4 <= 1.2e+57) tmp = t_2; elseif (y4 <= 3.1e+148) tmp = Float64(c * Float64(i * Float64(x * Float64(-y)))); elseif (y4 <= 5.8e+197) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * (y3 * y4)); t_2 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (y4 <= -5.8e+139) tmp = t_1; elseif (y4 <= 5.1e-264) tmp = t_2; elseif (y4 <= 7.5e-175) tmp = k * (y2 * (y0 * -y5)); elseif (y4 <= 1.2e+57) tmp = t_2; elseif (y4 <= 3.1e+148) tmp = c * (i * (x * -y)); elseif (y4 <= 5.8e+197) tmp = b * (j * (x * -y0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -5.8e+139], t$95$1, If[LessEqual[y4, 5.1e-264], t$95$2, If[LessEqual[y4, 7.5e-175], N[(k * N[(y2 * N[(y0 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.2e+57], t$95$2, If[LessEqual[y4, 3.1e+148], N[(c * N[(i * N[(x * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.8e+197], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;y4 \leq -5.8 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 5.1 \cdot 10^{-264}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 7.5 \cdot 10^{-175}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y0 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 1.2 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 3.1 \cdot 10^{+148}:\\
\;\;\;\;c \cdot \left(i \cdot \left(x \cdot \left(-y\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 5.8 \cdot 10^{+197}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -5.7999999999999998e139 or 5.80000000000000005e197 < y4 Initial program 25.4%
Taylor expanded in y4 around inf 45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in y3 around inf 49.6%
Taylor expanded in j around 0 50.2%
if -5.7999999999999998e139 < y4 < 5.10000000000000024e-264 or 7.50000000000000053e-175 < y4 < 1.20000000000000002e57Initial program 33.0%
Taylor expanded in b around inf 43.9%
Taylor expanded in a around inf 37.5%
if 5.10000000000000024e-264 < y4 < 7.50000000000000053e-175Initial program 32.1%
Taylor expanded in k around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
associate-*r*41.0%
neg-mul-141.0%
Simplified41.0%
Taylor expanded in y2 around inf 46.6%
Taylor expanded in y1 around 0 46.5%
neg-mul-146.5%
distribute-rgt-neg-in46.5%
Simplified46.5%
if 1.20000000000000002e57 < y4 < 3.09999999999999975e148Initial program 19.0%
Taylor expanded in c around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
*-commutative57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in x around inf 44.7%
Taylor expanded in y0 around 0 44.0%
associate-*r*44.0%
neg-mul-144.0%
*-commutative44.0%
Simplified44.0%
if 3.09999999999999975e148 < y4 < 5.80000000000000005e197Initial program 25.0%
Taylor expanded in y0 around inf 34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
*-commutative34.4%
*-commutative34.4%
*-commutative34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in j around -inf 43.5%
Taylor expanded in b around inf 51.1%
mul-1-neg51.1%
distribute-rgt-neg-in51.1%
distribute-rgt-neg-in51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
Simplified51.1%
Final simplification42.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t))) (t_2 (* c (* y (* y3 y4)))))
(if (<= y4 -5.5e+154)
t_2
(if (<= y4 1.02e-259)
(* a (* b t_1))
(if (<= y4 4.2e-175)
(* k (* y2 (* y0 (- y5))))
(if (<= y4 4.3e+57)
(* b (* a t_1))
(if (<= y4 1.85e+147)
(* c (* i (* x (- y))))
(if (<= y4 1.12e+198) (* b (* j (* x (- y0)))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -5.5e+154) {
tmp = t_2;
} else if (y4 <= 1.02e-259) {
tmp = a * (b * t_1);
} else if (y4 <= 4.2e-175) {
tmp = k * (y2 * (y0 * -y5));
} else if (y4 <= 4.3e+57) {
tmp = b * (a * t_1);
} else if (y4 <= 1.85e+147) {
tmp = c * (i * (x * -y));
} else if (y4 <= 1.12e+198) {
tmp = b * (j * (x * -y0));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * y) - (z * t)
t_2 = c * (y * (y3 * y4))
if (y4 <= (-5.5d+154)) then
tmp = t_2
else if (y4 <= 1.02d-259) then
tmp = a * (b * t_1)
else if (y4 <= 4.2d-175) then
tmp = k * (y2 * (y0 * -y5))
else if (y4 <= 4.3d+57) then
tmp = b * (a * t_1)
else if (y4 <= 1.85d+147) then
tmp = c * (i * (x * -y))
else if (y4 <= 1.12d+198) then
tmp = b * (j * (x * -y0))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -5.5e+154) {
tmp = t_2;
} else if (y4 <= 1.02e-259) {
tmp = a * (b * t_1);
} else if (y4 <= 4.2e-175) {
tmp = k * (y2 * (y0 * -y5));
} else if (y4 <= 4.3e+57) {
tmp = b * (a * t_1);
} else if (y4 <= 1.85e+147) {
tmp = c * (i * (x * -y));
} else if (y4 <= 1.12e+198) {
tmp = b * (j * (x * -y0));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) t_2 = c * (y * (y3 * y4)) tmp = 0 if y4 <= -5.5e+154: tmp = t_2 elif y4 <= 1.02e-259: tmp = a * (b * t_1) elif y4 <= 4.2e-175: tmp = k * (y2 * (y0 * -y5)) elif y4 <= 4.3e+57: tmp = b * (a * t_1) elif y4 <= 1.85e+147: tmp = c * (i * (x * -y)) elif y4 <= 1.12e+198: tmp = b * (j * (x * -y0)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) t_2 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (y4 <= -5.5e+154) tmp = t_2; elseif (y4 <= 1.02e-259) tmp = Float64(a * Float64(b * t_1)); elseif (y4 <= 4.2e-175) tmp = Float64(k * Float64(y2 * Float64(y0 * Float64(-y5)))); elseif (y4 <= 4.3e+57) tmp = Float64(b * Float64(a * t_1)); elseif (y4 <= 1.85e+147) tmp = Float64(c * Float64(i * Float64(x * Float64(-y)))); elseif (y4 <= 1.12e+198) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); t_2 = c * (y * (y3 * y4)); tmp = 0.0; if (y4 <= -5.5e+154) tmp = t_2; elseif (y4 <= 1.02e-259) tmp = a * (b * t_1); elseif (y4 <= 4.2e-175) tmp = k * (y2 * (y0 * -y5)); elseif (y4 <= 4.3e+57) tmp = b * (a * t_1); elseif (y4 <= 1.85e+147) tmp = c * (i * (x * -y)); elseif (y4 <= 1.12e+198) tmp = b * (j * (x * -y0)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -5.5e+154], t$95$2, If[LessEqual[y4, 1.02e-259], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.2e-175], N[(k * N[(y2 * N[(y0 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.3e+57], N[(b * N[(a * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.85e+147], N[(c * N[(i * N[(x * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.12e+198], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -5.5 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 1.02 \cdot 10^{-259}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y4 \leq 4.2 \cdot 10^{-175}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y0 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 4.3 \cdot 10^{+57}:\\
\;\;\;\;b \cdot \left(a \cdot t\_1\right)\\
\mathbf{elif}\;y4 \leq 1.85 \cdot 10^{+147}:\\
\;\;\;\;c \cdot \left(i \cdot \left(x \cdot \left(-y\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 1.12 \cdot 10^{+198}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y4 < -5.5000000000000006e154 or 1.1199999999999999e198 < y4 Initial program 25.4%
Taylor expanded in y4 around inf 45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in y3 around inf 49.6%
Taylor expanded in j around 0 50.2%
if -5.5000000000000006e154 < y4 < 1.01999999999999995e-259Initial program 32.0%
Taylor expanded in b around inf 43.4%
Taylor expanded in a around inf 42.4%
if 1.01999999999999995e-259 < y4 < 4.2e-175Initial program 32.1%
Taylor expanded in k around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
associate-*r*41.0%
neg-mul-141.0%
Simplified41.0%
Taylor expanded in y2 around inf 46.6%
Taylor expanded in y1 around 0 46.5%
neg-mul-146.5%
distribute-rgt-neg-in46.5%
Simplified46.5%
if 4.2e-175 < y4 < 4.30000000000000033e57Initial program 34.9%
Taylor expanded in b around inf 44.9%
Taylor expanded in a around inf 32.0%
if 4.30000000000000033e57 < y4 < 1.85e147Initial program 19.0%
Taylor expanded in c around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
*-commutative57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in x around inf 44.7%
Taylor expanded in y0 around 0 44.0%
associate-*r*44.0%
neg-mul-144.0%
*-commutative44.0%
Simplified44.0%
if 1.85e147 < y4 < 1.1199999999999999e198Initial program 25.0%
Taylor expanded in y0 around inf 34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
*-commutative34.4%
*-commutative34.4%
*-commutative34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in j around -inf 43.5%
Taylor expanded in b around inf 51.1%
mul-1-neg51.1%
distribute-rgt-neg-in51.1%
distribute-rgt-neg-in51.1%
*-commutative51.1%
distribute-rgt-neg-in51.1%
Simplified51.1%
Final simplification42.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t))))))
(if (<= b -2.5e+158)
t_1
(if (<= b -3.8e-243)
(* c (* y3 (- (* y y4) (* z y0))))
(if (<= b 2.05e-280)
(* b (* y0 (- (* z k) (* x j))))
(if (<= b 2.6e-107)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= b 4.7e-9) (* y3 (* j (* y1 (- y4)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -2.5e+158) {
tmp = t_1;
} else if (b <= -3.8e-243) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 2.05e-280) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (b <= 2.6e-107) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 4.7e-9) {
tmp = y3 * (j * (y1 * -y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (b <= (-2.5d+158)) then
tmp = t_1
else if (b <= (-3.8d-243)) then
tmp = c * (y3 * ((y * y4) - (z * y0)))
else if (b <= 2.05d-280) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (b <= 2.6d-107) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (b <= 4.7d-9) then
tmp = y3 * (j * (y1 * -y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (b <= -2.5e+158) {
tmp = t_1;
} else if (b <= -3.8e-243) {
tmp = c * (y3 * ((y * y4) - (z * y0)));
} else if (b <= 2.05e-280) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (b <= 2.6e-107) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (b <= 4.7e-9) {
tmp = y3 * (j * (y1 * -y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) tmp = 0 if b <= -2.5e+158: tmp = t_1 elif b <= -3.8e-243: tmp = c * (y3 * ((y * y4) - (z * y0))) elif b <= 2.05e-280: tmp = b * (y0 * ((z * k) - (x * j))) elif b <= 2.6e-107: tmp = c * (y0 * ((x * y2) - (z * y3))) elif b <= 4.7e-9: tmp = y3 * (j * (y1 * -y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (b <= -2.5e+158) tmp = t_1; elseif (b <= -3.8e-243) tmp = Float64(c * Float64(y3 * Float64(Float64(y * y4) - Float64(z * y0)))); elseif (b <= 2.05e-280) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (b <= 2.6e-107) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (b <= 4.7e-9) tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-y4)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (b <= -2.5e+158) tmp = t_1; elseif (b <= -3.8e-243) tmp = c * (y3 * ((y * y4) - (z * y0))); elseif (b <= 2.05e-280) tmp = b * (y0 * ((z * k) - (x * j))); elseif (b <= 2.6e-107) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (b <= 4.7e-9) tmp = y3 * (j * (y1 * -y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+158], t$95$1, If[LessEqual[b, -3.8e-243], N[(c * N[(y3 * N[(N[(y * y4), $MachinePrecision] - N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e-280], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-107], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.7e-9], N[(y3 * N[(j * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-243}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(y \cdot y4 - z \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-280}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-107}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{-9}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.4999999999999998e158 or 4.6999999999999999e-9 < b Initial program 17.4%
Taylor expanded in b around inf 57.9%
Taylor expanded in a around inf 52.3%
if -2.4999999999999998e158 < b < -3.7999999999999998e-243Initial program 38.8%
Taylor expanded in c around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
*-commutative43.1%
*-commutative43.1%
*-commutative43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in y3 around inf 40.2%
sub-neg40.2%
mul-1-neg40.2%
remove-double-neg40.2%
neg-mul-140.2%
+-commutative40.2%
sub-neg40.2%
Simplified40.2%
if -3.7999999999999998e-243 < b < 2.0500000000000001e-280Initial program 29.9%
Taylor expanded in b around inf 15.9%
Taylor expanded in y0 around inf 45.9%
if 2.0500000000000001e-280 < b < 2.6000000000000001e-107Initial program 37.7%
Taylor expanded in y0 around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in c around inf 48.5%
if 2.6000000000000001e-107 < b < 4.6999999999999999e-9Initial program 41.5%
Taylor expanded in y4 around inf 36.2%
*-commutative36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in y3 around inf 36.3%
Taylor expanded in y1 around inf 42.6%
associate-*r*42.6%
mul-1-neg42.6%
*-commutative42.6%
Simplified42.6%
Final simplification46.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* z t))))))
(if (<= y0 -4.6e+49)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y0 -3.9e-76)
t_1
(if (<= y0 -1.8e-202)
(* c (* y (* y3 y4)))
(if (<= y0 8.5e+109) t_1 (* c (* x (* y0 y2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y0 <= -4.6e+49) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y0 <= -3.9e-76) {
tmp = t_1;
} else if (y0 <= -1.8e-202) {
tmp = c * (y * (y3 * y4));
} else if (y0 <= 8.5e+109) {
tmp = t_1;
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (y0 <= (-4.6d+49)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y0 <= (-3.9d-76)) then
tmp = t_1
else if (y0 <= (-1.8d-202)) then
tmp = c * (y * (y3 * y4))
else if (y0 <= 8.5d+109) then
tmp = t_1
else
tmp = c * (x * (y0 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y0 <= -4.6e+49) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y0 <= -3.9e-76) {
tmp = t_1;
} else if (y0 <= -1.8e-202) {
tmp = c * (y * (y3 * y4));
} else if (y0 <= 8.5e+109) {
tmp = t_1;
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (z * t))) tmp = 0 if y0 <= -4.6e+49: tmp = b * (j * ((t * y4) - (x * y0))) elif y0 <= -3.9e-76: tmp = t_1 elif y0 <= -1.8e-202: tmp = c * (y * (y3 * y4)) elif y0 <= 8.5e+109: tmp = t_1 else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) tmp = 0.0 if (y0 <= -4.6e+49) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y0 <= -3.9e-76) tmp = t_1; elseif (y0 <= -1.8e-202) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y0 <= 8.5e+109) tmp = t_1; else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (y0 <= -4.6e+49) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y0 <= -3.9e-76) tmp = t_1; elseif (y0 <= -1.8e-202) tmp = c * (y * (y3 * y4)); elseif (y0 <= 8.5e+109) tmp = t_1; else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -4.6e+49], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -3.9e-76], t$95$1, If[LessEqual[y0, -1.8e-202], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 8.5e+109], t$95$1, N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{if}\;y0 \leq -4.6 \cdot 10^{+49}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y0 \leq -3.9 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -1.8 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq 8.5 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y0 < -4.60000000000000004e49Initial program 24.0%
Taylor expanded in b around inf 47.6%
Taylor expanded in j around inf 48.4%
if -4.60000000000000004e49 < y0 < -3.90000000000000025e-76 or -1.8000000000000001e-202 < y0 < 8.5000000000000004e109Initial program 32.7%
Taylor expanded in b around inf 40.2%
Taylor expanded in a around inf 36.8%
if -3.90000000000000025e-76 < y0 < -1.8000000000000001e-202Initial program 40.1%
Taylor expanded in y4 around inf 40.8%
*-commutative40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in y3 around inf 35.0%
Taylor expanded in j around 0 41.6%
if 8.5000000000000004e109 < y0 Initial program 20.0%
Taylor expanded in c around inf 40.3%
+-commutative40.3%
mul-1-neg40.3%
unsub-neg40.3%
*-commutative40.3%
*-commutative40.3%
*-commutative40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in x around inf 49.7%
Taylor expanded in y0 around inf 47.0%
Final simplification41.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* x (- y0))))))
(if (<= j -3.7e+76)
t_1
(if (<= j -1.75e-155)
(* k (* y1 (* y2 y4)))
(if (<= j -4.55e-237)
(* j (* y0 (* x (- b))))
(if (<= j 6.3e+143) (* c (* y (* y3 y4))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (x * -y0));
double tmp;
if (j <= -3.7e+76) {
tmp = t_1;
} else if (j <= -1.75e-155) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= -4.55e-237) {
tmp = j * (y0 * (x * -b));
} else if (j <= 6.3e+143) {
tmp = c * (y * (y3 * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * (x * -y0))
if (j <= (-3.7d+76)) then
tmp = t_1
else if (j <= (-1.75d-155)) then
tmp = k * (y1 * (y2 * y4))
else if (j <= (-4.55d-237)) then
tmp = j * (y0 * (x * -b))
else if (j <= 6.3d+143) then
tmp = c * (y * (y3 * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (x * -y0));
double tmp;
if (j <= -3.7e+76) {
tmp = t_1;
} else if (j <= -1.75e-155) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= -4.55e-237) {
tmp = j * (y0 * (x * -b));
} else if (j <= 6.3e+143) {
tmp = c * (y * (y3 * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * (x * -y0)) tmp = 0 if j <= -3.7e+76: tmp = t_1 elif j <= -1.75e-155: tmp = k * (y1 * (y2 * y4)) elif j <= -4.55e-237: tmp = j * (y0 * (x * -b)) elif j <= 6.3e+143: tmp = c * (y * (y3 * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(x * Float64(-y0)))) tmp = 0.0 if (j <= -3.7e+76) tmp = t_1; elseif (j <= -1.75e-155) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (j <= -4.55e-237) tmp = Float64(j * Float64(y0 * Float64(x * Float64(-b)))); elseif (j <= 6.3e+143) tmp = Float64(c * Float64(y * Float64(y3 * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * (x * -y0)); tmp = 0.0; if (j <= -3.7e+76) tmp = t_1; elseif (j <= -1.75e-155) tmp = k * (y1 * (y2 * y4)); elseif (j <= -4.55e-237) tmp = j * (y0 * (x * -b)); elseif (j <= 6.3e+143) tmp = c * (y * (y3 * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.7e+76], t$95$1, If[LessEqual[j, -1.75e-155], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.55e-237], N[(j * N[(y0 * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.3e+143], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{if}\;j \leq -3.7 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{-155}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq -4.55 \cdot 10^{-237}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(x \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;j \leq 6.3 \cdot 10^{+143}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.6999999999999999e76 or 6.30000000000000006e143 < j Initial program 32.9%
Taylor expanded in y0 around inf 38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
*-commutative38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in j around -inf 52.0%
Taylor expanded in b around inf 42.1%
mul-1-neg42.1%
distribute-rgt-neg-in42.1%
distribute-rgt-neg-in42.1%
*-commutative42.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if -3.6999999999999999e76 < j < -1.75000000000000008e-155Initial program 32.1%
Taylor expanded in k around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
associate-*r*44.2%
neg-mul-144.2%
Simplified44.2%
Taylor expanded in y2 around inf 34.7%
Taylor expanded in y1 around inf 31.4%
if -1.75000000000000008e-155 < j < -4.55000000000000016e-237Initial program 31.3%
Taylor expanded in y0 around inf 26.2%
+-commutative26.2%
mul-1-neg26.2%
unsub-neg26.2%
*-commutative26.2%
*-commutative26.2%
*-commutative26.2%
*-commutative26.2%
Simplified26.2%
Taylor expanded in j around -inf 44.5%
Taylor expanded in b around inf 44.6%
mul-1-neg44.6%
associate-*r*44.6%
distribute-lft-neg-out44.6%
*-commutative44.6%
distribute-rgt-neg-in44.6%
Simplified44.6%
if -4.55000000000000016e-237 < j < 6.30000000000000006e143Initial program 26.4%
Taylor expanded in y4 around inf 34.2%
*-commutative34.2%
*-commutative34.2%
Simplified34.2%
Taylor expanded in y3 around inf 32.7%
Taylor expanded in j around 0 27.6%
Final simplification33.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -1.3e+76)
(* b (* j (* x (- y0))))
(if (<= j -1.75e-155)
(* k (* y1 (* y2 y4)))
(if (<= j -2.35e-235)
(* j (* y0 (* x (- b))))
(if (<= j 5.8e+28) (* c (* y (* y3 y4))) (* y3 (* j (* y1 (- 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 (j <= -1.3e+76) {
tmp = b * (j * (x * -y0));
} else if (j <= -1.75e-155) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= -2.35e-235) {
tmp = j * (y0 * (x * -b));
} else if (j <= 5.8e+28) {
tmp = c * (y * (y3 * y4));
} else {
tmp = y3 * (j * (y1 * -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 (j <= (-1.3d+76)) then
tmp = b * (j * (x * -y0))
else if (j <= (-1.75d-155)) then
tmp = k * (y1 * (y2 * y4))
else if (j <= (-2.35d-235)) then
tmp = j * (y0 * (x * -b))
else if (j <= 5.8d+28) then
tmp = c * (y * (y3 * y4))
else
tmp = y3 * (j * (y1 * -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 (j <= -1.3e+76) {
tmp = b * (j * (x * -y0));
} else if (j <= -1.75e-155) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= -2.35e-235) {
tmp = j * (y0 * (x * -b));
} else if (j <= 5.8e+28) {
tmp = c * (y * (y3 * y4));
} else {
tmp = y3 * (j * (y1 * -y4));
}
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.3e+76: tmp = b * (j * (x * -y0)) elif j <= -1.75e-155: tmp = k * (y1 * (y2 * y4)) elif j <= -2.35e-235: tmp = j * (y0 * (x * -b)) elif j <= 5.8e+28: tmp = c * (y * (y3 * y4)) else: tmp = y3 * (j * (y1 * -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 (j <= -1.3e+76) tmp = Float64(b * Float64(j * Float64(x * Float64(-y0)))); elseif (j <= -1.75e-155) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (j <= -2.35e-235) tmp = Float64(j * Float64(y0 * Float64(x * Float64(-b)))); elseif (j <= 5.8e+28) tmp = Float64(c * Float64(y * Float64(y3 * y4))); else tmp = Float64(y3 * Float64(j * Float64(y1 * Float64(-y4)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -1.3e+76) tmp = b * (j * (x * -y0)); elseif (j <= -1.75e-155) tmp = k * (y1 * (y2 * y4)); elseif (j <= -2.35e-235) tmp = j * (y0 * (x * -b)); elseif (j <= 5.8e+28) tmp = c * (y * (y3 * y4)); else tmp = y3 * (j * (y1 * -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[j, -1.3e+76], N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.75e-155], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.35e-235], N[(j * N[(y0 * N[(x * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e+28], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(j * N[(y1 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.3 \cdot 10^{+76}:\\
\;\;\;\;b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{-155}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq -2.35 \cdot 10^{-235}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(x \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{+28}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(j \cdot \left(y1 \cdot \left(-y4\right)\right)\right)\\
\end{array}
\end{array}
if j < -1.3e76Initial program 38.3%
Taylor expanded in y0 around inf 42.8%
+-commutative42.8%
mul-1-neg42.8%
unsub-neg42.8%
*-commutative42.8%
*-commutative42.8%
*-commutative42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in j around -inf 53.9%
Taylor expanded in b around inf 46.1%
mul-1-neg46.1%
distribute-rgt-neg-in46.1%
distribute-rgt-neg-in46.1%
*-commutative46.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if -1.3e76 < j < -1.75000000000000008e-155Initial program 32.1%
Taylor expanded in k around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
*-commutative44.2%
associate-*r*44.2%
neg-mul-144.2%
Simplified44.2%
Taylor expanded in y2 around inf 34.7%
Taylor expanded in y1 around inf 31.4%
if -1.75000000000000008e-155 < j < -2.35e-235Initial program 31.3%
Taylor expanded in y0 around inf 26.2%
+-commutative26.2%
mul-1-neg26.2%
unsub-neg26.2%
*-commutative26.2%
*-commutative26.2%
*-commutative26.2%
*-commutative26.2%
Simplified26.2%
Taylor expanded in j around -inf 44.5%
Taylor expanded in b around inf 44.6%
mul-1-neg44.6%
associate-*r*44.6%
distribute-lft-neg-out44.6%
*-commutative44.6%
distribute-rgt-neg-in44.6%
Simplified44.6%
if -2.35e-235 < j < 5.8000000000000002e28Initial program 28.9%
Taylor expanded in y4 around inf 33.9%
*-commutative33.9%
*-commutative33.9%
Simplified33.9%
Taylor expanded in y3 around inf 31.0%
Taylor expanded in j around 0 27.9%
if 5.8000000000000002e28 < j Initial program 20.4%
Taylor expanded in y4 around inf 33.0%
*-commutative33.0%
*-commutative33.0%
Simplified33.0%
Taylor expanded in y3 around inf 41.5%
Taylor expanded in y1 around inf 34.0%
associate-*r*34.0%
mul-1-neg34.0%
*-commutative34.0%
Simplified34.0%
Final simplification34.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t))))
(if (<= y -3e+157)
(* c (* y (* y3 y4)))
(if (<= y -3.4e-153)
(* a (* b t_1))
(if (<= y 5.2e+55) (* b (* y0 (- (* z k) (* x j)))) (* b (* a t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double tmp;
if (y <= -3e+157) {
tmp = c * (y * (y3 * y4));
} else if (y <= -3.4e-153) {
tmp = a * (b * t_1);
} else if (y <= 5.2e+55) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = b * (a * 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 = (x * y) - (z * t)
if (y <= (-3d+157)) then
tmp = c * (y * (y3 * y4))
else if (y <= (-3.4d-153)) then
tmp = a * (b * t_1)
else if (y <= 5.2d+55) then
tmp = b * (y0 * ((z * k) - (x * j)))
else
tmp = b * (a * 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 = (x * y) - (z * t);
double tmp;
if (y <= -3e+157) {
tmp = c * (y * (y3 * y4));
} else if (y <= -3.4e-153) {
tmp = a * (b * t_1);
} else if (y <= 5.2e+55) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else {
tmp = b * (a * t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) tmp = 0 if y <= -3e+157: tmp = c * (y * (y3 * y4)) elif y <= -3.4e-153: tmp = a * (b * t_1) elif y <= 5.2e+55: tmp = b * (y0 * ((z * k) - (x * j))) else: tmp = b * (a * t_1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y <= -3e+157) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y <= -3.4e-153) tmp = Float64(a * Float64(b * t_1)); elseif (y <= 5.2e+55) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); else tmp = Float64(b * Float64(a * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); tmp = 0.0; if (y <= -3e+157) tmp = c * (y * (y3 * y4)); elseif (y <= -3.4e-153) tmp = a * (b * t_1); elseif (y <= 5.2e+55) tmp = b * (y0 * ((z * k) - (x * j))); else tmp = b * (a * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+157], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.4e-153], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+55], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
\mathbf{if}\;y \leq -3 \cdot 10^{+157}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-153}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+55}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot t\_1\right)\\
\end{array}
\end{array}
if y < -3.0000000000000001e157Initial program 22.8%
Taylor expanded in y4 around inf 35.6%
*-commutative35.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in y3 around inf 33.3%
Taylor expanded in j around 0 46.4%
if -3.0000000000000001e157 < y < -3.3999999999999998e-153Initial program 33.7%
Taylor expanded in b around inf 38.5%
Taylor expanded in a around inf 38.8%
if -3.3999999999999998e-153 < y < 5.2e55Initial program 35.0%
Taylor expanded in b around inf 36.7%
Taylor expanded in y0 around inf 41.1%
if 5.2e55 < y Initial program 18.8%
Taylor expanded in b around inf 41.7%
Taylor expanded in a around inf 42.3%
Final simplification41.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* x (- y0))))))
(if (<= j -6.1e+75)
t_1
(if (<= j -3.5e-117)
(* k (* y1 (* y2 y4)))
(if (<= j 3.1e+142) (* c (* y (* y3 y4))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (x * -y0));
double tmp;
if (j <= -6.1e+75) {
tmp = t_1;
} else if (j <= -3.5e-117) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= 3.1e+142) {
tmp = c * (y * (y3 * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * (x * -y0))
if (j <= (-6.1d+75)) then
tmp = t_1
else if (j <= (-3.5d-117)) then
tmp = k * (y1 * (y2 * y4))
else if (j <= 3.1d+142) then
tmp = c * (y * (y3 * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (x * -y0));
double tmp;
if (j <= -6.1e+75) {
tmp = t_1;
} else if (j <= -3.5e-117) {
tmp = k * (y1 * (y2 * y4));
} else if (j <= 3.1e+142) {
tmp = c * (y * (y3 * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * (x * -y0)) tmp = 0 if j <= -6.1e+75: tmp = t_1 elif j <= -3.5e-117: tmp = k * (y1 * (y2 * y4)) elif j <= 3.1e+142: tmp = c * (y * (y3 * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(x * Float64(-y0)))) tmp = 0.0 if (j <= -6.1e+75) tmp = t_1; elseif (j <= -3.5e-117) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (j <= 3.1e+142) tmp = Float64(c * Float64(y * Float64(y3 * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * (x * -y0)); tmp = 0.0; if (j <= -6.1e+75) tmp = t_1; elseif (j <= -3.5e-117) tmp = k * (y1 * (y2 * y4)); elseif (j <= 3.1e+142) tmp = c * (y * (y3 * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(x * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.1e+75], t$95$1, If[LessEqual[j, -3.5e-117], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.1e+142], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(x \cdot \left(-y0\right)\right)\right)\\
\mathbf{if}\;j \leq -6.1 \cdot 10^{+75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.5 \cdot 10^{-117}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{+142}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.10000000000000009e75 or 3.0999999999999999e142 < j Initial program 32.9%
Taylor expanded in y0 around inf 38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
*-commutative38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in j around -inf 52.0%
Taylor expanded in b around inf 42.1%
mul-1-neg42.1%
distribute-rgt-neg-in42.1%
distribute-rgt-neg-in42.1%
*-commutative42.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if -6.10000000000000009e75 < j < -3.4999999999999998e-117Initial program 34.9%
Taylor expanded in k around inf 42.8%
+-commutative42.8%
mul-1-neg42.8%
unsub-neg42.8%
*-commutative42.8%
associate-*r*42.8%
neg-mul-142.8%
Simplified42.8%
Taylor expanded in y2 around inf 31.1%
Taylor expanded in y1 around inf 29.1%
if -3.4999999999999998e-117 < j < 3.0999999999999999e142Initial program 26.5%
Taylor expanded in y4 around inf 35.8%
*-commutative35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in y3 around inf 31.2%
Taylor expanded in j around 0 27.0%
Final simplification31.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)))))
(if (<= y4 -2.05e+142)
t_1
(if (<= y4 -7.5e-306)
(* a (* y (* x b)))
(if (<= y4 0.0018) (* c (* x (* y0 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 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -2.05e+142) {
tmp = t_1;
} else if (y4 <= -7.5e-306) {
tmp = a * (y * (x * b));
} else if (y4 <= 0.0018) {
tmp = c * (x * (y0 * 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 = c * (y * (y3 * y4))
if (y4 <= (-2.05d+142)) then
tmp = t_1
else if (y4 <= (-7.5d-306)) then
tmp = a * (y * (x * b))
else if (y4 <= 0.0018d0) then
tmp = c * (x * (y0 * 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 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -2.05e+142) {
tmp = t_1;
} else if (y4 <= -7.5e-306) {
tmp = a * (y * (x * b));
} else if (y4 <= 0.0018) {
tmp = c * (x * (y0 * 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 = c * (y * (y3 * y4)) tmp = 0 if y4 <= -2.05e+142: tmp = t_1 elif y4 <= -7.5e-306: tmp = a * (y * (x * b)) elif y4 <= 0.0018: tmp = c * (x * (y0 * 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(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (y4 <= -2.05e+142) tmp = t_1; elseif (y4 <= -7.5e-306) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (y4 <= 0.0018) tmp = Float64(c * Float64(x * Float64(y0 * 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 = c * (y * (y3 * y4)); tmp = 0.0; if (y4 <= -2.05e+142) tmp = t_1; elseif (y4 <= -7.5e-306) tmp = a * (y * (x * b)); elseif (y4 <= 0.0018) tmp = c * (x * (y0 * 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[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.05e+142], t$95$1, If[LessEqual[y4, -7.5e-306], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 0.0018], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -2.05 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -7.5 \cdot 10^{-306}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq 0.0018:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -2.04999999999999991e142 or 0.0018 < y4 Initial program 26.1%
Taylor expanded in y4 around inf 45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y3 around inf 41.8%
Taylor expanded in j around 0 39.1%
if -2.04999999999999991e142 < y4 < -7.5000000000000003e-306Initial program 31.1%
Taylor expanded in b around inf 43.7%
Taylor expanded in a around inf 41.5%
Taylor expanded in x around inf 24.1%
associate-*r*28.7%
*-commutative28.7%
Simplified28.7%
if -7.5000000000000003e-306 < y4 < 0.0018Initial program 33.5%
Taylor expanded in c around inf 28.7%
+-commutative28.7%
mul-1-neg28.7%
unsub-neg28.7%
*-commutative28.7%
*-commutative28.7%
*-commutative28.7%
*-commutative28.7%
Simplified28.7%
Taylor expanded in x around inf 29.0%
Taylor expanded in y0 around inf 22.2%
Final simplification30.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)))))
(if (<= y4 -1.6e+141)
t_1
(if (<= y4 -2.9e-306)
(* a (* y (* x b)))
(if (<= y4 1.45e-80) (* j (* y0 (* y3 y5))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -1.6e+141) {
tmp = t_1;
} else if (y4 <= -2.9e-306) {
tmp = a * (y * (x * b));
} else if (y4 <= 1.45e-80) {
tmp = j * (y0 * (y3 * y5));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y * (y3 * y4))
if (y4 <= (-1.6d+141)) then
tmp = t_1
else if (y4 <= (-2.9d-306)) then
tmp = a * (y * (x * b))
else if (y4 <= 1.45d-80) then
tmp = j * (y0 * (y3 * y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y4 <= -1.6e+141) {
tmp = t_1;
} else if (y4 <= -2.9e-306) {
tmp = a * (y * (x * b));
} else if (y4 <= 1.45e-80) {
tmp = j * (y0 * (y3 * y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y * (y3 * y4)) tmp = 0 if y4 <= -1.6e+141: tmp = t_1 elif y4 <= -2.9e-306: tmp = a * (y * (x * b)) elif y4 <= 1.45e-80: tmp = j * (y0 * (y3 * y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (y4 <= -1.6e+141) tmp = t_1; elseif (y4 <= -2.9e-306) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (y4 <= 1.45e-80) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y * (y3 * y4)); tmp = 0.0; if (y4 <= -1.6e+141) tmp = t_1; elseif (y4 <= -2.9e-306) tmp = a * (y * (x * b)); elseif (y4 <= 1.45e-80) tmp = j * (y0 * (y3 * y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.6e+141], t$95$1, If[LessEqual[y4, -2.9e-306], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.45e-80], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -1.6 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-306}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq 1.45 \cdot 10^{-80}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.60000000000000009e141 or 1.44999999999999999e-80 < y4 Initial program 25.5%
Taylor expanded in y4 around inf 44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in y3 around inf 39.5%
Taylor expanded in j around 0 37.1%
if -1.60000000000000009e141 < y4 < -2.8999999999999999e-306Initial program 31.1%
Taylor expanded in b around inf 43.7%
Taylor expanded in a around inf 41.5%
Taylor expanded in x around inf 24.1%
associate-*r*28.7%
*-commutative28.7%
Simplified28.7%
if -2.8999999999999999e-306 < y4 < 1.44999999999999999e-80Initial program 36.4%
Taylor expanded in y4 around inf 29.9%
*-commutative29.9%
*-commutative29.9%
Simplified29.9%
Taylor expanded in y3 around inf 30.4%
Taylor expanded in y4 around 0 25.7%
Final simplification31.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y2 -5.1e+92) (not (<= y2 8.5e+87))) (* c (* x (* y0 y2))) (* a (* (* x y) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y2 <= -5.1e+92) || !(y2 <= 8.5e+87)) {
tmp = c * (x * (y0 * y2));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y2 <= (-5.1d+92)) .or. (.not. (y2 <= 8.5d+87))) then
tmp = c * (x * (y0 * y2))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y2 <= -5.1e+92) || !(y2 <= 8.5e+87)) {
tmp = c * (x * (y0 * y2));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y2 <= -5.1e+92) or not (y2 <= 8.5e+87): tmp = c * (x * (y0 * y2)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y2 <= -5.1e+92) || !(y2 <= 8.5e+87)) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y2 <= -5.1e+92) || ~((y2 <= 8.5e+87))) tmp = c * (x * (y0 * y2)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y2, -5.1e+92], N[Not[LessEqual[y2, 8.5e+87]], $MachinePrecision]], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -5.1 \cdot 10^{+92} \lor \neg \left(y2 \leq 8.5 \cdot 10^{+87}\right):\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if y2 < -5.1000000000000003e92 or 8.5000000000000001e87 < y2 Initial program 23.0%
Taylor expanded in c around inf 47.2%
+-commutative47.2%
mul-1-neg47.2%
unsub-neg47.2%
*-commutative47.2%
*-commutative47.2%
*-commutative47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in x around inf 41.3%
Taylor expanded in y0 around inf 42.7%
if -5.1000000000000003e92 < y2 < 8.5000000000000001e87Initial program 32.8%
Taylor expanded in b around inf 40.7%
Taylor expanded in a around inf 32.1%
Taylor expanded in x around inf 19.4%
Final simplification26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 29.8%
Taylor expanded in b around inf 39.7%
Taylor expanded in a around inf 31.6%
Taylor expanded in x around inf 17.8%
Final simplification17.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* y (* x b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y * (x * b));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * (y * (x * b))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y * (x * b));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (y * (x * b))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(y * Float64(x * b))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (y * (x * b)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(y \cdot \left(x \cdot b\right)\right)
\end{array}
Initial program 29.8%
Taylor expanded in b around inf 39.7%
Taylor expanded in a around inf 31.6%
Taylor expanded in x around inf 17.8%
associate-*r*18.2%
*-commutative18.2%
Simplified18.2%
Final simplification18.2%
(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 2024115
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))